PageSourceSearch

https://course.tcsacademy.org/_next/static/chunks/8534-537a7c913d3d21cb.js

js tcsacademy.org collected 2026-09-26 08:52:58 UTC 20,890 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8534],{84979:function(e,t,n){n.d(t,{Z:function(){return o}});const o=(0,n(91373).Z)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},49102:function(e,t,n){n.d(t,{f:function(){return a}});var o=n(67294),r=n(75320),l=n(85893),i=Object.defineProperty,c=(e,t)=>i(e,"name",{value:t,configurable:!0}),a=o.forwardRef(c((function(e,t){return(0,l.jsx)(r.WV.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})}),"Label"))},76405:function(e,t,n){n.d(t,{VY:function(){return Q},ZA:function(){return he},JO:function(){return Y},ck:function(){return xe},wU:function(){return ye},eT:function(){return be},__:function(){return ve},h_:function(){return $},fC:function(){return z},$G:function(){return Pe},u_:function(){return _e},Z0:function(){return Ie},xz:function(){return q},B4:function(){return Z},l_:function(){return de}});var o=n(67294),r=n(73935);function l(e,[t,n]){return Math.min(n,Math.max(t,e))}(0,Object.defineProperty)(l,"name",{value:"clamp",configurable:!0});var i=n(36206),c=n(96918),a=n(28771),s=n(25360),u=n(78990),d=n(90667),f=n(27552),p=n(95420),h=n(91276),v=n(94047),m=n(42651),g=n(29115),w=n(75320),x=n(88426),S=n(79698),b=n(69939),y=n(9981),C=Object.defineProperty;function _(e){const t=o.useRef({value:e,previous:e});return o.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}((e,t)=>{C(e,"name",{value:t,configurable:!0})})(_,"usePrevious");var j=n(96219),P=n(23541),M=n(71930),I=n(85893),T=Object.defineProperty,R=(e,t)=>T(e,"name",{value:t,configurable:!0}),k=[" ","Enter","ArrowUp","ArrowDown"],D=[" ","Enter"],E="Select",[V,O,L]=(0,c.B)(E),[W,B]=(0,s.b)(E,[L,v.D7]),H=(0,v.D7)(),[A,N]=W(E),[F,K]=W(E);function U(e){const{__scopeSelect:t,children:n,open:r,defaultOpen:l,onOpenChange:i,value:c,defaultValue:a,onValueChange:s,dir:d,name:f,autoComplete:p,disabled:m,required:g,form:w,internal_do_not_use_render:x}=e,S=H(t),[y,C]=o.useState(null),[_,j]=o.useState(null),[P,M]=o.useState(!1),T=(0,u.gm)(d),[k,D]=(0,b.T)({prop:r,defaultProp:l??!1,onChange:i,caller:E}),[O,L]=(0,b.T)({prop:c,defaultProp:a,onChange:s,caller:E}),W=o.useRef(null),B=o.useRef(O);o.useEffect((()=>{const e=w?y?.ownerDocument.getElementById(w):y?.form;if(e instanceof HTMLFormElement){const t=R((()=>L(B.current)),"reset");return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}}),[w,y,L]);const N=!y||(!!w||!!y.closest("form")),[K,U]=o.useState(new Set),z=(0,h.M)(),q=Array.from(K).map((e=>e.props.value)).join(";"),Z=o.useCallback((e=>{U((t=>new Set(t).add(e)))}),[]),Y=o.useCallback((e=>{U((t=>{const n=new Set(t);return n.delete(e),n}))}),[]),G={required:g,trigger:y,onTriggerChange:C,valueNode:_,onValueNodeChange:j,valueNodeHasChildren:P,onValueNodeHasChildrenChange:M,contentId:z,value:O,onValueChange:L,open:k,onOpenChange:D,dir:T,triggerPointerDownPosRef:W,disabled:m,name:f,autoComplete:p,form:w,nativeOptions:K,nativeSelectKey:q,isFormControl:N};return(0,I.jsx)(v.fC,{...S,children:(0,I.jsx)(A,{scope:t,...G,children:(0,I.jsx)(V.Provider,{scope:t,children:(0,I.jsx)(F,{scope:t,onNativeOptionAdd:Z,onNativeOptionRemove:Y,children:Re(x)?x(G):n})})})})}R(U,"SelectProvider");var z=R((e=>{const{__scopeSelect:t,children:n,...o}=e;return(0,I.jsx)(U,{__scopeSelect:t,...o,internal_do_not_use_render:({isFormControl:e})=>(0,I.jsxs)(I.Fragment,{children:[n,e?(0,I.jsx)(Te,{__scopeSelect:t}):null]})})}),"Select"),q=o.forwardRef(R((function(e,t){const{__scopeSelect:n,disabled:r=!1,...l}=e,c=H(n),s=N("SelectTrigger",n),u=s.disabled||r,d=(0,a.e)(t,s.onTriggerChange),f=O(n),p=o.useRef("touch"),[h,m,g]=De((e=>{const t=f().filter((e=>!e.disabled)),n=t.find((e=>e.value===s.value)),o=Ee(t,e,n);void 0!==o&&s.onValueChange(o.value)})),x=R((e=>{u||(s.onOpenChange(!0),g()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})}),"handleOpen");return(0,I.jsx)(v.ee,{asChild:!0,...c,children:(0,I.jsx)(w.WV.button,{type:"button",role:"combobox","aria-controls":s.open?s.contentId:void 0,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":ke(s.value)?"":void 0,...l,ref:d,onClick:(0,i.Mj)(l.onClick,(e=>
1{e.currentTarget.focus(),"mouse"!==p.current&&x(e)})),onPointerDown:(0,i.Mj)(l.onPointerDown,(e=>{p.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(x(e),e.preventDefault())})),onKeyDown:(0,i.Mj)(l.onKeyDown,(e=>{const t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),t&&" "===e.key||k.includes(e.key)&&(x(),e.preventDefault())}))})})}),"SelectTrigger")),Z=o.forwardRef(R((function(e,t){const{__scopeSelect:n,className:r,style:l,children:i,placeholder:c="",...s}=e,u=N("SelectValue",n),{onValueNodeHasChildrenChange:d}=u,f=void 0!==i,p=(0,a.e)(t,u.onValueNodeChange);(0,y.b)((()=>{d(f)}),[d,f]);const h=ke(u.value);return(0,I.jsx)(w.WV.span,{...s,asChild:!h&&s.asChild,ref:p,style:{pointerEvents:"none"},children:(0,I.jsx)(o.Fragment,{children:h?c:i},h?"placeholder":"value")})}),"SelectValue")),Y=o.forwardRef(R((function(e,t){const{__scopeSelect:n,children:o,...r}=e;return(0,I.jsx)(w.WV.span,{"aria-hidden":!0,...r,ref:t,children:o||"\u25bc"})}),"SelectIcon")),[G,X]=W("SelectPortal",{forceMount:void 0}),$=R((e=>{const{__scopeSelect:t,forceMount:n,...o}=e;return(0,I.jsx)(G,{scope:e.__scopeSelect,forceMount:n,children:(0,I.jsx)(m.h,{asChild:!0,...o})})}),"SelectPortal"),J="SelectContent",Q=o.forwardRef(R((function(e,t){const n=X(J,e.__scopeSelect),{forceMount:r=n.forceMount,...l}=e,i=N(J,e.__scopeSelect),[c,a]=o.useState();return(0,y.b)((()=>{a(new DocumentFragment)}),[]),(0,I.jsx)(g.z,{present:r||i.open,children:({present:e})=>e?(0,I.jsx)(le,{...l,ref:t}):(0,I.jsx)(ee,{...l,fragment:c})})}),"SelectContent")),ee=o.forwardRef(R((function(e,t){const{__scopeSelect:n,children:o,fragment:l}=e;return l?r.createPortal((0,I.jsx)(ne,{scope:n,children:(0,I.jsx)(V.Slot,{scope:n,children:(0,I.jsx)("div",{ref:t,children:o})})}),l):null}),"SelectContentFragment")),te=10,[ne,oe]=W(J),re=(0,x.Z8)("SelectContent.RemoveScroll"),le=o.forwardRef(R((function(e,t){const{__scopeSelect:n}=e,{position:r="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:c,onPointerDownOutside:s,side:u,sideOffset:h,align:v,alignOffset:m,arrowPadding:g,collisionBoundary:w,collisionPadding:x,sticky:S,hideWhenDetached:b,avoidCollisions:y,...C}=e,_=N(J,n),[j,T]=o.useState(null),[k,D]=o.useState(null),E=(0,a.e)(t,T),[V,L]=o.useState(null),[W,B]=o.useState(null),H=O(n),[A,F]=o.useState(!1),K=o.useRef(!1);o.useEffect((()=>{if(j)return(0,P.Ry)(j)}),[j]),(0,f.EW)();const U=o.useCallback((e=>{const[t,...n]=H().map((e=>e.ref.current)),[o]=n.slice(-1),r=document.activeElement;for(const l of e){if(l===r)return;if(l?.scrollIntoView({block:"nearest"}),l===t&&k&&(k.scrollTop=0),l===o&&k&&(k.scrollTop=k.scrollHeight),l?.focus(),document.activeElement!==r)return}}),[H,k]),z=o.useCallback((()=>U([V,j])),[U,V,j]);o.useEffect((()=>{A&&z()}),[A,z]);const{onOpenChange:q,triggerPointerDownPosRef:Z}=_;o.useEffect((()=>{if(j){let e={x:0,y:0};const t=R((t=>{e={x:Math.abs(Math.round(t.pageX)-(Z.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(Z.current?.y??0))}}),"handlePointerMove"),n=R((n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(j)||q(!1),document.removeEventListener("pointermove",t),Z.current=null}),"handlePointerUp");return null!==Z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[j,q,Z]),o.useEffect((()=>{const e=R((()=>q(!1)),"close");return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[q]);const[Y,G]=De((e=>{const t=H().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),o=Ee(t,e,n);o&&setTimeout((()=>o.ref.current?.focus()))})),X=o.useCallback(((e,t,n)=>{const o=!K.current&&!n;(void 0!==_.value&&_.value===t||o)&&(L(e),o&&(K.current=!0))}),[_.value]),$=o.useCallback((()=>j?.focus()),[j]),Q=o.useCallback(((e,t,n)=>{const o=!K.current&&!n;(void 0!==_.value&&_.value===t||o)&&B(e)}),[_.value]),ee="popper"===r?ce:ie,te=ee===ce?{side:u,sideOffset:h,align:v,alignOffset:m,arrowPadding:g,collisionBoundary:w,collisionPadding:x,sticky:S,hideWhenDetached:b,avoidCollisions:y}:{};return(0,I.jsx)(ne,{scope:n,content:j,viewport:k,onViewportChange:D,itemRefCallback:X,selectedItem:V,onItemLeave:$,itemTextRefCallback:Q,focusSelectedItem:z,selectedItemText:W,position:r,isPositioned:A,searchRef:Y,children:(0,I.jsx)(M.Z,{as:re,allowPinchZoom:!0,children:(0,I.jsx)(p.M,{asChild:!0,trapped:_.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,i.Mj)(l,(e=>{_.trigger?.focus({preventScroll:!0}),e.preventDefault()})),children:(0,I.jsx)(d.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:(0,I.jsx)(ee,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:e=>e.preventDefault(),...C,...te,onPlaced:()=>F(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:(0,i.Mj)(C.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;
1if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||G(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=H().filter((e=>!e.disabled)).map((e=>e.ref.current));if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,o=t.indexOf(n);t=t.slice(o+1)}setTimeout((()=>U(t))),e.preventDefault()}}))})})})})})}),"SelectContentImpl")),ie=o.forwardRef(R((function(e,t){const{__scopeSelect:n,onPlaced:r,...i}=e,c=N(J,n),s=oe(J,n),[u,d]=o.useState(null),[f,p]=o.useState(null),h=(0,a.e)(t,p),v=O(n),m=o.useRef(!1),g=o.useRef(!0),{viewport:x,selectedItem:S,selectedItemText:b,focusSelectedItem:C}=s,_=o.useCallback((()=>{if(c.trigger&&c.valueNode&&u&&f&&x&&S&&b){const e=c.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=c.valueNode.getBoundingClientRect(),o=b.getBoundingClientRect();if("rtl"!==c.dir){const r=o.left-t.left,i=n.left-r,c=e.left-i,a=e.width+c,s=Math.max(a,t.width),d=window.innerWidth-te,f=l(i,[te,Math.max(te,d-s)]);u.style.minWidth=a+"px",u.style.left=f+"px"}else{const r=t.right-o.right,i=window.innerWidth-n.right-r,c=window.innerWidth-e.right-i,a=e.width+c,s=Math.max(a,t.width),d=window.innerWidth-te,f=l(i,[te,Math.max(te,d-s)]);u.style.minWidth=a+"px",u.style.right=f+"px"}const i=v(),a=window.innerHeight-2*te,s=x.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),w=p+h+s+parseInt(d.paddingBottom,10)+g,y=Math.min(5*S.offsetHeight,w),C=window.getComputedStyle(x),_=parseInt(C.paddingTop,10),j=parseInt(C.paddingBottom,10),P=e.top+e.height/2-te,M=a-P,I=S.offsetHeight/2,T=p+h+(S.offsetTop+I),R=w-T;if(T<=P){const e=i.length>0&&S===i[i.length-1].ref.current;u.style.bottom="0px";const t=f.clientHeight-x.offsetTop-x.offsetHeight,n=T+Math.max(M,I+(e?j:0)+t+g);u.style.height=n+"px"}else{const e=i.length>0&&S===i[0].ref.current;u.style.top="0px";const t=Math.max(P,p+x.offsetTop+(e?_:0)+I)+R;u.style.height=t+"px",x.scrollTop=T-P+x.offsetTop}u.style.margin=`${te}px 0`,u.style.minHeight=y+"px",u.style.maxHeight=a+"px",r?.(),requestAnimationFrame((()=>m.current=!0))}}),[v,c.trigger,c.valueNode,u,f,x,S,b,c.dir,r]);(0,y.b)((()=>_()),[_]);const[j,P]=o.useState();(0,y.b)((()=>{f&&P(window.getComputedStyle(f).zIndex)}),[f]);const M=o.useCallback((e=>{e&&!0===g.current&&(_(),C?.(),g.current=!1)}),[_,C]);return(0,I.jsx)(ae,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:m,onScrollButtonChange:M,children:(0,I.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:j},children:(0,I.jsx)(w.WV.div,{...i,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})}),"SelectItemAlignedPosition")),ce=o.forwardRef(R((function(e,t){const{__scopeSelect:n,align:o="start",collisionPadding:r=te,...l}=e,i=H(n);return(0,I.jsx)(v.VY,{...i,...l,ref:t,align:o,collisionPadding:r,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})}),"SelectPopperPosition")),[ae,se]=W(J,{}),ue="SelectViewport",de=o.forwardRef(R((function(e,t){const{__scopeSelect:n,nonce:r,...l}=e,c=oe(ue,n),s=se(ue,n),u=(0,a.e)(t,c.onViewportChange),d=o.useRef(0);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,I.jsx)(V.Slot,{scope:n,children:(0,I.jsx)(w.WV.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:(0,i.Mj)(l.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:o}=s;if(o?.current&&n){const e=Math.abs(d.current-t.scrollTop);if(e>0){const o=window.innerHeight-2*te,r=parseFloat(n.style.minHeight),l=parseFloat(n.style.height),i=Math.max(r,l);if(i<o){const r=i+e,l=Math.min(o,r),c=r-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=c>0?c:0,n.style.justifyContent="flex-end")}}}d.current=t.scrollTop}))})})]})}),"SelectViewport")),[fe,pe]=W("SelectGroup"),he=o.forwardRef(R((function(e,t){const{__scopeSelect:n,...o}=e,r=(0,h.M)();return(0,I.jsx)(fe,{scope:n,id:r,children:(0,I.jsx)(w.WV.div,{role:"group","aria-labelledby":r,...o,ref:t})})}),"SelectGroup")),ve=o.forwardRef(R((function(e,t){const{__scopeSelect:n,...o}=e,r=pe("SelectLabel",n);return(0,I.jsx)(w.WV.div,{id:r.id,...o,ref:t})}),"SelectLabel")),me="SelectItem",[ge,we]=W(me),xe=o.forwardRef(R((function(e,t){const{__scopeSelect:n,value:r,disabled:l=!1,textValue:c,...s}=e,u=N(me,n),d=oe(me,n),f=u.value===r,[p,v]=o.useState(c??""),[m,g]=o.useState(!1),x=(0,S.W)((e=>d.itemRefCallback?.(e,r,l))),b=(0,a.e)(t,x),y=(0,h.M)(),C=o.useRef("touch"),_=R((()=>{l||(u.onValueChange(r),u.onOpenChange(!1))}),"handleSelect");return(0,I.jsx)(ge,{scope:n,value:r,disabled:l,textId:y,isSelected:f,onItemTextChange:o.useCallback((e=>{v((t=>t||(e?.textContent??"").trim()))}),[]),children:(0,I.jsx)(V.ItemSlot,{scope:n,value:r,disabled:l,textValue:p,children:(0,I.jsx)(w.WV.div,{role:"option","aria-labelledby":y,"data-highlighted":m?"":void 0,"aria-selected":f&&m,"data-state":f?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...s,ref:b,onFocus:(0,i.Mj)(s.onFocus,(()=>g(!0))),onBlur:(0,i.Mj)(s.onBlur,(()=>g(!1))),onClick:(0,i.Mj)(s.onClick,(()=>{"mouse"!==C.current&&_()})),onPointerUp:(0,i.Mj)(s.onPointerUp,(()=>{"mouse"===C.current&&_()})),onPointerDown:(0,i.Mj)(s.onPointerDown,(e=>{C.current=e.pointerType})),onPointerMove:(0,i.Mj)(s.onPointerMove,(e=>{C.current=e.pointerType,l?d.onItemLeave?.():"mouse"===C.current&&e.currentTarget.focu
1s({preventScroll:!0})})),onPointerLeave:(0,i.Mj)(s.onPointerLeave,(e=>{e.currentTarget===document.activeElement&&d.onItemLeave?.()})),onKeyDown:(0,i.Mj)(s.onKeyDown,(e=>{if(l||e.target!==e.currentTarget)return;""!==d.searchRef?.current&&" "===e.key||(D.includes(e.key)&&_()," "===e.key&&e.preventDefault())}))})})})}),"SelectItem")),Se="SelectItemText",be=o.forwardRef(R((function(e,t){const{__scopeSelect:n,className:l,style:i,...c}=e,s=N(Se,n),u=oe(Se,n),d=we(Se,n),f=K(Se,n),[p,h]=o.useState(null),v=(0,S.W)((e=>u.itemTextRefCallback?.(e,d.value,d.disabled))),m=(0,a.e)(t,h,d.onItemTextChange,v),g=p?.textContent,x=o.useMemo((()=>(0,I.jsx)("option",{value:d.value,disabled:d.disabled,children:g},d.value)),[d.disabled,d.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:C}=f;return(0,y.b)((()=>(b(x),()=>C(x))),[b,C,x]),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(w.WV.span,{id:d.textId,...c,ref:m}),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren&&!ke(s.value)?r.createPortal(c.children,s.valueNode):null]})}),"SelectItemText")),ye=o.forwardRef(R((function(e,t){const{__scopeSelect:n,...o}=e;return we("SelectItemIndicator",n).isSelected?(0,I.jsx)(w.WV.span,{"aria-hidden":!0,...o,ref:t}):null}),"SelectItemIndicator")),Ce="SelectScrollUpButton",_e=o.forwardRef(R((function(e,t){const n=oe(Ce,e.__scopeSelect),r=se(Ce,e.__scopeSelect),[l,i]=o.useState(!1),c=(0,a.e)(t,r.onScrollButtonChange);return(0,y.b)((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollTop>0;i(e)};R(e,"handleScroll");const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),l?(0,I.jsx)(Me,{...e,ref:c,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}),"SelectScrollUpButton")),je="SelectScrollDownButton",Pe=o.forwardRef(R((function(e,t){const n=oe(je,e.__scopeSelect),r=se(je,e.__scopeSelect),[l,i]=o.useState(!1),c=(0,a.e)(t,r.onScrollButtonChange);return(0,y.b)((()=>{if(n.viewport&&n.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)};R(e,"handleScroll");const t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}}),[n.viewport,n.isPositioned]),l?(0,I.jsx)(Me,{...e,ref:c,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}),"SelectScrollDownButton")),Me=o.forwardRef(R((function(e,t){const{__scopeSelect:n,onAutoScroll:r,...l}=e,c=oe("SelectScrollButton",n),a=o.useRef(null),s=O(n),u=o.useCallback((()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)}),[]);return o.useEffect((()=>()=>u()),[u]),(0,y.b)((()=>{s().find((e=>e.ref.current===document.activeElement))?.ref.current?.scrollIntoView({block:"nearest"})}),[s]),(0,I.jsx)(w.WV.div,{"aria-hidden":!0,...l,ref:t,style:{flexShrink:0,...l.style},onPointerDown:(0,i.Mj)(l.onPointerDown,(()=>{null===a.current&&(a.current=window.setInterval(r,50))})),onPointerMove:(0,i.Mj)(l.onPointerMove,(()=>{c.onItemLeave?.(),null===a.current&&(a.current=window.setInterval(r,50))})),onPointerLeave:(0,i.Mj)(l.onPointerLeave,(()=>{u()}))})}),"SelectScrollButtonImpl")),Ie=o.forwardRef(R((function(e,t){const{__scopeSelect:n,...o}=e;return(0,I.jsx)(w.WV.div,{"aria-hidden":!0,...o,ref:t})}),"SelectSeparator")),Te=o.forwardRef(R((function({__scopeSelect:e,...t},n){const r=N("SelectBubbleInput",e),{value:l,onValueChange:i,required:c,disabled:s,name:u,autoComplete:d,form:f}=r,{nativeOptions:p,nativeSelectKey:h}=r,v=o.useRef(null),m=(0,a.e)(n,v),g=l??"",x=_(g),S=Array.from(p).some((e=>""===(e.props.value??"")));return o.useEffect((()=>{const e=v.current;if(!e)return;const t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,"value").set;if(x!==g&&n){const t=new Event("change",{bubbles:!0});n.call(e,g),e.dispatchEvent(t)}}),[x,g]),(0,I.jsxs)(w.WV.select,{"aria-hidden":!0,required:c,tabIndex:-1,name:u,autoComplete:d,disabled:s,form:f,onChange:e=>i(e.target.value),...t,style:{...j.C2,...t.style},ref:m,defaultValue:g,children:[ke(l)&&!S?(0,I.jsx)("option",{value:""}):null,Array.from(p)]},h)}),"SelectBubbleInput"));function Re(e){return"function"===typeof e}function ke(e){return""===e||void 0===e}function De(e){const t=(0,S.W)(e),n=o.useRef(""),r=o.useRef(0),l=o.useCallback((e=>{const o=n.current+e;t(o),R((function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout((()=>e("")),1e3))}),"updateSearch")(o)}),[t]),i=o.useCallback((()=>{n.current="",window.clearTimeout(r.current)}),[]);return o.useEffect((()=>()=>window.clearTimeout(r.current)),[]),[n,l,i]}function Ee(e,t,n){const o=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,r=n?e.indexOf(n):-1;let l=Ve(e,Math.max(r,0));1===o.length&&(l=l.filter((e=>e!==n)));const i=l.find((e=>e.textValue.toLowerCase().startsWith(o.toLowerCase())));return i!==n?i:void 0}function Ve(e,t){return e.map(((n,o)=>e[(t+o)%e.length]))}R(Re,"isFunction"),R(ke,"shouldShowPlaceholder"),R(De,"useTypeaheadSearch"),R(Ee,"findNextItem"),R(Ve,"wrapArray")}}]);

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.