PageSourceSearch

https://better-ed.ai/_next/static/chunks/25dm2thl-p7k4.js

js better-ed.ai collected 2026-10-05 13:37:28 UTC 24,296 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,677275,e=>{"use strict";var r=e.i(799136),t=e.i(291967),n=e.i(41986),o=e.i(967928),a=e.i(543250),s=e.i(433616),i=e.i(980939),l=e.i(136131),u=e.i(417256),d=e.i(25486),c=e.i(39207),p="rovingFocusGroup.onEntryFocus",f={bubbles:!1,cancelable:!0},m="RovingFocusGroup",[v,h,g]=(0,n.createCollection)(m),[w,x]=(0,a.createContextScope)(m,[g]),[y,b]=w(m),R=r.forwardRef((e,r)=>(0,c.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(C,{...e,ref:r})})}));R.displayName=m;var C=r.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:a,orientation:s,loop:v=!1,dir:g,currentTabStopId:w,defaultCurrentTabStopId:x,onCurrentTabStopIdChange:b,onEntryFocus:R,preventScrollOnEntryFocus:C=!1,...M}=e,D=r.useRef(null),j=(0,o.useComposedRefs)(n,D),P=(0,d.useDirection)(g),[k,I]=(0,u.useControllableState)({prop:w,defaultProp:x??null,onChange:b,caller:m}),[_,N]=r.useState(!1),S=(0,l.useCallbackRef)(R),T=h(a),F=r.useRef(!1),[A,O]=r.useState(0);return r.useEffect(()=>{let e=D.current;if(e)return e.addEventListener(p,S),()=>e.removeEventListener(p,S)},[S]),(0,c.jsx)(y,{scope:a,orientation:s,dir:P,loop:v,currentTabStopId:k,onItemFocus:r.useCallback(e=>I(e),[I]),onItemShiftTab:r.useCallback(()=>N(!0),[]),onFocusableItemAdd:r.useCallback(()=>O(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>O(e=>e-1),[]),children:(0,c.jsx)(i.Primitive.div,{tabIndex:_||0===A?-1:0,"data-orientation":s,...M,ref:j,style:{outline:"none",...e.style},onMouseDown:(0,t.composeEventHandlers)(e.onMouseDown,()=>{F.current=!0}),onFocus:(0,t.composeEventHandlers)(e.onFocus,e=>{let r=!F.current;if(e.target===e.currentTarget&&r&&!_){let r=new CustomEvent(p,f);if(e.currentTarget.dispatchEvent(r),!r.defaultPrevented){let e=T().filter(e=>e.focusable);E([e.find(e=>e.active),e.find(e=>e.id===k),...e].filter(Boolean).map(e=>e.ref.current),C)}}F.current=!1}),onBlur:(0,t.composeEventHandlers)(e.onBlur,()=>N(!1))})})}),M="RovingFocusGroupItem",D=r.forwardRef((e,n)=>{let{__scopeRovingFocusGroup:o,focusable:a=!0,active:l=!1,tabStopId:u,children:d,...p}=e,f=(0,s.useId)(),m=u||f,g=b(M,o),w=g.currentTabStopId===m,x=h(o),{onFocusableItemAdd:y,onFocusableItemRemove:R,currentTabStopId:C}=g;return r.useEffect(()=>{if(a)return y(),()=>R()},[a,y,R]),(0,c.jsx)(v.ItemSlot,{scope:o,id:m,focusable:a,active:l,children:(0,c.jsx)(i.Primitive.span,{tabIndex:w?0:-1,"data-orientation":g.orientation,...p,ref:n,onMouseDown:(0,t.composeEventHandlers)(e.onMouseDown,e=>{a?g.onItemFocus(m):e.preventDefault()}),onFocus:(0,t.composeEventHandlers)(e.onFocus,()=>g.onItemFocus(m)),onKeyDown:(0,t.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void g.onItemShiftTab();if(e.target!==e.currentTarget)return;let r=function(e,r,t){var n;let o=(n=e.key,"rtl"!==t?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===r&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===r&&["ArrowUp","ArrowDown"].includes(o)))return j[o]}(e,g.orientation,g.dir);if(void 0!==r){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=x().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===r)o.reverse();else if("prev"===r||"next"===r){var t,n;"prev"===r&&o.reverse();let a=o.indexOf(e.currentTarget);o=g.loop?(t=o,n=a+1,t.map((e,r)=>t[(n+r)%t.length])):o.slice(a+1)}setTimeout(()=>E(o))}}),children:"function"==typeof d?d({isCurrentTabStop:w,hasTabStop:null!=C}):d})})});D.displayName=M;var j={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function E(e,r=!1){let t=document.activeElement;for(let n of e)if(n===t||(n.focus({preventScroll:r}),document.activeElement!==t))return}e.s(["Item",0,D,"Root",0,R,"createRovingFocusGroupScope",0,x])},613369,e=>{"use strict";let r=(0,e.i(690992).default)("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);e.s(["default",0,r])},900961,e=>{"use strict";var r=e.i(613369);e.s(["ChevronRight",()=>r.default])},327150,e=>{"use strict";let r=(0,e.i(690992).default)("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);e.s(["Circle",0,r],327150)},755146,e=>{"use strict";var r=e.i(39207),t=e.i(799136),n=e.i(291967),o=e.i(967928),a=e.i(543250),s=e.i(417256),i=e.i(980939),l=e.i(41986),u=e.i(25486),d=e.i(348989),c=e.i(539340),p=e.i(445424),f=e.i(433616),m=e.i(638154),v=e.i(332374),h=e.i(190088),g=e.i(677275),w=e.i(6
152053),x=e.i(136131),y=e.i(73772),b=e.i(669136),R=["Enter"," "],C=["ArrowUp","PageDown","End"],M=["ArrowDown","PageUp","Home",...C],D={ltr:[...R,"ArrowRight"],rtl:[...R,"ArrowLeft"]},j={ltr:["ArrowLeft"],rtl:["ArrowRight"]},E="Menu",[P,k,I]=(0,l.createCollection)(E),[_,N]=(0,a.createContextScope)(E,[I,m.createPopperScope,g.createRovingFocusGroupScope]),S=(0,m.createPopperScope)(),T=(0,g.createRovingFocusGroupScope)(),[F,A]=_(E),[O,H]=_(E),L=e=>{let{__scopeMenu:n,open:o=!1,children:a,dir:s,onOpenChange:i,modal:l=!0}=e,d=S(n),[c,p]=t.useState(null),f=t.useRef(!1),v=(0,x.useCallbackRef)(i),h=(0,u.useDirection)(s);return t.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",r,{capture:!0,once:!0}),document.addEventListener("pointermove",r,{capture:!0,once:!0})},r=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",r,{capture:!0}),document.removeEventListener("pointermove",r,{capture:!0})}},[]),(0,r.jsx)(m.Root,{...d,children:(0,r.jsx)(F,{scope:n,open:o,onOpenChange:v,content:c,onContentChange:p,children:(0,r.jsx)(O,{scope:n,onClose:t.useCallback(()=>v(!1),[v]),isUsingKeyboardRef:f,dir:h,modal:l,children:a})})})};L.displayName=E;var K=t.forwardRef((e,t)=>{let{__scopeMenu:n,...o}=e,a=S(n);return(0,r.jsx)(m.Anchor,{...a,...o,ref:t})});K.displayName="MenuAnchor";var G="MenuPortal",[U,B]=_(G,{forceMount:void 0}),V=e=>{let{__scopeMenu:t,forceMount:n,children:o,container:a}=e,s=A(G,t);return(0,r.jsx)(U,{scope:t,forceMount:n,children:(0,r.jsx)(h.Presence,{present:n||s.open,children:(0,r.jsx)(v.Portal,{asChild:!0,container:a,children:o})})})};V.displayName=G;var z="MenuContent",[X,Y]=_(z),q=t.forwardRef((e,t)=>{let n=B(z,e.__scopeMenu),{forceMount:o=n.forceMount,...a}=e,s=A(z,e.__scopeMenu),i=H(z,e.__scopeMenu);return(0,r.jsx)(P.Provider,{scope:e.__scopeMenu,children:(0,r.jsx)(h.Presence,{present:o||s.open,children:(0,r.jsx)(P.Slot,{scope:e.__scopeMenu,children:i.modal?(0,r.jsx)(W,{...a,ref:t}):(0,r.jsx)(Z,{...a,ref:t})})})})}),W=t.forwardRef((e,a)=>{let s=A(z,e.__scopeMenu),i=t.useRef(null),l=(0,o.useComposedRefs)(a,i);return t.useEffect(()=>{let e=i.current;if(e)return(0,y.hideOthers)(e)},[]),(0,r.jsx)(Q,{...e,ref:l,trapFocus:s.open,disableOutsidePointerEvents:s.open,disableOutsideScroll:!0,onFocusOutside:(0,n.composeEventHandlers)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>s.onOpenChange(!1)})}),Z=t.forwardRef((e,t)=>{let n=A(z,e.__scopeMenu);return(0,r.jsx)(Q,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),J=(0,w.createSlot)("MenuContent.ScrollLock"),Q=t.forwardRef((e,a)=>{let{__scopeMenu:s,loop:i=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:f,disableOutsidePointerEvents:v,onEntryFocus:h,onEscapeKeyDown:w,onPointerDownOutside:x,onFocusOutside:y,onInteractOutside:R,onDismiss:D,disableOutsideScroll:j,...E}=e,P=A(z,s),I=H(z,s),_=S(s),N=T(s),F=k(s),[O,L]=t.useState(null),K=t.useRef(null),G=(0,o.useComposedRefs)(a,K,P.onContentChange),U=t.useRef(0),B=t.useRef(""),V=t.useRef(0),Y=t.useRef(null),q=t.useRef("right"),W=t.useRef(0),Z=j?b.RemoveScroll:t.Fragment;t.useEffect(()=>()=>window.clearTimeout(U.current),[]),(0,c.useFocusGuards)();let Q=t.useCallback(e=>{var r,t;return q.current===Y.current?.side&&(r=e,!!(t=Y.current?.area)&&function(e,r){let{x:t,y:n}=e,o=!1;for(let e=0,a=r.length-1;e<r.length;a=e++){let s=r[e],i=r[a],l=s.x,u=s.y,d=i.x,c=i.y;u>n!=c>n&&t<(d-l)*(n-u)/(c-u)+l&&(o=!o)}return o}({x:r.clientX,y:r.clientY},t))},[]);return(0,r.jsx)(X,{scope:s,searchRef:B,onItemEnter:t.useCallback(e=>{Q(e)&&e.preventDefault()},[Q]),onItemLeave:t.useCallback(e=>{Q(e)||(K.current?.focus(),L(null))},[Q]),onTriggerLeave:t.useCallback(e=>{Q(e)&&e.preventDefault()},[Q]),pointerGraceTimerRef:V,onPointerGraceIntentChange:t.useCallback(e=>{Y.current=e},[]),children:(0,r.jsx)(Z,{...j?{as:J,allowPinchZoom:!0}:void 0,children:(0,r.jsx)(p.FocusScope,{asChild:!0,trapped:l,onMountAutoFocus:(0,n.composeEventHandlers)(u,e=>{e.preventDefault(),K.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:f,children:(0,r.jsx)(d.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:v,onEscapeKeyDown:w,onPointerDownOutside:x,onFocusOutside:y,onInteractOutside:R,onDismiss:D,children:(0,r.jsx)(g.Root,{asChild:!0,...
1N,dir:I.dir,orientation:"vertical",loop:i,currentTabStopId:O,onCurrentTabStopIdChange:L,onEntryFocus:(0,n.composeEventHandlers)(h,e=>{I.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,r.jsx)(m.Content,{role:"menu","aria-orientation":"vertical","data-state":eM(P.open),"data-radix-menu-content":"",dir:I.dir,..._,...E,ref:G,style:{outline:"none",...E.style},onKeyDown:(0,n.composeEventHandlers)(E.onKeyDown,e=>{let r=e.target.closest("[data-radix-menu-content]")===e.currentTarget,t=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;if(r){var o;let r,a,s,i,l,u;"Tab"===e.key&&e.preventDefault(),!t&&n&&(o=e.key,r=B.current+o,a=F().filter(e=>!e.disabled),s=document.activeElement,i=a.find(e=>e.ref.current===s)?.textValue,l=function(e,r,t){var n;let o=r.length>1&&Array.from(r).every(e=>e===r[0])?r[0]:r,a=t?e.indexOf(t):-1,s=(n=Math.max(a,0),e.map((r,t)=>e[(n+t)%e.length]));1===o.length&&(s=s.filter(e=>e!==t));let i=s.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return i!==t?i:void 0}(a.map(e=>e.textValue),r,i),u=a.find(e=>e.textValue===l)?.ref.current,function e(r){B.current=r,window.clearTimeout(U.current),""!==r&&(U.current=window.setTimeout(()=>e(""),1e3))}(r),u&&setTimeout(()=>u.focus()))}let a=K.current;if(e.target!==a||!M.includes(e.key))return;e.preventDefault();let s=F().filter(e=>!e.disabled).map(e=>e.ref.current);C.includes(e.key)&&s.reverse(),function(e){let r=document.activeElement;for(let t of e)if(t===r||(t.focus(),document.activeElement!==r))return}(s)}),onBlur:(0,n.composeEventHandlers)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(U.current),B.current="")}),onPointerMove:(0,n.composeEventHandlers)(e.onPointerMove,eE(e=>{let r=e.target,t=W.current!==e.clientX;e.currentTarget.contains(r)&&t&&(q.current=e.clientX>W.current?"right":"left",W.current=e.clientX)}))})})})})})})});q.displayName=z;var $=t.forwardRef((e,t)=>{let{__scopeMenu:n,...o}=e;return(0,r.jsx)(i.Primitive.div,{role:"group",...o,ref:t})});$.displayName="MenuGroup";var ee=t.forwardRef((e,t)=>{let{__scopeMenu:n,...o}=e;return(0,r.jsx)(i.Primitive.div,{...o,ref:t})});ee.displayName="MenuLabel";var er="MenuItem",et="menu.itemSelect",en=t.forwardRef((e,a)=>{let{disabled:s=!1,onSelect:l,...u}=e,d=t.useRef(null),c=H(er,e.__scopeMenu),p=Y(er,e.__scopeMenu),f=(0,o.useComposedRefs)(a,d),m=t.useRef(!1);return(0,r.jsx)(eo,{...u,ref:f,disabled:s,onClick:(0,n.composeEventHandlers)(e.onClick,()=>{let e=d.current;if(!s&&e){let r=new CustomEvent(et,{bubbles:!0,cancelable:!0});e.addEventListener(et,e=>l?.(e),{once:!0}),(0,i.dispatchDiscreteCustomEvent)(e,r),r.defaultPrevented?m.current=!1:c.onClose()}}),onPointerDown:r=>{e.onPointerDown?.(r),m.current=!0},onPointerUp:(0,n.composeEventHandlers)(e.onPointerUp,e=>{m.current||e.currentTarget?.click()}),onKeyDown:(0,n.composeEventHandlers)(e.onKeyDown,e=>{let r=""!==p.searchRef.current;s||r&&" "===e.key||R.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});en.displayName=er;var eo=t.forwardRef((e,a)=>{let{__scopeMenu:s,disabled:l=!1,textValue:u,...d}=e,c=Y(er,s),p=T(s),f=t.useRef(null),m=(0,o.useComposedRefs)(a,f),[v,h]=t.useState(!1),[w,x]=t.useState("");return t.useEffect(()=>{let e=f.current;e&&x((e.textContent??"").trim())},[d.children]),(0,r.jsx)(P.ItemSlot,{scope:s,disabled:l,textValue:u??w,children:(0,r.jsx)(g.Item,{asChild:!0,...p,focusable:!l,children:(0,r.jsx)(i.Primitive.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":l||void 0,"data-disabled":l?"":void 0,...d,ref:m,onPointerMove:(0,n.composeEventHandlers)(e.onPointerMove,eE(e=>{l?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,n.composeEventHandlers)(e.onPointerLeave,eE(e=>c.onItemLeave(e))),onFocus:(0,n.composeEventHandlers)(e.onFocus,()=>h(!0)),onBlur:(0,n.composeEventHandlers)(e.onBlur,()=>h(!1))})})})}),ea=t.forwardRef((e,t)=>{let{checked:o=!1,onCheckedChange:a,...s}=e;return(0,r.jsx)(ef,{scope:e.__scopeMenu,checked:o,children:(0,r.jsx)(en,{role:"menuitemcheckbox","aria-checked":eD(o)?"mixed":o,...s,ref:t,"data-state":ej(o),onSelect:(0,n.composeEventHandlers)(s.onSelect,()=>a?.(!!eD(o)||!o),{checkForDefaultPrevented:!1})})})});ea.displayName="MenuCheckboxItem";var es="MenuRadioGroup",[ei,el]=_(es,{value:void 0,onValueChange:()=>{}}),eu=t.forwardRef((e,t)=>
1{let{value:n,onValueChange:o,...a}=e,s=(0,x.useCallbackRef)(o);return(0,r.jsx)(ei,{scope:e.__scopeMenu,value:n,onValueChange:s,children:(0,r.jsx)($,{...a,ref:t})})});eu.displayName=es;var ed="MenuRadioItem",ec=t.forwardRef((e,t)=>{let{value:o,...a}=e,s=el(ed,e.__scopeMenu),i=o===s.value;return(0,r.jsx)(ef,{scope:e.__scopeMenu,checked:i,children:(0,r.jsx)(en,{role:"menuitemradio","aria-checked":i,...a,ref:t,"data-state":ej(i),onSelect:(0,n.composeEventHandlers)(a.onSelect,()=>s.onValueChange?.(o),{checkForDefaultPrevented:!1})})})});ec.displayName=ed;var ep="MenuItemIndicator",[ef,em]=_(ep,{checked:!1}),ev=t.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:o,...a}=e,s=em(ep,n);return(0,r.jsx)(h.Presence,{present:o||eD(s.checked)||!0===s.checked,children:(0,r.jsx)(i.Primitive.span,{...a,ref:t,"data-state":ej(s.checked)})})});ev.displayName=ep;var eh=t.forwardRef((e,t)=>{let{__scopeMenu:n,...o}=e;return(0,r.jsx)(i.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});eh.displayName="MenuSeparator";var eg=t.forwardRef((e,t)=>{let{__scopeMenu:n,...o}=e,a=S(n);return(0,r.jsx)(m.Arrow,{...a,...o,ref:t})});eg.displayName="MenuArrow";var[ew,ex]=_("MenuSub"),ey="MenuSubTrigger",eb=t.forwardRef((e,a)=>{let s=A(ey,e.__scopeMenu),i=H(ey,e.__scopeMenu),l=ex(ey,e.__scopeMenu),u=Y(ey,e.__scopeMenu),d=t.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:p}=u,f={__scopeMenu:e.__scopeMenu},m=t.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);return t.useEffect(()=>m,[m]),t.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),p(null)}},[c,p]),(0,r.jsx)(K,{asChild:!0,...f,children:(0,r.jsx)(eo,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":l.contentId,"data-state":eM(s.open),...e,ref:(0,o.composeRefs)(a,l.onTriggerChange),onClick:r=>{e.onClick?.(r),e.disabled||r.defaultPrevented||(r.currentTarget.focus(),s.open||s.onOpenChange(!0))},onPointerMove:(0,n.composeEventHandlers)(e.onPointerMove,eE(r=>{u.onItemEnter(r),!r.defaultPrevented&&(e.disabled||s.open||d.current||(u.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{s.onOpenChange(!0),m()},100)))})),onPointerLeave:(0,n.composeEventHandlers)(e.onPointerLeave,eE(e=>{m();let r=s.content?.getBoundingClientRect();if(r){let t=s.content?.dataset.side,n="right"===t,o=r[n?"left":"right"],a=r[n?"right":"left"];u.onPointerGraceIntentChange({area:[{x:e.clientX+(n?-5:5),y:e.clientY},{x:o,y:r.top},{x:a,y:r.top},{x:a,y:r.bottom},{x:o,y:r.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(e),e.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:(0,n.composeEventHandlers)(e.onKeyDown,r=>{let t=""!==u.searchRef.current;e.disabled||t&&" "===r.key||D[i.dir].includes(r.key)&&(s.onOpenChange(!0),s.content?.focus(),r.preventDefault())})})})});eb.displayName=ey;var eR="MenuSubContent",eC=t.forwardRef((e,a)=>{let s=B(z,e.__scopeMenu),{forceMount:i=s.forceMount,...l}=e,u=A(z,e.__scopeMenu),d=H(z,e.__scopeMenu),c=ex(eR,e.__scopeMenu),p=t.useRef(null),f=(0,o.useComposedRefs)(a,p);return(0,r.jsx)(P.Provider,{scope:e.__scopeMenu,children:(0,r.jsx)(h.Presence,{present:i||u.open,children:(0,r.jsx)(P.Slot,{scope:e.__scopeMenu,children:(0,r.jsx)(Q,{id:c.contentId,"aria-labelledby":c.triggerId,...l,ref:f,align:"start",side:"rtl"===d.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{d.isUsingKeyboardRef.current&&p.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,n.composeEventHandlers)(e.onFocusOutside,e=>{e.target!==c.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:(0,n.composeEventHandlers)(e.onEscapeKeyDown,e=>{d.onClose(),e.preventDefault()}),onKeyDown:(0,n.composeEventHandlers)(e.onKeyDown,e=>{let r=e.currentTarget.contains(e.target),t=j[d.dir].includes(e.key);r&&t&&(u.onOpenChange(!1),c.trigger?.focus(),e.preventDefault())})})})})})});function eM(e){return e?"open":"closed"}function eD(e){return"indeterminate"===e}function ej(e){return eD(e)?"indeterminate":e?"checked":"unchecked"}function eE(e){return r=>"mouse"===r.pointerType?e(r):void 0}eC.displayName=eR;var eP="DropdownMenu",[ek,eI]=(0,a.createContextScope)(eP,[N]),e_=N(),[eN,eS]=ek(eP),eT=e=>{let{__scopeDropdownMenu:n,children:o,dir:a,open:i,defaultOpen:l,onOpenChange:u,modal:d=!0}=e,c=e_(n),p=t.useRef(null),[m,v]=(0,s.useControllableState)({prop:i,defaultProp:l??!1,onChange:u,caller:eP});return(0,r.jsx)(eN,{scope:n,triggerId:(0,f.useId)(),triggerRef:p,contentId:(0,f.useId)(),open:m,onOpenChange:v,onOpenToggle:t.useCallback(()=>v(e=>!e),[v]),modal:d,children:(0,r.jsx)(L,{...c,open:m,onOpenChange:v,dir:a,modal:d,children:o})})};eT.displayName=eP;var eF="DropdownMenuTrigger",eA=t.forwardRef((e,t)=>
1{let{__scopeDropdownMenu:a,disabled:s=!1,...l}=e,u=eS(eF,a),d=e_(a);return(0,r.jsx)(K,{asChild:!0,...d,children:(0,r.jsx)(i.Primitive.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":s?"":void 0,disabled:s,...l,ref:(0,o.composeRefs)(t,u.triggerRef),onPointerDown:(0,n.composeEventHandlers)(e.onPointerDown,e=>{!s&&0===e.button&&!1===e.ctrlKey&&(u.onOpenToggle(),u.open||e.preventDefault())}),onKeyDown:(0,n.composeEventHandlers)(e.onKeyDown,e=>{!s&&(["Enter"," "].includes(e.key)&&u.onOpenToggle(),"ArrowDown"===e.key&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eA.displayName=eF;var eO=e=>{let{__scopeDropdownMenu:t,...n}=e,o=e_(t);return(0,r.jsx)(V,{...o,...n})};eO.displayName="DropdownMenuPortal";var eH="DropdownMenuContent",eL=t.forwardRef((e,o)=>{let{__scopeDropdownMenu:a,...s}=e,i=eS(eH,a),l=e_(a),u=t.useRef(!1);return(0,r.jsx)(q,{id:i.contentId,"aria-labelledby":i.triggerId,...l,...s,ref:o,onCloseAutoFocus:(0,n.composeEventHandlers)(e.onCloseAutoFocus,e=>{u.current||i.triggerRef.current?.focus(),u.current=!1,e.preventDefault()}),onInteractOutside:(0,n.composeEventHandlers)(e.onInteractOutside,e=>{let r=e.detail.originalEvent,t=0===r.button&&!0===r.ctrlKey,n=2===r.button||t;(!i.modal||n)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eL.displayName=eH,t.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=e_(n);return(0,r.jsx)($,{...a,...o,ref:t})}).displayName="DropdownMenuGroup";var eK=t.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=e_(n);return(0,r.jsx)(ee,{...a,...o,ref:t})});eK.displayName="DropdownMenuLabel";var eG=t.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=e_(n);return(0,r.jsx)(en,{...a,...o,ref:t})});eG.displayName="DropdownMenuItem";var eU=t.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=e_(n);return(0,r.jsx)(ea,{...a,...o,ref:t})});eU.displayName="DropdownMenuCheckboxItem";var eB=t.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=e_(n);return(0,r.jsx)(eu,{...a,...o,ref:t})});eB.displayName="DropdownMenuRadioGroup";var eV=t.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=e_(n);return(0,r.jsx)(ec,{...a,...o,ref:t})});eV.displayName="DropdownMenuRadioItem";var ez=t.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=e_(n);return(0,r.jsx)(ev,{...a,...o,ref:t})});ez.displayName="DropdownMenuItemIndicator";var eX=t.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=e_(n);return(0,r.jsx)(eh,{...a,...o,ref:t})});eX.displayName="DropdownMenuSeparator",t.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=e_(n);return(0,r.jsx)(eg,{...a,...o,ref:t})}).displayName="DropdownMenuArrow";var eY=t.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=e_(n);return(0,r.jsx)(eb,{...a,...o,ref:t})});eY.displayName="DropdownMenuSubTrigger";var eq=t.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...o}=e,a=e_(n);return(0,r.jsx)(eC,{...a,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eq.displayName="DropdownMenuSubContent",e.i(507555),e.i(900961);var eW=e.i(327150),eZ=e.i(231054);eY.displayName,eq.displayName;let eJ=({className:e,sideOffset:t=4,...n})=>(0,r.jsx)(eO,{children:(0,r.jsx)(eL,{sideOffset:t,className:(0,eZ.cn)("z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-32 overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=open]:animate-in",e),...n})});eJ.displayName=eL.displayName;let eQ=({className:e,inset:t,...n})=>(0,r.jsx)(eG,{className:(0,eZ.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...n});eQ.displayName=eG.displayName,eU.displayName;let e$=({className:e,children:t,...n})=>(0,r.jsxs)(eV,{className:(0,eZ.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",e),...n,children:[(0,r.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,r.jsx)(ez,{children:(0,r.jsx)(eW.Circle,{className:"h-2 w-2 fill-current"})})}),t]});e$.displayName=eV.displayName;let e0=({className:e,inset:t,...n})=>(0,r.jsx)(eK,{className:(0,eZ.cn)("px-2 py-1.5 font-semibold text-sm",t&&"pl-8",e),...n});e0.displayName=eK.displayName;let e1=({className:e,...t})=>(0,r.jsx)(eX,{className:(0,eZ.cn)("-mx-1 my-1 h-px bg-muted",e),...t});e1.displayName=eX.displayName,e.s(["DropdownMenu",0,eT,"DropdownMenuContent",0,eJ,"DropdownMenuItem",0,eQ,"DropdownMenuLabel",0,e0,"DropdownMenuRadioGroup",0,eB,"DropdownMenuRadioItem",0,e$,"DropdownMenuSeparator",0,e1,"DropdownMenuTrigger",0,eA],755146)}]);

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.