PageSourceSearch

https://teach-in.ru/_next/static/chunks/7625-ce9d545a5e9cdb25.js

js teach-in.ru collected 2026-10-02 14:35:12 UTC 46,213 bytes, 4 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7625],{7852:(e,t,l)=>{l.d(t,{K:()=>ef});let i=new WeakMap;var s=l(87103),o=l(13787),n=l(7214),r=l(67775),a=l(78475),c=l(6898);function u(e){return(0,c.lg)()?e.altKey:e.ctrlKey}function d(e,t){var l,i;let s=`[data-key="${CSS.escape(String(t))}"]`,o=null==(l=e.current)?void 0:l.dataset.collection;return o&&(s=`[data-collection="${CSS.escape(o)}"]${s}`),null==(i=e.current)?void 0:i.querySelector(s)}let h=new WeakMap;var g=l(12115),f=l(38308),p=l(42395),y=l(18252),v=l(18613),m=l(61738),b=l(61176),K=l(72525),S=l(36340),x=l(25492),w=l(41465),D=l(6935),M=l(47650),E=l(49410),k=l(3923),T=l(79556);class F{getItemRect(e){let t=this.ref.current;if(!t)return null;let l=null!=e?d(this.ref,e):null;if(!l)return null;let i=t.getBoundingClientRect(),s=l.getBoundingClientRect();return{x:s.left-i.left-t.clientLeft+t.scrollLeft,y:s.top-i.top-t.clientTop+t.scrollTop,width:s.width,height:s.height}}getContentSize(){var e,t;let l=this.ref.current;return{width:null!=(e=null==l?void 0:l.scrollWidth)?e:0,height:null!=(t=null==l?void 0:l.scrollHeight)?t:0}}getVisibleRect(){var e,t,l,i;let s=this.ref.current;return{x:null!=(e=null==s?void 0:s.scrollLeft)?e:0,y:null!=(t=null==s?void 0:s.scrollTop)?t:0,width:null!=(l=null==s?void 0:s.clientWidth)?l:0,height:null!=(i=null==s?void 0:s.clientHeight)?i:0}}constructor(e){this.ref=e}}var P=l(45792);class C{isDisabled(e){var t;return"all"===this.disabledBehavior&&((null==(t=e.props)?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let l=e;for(;null!=l;){let e=this.collection.getItem(l);if((null==e?void 0:e.type)==="item"&&!this.isDisabled(e))return l;l=t(l)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,e=>this.collection.getKeyAfter(e))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,e=>this.collection.getKeyBefore(e))}findKey(e,t,l){let i=e,s=this.layoutDelegate.getItemRect(i);if(!s||null==i)return null;let o=s;do{if(null==(i=t(i)))break;s=this.layoutDelegate.getItemRect(i)}while(s&&l(o,s)&&null!=i);return i}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getNextKey(e),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return"grid"===this.layout&&"vertical"===this.orientation?this.findKey(e,e=>this.getPreviousKey(e),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t="ltr"===this.direction?"getKeyRightOf":"getKeyLeftOf";if(this.layoutDelegate[t])return e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e));if("grid"===this.layout)if("vertical"===this.orientation)return this.getNextColumn(e,"rtl"===this.direction);else return this.findKey(e,e=>this.getNextColumn(e,"rtl"===this.direction),this.isSameColumn);return"horizontal"===this.orientation?this.getNextColumn(e,"rtl"===this.direction):null}getKeyLeftOf(e){let t="ltr"===this.direction?"getKeyLeftOf":"getKeyRightOf";if(this.layoutDelegate[t])return e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,e=>this.layoutDelegate[t](e));if("grid"===this.layout)if("vertical"===this.orientation)return this.getNextColumn(e,"ltr"===this.direction);else return this.findKey(e,e=>this.getNextColumn(e,"ltr"===this.direction),this.isSameColumn);return"horizontal"===this.orientation?this.getNextColumn(e,"ltr"===this.direction):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyAfter(e))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,e=>this.collection.getKeyBefore(e))}getKeyPageAbove(e){let t=this.ref.current,l=this.layoutDelegate.getItemRect(e);if(!l)return null;if(t&&!(0,P.o)(t))return this.getFirstKey();let i=e;if("horizontal"===this.orientation){let e=Math.max(0,l.x+l.width-this.layoutDelegate.getVisibleRect().width);for(;l&&l.x>e&&null!=i;
1)l=null==(i=this.getKeyAbove(i))?null:this.layoutDelegate.getItemRect(i)}else{let e=Math.max(0,l.y+l.height-this.layoutDelegate.getVisibleRect().height);for(;l&&l.y>e&&null!=i;)l=null==(i=this.getKeyAbove(i))?null:this.layoutDelegate.getItemRect(i)}return null!=i?i:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,l=this.layoutDelegate.getItemRect(e);if(!l)return null;if(t&&!(0,P.o)(t))return this.getLastKey();let i=e;if("horizontal"===this.orientation){let e=Math.min(this.layoutDelegate.getContentSize().width,l.y-l.width+this.layoutDelegate.getVisibleRect().width);for(;l&&l.x<e&&null!=i;)l=null==(i=this.getKeyBelow(i))?null:this.layoutDelegate.getItemRect(i)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,l.y-l.height+this.layoutDelegate.getVisibleRect().height);for(;l&&l.y<e&&null!=i;)l=null==(i=this.getKeyBelow(i))?null:this.layoutDelegate.getItemRect(i)}return null!=i?i:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let l=this.collection,i=t||this.getFirstKey();for(;null!=i;){let t=l.getItem(i);if(!t)break;let s=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(s,e))return i;i=this.getNextKey(i)}return null}constructor(...e){if(1===e.length){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new F(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new F(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}var z=l(69791),O=l(48075),B=l(57461),I=l(30202),N=l(34375),R=l(39791),A=l(64145),L=l(95155);function _(e){let{isSelected:t,disableAnimation:l,...i}=e;return(0,L.jsx)("svg",{"aria-hidden":"true","data-selected":t,role:"presentation",viewBox:"0 0 17 18",...i,children:(0,L.jsx)("polyline",{fill:"none",points:"1 9 7 14 15 4",stroke:"currentColor",strokeDasharray:22,strokeDashoffset:t?44:66,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,style:l?{}:{transition:"stroke-dashoffset 200ms ease"}})})}var j=l(15170),$=l(42489),U=l(5386),W=l(88784),V=l(58082),H=l(77864),q=l(97643),X=l(48767),Y=l(42428),G=e=>{let{Component:t,rendered:l,description:r,isSelectable:a,isSelected:d,isDisabled:f,selectedIcon:v,startContent:m,endContent:b,hideSelectedIcon:K,disableAnimation:S,getItemProps:x,getLabelProps:w,getWrapperProps:M,getDescriptionProps:T,getSelectedIconProps:F}=function(e){var t,l;let r=(0,O.o)(),[a,d]=(0,j.rE)(e,B.j$.variantKeys),{as:f,item:v,state:m,description:b,startContent:K,endContent:S,isVirtualized:x,selectedIcon:w,className:M,classNames:T,autoFocus:F,onPress:P,onPressUp:C,onPressStart:z,onPressEnd:I,onPressChange:N,onClick:L,shouldHighlightOnFocus:_,hideSelectedIcon:G=!1,isReadOnly:Z=!1,...Q}=a,J=null!=(l=null!=(t=e.disableAnimation)?t:null==r?void 0:r.disableAnimation)&&l,ee=(0,g.useRef)(null),et=f||(e.href?"a":"li"),el="string"==typeof et,{rendered:ei,key:es}=v,eo=m.disabledKeys.has(es)||e.isDisabled,en="none"!==m.selectionManager.selectionMode,er=(0,Y.a)(),{pressProps:ea,isPressed:ec}=(0,q.d)({ref:ee,isDisabled:eo,onClick:L,onPress:P,onPressUp:C,onPressStart:z,onPressEnd:I,onPressChange:N}),{isHovered:eu,hoverProps:ed}=(0,H.M)({isDisabled:eo}),{isFocusVisible:eh,focusProps:eg}=(0,$.o)({autoFocus:F}),{isFocused:ef,isSelected:ep,optionProps:ey,labelProps:ev,descriptionProps:em}=function(e,t,l){var r,a,d,f,v,m,b,K;let{key:S}=e,x=i.get(t),w=null!=(d=e.isDisabled)?d:t.selectionManager.isDisabled(S),M=null!=(f=e.isSelected)?f:t.selectionManager.isSelected(S),T=null!=(v=e.shouldSelectOnPressUp)?v:null==x?void 0:x.shouldSelectOnPressUp,F=null!=(m=e.shouldFocusOnHover)?m:null==x?void 0:x.shouldFocusOnHover,P=null!=(b=e.shouldUseVirtualFocus)?b:null==x?void 0:x.shouldUseVirtualFocus,C=null!=(K=e.isVirtualized)?K:null==x?void 0:x.isVirtualized,z=(0,o.X1)(),O=(0,o.X1)(),B={role:"option","aria-disabled":w||void 0,"aria-selected":"none"!==t.selectionManager.selectionMode?M:void 0};(0,c.cX)()&&(0,c.Tc)()||(B["aria-label"]=e["aria-label"],B["aria-labelledby"]=z,B["aria-describedby"]=O);let I=t.collection.getItem(S);if(C){let e=Number(null==I?void 0:I.index);B["aria-posinset"]=Number.isNaN(e)?void 0:e+1,B["aria-setsize"]=(0,V.v)(t.collection)}let N=(null==x?void 0:x.onAction)?()=>{var e;return null==x||null==(e=x.onAction)?void 0:e.call(x,S)}:void 0,R=function(e,t){let l=i.get(e);if(!l)throw Error("Unknown list");return`${l.id}-option-${"string"==typeof t?t.replace(/\s*/g,""):""+t}`}(t,S),{itemProps:A,isPressed:L,isFocused:_,hasAction:j,allowsSelection:$}=function(e){var t;let{id:l,selectionManager:i,key:s,ref:r,shouldSelectOnPressUp:a,shouldUseVirtualFocus:c,focus:d,isDisabled:f,onAction:v,allowsDifferentPressOrigin:m,linkBehavior:b="action"}=e,K=(0,p.rd)();l=(0,o.Bi)(l);let S=e=>{if("keyboard"===e.pointerType&&u(e))i.toggleSelection(s);else{if("none"===i.selectionMode)return;if(i.isLink(s)){if("selection"===b&&r.current){let t=i.getItemProps(s);K.open(r.current,e,t.href,t.routerOptions),i.setSelectedKeys(i.selectedKeys);return}else if("override"===b||"none"===b)return}"single"===i.selectionMode?i.isSelected(s)&&!i.disallowEmptySelection?i.toggleSelection(s):i.replaceSelection(s):e&&e.shiftKey?i.extendSelection(s):"toggle"===i.selectionBehavior||e&&((0,y.B)(e)||"touch"===e.pointerType||"virtual"===e.pointerType)?i.toggleSelection(s):i.replaceSelection(s)}};(0,g.useEffect)(()=>{s===i.focusedKey&&i.isFocused&&(c?(0,D.vX)(r.current):d?d():document.activeElement!==r.current&&r.current&&(0,k.l)(r.current))},[r,s,i.focusedKey,i.childFocusStrategy,i.isFocused,c]),f=f||i.isDisabled(s);let x={};c||f?f&&(x.onMouseDown=e=>{e.preventDefault()}):x={tabIndex:s===i.focusedKey?0:-1,onFocus(e){e.target===r.current&&i.setFocusedKey(s)}},(0,g.useEffect)(()=>{f&&i.focusedKey===s&&i.setFocusedKey(null)},[i,f,s]);let w=i.isLink(s)&&"override"===b,M=v&&"action"===e.UNSTABLE_itemBehavior,E=i.isLink(s)&&"selection"!==b&&"none"!==b,T=!f&&i.canSelectItem(s)&&!w&&!M,F=(v||E)&&!f,P=F&&("replace"===i.selectionBehavior?!T:!T||i.isEmpty),C=F&&T&&"replace"===i.selectionBehavior,z=P||C,O=(0,g.useRef)(null),B=z&&T,I=(0,g.useRef)(!1),N=(0,g.useRef)(!1),R=i.getItemProps(s),A=e=>{if(v){var t;v(),null==(t=r.current)||t.dispatchEvent(new CustomEvent("react-aria-item-action",{bubbles:!0}))}E&&r.current&&K.open(r.current,e,R.href,R.routerOptions)},L={ref:r};if(a?(L.onPressStart=e=>{O.current=e.pointerType,I.current=B,"keyboard"!==e.pointerType||z&&" "!==e.key||S(e)},m?(L.onPressUp=P?void 0:e=>{"mouse"===e.pointerType&&T&&S(e)},L.onPress=P?A:e=>{"keyboard"!==e.pointerType&&"mouse"!==e.pointerType&&T&&S(e)}):L.onPress=e=>{P||C&&"mouse"!==e.pointerType?("keyboard"!==e.pointerType||"Enter"===e.key)&&A(e):"keyboard"!==e.pointerType&&T&&S(e)}):(L.onPressStart=e=>{O.current=e.pointerType,I.current=B,N.current=P,!T||("mouse"!==e.pointerType||P)&&("keyboard"!==e.pointerType||F&&" "!==e.key)||S(e)},L.onPress=e=>{("touch"===e.pointerType||"pen"===e.pointerType||"virtual"===e.pointerType||"ke
1yboard"===e.pointerType&&z&&"Enter"===e.key||"mouse"===e.pointerType&&N.current)&&(z?A(e):T&&S(e))}),x["data-collection"]=(t=i.collection,h.get(t)),x["data-key"]=s,L.preventFocusOnPress=c,c&&(L=(0,n.v)(L,{onPressStart(e){"touch"!==e.pointerType&&(i.setFocused(!0),i.setFocusedKey(s))},onPress(e){"touch"===e.pointerType&&(i.setFocused(!0),i.setFocusedKey(s))}})),R)for(let e of["onPressStart","onPressEnd","onPressChange","onPress","onPressUp","onClick"])R[e]&&(L[e]=(0,W.c)(L[e],R[e]));let{pressProps:_,isPressed:j}=(0,q.d)(L),$=C?e=>{"mouse"===O.current&&(e.stopPropagation(),e.preventDefault(),A(e))}:void 0,{longPressProps:U}=(0,X.H)({isDisabled:!B,onLongPress(e){"touch"===e.pointerType&&(S(e),i.setSelectionBehavior("toggle"))}}),V="none"!==b&&i.isLink(s)?e=>{p.Fe.isOpening||e.preventDefault()}:void 0;return{itemProps:(0,n.v)(x,T||P||c&&!f?_:{},B?U:{},{onDoubleClick:$,onDragStartCapture:e=>{"touch"===O.current&&I.current&&e.preventDefault()},onClick:V,id:l},c?{onMouseDown:e=>e.preventDefault()}:void 0),isPressed:j,isSelected:i.isSelected(s),isFocused:i.isFocused&&i.focusedKey===s,isDisabled:f,allowsSelection:T,hasAction:z}}({selectionManager:t.selectionManager,key:S,ref:l,shouldSelectOnPressUp:T,allowsDifferentPressOrigin:T&&F,isVirtualized:C,shouldUseVirtualFocus:P,isDisabled:w,onAction:N||(null==I||null==(r=I.props)?void 0:r.onAction)?(0,W.c)(null==I||null==(a=I.props)?void 0:a.onAction,N):void 0,linkBehavior:null==x?void 0:x.linkBehavior,UNSTABLE_itemBehavior:null==x?void 0:x.UNSTABLE_itemBehavior,id:R}),{hoverProps:U}=(0,H.M)({isDisabled:w||!F,onHoverStart(){(0,E.pP)()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(S))}}),Y=(0,s.$)(null==I?void 0:I.props);delete Y.id;let G=(0,p._h)(null==I?void 0:I.props);return{optionProps:{...B,...(0,n.v)(Y,A,U,G),id:R},labelProps:{id:z},descriptionProps:{id:O},isFocused:_,isFocusVisible:_&&t.selectionManager.isFocused&&(0,E.pP)(),isSelected:M,isDisabled:w,isPressed:L,allowsSelection:$,hasAction:j}}({key:es,isDisabled:eo,"aria-label":a["aria-label"],isVirtualized:x},m,ee),eb=ey,eK=(0,g.useMemo)(()=>(0,B.j$)({...d,isDisabled:eo,disableAnimation:J,hasTitleTextChild:"string"==typeof ei,hasDescriptionTextChild:"string"==typeof b}),[(0,U.t6)(d),eo,J,ei,b]),eS=(0,A.cn)(null==T?void 0:T.base,M);Z&&(eb=(0,U.GU)(eb));let ex=_&&ef||(er?eu||ec:eu||ef&&!eh),ew=e=>{let t=e.target;(t.closest("[data-slot='startContent']")||t.closest("[data-slot='endContent']"))&&e.stopPropagation()},eD=(0,g.useCallback)((e={})=>({"aria-hidden":(0,U.sE)(!0),"data-disabled":(0,U.sE)(eo),className:eK.selectedIcon({class:null==T?void 0:T.selectedIcon}),...e}),[eo,eK,T]);return{Component:et,domRef:ee,slots:eK,classNames:T,isSelectable:en,isSelected:ep,isDisabled:eo,rendered:ei,description:b,startContent:K,endContent:S,selectedIcon:w,hideSelectedIcon:G,disableAnimation:J,getItemProps:(e={})=>({ref:ee,onFocusCapture:ew,...(0,U.v6)(eb,Z?{}:(0,U.v6)(eg,ea),ed,(0,R.$)(Q,{enabled:el}),e),"data-selectable":(0,U.sE)(en),"data-focus":(0,U.sE)(ef),"data-hover":(0,U.sE)(ex),"data-disabled":(0,U.sE)(eo),"data-selected":(0,U.sE)(ep),"data-pressed":(0,U.sE)(ec),"data-focus-visible":(0,U.sE)(eh),className:eK.base({class:(0,A.cn)(eS,e.className)})}),getLabelProps:(e={})=>({...(0,U.v6)(ev,e),"data-label":(0,U.sE)(!0),className:eK.title({class:null==T?void 0:T.title})}),getWrapperProps:(e={})=>({...(0,U.v6)(e),className:eK.wrapper({class:null==T?void 0:T.wrapper})}),getDescriptionProps:(e={})=>({...(0,U.v6)(em,e),className:eK.description({class:null==T?void 0:T.description})}),getSelectedIconProps:eD}}(e),P=(0,g.useMemo)(()=>{let e=(0,L.jsx)(_,{disableAnimation:S,isSelected:d});return"function"==typeof v?v({icon:e,isSelected:d,isDisabled:f}):v||e},[v,d,f,S]);return(0,L.jsxs)(t,{...x(),children:[m&&(0,L.jsx)("span",{"data-slot":"startContent",children:m}),r?(0,L.jsxs)("div",{...M(),children:[(0,L.jsx)("span",{...w(),children:l}),(0,L.jsx)("span",{...T(),children:r})]}):(0,L.jsx)("span",{...w(),children:l}),a&&!K&&(0,L.jsx)("span",{...F(),children:P}),b&&(0,L.jsx)("span",{"data-slot":"endContent",children:b})]})};G.displayName="HeroUI.ListboxItem";var Z=l(63233),Q=(0,j.Rf)(({item:e,state:t,as:l,variant:i,color:s,disableAnimation:n,className:r,classNames:a,hideSelectedIcon:c,showDivider:u=!1,dividerProps:d={},itemClasses:h,title:f,items:p,...y},v)=>{let m=(0,g.useMemo)(()=>(0,B.Dt)(),[]),b=(0,A.cn)(null==a?void 0:a.base,r),K=(0,A.cn)(null==a?void 0:a.divider,null==d?void 0:d.className),{itemProps:S,headingProps:x,groupProps:w}=function(e){let{heading:t,"aria-label":l}=e,i=(0,o.Bi)();return{itemProps:{role:"presentation"},headingProps:t?{id:i,role:"presentation",onMouseDown:e=>{e.preventDefault()}}:{},groupProps:{role:"group","aria-label":l,"aria-labelledby":t?i:void 0}}}({heading:e.rendered,"aria-label":e["aria-label"]});return(0,L.jsxs)(l||"li",{"data-slot":"base",...(0,U.v6)(S,y),className:m.base({class:b}),children:[e.rendered&&(0,L.jsx)("span",{...x,className:m.heading({class:null==a?void 0:a.heading}),"data-slot":"heading",children:e.rendered}),(0,L.jsxs)("ul",{...w,className:m.group({class:null==a?void 0:a.group}),"data-has-title":!!e.rendered,"data-slot":"group",children:[[...e.childNodes].map(e=>{let{key:l,props:o}=e,r=(0,L.jsx)(G,{classNames:h,color:s,disableAnimation:n,hideSelectedIcon:c,item:e,state:t,variant:i,...o},l);return e.wrapper&&(r=e.wrapper(r)),r}),u&&(0,L.jsx)(Z.y,{as:"li",className:m.divider({class:K}
1),...d})]})]},e.key)});function J(e,t,l){let i,s=l.initialDeps??[];return()=>{var o,n,r,a;let c,u;l.key&&(null==(o=l.debug)?void 0:o.call(l))&&(c=Date.now());let d=e();if(!(d.length!==s.length||d.some((e,t)=>s[t]!==e)))return i;if(s=d,l.key&&(null==(n=l.debug)?void 0:n.call(l))&&(u=Date.now()),i=t(...d),l.key&&(null==(r=l.debug)?void 0:r.call(l))){let e=Math.round((Date.now()-c)*100)/100,t=Math.round((Date.now()-u)*100)/100,i=t/16,s=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${s(t,5)} /${s(e,5)} ms`,`
2            font-size: .6rem;
3            font-weight: bold;
4            color: hsl(${Math.max(0,Math.min(120-120*i,120))}deg 100% 31%);`,null==l?void 0:l.key)}return null==(a=null==l?void 0:l.onChange)||a.call(l,i),i}}function ee(e,t){if(void 0!==e)return e;throw Error(`Unexpected undefined${t?`: ${t}`:""}`)}Q.displayName="HeroUI.ListboxSection";let et=e=>e,el=e=>{let t=Math.max(e.startIndex-e.overscan,0),l=Math.min(e.endIndex+e.overscan,e.count-1),i=[];for(let e=t;e<=l;e++)i.push(e);return i},ei=(e,t)=>{let l=e.scrollElement;if(!l)return;let i=e.targetWindow;if(!i)return;let s=e=>{let{width:l,height:i}=e;t({width:Math.round(l),height:Math.round(i)})};if(s(l.getBoundingClientRect()),!i.ResizeObserver)return()=>{};let o=new i.ResizeObserver(e=>{let t=e[0];if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return void s({width:e.inlineSize,height:e.blockSize})}s(l.getBoundingClientRect())});return o.observe(l,{box:"border-box"}),()=>{o.unobserve(l)}},es={passive:!0},eo="u"<typeof window||"onscrollend"in window,en=(e,t)=>{var l,i;let s,o=e.scrollElement;if(!o)return;let n=e.targetWindow;if(!n)return;let r=0,a=e.options.useScrollendEvent&&eo?()=>void 0:(l=()=>{t(r,!1)},i=e.options.isScrollingResetDelay,function(...e){n.clearTimeout(s),s=n.setTimeout(()=>l.apply(this,e),i)}),c=l=>()=>{let{horizontal:i,isRtl:s}=e.options;r=i?o.scrollLeft*(s&&-1||1):o.scrollTop,a(),t(r,l)},u=c(!0),d=c(!1);return d(),o.addEventListener("scroll",u,es),o.addEventListener("scrollend",d,es),()=>{o.removeEventListener("scroll",u),o.removeEventListener("scrollend",d)}},er=(e,t,l)=>{if(null==t?void 0:t.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[l.options.horizontal?"inlineSize":"blockSize"])}return Math.round(e.getBoundingClientRect()[l.options.horizontal?"width":"height"])},ea=(e,{adjustments:t=0,behavior:l},i)=>{var s,o;null==(o=null==(s=i.scrollElement)?void 0:s.scrollTo)||o.call(s,{[i.options.horizontal?"left":"top"]:e+t,behavior:l})};class ec{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null,t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{this._measureElement(e.target,e)})}):null);return{disconnect:()=>{var l;null==(l=t())||l.disconnect(),e=null},observe:e=>{var l;return null==(l=t())?void 0:l.observe(e,{box:"border-box"})},unobserve:e=>{var l;return null==(l=t())?void 0:l.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,l])=>{void 0===l&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:et,rangeExtractor:el,onChange:()=>{},measureElement:er,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...e}},this.notify=e=>{var t,l;null==(l=(t=this.options).onChange)||l.call(t,this,e)},this.maybeNotify=J(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>
4{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;let t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{let l=new Map,i=new Map;for(let s=t-1;s>=0;s--){let t=e[s];if(l.has(t.lane))continue;let o=i.get(t.lane);if(null==o||t.end>o.end?i.set(t.lane,t):t.end<o.end&&l.set(t.lane,!0),l.size===this.options.lanes)break}return i.size===this.options.lanes?Array.from(i.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=J(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(e,t,l,i,s)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:l,getItemKey:i,enabled:s}),{key:!1}),this.getMeasurements=J(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:l,getItemKey:i,enabled:s},o)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let n=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];let r=this.measurementsCache.slice(0,n);for(let s=n;s<e;s++){let e=i(s),n=1===this.options.lanes?r[s-1]:this.getFurthestMeasurement(r,s),a=n?n.end+this.options.gap:t+l,c=o.get(e),u="number"==typeof c?c:this.options.estimateSize(s),d=a+u,h=n?n.lane:s%this.options.lanes;r[s]={index:s,start:a,size:u,end:d,key:e,lane:h}}return this.measurementsCache=r,r},{key:!1,debug:()=>this.options.debug}),this.calculateRange=J(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(e,t,l)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:l}){let i=e.length-1,s=eu(0,i,t=>e[t].start,l),o=s;for(;o<i&&e[o].end<l+t;)o++;return{startIndex:s,endIndex:o}}({measurements:e,outerSize:t,scrollOffset:l}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=J(()=>{let e=null,t=null,l=this.calculateRange();return l&&(e=l.startIndex,t=l.endIndex),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,l,i,s)=>null===i||null===s?[]:e({startIndex:i,endIndex:s,overscan:t,count:l}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,l=e.getAttribute(t);return l?parseInt(l,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{let l=this.indexFromElement(e),i=this.measurementsCache[l];if(!i)return;let s=i.key,o=this.elementsCache.get(s);o!==e&&(o&&this.observer.unobserve(o),this.observer.observe(e),this.elementsCache.set(s,e)),e.isConnected&&this.resizeItem(l,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>
4{let l=this.measurementsCache[e];if(!l)return;let i=t-(this.itemSizeCache.get(l.key)??l.size);0!==i&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(l,i,this):l.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=i,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(l.index),this.itemSizeCache=new Map(this.itemSizeCache.set(l.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))})},this.getVirtualItems=J(()=>[this.getIndexes(),this.getMeasurements()],(e,t)=>{let l=[];for(let i=0,s=e.length;i<s;i++){let s=t[e[i]];l.push(s)}return l},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(0!==t.length)return ee(t[eu(0,t.length-1,e=>ee(t[e]).start,e)])},this.getOffsetForAlignment=(e,t)=>{let l=this.getSize(),i=this.getScrollOffset();"auto"===t&&e>=i+l&&(t="end"),"end"===t&&(e-=l);let s=this.options.horizontal?"scrollWidth":"scrollHeight";return Math.max(Math.min((this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-l,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));let l=this.measurementsCache[e];if(!l)return;let i=this.getSize(),s=this.getScrollOffset();if("auto"===t)if(l.end>=s+i-this.options.scrollPaddingEnd)t="end";else{if(!(l.start<=s+this.options.scrollPaddingStart))return[s,t];t="start"}let o=l.start-this.options.scrollPaddingStart+(l.size-i)/2;switch(t){case"center":return[this.getOffsetForAlignment(o,t),t];case"end":return[this.getOffsetForAlignment(l.end+this.options.scrollPaddingEnd,t),t];default:return[this.getOffsetForAlignment(l.start-this.options.scrollPaddingStart,t),t]}},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:l}={})=>{this.cancelScrollToIndex(),"smooth"===l&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:l})},this.scrollToIndex=(e,{align:t="auto",behavior:l}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===l&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");let i=this.getOffsetForIndex(e,t);if(!i)return;let[s,o]=i;this._scrollToOffset(s,{adjustments:void 0,behavior:l}),"smooth"!==l&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(e))){let[t]=ee(this.getOffsetForIndex(e,o));1>Math.abs(t-this.getScrollOffset())||this.scrollToIndex(e,{align:o,behavior:l})}else this.scrollToIndex(e,{align:o,behavior:l})}))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adju
4stments:void 0,behavior:t})},this.getTotalSize=()=>{var e;let t=this.getMeasurements();return Math.max((0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map(e=>e.end)))-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:l})=>{this.options.scrollToFn(e,{behavior:l,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}let eu=(e,t,l,i)=>{for(;e<=t;){let s=(e+t)/2|0,o=l(s);if(o<i)e=s+1;else{if(!(o>i))return s;t=s-1}}return e>0?e-1:0},ed="u">typeof document?g.useLayoutEffect:g.useEffect;var eh=(0,l(59170).tv)({base:[],variants:{orientation:{vertical:["overflow-y-auto","data-[top-scroll=true]:[mask-image:linear-gradient(0deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[bottom-scroll=true]:[mask-image:linear-gradient(180deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[top-bottom-scroll=true]:[mask-image:linear-gradient(#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"],horizontal:["overflow-x-auto","data-[left-scroll=true]:[mask-image:linear-gradient(270deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[right-scroll=true]:[mask-image:linear-gradient(90deg,#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]","data-[left-right-scroll=true]:[mask-image:linear-gradient(to_right,#000,#000,transparent_0,#000_var(--scroll-shadow-size),#000_calc(100%_-_var(--scroll-shadow-size)),transparent)]"]},hideScrollBar:{true:"scrollbar-hide",false:""}},defaultVariants:{orientation:"vertical",hideScrollBar:!1}}),eg=e=>{var t;let{Component:l,state:i,color:s,variant:o,itemClasses:n,getBaseProps:r,topContent:a,bottomContent:c,hideEmptyContent:u,hideSelectedIcon:d,shouldHighlightOnFocus:h,disableAnimation:f,getEmptyContentProps:p,getListProps:y,scrollShadowProps:v}=e,{virtualization:m}=e;if(!m||!(0,U.Im)(m)&&!m.maxListboxHeight&&!m.itemHeight)throw Error("You are using a virtualized listbox. VirtualizedListbox requires 'virtualization' props with 'maxListboxHeight' and 'itemHeight' properties. This error might have originated from autocomplete components that use VirtualizedListbox. Please provide these props to use the virtualized listbox.");let{maxListboxHeight:b,itemHeight:K}=m,S=Math.min(b,K*i.collection.size),x=(0,g.useRef)(null),w=(0,g.useMemo)(()=>((e,t)=>{let l=[];for(let i of e)"section"===i.type?l.push(([...i.childNodes].length+1)*t):l.push(t);return l})([...i.collection],K),[i.collection,K]),D=function(e){let t=g.useReducer(()=>({}),{})[1],l={...e,onChange:(l,i)=>{var s;i?(0,M.flushSync)(t):t(),null==(s=e.onChange)||s.call(e,l,i)}},[i]=g.useState(()=>new ec(l));return i.setOptions(l),ed(()=>i._didMount(),[]),ed(()=>i._willUpdate()),i}({observeElementRect:ei,observeElementOffset:en,scrollToFn:ea,...{count:[...i.collection].length,getScrollElement:()=>x.current,estimateSize:e=>w[e]}}),E=D.getVirtualItems(),k=D.getTotalSize(),{getBaseProps:T}=function(e){var t;let[l,i]=(0,j.rE)(e,eh.variantKeys),{ref:s,as:o,children:n,className:r,style:a,size:c=40,offset:u=0,visibility:d="auto",isEnabled:h=!0,onVisibilityChange:f,...p}=l,y=(0,N.zD)(s);!function(e={}){let{domRef:t,isEnabled:l=!0,overflowCheck:i="vertical",visibility:s="auto",offset:o=0,onVisibilityChange:n,updateDeps:r=[]}=e,a=(0,g.useRef)(s);(0,g.useEffect)(()=>{let e=null==t?void 0:t.current;if(!e||!l)return;let r=(t,l,i,o,r)=>{if("auto"===s){let t=`${o}${(0,U.ZH)(r)}Scroll`;l&&i?(e.dataset[t]="true",e.removeAttribute(`data-${o}-scroll`),e.removeAttribute(`data-${r}-scroll`)):(e.dataset[`${o}Scroll`]=l.toString(),e.dataset[`${r}Scroll`]=i.toString(),e.removeAttribute(`data-${o}-${r}-scroll`))}else{let e=l&&i?"both":l?o:i?r:"none";e!==a.current&&(null==n||n(e),a.current=e)}},c=()=>{var t,l;let s=e.querySelector('ul[data-slot="list"]'),n=+(null!=(t=null==s?void 0:s.getAttribute("data-virtual-scroll-height"))?t:e.scrollHeight),a=+(null!=(l=null==s?void 0:s.getAttribute("data-virtual-scroll-top"))?l:e.scrollTop);for(let{type:t,prefix:l,suffix:s}of[{type:"vertical",prefix:"top",suffix:"bottom"},{type:"horizontal",prefix:"left",suffix:"right"}])if(i===t||"both"===i){let i="vertical"===t?a>o:e.scrollLeft>o,c="vertical"===t?a+e.clientHeight+o<n:e.scrollLeft+e.clientWidth+o<e.scrollWidth;r(t,i,c,l,s)}},u=()=>{["top","bottom","top-bottom","left","right","left-right"].forEach(t=>{e.removeAttribute(`data-${t}-scroll`)})};return c(),e.addEventListener("scroll",c,!0),"auto"!==s&&(u(),"both"===s?(e.dataset.topBottomScroll=String("vertical"===i),e.dataset.leftRightScroll=String("horizontal"===i)):(e.dataset.topBottomScroll="false",e.dataset.leftRightScroll="false",["top","bottom","left","right"].forEach(t=>{e.dataset[`${t}Scroll`]=String(s===t)}))),()=>{e.removeEventListener("scroll",c,!0),u()}},[...r,l,s,i,n,t])}({domRef:y,offset:u,visibility:d,isEnabled:h,onVisibilityChange:f,updateDeps:[n],overflowCheck:null!=(t=e.orientation)?t:"vertical"});let v=(0,g.useMemo)(()=>eh({...i,className:r}),[(0,U.t6)(i),r]);return{Component:o||"div",styles:v,domRef:y,children:n,getBaseProps:(t={})=>{var l;return{ref:y,className:v,"data-orientation":null!=(l=e.orientation)?l:"vertical",style:{"--scroll-shadow-size":`${c}px`,...a,...t.style},...p,...t}}}}({...v}),[F,P]=(0,g.useState)({isTop:!1,isBottom:!0,isMiddle:!1}),C=(0,L.jsxs)(l,{...y(),"data-virtual-scroll-height":k,"data-virtual-scroll-top":null==(t=null==x?void 0:x.current)?void 0:t.scrollTop,children:[!i.collection.size&&!u&&(0,L.jsx)("li",{children:(0,L.jsx)("div",{...p()})}),(0,L.jsx)("div",{...(0,R.$)(T()),ref:x,style:{height:b,overflow:"auto"},onScroll:e=>{P((e=>{if(!e||void 0===e.scrollTop||void 0===e.clientHeight||void 0===e.scrollHeight)return{isTop:!1,isBottom:!1,isMiddle:!1};let t=0===e.scrollTop,l=Math.ceil(e.scrollTop+e.clientHeight)>=e.scrollHeight;return{isTop:t,isBottom:l,isMiddle:!t&&!l}})(e.target))},children:S>0&&K>0&&(0,L.jsx)("div",{style:{height:`${k}
4px`,width:"100%",position:"relative"},children:E.map(e=>(e=>{var t;let l=[...i.collection][e.index];if(!l)return null;let r={color:s,item:l,state:i,variant:o,disableAnimation:f,hideSelectedIcon:d,...l.props},a={position:"absolute",top:0,left:0,width:"100%",height:`${e.size}px`,transform:`translateY(${e.start}px)`};if("section"===l.type)return(0,L.jsx)(Q,{...r,itemClasses:n,style:{...a,...r.style}},l.key);let c=(0,L.jsx)(G,{...r,classNames:(0,U.v6)(n,null==(t=l.props)?void 0:t.classNames),shouldHighlightOnFocus:h,style:{...a,...r.style}},l.key);return l.wrapper&&(c=l.wrapper(c)),c})(e))})})]});return(0,L.jsxs)("div",{...r(),children:[a,C,c]})},ef=(0,j.Rf)(function(e,t){let{isVirtualized:l,...c}=e,F=function(e){var t;let l=(0,O.o)(),{ref:c,as:F,state:P,variant:L,color:_,onAction:j,children:$,onSelectionChange:U,disableAnimation:W=null!=(t=null==l?void 0:l.disableAnimation)&&t,itemClasses:V,className:H,topContent:q,bottomContent:X,emptyContent:Y="No items.",hideSelectedIcon:G=!1,hideEmptyContent:Z=!1,shouldHighlightOnFocus:Q=!1,classNames:J,...ee}=e,et=F||"ul",el="string"==typeof et,ei=(0,N.zD)(c),es=(0,I.p)({...e,children:$,onSelectionChange:U}),eo=P||es,{listBoxProps:en}=function(e,t,l){let c=(0,s.$)(e,{labelable:!0}),F=e.selectionBehavior||"toggle",P=e.linkBehavior||("replace"===F?"action":"override");"toggle"===F&&"action"===P&&(P="override");let{listProps:O}=function(e){let{selectionManager:t,collection:l,disabledKeys:i,ref:s,keyboardDelegate:r,layoutDelegate:a}=e,c=(0,z.Q)({usage:"search",sensitivity:"base"}),F=t.disabledBehavior,P=(0,g.useMemo)(()=>r||new C({collection:l,disabledKeys:i,disabledBehavior:F,ref:s,collator:c,layoutDelegate:a}),[r,a,l,i,s,c,F]),{collectionProps:O}=function(e){var t;let l,i,{selectionManager:s,keyboardDelegate:r,ref:a,autoFocus:c=!1,shouldFocusWrap:F=!1,disallowEmptySelection:P=!1,disallowSelectAll:C=!1,escapeKeyBehavior:z="clearSelection",selectOnFocus:O="replace"===s.selectionBehavior,disallowTypeAhead:B=!1,shouldUseVirtualFocus:I,allowsTabNavigation:N=!1,scrollRef:R=a,linkBehavior:A="action"}=e,{direction:L}=(0,T.Y)(),_=(0,p.rd)(),j=(0,g.useRef)({top:0,left:0});(0,b._)(R,"scroll",()=>{var e,t,l,i;j.current={top:null!=(l=null==(e=R.current)?void 0:e.scrollTop)?l:0,left:null!=(i=null==(t=R.current)?void 0:t.scrollLeft)?i:0}});let $=(0,g.useRef)(!1);(0,b._)(a,S.C,I?e=>{let{detail:t}=e;e.stopPropagation(),s.setFocused(!0),(null==t?void 0:t.focusStrategy)==="first"&&($.current=!0)}:void 0),(0,x.K)(()=>{if($.current){var e,t;let l=null!=(t=null==(e=r.getFirstKey)?void 0:e.call(r))?t:null;if(null==l){let e=(0,f.bq)();(0,D.vX)(a.current),(0,D.Ig)(e,null),s.collection.size>0&&($.current=!1)}else s.setFocusedKey(l),$.current=!1}},[s.collection]),(0,x.K)(()=>{s.collection.size>0&&($.current=!1)},[s.focusedKey]),(0,b._)(a,S.m,I?e=>{var t;e.stopPropagation(),s.setFocused(!1),(null==(t=e.detail)?void 0:t.clearFocusKey)&&s.setFocusedKey(null)}:void 0);let U=(0,g.useRef)(c),W=(0,g.useRef)(!1);(0,g.useEffect)(()=>{if(U.current){var e,t,l,i;let o=null;"first"===c&&(o=null!=(l=null==(e=r.getFirstKey)?void 0:e.call(r))?l:null),"last"===c&&(o=null!=(i=null==(t=r.getLastKey)?void 0:t.call(r))?i:null);let n=s.selectedKeys;if(n.size){for(let e of n)if(s.canSelectItem(e)){o=e;break}}s.setFocused(!0),s.setFocusedKey(o),null==o&&!I&&a.current&&(0,k.l)(a.current),s.collection.size>0&&(U.current=!1,W.current=!0)}});let V=(0,g.useRef)(s.focusedKey),H=(0,g.useRef)(null);(0,g.useEffect)(()=>{if(s.isFocused&&null!=s.focusedKey&&(s.focusedKey!==V.current||W.current)&&R.current&&a.current){let e=(0,E.ME)(),t=d(a,s.focusedKey);if(!(t instanceof HTMLElement))return;("keyboard"===e||W.current)&&(H.current&&cancelAnimationFrame(H.current),H.current=requestAnimationFrame(()=>{R.current&&((0,K.R)(R.current,t),"virtual"!==e&&(0,K.o)(t,{containingElement:a.current}))}))}!I&&s.isFocused&&null==s.focusedKey&&null!=V.current&&a.current&&(0,k.l)(a.current),V.current=s.focusedKey,W.current=!1}),(0,g.useEffect)(()=>()=>{H.current&&cancelAnimationFrame(H.current)},[]),(0,b._)(a,"react-aria-focus-scope-restore",e=>{e.preventDefault(),s.setFocused(!0)});let q={onKeyDown:e=>{var t,l,i,o,n,c,h,g,p,b,K,S;if(e.altKey&&"Tab"===e.key&&e.preventDefault(),!a.current||!(0,f.sD)(a.current,e.target))return;let x=(t,l)=>{if(null!=t){if(s.isLink(t)&&"selection"===A&&O&&!u(e)){(0,M.flushSync)(()=>{s.setFocusedKey(t,l)});let i=d(a,t),o=s.getItemProps(t);i&&_.open(i,e,o.href,o.routerOptions);return}s.setFocusedKey(t,l),s.isLink(t)&&"override"===A||(e.shiftKey&&"multiple"===s.selectionMode?s.extendSelection(t):O&&!u(e)&&s.replaceSelection(t))}};switch(e.key){case"ArrowDown":if(r.getKeyBelow){let o=null!=s.focusedKey?null==(t=r.getKeyBelow)?void 0:t.call(r,s.focusedKey):null==(l=r.getFirstKey)?void 0:l.call(r);null==o&&F&&(o=null==(i=r.getFirstKey)?void 0:i.call(r,s.focusedKey)),null!=o&&(e.preventDefault(),x(o))}break;case"ArrowUp":if(r.getKeyAbove){let t=null!=s.focusedKey?null==(o=r.getKeyAbove)?void 0:o.call(r,s.focusedKey):null==(n=r.getLastKey)?void 0:n.call(r);null==t&&F&&(t=null==(c=r.getLastKey)?void 0:c.call(r,s.focusedKey)),null!=t&&(e.preventDefault(),x(t))}break;case"ArrowLeft":if(r.getKeyLeftOf){let t=null!=s.focusedKey?null==(h=r.getKeyLeftOf)?void 0:h.call(r,s.focusedKey):null;
4null==t&&F&&(t="rtl"===L?null==(g=r.getFirstKey)?void 0:g.call(r,s.focusedKey):null==(p=r.getLastKey)?void 0:p.call(r,s.focusedKey)),null!=t&&(e.preventDefault(),x(t,"rtl"===L?"first":"last"))}break;case"ArrowRight":if(r.getKeyRightOf){let t=null!=s.focusedKey?null==(b=r.getKeyRightOf)?void 0:b.call(r,s.focusedKey):null;null==t&&F&&(t="rtl"===L?null==(K=r.getLastKey)?void 0:K.call(r,s.focusedKey):null==(S=r.getFirstKey)?void 0:S.call(r,s.focusedKey)),null!=t&&(e.preventDefault(),x(t,"rtl"===L?"last":"first"))}break;case"Home":if(r.getFirstKey){if(null===s.focusedKey&&e.shiftKey)return;e.preventDefault();let t=r.getFirstKey(s.focusedKey,(0,y.B)(e));s.setFocusedKey(t),null!=t&&((0,y.B)(e)&&e.shiftKey&&"multiple"===s.selectionMode?s.extendSelection(t):O&&s.replaceSelection(t))}break;case"End":if(r.getLastKey){if(null===s.focusedKey&&e.shiftKey)return;e.preventDefault();let t=r.getLastKey(s.focusedKey,(0,y.B)(e));s.setFocusedKey(t),null!=t&&((0,y.B)(e)&&e.shiftKey&&"multiple"===s.selectionMode?s.extendSelection(t):O&&s.replaceSelection(t))}break;case"PageDown":if(r.getKeyPageBelow&&null!=s.focusedKey){let t=r.getKeyPageBelow(s.focusedKey);null!=t&&(e.preventDefault(),x(t))}break;case"PageUp":if(r.getKeyPageAbove&&null!=s.focusedKey){let t=r.getKeyPageAbove(s.focusedKey);null!=t&&(e.preventDefault(),x(t))}break;case"a":(0,y.B)(e)&&"multiple"===s.selectionMode&&!0!==C&&(e.preventDefault(),s.selectAll());break;case"Escape":"clearSelection"!==z||P||0===s.selectedKeys.size||(e.stopPropagation(),e.preventDefault(),s.clearSelection());break;case"Tab":if(!N)if(e.shiftKey)a.current.focus();else{let e,t,l=(0,w.N$)(a.current,{tabbable:!0});do(t=l.lastChild())&&(e=t);while(t);e&&(!(0,f.sD)(e,document.activeElement)||document.activeElement&&!(0,v.A)(document.activeElement))&&(0,m.e)(e)}}},onFocus:e=>{if(s.isFocused){(0,f.sD)(e.currentTarget,e.target)||s.setFocused(!1);return}if((0,f.sD)(e.currentTarget,e.target)){if(s.setFocused(!0),null==s.focusedKey){var t,l,i,o;let n=e=>{null!=e&&(s.setFocusedKey(e),O&&!s.isSelected(e)&&s.replaceSelection(e))},a=e.relatedTarget;a&&e.currentTarget.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_FOLLOWING?n(null!=(i=s.lastSelectedKey)?i:null==(t=r.getLastKey)?void 0:t.call(r)):n(null!=(o=s.firstSelectedKey)?o:null==(l=r.getFirstKey)?void 0:l.call(r))}else R.current&&(R.current.scrollTop=j.current.top,R.current.scrollLeft=j.current.left);if(null!=s.focusedKey&&R.current){let e=d(a,s.focusedKey);e instanceof HTMLElement&&((0,f.sD)(e,document.activeElement)||I||(0,m.e)(e),"keyboard"===(0,E.ME)()&&(0,K.o)(e,{containingElement:a.current}))}}},onBlur:e=>
4{(0,f.sD)(e.currentTarget,e.relatedTarget)||s.setFocused(!1)},onMouseDown(e){R.current===e.target&&e.preventDefault()}},{typeSelectProps:X}=function(e){let{keyboardDelegate:t,selectionManager:l,onTypeSelect:i}=e,s=(0,g.useRef)({search:"",timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{var o;let n=1!==(o=e.key).length&&/^[A-Z]/i.test(o)?"":o;if(n&&!e.ctrlKey&&!e.metaKey&&(0,f.sD)(e.currentTarget,e.target)&&(0!==s.search.length||" "!==n)){if(" "===n&&s.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),s.search+=n,null!=t.getKeyForSearch){let e=t.getKeyForSearch(s.search,l.focusedKey);null==e&&(e=t.getKeyForSearch(s.search)),null!=e&&(l.setFocusedKey(e),i&&i(e))}clearTimeout(s.timeout),s.timeout=setTimeout(()=>{s.search=""},1e3)}}:void 0}}}({keyboardDelegate:r,selectionManager:s});B||(q=(0,n.v)(X,q)),I||(l=null==s.focusedKey?0:-1);let Y=(t=s.collection,i=(0,o.Bi)(),h.set(t,i),i);return{collectionProps:(0,n.v)(q,{tabIndex:l,"data-collection":Y})}}({...e,ref:s,selectionManager:t,keyboardDelegate:P});return{listProps:O}}({...e,ref:l,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:P}),{focusWithinProps:B}=(0,r.R)({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),I=(0,o.Bi)(e.id);i.set(t,{id:I,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:P,UNSTABLE_itemBehavior:e.UNSTABLE_itemBehavior});let{labelProps:N,fieldProps:R}=function(e){let{id:t,label:l,"aria-labelledby":i,"aria-label":s,labelElementType:n="label"}=e;t=(0,o.Bi)(t);let r=(0,o.Bi)(),c={};return l&&(i=i?`${r} ${i}`:r,c={id:r,htmlFor:"label"===n?t:void 0}),{labelProps:c,fieldProps:(0,a.b)({id:t,"aria-label":s,"aria-labelledby":i})}}({...e,id:I,labelElementType:"span"});return{labelProps:N,listBoxProps:(0,n.v)(c,B,"multiple"===t.selectionManager.selectionMode?{"aria-multiselectable":"true"}:{},{role:"listbox",...(0,n.v)(R,O)})}}({...e,onAction:j},eo,ei),er=(0,g.useMemo)(()=>(0,B.MK)(),[]),ea=(0,A.cn)(null==J?void 0:J.base,H);return{Component:et,state:eo,variant:L,color:_,slots:er,classNames:J,topContent:q,bottomContent:X,emptyContent:Y,hideEmptyContent:Z,shouldHighlightOnFocus:Q,hideSelectedIcon:G,disableAnimation:W,className:H,itemClasses:V,getBaseProps:(e={})=>({ref:ei,"data-slot":"base",className:er.base({class:ea}),...(0,R.$)(ee,{enabled:el}),...e}),getListProps:(e={})=>({"data-slot":"list",className:er.list({class:null==J?void 0:J.list}),...en,...e}),getEmptyContentProps:(e={})=>({"data-slot":"empty-content",children:Y,className:er.emptyContent({class:null==J?void 0:J.emptyContent}),...e})}}({...c,ref:t}),{Component:P,state:_,color:j,variant:$,itemClasses:W,getBaseProps:V,topContent:H,bottomContent:q,hideEmptyContent:X,hideSelectedIcon:Y,shouldHighlightOnFocus:Z,disableAnimation:J,getEmptyContentProps:ee,getListProps:et}=F;if(l)return(0,L.jsx)(eg,{...e,...F});let el=(0,L.jsxs)(P,{...et(),children:[!_.collection.size&&!X&&(0,L.jsx)("li",{children:(0,L.jsx)("div",{...ee()})}),[..._.collection].map(e=>{var t;let l={color:j,item:e,state:_,variant:$,disableAnimation:J,hideSelectedIcon:Y,...e.props};if("section"===e.type)return(0,L.jsx)(Q,{...l,itemClasses:W},e.key);let i=(0,L.jsx)(G,{...l,classNames:(0,U.v6)(W,null==(t=e.props)?void 0:t.classNames),shouldHighlightOnFocus:Z},e.key);return e.wrapper&&(i=e.wrapper(i)),i})]});return(0,L.jsxs)("div",{...V(),children:[H,el,q]})})},86728:(e,t,l)=>{l.d(t,{y:()=>i});var i=l(95245).q}}]);

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.