1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9198],{19198:function(e,t,n){n.d(t,{VY:function(){return Se},JO:function(){return Ce},ck:function(){return Re},wU:function(){return Te},eT:function(){return De},h_:function(){return Ee},fC:function(){return ye},xz:function(){return be},B4:function(){return xe},l_:function(){return ke}});var o=n(87462),r=n(67294),l=n(73935),a=n(7374),i=n(76652),c=n(64053),s=n(17255),d=n(32707),u=n(41931),p=n(15019),f=n(64839),v=n(14966),m=n(66195),h=n(51162),g=n(60958),w=n(40192),y=n(88820),b=n(95355),x=n(9920),C=n(29563),E=n(67571);const S=(0,r.forwardRef)(((e,t)=>(0,r.createElement)(w.WV.span,(0,o.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))));var k=n(23541),R=n(80815);const D=[" ","Enter","ArrowUp","ArrowDown"],T=[" ","Enter"],M="Select",[_,I,P]=(0,c.B)(M),[V,O]=(0,d.b)(M,[P,h.D7]),W=(0,h.D7)(),[N,H]=V(M),[L,B]=V(M),Z=e=>{const{__scopeSelect:t,children:n,open:o,defaultOpen:l,onOpenChange:a,value:i,defaultValue:c,onValueChange:s,dir:d,name:p,autoComplete:f,disabled:v,required:g}=e,w=W(t),[y,b]=(0,r.useState)(null),[C,E]=(0,r.useState)(null),[S,k]=(0,r.useState)(!1),R=(0,u.gm)(d),[D=!1,T]=(0,x.T)({prop:o,defaultProp:l,onChange:a}),[M,I]=(0,x.T)({prop:i,defaultProp:c,onChange:s}),P=(0,r.useRef)(null),V=!y||Boolean(y.closest("form")),[O,H]=(0,r.useState)(new Set),B=Array.from(O).map((e=>e.props.value)).join(";");return(0,r.createElement)(h.fC,w,(0,r.createElement)(N,{required:g,scope:t,trigger:y,onTriggerChange:b,valueNode:C,onValueNodeChange:E,valueNodeHasChildren:S,onValueNodeHasChildrenChange:k,contentId:(0,m.M)(),value:M,onValueChange:I,open:D,onOpenChange:T,dir:R,triggerPointerDownPosRef:P,disabled:v},(0,r.createElement)(_.Provider,{scope:t},(0,r.createElement)(L,{scope:e.__scopeSelect,onNativeOptionAdd:(0,r.useCallback)((e=>{H((t=>new Set(t).add(e)))}),[]),onNativeOptionRemove:(0,r.useCallback)((e=>{H((t=>{const n=new Set(t);return n.delete(e),n}))}),[])},n)),V?(0,r.createElement)(he,{key:B,"aria-hidden":!0,required:g,tabIndex:-1,name:p,autoComplete:f,value:M,onChange:e=>I(e.target.value),disabled:v},void 0===M?(0,r.createElement)("option",{value:""}):null,Array.from(O)):null))},A="SelectTrigger",K=(0,r.forwardRef)(((e,t)=>{const{__scopeSelect:n,disabled:l=!1,...a}=e,c=W(n),d=H(A,n),u=d.disabled||l,p=(0,s.e)(t,d.onTriggerChange),f=I(n),[v,m,g]=ge((e=>{const t=f().filter((e=>!e.disabled)),n=t.find((e=>e.value===d.value)),o=we(t,e,n);void 0!==o&&d.onValueChange(o.value)})),y=()=>{u||(d.onOpenChange(!0),g())};return(0,r.createElement)(h.ee,(0,o.Z)({asChild:!0},c),(0,r.createElement)(w.WV.button,(0,o.Z)({type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":void 0===d.value?"":void 0},a,{ref:p,onClick:(0,i.M)(a.onClick,(e=>{e.currentTarget.focus()})),onPointerDown:(0,i.M)(a.onPointerDown,(e=>{const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&(y(),d.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)},e.preventDefault())})),onKeyDown:(0,i.M)(a.onKeyDown,(e=>{const t=""!==v.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),t&&" "===e.key||D.includes(e.key)&&(y(),e.preventDefault())}))})))})),F="SelectValue",U=(0,r.forwardRef)(((e,t)=>{const{__scopeSelect:n,className:l,style:a,children:i,placeholder:c,...d}=e,u=H(F,n),{onValueNodeHasChildrenChange:p}=u,f=void 0!==i,v=(0,s.e)(t,u.onValueNodeChange);return(0,C.b)((()=>{p(f)}),[p,f]),(0,r.createElement)(w.WV.span,(0,o.Z)({},d,{ref:v,style:{pointerEvents:"none"}}),void 0===u.value&&void 0!==c?c:i)})),z=(0,r.forwardRef)(((e,t)=>{const{__scopeSelect:n,children:l,...a}=e;return(0,r.createElement)(w.WV.span,(0,o.Z)({"aria-hidden":!0},a,{ref:t}),l||"\u25bc")})),q=e=>(0,r.createElement)(g.h,(0,o.Z)({asChild:!0},e)),Y="SelectContent",j=(0,r.forwardRef)(((e,t)=>{const n=H(Y,e.__scopeSelect),[a,i]=(0,r.useState)();if((0,C.b)((()=>{i(new DocumentFragment)}),[]),!n.open){const t=a;return t?(0,l.createPortal)((0,r.createElement)(G,{scope:e.__scopeSelect},(0,r.createElement)(_.Slot,{scope:e.__scopeSelect},(0,r.createElement)("div",null,e.children))),t):null}return(0,r.createElement)($,(0,o.Z)({},e,{ref:t}))})),X=10,[G,J]=V(Y),$=(0,r.forwardRef)(((e,t)=>{const{__scopeSelect:n,position:l="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:c,onPointerDownOutside:d,side:u,sideOffset:m,align:h,alignOffset:g,arrowPadding:w,collisionBoundary:b,collisionPadding:x,sticky:C,hideWhenDetached:E,avoidCollisions:S,...D}=e,T=H(Y,n),[M,_]=(0,r.useState)(null),[P,V]=(0,r.useState)(null),O=(0,s.e)(t,(e=>_(e))),[W,N]=(0,r.useState)(null),[L,B]=(0,r.useState)(null),Z=I(n),[A,K]=(0,r.useState)(!1),F=(0,r.useRef)(!1);(0,r.useEffect)((()=>
1{if(M)return(0,k.Ry)(M)}),[M]),(0,f.EW)();const U=(0,r.useCallback)((e=>{const[t,...n]=Z().map((e=>e.ref.current)),[o]=n.slice(-1),r=document.activeElement;for(const l of e){if(l===r)return;if(null===l||void 0===l||l.scrollIntoView({block:"nearest"}),l===t&&P&&(P.scrollTop=0),l===o&&P&&(P.scrollTop=P.scrollHeight),null===l||void 0===l||l.focus(),document.activeElement!==r)return}}),[Z,P]),z=(0,r.useCallback)((()=>U([W,M])),[U,W,M]);(0,r.useEffect)((()=>{A&&z()}),[A,z]);const{onOpenChange:q,triggerPointerDownPosRef:j}=T;(0,r.useEffect)((()=>{if(M){let e={x:0,y:0};const t=t=>{var n,o,r,l;e={x:Math.abs(Math.round(t.pageX)-(null!==(n=null===(o=j.current)||void 0===o?void 0:o.x)&&void 0!==n?n:0)),y:Math.abs(Math.round(t.pageY)-(null!==(r=null===(l=j.current)||void 0===l?void 0:l.y)&&void 0!==r?r:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():M.contains(n.target)||q(!1),document.removeEventListener("pointermove",t),j.current=null};return null!==j.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}}),[M,q,j]),(0,r.useEffect)((()=>{const e=()=>q(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}}),[q]);const[X,J]=ge((e=>{const t=Z().filter((e=>!e.disabled)),n=t.find((e=>e.ref.current===document.activeElement)),o=we(t,e,n);o&&setTimeout((()=>o.ref.current.focus()))})),$=(0,r.useCallback)(((e,t,n)=>{const o=!F.current&&!n;(void 0!==T.value&&T.value===t||o)&&(N(e),o&&(F.current=!0))}),[T.value]),te=(0,r.useCallback)((()=>null===M||void 0===M?void 0:M.focus()),[M]),ne=(0,r.useCallback)(((e,t,n)=>{const o=!F.current&&!n;(void 0!==T.value&&T.value===t||o)&&B(e)}),[T.value]),oe="popper"===l?ee:Q,re=oe===ee?{side:u,sideOffset:m,align:h,alignOffset:g,arrowPadding:w,collisionBoundary:b,collisionPadding:x,sticky:C,hideWhenDetached:E,avoidCollisions:S}:{};return(0,r.createElement)(G,{scope:n,content:M,viewport:P,onViewportChange:V,itemRefCallback:$,selectedItem:W,onItemLeave:te,itemTextRefCallback:ne,focusSelectedItem:z,selectedItemText:L,position:l,isPositioned:A,searchRef:X},(0,r.createElement)(R.Z,{as:y.g7,allowPinchZoom:!0},(0,r.createElement)(v.M,{asChild:!0,trapped:T.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,i.M)(a,(e=>{var t;null===(t=T.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}))},(0,r.createElement)(p.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>T.onOpenChange(!1)},(0,r.createElement)(oe,(0,o.Z)({role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:e=>e.preventDefault()},D,re,{onPlaced:()=>K(!0),ref:O,style:{display:"flex",flexDirection:"column",outline:"none",...D.style},onKeyDown:(0,i.M)(D.onKeyDown,(e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||J(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=Z().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()}}))}))))))})),Q=(0,r.forwardRef)(((e,t)=>{const{__scopeSelect:n,onPlaced:l,...i}=e,c=H(Y,n),d=J(Y,n),[u,p]=(0,r.useState)(null),[f,v]=(0,r.useState)(null),m=(0,s.e)(t,(e=>v(e))),h=I(n),g=(0,r.useRef)(!1),y=(0,r.useRef)(!0),{viewport:b,selectedItem:x,selectedItemText:E,focusSelectedItem:S}=d,k=(0,r.useCallback)((()=>{if(c.trigger&&c.valueNode&&u&&f&&b&&x&&E){const e=c.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=c.valueNode.getBoundingClientRect(),o=E.getBoundingClientRect();if("rtl"!==c.dir){const r=o.left-t.left,l=n.left-r,i=e.left-l,c=e.width+i,s=Math.max(c,t.width),d=window.innerWidth-X,p=(0,a.u)(l,[X,d-s]);u.style.minWidth=c+"px",u.style.left=p+"px"}else{const r=t.right-o.right,l=window.innerWidth-n.right-r,i=window.innerWidth-e.right-l,c=e.width+i,s=Math.max(c,t.width),d=window.innerWidth-X,p=(0,a.u)(l,[X,d-s]);
1u.style.minWidth=c+"px",u.style.right=p+"px"}const r=h(),i=window.innerHeight-2*X,s=b.scrollHeight,d=window.getComputedStyle(f),p=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),m=parseInt(d.borderBottomWidth,10),w=p+v+s+parseInt(d.paddingBottom,10)+m,y=Math.min(5*x.offsetHeight,w),C=window.getComputedStyle(b),S=parseInt(C.paddingTop,10),k=parseInt(C.paddingBottom,10),R=e.top+e.height/2-X,D=i-R,T=x.offsetHeight/2,M=p+v+(x.offsetTop+T),_=w-M;if(M<=R){const e=x===r[r.length-1].ref.current;u.style.bottom="0px";const t=f.clientHeight-b.offsetTop-b.offsetHeight,n=M+Math.max(D,T+(e?k:0)+t+m);u.style.height=n+"px"}else{const e=x===r[0].ref.current;u.style.top="0px";const t=Math.max(R,p+b.offsetTop+(e?S:0)+T)+_;u.style.height=t+"px",b.scrollTop=M-R+b.offsetTop}u.style.margin=`${X}px 0`,u.style.minHeight=y+"px",u.style.maxHeight=i+"px",null===l||void 0===l||l(),requestAnimationFrame((()=>g.current=!0))}}),[h,c.trigger,c.valueNode,u,f,b,x,E,c.dir,l]);(0,C.b)((()=>k()),[k]);const[R,D]=(0,r.useState)();(0,C.b)((()=>{f&&D(window.getComputedStyle(f).zIndex)}),[f]);const T=(0,r.useCallback)((e=>{e&&!0===y.current&&(k(),null===S||void 0===S||S(),y.current=!1)}),[k,S]);return(0,r.createElement)(te,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:g,onScrollButtonChange:T},(0,r.createElement)("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R}},(0,r.createElement)(w.WV.div,(0,o.Z)({},i,{ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))})),ee=(0,r.forwardRef)(((e,t)=>{const{__scopeSelect:n,align:l="start",collisionPadding:a=X,...i}=e,c=W(n);return(0,r.createElement)(h.VY,(0,o.Z)({},c,i,{ref:t,align:l,collisionPadding:a,style:{boxSizing:"border-box",...i.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)"}}))})),[te,ne]=V(Y,{}),oe="SelectViewport",re=(0,r.forwardRef)(((e,t)=>{const{__scopeSelect:n,...l}=e,a=J(oe,n),c=ne(oe,n),d=(0,s.e)(t,a.onViewportChange),u=(0,r.useRef)(0);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("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}"}}),(0,r.createElement)(_.Slot,{scope:n},(0,r.createElement)(w.WV.div,(0,o.Z)({"data-radix-select-viewport":"",role:"presentation"},l,{ref:d,style:{position:"relative",flex:1,overflow:"auto",...l.style},onScroll:(0,i.M)(l.onScroll,(e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:o}=c;if(null!==o&&void 0!==o&&o.current&&n){const e=Math.abs(u.current-t.scrollTop);if(e>0){const o=window.innerHeight-2*X,r=parseFloat(n.style.minHeight),l=parseFloat(n.style.height),a=Math.max(r,l);if(a<o){const r=a+e,l=Math.min(o,r),i=r-l;n.style.height=l+"px","0px"===n.style.bottom&&(t.scrollTop=i>0?i:0,n.style.justifyContent="flex-end")}}}u.current=t.scrollTop}))}))))})),le="SelectGroup",[ae,ie]=V(le),ce="SelectItem",[se,de]=V(ce),ue=(0,r.forwardRef)(((e,t)=>{const{__scopeSelect:n,value:l,disabled:a=!1,textValue:c,...d}=e,u=H(ce,n),p=J(ce,n),f=u.value===l,[v,h]=(0,r.useState)(null!==c&&void 0!==c?c:""),[g,y]=(0,r.useState)(!1),b=(0,s.e)(t,(e=>{var t;return null===(t=p.itemRefCallback)||void 0===t?void 0:t.call(p,e,l,a)})),x=(0,m.M)(),C=()=>{a||(u.onValueChange(l),u.onOpenChange(!1))};return(0,r.createElement)(se,{scope:n,value:l,disabled:a,textId:x,isSelected:f,onItemTextChange:(0,r.useCallback)((e=>{h((t=>{var n;return t||(null!==(n=null===e||void 0===e?void 0:e.textContent)&&void 0!==n?n:"").trim()}))}),[])},(0,r.createElement)(_.ItemSlot,{scope:n,value:l,disabled:a,textValue:v},(0,r.createElement)(w.WV.div,(0,o.Z)({role:"option","aria-labelledby":x,"data-highlighted":g?"":void 0,"aria-selected":f&&g,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1},d,{ref:b,onFocus:(0,i.M)(d.onFocus,(()=>y(!0))),onBlur:(0,i.M)(d.onBlur,(()=>y(!1))),onPointerUp:(0,i.M)(d.onPointerUp,C),onPointerMove:(0,i.M)(d.onPointerMove,(e=>{var t;a?null===(t=p.onItemLeave)||void 0===t||t.call(p):e.currentTarget.focu
1s({preventScroll:!0})})),onPointerLeave:(0,i.M)(d.onPointerLeave,(e=>{var t;e.currentTarget===document.activeElement&&(null===(t=p.onItemLeave)||void 0===t||t.call(p))})),onKeyDown:(0,i.M)(d.onKeyDown,(e=>{var t;""!==(null===(t=p.searchRef)||void 0===t?void 0:t.current)&&" "===e.key||(T.includes(e.key)&&C()," "===e.key&&e.preventDefault())}))}))))})),pe="SelectItemText",fe=(0,r.forwardRef)(((e,t)=>{const{__scopeSelect:n,className:a,style:i,...c}=e,d=H(pe,n),u=J(pe,n),p=de(pe,n),f=B(pe,n),[v,m]=(0,r.useState)(null),h=(0,s.e)(t,(e=>m(e)),p.onItemTextChange,(e=>{var t;return null===(t=u.itemTextRefCallback)||void 0===t?void 0:t.call(u,e,p.value,p.disabled)})),g=null===v||void 0===v?void 0:v.textContent,y=(0,r.useMemo)((()=>(0,r.createElement)("option",{key:p.value,value:p.value,disabled:p.disabled},g)),[p.disabled,p.value,g]),{onNativeOptionAdd:b,onNativeOptionRemove:x}=f;return(0,C.b)((()=>(b(y),()=>x(y))),[b,x,y]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(w.WV.span,(0,o.Z)({id:p.textId},c,{ref:h})),p.isSelected&&d.valueNode&&!d.valueNodeHasChildren?(0,l.createPortal)(c.children,d.valueNode):null)})),ve="SelectItemIndicator",me=(0,r.forwardRef)(((e,t)=>{const{__scopeSelect:n,...l}=e;return de(ve,n).isSelected?(0,r.createElement)(w.WV.span,(0,o.Z)({"aria-hidden":!0},l,{ref:t})):null})),he=(0,r.forwardRef)(((e,t)=>{const{value:n,...l}=e,a=(0,r.useRef)(null),i=(0,s.e)(t,a),c=(0,E.D)(n);return(0,r.useEffect)((()=>{const e=a.current,t=window.HTMLSelectElement.prototype,o=Object.getOwnPropertyDescriptor(t,"value").set;if(c!==n&&o){const t=new Event("change",{bubbles:!0});o.call(e,n),e.dispatchEvent(t)}}),[c,n]),(0,r.createElement)(S,{asChild:!0},(0,r.createElement)("select",(0,o.Z)({},l,{ref:i,defaultValue:n})))}));function ge(e){const t=(0,b.W)(e),n=(0,r.useRef)(""),o=(0,r.useRef)(0),l=(0,r.useCallback)((e=>{const r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(o.current),""!==t&&(o.current=window.setTimeout((()=>e("")),1e3))}(r)}),[t]),a=(0,r.useCallback)((()=>{n.current="",window.clearTimeout(o.current)}),[]);return(0,r.useEffect)((()=>()=>window.clearTimeout(o.current)),[]),[n,l,a]}function we(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=(a=e,i=Math.max(r,0),a.map(((e,t)=>a[(i+t)%a.length])));var a,i;1===o.length&&(l=l.filter((e=>e!==n)));const c=l.find((e=>e.textValue.toLowerCase().startsWith(o.toLowerCase())));return c!==n?c:void 0}he.displayName="BubbleSelect";const ye=Z,be=K,xe=U,Ce=z,Ee=q,Se=j,ke=re,Re=ue,De=fe,Te=me},67571:function(e,t,n){n.d(t,{D:function(){return r}});var o=n(67294);function r(e){const t=(0,o.useRef)({value:e,previous:e});return(0,o.useMemo)((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}}}]);
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.