PageSourceSearch

https://www.theglobeatwells.co.uk/_next/static/chunks/3l0r8pqkvhi_z.js

js theglobeatwells.co.uk collected 2026-10-08 05:50:20 UTC 51,789 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7912,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return s},searchParamsToUrlQuery:function(){return o},urlQueryToSearchParams:function(){return l}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});function o(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function l(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,a(e));else t.set(r,a(n));return t}function s(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},30971,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return v},MiddlewareNotFoundError:function(){return w},MissingStaticPage:function(){return x},NormalizeError:function(){return g},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return y},WEB_VITALS:function(){return o},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return u},getURL:function(){return c},isAbsoluteUrl:function(){return s},isResSent:function(){return f},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return j}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,s=e=>l.test(e);function u(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function c(){let{href:e}=window.location,t=u();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`),"__NEXT_ERROR_CODE",{value:"E1025",enumerable:!1,configurable:!0});return n}let m="u">typeof performance,y=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class v extends Error{}class g extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class x extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class w extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function j(e){return JSON.stringify({message:e.message,stack:e.stack})}},57767,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},22164,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return u},urlObjectKeys:function(){return s}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(44066)._(e.r(7912)),a=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:r&&(u=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(o.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==u?(u="//"+(u||""),i&&"/"!==i[0]&&(i="/"+i)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${u}${i}${c}${l}`}let s=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function u(e){return l(e)}},43564,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=e.r(97829);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=o(e,n)),t&&(i.current=o(t,n))},[e,t])}function o(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},77927,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return o}});let n=e.r(30971),i=e.r(66602);function o(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},78752,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},97569,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},useLinkStatus:function(){return b}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(44066),a=e.r(25474),l=o._(e.r(97829)),s=e.r(22164),u=e.r(15236),c=e.r(43564),d=e.r(30971),f=e.r(21915);e.r(57767);let p=e.r(55962),h=e.r(47454),m=e.r(77927),y=e.r(84429);function v(t){var r,n;let i,o,v,[b,x]=(0,l.useOptimistic)(h.IDLE_LINK_STATUS),w=(0,l.useRef)(null),{href:j,as:C,children:E,prefetch:R=null,passHref:S,replace:_,shallow:O,scroll:A,onClick:I,onMouseEnter:k,onTouchStart:P,legacyBehavior:N=!1,onNavigate:M,transitionTypes:T,ref:$,unstable_dynamicOnHover:L,...D}=t;i=E,N&&("string"==typeof i||"number"==typeof i)&&(i=(0,a.jsx)("a",{children:i}));let F=l.default.useContext(u.AppRouterContext),B=!1!==R,U=!1!==R?null===(n=R)||"auto"===n?y.FetchStrategy.PPR:y.FetchStrategy.Full:y.FetchStrategy.PPR,z="string"==typeof(r=C||j)?r:(0,s.formatUrl)(r);if(N){if(i?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});o=l.default.Children.only(i)}let K=N?o&&"object"==typeof o&&o.ref:$,H=l.default.useCallback(e=>(null!==F&&(w.current=(0,h.mountLinkInstance)(e,z,F,U,B,x)),()=>{w.current&&((0,h.unmountLinkForCurrentNavigation)(w.current),w.current=null),(0,h.unmountPrefetchableInstance)(e)}),[B,z,F,U,x]),V={ref:(0,c.useMergedRef)(H,K),onClick(t){N||"function"!=typeof I||I(t),N&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(t),!F||t.defaultPrevented||function(t,r,n,i,o,a,s){if("u">typeof window){let u,{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&((u=t.currentTarget.getAttribute("target"))&&"_self"!==u||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,m.isLocalURL)(r)){i&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),a){let e=!1;if(a({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(52857);l.default.startTransition(()=>{d(r,i?"replace":"push",!1===o?p.ScrollBehavior.NoScroll:p.ScrollBehavior.Default,n.current,s)})}}(t,z,w,_,A,M,T)},onMouseEnter(e){N||"function"!=typeof k||k(e),N&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),F&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===L)},onTouchStart:function(e){N||"function"!=typeof P||P(e),N&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),F&&B&&(0,h.onNavigationIntent)(e.currentTarget,!0===L)}};return(0,d.isAbsoluteUrl)(z)?V.href=z:N&&!S&&("a"!==o.type||"href"in o.props)||(V.href=(0,f.addBasePath)(z)),v=N?l.default.cloneElement(o,V
1):(0,a.jsx)("a",{...D,...V,children:i}),(0,a.jsx)(g.Provider,{value:b,children:v})}e.r(78752);let g=(0,l.createContext)(h.IDLE_LINK_STATUS),b=()=>(0,l.useContext)(g);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},65565,(e,t,r)=>{t.exports=e.r(46233)},4020,e=>{"use strict";var t=e.i(25474),r=e.i(97829);e.s(["default",0,function({children:e,booking:n,expandText:i="Read Less",id:o,type:a,...l}){let[s,u]=(0,r.useState)(!1),c=Array.isArray(o)?o?.[0]:o,d=(0,r.useCallback)(()=>{window.dispatchEvent(new CustomEvent(`action-${a}${"booking"!==a?`-${c}`:""}`,"booking"===a?{detail:{...n}}:void 0)),"expand"===a&&u(e=>!e)},[n,c,a]);return(0,t.jsx)("button",{onClick:d,type:"button",...l,children:"expand"===a&&s?i:e})}])},85450,e=>{"use strict";var t=e.i(25474),r=e.i(97569),n=e.i(65565),i=e.i(97829);e.s(["default",0,function({children:e,link:o,...a}){let l=(0,n.usePathname)(),s=o.split("?scroll="),u=!s?.[0]||s?.[0]?.endsWith(l),c=(0,i.useCallback)(()=>{window.dispatchEvent(new CustomEvent("action-scroll",{detail:{id:s?.[1]}}))},[s]);return u?(0,t.jsx)("button",{onClick:c,type:"button",...a,children:e}):(0,t.jsx)(r.default,{href:o,...a,children:e})}])},88164,e=>{"use strict";let t;var r,n=e.i(97829);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var o=(r="Slot",(t=n.forwardRef((e,t)=>{var o;let s,p,{children:h,...m}=e,y=null,v=!1,g=[];u(h)&&"function"==typeof f&&(h=f(h._payload)),n.Children.forEach(h,e=>{var t;if(t=e,n.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===a){v=!0;let t="child"in e.props?e.props.child:e.props.children;u(t)&&"function"==typeof f&&(t=f(t._payload)),y=l(e,t),g.push(y?.props?.children)}else g.push(e)}),y?y=n.cloneElement(y,void 0,g):!v&&1===n.Children.count(h)&&n.isValidElement(h)&&(y=h);let b=y?(o=y,(p=(s=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?o.ref:(p=(s=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in s&&s.isReactWarning)?o.props.ref:o.props.ref||o.ref):void 0,x=function(...e){return n.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=i(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():i(e[t],null)}}}}(...e),e)}(t,b);if(!y){if(h||0===h)throw Error(v?d(r):c(r));return h}let w=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(m,y.props??{});return y.type!==n.Fragment&&(w.ref=t?x:b),n.cloneElement(y,w)})).displayName=`${r}.Slot`,t),a=Symbol.for("radix.slottable"),l=(e,t)=>{if("child"in e.props){let t=e.props.child;return n.isValidElement(t)?n.cloneElement(t,void 0,e.props.children(t.props.children)):null}return n.isValidElement(t)?t:null},s=Symbol.for("react.lazy");function u(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===s&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var c=e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,d=e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,f=n[" use ".trim().toString()];e.s(["Slot",0,o],88164)},23504,58122,15349,e=>{"use strict";var t=e.i(25474),r=e.i(97829);function n(e,t,r){let n=decodeURI(e),i=e?.includes("?format=auto"),o={...!i?{format:"auto"}:{},..."number"==typeof r?.x&&"number"==typeof r.y?{focalx:r.x,focaly:r.y}:{},...t||{}};void 0!==o.srcsetKey&&delete o.srcsetKey;let a=Object.entries(o).reduce((e,[t,r])=>[...e,`${t}=${r}`],[]).join("&");return encodeURI(`${n}${!i?"?":a.length?"&":""}${a}`)}e.s(["default",0,({alt:e="",className:i,focal:o,height:a,id:l,loading:s,params:u,preload:c,Preloader:d,sizes:f,src:p,width:h,...m})=>{let y=(0,r.useMemo)(()=>Array.isArray(u)?n(p,{}):n(p,u,o),[o,u,p]),v=(0,r.useMemo)(()=>(function(e,t,r){if(Array.isArray(t))return t.map(t=>{let i=n(e,t,r);return void 0===t.srcsetKey?i=`${i} ${t.width}w`:t.srcsetKey?.length&&(i=`${i} ${t.srcsetKey}`),i}).join(", ")})(p,u,o),[o,u,p]);return(0,t.jsxs)(t.Fragment,{children:[c&&d?(0,t.jsx)(d,{children:(0,t.jsx)("link",{rel:"preload",as:"image",href:y,imageSrcSet:v,sizes:f})}):null,(0,t.jsx)("img",{id:l,className:i,src:y,srcSet:v,sizes:f,loading:s,width:h,height:a,alt:e,...m})]})}],58122),e.s(["default",0,({alt:e="",className:i,fetchPriority:o,focal:a,height:l,id:s,loading:u,params:c,preload:d,Preloader:f,src:p,width:h,...m})=>{let y=(0,r.useMemo)(()=>Array.isArray(c)?n(p,{}):n(p,c,a),[a,c,p]);return(0,t.jsxs)(t.Fragment,{children:[d&&f?(0,t.jsx)(f,{children:c.map(({media:e,...r})=>(0,t.jsx)("link",{as:"image",href:n(p,r,a),imageSrcSet:`${n(p,r,a)} 1x, ${n(p,{height:r?.height&&2*r.height,width:r?.width&&2*r.width},a)} 2x`,media:e,rel:"preload"},`picture-link-${JSON.stringify(r)}`))}):null,(0,t.jsxs)("picture",{className:i,...m,children:[c.map(({media:e,...r})=>(0,t.jsx)("source",{height:r?.height,media:e,srcSet:`${n(p,r,a)} 1x, ${n(p,{height:r?.height&&2*r.height,width:r?.width&&2*r.width},a)} 2x`,width:r.width},`picture-source-${JSON.stringify(r)}`)),(0,t.jsx)("img",{alt:e,fetchPriority:o,height:l,id:s,loading:u,src:y,width:h})]})]})}],15349),e.s([],23504)},95041,e=>{"use strict";var t=e.i(15349);e.s(["Picture",()=>t.default])},97438,e=>{"use strict";var t,r,n=e.i(97829);function i(){return(i=Object.assign.bind()).apply(null,arguments)}e.s(["default",0,function(e){return n.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 8 11"},e),t||(t=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m2.5 10.5 5-5-5-5"})),r||(r=n.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"m.5 8.5 3-3-3-3"})))}])},38753,69727,73649,e=>{"use strict";var t=e.i(25474),r=e.i(97569),n=e.i(96874),i=e.i(88164);function o({asChild:e=!1,children:r,className:n,ref:a,...l}){let s=e?i.Slot:"button";return(0,t.jsx)(s,{className:n,ref:a,...l,children:r})}e.s(["default",0,o],69727);var a=e.i(4020);function l({children:e}){return e}e.s(["default",0,l],73649);var s=e.i(85450);e.s(["default",0,function({children:e,className:i,Components:u,data:c,...d}){let f,p=(f={Button:o,ButtonAction:a.default,ButtonInner:l,ButtonScroll:s.default},(0,n.default)(f,u)),{actionId:h,actionType:m,booking:y,download:v,expandText:g,fileLink:b,link:x,newWindow:w,text:j,type:C,...E}=c;if("action"===C&&m)return(0,t.jsx)(p.Button,{asChild:!0,className:i,data:E,children:(0,t.jsx)(p.ButtonAction,{booking:y,expandText:g,id:h,type:m,children:(0,t.jsx)(p.ButtonInner,{data:E,children:e||j})})});if("email"===C||"external"===C||"internal"===C&&w){let r="";return"email"===C&&(r="mailto:"),(0,t.jsx)(p.Button,{asChild:!0,className:i,data:E,children:(0,t.jsx)("a",{href:`${r}${x}`,...w?{rel:"noopener noreferrer",target:"_blank"}:{},...d,children:(0,t.jsx)(p.ButtonInner,{data:E,children:e||j})})})}if("file"===C)return(0,t.jsx)(p.Button,{asChild:!0,className:i,data:E,children:(0,t.jsx)("a",{download:v,href:b||x,...w?{rel:"noopener noreferrer",target:"_blank"}:{},...d,children:(0,t.jsx)(p.ButtonInner,{data:E,children:e||j})})});if("internal"===C&&!w){let n=c?.params?`?${new URLSearchParams(c.params).toString()}`:"",o=`${x}${n}`;return(0,t.jsx)(p.Button,{asChild:!0,className:i,data:E,children:(0,t.jsx)(r.default,{href:o,...d,children:(0,t.jsx)(p.ButtonInner,{data:E,children:e||j})})})}return"scroll"===C?(0,t.jsx)(p.Button,{asChild:!0,className:i,data:E,children:(0,t.jsx)(p.ButtonScroll,{link:x,children:(0,t.jsx)(p.ButtonInner,{data:E,children:e||j})})}):null}],38753)},34400,e=>{"use strict";let t,r;var n=e.i(25474),i=e.i(69727),o=e.i(50446),a=e.i(7284);let l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,s=a.clsx,u=(t="font-secondary relative inline-flex cursor-pointer items-center text-base leading-6 uppercase",r={variants:{variant:{primary:(0,o.default)("relative border border-current bg-transparent px-6 py-2.5 tracking-[1px] text-current","[&_.btn-bg]:pointer-events-none [&_.btn-bg]:absolute [&_.btn-bg]:top-px [&_.btn-bg]:left-px [&_.btn-bg]:h-[calc(100%-2px)] [&_.btn-bg]:w-[calc(100%-2px)] [&_.btn-bg]:bg-transparent","[&_.btn-bg]:transition-colors [&_.btn-bg]:duration-300 [&_.btn-bg]:ease-in-out [&_.btn-text]:relative [&_.btn-text]:z-[1] [&_.btn-text]:transition-colors [&_.btn-text]:duration-300 [&_.btn-text]:ease-in-out","hover:[&_.btn-bg]:bg-primary hover:text-white"),secondary:(0,o.default)("group/link relative flex flex-row items-center px-0 font-[400] tracking-[1px]"),header:(0,o.default)("header-button font-primary text-background !tracking-0 text-body font-[400]")}},defaultVariants:{variant:"primary"}},e=>{var n;if((null==r?void 0:r.variants)==null)return s(t,null==e?void 0:e.class,null==e?void 0:e.className);let{variants:i,defaultVariants:o}=r,a=Object.keys(i).map(t=>{let r=null==e?void 0:e[t],n=null==o?void 0:o[t];if(null===r)return null;let a=l(r)||l(n);return i[t][a]}),u=e&&Object.entries(e).reduce((e,t)=>
1{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return s(t,a,null==r||null==(n=r.compoundVariants)?void 0:n.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...o,...u}[t]):({...o,...u})[t]===r})?[...e,r,n]:e},[]),null==e?void 0:e.class,null==e?void 0:e.className)});e.s(["default",0,function({children:e,className:t,data:r,...a}){return(0,n.jsx)(i.default,{...a,className:(0,o.default)(u(r),t),children:e})}],34400)},66145,e=>{"use strict";var t=e.i(25474),r=e.i(50446),n=e.i(97438);e.s(["default",0,function({children:e,data:i}){return i?.variant==="secondary"?(0,t.jsxs)("span",{className:"group/link relative z-[5] inline-flex items-center pl-0 text-nowrap transition-all duration-300 ease-in-out",children:[(0,t.jsx)(n.default,{className:(0,r.default)("absolute left-0 h-[11px] w-[8px] transform-gpu text-current opacity-100 transition-opacity duration-300 ease-in-out group-hover/link:opacity-0",i?.colour==="light"?"text-current":"text-primary")}),(0,t.jsx)("span",{className:"ml-3 transition-all duration-300 ease-in-out group-hover/link:!-translate-x-2",children:e}),(0,t.jsx)(n.default,{className:(0,r.default)("absolute top-1/2 -right-1 h-[11px] w-[8px] !-translate-y-1/2 transform-gpu text-current opacity-0 transition-opacity duration-300 ease-in-out group-hover/link:opacity-100",i?.colour==="light"?"text-current":"text-primary")})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"btn-text",children:e}),i?.variant==="primary"&&(0,t.jsx)("span",{className:"btn-bg absolute top-px left-px h-[calc(100%-2px)] w-[calc(100%-2px)]"})]})}])},87763,e=>{"use strict";var t,r,n=e.i(97829),i=Object.defineProperty,o=new Map,a=new WeakMap,l=0;n.Component,null!=(null!=(r=n.useInsertionEffect)?r:n.useLayoutEffect)||n.useEffect,e.s(["useInView",0,function({threshold:e,delay:r,trackVisibility:i,rootMargin:s,root:u,triggerOnce:c,skip:d,initialInView:f,fallbackInView:p,onChange:h}={}){var m;let[y,v]=n.useState(null),g=n.useRef(h),b=n.useRef(f),[x,w]=n.useState({inView:!!f,entry:void 0});g.current=h,n.useEffect(()=>{let n;if(void 0===b.current&&(b.current=f),!d&&y)return n=function(e,r,n={},i=t){if(void 0===window.IntersectionObserver&&void 0!==i){let t=e.getBoundingClientRect();return r(i,{isIntersecting:i,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:t,intersectionRect:t,rootBounds:t}),()=>{}}let{id:s,observer:u,elements:c}=function(e){let t=Object.keys(e).sort().filter(t=>void 0!==e[t]).map(t=>{var r;return`${t}_${"root"===t?!(r=e.root)?"0":(a.has(r)||(l+=1,a.set(r,l.toString())),a.get(r)):e[t]}`}).toString(),r=o.get(t);if(!r){let n,i=new Map,a=new IntersectionObserver(t=>{t.forEach(t=>{var r;let o=t.isIntersecting&&n.some(e=>t.intersectionRatio>=e);e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=o),null==(r=i.get(t.target))||r.forEach(e=>{e(o,t)})})},e);n=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:a,elements:i},o.set(t,r)}return r}(n),d=c.get(e)||[];return c.has(e)||c.set(e,d),d.push(r),u.observe(e),function(){d.splice(d.indexOf(r),1),0===d.length&&(c.delete(e),u.unobserve(e)),0===c.size&&(u.disconnect(),o.delete(s))}}(y,(e,t)=>{let r=b.current;b.current=e,(void 0!==r||e)&&(w({inView:e,entry:t}),g.current&&g.current(e,t),t.isIntersecting&&c&&n&&(n(),n=void 0))},{root:u,rootMargin:s,threshold:e,trackVisibility:i,delay:r},p),()=>{n&&n()}},[Array.isArray(e)?e.toString():e,y,u,s,c,d,i,p,r]);let j=null==(m=x.entry)?void 0:m.target,C=n.useRef(void 0);y||!j||c||d||C.current===j||(C.current=j,w({inView:!!f,entry:void 0}),b.current=f);let E=[v,x.inView,x.entry];return E.ref=E[0],E.inView=E[1],E.entry=E[2],E}])},15239,e=>{"use strict";var t=e.i(97829),r=e.i(25474);e.s(["createContext",0,function(e,n){let i=t.createContext(n),o=e=>{let{children:n,...o}=e,a=t.useMemo(()=>o,Object.values(o));return(0,r.jsx)(i.Provider,{value:a,children:n})};return o.displayName=e+"Provider",[o,function(r){let o=t.useContext(i);if(o)return o;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${e}\``)}]},"createContextScope",0,function(e,n=[]){let i=[],o=()=>{let r=i.map(e=>t.createContext(e));return function(n){let i=n?.[e]||r;return t.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(n,o){let a=t.createContext(o),l=i.length;i=[...i,o];let s=n=>{let{scope:i,children:o,...s}=n,u=i?.[e]?.[l]||a,c=t.useMemo(()=>s,Object.values(s));return(0,r.jsx)(u.Provider,{value:c,children:o})};return s.displayName=n+"Provider",[s,function(r,i){let s=i?.[e]?.[l]||a,u=t.useContext(s);if(u)return u;if(void 0!==o)return o;throw Error(`\`${r}\` must be used within \`${n}\``)}]},function(...e){let r=e[0];if(1===e.length)return r;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return t.useMemo(()=>({[`__scope${r.scopeName}`]:i}),[i])}};return n.scopeName=r.scopeName,n}(o,...n)]}])},91967,e=>{"use strict";"u">typeof window&&window.document&&window.document.createElement,e.s(["composeEventHandlers",0,function(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}])},74286,e=>{"use strict";var t=e.i(97829);function r(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function n(...e){return t=>{let n=!1,i=e.map(e=>{let i=r(e,t);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let t=0;t<i.length;t++){let n=i[t];"function"==typeof n?n():r(e[t],null)}}}}e.s(["composeRefs",0,n,"useComposedRefs",0,function(...e){return t.useCallback(n(...e),e)}])},42603,e=>{"use strict";var t=e.i(97829),r=e.i(74286),n=e.i(25474),i=Symbol("radix.slottable");function o(e){return t.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===i}e.s(["createSlot",0,function(e){var i;
1let a,l=(i=e,(a=t.forwardRef((e,n)=>{let{children:i,...o}=e;if(t.isValidElement(i)){var a;let e,l,s=(a=i,(l=(e=Object.getOwnPropertyDescriptor(a.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.ref:(l=(e=Object.getOwnPropertyDescriptor(a,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?a.props.ref:a.props.ref||a.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}(o,i.props);return i.type!==t.Fragment&&(u.ref=n?(0,r.composeRefs)(n,s):s),t.cloneElement(i,u)}return t.Children.count(i)>1?t.Children.only(null):null})).displayName=`${i}.SlotClone`,a),s=t.forwardRef((e,r)=>{let{children:i,...a}=e,s=t.Children.toArray(i),u=s.find(o);if(u){let e=u.props.children,i=s.map(r=>r!==u?r:t.Children.count(e)>1?t.Children.only(null):t.isValidElement(e)?e.props.children:null);return(0,n.jsx)(l,{...a,ref:r,children:t.isValidElement(e)?t.cloneElement(e,void 0,i):null})}return(0,n.jsx)(l,{...a,ref:r,children:i})});return s.displayName=`${e}.Slot`,s}])},7762,e=>{"use strict";var t=e.i(97829),r=e.i(15787),n=e.i(42603),i=e.i(25474),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let o=(0,n.createSlot)(`Primitive.${r}`),a=t.forwardRef((e,t)=>{let{asChild:n,...a}=e;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(n?o:r,{...a,ref:t})});return a.displayName=`Primitive.${r}`,{...e,[r]:a}},{});e.s(["Primitive",0,o,"dispatchDiscreteCustomEvent",0,function(e,t){e&&r.flushSync(()=>e.dispatchEvent(t))}])},90606,e=>{"use strict";var t=e.i(97829),r=globalThis?.document?t.useLayoutEffect:()=>{};e.s(["useLayoutEffect",0,r])},34155,e=>{"use strict";var t=e.i(97829),r=e.i(90606);t[" useEffectEvent ".trim().toString()],t[" useInsertionEffect ".trim().toString()];var n=t[" useInsertionEffect ".trim().toString()]||r.useLayoutEffect;Symbol("RADIX:SYNC_STATE"),e.s(["useControllableState",0,function({prop:e,defaultProp:r,onChange:i=()=>{},caller:o}){let[a,l,s]=function({defaultProp:e,onChange:r}){let[i,o]=t.useState(e),a=t.useRef(i),l=t.useRef(r);return n(()=>{l.current=r},[r]),t.useEffect(()=>{a.current!==i&&(l.current?.(i),a.current=i)},[i,a]),[i,o,l]}({defaultProp:r,onChange:i}),u=void 0!==e,c=u?e:a;{let r=t.useRef(void 0!==e);t.useEffect(()=>{let e=r.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${o} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}r.current=u},[u,o])}return[c,t.useCallback(t=>{if(u){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else l(t)},[u,e,l,s])]}],34155)},31707,78386,e=>{"use strict";var t=e.i(97829),r=e.i(15239),n=e.i(74286),i=e.i(42603),o=e.i(25474),a=new WeakMap;function l(e,t){var r,n;let i,o,a;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let l=(r=e,n=t,i=r.length,(a=(o=s(n))>=0?o:i+o)<0||a>=i?-1:a);return -1===l?void 0:e[l]}function s(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],a.set(this,!0)}set(e,t){return a.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),o=this.#e.length,a=s(e),l=a>=0?a:o+a,u=l<0||l>=o?-1:l;if(u===this.size||i&&u===this.size-1||-1===u)return this.set(t,r),this;let c=this.size+ +!i;a<0&&l++;let d=[...this.#e],f=!1;for(let e=l;e<c;e++)if(l===e){let o=d[e];d[e]===t&&(o=d[e+1]),i&&this.delete(t),n=this.get(o),this.set(t,r)}else{f||d[e-1]!==t||(f=!0);let r=d[f?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=l(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=l(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return l(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);
1n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",0,function(e){let a=e+"CollectionProvider",[l,s]=(0,r.createContextScope)(a),[u,c]=l(a,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:n}=e,i=t.default.useRef(null),a=t.default.useRef(new Map).current;return(0,o.jsx)(u,{scope:r,itemMap:a,collectionRef:i,children:n})};d.displayName=a;let f=e+"CollectionSlot",p=(0,i.createSlot)(f),h=t.default.forwardRef((e,t)=>{let{scope:r,children:i}=e,a=c(f,r),l=(0,n.useComposedRefs)(t,a.collectionRef);return(0,o.jsx)(p,{ref:l,children:i})});h.displayName=f;let m=e+"CollectionItemSlot",y="data-radix-collection-item",v=(0,i.createSlot)(m),g=t.default.forwardRef((e,r)=>{let{scope:i,children:a,...l}=e,s=t.default.useRef(null),u=(0,n.useComposedRefs)(r,s),d=c(m,i);return t.default.useEffect(()=>(d.itemMap.set(s,{ref:s,...l}),()=>void d.itemMap.delete(s))),(0,o.jsx)(v,{...{[y]:""},ref:u,children:a})});return g.displayName=m,[{Provider:d,Slot:h,ItemSlot:g},function(r){let n=c(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${y}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},s]}],31707);var u=t.createContext(void 0);e.s(["useDirection",0,function(e){let r=t.useContext(u);return e||r||"ltr"}],78386)},23771,e=>{"use strict";var t=e.i(97829),r=e.i(74286),n=e.i(90606),i=e=>{var i;let a,l,{present:s,children:u}=e,c=function(e){var r,i;let[a,l]=t.useState(),s=t.useRef(null),u=t.useRef(e),c=t.useRef("none"),[d,f]=(r=e?"mounted":"unmounted",i={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,t)=>i[e][t]??e,r));return t.useEffect(()=>{let e=o(s.current);c.current="mounted"===d?e:"none"},[d]),(0,n.useLayoutEffect)(()=>{let t=s.current,r=u.current;if(r!==e){let n=c.current,i=o(t);e?f("MOUNT"):"none"===i||t?.display==="none"?f("UNMOUNT"):r&&n!==i?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,n.useLayoutEffect)(()=>{if(a){let e,t=a.ownerDocument.defaultView??window,r=r=>{let n=o(s.current).includes(CSS.escape(r.animationName));if(r.target===a&&n&&(f("ANIMATION_END"),!u.current)){let r=a.style.animationFillMode;a.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===a.style.animationFillMode&&(a.style.animationFillMode=r)})}},n=e=>{e.target===a&&(c.current=o(s.current))};return a.addEventListener("animationstart",n),a.addEventListener("animationcancel",r),a.addEventListener("animationend",r),()=>{t.clearTimeout(e),a.removeEventListener("animationstart",n),a.removeEventListener("animationcancel",r),a.removeEventListener("animationend",r)}}f("ANIMATION_END")},[a,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:t.useCallback(e=>{s.current=e?getComputedStyle(e):null,l(e)},[])}}(s),d="function"==typeof u?u({present:c.isPresent}):t.Children.only(u),f=(0,r.useComposedRefs)(c.ref,(i=d,(l=(a=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?i.ref:(l=(a=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in a&&a.isReactWarning)?i.props.ref:i.props.ref||i.ref));return"function"==typeof u||c.isPresent?t.cloneElement(d,{ref:f}):null};function o(e){return e?.animationName||"none"}i.displayName="Presence",e.s(["Presence",0,i])},93847,e=>{"use strict";var t=e.i(97829),r=e.i(90606),n=t[" useId ".trim().toString()]||(()=>void 0),i=0;e.s(["useId",0,function(e){let[o,a]=t.useState(n());return(0,r.useLayoutEffect)(()=>{e||a(e=>e??String(i++))},[e]),e||(o?`radix-${o}`:"")}])},89057,e=>{"use strict";var t=e.i(97829);
1e.s(["useCallbackRef",0,function(e){let r=t.useRef(e);return t.useEffect(()=>{r.current=e}),t.useMemo(()=>(...e)=>r.current?.(...e),[])}])},57798,e=>{"use strict";var t=e.i(97829),r=e.i(91967),n=e.i(15239),i=e.i(31707),o=e.i(74286),a=e.i(93847),l=e.i(7762),s=e.i(89057),u=e.i(34155),c=e.i(78386),d=e.i(25474),f="rovingFocusGroup.onEntryFocus",p={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[m,y,v]=(0,i.createCollection)(h),[g,b]=(0,n.createContextScope)(h,[v]),[x,w]=g(h),j=t.forwardRef((e,t)=>(0,d.jsx)(m.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(m.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(C,{...e,ref:t})})}));j.displayName=h;var C=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:i,orientation:a,loop:m=!1,dir:v,currentTabStopId:g,defaultCurrentTabStopId:b,onCurrentTabStopIdChange:w,onEntryFocus:j,preventScrollOnEntryFocus:C=!1,...E}=e,R=t.useRef(null),S=(0,o.useComposedRefs)(n,R),O=(0,c.useDirection)(v),[A,I]=(0,u.useControllableState)({prop:g,defaultProp:b??null,onChange:w,caller:h}),[k,P]=t.useState(!1),N=(0,s.useCallbackRef)(j),M=y(i),T=t.useRef(!1),[$,L]=t.useState(0);return t.useEffect(()=>{let e=R.current;if(e)return e.addEventListener(f,N),()=>e.removeEventListener(f,N)},[N]),(0,d.jsx)(x,{scope:i,orientation:a,dir:O,loop:m,currentTabStopId:A,onItemFocus:t.useCallback(e=>I(e),[I]),onItemShiftTab:t.useCallback(()=>P(!0),[]),onFocusableItemAdd:t.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>L(e=>e-1),[]),children:(0,d.jsx)(l.Primitive.div,{tabIndex:k||0===$?-1:0,"data-orientation":a,...E,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,()=>{T.current=!0}),onFocus:(0,r.composeEventHandlers)(e.onFocus,e=>{let t=!T.current;if(e.target===e.currentTarget&&t&&!k){let t=new CustomEvent(f,p);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>e.focusable);_([e.find(e=>e.active),e.find(e=>e.id===A),...e].filter(Boolean).map(e=>e.ref.current),C)}}T.current=!1}),onBlur:(0,r.composeEventHandlers)(e.onBlur,()=>P(!1))})})}),E="RovingFocusGroupItem",R=t.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:i,focusable:o=!0,active:s=!1,tabStopId:u,children:c,...f}=e,p=(0,a.useId)(),h=u||p,v=w(E,i),g=v.currentTabStopId===h,b=y(i),{onFocusableItemAdd:x,onFocusableItemRemove:j,currentTabStopId:C}=v;return t.useEffect(()=>{if(o)return x(),()=>j()},[o,x,j]),(0,d.jsx)(m.ItemSlot,{scope:i,id:h,focusable:o,active:s,children:(0,d.jsx)(l.Primitive.span,{tabIndex:g?0:-1,"data-orientation":v.orientation,...f,ref:n,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{o?v.onItemFocus(h):e.preventDefault()}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>v.onItemFocus(h)),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void v.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return S[i]}(e,v.orientation,v.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&i.reverse();let o=i.indexOf(e.currentTarget);i=v.loop?(r=i,n=o+1,r.map((e,t)=>r[(n+t)%r.length])):i.slice(o+1)}setTimeout(()=>_(i))}}),children:"function"==typeof c?c({isCurrentTabStop:g,hasTabStop:null!=C}):c})})});R.displayName=E;var S={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var O=e.i(23771),A="Tabs",[I,k]=(0,n.createContextScope)(A,[b]),P=b(),[N,M]=I(A),T=t.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:i,defaultValue:o,orientation:s="horizontal",dir:f,activationMode:p="automatic",...h}=e,m=(0,c.useDirection)(f),[y,v]=(0,u.useControllableState)({prop:n,onChange:i,defaultProp:o??"",caller:A});return(0,d.jsx)(N,{scope:r,baseId:(0,a.useId)(),value:y,onValueChange:v,orientation:s,dir:m,activationMode:p,children:(0,d.jsx)(l.Primitive.div,{dir:m,"data-orientation":s,...h,ref:t})})});T.displayName=A;var $="TabsList",L=t.forwardRef((e,t)=>
1{let{__scopeTabs:r,loop:n=!0,...i}=e,o=M($,r),a=P(r);return(0,d.jsx)(j,{asChild:!0,...a,orientation:o.orientation,dir:o.dir,loop:n,children:(0,d.jsx)(l.Primitive.div,{role:"tablist","aria-orientation":o.orientation,...i,ref:t})})});L.displayName=$;var D="TabsTrigger",F=t.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,disabled:o=!1,...a}=e,s=M(D,n),u=P(n),c=z(s.baseId,i),f=K(s.baseId,i),p=i===s.value;return(0,d.jsx)(R,{asChild:!0,...u,focusable:!o,active:p,children:(0,d.jsx)(l.Primitive.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":f,"data-state":p?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:c,...a,ref:t,onMouseDown:(0,r.composeEventHandlers)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():s.onValueChange(i)}),onKeyDown:(0,r.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&s.onValueChange(i)}),onFocus:(0,r.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==s.activationMode;p||o||!e||s.onValueChange(i)})})})});F.displayName=D;var B="TabsContent",U=t.forwardRef((e,r)=>{let{__scopeTabs:n,value:i,forceMount:o,children:a,...s}=e,u=M(B,n),c=z(u.baseId,i),f=K(u.baseId,i),p=i===u.value,h=t.useRef(p);return t.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.jsx)(O.Presence,{present:o||p,children:({present:t})=>(0,d.jsx)(l.Primitive.div,{"data-state":p?"active":"inactive","data-orientation":u.orientation,role:"tabpanel","aria-labelledby":c,hidden:!t,id:f,tabIndex:0,...s,ref:r,style:{...e.style,animationDuration:h.current?"0s":void 0},children:t&&a})})});function z(e,t){return`${e}-trigger-${t}`}function K(e,t){return`${e}-content-${t}`}U.displayName=B,e.s(["Content",0,U,"List",0,L,"Root",0,T,"Trigger",0,F],57798)},31821,e=>{"use strict";var t=e.i(97829);e.s(["default",0,function(e){return(0,t.useSyncExternalStore)(t=>{let r=window.matchMedia(e);return r.addEventListener("change",t),()=>r.removeEventListener("change",t)},()=>window.matchMedia(e).matches,()=>!1)}])},22301,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return a},requestIdleCallback:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},a="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},28389,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ESCAPE_REGEX:function(){return a},htmlEscapeAttributeString:function(){return c},htmlEscapeJsonString:function(){return u}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},a=/[&><\u2028\u2029]/g,l={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},s=/[&"'<>]/g;function u(e){return e.replace(a,e=>o[e])}function c(e){return e.replace(s,e=>l[e])}},725,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return x},handleClientScriptLoad:function(){return v},initScriptLoader:function(){return g}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let o=e.r(81258),a=e.r(44066),l=e.r(25474),s=o._(e.r(15787)),u=a._(e.r(97829)),c=e.r(74627),d=e.r(84482),f=e.r(22301),p=e.r(28389),h=new Map,m=new Set,y=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:o,children:a="",strategy:l="afterInteractive",onError:u,stylesheets:c}=e,f=r||t;if(f&&m.has(f))return;if(h.has(t)){m.add(f),h.get(t).then(n,u);return}let p=()=>{i&&i(),m.add(f)},y=document.createElement("script"),v=new Promise((e,t)=>
1{y.addEventListener("load",function(t){e(),n&&n.call(this,t),p()}),y.addEventListener("error",function(e){t(e)})}).catch(function(e){u&&u(e)});o?(y.innerHTML=o.__html||"",p()):a?(y.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",p()):t&&(y.src=t,h.set(t,v)),(0,d.setAttributesFromProps)(y,e),"worker"===l&&y.setAttribute("type","text/partytown"),y.setAttribute("data-nscript",l),c&&(e=>{if(s.default.preinit)return e.forEach(e=>{s.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(c),document.body.appendChild(y)};function v(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>y(e))}):y(e)}function g(e){e.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");m.add(t)})}function b(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:o="afterInteractive",onError:a,stylesheets:d,...h}=e,{updateScripts:v,scripts:g,getIsSsr:b,appDir:x,nonce:w}=(0,u.useContext)(c.HeadManagerContext);w=h.nonce||w;let j=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||r;j.current||(i&&e&&m.has(e)&&i(),j.current=!0)},[i,t,r]);let C=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{if(!C.current){if("afterInteractive"===o)y(e);else"lazyOnload"===o&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>y(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>y(e))}));C.current=!0}},[e,o]),("beforeInteractive"===o||"worker"===o)&&(v?(g[o]=(g[o]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:a,...h,nonce:w}]),v(g)):b&&b()?m.add(t||r):b&&!b()&&y({...e,nonce:w})),x){if(d&&d.forEach(e=>{s.default.preinit(e,{as:"style"})}),"beforeInteractive"===o)if(!r)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,l.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([0,{...h,id:t}]))})`}});else return s.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:w,crossOrigin:h.crossOrigin}:{as:"script",nonce:w,crossOrigin:h.crossOrigin}),(0,l.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,p.htmlEscapeJsonString)(JSON.stringify([r,{...h,id:t}]))})`}});"afterInteractive"===o&&r&&s.default.preload(r,h.integrity?{as:"script",integrity:h.integrity,nonce:w,crossOrigin:h.crossOrigin}:{as:"script",nonce:w,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(b,"__nextScript",{value:!0});let x=b;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},37090,(e,t,r)=>{t.exports=e.r(725)},17812,e=>{"use strict";var t=e.i(97829),r=e.i(15239),n=e.i(31707),i=e.i(74286),o=e.i(91967),a=e.i(34155),l=e.i(7762),s=e.i(90606),u=e.i(23771),c=e.i(93847),d=e.i(25474),f="Collapsible",[p,h]=(0,r.createContextScope)(f),[m,y]=p(f),v=t.forwardRef((e,r)=>{let{__scopeCollapsible:n,open:i,defaultOpen:o,disabled:s,onOpenChange:u,...p}=e,[h,y]=(0,a.useControllableState)({prop:i,defaultProp:o??!1,onChange:u,caller:f});return(0,d.jsx)(m,{scope:n,disabled:s,contentId:(0,c.useId)(),open:h,onOpenToggle:t.useCallback(()=>y(e=>!e),[y]),children:(0,d.jsx)(l.Primitive.div,{"data-state":C(h),"data-disabled":s?"":void 0,...p,ref:r})})});v.displayName=f;var g="CollapsibleTrigger",b=t.forwardRef((e,t)=>{let{__scopeCollapsible:r,...n}=e,i=y(g,r);return(0,d.jsx)(l.Primitive.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":C(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...n,ref:t,onClick:(0,o.composeEventHandlers)(e.onClick,i.onOpenToggle)})});b.displayName=g;var x="CollapsibleContent",w=t.forwardRef((e,t)=>
1{let{forceMount:r,...n}=e,i=y(x,e.__scopeCollapsible);return(0,d.jsx)(u.Presence,{present:r||i.open,children:({present:e})=>(0,d.jsx)(j,{...n,ref:t,present:e})})});w.displayName=x;var j=t.forwardRef((e,r)=>{let{__scopeCollapsible:n,present:o,children:a,...u}=e,c=y(x,n),[f,p]=t.useState(o),h=t.useRef(null),m=(0,i.useComposedRefs)(r,h),v=t.useRef(0),g=v.current,b=t.useRef(0),w=b.current,j=c.open||f,E=t.useRef(j),R=t.useRef(void 0);return t.useEffect(()=>{let e=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,s.useLayoutEffect)(()=>{let e=h.current;if(e){R.current=R.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,b.current=t.width,E.current||(e.style.transitionDuration=R.current.transitionDuration,e.style.animationName=R.current.animationName),p(o)}},[c.open,o]),(0,d.jsx)(l.Primitive.div,{"data-state":C(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!j,...u,ref:m,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":w?`${w}px`:void 0,...e.style},children:j&&a})});function C(e){return e?"open":"closed"}var E=e.i(78386),R="Accordion",S=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[_,O,A]=(0,n.createCollection)(R),[I,k]=(0,r.createContextScope)(R,[A,h]),P=h(),N=t.default.forwardRef((e,t)=>{let{type:r,...n}=e;return(0,d.jsx)(_.Provider,{scope:e.__scopeAccordion,children:"multiple"===r?(0,d.jsx)(F,{...n,ref:t}):(0,d.jsx)(D,{...n,ref:t})})});N.displayName=R;var[M,T]=I(R),[$,L]=I(R,{collapsible:!1}),D=t.default.forwardRef((e,r)=>{let{value:n,defaultValue:i,onValueChange:o=()=>{},collapsible:l=!1,...s}=e,[u,c]=(0,a.useControllableState)({prop:n,defaultProp:i??"",onChange:o,caller:R});return(0,d.jsx)(M,{scope:e.__scopeAccordion,value:t.default.useMemo(()=>u?[u]:[],[u]),onItemOpen:c,onItemClose:t.default.useCallback(()=>l&&c(""),[l,c]),children:(0,d.jsx)($,{scope:e.__scopeAccordion,collapsible:l,children:(0,d.jsx)(z,{...s,ref:r})})})}),F=t.default.forwardRef((e,r)=>{let{value:n,defaultValue:i,onValueChange:o=()=>{},...l}=e,[s,u]=(0,a.useControllableState)({prop:n,defaultProp:i??[],onChange:o,caller:R}),c=t.default.useCallback(e=>u((t=[])=>[...t,e]),[u]),f=t.default.useCallback(e=>u((t=[])=>t.filter(t=>t!==e)),[u]);return(0,d.jsx)(M,{scope:e.__scopeAccordion,value:s,onItemOpen:c,onItemClose:f,children:(0,d.jsx)($,{scope:e.__scopeAccordion,collapsible:!0,children:(0,d.jsx)(z,{...l,ref:r})})})}),[B,U]=I(R),z=t.default.forwardRef((e,r)=>{let{__scopeAccordion:n,disabled:a,dir:s,orientation:u="vertical",...c}=e,f=t.default.useRef(null),p=(0,i.useComposedRefs)(f,r),h=O(n),m="ltr"===(0,E.useDirection)(s),y=(0,o.composeEventHandlers)(e.onKeyDown,e=>{if(!S.includes(e.key))return;let t=e.target,r=h().filter(e=>!e.ref.current?.disabled),n=r.findIndex(e=>e.ref.current===t),i=r.length;if(-1===n)return;e.preventDefault();let o=n,a=i-1,l=()=>{(o=n+1)>a&&(o=0)},s=()=>{(o=n-1)<0&&(o=a)};switch(e.key){case"Home":o=0;break;case"End":o=a;break;case"ArrowRight":"horizontal"===u&&(m?l():s());break;case"ArrowDown":"vertical"===u&&l();break;case"ArrowLeft":"horizontal"===u&&(m?s():l());break;case"ArrowUp":"vertical"===u&&s()}let c=o%i;r[c].ref.current?.focus()});return(0,d.jsx)(B,{scope:n,disabled:a,direction:s,orientation:u,children:(0,d.jsx)(_.Slot,{scope:n,children:(0,d.jsx)(l.Primitive.div,{...c,"data-orientation":u,ref:p,onKeyDown:a?void 0:y})})})}),K="AccordionItem",[H,V]=I(K),W=t.default.forwardRef((e,t)=>{let{__scopeAccordion:r,value:n,...i}=e,o=U(K,r),a=T(K,r),l=P(r),s=(0,c.useId)(),u=n&&a.value.includes(n)||!1,f=o.disabled||e.disabled;return(0,d.jsx)(H,{scope:r,open:u,disabled:f,triggerId:s,children:(0,d.jsx)(v,{"data-orientation":o.orientation,"data-state":Y(u),...l,...i,ref:t,disabled:f,open:u,onOpenChange:e=>{e?a.onItemOpen(n):a.onItemClose(n)}})})});W.displayName=K;var q="AccordionHeader",J=t.default.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=U(R,r),o=V(q,r);return(0,d.jsx)(l.Primitive.h3,{"data-orientation":i.orientation,"data-state":Y(o.open),"data-disabled":o.disabled?"":void 0,...n,ref:t})});J.displayName=q;var G="AccordionTrigger",X=t.default.forwardRef((e,t)=>
1{let{__scopeAccordion:r,...n}=e,i=U(R,r),o=V(G,r),a=L(G,r),l=P(r);return(0,d.jsx)(_.ItemSlot,{scope:r,children:(0,d.jsx)(b,{"aria-disabled":o.open&&!a.collapsible||void 0,"data-orientation":i.orientation,id:o.triggerId,...l,...n,ref:t})})});X.displayName=G;var Z="AccordionContent",Q=t.default.forwardRef((e,t)=>{let{__scopeAccordion:r,...n}=e,i=U(R,r),o=V(Z,r),a=P(r);return(0,d.jsx)(w,{role:"region","aria-labelledby":o.triggerId,"data-orientation":i.orientation,...a,...n,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function Y(e){return e?"open":"closed"}Q.displayName=Z,e.s(["Accordion",0,N,"AccordionContent",0,Q,"AccordionHeader",0,J,"AccordionItem",0,W,"AccordionTrigger",0,X,"Content",0,Q,"Header",0,J,"Item",0,W,"Root",0,N,"Trigger",0,X,"createAccordionScope",0,k],17812)}]);

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.