PageSourceSearch

https://polytoken.ai/_next/static/chunks/5347-b854455cab1c21ad.js

js polytoken.ai collected 2026-10-05 14:16:27 UTC 23,195 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5347],{51769:(e,n,r)=>{r.d(n,{G5:()=>eJ,H_:()=>eB,JU:()=>eG,Mz:()=>eF,Pb:()=>eZ,UC:()=>eO,UE:()=>F,VF:()=>eH,YJ:()=>eA,ZL:()=>eL,ZP:()=>eq,bL:()=>eT,hN:()=>eN,q7:()=>eU,wv:()=>ez,z6:()=>eV});var t=r(7620),o=r(47231),u=r(37523),a=r(61715),l=r(18107),i=r(35025),c=r(18380),s=r(26419),d=r(18249),f=r(1679),p=r(49999),g=r(14972),v=r(48787),h=r(60421),m=r(81339),w=r(46118),x=r(9111),b=r(9702),M=r(72413),C=r(54568),y=Object.defineProperty,R=(e,n)=>y(e,"name",{value:n,configurable:!0}),j=["Enter"," "],D=["ArrowUp","PageDown","End"],I=["ArrowDown","PageUp","Home",...D],P={ltr:[...j,"ArrowRight"],rtl:[...j,"ArrowLeft"]},_={ltr:["ArrowLeft"],rtl:["ArrowRight"]},K="Menu",[k,E,S]=(0,u.N)(K),[T,F]=(0,l.A)(K,[S,p.Bk,m.RG]),L=(0,p.Bk)(),O=(0,m.RG)(),[A,G]=T(K),[U,B]=T(K),V=R(e=>{let{__scopeMenu:n,open:r=!1,children:o,dir:u,onOpenChange:a,modal:l=!0}=e,c=L(n),[s,d]=t.useState(null),f=t.useRef(!1),g=(0,x.c)(a),v=(0,i.jH)(u);return t.useEffect(()=>{let e=R(()=>{f.current=!0,document.addEventListener("pointerdown",n,{capture:!0,once:!0}),document.addEventListener("pointermove",n,{capture:!0,once:!0})},"handleKeyDown"),n=R(()=>f.current=!1,"handlePointer");return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",n,{capture:!0}),document.removeEventListener("pointermove",n,{capture:!0})}},[]),t.useEffect(()=>{if(!r)return;let e=R(()=>g(!1),"handleBlur");return window.addEventListener("blur",e),()=>window.removeEventListener("blur",e)},[r,g]),(0,C.jsx)(p.bL,{...c,children:(0,C.jsx)(A,{scope:n,open:r,onOpenChange:g,content:s,onContentChange:d,children:(0,C.jsx)(U,{scope:n,onClose:t.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:f,dir:v,modal:l,children:o})})})},"Menu"),N=t.forwardRef(R(function(e,n){let{__scopeMenu:r,...t}=e,o=L(r);return(0,C.jsx)(p.Mz,{...o,...t,ref:n})},"MenuAnchor")),H="MenuPortal",[z,Z]=T(H,{forceMount:void 0}),q=R(e=>{let{__scopeMenu:n,forceMount:r,children:t,container:o}=e,u=G(H,n);return(0,C.jsx)(z,{scope:n,forceMount:r,children:(0,C.jsx)(v.C,{present:r||u.open,children:(0,C.jsx)(g.Z,{asChild:!0,container:o,children:t})})})},"MenuPortal"),J="MenuContent",[X,Y]=T(J),W=t.forwardRef(R(function(e,n){let r=Z(J,e.__scopeMenu),{forceMount:t=r.forceMount,...o}=e,u=G(J,e.__scopeMenu),a=B(J,e.__scopeMenu);return(0,C.jsx)(k.Provider,{scope:e.__scopeMenu,children:(0,C.jsx)(v.C,{present:t||u.open,children:(0,C.jsx)(k.Slot,{scope:e.__scopeMenu,children:a.modal?(0,C.jsx)(Q,{...o,ref:n}):(0,C.jsx)($,{...o,ref:n})})})})},"MenuContent")),Q=t.forwardRef(R(function(e,n){let r=G(J,e.__scopeMenu),u=t.useRef(null),l=(0,a.s)(n,u);return t.useEffect(()=>{let e=u.current;if(e)return(0,b.Eq)(e)},[]),(0,C.jsx)(en,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentModal")),$=t.forwardRef(R(function(e,n){let r=G(J,e.__scopeMenu);return(0,C.jsx)(en,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})},"MenuRootContentNonModal")),ee=(0,w.TL)("MenuContent.ScrollLock"),en=t.forwardRef(R(function(e,n){let{__scopeMenu:r,loop:u=!1,trapFocus:l,onOpenAutoFocus:i,onCloseAutoFocus:f,disableOutsidePointerEvents:g,onEntryFocus:v,onEscapeKeyDown:h,onPointerDownOutside:w,onFocusOutside:x,onInteractOutside:b,onDismiss:y,disableOutsideScroll:j,...P}=e,_=G(J,r),K=B(J,r),k=L(r),S=O(r),T=E(r),[F,A]=t.useState(null),U=t.useRef(null),V=(0,a.s)(n,U,_.onContentChange),N=t.useRef(0),H=t.useRef(""),z=t.useRef(0),Z=t.useRef(null),q=t.useRef("right"),Y=t.useRef(0),W=j?M.A:t.Fragment,Q=R(e=>{var n,r;let t=H.current+e,o=T().filter(e=>!e.disabled),u=document.activeElement,a=null==(n=o.find(e=>e.ref.current===u))?void 0:n.textValue,l=eK(o.map(e=>e.textValue),t,a),i=null==(r=o.find(e=>e.textValue===l))?void 0:r.ref.current;i&&setTimeout(()=>i.focus())},"handleTypeaheadSearch");t.useEffect(()=>()=>window.clearTimeout(N.current),[]),(0,s.Oh)();let $=t.useCallback(e=>{var n,r;return q.current===(null==(n=Z.current)?void 0:n.side)&&eE(e,null==(r=Z.current)?void 0:r.area)},[]);return(0,C.jsx)(X,{scope:r,searchRef:H,onItemEnter:t.useCallback(e=>{$(e)&&e.preventDefault()},[$]),onItemLeave:t.useCallback(e=>{var n;$(e)||(null==(n=U.current)||n.focus(),A(null))},[$]),onTriggerLeave:t.useCallback(e=>{$(e)&&e.preventDefault()},[$]),pointerGraceTimerRef:z,onPointerGraceIntentChange:t.useCallback(e=>{Z.current=e},[]),children:(0,C.jsx)(W,{...j?{as:ee,allowPinchZoom:!0}:void 0,children:(0,C.jsx)(d.n,{asChild:!0,trapped:l,onMountAutoFocus:(0,o.mK)(i,e=>{var n;e.preventDefault(),null==(n=U.current)||n.focus({preventScroll:!0})}),onUnmountAutoFocus:f,children:(0,C.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:g,onEscapeKeyDown:h,onPointerDownOutside:w,onFocusOutside:x,onInteractOutside:b,onDismiss:y,children:(0,C.jsx)(m.bL,{asChild:!0,...S,dir:K.dir,orientation:"vertical",loop:u,currentTabStopId:F,onCurrentTabStopIdChange:A,onEntryFocus:(0,o.mK)(v,e=>{K.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,C.jsx)(p.UC,{role:"menu","aria-orientation":"vertical","data-state":ej(_.open),"data-radix-menu-content":"",dir:K.dir,...k,...P,ref:V,style:{outline:"none",...P.style},onKeyDown:(0,o.mK)(P.onKeyDown,e=>{let n=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,t=1===e.ke
1y.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&t&&Q(e.key));let o=U.current;if(e.target!==o||!I.includes(e.key))return;e.preventDefault();let u=T().filter(e=>!e.disabled).map(e=>e.ref.current);D.includes(e.key)&&u.reverse(),eP(u)}),onBlur:(0,o.mK)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(N.current),H.current="")}),onPointerMove:(0,o.mK)(e.onPointerMove,eS(e=>{let n=e.target,r=Y.current!==e.clientX;e.currentTarget.contains(n)&&r&&(q.current=e.clientX>Y.current?"right":"left",Y.current=e.clientX)}))})})})})})})},"MenuContentImpl")),er=t.forwardRef(R(function(e,n){let{__scopeMenu:r,...t}=e;return(0,C.jsx)(h.sG.div,{role:"group",...t,ref:n})},"MenuGroup")),et=t.forwardRef(R(function(e,n){let{__scopeMenu:r,...t}=e;return(0,C.jsx)(h.sG.div,{...t,ref:n})},"MenuLabel")),eo="MenuItem",eu="menu.itemSelect",ea=t.forwardRef(R(function(e,n){let{disabled:r=!1,onSelect:u,...l}=e,i=t.useRef(null),c=B(eo,e.__scopeMenu),s=Y(eo,e.__scopeMenu),d=(0,a.s)(n,i),f=t.useRef(!1),p=R(()=>{let e=i.current;if(!r&&e){let n=new CustomEvent(eu,{bubbles:!0,cancelable:!0});e.addEventListener(eu,e=>null==u?void 0:u(e),{once:!0}),(0,h.hO)(e,n),n.defaultPrevented?f.current=!1:c.onClose()}},"handleSelect");return(0,C.jsx)(el,{...l,ref:d,disabled:r,onClick:(0,o.mK)(e.onClick,p),onPointerDown:n=>{var r;null==(r=e.onPointerDown)||r.call(e,n),f.current=!0},onPointerUp:(0,o.mK)(e.onPointerUp,e=>{var n;f.current||null==(n=e.currentTarget)||n.click()}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{!r&&e.target===e.currentTarget&&(""===s.searchRef.current||" "!==e.key)&&j.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},"MenuItem")),el=t.forwardRef(R(function(e,n){let{__scopeMenu:r,disabled:u=!1,textValue:l,...i}=e,c=Y(eo,r),s=O(r),d=t.useRef(null),f=(0,a.s)(n,d),[p,g]=t.useState(!1),[v,w]=t.useState("");return t.useEffect(()=>{let e=d.current;if(e){var n;w((null!=(n=e.textContent)?n:"").trim())}},[i.children]),(0,C.jsx)(k.ItemSlot,{scope:r,disabled:u,textValue:null!=l?l:v,children:(0,C.jsx)(m.q7,{asChild:!0,...s,focusable:!u,children:(0,C.jsx)(h.sG.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":u||void 0,"data-disabled":u?"":void 0,...i,ref:f,onPointerMove:(0,o.mK)(e.onPointerMove,eS(e=>{u?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.mK)(e.onPointerLeave,eS(e=>c.onItemLeave(e))),onFocus:(0,o.mK)(e.onFocus,()=>g(!0)),onBlur:(0,o.mK)(e.onBlur,()=>g(!1))})})})},"MenuItemImpl")),ei=t.forwardRef(R(function(e,n){let{checked:r=!1,onCheckedChange:t,...u}=e;return(0,C.jsx)(eg,{scope:e.__scopeMenu,checked:r,children:(0,C.jsx)(ea,{role:"menuitemcheckbox","aria-checked":eD(r)?"mixed":r,...u,ref:n,"data-state":eI(r),onSelect:(0,o.mK)(u.onSelect,()=>null==t?void 0:t(!!eD(r)||!r),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem")),[ec,es]=T("MenuRadioGroup",{value:void 0,onValueChange:R(()=>{},"onValueChange")}),ed=t.forwardRef(R(function(e,n){let{value:r,onValueChange:t,...o}=e,u=(0,x.c)(t);return(0,C.jsx)(ec,{scope:e.__scopeMenu,value:r,onValueChange:u,children:(0,C.jsx)(er,{...o,ref:n})})},"MenuRadioGroup")),ef=t.forwardRef(R(function(e,n){let{value:r,...t}=e,u=es("MenuRadioItem",e.__scopeMenu),a=r===u.value;return(0,C.jsx)(eg,{scope:e.__scopeMenu,checked:a,children:(0,C.jsx)(ea,{role:"menuitemradio","aria-checked":a,...t,ref:n,"data-state":eI(a),onSelect:(0,o.mK)(t.onSelect,()=>{var e;return null==(e=u.onValueChange)?void 0:e.call(u,r)},{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),ep="MenuItemIndicator",[eg,ev]=T(ep,{checked:!1}),eh=t.forwardRef(R(function(e,n){let{__scopeMenu:r,forceMount:t,...o}=e,u=ev(ep,r);return(0,C.jsx)(v.C,{present:t||eD(u.checked)||!0===u.checked,children:(0,C.jsx)(h.sG.span,{...o,ref:n,"data-state":eI(u.checked)})})},"MenuItemIndicator")),em=t.forwardRef(R(function(e,n){let{__scopeMenu:r,...t}=e;return(0,C.jsx)(h.sG.div,{role:"separator","aria-orientation":"horizontal",...t,ref:n})},"MenuSeparator")),ew="MenuSub",[ex,eb]=T(ew),eM=R(e=>{let{__scopeMenu:n,children:r,open:o=!1,onOpenChange:u}=e,a=G(ew,n),l=L(n),[i,c]=t.useState(null),[s,d]=t.useState(null),g=(0,x.c)(u);return t.useEffect(()=>(!1===a.open&&g(!1),()=>g(!1)),[a.open,g]),(0,C.jsx)(p.bL,{...l,children:(0,C.jsx)(A,{scope:n,open:o,onOpenChange:g,content:s,onContentChange:d,children:(0,C.jsx)(ex,{scope:n,contentId:(0,f.B)(),triggerId:(0,f.B)(),trigger:i,onTriggerChange:c,children:r})})})},"MenuSub"),eC="MenuSubTrigger",ey=t.forwardRef(R(function(e,n){let r=G(eC,e.__scopeMenu),u=B(eC,e.__scopeMenu),l=eb(eC,e.__scopeMenu),i=Y(eC,e.__scopeMenu),c=t.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:d}=i,f={__scopeMenu:e.__scopeMenu},p=t.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);t.useEffect(()=>p,[p]),t.useEffect(()=>{let e=s.current;return()=>{window.clearTimeout(e),d(null)}},[s,d]);let g=(0,a.s)(n,l.onTriggerChange);return(0,C.jsx)(N,{asChild:!0,...f,children:(0,C.jsx)(el,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?l.contentId:void 0,"data-state":ej(r.open),...e,ref:g,onClick:n=>{var t;null==(t=e.onClick)||t.call(e,n),e.disabled||n.defaultPrevented||(n.currentTarget.focu
1s(),r.open||r.onOpenChange(!0))},onPointerMove:(0,o.mK)(e.onPointerMove,eS(n=>{i.onItemEnter(n),!n.defaultPrevented&&(e.disabled||r.open||c.current||(i.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,o.mK)(e.onPointerLeave,eS(e=>{var n,t;p();let o=null==(n=r.content)?void 0:n.getBoundingClientRect();if(o){let n=null==(t=r.content)?void 0:t.dataset.side,u="right"===n,a=o[u?"left":"right"],l=o[u?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+(u?-5:5),y:e.clientY},{x:a,y:o.top},{x:l,y:o.top},{x:l,y:o.bottom},{x:a,y:o.bottom}],side:n}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.mK)(e.onKeyDown,n=>{if(!e.disabled&&n.target===n.currentTarget&&(""===i.searchRef.current||" "!==n.key)&&P[u.dir].includes(n.key)){var t;r.onOpenChange(!0),null==(t=r.content)||t.focus(),n.preventDefault()}})})})},"MenuSubTrigger")),eR=t.forwardRef(R(function(e,n){let r=Z(J,e.__scopeMenu),{forceMount:u=r.forceMount,align:l="start",...i}=e,c=G(J,e.__scopeMenu),s=B(J,e.__scopeMenu),d=eb("MenuSubContent",e.__scopeMenu),f=t.useRef(null),p=(0,a.s)(n,f);return(0,C.jsx)(k.Provider,{scope:e.__scopeMenu,children:(0,C.jsx)(v.C,{present:u||c.open,children:(0,C.jsx)(k.Slot,{scope:e.__scopeMenu,children:(0,C.jsx)(en,{id:d.contentId,"aria-labelledby":d.triggerId,...i,ref:p,align:l,side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var n;s.isUsingKeyboardRef.current&&(null==(n=f.current)||n.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.mK)(e.onFocusOutside,e=>{e.target!==d.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:(0,o.mK)(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>{let n=e.currentTarget.contains(e.target),r=_[s.dir].includes(e.key);if(n&&r){var t;c.onOpenChange(!1),null==(t=d.trigger)||t.focus(),e.preventDefault()}})})})})})},"MenuSubContent"));function ej(e){return e?"open":"closed"}function eD(e){return"indeterminate"===e}function eI(e){return eD(e)?"indeterminate":e?"checked":"unchecked"}function eP(e){let n=document.activeElement;for(let r of e)if(r===n||(r.focus(),document.activeElement!==n))return}function e_(e,n){return e.map((r,t)=>e[(n+t)%e.length])}function eK(e,n,r){let t=n.length>1&&Array.from(n).every(e=>e===n[0])?n[0]:n,o=r?e.indexOf(r):-1,u=e_(e,Math.max(o,0));1===t.length&&(u=u.filter(e=>e!==r));let a=u.find(e=>e.toLowerCase().startsWith(t.toLowerCase()));return a!==r?a:void 0}function ek(e,n){let{x:r,y:t}=e,o=!1;for(let e=0,u=n.length-1;e<n.length;u=e++){let a=n[e],l=n[u],i=a.x,c=a.y,s=l.x,d=l.y;c>t!=d>t&&r<(s-i)*(t-c)/(d-c)+i&&(o=!o)}return o}function eE(e,n){return!!n&&ek({x:e.clientX,y:e.clientY},n)}function eS(e){return n=>"mouse"===n.pointerType?e(n):void 0}R(ej,"getOpenState"),R(eD,"isIndeterminate"),R(eI,"getCheckedState"),R(eP,"focusFirst"),R(e_,"wrapArray"),R(eK,"getNextMatch"),R(ek,"isPointInPolygon"),R(eE,"isPointerInGraceArea"),R(eS,"whenMouse");var eT=V,eF=N,eL=q,eO=W,eA=er,eG=et,eU=ea,eB=ei,eV=ed,eN=ef,eH=eh,ez=em,eZ=eM,eq=ey,eJ=eR},81339:(e,n,r)=>{r.d(n,{q7:()=>z,bL:()=>H,RG:()=>S});var t=r(7620),o=r.t(t,2),u=r(47231),a=r(37523),l=r(61715),i=r(18107),c=r(1679),s=r(60421),d=r(9111),f=r(10797),p=r(35025),g=r(77514),v=Object.defineProperty,h=(e,n)=>v(e,"name",{value:n,configurable:!0}),m=!1;function w(){let[e,n]=t.useState(m);return t.useEffect(()=>{m||(m=!0,n(!0))},[]),e}h(w,"useIsHydrated");var x=o[" useSyncExternalStore ".trim().toString()];function b(){return()=>{}}function M(){return x(b,()=>!0,()=>!1)}h(b,"subscribe"),h(M,"useIsHydratedModern");var C="function"==typeof x?M:w,y=r(54568),R=Object.defineProperty,j=(e,n)=>R(e,"name",{value:n,configurable:!0}),D="rovingFocusGroup.onEntryFocus",I={bubbles:!1,cancelable:!0},P="RovingFocusGroup",[_,K,k]=(0,a.N)(P),[E,S]=(0,i.A)(P,[k]),[T,F]=E(P),L=t.forwardRef(j(function(e,n){return(0,y.jsx)(_.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,y.jsx)(_.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,y.jsx)(O,{...e,ref:n})})})},"RovingFocusGroup")),O=t.forwardRef(j(function(e,n){let{__scopeRovingFocusGroup:r,orientation:o,loop:a=!1,dir:i,currentTabStopId:c,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:v,onEntryFocus:h,preventScrollOnEntryFocus:m=!1,...w}=e,x=t.useRef(null),b=(0,l.s)(n,x),M=(0,p.jH)(i),[C,R]=(0,f.i)({prop:c,defaultProp:null!=g?g:null,onChange:v,caller:P}),[j,_]=t.useState(!1),k=(0,d.c)(h),E=K(r),S=t.useRef(!1),[F,L]=t.useState(0);return t.useEffect(()=>{let e=x.current;
1if(e)return e.addEventListener(D,k),()=>e.removeEventListener(D,k)},[k]),(0,y.jsx)(T,{scope:r,orientation:o,dir:M,loop:a,currentTabStopId:C,onItemFocus:t.useCallback(e=>R(e),[R]),onItemShiftTab:t.useCallback(()=>_(!0),[]),onFocusableItemAdd:t.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:t.useCallback(()=>L(e=>e-1),[]),children:(0,y.jsx)(s.sG.div,{tabIndex:j||0===F?-1:0,"data-orientation":o,...w,ref:b,style:{outline:"none",...e.style},onMouseDown:(0,u.mK)(e.onMouseDown,()=>{S.current=!0}),onFocus:(0,u.mK)(e.onFocus,e=>{let n=!S.current;if(e.target===e.currentTarget&&n&&!j){let n=new CustomEvent(D,I);if(e.currentTarget.dispatchEvent(n),!n.defaultPrevented){let e=E().filter(e=>e.focusable);V([e.find(e=>e.active),e.find(e=>e.id===C),...e].filter(Boolean).map(e=>e.ref.current),m)}}S.current=!1}),onBlur:(0,u.mK)(e.onBlur,()=>_(!1))})})},"RovingFocusGroupImpl")),A=t.forwardRef(j(function(e,n){let{__scopeRovingFocusGroup:r,focusable:o=!0,active:a=!1,tabStopId:l,children:i,...d}=e,f=(0,c.B)(),p=l||f,v=F("RovingFocusGroupItem",r),h=v.currentTabStopId===p,m=K(r),{onFocusableItemAdd:w,onFocusableItemRemove:x,currentTabStopId:b}=v,M=C();return(0,g.N)(()=>{if(M&&o)return w(),()=>x()},[M,o,w,x]),t.useEffect(()=>{if(!M&&o)return w(),()=>x()},[M,o,w,x]),(0,y.jsx)(_.ItemSlot,{scope:r,id:p,focusable:o,active:a,children:(0,y.jsx)(s.sG.span,{tabIndex:h?0:-1,"data-orientation":v.orientation,...d,ref:n,onMouseDown:(0,u.mK)(e.onMouseDown,e=>{o?v.onItemFocus(p):e.preventDefault()}),onFocus:(0,u.mK)(e.onFocus,()=>v.onItemFocus(p)),onKeyDown:(0,u.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void v.onItemShiftTab();if(e.target!==e.currentTarget)return;let n=B(e,v.orientation,v.dir);if(void 0!==n){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===n)r.reverse();else if("prev"===n||"next"===n){"prev"===n&&r.reverse();let t=r.indexOf(e.currentTarget);r=v.loop?N(r,t+1):r.slice(t+1)}setTimeout(()=>V(r))}}),children:"function"==typeof i?i({isCurrentTabStop:h,hasTabStop:null!=b}):i})})},"RovingFocusGroupItem")),G={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function U(e,n){return"rtl"!==n?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}function B(e,n,r){let t=U(e.key,r);if(!("vertical"===n&&["ArrowLeft","ArrowRight"].includes(t))&&!("horizontal"===n&&["ArrowUp","ArrowDown"].includes(t)))return G[t]}function V(e){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let t of e)if(t===r||(t.focus({preventScroll:n}),document.activeElement!==r))return}function N(e,n){return e.map((r,t)=>e[(n+t)%e.length])}j(U,"getDirectionAwareKey"),j(B,"getFocusIntent"),j(V,"focusFirst"),j(N,"wrapArray");var H=L,z=A},95347:(e,n,r)=>{r.d(n,{G5:()=>X,H_:()=>V,JU:()=>U,Pb:()=>q,UC:()=>A,VF:()=>z,YJ:()=>G,ZL:()=>O,ZP:()=>J,bL:()=>F,hN:()=>H,l9:()=>L,q7:()=>B,wv:()=>Z,z6:()=>N});var t=r(7620),o=r(47231),u=r(61715),a=r(18107),l=r(10797),i=r(60421),c=r(51769),s=r(1679),d=r(54568),f=Object.defineProperty,p=(e,n)=>f(e,"name",{value:n,configurable:!0}),g="DropdownMenu",[v,h]=(0,a.A)(g,[c.UE]),m=(0,c.UE)(),[w,x]=v(g),b=p(e=>{let{__scopeDropdownMenu:n,children:r,dir:o,open:u,defaultOpen:a,onOpenChange:i,modal:f=!0}=e,p=m(n),v=t.useRef(null),[h,x]=(0,l.i)({prop:u,defaultProp:null!=a&&a,onChange:i,caller:g});return(0,d.jsx)(w,{scope:n,triggerId:(0,s.B)(),triggerRef:v,contentId:(0,s.B)(),open:h,onOpenChange:x,onOpenToggle:t.useCallback(()=>x(e=>!e),[x]),modal:f,children:(0,d.jsx)(c.bL,{...p,open:h,onOpenChange:x,dir:o,modal:f,children:r})})},"DropdownMenu"),M=t.forwardRef(p(function(e,n){let{__scopeDropdownMenu:r,disabled:t=!1,...a}=e,l=x("DropdownMenuTrigger",r),s=m(r),f=(0,u.s)(n,l.triggerRef);return(0,d.jsx)(c.Mz,{asChild:!0,...s,children:(0,d.jsx)(i.sG.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":t?"":void 0,disabled:t,...a,ref:f,onPointerDown:(0,o.mK)(e.onPointerDown,e=>{!t&&0===e.button&&!1===e.ctrlKey&&(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,o.mK)(e.onKeyDown,e=>
1{!t&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})},"DropdownMenuTrigger")),C=p(e=>{let{__scopeDropdownMenu:n,...r}=e,t=m(n);return(0,d.jsx)(c.ZL,{...t,...r})},"DropdownMenuPortal"),y=t.forwardRef(p(function(e,n){let{__scopeDropdownMenu:r,...u}=e,a=x("DropdownMenuContent",r),l=m(r),i=t.useRef(!1);return(0,d.jsx)(c.UC,{id:a.contentId,"aria-labelledby":a.triggerId,...l,...u,ref:n,onCloseAutoFocus:(0,o.mK)(e.onCloseAutoFocus,e=>{var n;i.current||null==(n=a.triggerRef.current)||n.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:(0,o.mK)(e.onInteractOutside,e=>{let n=e.detail.originalEvent,r=0===n.button&&!0===n.ctrlKey,t=2===n.button||r;(!a.modal||t)&&(i.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)"}})},"DropdownMenuContent")),R=t.forwardRef(p(function(e,n){let{__scopeDropdownMenu:r,...t}=e,o=m(r);return(0,d.jsx)(c.YJ,{...o,...t,ref:n})},"DropdownMenuGroup")),j=t.forwardRef(p(function(e,n){let{__scopeDropdownMenu:r,...t}=e,o=m(r);return(0,d.jsx)(c.JU,{...o,...t,ref:n})},"DropdownMenuLabel")),D=t.forwardRef(p(function(e,n){let{__scopeDropdownMenu:r,...t}=e,o=m(r);return(0,d.jsx)(c.q7,{...o,...t,ref:n})},"DropdownMenuItem")),I=t.forwardRef(p(function(e,n){let{__scopeDropdownMenu:r,...t}=e,o=m(r);return(0,d.jsx)(c.H_,{...o,...t,ref:n})},"DropdownMenuCheckboxItem")),P=t.forwardRef(p(function(e,n){let{__scopeDropdownMenu:r,...t}=e,o=m(r);return(0,d.jsx)(c.z6,{...o,...t,ref:n})},"DropdownMenuRadioGroup")),_=t.forwardRef(p(function(e,n){let{__scopeDropdownMenu:r,...t}=e,o=m(r);return(0,d.jsx)(c.hN,{...o,...t,ref:n})},"DropdownMenuRadioItem")),K=t.forwardRef(p(function(e,n){let{__scopeDropdownMenu:r,...t}=e,o=m(r);return(0,d.jsx)(c.VF,{...o,...t,ref:n})},"DropdownMenuItemIndicator")),k=t.forwardRef(p(function(e,n){let{__scopeDropdownMenu:r,...t}=e,o=m(r);return(0,d.jsx)(c.wv,{...o,...t,ref:n})},"DropdownMenuSeparator")),E=p(e=>{let{__scopeDropdownMenu:n,children:r,open:t,onOpenChange:o,defaultOpen:u}=e,a=m(n),[i,s]=(0,l.i)({prop:t,defaultProp:null!=u&&u,onChange:o,caller:"DropdownMenuSub"});return(0,d.jsx)(c.Pb,{...a,open:i,onOpenChange:s,children:r})},"DropdownMenuSub"),S=t.forwardRef(p(function(e,n){let{__scopeDropdownMenu:r,...t}=e,o=m(r);return(0,d.jsx)(c.ZP,{...o,...t,ref:n})},"DropdownMenuSubTrigger")),T=t.forwardRef(p(function(e,n){let{__scopeDropdownMenu:r,...t}=e,o=m(r);return(0,d.jsx)(c.G5,{...o,...t,ref:n,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)"}})},"DropdownMenuSubContent")),F=b,L=M,O=C,A=y,G=R,U=j,B=D,V=I,N=P,H=_,z=K,Z=k,q=E,J=S,X=T}}]);

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.