PageSourceSearch

https://secondstep.shop/_next/static/chunks/1ycgyhwa7jg4l.js

js secondstep.shop collected 2026-10-04 13:37:48 UTC 98,149 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,69999,e=>{"use strict";var t=e.i(38991),n=e.i(15394),r=e.i(30345),o=e.i(96313),i=e.i(58693),l=e.i(17683);let s=(0,l.createContext)(null);function a(){let e=(0,l.useContext)(s);if(!e)throw Error("useContact debe usarse dentro de ContactProvider");return e}let u={Email:function({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[(0,t.jsx)("rect",{x:"2",y:"4",width:"20",height:"16",rx:"3",stroke:"currentColor",strokeWidth:"1.5"}),(0,t.jsx)("path",{d:"M2 7l10 7 10-7",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})},Instagram:function({className:e}){return(0,t.jsxs)("svg",{className:e,viewBox:"0 0 24 24",fill:"none","aria-hidden":!0,children:[(0,t.jsx)("rect",{x:"2",y:"2",width:"20",height:"20",rx:"5",stroke:"currentColor",strokeWidth:"1.5"}),(0,t.jsx)("circle",{cx:"12",cy:"12",r:"4",stroke:"currentColor",strokeWidth:"1.5"}),(0,t.jsx)("circle",{cx:"17.5",cy:"6.5",r:"1",fill:"currentColor"})]})}};function c({isOpen:e,onClose:l}){let s=(0,i.useTranslations)("Contact");return(0,t.jsx)(n.ActionModal,{isOpen:e,onClose:l,title:s("title"),description:s("description"),closeLabel:s("closeLabel"),children:o.CONTACT_CHANNELS.map(e=>{let o=u[e.label],i="Email"===e.label?s("emailAriaLabel",{email:e.value}):s("instagramAriaLabel",{handle:e.value});return(0,t.jsxs)("a",{href:e.href,target:e.external?"_blank":void 0,rel:e.external?"noopener noreferrer":void 0,"aria-label":i,onClick:l,className:n.actionModalCardClassName,children:[(0,t.jsx)("div",{className:"flex h-12 w-12 shrink-0 items-center justify-center rounded-xl bg-ink text-cream sm:h-11 sm:w-11",children:(0,t.jsx)(o,{className:"h-5 w-5"})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsx)("p",{className:"font-sans text-xs font-bold tracking-[0.18em] text-primary uppercase",children:e.label}),(0,t.jsx)("p",{className:"mt-1.5 truncate font-sans text-sm font-semibold text-ink transition-colors group-hover:text-primary sm:mt-1 sm:text-lg sm:font-extrabold",children:e.value})]}),(0,t.jsx)(r.ArrowRight,{className:"h-4 w-4 shrink-0 text-ink/20 transition-all duration-300 group-hover:translate-x-0.5 group-hover:text-primary"})]},e.label)})})}e.s(["ContactLink",0,function({children:e,className:n}){let{openContact:r}=a();return(0,t.jsx)("button",{type:"button",onClick:r,className:n,children:e})},"ContactProvider",0,function({children:e}){let[n,r]=(0,l.useState)(!1),o=(0,l.useCallback)(()=>r(!0),[]),i=(0,l.useCallback)(()=>r(!1),[]),a=(0,l.useMemo)(()=>({isOpen:n,openContact:o,closeContact:i}),[n,o,i]);return(0,t.jsxs)(s.Provider,{value:a,children:[e,(0,t.jsx)(c,{isOpen:n,onClose:i})]})},"useContact",0,a])},49786,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"BailoutToCSR",{enumerable:!0,get:function(){return o}});let r=e.r(98963);function o({reason:e,children:t}){if("u"<typeof window)throw Object.defineProperty(new r.BailoutToCSRError(e),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return t}},44939,(e,t,n)=>{"use strict";function r(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"encodeURIPath",{enumerable:!0,get:function(){return r}})},15464,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"PreloadChunks",{enumerable:!0,get:function(){return a}});let r=e.r(38991),o=e.r(5616),i=e.r(54609),l=e.r(44939),s=e.r(14337);function a({moduleIds:e}){if("u">typeof window)return null;let t=i.workAsyncStorage.getStore();if(void 0===t)return null;let n=[];if(t.reactLoadableManifest&&e){let r=t.reactLoadableManifest;for(let t of e){if(!r[t])continue;let e=r[t].files;n.push(...e)}}if(0===n.length)return null;let u=(0,s.getAssetTokenQuery)();return(0,r.jsx)(r.Fragment,{children:n.map(e=>{let n=`${t.assetPrefix}/_next/${(0,l.encodeURIPath)(e)}${u}`;return e.endsWith(".css")?(0,r.jsx)("link",{precedence:"dynamic",href:n,rel:"stylesheet",as:"style",nonce:t.nonce},e):((0,o.preload)(n,{as:"script",fetchPriority:"low",nonce:t.nonce}),null)})})}},93881,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return u}});let r=e.r(38991),o=e.r(17683),i=e.r(49786),l=e.r(15464);function s(e){return{default:e&&"default"in e?e.default:e}}let a={loader:()=>Promise.resolve(s(()=>null)),loading:null,ssr:!0},u=function(e){let t={...a,...e},n=(0,o.lazy)(()=>t.loader().then(s)),u=t.loading;
1function c(e){let s=u?(0,r.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,a=!t.ssr||!!t.loading,c=a?o.Suspense:o.Fragment,d=t.ssr?(0,r.jsxs)(r.Fragment,{children:["u"<typeof window?(0,r.jsx)(l.PreloadChunks,{moduleIds:t.modules}):null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(i.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(c,{...a?{fallback:s}:{},children:d})}return c.displayName="LoadableComponent",c}},14584,(e,t,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"default",{enumerable:!0,get:function(){return o}});let r=e.r(81258)._(e.r(93881));function o(e,t){let n={};"function"==typeof e&&(n.loader=e);let o={...n,...t};return(0,r.default)({...o,modules:o.loadableGenerated?.modules})}("function"==typeof n.default||"object"==typeof n.default&&null!==n.default)&&void 0===n.default.__esModule&&(Object.defineProperty(n.default,"__esModule",{value:!0}),Object.assign(n.default,n),t.exports=n.default)},44403,e=>{"use strict";let t=(0,e.i(14584).default)(()=>e.A(96166).then(e=>e.CookieConsent),{loadableGenerated:{modules:[12245]},ssr:!1});e.s(["CookieConsent",0,t])},70118,e=>{"use strict";var t=e.i(38991),n=e.i(7284),r=e.i(56904),o=e.i(17683),i=e.i(12001);let l=(0,o.createContext)({isTransparent:!1,useLightTone:!1});function s(){return window.scrollY>1}function a(e){return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)}function u(){return()=>{}}let c=["/blog/","/stories/","/istorioak/"];e.s(["NavbarShell",0,function({children:e}){let d=(0,r.usePathname)(),f=(0,o.useSyncExternalStore)(u,()=>!0,()=>!1),p=(0,o.useSyncExternalStore)(a,s,()=>!1),m=!(0,o.useSyncExternalStore)(i.subscribeNavbarSolidAtTop,i.getNavbarSolidAtTopSnapshot,()=>!1)&&(!f||!p),h=m&&!(d.startsWith("/product/")||c.some(e=>d.startsWith(e)));return(0,t.jsx)(l.Provider,{value:{isTransparent:m,useLightTone:h},children:(0,t.jsx)("header",{className:"pointer-events-none fixed inset-x-0 top-0 z-50 px-4 pt-3 sm:px-6 lg:px-8",children:(0,t.jsx)("nav",{className:(0,n.default)("pointer-events-auto mx-auto flex max-w-7xl items-center justify-between rounded-full px-3 py-2 transition-[background-color,border-color,box-shadow,backdrop-filter] duration-300 sm:px-4 sm:py-2.5 lg:px-5",m?"border border-transparent bg-transparent shadow-none backdrop-blur-none":"border border-ink/10 bg-bg/90 shadow-[0_8px_32px_rgba(13,42,26,0.08)] backdrop-blur-md"),children:e})})})},"navbarLogoClass",0,function(){return"transition-opacity duration-300"},"useNavbarShell",0,function(){return(0,o.useContext)(l)}])},9513,e=>{"use strict";var t=e.i(38991),n=e.i(1091),r=e.i(25543),o=e.i(17683);let i=o.forwardRef(function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 10.5V6a3.75 3.75 0 1 0-7.5 0v4.5m11.356-1.993 1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 0 1-1.12-1.243l1.264-12A1.125 1.125 0 0 1 5.513 7.5h12.974c.576 0 1.059.435 1.119 1.007ZM8.625 10.5a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm7.5 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))});var l=e.i(77617),s=e.i(7284),a=e.i(98401),u=e.i(82970),c=e.i(30345),d=e.i(20511),f=e.i(71829),p=e.i(56904),m=e.i(58693),h=e.i(38819),v=e.i(5616),b=e.i(70376);let g=(0,b.createServerReference)("0002d6506d357f784e12882ec69d999bd2ab043ac9",b.callServer,void 0,b.findSourceMapURL,"redirectToCheckout");var x=e.i(22574);let y=(0,b.createServerReference)("60eb3c263adbb494ecb5dea4ec932fa8bdb18cb032",b.callServer,void 0,b.findSourceMapURL,"removeItem");function w({item:e,optimisticUpdate:n}){let r=(0,m.useTranslations)("Cart"),[i,s]=(0,o.useActionState)(y,null),a=e.merchandise.id,u=s.bind(null,a);return(0,t.jsxs)("form",{action:async()=>{n(a,"delete"),u()},children:[(0,t.jsx)("button",{type:"submit","aria-label":r("removeItem"),className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full bg-ink/90 shadow-sm transition-colors hover:bg-primary",children:(0,t.jsx)(l.XMarkIcon,{className:"h-3 w-3 shrink-0 text-white",strokeWidth:2.5})}),(0,t.jsx)("p",{"aria-live":"polite",className:"sr-only",role:"status",children:i})]})}let E=o.forwardRef(function({title:e,titleId:t,...n},r){return o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?o.createElement("title",{id:t},e):null,o.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 12h14"}))});var k=e.i(70442);let S=(0,b.createServerReference)("605d1494ce186b79ffee160d611004c1e1c152f5e5",b.callServer,void 0,b.findSourceMapURL,"updateItemQuantity");var C=e.i(99303),T=e.i(20557),j=e.i(34841);function L({type:e,disabled:n}){let r=(0,m.useTranslations)("Cart");return(0,t.jsx)("button",{type:"submit",disabled:n,"aria-label":r("plus"===e?"increaseQuantity":"decreaseQuantity"),className:(0,s.default)("ease flex h-full min-w-[36px] max-w-[36px] flex-none items-center justify-center rounded-full p-2 text-ink transition-all duration-200 hover:bg-mint/20 hover:text-primary",{"ml-auto":"minus"===e,"cursor-not-allowed opacity-40 hover:bg-transparent hover:text-ink":n}),children:"plus"===e?(0,t.jsx)(k.PlusIcon,{className:"h-4 w-4"}):(0,t.jsx)(E,{className:"h-4 w-4"})})}function R({item:e,type:n,optimisticUpdate:r}){let[i,l]=(0,o.useActionState)(S,null),s=(0,m.useTranslations)("Cart"),a="plus"===n?e.quantity+1:Math.max(0,e.quantity-1),u={merchandiseId:e.merchandise.id,quantity:a},c=l.bind(null,u);(0,j.useCartActionToast)(i);let d="plus"===n&&!(0,C.canIncreaseLineQuantity)(e.quantity,e.merchandise.quantityAvailable),f="minus"===n&&e.quantity<=0;return(0,t.jsxs)("form",{action:async()=>
1{if(d||f){d&&(0,j.showStockLimitToast)((0,T.formatCartLimitMessage)((0,C.getRemainingStockReason)(e.merchandise.quantityAvailable),s));return}r(u.merchandiseId,n),c()},children:[(0,t.jsx)(L,{type:n,disabled:f}),(0,t.jsx)("p",{"aria-live":"polite",className:"sr-only",role:"status",children:i})]})}var O=e.i(62102),N=e.i(70118);function M({className:e,quantity:n}){let{useLightTone:r}=(0,N.useNavbarShell)();return(0,t.jsxs)("div",{className:(0,s.default)("relative flex h-10 w-10 items-center justify-center rounded-full transition-colors duration-300",r?"bg-transparent text-cream hover:bg-cream/10":"bg-ink text-white hover:bg-ink-600"),children:[(0,t.jsx)(O.ShoppingCartIcon,{className:(0,s.default)("h-4 transition-all ease-in-out hover:scale-110",e)}),n?(0,t.jsx)("div",{className:"absolute -right-0.5 -top-0.5 flex h-4 w-4 items-center justify-center rounded-full bg-lime text-[11px] font-bold text-ink",children:n}):null]})}function P({className:e}){return(0,t.jsx)("div",{className:"relative flex h-10 w-10 items-center justify-center rounded-full border border-ink/15 text-ink transition-colors hover:border-ink/30 hover:bg-ink/5",children:(0,t.jsx)(l.XMarkIcon,{className:(0,s.default)("h-5 transition-all ease-in-out hover:scale-110",e)})})}function F(){let{pending:e}=(0,v.useFormStatus)(),n=(0,m.useTranslations)("Cart");return(0,t.jsx)("button",{className:"flex w-full items-center justify-center gap-2 rounded-full bg-lime p-3.5 text-sm font-bold text-ink transition-transform duration-200 hover:-translate-y-0.5 hover:shadow-[0_8px_24px_rgba(179,208,107,0.35)]",type:"submit",disabled:e,children:e?(0,t.jsx)(a.default,{className:"bg-ink"}):(0,t.jsxs)(t.Fragment,{children:[n("checkout"),(0,t.jsx)(c.ArrowRight,{})]})})}e.s(["default",0,function(){let{cart:e,updateCartItem:l,isCartOpen:s,openCart:a,closeCart:v}=(0,x.useCart)(),b=(0,m.useTranslations)("Cart");return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{"aria-label":b("openCart"),onClick:a,children:(0,t.jsx)(M,{quantity:e?.totalQuantity})}),(0,t.jsx)(r.Transition,{show:s,children:(0,t.jsxs)(n.Dialog,{onClose:v,className:"relative z-50",children:[(0,t.jsx)(r.Transition.Child,{as:o.Fragment,enter:"transition-all ease-in-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-all ease-in-out duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,t.jsx)("div",{className:"fixed inset-0 bg-ink/40","aria-hidden":"true"})}),(0,t.jsx)(r.Transition.Child,{as:o.Fragment,enter:"transition-all ease-in-out duration-300",enterFrom:"translate-x-full",enterTo:"translate-x-0",leave:"transition-all ease-in-out duration-200",leaveFrom:"translate-x-0",leaveTo:"translate-x-full",children:(0,t.jsxs)(n.Dialog.Panel,{className:"fixed inset-y-0 right-0 flex h-full w-full max-w-[20rem] flex-col border-l border-ink/10 bg-bg/95 font-sans text-ink shadow-[-8px_0_40px_rgba(13,42,26,0.12)] backdrop-blur-xl md:max-w-none md:w-[390px]",children:[(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 top-0 h-32 bg-gradient-to-b from-mint/15 to-transparent"}),(0,t.jsx)("div",{className:"relative border-b border-ink/10 px-4 pb-4 pt-5 md:px-6 md:pb-5 md:pt-6",children:(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)(n.Dialog.Title,{className:"text-lg font-semibold tracking-tight",children:b("title")}),(0,t.jsx)("p",{className:"text-xs text-text-muted",children:e?.totalQuantity?b("itemCount",{count:e.totalQuantity}):b("subtitleEmpty")})]}),(0,t.jsx)("button",{"aria-label":b("closeCart"),onClick:v,children:(0,t.jsx)(P,{})})]})}),e&&0!==e.lines.length?(0,t.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col px-4 pb-5 md:px-6 md:pb-6",children:[(0,t.jsx)("ul",{className:"min-h-0 flex-1 overflow-auto py-3 md:py-4",children:e.lines.filter(e=>e.quantity>0).sort((e,t)=>e.merchandise.product.title.localeCompare(t.merchandise.product.title)).map((e,n)=>{let r={};return e.merchandise.selectedOptions.forEach(({name:e,value:t})=>{t!==f.DEFAULT_OPTION&&(r[e.toLowerCase()]=t)}),(0,t.jsx)("li",{className:"flex w-full flex-col border-b border-ink/10 last:border-b-0",children:(0,t.jsxs)("div",{className:"relative flex w-full flex-row justify-between py-3 md:py-4",children:[(0,t.jsxs)("div",{className:"flex flex-row",children:[(0,t.jsxs)("div",{className:"relative h-20 w-20 shrink-0 rounded-2xl border border-ink/10 bg-cream-200",children:[(0,t.jsx)("div",{className:"absolute left-1.5 top-1.5 z-10",children:(0,t.jsx)(w,{item:e,optimisticUpdate:l})}),(0,t.jsx)("div",{className:"h-full w-full overflow-hidden rounded-2xl",children:(0,t.jsx)(h.default,{className:"h-full w-full object-cover",width:80,height:80,alt:e.merchandise.product.featuredImage.altText||e.merchandise.product.title,src:e.merchandise.product.featuredImage.url})})]}),(0,t.jsx)(p.Link,{href:{pathname:"/product/[handle]",params:{handle:e.merchandise.product.handle},query:r},onClick:v,className:"z-30 ml-3 flex flex-row",children:(0,t.jsxs)("div",{className:"flex flex-1 flex-col text-base",children:[(0,t.jsx)("span",{className:"font-medium leading-tight",children:e.merchandise.product.title}),e.merchandise.title!==f.DEFAULT_OPTION?(0,t.jsx)("p",{className:"mt-0.5 text-sm text-text-muted",children:e.merchandise.title}):null]})})]}),(0,t.jsxs)("div",{className:"flex h-20 flex-col justify-between",children:[(0,t.jsx)(u.default,{className:"flex justify-end text-right text-sm font-semibold",amount:e.cost.totalAmount.amount,currencyCode:e.cost.totalAmount.currencyCode}),(0,t.jsxs)("div",{className:"ml-auto flex h-9 flex-row items-center rounded-full border border-ink/15 bg-bg",children:[(0,t.jsx)(R,{item:e,type:"minus",optimisticUpdate:l}),(0,t.jsx)("p",{className:"w-6 text-center",children:(0,t.jsx)("span",{className:"w-full text-sm font-medium",children:Math.max(0,e.quantity)})}),(0,t.jsx)(R,{item:e,type:"plus",optimisticUpdate:l})]})]})]})},n)})}),(0,t.jsxs)("div",{className:"shrink-0 rounded-2xl border border-ink/10 bg-cream-200/50 p-3 text-sm md:p-4",children:[(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between pb-2",children:[(0,t.jsx)("p",{className:"text-text-muted",children:b("taxes")}),(0,t.jsx)(u.default,{className:"text-right font-medium",amount:e.cost.totalTaxAmount.amount,currencyCode:e.cost.totalTaxAmount.currencyCode})]}),(0,t.jsxs)("div",{className:"mb-2 flex items-center justify-between border-t border-ink/10 py-2",children:[(0,t.jsx)("p",{className:"text-text-muted",children:b("shipping")}),(0,t.jsx)("p",{className:"text-right text-text-muted",children:b("shippingCalculated")})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between border-t border-ink/10 pt-2",children:[(0,t.jsx)("p",{className:"font-semibold",children:b("total")}),(0,t.jsx)(u.default,{className:"text-right text-base font-bold",amount:e.cost.totalAmount.amount,currencyCode:e.cost.totalAmount.currencyCode})]})]}),(0,t.jsx)("form",{action:g,className:"mt-4 shrink-0",children:(0,t.jsx)(F,{})})]}):(0,t.jsxs)("div",{className:"relative flex flex-1 flex-col items-center px-4 pt-8 pb-12 sm:pt-10 md:px-6",children:[(0,t.jsx)("div",{className:"flex h-20 w-20 items-center justify-center rounded-full border border-mint/30 bg-mint/10",children:(0,t.jsx)(i,{className:"h-9 w-9 text-primary"})}),(0,t.jsx)("p",{className:"mt-6 text-center text-xl font-semibold tracking-tight",children:b("emptyTitle")}),(0,t.jsx)("p",{className:"mt-2 max-w-[240px] text-center text-sm leading-relaxed text-text-muted",children:b("emptyDescription")}),(0,t.jsxs)(p.Link,{href:"/tienda",onClick:v,className:"mt-8 inl
1ine-flex items-center gap-2 rounded-full bg-primary px-6 py-3 text-sm font-semibold text-white transition-transform duration-200 hover:-translate-y-0.5",children:[b("viewShoes"),(0,t.jsx)(c.ArrowRight,{})]}),(0,t.jsxs)("div",{className:"mt-10 flex items-center gap-2 text-xs font-medium text-text-muted",children:[(0,t.jsx)(d.Logo,{tone:"primary",variant:"icon",className:"h-8 w-8"}),b("everyStepCounts")]})]})]})})]})})]})}],9513)},24557,e=>{"use strict";let t="hero";e.s(["handleHomeHeroClick",0,function(e,n,r){if("/"!==n)return;e.preventDefault();let o=`${window.location.pathname}#${t}`;window.location.hash!==`#${t}`&&history.pushState(null,"",o),function(){let e=document.getElementById(t);if(!e)return window.scrollTo({top:0,behavior:"smooth"});let n=parseFloat(getComputedStyle(e).scrollMarginTop),r=e.getBoundingClientRect().top+window.scrollY-n;window.scrollTo({top:r,behavior:"smooth"})}(),r?.()},"homeHeroHref",0,{pathname:"/",hash:t}])},80401,94050,e=>{"use strict";var t=e.i(38991),n=e.i(69999),r=e.i(7284),o=e.i(56904),i=e.i(58693);function l(e,t){let[n]=t.split("#"),r=n||"/";return"/tienda"===r?"/tienda"===e||e.startsWith("/tienda/")||e.startsWith("/product/"):"/"===r?"/"===e:e===r||e.startsWith(`${r}/`)}e.s(["isMenuItemActive",0,l],94050);var s=e.i(70118),a=e.i(24557);let u="inline-block shrink-0 whitespace-nowrap rounded-full px-3 py-1.5 font-medium transition-colors duration-300 lg:px-4";function c(e,t){return t?e?"bg-cream/15 font-semibold text-cream":"text-cream hover:bg-cream/10 hover:text-lime":e?"bg-ink/10 font-semibold text-forest shadow-[inset_0_1px_0_rgba(13,42,26,0.06)]":"text-ink hover:bg-ink/5 hover:text-primary"}e.s(["NavMenuLinks",0,function({menu:e}){let d=(0,o.usePathname)(),{openContact:f}=(0,n.useContact)(),{useLightTone:p}=(0,s.useNavbarShell)(),m=(0,i.useTranslations)("Nav"),h=l(d,"/");return(0,t.jsxs)("ul",{className:"absolute left-1/2 hidden -translate-x-1/2 gap-1 text-sm lg:flex lg:items-center lg:gap-2.5",children:[(0,t.jsx)("li",{className:"shrink-0",children:(0,t.jsx)(o.Link,{href:a.homeHeroHref,prefetch:!0,scroll:!0,onClick:e=>(0,a.handleHomeHeroClick)(e,d),"aria-current":h?"page":void 0,className:(0,r.default)(u,c(h,p)),children:m("home")})}),e.map(e=>{let n,i,s=l(d,e.path),a=(n=e.path.split("#")[0]?.toLowerCase()??"",i=e.title.toLowerCase(),"/contacto"===n||"contacto"===i);return(0,t.jsx)("li",{className:"shrink-0",children:a?(0,t.jsx)("button",{type:"button",onClick:f,className:(0,r.default)(u,c(!1,p)),children:e.title}):(0,t.jsx)(o.Link,{href:e.path,prefetch:!0,scroll:!0,"aria-current":s?"page":void 0,className:(0,r.default)(u,c(s,p)),children:e.title})},e.title)})]})},"navLinkClass",0,c],80401)},47013,e=>{"use strict";let t,n,r,o,i,l,s,a;var u=e.i(38991);e.i(88784);let c=e=>e?.ownerDocument??document,d=e=>e&&"window"in e&&e.window===e?e:c(e).defaultView||window;function f(e,t){return!!t&&!!e&&e.contains(t)}function p(e){return e.target}let m=null;"u">typeof Element&&Element.prototype;let h=["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"];h.join(":not([hidden]),"),h.push('[tabindex]:not([tabindex="-1"]):not([disabled])'),h.join(':not([hidden]):not([tabindex="-1"]),');var v=e.i(17683);let b="u">typeof document?v.default.useLayoutEffect:()=>{};function g(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function x(e){let t=(0,v.useRef)({isFocused:!1,observer:null});return b(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,v.useCallback)(n=>{let r=p(n);(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement)&&(t.current.isFocused=!0,r.addEventListener("focusout",n=>{if(t.current.isFocused=!1,r.disabled){let t=g(n);e?.(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){t.current.observer?.disconnect();let e=r===((e=document)=>e.activeElement)()?null:((e=document)=>e.activeElement)();r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]}))},[e])}function y(e){if("u"<typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function w(e){return"u">typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function E(e){let t=null;return()=>(null==t&&(t=e()),t)}let k=E(function(){return w(/^Mac/i)}),S=E(function(){return w(/^iPhone/i)}),C=E(function(){return w(/^iPad/i)||k()&&navigator.maxTouchPoints>1}),T=E(function(){return S()||C()});E(function(){return k()||T()});
1let j=E(function(){return y(/AppleWebKit/i)&&!L()}),L=E(function(){return y(/Chrome/i)}),R=E(function(){return y(/Android/i)}),O=E(function(){return y(/Firefox/i)});function N(e,t,n=!0){let{metaKey:r,ctrlKey:o,altKey:i,shiftKey:l}=t;O()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(k()?r=!0:o=!0);let s=j()&&k()&&!C()&&1?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:r,ctrlKey:o,altKey:i,shiftKey:l}):new MouseEvent("click",{metaKey:r,ctrlKey:o,altKey:i,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});N.isOpening=n;if(function(){if(null==m){m=!1;try{document.createElement("div").focus({get preventScroll(){return m=!0,!0}})}catch{}}return m}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}e.dispatchEvent(s),N.isOpening=!1}N.isOpening=!1;let M={prefix:String(Math.round(1e10*Math.random())),current:0};v.default.createContext(M),v.default.createContext(!1),"u">typeof window&&window.document&&window.document.createElement,new WeakMap;v.default.useId;let P=null,F=new Set,I=new Map,A=!1,D=!1,H={Tab:!0,Escape:!0};function _(e,t){for(let n of F)n(e,t)}function B(e){A=!0,N.isOpening||e.metaKey||!k()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(P="keyboard",_("keyboard",e))}function W(e){P="pointer","pointerType"in e&&e.pointerType,("mousedown"===e.type||"pointerdown"===e.type)&&(A=!0,_("pointer",e))}function K(e){N.isOpening||(""!==e.pointerType||!e.isTrusted)&&(R()&&e.pointerType?"click"!==e.type||1!==e.buttons:0!==e.detail||e.pointerType)||(A=!0,P="virtual")}function V(e){let t=d(p(e)),n=c(p(e));p(e)!==t&&p(e)!==n&&e.isTrusted&&(A||D||(P="virtual",_("virtual",e)),A=!1,D=!1)}function z(){A=!1,D=!0}function $(e){if("u"<typeof window||"u"<typeof document)return;let t=d(e),n=c(e);if(I.get(t))return;let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){A=!0,r.apply(this,arguments)},n.addEventListener("keydown",B,!0),n.addEventListener("keyup",B,!0),n.addEventListener("click",K,!0),t.addEventListener("focus",V,!0),t.addEventListener("blur",z,!1),"u">typeof PointerEvent&&(n.addEventListener("pointerdown",W,!0),n.addEventListener("pointermove",W,!0),n.addEventListener("pointerup",W,!0)),t.addEventListener("beforeunload",()=>{U(e)},{once:!0}),I.set(t,{focus:r})}let U=(e,t)=>{let n=d(e),r=c(e);t&&r.removeEventListener("DOMContentLoaded",t),I.has(n)&&(n.HTMLElement.prototype.focus=I.get(n).focus,r.removeEventListener("keydown",B,!0),r.removeEventListener("keyup",B,!0),r.removeEventListener("click",K,!0),n.removeEventListener("focus",V,!0),n.removeEventListener("blur",z,!1),"u">typeof PointerEvent&&(r.removeEventListener("pointerdown",W,!0),r.removeEventListener("pointermove",W,!0),r.removeEventListener("pointerup",W,!0)),I.delete(n))};function q(){return"pointer"!==P}"u">typeof document&&("loading"!==(t=c(void 0)).readyState?$(void 0):t.addEventListener("DOMContentLoaded",()=>{$(void 0)}));let Q=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function G(){let e=(0,v.useRef)(new Map),t=(0,v.useCallback)((t,n,r,o)=>{let i=o?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)},[]),n=(0,v.useCallback)((t,n,r,o)=>{let i=e.current.get(r)?.fn||r;t.removeEventListener(n,i,o),e.current.delete(r)},[]),r=(0,v.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,v.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}let X=!1,Y=0;function Z(e){"touch"===e.pointerType&&(X=!0,setTimeout(()=>{X=!1},500))}function J(){let e=c(null);if(void 0!==e)return 0===Y&&"u">typeof PointerEvent&&e.addEventListener("pointerup",Z),Y++,()=>{!(--Y>0)&&"u">typeof PointerEvent&&e.removeEventListener("pointerup",Z)}}
1var ee=e.i(5616),et=e.i(2072),en=e.i(22613),er=e.i(77616),eo=e.i(35143),ei=e.i(43563);function el(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}var es=((n=es||{})[n.Left=0]="Left",n[n.Right=2]="Right",n),ea=e.i(51936);function eu(e){let t=e.parentElement,n=null;for(;t&&!ea.isHTMLFieldSetElement(t);)ea.isHTMLLegendElement(t)&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(ea.isHTMLLegendElement(t))return!1;t=t.previousElementSibling}return!0}(n))&&r}var ec=e.i(51756),ed=e.i(57644),ef=e.i(50027),ep=e.i(5094),em=e.i(30066),eh=e.i(72301),ev=((r=ev||{})[r.Ignore=0]="Ignore",r[r.Select=1]="Select",r[r.Close=2]="Close",r);let eb={kind:0},eg={kind:2};var ex=e.i(99079),ey=e.i(83611),ew=e.i(13973);let eE=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function ek(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!ea.isHTMLElement(o))return r;let i=!1;for(let e of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let l=i?null!=(n=o.innerText)?n:"":r;return eE.test(l)&&(l=l.replace(eE,"")),l}function eS(e){return[e.screenX,e.screenY]}var eC=e.i(35962),eT=e.i(11143);let ej=Math.min,eL=Math.max,eR=Math.round,eO=Math.floor,eN=e=>({x:e,y:e}),eM={left:"right",right:"left",bottom:"top",top:"bottom"},eP={start:"end",end:"start"};function eF(e,t){return"function"==typeof e?e(t):e}function eI(e){return e.split("-")[0]}function eA(e){return e.split("-")[1]}function eD(e){return"x"===e?"y":"x"}function eH(e){return"y"===e?"height":"width"}function e_(e){return["top","bottom"].includes(eI(e))?"y":"x"}function eB(e){return e.replace(/start|end/g,e=>eP[e])}function eW(e){return e.replace(/left|right|bottom|top/g,e=>eM[e])}function eK(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function eV(e,t,n){let r,{reference:o,floating:i}=e,l=e_(t),s=eD(e_(t)),a=eH(s),u=eI(t),c="y"===l,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,p=o[a]/2-i[a]/2;switch(u){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(eA(t)){case"start":r[s]-=p*(n&&c?-1:1);break;case"end":r[s]+=p*(n&&c?-1:1)}return r}let ez=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),a=await (null==l.isRTL?void 0:l.isRTL(t)),u=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=eV(u,r,a),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:i,fn:h}=s[n],{x:v,y:b,data:g,reset:x}=await h({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=b?b:d,p={...p,[i]:{...p[i],...g}},x&&m<=50&&(m++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(u=!0===x.rects?await l.getElementRects({reference:e,floating:t,strategy:o}):x.rects),{x:c,y:d}=eV(u,f,a)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function e$(e,t){var n,r;void 0===t&&(t={});let{x:o,y:i,platform:l,rects:s,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:m=0}=eF(t,e),h="number"!=typeof(r=m)?{top:0,right:0,bottom:0,left:0,...r}:{top:r,right:r,bottom:r,left:r},v=a[p?"floating"===f?"reference":"floating":f],b=eK(await l.getClippingRect({element:null==(n=await (null==l.isElement?void 0:l.isElement(v)))||n?v:v.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(a.floating)),boundary:c,rootBoundary:d,strategy:u})),g="floating"===f?{x:o,y:i,width:s.floating.width,height:s.floating.height}:s.reference,x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(a.floating)),y=await (null==l.isElement?void 0:l.isElement(x))&&await (null==l.getScale?void 0:l.getScale(x
1))||{x:1,y:1},w=eK(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:g,offsetParent:x,strategy:u}):g);return{top:(b.top-w.top+h.top)/y.y,bottom:(w.bottom-b.bottom+h.bottom)/y.y,left:(b.left-w.left+h.left)/y.x,right:(w.right-b.right+h.right)/y.x}}async function eU(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),l=eI(n),s=eA(n),a="y"===e_(n),u=["left","top"].includes(l)?-1:1,c=i&&a?-1:1,d=eF(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),a?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function eq(){return"u">typeof window}function eQ(e){return eY(e)?(e.nodeName||"").toLowerCase():"#document"}function eG(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eX(e){var t;return null==(t=(eY(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eY(e){return!!eq()&&(e instanceof Node||e instanceof eG(e).Node)}function eZ(e){return!!eq()&&(e instanceof Element||e instanceof eG(e).Element)}function eJ(e){return!!eq()&&(e instanceof HTMLElement||e instanceof eG(e).HTMLElement)}function e0(e){return!(!eq()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof eG(e).ShadowRoot)}function e1(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=e6(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function e5(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}function e2(e){let t=e4(),n=eZ(e)?e6(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function e4(){return!("u"<typeof CSS)&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function e3(e){return["html","body","#document"].includes(eQ(e))}function e6(e){return eG(e).getComputedStyle(e)}function e9(e){return eZ(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function e7(e){if("html"===eQ(e))return e;let t=e.assignedSlot||e.parentNode||e0(e)&&e.host||eX(e);return e0(t)?t.host:t}function e8(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=e7(t);return e3(n)?t.ownerDocument?t.ownerDocument.body:t.body:eJ(n)&&e1(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),l=eG(o);if(i){let e=te(l);return t.concat(l,l.visualViewport||[],e1(o)?o:[],e&&n?e8(e):[])}return t.concat(o,e8(o,[],n))}function te(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tt(e){let t=e6(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=eJ(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:r,s=eR(n)!==i||eR(r)!==l;return s&&(n=i,r=l),{width:n,height:r,$:s}}function tn(e){return eZ(e)?e:e.contextElement}function tr(e){let t=tn(e);if(!eJ(t))return eN(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=tt(t),l=(i?eR(n.width):n.width)/r,s=(i?eR(n.height):n.height)/o;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}let to=eN(0);function ti(e){let t=eG(e);return e4()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:to}function tl(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),l=tn(e),s=eN(1);t&&(r?eZ(r)&&(s=tr(r)):s=tr(e));let a=(void 0===(o=n)&&(o=!1),r&&(!o||r===eG(l))&&o)?ti(l):eN(0),u=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,d=i.width/s.x,f=i.height/s.y;if(l){let e=eG(l),t=r&&eZ(r)?eG(r):r,n=e,o=te(n);for(;o&&r&&t!==n;){let e=tr(o),t=o.getBoundingClientRect(),r=e6(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,l=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=i,c+=l,o=te(n=eG(o))}}return eK({width:d,height:f,x:u,y:c})}function ts(e,t){let n=e9(e).scrollLeft;return t?t.left+n:tl(eX(e)).left+n}function ta(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ts(e,r)),y:r.top+t.scrollTop}}function tu(e,t,n){var r;let o;if("viewport"===t)o=function(e,t){let n=eG(e),r=eX(e),o=n.visualVie
1wport,i=r.clientWidth,l=r.clientHeight,s=0,a=0;if(o){i=o.width,l=o.height;let e=e4();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,a=o.offsetTop)}return{width:i,height:l,x:s,y:a}}(e,n);else if("document"===t){let t,n,i,l,s,a,u;r=eX(e),t=eX(r),n=e9(r),i=r.ownerDocument.body,l=eL(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=eL(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),a=-n.scrollLeft+ts(r),u=-n.scrollTop,"rtl"===e6(i).direction&&(a+=eL(t.clientWidth,i.clientWidth)-l),o={width:l,height:s,x:a,y:u}}else if(eZ(t)){let e,r,i,l,s,a;r=(e=tl(t,!0,"fixed"===n)).top+t.clientTop,i=e.left+t.clientLeft,l=eJ(t)?tr(t):eN(1),s=t.clientWidth*l.x,a=t.clientHeight*l.y,o={width:s,height:a,x:i*l.x,y:r*l.y}}else{let n=ti(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return eK(o)}function tc(e){return"static"===e6(e).position}function td(e,t){if(!eJ(e)||"fixed"===e6(e).position)return null;if(t)return t(e);let n=e.offsetParent;return eX(e)===n&&(n=n.ownerDocument.body),n}function tf(e,t){let n=eG(e);if(e5(e))return n;if(!eJ(e)){let t=e7(e);for(;t&&!e3(t);){if(eZ(t)&&!tc(t))return t;t=e7(t)}return n}let r=td(e,t);for(;r&&["table","td","th"].includes(eQ(r))&&tc(r);)r=td(r,t);return r&&e3(r)&&tc(r)&&!e2(r)?n:r||function(e){let t=e7(e);for(;eJ(t)&&!e3(t);){if(e2(t))return t;if(e5(t))break;t=e7(t)}return null}(e)||n}let tp=async function(e){let t=this.getOffsetParent||tf,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=eJ(t),o=eX(t),i="fixed"===n,l=tl(e,!0,i,t),s={scrollLeft:0,scrollTop:0},a=eN(0);if(r||!r&&!i)if(("body"!==eQ(t)||e1(o))&&(s=e9(t)),r){let e=tl(t,!0,i,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else o&&(a.x=ts(o));let u=!o||r||i?eN(0):ta(o,s);return{x:l.left+s.scrollLeft-a.x-u.x,y:l.top+s.scrollTop-a.y-u.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},tm={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,l=eX(r),s=!!t&&e5(t.floating);if(r===l||s&&i)return n;let a={scrollLeft:0,scrollTop:0},u=eN(1),c=eN(0),d=eJ(r);if((d||!d&&!i)&&(("body"!==eQ(r)||e1(l))&&(a=e9(r)),eJ(r))){let e=tl(r);u=tr(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!l||d||i?eN(0):ta(l,a,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-a.scrollTop*u.y+c.y+f.y}},getDocumentElement:eX,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?e5(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=e8(e,[],!1).filter(e=>eZ(e)&&"body"!==eQ(e)),o=null,i="fixed"===e6(e).position,l=i?e7(e):e;for(;eZ(l)&&!e3(l);){let t=e6(l),n=e2(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||e1(l)&&!n&&function e(t,n){let r=e7(t);return!(r===n||!eZ(r)||e3(r))&&("fixed"===e6(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=e7(l)}return t.set(e,r),r}(t,this._c):[].concat(n),r],l=i[0],s=i.reduce((e,n)=>{let r=tu(t,n,o);return e.top=eL(r.top,e.top),e.right=ej(r.right,e.right),e.bottom=ej(r.bottom,e.bottom),e.left=eL(r.left,e.left),e},tu(t,l,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:tf,getElementRects:tp,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=tt(e);return{width:t,height:n}},getScale:tr,isElement:eZ,isRTL:function(e){return"rtl"===e6(e).direction}};function th(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tv(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=tn(e),d=i||l?[...c?e8(c):[],...e8(t)]:[];d.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});let f=c&&a?function(e,t){let n,r=null,o=eX(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function l(s,a){void 0===s&&(s=!1),void 0===a&&(a=1),i();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(s||t(),!f||!p)return;let m={rootMargin:-eO(d)+"px "+-eO(o.clientWidth-(c+f))+"px "+-eO(o.clientHeight-(d+p))+"px "+-eO(c)+"px",threshold:eL(0,ej(1,a))||1},h=!0;function v(t){let r=t[0].intersectionRatio;if(r!==a){if(!h)return l();r?l(!1,r):n=setTimeout(()=>{l(!1,1e-7)},1e3)}1!==r||th(u,e.getBoundingClientRect())||l(),h=!1}try{r=new IntersectionObserver(v,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(v,m)}r.observe(e)}(!0),i}(c,n):null,p=-1,m=null;s&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!u&&m.observe(c),m.observe(t));let h=u?tl(e):null;return u&&function t(){let r=tl(e);h&&!th(h,r)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;
1d.forEach(e=>{i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,u&&cancelAnimationFrame(o)}}var tb="u">typeof document?v.useLayoutEffect:v.useEffect;function tg(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!tg(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!tg(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function tx(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ty(e,t){let n=tx(e);return Math.round(t*n)/n}function tw(e){let t=v.useRef(e);return tb(()=>{t.current=e}),t}let tE=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:l,middlewareData:s}=e,a=await eU(e,n);return l===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:l}}}}),options:[e,t]}};var tk="u"<typeof Element;tk||Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,tk||Element.prototype.getRootNode;let tS={...v},tC=tS.useInsertionEffect||(e=>e());function tT(e){let t=v.useRef(()=>{});return tC(()=>{t.current=e}),v.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}var tj="u">typeof document?v.useLayoutEffect:v.useEffect;let tL=!1,tR=0,tO=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+tR++,tN=tS.useId||function(){let[e,t]=v.useState(()=>tL?tO():void 0);return tj(()=>{null==e&&t(tO())},[]),v.useEffect(()=>{tL=!0},[]),e},tM=v.createContext(null),tP=v.createContext(null),tF="active",tI="selected";function tA(e,t,n){let r=new Map,o="item"===n,i=e;if(o&&e){let{[tF]:t,[tI]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,"data-floating-ui-focusable":""},...i,...t.map(t=>{let r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>(t&&Object.entries(t).forEach(t=>{let[n,i]=t;if(!(o&&[tF,tI].includes(n)))if(0===n.indexOf("on")){if(r.has(n)||r.set(n,[]),"function"==typeof i){var l;null==(l=r.get(n))||l.push(i),e[n]=function(){for(var e,t=arguments.length,o=Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map(e=>e(...o)).find(e=>void 0!==e)}}}else e[n]=i}),e),{})}}function tD(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}let tH=(0,v.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});tH.displayName="FloatingContext";let t_=(0,v.createContext)(null);function tB({children:e,enabled:t=!0}){var n,r,o,i,l,s,a,u,c,d,f,p,m,h,b,g;let x,y,w,E,k,S,C,T,j,L,[R,O]=(0,v.useState)(null),[N,M]=(0,v.useState)(0),P=(0,v.useRef)(null),[F,I]=(0,v.useState)(null);f=F,(0,ei.useIsoMorphicEffect)(()=>{if(!f)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(f).maxHeight,t=parseFloat(e);if(isNaN(t))return;let n=parseInt(e);isNaN(n)||t!==n&&(f.style.maxHeight=`${Math.ceil(t)}px`)});return e.observe(f,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[f]);let A=t&&null!==R&&null!==F,{to:D="bottom",gap:H=0,offset:_=0,padding:B=0,inner:W}=(p=R,m=F,x=tW(null!=(h=null==p?void 0:p.gap)?h:"var(--anchor-gap, 0)",m),y=tW(null!=(b=null==p?void 0:p.offset)?b:"var(--anchor-offset, 0)",m),w=tW(null!=(g=null==p?void 0:p.padding)?g:"var(--anchor-padding, 0)",m),{...p,gap:x,offset:y,padding:w}),[K,V="center"]=D.split(" ");(0,ei.useIsoMorphicEffect)(()=>{A&&M(0)},[A]);let{refs:z,floatingStyles:$,context:U}=function(e){void 0===e&&(e={});let{nodeId:t}=e,n=function(e){var t;let{open:n=!1,onOpenChange:r,elements:o}=e,i=tN(),l=v.useRef({}),[s]=v.useState(()=>{let e;
1return e=new Map,{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}),a=null!=((null==(t=v.useContext(tM))?void 0:t.id)||null),[u,c]=v.useState(o.reference),d=tT((e,t,n)=>{l.current.openEvent=e?t:void 0,s.emit("openchange",{open:e,event:t,reason:n,nested:a}),null==r||r(e,t,n)}),f=v.useMemo(()=>({setPositionReference:c}),[]),p=v.useMemo(()=>({reference:u||o.reference||null,floating:o.floating||null,domReference:o.reference}),[u,o.reference,o.floating]);return v.useMemo(()=>({dataRef:l,open:n,onOpenChange:d,elements:p,events:s,floatingId:i,refs:f}),[n,d,p,s,i,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,l]=v.useState(null),[s,a]=v.useState(null),u=(null==o?void 0:o.domReference)||i,c=v.useRef(null),d=v.useContext(tP);tj(()=>{u&&(c.current=u)},[u]);let f=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:a,open:u}=e,[c,d]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=v.useState(r);tg(f,r)||p(r);let[m,h]=v.useState(null),[b,g]=v.useState(null),x=v.useCallback(e=>{e!==k.current&&(k.current=e,h(e))},[]),y=v.useCallback(e=>{e!==S.current&&(S.current=e,g(e))},[]),w=i||m,E=l||b,k=v.useRef(null),S=v.useRef(null),C=v.useRef(c),T=null!=a,j=tw(a),L=tw(o),R=tw(u),O=v.useCallback(()=>{var e,r;let o,i,l;if(!k.current||!S.current)return;let s={placement:t,strategy:n,middleware:f};L.current&&(s.platform=L.current),(e=k.current,r=S.current,o=new Map,l={...(i={platform:tm,...s}).platform,_c:o},ez(e,r,{...i,platform:l})).then(e=>{let t={...e,isPositioned:!1!==R.current};N.current&&!tg(C.current,t)&&(C.current=t,ee.flushSync(()=>{d(t)}))})},[f,t,n,L,R]);tb(()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let N=v.useRef(!1);tb(()=>(N.current=!0,()=>{N.current=!1}),[]),tb(()=>{if(w&&(k.current=w),E&&(S.current=E),w&&E){if(j.current)return j.current(w,E,O);O()}},[w,E,O,j,T]);let M=v.useMemo(()=>({reference:k,floating:S,setReference:x,setFloating:y}),[x,y]),P=v.useMemo(()=>({reference:w,floating:E}),[w,E]),F=v.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=ty(P.floating,c.x),r=ty(P.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...tx(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,P.floating,c.x,c.y]);return v.useMemo(()=>({...c,update:O,refs:M,elements:P,floatingStyles:F}),[c,O,M,P,F])}({...e,elements:{...o,...s&&{reference:s}}}),p=v.useCallback(e=>{let t=eZ(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;a(t),f.refs.setReference(t)},[f.refs]),m=v.useCallback(e=>{(eZ(e)||null===e)&&(c.current=e,l(e)),(eZ(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!eZ(e))&&f.refs.setReference(e)},[f.refs]),h=v.useMemo(()=>({...f.refs,setReference:m,setPositionReference:p,domReference:c}),[f.refs,m,p]),b=v.useMemo(()=>({...f.elements,domReference:u}),[f.elements,u]),g=v.useMemo(()=>({...f,...r,refs:h,elements:b,nodeId:t}),[f,h,b,t,r]);return tj(()=>{r.dataRef.current.floatingContext=g;let e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=g)}),v.useMemo(()=>({...f,context:g,refs:h,elements:b}),[f,h,b,g])}({open:A,placement:"selection"===K?"center"===V?"bottom":`bottom-${V}`:"center"===V?`${K}`:`${K}-${V}`,strategy:"absolute",transform:!1,middleware:[tE({mainAxis:"selection"===K?0:H,crossAxis:_}),{...{name:"shift",options:o=n={padding:B},async fn(e){let{x:t,y:n,placement:r}=e,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=eF(o,e),u={x:t,y:n},c=await e$(e,a),d=e_(eI(r)),f=eD(d),p=u[f],m=u[d];if(i){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+c[e],r=p-c[t];p=eL(n,ej(p,r))}if(l){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=m+c[e],r=m-c[t];m=eL(n,ej(m,r))}let h=s.fn({...e,[f]:p,[d]:m});return{...h,data:{x:h.x-t,y:h.y-n,enabled:{[f]:i,[d]:l}}}}},options:[n,r]},"selection"!==K&&{...{name:"flip",options:s=i={padding:B},async fn(e){var t,n,r,o,i,l,a,u;let c,d,f,{placement:p,middlewareData:m,rects:h,initialPlacement:v,platform:b,elements:g}=e,{mainAxis:x=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:k="none",flipAlignment:S=!0,...C}=eF(s,e);if(null!=(t=m.arrow)&&t.alignmentOffset)return{};let T=eI(p),j=e_(v),L=eI(v)===v,R=await (null==b.isRTL?void 0:b.isRTL(g.floating)),O=w||(L||!S?[eW(v)]:(c=eW(v),[eB(v),c,eB(c)])),N="none"!==k;!w&&N&&O.push(...(d=eA(v),f=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(eI(v),"start"===k,R),d&&(f=f.map(e=>e+"-"+d),S&&(f=f.concat(f.map(eB)))),f));let M=[v,...O],P=await e$(e,C),F=[],I=(null==(n=m.flip)?void 0:n.overflows)||[];if(x&&F.push(P[T]),y){let e,t,n,r,o=(l=p,a=h,void 0===(u=R)&&(u=!1),e=eA(l),n=eH(t=eD(e_(l))),r="x"===t?e===(u?"end":"start")?"right":"left":"start"===e?"bottom":"top",a.reference[n]>a.floating[n]&&(r=eW(r)),[r,eW(r)]);F.push(P[o[0]],P[o[1]])}if(I=[...I,{placement:p,overflows:F}],!F.every(e=>e<=0)){let e=((null==(r=m.flip)?void 0:r.index)||0)+1,t=M[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(o=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(E){case"bestFit":{let e=null==(i=I.filter(e=>{if(N){let t=e_(e.placement);return t===j||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:i[0];e&&(n=e);break}case"initialPlacement":n=v}if(p!==n)return{reset:{placement:n}}}return{}}},options:[i,l]},"selection"===K&&W?{name:"inner",options:E={...W,padding:B,overflowRef:P,offset:N,minItemsVisible:4,referenceOverflowThreshold:B,onFallbackChange(e){var t,n;if(!e)return;let r=U.elements.floating;if(!r)return;let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,i=Math.min(4,r.childElementCount),l=0,s=0;for(let e of null!=(n=null==(t=U.elements.floating)?void 0:t.childNodes)?n:[])if(ea.isHTMLElement(e)){let t=e.offsetTop,n=t+e.clientHeight+o,a=r.scrollTop,u=a+r.clientHeight;if(t>=a&&n<=u)i--;else{s=Math.max(0,Math.min(n,u)-Math.max(t,a)),l=e.clientHeight;break}}i>=1&&M(e=>{let t=l*i-s+o;return e>=t?e:t})}},async fn(e){let{listRef:t,overflowRef:n,onFallbackChange:r,offset:o=0,index:i=0,minItemsVisible:l=4,referenceOverflowThreshold:s=0,scrollRef:a,...u}=eF(E,e),{rects:c,elements:{floating:d}}=e,f=t.current[i],p=(null==a?void 0:a.current)||d,m=d.clientTop||p.clientTop,h=0!==d.clientTop,v=0!==p.clientTop,b=d===p;if(!f)return{};let g={...e,...await tE(-f.offsetTop-d.clientTop-c.reference.height/2-f.offsetHeight/2-o).fn(e)},x=await e$(tD(g,p.scrollHeight+m+d.clientTop),u),y=await e$(g,{...u,elementContext:"reference"}),w=eL(0,x.top),k=g.y+w,S=(p.scrollHeight>p.clientHeight?e=>e:eR)(eL(0,p.scrollHeight+(h&&b||v?2*m:0)-w-eL(0,x.bottom)));if(p.style.maxHeight=S+"px",p.scrollTop=w,r){let e=p.offsetHeight<f.offsetHeight*ej(l,t.current.length)-1||y.top>=-s||y.bottom>=-s;ee.flushSync(()=>r(e))}return n&&(n.current=await e$(tD({...g,y:k},p.offsetHeight+m+d.clientTop),u)),{y:k}}}:null,{...{name:"size",options:c=a={padding:B,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}},async fn(e){var t,n;let r,o,{placement:i,rects:l,platform:s,elements:a}=e,{apply:u=()=>{},...d}=eF(c,e),f=await e$(e,d),p=eI(i),m=eA(i),h="y"===e_(i),{width:v,height:b}=l.floating;"top"===p||"bottom"===p?(r=p,o=m===(await (null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(o=p,r="end"===m?"top":"bottom");let g=b-f.top-f.bottom,x=v-f.left-f.right,y=ej(b-f[r],g),w=ej(v-f[o],x),E=!e.middlewareData.shift,k=y,S=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(S=x),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(k=g),E&&!m){let e=eL(f.left,0),t=eL(f.right,0),n=eL(f.top,0),r=eL(f.bottom,0);h?S=v-2*(0!==e||0!==t?e+t:eL(f.left,f.right)):k=b-2*(0!==n||0!==r?n+r:eL(f.top,f.bottom))}await u({...e,availableWidth:S,availableHeight:k});let C=await s.getDimensions(a.floating);return v!==C.width||b!==C.height?{reset:{rects:!0}}:{}}},options:[a,u]}].filter(Boolean),whileElementsMounted:tv}),[q=K,Q=V]=U.placement.split("-");"selection"===K&&(q="selection");let G=(0,v.useMemo)(()=>({anchor:[q,Q].filter(Boolean).join(" ")}),[q,Q]),{getReferenceProps:X,getFloatingProps:Y}=(k=(d=[function(e,t){let{open:n,elements:r}=e,{enabled:o=!0,overflowRef:i,scrollRef:l,onChange:s}=t,a=tT(s),u=v.useRef(!1),c=v.useRef(null),d=v.useRef(null);v.useEffect(()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;let n=e.deltaY,r=i.current.top>=-.5,o=i.current.bottom>=-.5,l=t.scrollHeight-t.clientHeight,s=n<0?-1:1,u=n<0?"max":"min";if(!(t.scrollHeight<=t.clientHeight))if(!r&&n>0||!o&&n<0)e.preventDefault(),ee.flushSync(()=>{a(e=>e+Math[u](n,l*s))});else{let e;/firefox/i.test((e=navigator.userAgentData)&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent)&&(t.scrollTop+=n)}}let t=(null==l?void 0:l.current)||r.floating;if(n&&t)return t.addEventListener("wheel",e),requestAnimationFrame(()=>{c.current=t.scrollTop,null!=i.current&&(d.current={...i.current})}),()=>{c.current=null,d.current=null,t.removeEventListener("wheel",e)}},[o,n,r.floating,i,l,a]);let f=v.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){let e=(null==l?void 0:l.current)||r.floating;if(i.current&&e&&u.current){if(null!==c.current){let t=e.scrollTop-c.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&ee.flushSync(()=>a(e=>e+t))}requestAnimationFrame(()=>{c.current=e.scrollTop})}}}),[r.floating,a,i,l]);return v.useMemo(()=>o?{floating:f}:{},[o,f])}(U,{overflowRef:P,onChange:M})]).map(e=>null==e?void 0:e.reference),S=d.map(e=>null==e?void 0:e.floating),C=d.map(e=>null==e?void 0:e.item),T=v.useCallback(e=>tA(e,d,"reference"),k),j=v.useCallback(e=>tA(e,d,"floating"),S),L=v.useCallback(e=>tA(e,d,"item"),C),v.useMemo(()=>({getReferenceProps:T,getFloatingProps:j,getItemProps:L}),[T,j,L])),Z=(0,er.useEvent)(e=>{I(e),z.setFloating(e)});return v.createElement(t_.Provider,{value:O},v.createElement(tH.Provider,{value:{setFloating:Z,setReference:z.setReference,styles:$,getReferenceProps:X,getFloatingProps:Y,slot:G}},e))}function tW(e,t,n){let r=(0,en.useDisposables)(),o=(0,er.useEvent)((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let o=tK(e,t);return[o,n=>{let i=function e(t){let n=/var\((.*)\)/.exec(t);if(n){let t=n[1].indexOf(",");if(-1===t)return[n[1]];let r=n[1].slice(0,t).trim(),o=n[1].slice(t+1).trim();return o?[r,...e(o)]:[r]}return[]}(e);{let l=i.map(e=>window.getComputedStyle(t).getPropertyValue(e));r.requestAnimationFrame(function s(){r.nextFrame(s);let a=!1;for(let[e,n]of i.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(l[e]!==r){l[e]=r,a=!0;break}}if(!a)return;let u=tK(e,t);o!==u&&(n(u),o=u)})}return r.dispose}]}return[n,null]}),i=(0,v.useMemo)(()=>o(e,t)[0],[e,t]),[l=i,s]=(0,v.useState)();return(0,ei.useIsoMorphicEffect)(()=>{let[n,r]=o(e,t);if(s(n),r)return r(s)},[e,t]),l}function tK(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}t_.displayName="PlacementContext";function tV(e,t){return e?e+"["+t+"]":t}var tz=e.i(64398),t$=e.i(22151);let tU=(0,v.createContext)(null);function tq({children:e}){let t=(0,v.useContext)(tU);if(!t)return v.default.createElement(v.default.Fragment,null,e);let{target:n}=t;return n?(0,ee.createPortal)(v.default.createElement(v.default.Fragment,null,e),n):null}function tQ({data:e,form:t,disabled:n,onReset:r,overrides:o}){let[i,l]=(0,v.useState)(null),s=(0,en.useDisposables)();return(0,v.useEffect)(()=>
1{if(r&&i)return s.addEventListener(i,"reset",r)},[i,t,r]),v.default.createElement(tq,null,v.default.createElement(tG,{setForm:l,formId:t}),(function e(t={},n=null,r=[]){for(let[o,i]of Object.entries(t))!function t(n,r,o){if(Array.isArray(o))for(let[e,i]of o.entries())t(n,tV(r,e.toString()),i);else o instanceof Date?n.push([r,o.toISOString()]):"boolean"==typeof o?n.push([r,o?"1":"0"]):"string"==typeof o?n.push([r,o]):"number"==typeof o?n.push([r,`${o}`]):null==o?n.push([r,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(o)&&!(0,v.isValidElement)(o)&&e(o,r,n)}(r,tV(n,o),i);return r})(e).map(([e,r])=>v.default.createElement(t$.Hidden,{features:t$.HiddenFeatures.Hidden,...(0,tz.compact)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:r,...o})})))}function tG({setForm:e,formId:t}){return(0,v.useEffect)(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:v.default.createElement(t$.Hidden,{features:t$.HiddenFeatures.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}function tX(e,t){let[n,r]=(0,v.useState)(t);return e||n===t||r(t),e?n:t}v.default.forwardRef(function({children:e,freeze:t},n){let r=tX(t,e);return(0,v.isValidElement)(r)?(0,v.cloneElement)(r,{ref:n}):v.default.createElement(v.default.Fragment,null,r)});let tY=(0,v.createContext)(void 0);function tZ(){return(0,v.useContext)(tY)}var tJ=e.i(5548),t0=e.i(87629),t1=e.i(70401),t5=((o=t5||{})[o.First=0]="First",o[o.Previous=1]="Previous",o[o.Next=2]="Next",o[o.Last=3]="Last",o[o.Specific=4]="Specific",o[o.Nothing=5]="Nothing",o);function t2(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===o&&(o=n.length);for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:throw Error("Unexpected object: "+e)}}var t4=e.i(36883),t3=e.i(3621),t6=e.i(76224),t9=e.i(19100);let t7=(0,v.createContext)(null);function t8(e){var t,n,r;let o=null!=(n=null==(t=(0,v.useContext)(t7))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[o,...e].filter(Boolean).join(" "):o}t7.displayName="LabelContext";let ne=Object.assign((0,tz.forwardRefWithAs)(function(e,t){var n;let r=(0,v.useId)(),o=function e(){let t=(0,v.useContext)(t7);if(null===t){let t=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),i=tZ(),l=(0,eT.useDisabled)(),{id:s=`headlessui-label-${r}`,htmlFor:a=null!=i?i:null==(n=o.props)?void 0:n.htmlFor,passive:u=!1,...c}=e,d=(0,ew.useSyncRefs)(t);(0,ei.useIsoMorphicEffect)(()=>o.register(s),[s,o.register]);let f=(0,er.useEvent)(e=>{let t=e.currentTarget;if(!(e.target!==e.currentTarget&&ea.isInteractiveElement(e.target))&&(ea.isHTMLLabelElement(t)&&e.preventDefault(),o.props&&"onClick"in o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),ea.isHTMLLabelElement(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(ea.isHTMLInputElement(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),p=(0,ey.useSlot)({...o.slot,disabled:l||!1}),m={ref:d,...o.props,id:s,htmlFor:a,onClick:f};return u&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in c&&delete c.onClick),(0,tz.useRender)()({ourProps:m,theirProps:c,slot:p,defaultTag:a?"label":"div",name:o.name||"Label"})}),{});var nt=e.i(63273),nn=e.i(9230);let nr={kind:"Idle"},no={kind:"Moved"};function ni(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}var nl=Object.defineProperty,ns=(e,t,n)=>{let r;return(r="symbol"!=typeof t?t+"":t)in e?nl(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,n},na=((i=na||{})[i.Open=0]="Open",i[i.Closed=1]="Closed",i),nu=((l=nu||{})[l.Single=0]="Single",l[l.Multi=1]="Multi",l),nc=((s=nc||{})[s.Pointer=0]="Pointer",s[s.Other=1]="Other",s),nd=((a=nd||{})[a.OpenListbox=0]="OpenListbox",a[a.CloseListbox=1]="CloseListbox",a[a.GoToOption=2]="GoToOption",a[a.Search=3]="Search",a[a.ClearSearch=4]="ClearSearch",a[a.SelectOption=5]="SelectOption",a[a.RegisterOptions=6]="RegisterOptions",a[a.UnregisterOptions=7]="UnregisterOptions",a[a.SetButtonElement=8]="SetButtonElement",a[a.SetOptionsElement=9]="SetOptionsElement",a[a.SortOptions=10]="SortOptions",a[a.MarkButtonAsMoved=11]="MarkButtonAsMoved",a);
1function nf(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,t4.sortByDomNode)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{options:r,activeOptionIndex:o}}let np={1(e){if(e.dataRef.current.disabled||1===e.listboxState)return e;let t=e.buttonElement?{kind:"Tracked",position:ni(e.buttonElement)}:e.buttonPositionState;return{...e,activeOptionIndex:null,pendingFocus:{focus:t5.Nothing},listboxState:1,__demoMode:!1,buttonPositionState:t}},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,o=e.options.findIndex(e=>r(e.dataRef.current.value));return -1!==o&&(n=o),{...e,frozenValue:!1,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1,buttonPositionState:nr}},2(e,t){var n,r,o,i,l;if(e.dataRef.current.disabled||1===e.listboxState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===t5.Nothing)return{...s,activeOptionIndex:null};if(t.focus===t5.Specific)return{...s,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===t5.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,l=t2(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==l){let t=e.options[l].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||(null==(o=t.current)?void 0:o.previousElementSibling)===null)return{...s,activeOptionIndex:l}}}}else if(t.focus===t5.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,o=t2(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...s,activeOptionIndex:o}}}}let a=nf(e),u=t2(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...a,activeOptionIndex:u}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=+(""===e.searchQuery),r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),i=o?e.options.indexOf(o):-1;return -1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:e=>0===e.dataRef.current.mode?{...e,frozenValue:!0}:{...e},6:(e,t)=>{let n=e.options.concat(t.options),r=e.activeOptionIndex;if(e.pendingFocus.focus!==t5.Nothing&&(r=t2(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex(e=>null==t?void 0:t(e.dataRef.current.value));-1!==e&&(r=e)}}return{...e,options:n,activeOptionIndex:r,pendingFocus:{focus:t5.Nothing},pendingShouldSort:!0}},7:(e,t)=>{let n=e.options,r=[],o=new Set(t.options);for(let[e,t]of n.entries())if(o.has(t.id)&&(r.push(e),o.delete(t.id),0===o.size))break;if(r.length>0)for(let e of(n=n.slice(),r.reverse()))n.splice(e,1);return{...e,options:n,activationTrigger:1}},8:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},9:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},10:e=>e.pendingShouldSort?{...e,...nf(e),pendingShouldSort:!1}:e,11:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:no}};class nm extends nn.Machine{constructor(e){super(e),ns(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:o}=this.state.dataRef.current;return(0,t3.match)(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=o.slice(),i=r.findIndex(t=>n(t,e));return -1===i?r.push(e):r.splice(i,1),null==t?void 0:t(r)}})},registerOption:(0,nn.batch)(()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:6,options:e.splice(0)}))]}),unregisterOption:(0,nn.batch)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:7,options:e.splice(0)})}]}),goToOption:(0,nn.batch)(()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]}),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{var e;if(null!==this.state.activeOptionIndex){let{dataRef:e}=this.state.options[this.state.activeOptionIndex];this.actions.selectOption(e.current.value)}else 0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(e=this.state.buttonElement)||e.focus({preventScroll:!0}))},selectOption:e=>{this.send({type:5,value:e})},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:8,element:e})},setOptionsElement:e=>{this.send({type:9,element:e})}}),ns(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,r=e.options;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeOptionIndex,o=e.options;return null!==r&&(null==(n=o[r])?void 0:n.id)===t},hasFrozenValue:e=>e.frozenValue,shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(6,()=>{requestAnimationFrame(()=>{this.send({type:10})})});{let e=this.state.id,t=t0.stackMachines.get(null);this.disposables.add(t.on(t0.ActionTypes.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.listboxState||this.actions.closeListbox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>
1{t.buttonElement&&(e.dispose(),e.add(function(e,t,n){let r=(0,eo.disposables)();if("Tracked"===t.kind){let o=function(){i!==ni(e)&&(r.dispose(),n())},{position:i}=t,l=new ResizeObserver(o);l.observe(e),r.add(()=>l.disconnect()),r.addEventListener(window,"scroll",o,{passive:!0}),r.addEventListener(window,"resize",o)}return()=>r.dispose()}(t.buttonElement,t.buttonPositionState,()=>{this.send({type:11})})))})}),this.on(5,(e,t)=>{var n;this.actions.onChange(t.value),0===this.state.dataRef.current.mode&&(this.actions.closeListbox(),null==(n=this.state.buttonElement)||n.focus({preventScroll:!0}))})}static new({id:e,__demoMode:t=!1}){return new nm({id:e,dataRef:{current:{}},listboxState:+!t,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:t5.Nothing},frozenValue:!1,__demoMode:t,buttonPositionState:nr})}reduce(e,t){return(0,t3.match)(t.type,np,e,t)}}var nh=e.i(50332);let nv=(0,v.createContext)(null);function nb(e){let t=(0,v.useContext)(nv);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ng),t}return t}function ng({id:e,__demoMode:t=!1}){let n=(0,v.useMemo)(()=>nm.new({id:e,__demoMode:t}),[]);return(0,nh.useOnUnmount)(()=>n.dispose()),n}let nx=(0,v.createContext)(null);function ny(e){let t=(0,v.useContext)(nx);if(null===t){let t=Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ny),t}return t}nx.displayName="ListboxDataContext";let nw=v.Fragment,nE=(0,v.createContext)(!1),nk=tz.RenderFeatures.RenderStrategy|tz.RenderFeatures.Static,nS=v.Fragment,nC=(0,tz.forwardRefWithAs)(function(e,t){let n=(0,v.useId)(),r=(0,eT.useDisabled)(),{value:o,defaultValue:i,form:l,name:s,onChange:a,by:u,invalid:c=!1,disabled:d=r||!1,horizontal:f=!1,multiple:p=!1,__demoMode:m=!1,...h}=e,b=(0,ew.useSyncRefs)(t),g=function(e){let[t]=(0,v.useState)(e);return t}(i),[x=p?[]:void 0,y]=function(e,t,n){let[r,o]=(0,v.useState)(n),i=void 0!==e,l=(0,v.useRef)(i),s=(0,v.useRef)(!1),a=(0,v.useRef)(!1);
1return!i||l.current||s.current?i||!l.current||a.current||(a.current=!0,l.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,l.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:r,(0,er.useEvent)(e=>(i||(0,ee.flushSync)(()=>o(e)),null==t?void 0:t(e)))]}(o,a,g),w=ng({id:n,__demoMode:m}),E=(0,v.useRef)({static:!1,hold:!1}),k=(0,v.useRef)(new Map),S=function(e=function(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}){return(0,v.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}(u),C=(0,v.useCallback)(e=>(0,t3.match)(T.mode,{[nu.Multi]:()=>x.some(t=>S(t,e)),[nu.Single]:()=>S(x,e)}),[x]),T=(0,ey.useSlot)({value:x,disabled:d,invalid:c,mode:p?nu.Multi:nu.Single,orientation:f?"horizontal":"vertical",onChange:y,compare:S,isSelected:C,optionsPropsRef:E,listRef:k});(0,ei.useIsoMorphicEffect)(()=>{w.state.dataRef.current=T},[T]);let j=(0,t1.useSlice)(w,e=>e.listboxState),L=t0.stackMachines.get(null),R=(0,t1.useSlice)(L,(0,v.useCallback)(e=>L.selectors.isTop(e,n),[L,n])),[O,N]=(0,t1.useSlice)(w,e=>[e.buttonElement,e.optionsElement]);(0,ep.useOutsideClick)(R,[O,N],(e,t)=>{w.send({type:nd.CloseListbox}),(0,t4.isFocusableElement)(t,t4.FocusableMode.Loose)||(e.preventDefault(),null==O||O.focus())});let M=(0,ey.useSlot)({open:j===na.Open,disabled:d,invalid:c,value:x}),[P,F]=function({inherit:e=!1}={}){let t=t8(),[n,r]=(0,v.useState)([]),o=e?[t,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,(0,v.useMemo)(()=>function(e){let t=(0,er.useEvent)(e=>(r(t=>[...t,e]),()=>r(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),n=(0,v.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return v.default.createElement(t7.Provider,{value:n},e.children)},[r])]}({inherit:!0}),I=(0,v.useCallback)(()=>{if(void 0!==g)return null==y?void 0:y(g)},[y,g]),A=(0,tz.useRender)();return v.default.createElement(F,{value:P,props:{htmlFor:null==O?void 0:O.id},slot:{open:j===na.Open,disabled:d}},v.default.createElement(tB,null,v.default.createElement(nv.Provider,{value:w},v.default.createElement(nx.Provider,{value:T},v.default.createElement(tJ.OpenClosedProvider,{value:(0,t3.match)(j,{[na.Open]:tJ.State.Open,[na.Closed]:tJ.State.Closed})},null!=s&&null!=x&&v.default.createElement(tQ,{disabled:d,data:{[s]:x},form:l,onReset:I}),A({ourProps:{ref:b},theirProps:h,slot:M,defaultTag:nw,name:"Listbox"}))))))}),nT=(0,tz.forwardRefWithAs)(function(e,t){var n;let r,o=(0,v.useId)(),i=tZ(),l=ny("Listbox.Button"),s=nb("Listbox.Button"),{id:a=i||`headlessui-listbox-button-${o}`,disabled:u=l.disabled||!1,autoFocus:m=!1,...h}=e,b=(0,ew.useSyncRefs)(t,(0,v.useContext)(tH).setReference,s.actions.setButtonElement),y=(0,v.useContext)(tH).getReferenceProps,[w,E,k]=(0,t1.useSlice)(s,e=>[e.listboxState,e.buttonElement,e.optionsElement]);!function(e,{trigger:t,action:n,close:r,select:o}){let i=(0,v.useRef)(null),l=(0,v.useRef)(null),s=(0,v.useRef)(null);(0,eh.useDocumentEvent)(e&&null!==t,"pointerdown",e=>{ea.isNode(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(l.current=e.x,s.current=e.y,i.current=e.timeStamp)}),(0,eh.useDocumentEvent)(e&&null!==t,"pointerup",e=>{var t,a;let u=i.current;if(null===u||(i.current=null,!ea.isHTMLorSVGElement(e.target))||5>Math.abs(e.x-(null!=(t=l.current)?t:e.x))&&5>Math.abs(e.y-(null!=(a=s.current)?a:e.y)))return;let c=n(e);switch(c.kind){case 0:return;case 1:e.timeStamp-u>200&&(o(c.target),r());break;case 2:r()}},{capture:!0})}(w===na.Open,{trigger:E,action:(0,v.useCallback)(e=>{if(null!=E&&E.contains(e.target))return eb;let t=e.target.closest('[role="option"]:not([data-disabled])');return ea.isHTMLElement(t)?{kind:1,target:t}:null!=k&&k.contains(e.target)?eb:eg},[E,k]),close:s.actions.closeListbox,select:s.actions.selectActiveOption});let S=(0,er.useEvent)(e=>{switch(e.key){case t9.Keys.Enter:!function(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}}(e.currentTarget);break;case t9.Keys.Space:case t9.Keys.ArrowDown:e.preventDefault(),s.actions.openListbox({focus:l.value?t5.Nothing:t5.First});break;case t9.Keys.ArrowUp:e.preventDefault(),s.actions.openListbox({focus:l.value?t5.Nothing:t5.Last})}}),C=(0,er.useEvent)(e=>{e.key===t9.Keys.Space&&e.preventDefault()}),T=(n=e=>{var t;s.state.listboxState===na.Open?((0,ee.flushSync)(()=>s.actions.closeListbox()),null==(t=s.state.buttonElement)||t.focu
1s({preventScroll:!0})):(e.preventDefault(),s.actions.openListbox({focus:t5.Nothing}))},r=(0,v.useRef)(null),{onPointerDown:(0,er.useEvent)(e=>{r.current=e.pointerType,eu(e.currentTarget)||"mouse"!==e.pointerType||e.button!==es.Left||(e.preventDefault(),n(e))}),onClick:(0,er.useEvent)(e=>{"mouse"!==r.current&&(eu(e.currentTarget)||n(e))})}),j=(0,er.useEvent)(e=>e.preventDefault()),L=t8([a]),R=(0,t6.useDescribedBy)(),{isFocusVisible:O,focusProps:N}=function(e={}){var t;let{autoFocus:n=!1,isTextInput:r,within:o}=e,i=(0,v.useRef)({isFocused:!1,isFocusVisible:n||q()}),[l,s]=(0,v.useState)(!1),[a,u]=(0,v.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),m=(0,v.useCallback)(()=>u(i.current.isFocused&&i.current.isFocusVisible),[]),h=(0,v.useCallback)(e=>{i.current.isFocused=e,i.current.isFocusVisible=q(),s(e),m()},[m]);t={enabled:l,isTextInput:r},$(),(0,v.useEffect)(()=>{if(t?.enabled===!1)return;let e=(e,n)=>{var r;let o,l,s,a,u,f,h,v;r=!!t?.isTextInput,l=c(o=n?p(n):void 0),a=void 0!==(s=d(o))?s.HTMLInputElement:HTMLInputElement,u=void 0!==s?s.HTMLTextAreaElement:HTMLTextAreaElement,f=void 0!==s?s.HTMLElement:HTMLElement,h=void 0!==s?s.KeyboardEvent:KeyboardEvent,v=((e=document)=>e.activeElement)(l),(r=r||v instanceof a&&!Q.has(v.type)||v instanceof u||v instanceof f&&v.isContentEditable)&&"keyboard"===e&&n instanceof h&&!H[n.key]||(e=>{i.current.isFocusVisible=e,m()})(q())};return F.add(e),()=>{F.delete(e)}},[r,l]);let{focusProps:b}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e,i=(0,v.useCallback)(e=>{if(p(e)===e.currentTarget)return r&&r(e),o&&o(!1),!0},[r,o]),l=x(i),s=(0,v.useCallback)(e=>{let t=p(e),r=c(t),i=r?((e=document)=>e.activeElement)(r):((e=document)=>e.activeElement)();t===e.currentTarget&&t===i&&(n&&n(e),o&&o(!0),l(e))},[o,n,l]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}({isDisabled:o,onFocusChange:h}),{focusWithinProps:y}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=(0,v.useRef)({isFocusWithin:!1}),{addGlobalListener:l,removeAllGlobalListeners:s}=G(),a=(0,v.useCallback)(e=>{f(e.currentTarget,p(e))&&i.current.isFocusWithin&&!f(e.currentTarget,e.relatedTarget)&&(i.current.isFocusWithin=!1,s(),n&&n(e),o&&o(!1))},[n,o,i,s]),u=x(a),d=(0,v.useCallback)(e=>{if(!f(e.currentTarget,p(e)))return;let t=p(e),n=c(t),s=((e=document)=>e.activeElement)(n);if(!i.current.isFocusWithin&&s===t){r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,u(e);let t=e.currentTarget;l(n,"focus",e=>{let r=p(e);if(i.current.isFocusWithin&&!f(t,r)){let e=new n.defaultView.FocusEvent("blur",{relatedTarget:r});Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t}),a(g(e))}},{capture:!0})}},[r,o,u,l,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:d,onBlur:a}}}({isDisabled:!o,onFocusWithinChange:h});return{isFocused:l,isFocusVisible:a,focusProps:o?y:b}}({autoFocus:m}),{isHovered:M,hoverProps:P}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,l]=(0,v.useState)(!1),s=(0,v.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,v.useEffect)(J,[]);let{addGlobalListener:a,removeAllGlobalListeners:u}=G(),{hoverProps:d,triggerHoverEnd:m}=(0,v.useMemo)(()=>{let e=(e,t)=>{let o=s.target;s.pointerType="",s.target=null,"touch"!==t&&s.isHovered&&o&&(s.isHovered=!1,u(),r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),l(!1))},i={};return"u">typeof PointerEvent&&(i.onPointerEnter=r=>{X&&"mouse"===r.pointerType||((r,i)=>{if(s.pointerType=i,o||"touch"===i||s.isHovered||!f(r.currentTarget,p(r)))return;s.isHovered=!0;let u=r.currentTarget;s.target=u,a(c(p(r)),"pointerover",t=>{s.isHovered&&s.target&&!f(s.target,p(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:u,pointerType:i}),n&&n(!0),l(!0)})(r,r.pointerType)},i.onPointerLeave=t=>{!o&&f(t.currentTarget,p(t))&&e(t,t.pointerType)}),{hoverProps:i,triggerHoverEnd:e}},[t,n,r,o,s,a,u]);return(0,v.useEffect)(()=>{o&&m({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:d,isHovered:i}}({isDisabled:u}),{pressed:I,pressProps:A}=function({disabled:e=!1}={}){let t=(0,v.useRef)(null),[n,r]=(0,v.useState)(!1),o=(0,en.useDisposables)(),i=(0,er.useEvent)(()=>{t.current=null,r(!1),o.dispose()}),l=(0,er.useEvent)(e=>{if(o.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=(0,et.getOwnerDocument)(e.currentTarget);o.addEventListener(n,"pointerup",i,!1),o.addEventListener(n,"pointermove",e=>{if(t.current){var n,o;let i,l;r((i=e.width/2,l=e.height/2,n={top:e.clientY-l,right:e.clientX+i,bottom:e.clientY+l,left:e.clientX-i},o=t.current.getBoundingClientRect(),!(!n||!o||n.right<o.left||n.left>o.right||n.bottom<o.top||n.top>o.bottom)))}},!1),o.addEventListener(n,"pointercancel",i,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:l,onPointerUp:i,onClick:i}}}({disabled:u}
1),D=(0,ey.useSlot)({open:w===na.Open,active:I||w===na.Open,disabled:u,invalid:l.invalid,value:l.value,hover:M,focus:O,autofocus:m}),_=(0,t1.useSlice)(s,e=>e.listboxState===na.Open),B=(0,tz.mergeProps)(y(),{ref:b,id:a,type:(0,v.useMemo)(()=>{var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase()||(null==E?void 0:E.tagName)==="BUTTON"&&!E.hasAttribute("type"))return"button"},[e.type,e.as,E]),"aria-haspopup":"listbox","aria-controls":null==k?void 0:k.id,"aria-expanded":_,"aria-labelledby":L,"aria-describedby":R,disabled:u||void 0,autoFocus:m,onKeyDown:S,onKeyUp:C,onKeyPress:j},T,N,P,A);return(0,tz.useRender)()({ourProps:B,theirProps:h,slot:D,defaultTag:"button",name:"Listbox.Button"})}),nj=(0,tz.forwardRefWithAs)(function(e,t){let n=(0,v.useId)(),{id:r=`headlessui-listbox-options-${n}`,anchor:o,portal:i=!1,modal:l=!0,transition:s=!1,...a}=e,u=(0,v.useMemo)(()=>o?"string"==typeof o?{to:o}:o:null,[o]),[c,d]=(0,v.useState)(null);u&&(i=!0);let f=ny("Listbox.Options"),p=nb("Listbox.Options"),[m,h,b,g]=(0,t1.useSlice)(p,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),x=(0,em.useOwnerDocument)(h),y=(0,em.useOwnerDocument)(b),w=(0,tJ.useOpenClosed)(),[E,k]=(0,eC.useTransition)(s,c,null!==w?(w&tJ.State.Open)===tJ.State.Open:m===na.Open);(0,ef.useOnDisappear)(E,h,p.actions.closeListbox);let S=!g&&l&&m===na.Open;(0,ex.useScrollLock)(S,y);let C=!g&&l&&m===na.Open;(0,ec.useInertOthers)(C,{allowed:(0,v.useCallback)(()=>[h,b],[h,b])});let T=!(0,t1.useSlice)(p,p.selectors.didButtonMove)&&E,j=tX((0,t1.useSlice)(p,p.selectors.hasFrozenValue)&&!e.static,f.value),L=(0,v.useCallback)(e=>f.compare(j,e),[f.compare,j]),R=(0,t1.useSlice)(p,e=>{var t;if(null==u||!(null!=(t=null==u?void 0:u.to)&&t.includes("selection")))return null;let n=e.options.findIndex(e=>L(e.dataRef.current.value));return -1===n&&(n=0),n}),[O,N]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,v.useContext)(t_),n=(0,v.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);(0,ei.useIsoMorphicEffect)(()=>{null==t||t(null!=n?n:null)},[t,n]);let r=(0,v.useContext)(tH);return(0,v.useMemo)(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}((()=>{if(null==u)return;if(null===R)return{...u,inner:void 0};let e=Array.from(f.listRef.current.values());return{...u,inner:{listRef:{current:e},index:R}}})()),M=function(){let{getFloatingProps:e,slot:t}=(0,v.useContext)(tH);return(0,v.useCallback)((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}(),P=(0,ew.useSyncRefs)(t,u?O:null,p.actions.setOptionsElement,d),F=(0,en.useDisposables)();(0,v.useEffect)(()=>{b&&m===na.Open&&((0,et.isActiveElement)(b)||null==b||b.focus({preventScroll:!0}))},[m,b]);let I=(0,er.useEvent)(e=>{var t;switch(F.dispose(),e.key){case t9.Keys.Space:if(""!==p.state.searchQuery)return e.preventDefault(),e.stopPropagation(),p.actions.search(e.key);case t9.Keys.Enter:e.preventDefault(),e.stopPropagation(),p.actions.selectActiveOption();break;case(0,t3.match)(f.orientation,{vertical:t9.Keys.ArrowDown,horizontal:t9.Keys.ArrowRight}):return e.preventDefault(),e.stopPropagation(),p.actions.goToOption({focus:t5.Next});case(0,t3.match)(f.orientation,{vertical:t9.Keys.ArrowUp,horizontal:t9.Keys.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),p.actions.goToOption({focus:t5.Previous});case t9.Keys.Home:case t9.Keys.PageUp:return e.preventDefault(),e.stopPropagation(),p.actions.goToOption({focus:t5.First});case t9.Keys.End:case t9.Keys.PageDown:return e.preventDefault(),e.stopPropagation(),p.actions.goToOption({focus:t5.Last});case t9.Keys.Escape:e.preventDefault(),e.stopPropagation(),(0,ee.flushSync)(()=>p.actions.closeListbox()),null==(t=p.state.buttonElement)||t.focus({preventScroll:!0});return;case t9.Keys.Tab:e.preventDefault(),e.stopPropagation(),(0,ee.flushSync)(()=>p.actions.closeListbox()),(0,t4.focusFrom)(p.state.buttonElement,e.shiftKey?t4.Focus.Previous:t4.Focus.Next);break;default:1===e.key.length&&(p.actions.search(e.key),F.setTimeout(()=>p.actions.clearSearch(),350))}}),A=(0,t1.useSlice)(p,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}
1),D=(0,ey.useSlot)({open:m===na.Open}),H=(0,tz.mergeProps)(u?M():{},{id:r,ref:P,"aria-activedescendant":(0,t1.useSlice)(p,p.selectors.activeDescendantId),"aria-multiselectable":f.mode===nu.Multi||void 0,"aria-labelledby":A,"aria-orientation":f.orientation,onKeyDown:I,role:"listbox",tabIndex:m===na.Open?0:void 0,style:{...a.style,...N,"--button-width":function(e,t,n=!1){let[r,o]=(0,v.useState)(()=>el(t));return(0,ei.useIsoMorphicEffect)(()=>{if(!t||!e)return;let n=(0,eo.disposables)();return n.requestAnimationFrame(function e(){n.requestAnimationFrame(e),o(e=>{let n=el(t);return n.width===e.width&&n.height===e.height?e:n})}),()=>{n.dispose()}},[t,e]),n?{width:`${r.width}px`,height:`${r.height}px`}:r}(E,h,!0).width},...(0,eC.transitionDataAttributes)(k)}),_=(0,tz.useRender)(),B=(0,v.useMemo)(()=>f.mode===nu.Multi?f:{...f,isSelected:L},[f,L]);return v.default.createElement(nt.Portal,{enabled:!!i&&(e.static||E),ownerDocument:x},v.default.createElement(nx.Provider,{value:B},_({ourProps:H,theirProps:a,slot:D,defaultTag:"div",features:nk,visible:T,name:"Listbox.Options"}
1)))}),nL=(0,tz.forwardRefWithAs)(function(e,t){let n,r,o,i=(0,v.useId)(),{id:l=`headlessui-listbox-option-${i}`,disabled:s=!1,value:a,...u}=e,c=!0===(0,v.useContext)(nE),d=ny("Listbox.Option"),f=nb("Listbox.Option"),p=(0,t1.useSlice)(f,e=>f.selectors.isActive(e,l)),m=d.isSelected(a),h=(0,v.useRef)(null),b=(n=(0,v.useRef)(""),r=(0,v.useRef)(""),(0,er.useEvent)(()=>{let e=h.current;if(!e)return"";let t=e.innerText;if(n.current===t)return r.current;let o=(function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():ek(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return ek(e).trim()})(e).trim().toLowerCase();return n.current=t,r.current=o,o})),g=(0,ed.useLatestValue)({disabled:s,value:a,domRef:h,get textValue(){return b()}}),x=(0,ew.useSyncRefs)(t,h,e=>{e?d.listRef.current.set(l,e):d.listRef.current.delete(l)}),y=(0,t1.useSlice)(f,e=>f.selectors.shouldScrollIntoView(e,l));(0,ei.useIsoMorphicEffect)(()=>{if(y)return(0,eo.disposables)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=h.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[y,h]),(0,ei.useIsoMorphicEffect)(()=>{if(!c)return f.actions.registerOption(l,g),()=>f.actions.unregisterOption(l)},[g,l,c]);let w=(0,er.useEvent)(e=>{if(s)return e.preventDefault();f.actions.selectOption(a)}),E=(0,er.useEvent)(()=>{if(s)return f.actions.goToOption({focus:t5.Nothing});f.actions.goToOption({focus:t5.Specific,id:l})}),k=(o=(0,v.useRef)([-1,-1]),{wasMoved(e){let t=eS(e);return(o.current[0]!==t[0]||o.current[1]!==t[1])&&(o.current=t,!0)},update(e){o.current=eS(e)}}),S=(0,er.useEvent)(e=>k.update(e)),C=(0,er.useEvent)(e=>{k.wasMoved(e)&&(s||p&&f.state.activationTrigger===nc.Pointer||f.actions.goToOption({focus:t5.Specific,id:l},nc.Pointer))}),T=(0,er.useEvent)(e=>{k.wasMoved(e)&&(s||p&&f.state.activationTrigger===nc.Pointer&&f.actions.goToOption({focus:t5.Nothing}))}),j=(0,ey.useSlot)({active:p,focus:p,selected:m,disabled:s,selectedOption:m&&c}),L=c?{}:{id:l,ref:x,role:"option",tabIndex:!0===s?void 0:-1,"aria-disabled":!0===s||void 0,"aria-selected":m,disabled:void 0,onClick:w,onFocus:E,onPointerEnter:S,onMouseEnter:S,onPointerMove:C,onMouseMove:C,onPointerLeave:T,onMouseLeave:T},R=(0,tz.useRender)();return!m&&c?null:R({ourProps:L,theirProps:u,slot:j,defaultTag:"div",name:"Listbox.Option"})}),nR=Object.assign(nC,{Button:nT,Label:ne,Options:nj,Option:nL,SelectedOption:(0,tz.forwardRefWithAs)(function(e,t){let{options:n,placeholder:r,...o}=e,i={ref:(0,ew.useSyncRefs)(t)},l=ny("ListboxSelectedOption"),s=(0,ey.useSlot)({}),a=void 0===l.value||null===l.value||l.mode===nu.Multi&&Array.isArray(l.value)&&0===l.value.length,u=(0,tz.useRender)();return v.default.createElement(nE.Provider,{value:!0},u({ourProps:i,theirProps:{...o,children:v.default.createElement(v.default.Fragment,null,r&&a?r:n)},slot:s,defaultTag:nS,name:"ListboxSelectedOption"}))})});var nO=e.i(39406),nN=e.i(46530),nM=e.i(7284),nP=e.i(56904),nF=e.i(60889),nI=e.i(50410),nA=e.i(58693),nD=e.i(47524),nH=e.i(80401),n_=e.i(70118);let nB={es:"ES",en:"EN",eu:"EU",zh:"中文"};e.s(["LanguageSwitcher",0,function({variant:e="navbar",onLocaleChange:t}){let n=(0,nA.useTranslations)("Nav"),r=(0,nI.useLocale)(),o=(0,nP.useRouter)(),i=(0,nP.usePathname)(),l=(0,nD.useParams)(),{useLightTone:s}=(0,n_.useNavbarShell)(),[a,c]=(0,v.useTransition)();function d(e){e!==r&&(t?.(),c(()=>{o.replace({pathname:i,params:l},{locale:e})}))}return"menu"===e?(0,u.jsx)("div",{className:"flex flex-wrap gap-2",role:"listbox","aria-label":n("language"),children:nF.routing.locales.map(e=>{let t=e===r;return(0,u.jsx)("button",{type:"button",role:"option","aria-selected":t,disabled:a,onClick:()=>d(e),className:(0,nM.default)("rounded-full px-3.5 py-2 text-sm font-semibold transition-colors disabled:cursor-wait disabled:opacity-60",t?"bg-lime text-ink":"border border-ink/15 text-ink hover:border-ink/30 hover:bg-ink/5"),children:nB[e]},e)})}):(0,u.jsx)(nR,{value:r,onChange:d,disabled:a,children:(0,u.jsxs)("div",{className:"relative shrink-0",children:[(0,u.jsxs)(nT,{"aria-label":n("language"),className:(0,nM.default)("group relative inline-flex shrink-0 items-center gap-1 rounded-full px-3 py-1.5 pr-7 text-sm font-medium transition-colors duration-300 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary disabled:cursor-wait disabled:opacity-60 lg:px-4 lg:pr-8",(0,nH.navLinkClass)(!1,s),s?"data-open:bg-cream/15 data-open:font-semibold data-open:text-cream data-open:shadow-none":"data-open:bg-ink/10 data-open:font-semibold data-open:text-forest data-open:shadow-[inset_0_1px_0_rgba(13,42,26,0.06)]"),children:[(0,u.jsx)("span",{children:nB[r]}),(0,u.jsx)(nN.ChevronDownIcon,{className:(0,nM.default)("pointer-events-none absolute right-2 top-1/2 h-3.5 w-3.5 -translate-y-1/2 opacity-60 transition-transform duration-300 group-data-open:rotate-180 lg:right-2.5"),"aria-hidden":!0})]}),(0,u.jsx)(nj,{anchor:"bottom end",transition:!0,className:(0,nM.default)("z-50 mt-2 min-w-[9.5rem] origin-top-right overflow-hidden rounded-2xl border py-1.5 shadow-[0_16px_40px_rgba(13,42,26,0.14)] backdrop-blur-md transition duration-200 ease-out focus:outline-none data-closed:scale-95 data-closed:opacity-0","border-ink/10 bg-bg/95"),children:nF.routing.locales.map(e=>(0,u.jsxs)(nL,{value:e,className:"group flex cursor-pointer items-center justify-between gap-3 px-3.5 py-2 font-sans text-sm font-semibold text-ink/75 transition-colors data-focus:bg-lime/15 data-focus:text-ink data-selected:text-primary",children:[(0,u.jsx)("span",{children:nB[e]}),(0,u.jsx)(nO.CheckIcon,{className:"h-4 w-4 text-primary opacity-0 transition-opacity group-data-selected:opacity-100","aria-hidden":!0})]},e))})]})})}],47013)},58279,e=>{"use strict";var t=e.i(38991),n=e.i(1091),r=e.i(25543),o=e.i(56904),i=e.i(58693),l=e.i(17683);let s=l.forwardRef(function({title:e,titleId:t,...n},r){return l.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?l.createElement("title",{id:t},e):null,l.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))});var a=e.i(77617),u=e.i(7284),c=e.i(20511),d=e.i(69999),f=e.i(94050),p=e.i(47013),m=e.i(70118),h=e.i(24557);e.s(["default",0,function({menu:e}){let v=(0,o.usePathname)(),{openContact:b}=(0,d.useContact)(),{useLightTone:g}=(0,m.useNavbarShell)(),x=(0,i.useTranslations)("Nav"),[y,w]=(0,l.useState)(!1),[E,k]=(0,l.useState)(v),S=()=>w(!1);return v!==E&&(k(v),w(!1)),(0,l.useEffect)(()=>{let e=()=>{window.innerWidth>=1024&&w(!1)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("button",{onClick:()=>w(!0),"aria-label":x("openMenu"),className:(0,u.default)("flex h-10 w-10 items-center justify-center rounded-full transition-colors duration-300 lg:hidden",g?"text-cream hover:bg-cream/10":"border border-ink/10 text-ink hover:bg-ink/5"),children:(0,t.jsx)(s,{className:"h-4"})}),(0,t.jsx)(r.Transition,{show:y,children:(0,t.jsxs)(n.Dialog,{onClose:S,className:"relative z-50",children:[(0,t.jsx)(r.Transition.Child,{as:l.Fragment,enter:"transition-all ease-in-out duration-300",enterFrom:"opacity-0 backdrop-blur-none",enterTo:"opacity-100 backdrop-blur-[.5px]",leave:"transition-all ease-in-out duration-200",leaveFrom:"opacity-100 backdrop-blur-[.5px]",leaveTo:"opacity-0 backdrop-blur-none",children:(0,t.jsx)("div",{className:"fixed inset-0 bg-ink/40","aria-hidden":"true"})}),(0,t.jsx)(r.Transition.Child,{as:l.Fragment,enter:"transition-all ease-in-out duration-300",enterFrom:"translate-x-[-100%]",enterTo:"translate-x-0",leave:"transition-all ease-in-out duration-200",leaveFrom:"translate-x-0",leaveTo:"translate-x-[-100%]",children:(0,t.jsx)(n.Dialog.Panel,{className:"fixed inset-y-0 left-0 flex h-full w-full max-w-[17.5rem] flex-col overflow-hidden bg-cream pb-6 text-ink shadow-[4px_0_32px_rgba(13,42,26,0.12)]",children:(0,t.jsxs)("div",{className:"relative z-10 flex flex-1 flex-col",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between border-b border-ink/10 p-4",children:[(0,t.jsx)(o.Link,{href:h.homeHeroHref,prefetch:!0,onClick:e=>(0,h.handleHomeHeroClick)(e,v,S),"aria-label":x("goHome"),className:"rounded-lg focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary",children:(0,t.jsx)(c.Logo,{variant:"wordmark",tone:"dark",className:"h-5 w-auto"})}),(0,t.jsx)("button",{className:"flex h-10 w-10 items-center justify-center rounded-full border border-ink/15 text-ink transition-colors hover:border-ink/30 hover:bg-ink/5",onClick:S,"aria-label":x("closeMenu"),children:(0,t.jsx)(a.XMarkIcon,{className:"h-5"})})]}),(0,t.jsx)("div",{className:"px-4 py-2",children:(0,t.jsxs)("ul",{className:"flex w-full flex-col",children:[(0,t.jsx)("li",{children:(0,t.jsx)(o.Link,{href:h.homeHeroHref,prefetch:!0,scroll:!0,onClick:e=>(0,h.handleHomeHeroClick)(e,v,S),"aria-current":(0,f.isMenuItemActive)(v,"/")?"page":void 0,className:(0,u.default)("block rounded-2xl px-4 py-2.5 font-sans text-base font-semibold transition-colors",(0,f.isMenuItemActive)(v,"/")?"bg-ink/10 text-forest":"text-ink hover:bg-lime/40 hover:text-primary"),children:x("home")})}),e.length?e.map(e=>{let n,r,i=(0,f.isMenuItemActive)(v,e.path),l=(n=e.path.split("#")[0]?.toLowerCase()??"",r=e.title.toLowerCase(),"/contacto"===n||"contacto"===r);return(0,t.jsx)("li",{children:l?(0,t.jsx)("button",{type:"button",onClick:()=>{S(),b()},className:"block w-full rounded-2xl px-4 py-2.5 text-left font-sans text-base font-semibold text-ink transition-colors hover:bg-lime/40 hover:text-primary",children:e.title}):(0,t.jsx)(o.Link,{href:e.path,prefetch:!0,scroll:!0,onClick:S,"aria-current":i?"page":void 0,className:(0,u.default)("block rounded-2xl px-4 py-2.5 font-sans text-base font-semibold transition-colors",i?"bg-ink/10 text-forest":"text-ink hover:bg-lime/40 hover:text-primary"),children:e.title})},e.title)}):null]})}),(0,t.jsxs)("div",{className:"mt-auto border-t border-ink/10 p-4",children:[(0,t.jsx)("p",{className:"mb-3 font-sans text-[11px] font-bold uppercase tracking-[0.14em] text-ink/45",children:x("language")}),(0,t.jsx)(p.LanguageSwitcher,{variant:"menu",onLocaleChange:S})]})]})})})]})})]})}],58279)},41621,e=>{"use strict";var t=e.i(38991),n=e.i(20511),r=e.i(56904),o=e.i(58693),i=e.i(7284),l=e.i(70118),s=e.i(24557);e.s(["NavbarLogoLink",0,function({className:e,mobile:a=!1}){let{useLightTone:u}=(0,l.useNavbarShell)(),c=(0,r.usePathname)(),d=(0,o.useTranslations)("Nav");return(0,t.jsx)(r.Link,{href:s.homeHeroHref,prefetch:!0,scroll:!0,onClick:e=>(0,s.handleHomeHeroClick)(e,c),className:(0,i.default)(e,(0,l.navbarLogoClass)()),"aria-label":a?d("homeAria"):void 0,children:(0,t.jsx)(n.Logo,{variant:"wordmark",tone:u?"light":"dark",className:a?"h-5 w-auto":void 0})})}])},2142,e=>{"use strict";var t=e.i(47524),n=e.i(17683);e.s(["ScrollToTopOnNavigate",0,function(){let e=(0,t.usePathname)(),r=(0,n.useRef)(e);return(0,n.useEffect)(()=>{r.current===e||(r.current=e,window.location.hash||window.scrollTo({top:0,left:0,behavior:"instant"}))},[e]),null}])},74856,e=>{"use strict";var t=e.i(50410),n=e.i(38991);e.s(["default",0,function({locale:e,...r}){if(!e)throw Error(void 0);return(0,n.jsx)(t.IntlProvider,{locale:e,...r})}])}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.