PageSourceSearch

https://www.cricketscotland.com/_next/static/chunks/740-498dc049b3b0453d.js

js cricketscotland.com collected 2026-10-02 11:06:15 UTC 20,326 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[740],{6886:function(e,t,n){n.d(t,{N:function(){return a}});var r=n(2265),o=e=>{let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),t};let i=(e,t=100,n=!1)=>{let i=o(e),a=r.useRef(),u=[t,n,i];function l(){a.current&&clearTimeout(a.current),a.current=void 0}function s(){a.current=void 0}return r.useEffect(()=>l,u),r.useCallback(function(){let e=arguments,{current:r}=a;if(void 0===r&&n)return a.current=setTimeout(s,t),i.current.apply(null,e);r&&clearTimeout(r),a.current=setTimeout(()=>{a.current=void 0,i.current.apply(null,e)},t)},u)},a=(e,t,n)=>{let o=r.useState(e);return[o[0],i(o[1],t,n),o[1]]}},8667:function(e,t,n){n.d(t,{default:function(){return o.a}});var r=n(8003),o=n.n(r)},8221:function(e,t){let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DOMAttributeNames:function(){return r},default:function(){return a},isEqualNode:function(){return i}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(e){let{type:t,props:n}=e,o=document.createElement(t);for(let e in n){if(!n.hasOwnProperty(e)||"children"===e||"dangerouslySetInnerHTML"===e||void 0===n[e])continue;let i=r[e]||e.toLowerCase();"script"===t&&("async"===i||"defer"===i||"noModule"===i)?o[i]=!!n[e]:o.setAttribute(i,n[e])}let{children:i,dangerouslySetInnerHTML:a}=n;return a?o.innerHTML=a.__html||"":i&&(o.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):""),o}function i(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){let r=t.cloneNode(!0);return r.setAttribute("nonce",""),r.nonce=n,n===e.nonce&&e.isEqualNode(r)}}return e.isEqualNode(t)}function a(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let n=t[e.type]||[];n.push(e),t[e.type]=n});let r=t.title?t.title[0]:null,o="";if(r){let{children:e}=r.props;o="string"==typeof e?e:Array.isArray(e)?e.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{n(e,t[e]||[])})}}}n=(e,t)=>{let n=document.getElementsByTagName("head")[0],r=n.querySelector("meta[name=next-head-count]"),a=Number(r.content),u=[];for(let t=0,n=r.previousElementSibling;t<a;t++,n=(null==n?void 0:n.previousElementSibling)||null){var l;(null==n?void 0:null==(l=n.tagName)?void 0:l.toLowerCase())===e&&u.push(n)}let s=t.map(o).filter(e=>{for(let t=0,n=u.length;t<n;t++)if(i(u[t],e))return u.splice(t,1),!1;return!0});u.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),s.forEach(e=>n.insertBefore(e,r)),r.content=(a-u.length+s.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8003:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return y},handleClientScriptLoad:function(){return g},initScriptLoader:function(){return h}});let r=n(7043),o=n(3099),i=n(7437),a=r._(n(4887)),u=o._(n(2265)),l=n(8701),s=n(8221),c=n(3515),d=new Map,f=new Set,v=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],p=e=>{if(a.default.preinit){e.forEach(e=>{a.default.preinit(e,{as:"style"})});return}if("undefined"!=typeof window){let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}},m=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:o=null,dangerouslySetInnerHTML:i,children:a="",strategy:u="afterInteractive",onError:l,stylesheets:c}=e,m=n||t;if(m&&f.has(m))return;if(d.has(t)){f.add(m),d.get(t).then(r,l);return}let g=()=>{o&&o(),f.add(m)},h=document.createElement("script"),w=new Promise((e,t)=>
1{h.addEventListener("load",function(t){e(),r&&r.call(this,t),g()}),h.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});for(let[n,r]of(i?(h.innerHTML=i.__html||"",g()):a?(h.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",g()):t&&(h.src=t,d.set(t,w)),Object.entries(e))){if(void 0===r||v.includes(n))continue;let e=s.DOMAttributeNames[n]||n.toLowerCase();h.setAttribute(e,r)}"worker"===u&&h.setAttribute("type","text/partytown"),h.setAttribute("data-nscript",u),c&&p(c),document.body.appendChild(h)};function g(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))}):m(e)}function h(e){e.forEach(g),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function w(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:o=null,strategy:s="afterInteractive",onError:d,stylesheets:v,...p}=e,{updateScripts:g,scripts:h,getIsSsr:w,appDir:y,nonce:b}=(0,u.useContext)(l.HeadManagerContext),E=(0,u.useRef)(!1);(0,u.useEffect)(()=>{let e=t||n;E.current||(o&&e&&f.has(e)&&o(),E.current=!0)},[o,t,n]);let x=(0,u.useRef)(!1);if((0,u.useEffect)(()=>{!x.current&&("afterInteractive"===s?m(e):"lazyOnload"===s&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))})),x.current=!0)},[e,s]),("beforeInteractive"===s||"worker"===s)&&(g?(h[s]=(h[s]||[]).concat([{id:t,src:n,onLoad:r,onReady:o,onError:d,...p}]),g(h)):w&&w()?f.add(t||n):w&&!w()&&m(e)),y){if(v&&v.forEach(e=>{a.default.preinit(e,{as:"style"})}),"beforeInteractive"===s)return n?(a.default.preload(n,p.integrity?{as:"script",integrity:p.integrity,nonce:b,crossOrigin:p.crossOrigin}:{as:"script",nonce:b,crossOrigin:p.crossOrigin}),(0,i.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([n,{...p,id:t}])+")"}})):(p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...p,id:t}])+")"}}));"afterInteractive"===s&&n&&a.default.preload(n,p.integrity?{as:"script",integrity:p.integrity,nonce:b,crossOrigin:p.crossOrigin}:{as:"script",nonce:b,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(w,"__nextScript",{value:!0});let y=w;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5509:function(e,t,n){n.d(t,{VY:function(){return ey},aV:function(){return ep},ck:function(){return em},fC:function(){return ev},l_:function(){return eb},rU:function(){return eh},xz:function(){return eg},z$:function(){return ew}});var r=n(2265),o=n(4887),i=n(3966),a=n(6741),u=n(6840),l=n(886),s=n(8575),c=n(9114),d=n(1599),f=n(9255),v=n(7822),p=n(5278),m=n(6718),g=n(1188),h=n(6606),w=n(5098),y=n(7437),b="NavigationMenu",[E,x,M]=(0,v.B)(b),[C,R,_]=(0,v.B)(b),[T,j]=(0,i.b)(b,[M,_]),[N,L]=T(b),[I,S]=T(b),P=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:o,onValueChange:i,defaultValue:a,delayDuration:d=200,skipDelayDuration:f=300,orientation:v="horizontal",dir:p,...m}=e,[g,h]=r.useState(null),w=(0,s.e)(t,e=>h(e)),b=(0,c.gm)(p),E=r.useRef(0),x=r.useRef(0),M=r.useRef(0),[C,R]=r.useState(!0),[_="",T]=(0,l.T)({prop:o,onChange:e=>{let t=f>0;""!==e?(window.clearTimeout(M.current),t&&R(!1)):(window.clearTimeout(M.current),M.current=window.setTimeout(()=>R(!0),f)),null==i||i(e)},defaultProp:a}),j=r.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>T(""),150)},[T]),N=r.useCallback(e=>{window.clearTimeout(x.current),T(e)},[T]),L=r.useCallback(e=>{_===e?window.clearTimeout(x.current):E.current=window.setTimeout(()=>{window.clearTimeout(x.current),T(e)},d)},[_,T,d]);return r.useEffect(()=>()=>{window.clearTimeout(E.current),window.clearTimeout(x.current),window.clearTimeout(
1M.current)},[]),(0,y.jsx)(O,{scope:n,isRootMenu:!0,value:_,dir:b,orientation:v,rootNavigationMenu:g,onTriggerEnter:e=>{window.clearTimeout(E.current),C?L(e):N(e)},onTriggerLeave:()=>{window.clearTimeout(E.current),j()},onContentEnter:()=>window.clearTimeout(x.current),onContentLeave:j,onItemSelect:e=>{T(t=>t===e?"":e)},onItemDismiss:()=>T(""),children:(0,y.jsx)(u.WV.nav,{"aria-label":"Main","data-orientation":v,dir:b,...m,ref:w})})});P.displayName=b;var A="NavigationMenuSub";r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:r,onValueChange:o,defaultValue:i,orientation:a="horizontal",...s}=e,c=L(A,n),[d="",f]=(0,l.T)({prop:r,onChange:o,defaultProp:i});return(0,y.jsx)(O,{scope:n,isRootMenu:!1,value:d,dir:c.dir,orientation:a,rootNavigationMenu:c.rootNavigationMenu,onTriggerEnter:e=>f(e),onItemSelect:e=>f(e),onItemDismiss:()=>f(""),children:(0,y.jsx)(u.WV.div,{"data-orientation":a,...s,ref:t})})}).displayName=A;var O=e=>{let{scope:t,isRootMenu:n,rootNavigationMenu:o,dir:i,orientation:a,children:u,value:l,onItemSelect:s,onItemDismiss:c,onTriggerEnter:d,onTriggerLeave:v,onContentEnter:p,onContentLeave:g}=e,[w,b]=r.useState(null),[x,M]=r.useState(new Map),[C,R]=r.useState(null);return(0,y.jsx)(N,{scope:t,isRootMenu:n,rootNavigationMenu:o,value:l,previousValue:(0,m.D)(l),baseId:(0,f.M)(),dir:i,orientation:a,viewport:w,onViewportChange:b,indicatorTrack:C,onIndicatorTrackChange:R,onTriggerEnter:(0,h.W)(d),onTriggerLeave:(0,h.W)(v),onContentEnter:(0,h.W)(p),onContentLeave:(0,h.W)(g),onItemSelect:(0,h.W)(s),onItemDismiss:(0,h.W)(c),onViewportContentChange:r.useCallback((e,t)=>{M(n=>(n.set(e,t),new Map(n)))},[]),onViewportContentRemove:r.useCallback(e=>{M(t=>t.has(e)?(t.delete(e),new Map(t)):t)},[]),children:(0,y.jsx)(E.Provider,{scope:t,children:(0,y.jsx)(I,{scope:t,items:x,children:u})})})},k="NavigationMenuList",D=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=L(k,n),i=(0,y.jsx)(u.WV.ul,{"data-orientation":o.orientation,...r,ref:t});return(0,y.jsx)(u.WV.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:(0,y.jsx)(E.Slot,{scope:n,children:o.isRootMenu?(0,y.jsx)(er,{asChild:!0,children:i}):i})})});D.displayName=k;var F="NavigationMenuItem",[V,W]=T(F),H=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:o,...i}=e,a=(0,f.M)(),l=r.useRef(null),s=r.useRef(null),c=r.useRef(null),d=r.useRef(()=>{}),v=r.useRef(!1),p=r.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start";if(l.current){d.current();let t=ea(l.current);t.length&&eu("start"===e?t:t.reverse())}},[]),m=r.useCallback(()=>{if(l.current){let e=ea(l.current);e.length&&(d.current=(e.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{e.forEach(e=>{let t=e.dataset.tabindex;e.setAttribute("tabindex",t)})}))}},[]);return(0,y.jsx)(V,{scope:n,value:o||a||"LEGACY_REACT_AUTO_VALUE",triggerRef:s,contentRef:l,focusProxyRef:c,wasEscapeCloseRef:v,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:m,onContentFocusOutside:m,children:(0,y.jsx)(u.WV.li,{...i,ref:t})})});H.displayName=F;var z="NavigationMenuTrigger",K=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,disabled:o,...i}=e,l=L(z,e.__scopeNavigationMenu),c=W(z,e.__scopeNavigationMenu),d=r.useRef(null),f=(0,s.e)(d,c.triggerRef,t),v=ec(l.baseId,c.value),p=ed(l.baseId,c.value),m=r.useRef(!1),g=r.useRef(!1),h=c.value===l.value;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(E.ItemSlot,{scope:n,value:c.value,children:(0,y.jsx)(ei,{asChild:!0,children:(0,y.jsx)(u.WV.button,{id:v,disabled:o,"data-disabled":o?"":void 0,"data-state":es(h),"aria-expanded":h,"aria-controls":p,...i,ref:f,onPointerEnter:(0,a.M)(e.onPointerEnter,()=>{g.current=!1,c.wasEscapeCloseRef.current=!1}),onPointerMove:(0,a.M)(e.onPointerMove,ef(()=>{o||g.current||c.wasEscapeCloseRef.current||m.current||(l.onTriggerEnter(c.value),m.current=!0)})),onPointerLeave:(0,a.M)(e.onPointerLeave,ef(()=>{o||(l.onTriggerLeave(),m.current=!1)})),onClick:(0,a.M)(e.onClick,()=>{l.onItemSelect(c.value),g.current=h}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{let t={horizontal:"ArrowDown",vertical:"rtl"===l.dir?"ArrowLeft":"ArrowRight"}[l.orientation];h&&e.key===t&&(c.onEntryKeyDown(),e.preventDefault())})})})}),h&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(w.f,{"aria-hidden":!0,tabIndex:0,ref:c.focusProxyRef,onFocus:e=>{let t=c.contentRef.current,n=e.relatedTarget,r=n===d.current,o=null==t?void 0:t.contains(n);(r||!o)&&c.onFocusProxyEnter(r?"start":"end")}}),l.viewport&&(0,y.jsx)("span",{"aria-owns":p})]})]})});K.displayName=z;var q="navigationMenu.linkSelect",U=r.forwardRef((e,t)=>
1{let{__scopeNavigationMenu:n,active:r,onSelect:o,...i}=e;return(0,y.jsx)(ei,{asChild:!0,children:(0,y.jsx)(u.WV.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:t,onClick:(0,a.M)(e.onClick,e=>{let t=e.target,n=new CustomEvent(q,{bubbles:!0,cancelable:!0});if(t.addEventListener(q,e=>null==o?void 0:o(e),{once:!0}),(0,u.jH)(t,n),!n.defaultPrevented&&!e.metaKey){let e=new CustomEvent(Q,{bubbles:!0,cancelable:!0});(0,u.jH)(t,e)}},{checkForDefaultPrevented:!1})})})});U.displayName="NavigationMenuLink";var B="NavigationMenuIndicator",G=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,i=L(B,e.__scopeNavigationMenu),a=!!i.value;return i.indicatorTrack?o.createPortal((0,y.jsx)(d.z,{present:n||a,children:(0,y.jsx)(Y,{...r,ref:t})}),i.indicatorTrack):null});G.displayName=B;var Y=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...o}=e,i=L(B,n),a=x(n),[l,s]=r.useState(null),[c,d]=r.useState(null),f="horizontal"===i.orientation,v=!!i.value;r.useEffect(()=>{var e;let t=null===(e=a().find(e=>e.value===i.value))||void 0===e?void 0:e.ref.current;t&&s(t)},[a,i.value]);let p=()=>{l&&d({size:f?l.offsetWidth:l.offsetHeight,offset:f?l.offsetLeft:l.offsetTop})};return el(l,p),el(i.indicatorTrack,p),c?(0,y.jsx)(u.WV.div,{"aria-hidden":!0,"data-state":v?"visible":"hidden","data-orientation":i.orientation,...o,ref:t,style:{position:"absolute",...f?{left:0,width:c.size+"px",transform:"translateX(".concat(c.offset,"px)")}:{top:0,height:c.size+"px",transform:"translateY(".concat(c.offset,"px)")},...o.style}}):null}),J="NavigationMenuContent",X=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=L(J,e.__scopeNavigationMenu),i=W(J,e.__scopeNavigationMenu),u=(0,s.e)(i.contentRef,t),l=i.value===o.value,c={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...r};return o.viewport?(0,y.jsx)($,{forceMount:n,...c,ref:u}):(0,y.jsx)(d.z,{present:n||l,children:(0,y.jsx)(Z,{"data-state":es(l),...c,ref:u,onPointerEnter:(0,a.M)(e.onPointerEnter,o.onContentEnter),onPointerLeave:(0,a.M)(e.onPointerLeave,ef(o.onContentLeave)),style:{pointerEvents:!l&&o.isRootMenu?"none":void 0,...c.style}})})});X.displayName=J;var $=r.forwardRef((e,t)=>{let{onViewportContentChange:n,onViewportContentRemove:r}=L(J,e.__scopeNavigationMenu);return(0,g.b)(()=>{n(e.value,{ref:t,...e})},[e,t,n]),(0,g.b)(()=>()=>r(e.value),[e.value,r]),null}),Q="navigationMenu.rootContentDismiss",Z=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,value:o,triggerRef:i,focusProxyRef:u,wasEscapeCloseRef:l,onRootContentClose:c,onContentFocusOutside:d,...f}=e,v=L(J,n),m=r.useRef(null),g=(0,s.e)(m,t),h=ec(v.baseId,o),w=ed(v.baseId,o),b=x(n),E=r.useRef(null),{onItemDismiss:M}=v;r.useEffect(()=>{let e=m.current;if(v.isRootMenu&&e){let t=()=>{var t;M(),c(),e.contains(document.activeElement)&&(null===(t=i.current)||void 0===t||t.focus())};return e.addEventListener(Q,t),()=>e.removeEventListener(Q,t)}},[v.isRootMenu,e.value,i,M,c]);let C=r.useMemo(()=>{let e=b().map(e=>e.value);"rtl"===v.dir&&e.reverse();let t=e.indexOf(v.value),n=e.indexOf(v.previousValue),r=o===v.value,i=n===e.indexOf(o);if(!r&&!i)return E.current;let a=(()=>{if(t!==n){if(r&&-1!==n)return t>n?"from-end":"from-start";if(i&&-1!==t)return t>n?"to-start":"to-end"}return null})();return E.current=a,a},[v.previousValue,v.value,v.dir,b,o]);return(0,y.jsx)(er,{asChild:!0,children:(0,y.jsx)(p.XB,{id:w,"aria-labelledby":h,"data-motion":C,"data-orientation":v.orientation,...f,ref:g,disableOutsidePointerEvents:!1,onDismiss:()=>{var e;let t=new Event(Q,{bubbles:!0,cancelable:!0});null===(e=m.current)||void 0===e||e.dispatchEvent(t)},onFocusOutside:(0,a.M)(e.onFocusOutside,e=>{var t;d();let n=e.target;(null===(t=v.rootNavigationMenu)||void 0===t?void 0:t.contains(n))&&e.preventDefault()}),onPointerDownOutside:(0,a.M)(e.onPointerDownOutside,e=>{var t;let n=e.target,r=b().some(e=>{var t;return null===(t=e.ref.current)||void 0===t?void 0:t.contains(n)}),o=v.isRootMenu&&(null===(t=v.viewport)||void 0===t?void 0:t.contains(n));(r||o||!v.isRootMenu)&&e.preventDefault()}),onKeyDown:(0,a.M)(e.onKeyDown,e=>{let t=e.altKey||e.ctrlKey||e.metaKey;if("Tab"===e.key&&!t){let t=ea(e.currentTarget),r=document.activeElement,o=t.findIndex(e=>e===r);if(eu(e.shiftKey?t.slice(0,o).reverse():t.slice(o+1,t.length)))e.preventDefault();else{var n;null===(n=u.current)||void 0===n||n.focus()}}}),onEscapeKeyDown:(0,a.M)(e.onEscapeKeyDown,e=>{l.current=!0})})})}),ee="NavigationMenuViewport",et=r.forwardRef((e,t)=>
1{let{forceMount:n,...r}=e,o=!!L(ee,e.__scopeNavigationMenu).value;return(0,y.jsx)(d.z,{present:n||o,children:(0,y.jsx)(en,{...r,ref:t})})});et.displayName=ee;var en=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,children:o,...i}=e,l=L(ee,n),c=(0,s.e)(t,l.onViewportChange),f=S(J,e.__scopeNavigationMenu),[v,p]=r.useState(null),[m,g]=r.useState(null),h=v?(null==v?void 0:v.width)+"px":void 0,w=v?(null==v?void 0:v.height)+"px":void 0,b=!!l.value,E=b?l.value:l.previousValue;return el(m,()=>{m&&p({width:m.offsetWidth,height:m.offsetHeight})}),(0,y.jsx)(u.WV.div,{"data-state":es(b),"data-orientation":l.orientation,...i,ref:c,style:{pointerEvents:!b&&l.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":h,"--radix-navigation-menu-viewport-height":w,...i.style},onPointerEnter:(0,a.M)(e.onPointerEnter,l.onContentEnter),onPointerLeave:(0,a.M)(e.onPointerLeave,ef(l.onContentLeave)),children:Array.from(f.items).map(e=>{let[t,{ref:n,forceMount:r,...o}]=e,i=E===t;return(0,y.jsx)(d.z,{present:r||i,children:(0,y.jsx)(Z,{...o,ref:(0,s.F)(n,e=>{i&&e&&g(e)})})},t)})})}),er=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=L("FocusGroup",n);return(0,y.jsx)(C.Provider,{scope:n,children:(0,y.jsx)(C.Slot,{scope:n,children:(0,y.jsx)(u.WV.div,{dir:o.dir,...r,ref:t})})})}),eo=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ei=r.forwardRef((e,t)=>{let{__scopeNavigationMenu:n,...r}=e,o=R(n),i=L("FocusGroupItem",n);return(0,y.jsx)(C.ItemSlot,{scope:n,children:(0,y.jsx)(u.WV.button,{...r,ref:t,onKeyDown:(0,a.M)(e.onKeyDown,e=>{if(["Home","End",...eo].includes(e.key)){let t=o().map(e=>e.ref.current);if(["rtl"===i.dir?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(e.key)&&t.reverse(),eo.includes(e.key)){let n=t.indexOf(e.currentTarget);t=t.slice(n+1)}setTimeout(()=>eu(t)),e.preventDefault()}})})})});function ea(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function eu(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}function el(e,t){let n=(0,h.W)(t);(0,g.b)(()=>{let t=0;if(e){let r=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return r.observe(e),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}},[e,n])}function es(e){return e?"open":"closed"}function ec(e,t){return"".concat(e,"-trigger-").concat(t)}function ed(e,t){return"".concat(e,"-content-").concat(t)}function ef(e){return t=>"mouse"===t.pointerType?e(t):void 0}var ev=P,ep=D,em=H,eg=K,eh=U,ew=G,ey=X,eb=et}}]);

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.