PageSourceSearch

https://www.seeedstudio.com/_next/static/chunks/6616-7c50eebfcc3a2652.js

js seeedstudio.com collected 2026-09-24 08:29:28 UTC 39,483 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6616],{5191:(e,t,l)=>{l.d(t,{I:()=>s});var n=l(12412),i=l(76704);function s(e){let t=(0,n.T)(e),[l,s]=(0,i.useState)(null),[a,u]=(0,i.useState)([]);return{focusStrategy:l,...t,open(e=null){s(e),t.open()},toggle(e=null){s(e),t.toggle()},close(){u([]),t.close()},expandedKeysStack:a,openSubmenu:(e,t)=>{u(l=>t>l.length?l:[...l.slice(0,t),e])},closeSubmenu:(e,t)=>{u(l=>l[t]===e?l.slice(0,t):l)}}}},77243:(e,t,l)=>{l.d(t,{V:()=>v});var n={};n={"ar-AE":{longPressMessage:`\u{627}\u{636}\u{63A}\u{637} \u{645}\u{637}\u{648}\u{644}\u{627}\u{64B} \u{623}\u{648} \u{627}\u{636}\u{63A}\u{637} \u{639}\u{644}\u{649} Alt + \u{627}\u{644}\u{633}\u{647}\u{645} \u{644}\u{623}\u{633}\u{641}\u{644} \u{644}\u{641}\u{62A}\u{62D} \u{627}\u{644}\u{642}\u{627}\u{626}\u{645}\u{629}`},"bg-BG":{longPressMessage:`\u{41D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} \u{43F}\u{440}\u{43E}\u{434}\u{44A}\u{43B}\u{436}\u{438}\u{442}\u{435}\u{43B}\u{43D}\u{43E} \u{438}\u{43B}\u{438} \u{43D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{435}\u{442}\u{435} Alt+ \u{441}\u{442}\u{440}\u{435}\u{43B}\u{43A}\u{430} \u{43D}\u{430}\u{434}\u{43E}\u{43B}\u{443}, \u{437}\u{430} \u{434}\u{430} \u{43E}\u{442}\u{432}\u{43E}\u{440}\u{438}\u{442}\u{435} \u{43C}\u{435}\u{43D}\u{44E}\u{442}\u{43E}`},"cs-CZ":{longPressMessage:`Dlouh\xfdm stiskem nebo stisknut\xedm kl\xe1ves Alt + \u{161}ipka dol\u{16F} otev\u{159}ete nab\xeddku`},"da-DK":{longPressMessage:`Langt tryk eller tryk p\xe5 Alt + pil ned for at \xe5bne menuen`},"de-DE":{longPressMessage:`Dr\xfccken Sie lange oder dr\xfccken Sie Alt + Nach-unten, um das Men\xfc zu \xf6ffnen`},"el-GR":{longPressMessage:`\u{3A0}\u{3B9}\u{3AD}\u{3C3}\u{3C4}\u{3B5} \u{3C0}\u{3B1}\u{3C1}\u{3B1}\u{3C4}\u{3B5}\u{3C4}\u{3B1}\u{3BC}\u{3AD}\u{3BD}\u{3B1} \u{3AE} \u{3C0}\u{3B1}\u{3C4}\u{3AE}\u{3C3}\u{3C4}\u{3B5} Alt + \u{3BA}\u{3AC}\u{3C4}\u{3C9} \u{3B2}\u{3AD}\u{3BB}\u{3BF}\u{3C2} \u{3B3}\u{3B9}\u{3B1} \u{3BD}\u{3B1} \u{3B1}\u{3BD}\u{3BF}\u{3AF}\u{3BE}\u{3B5}\u{3C4}\u{3B5} \u{3C4}\u{3BF} \u{3BC}\u{3B5}\u{3BD}\u{3BF}\u{3CD}`},"en-US":{longPressMessage:"Long press or press Alt + ArrowDown to open menu"},"es-ES":{longPressMessage:`Mantenga pulsado o pulse Alt + flecha abajo para abrir el men\xfa`},"et-EE":{longPressMessage:`Men\xfc\xfc avamiseks vajutage pikalt v\xf5i vajutage klahve Alt + allanool`},"fi-FI":{longPressMessage:`Avaa valikko painamalla pohjassa tai n\xe4pp\xe4inyhdistelm\xe4ll\xe4 Alt + Alanuoli`},"fr-FR":{longPressMessage:`Appuyez de mani\xe8re prolong\xe9e ou appuyez sur Alt\xa0+\xa0Fl\xe8che vers le bas pour ouvrir le menu.`},"he-IL":{longPressMessage:`\u{5DC}\u{5D7}\u{5E5} \u{5DC}\u{5D7}\u{5D9}\u{5E6}\u{5D4} \u{5D0}\u{5E8}\u{5D5}\u{5DB}\u{5D4} \u{5D0}\u{5D5} \u{5D4}\u{5E7}\u{5E9} Alt + ArrowDown \u{5DB}\u{5D3}\u{5D9} \u{5DC}\u{5E4}\u{5EA}\u{5D5}\u{5D7} \u{5D0}\u{5EA} \u{5D4}\u{5EA}\u{5E4}\u{5E8}\u{5D9}\u{5D8}`},"hr-HR":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"},"hu-HU":{longPressMessage:`Nyomja meg hosszan, vagy nyomja meg az Alt + lefele ny\xedl gombot a men\xfc megnyit\xe1s\xe1hoz`},"it-IT":{longPressMessage:`Premi a lungo o premi Alt + Freccia gi\xf9 per aprire il menu`},"ja-JP":{longPressMessage:`\u{9577}\u{62BC}\u{3057}\u{307E}\u{305F}\u{306F} Alt+\u{4E0B}\u{77E2}\u{5370}\u{30AD}\u{30FC}\u{3067}\u{30E1}\u{30CB}\u{30E5}\u{30FC}\u{3092}\u{958B}\u{304F}`},"ko-KR":{longPressMessage:`\u{AE38}\u{AC8C} \u{B204}\u{B974}\u{AC70}\u{B098} Alt + \u{C544}\u{B798}\u{CABD} \u{D654}\u{C0B4}\u{D45C}\u{B97C} \u{B20C}\u{B7EC} \u{BA54}\u{B274} \u{C5F4}\u{AE30}`},"lt-LT":{longPressMessage:`Nor\u{117}dami atidaryti meniu, nuspaud\u{119} palaikykite arba paspauskite \u{201E}Alt + ArrowDown\u{201C}.`},"lv-LV":{longPressMessage:`Lai atv\u{113}rtu izv\u{113}lni, turiet nospiestu vai nospiediet tausti\u{146}u kombin\u{101}ciju Alt + lejupv\u{113}rst\u{101} bulti\u{146}a`},"nb-NO":{longPressMessage:`Langt trykk eller trykk Alt + PilNed for \xe5 \xe5pne menyen`},"nl-NL":{longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"},"pl-PL":{longPressMessage:`Naci\u{15B}nij i przytrzymaj lub naci\u{15B}nij klawisze Alt + Strza\u{142}ka w d\xf3\u{142}, aby otworzy\u{107} menu`},"pt-BR":{longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"},"pt-PT":{longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"},"ro-RO":{longPressMessage:`Ap\u{103}sa\u{21B}i lung sau ap\u{103}sa\u{21B}i pe Alt + s\u{103}geat\u{103} \xeen jos pentru a deschide meniul`},"ru-RU":{longPressMessage:`\u{41D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} \u{438} \u{443}\u{434}\u{435}\u{440}\u{436}\u{438}\u{432}\u{430}\u{439}\u{442}\u{435} \u{438}\u{43B}\u{438} \u{43D}\u{430}\u{436}\u{43C}\u{438}\u{442}\u{435} Alt + \u{421}\u{442}\u{440}\u{435}\u{43B}\u{43A}\u{430} \u{432}\u{43D}\u{438}\u{437}, \u{447}\u{442}\u{43E}\u{431}\u{44B} \u{43E}\u{442}\u{43A}\u{440}\u{44B}\u{442}\u{44C} \u{43C}\u{435}\u{43D}\u{44E}`},"sk-SK":{longPressMessage:`Ponuku otvor\xedte dlh\xfdm stla\u{10D}en\xedm alebo stla\u{10D}en\xedm kl\xe1vesu Alt + kl\xe1vesu so \u{161}\xedpkou nadol`},"sl-SI":{longPressMessage:`Za odprtje menija pritisnite in dr\u{17E}ite gumb ali pritisnite Alt+pu\u{161}\u{10D}ica navzdol`},"sr-SP":{longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"},"sv-SE":{longPressMessage:`H\xe5ll nedtryckt eller tryck p\xe5 Alt + pil ned\xe5t f\xf6r att \xf6ppna menyn`}
1,"tr-TR":{longPressMessage:`Men\xfcy\xfc a\xe7mak i\xe7in uzun bas\u{131}n veya Alt + A\u{15F}a\u{11F}\u{131} Ok tu\u{15F}una bas\u{131}n`},"uk-UA":{longPressMessage:`\u{414}\u{43E}\u{432}\u{433}\u{43E} \u{430}\u{431}\u{43E} \u{437}\u{432}\u{438}\u{447}\u{430}\u{439}\u{43D}\u{43E} \u{43D}\u{430}\u{442}\u{438}\u{441}\u{43D}\u{456}\u{442}\u{44C} \u{43A}\u{43E}\u{43C}\u{431}\u{456}\u{43D}\u{430}\u{446}\u{456}\u{44E} \u{43A}\u{43B}\u{430}\u{432}\u{456}\u{448} Alt \u{456} \u{441}\u{442}\u{440}\u{456}\u{43B}\u{43A}\u{430} \u{432}\u{43D}\u{438}\u{437}, \u{449}\u{43E}\u{431} \u{432}\u{456}\u{434}\u{43A}\u{440}\u{438}\u{442}\u{438} \u{43C}\u{435}\u{43D}\u{44E}`},"zh-CN":{longPressMessage:`\u{957F}\u{6309}\u{6216}\u{6309} Alt + \u{5411}\u{4E0B}\u{65B9}\u{5411}\u{952E}\u{4EE5}\u{6253}\u{5F00}\u{83DC}\u{5355}`},"zh-TW":{longPressMessage:`\u{9577}\u{6309}\u{6216}\u{6309} Alt+\u{5411}\u{4E0B}\u{9375}\u{4EE5}\u{958B}\u{555F}\u{529F}\u{80FD}\u{8868}`}};var i=l(40467),s=l(36199),a=l(67980),u=l(88683),r=l(57255),o=l(99233),d=l(4255),c=l(76704),g=l(74112),p=l(87925);function v(e,t,l){var v;let{type:h="menu",isDisabled:f,trigger:y="press"}=e,m=(0,i.Bi)(),{triggerProps:b,overlayProps:D}=(0,p.o)({type:h},t,l),{longPressProps:x}=function(e){let{isDisabled:t,onLongPressStart:l,onLongPressEnd:n,onLongPress:i,threshold:g=500,accessibilityDescription:p}=e,v=(0,c.useRef)(void 0),{addGlobalListener:h,removeGlobalListener:f}=(0,u.A)(),{pressProps:y}=(0,a.d)({isDisabled:t,onPressStart(e){if(e.continuePropagation(),("mouse"===e.pointerType||"touch"===e.pointerType)&&(l&&l({...e,type:"longpressstart"}),v.current=setTimeout(()=>{e.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),(0,r.TW)(e.target).activeElement!==e.target&&(0,s.e)(e.target),i&&i({...e,type:"longpress"}),v.current=void 0},g),"touch"===e.pointerType)){let t=e=>{e.preventDefault()};h(e.target,"contextmenu",t,{once:!0}),h(window,"pointerup",()=>{setTimeout(()=>{f(e.target,"contextmenu",t)}
1,30)},{once:!0})}},onPressEnd(e){v.current&&clearTimeout(v.current),n&&("mouse"===e.pointerType||"touch"===e.pointerType)&&n({...e,type:"longpressend"})}}),m=(0,o.I)(i&&!t?p:void 0);return{longPressProps:(0,d.v)(y,m)}}({isDisabled:f||"longPress"!==y,accessibilityDescription:(0,g.o)((v=n)&&v.__esModule?v.default:v,"@react-aria/menu").format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}});return delete b.onPress,{menuTriggerProps:{...b,..."press"===y?{preventFocusOnPress:!0,onPressStart(e){"touch"===e.pointerType||"keyboard"===e.pointerType||f||((0,s.e)(e.target),t.open("virtual"===e.pointerType?"first":null))},onPress(e){"touch"!==e.pointerType||f||((0,s.e)(e.target),t.toggle())}}:x,id:m,onKeyDown:e=>{if(!f&&("longPress"!==y||e.altKey)&&l&&l.current)switch(e.key){case"Enter":case" ":if("longPress"===y||e.isDefaultPrevented())return;case"ArrowDown":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in e||e.stopPropagation(),e.preventDefault(),t.toggle("last");break;default:"continuePropagation"in e&&e.continuePropagation()}}},menuProps:{...D,"aria-labelledby":m,autoFocus:t.focusStrategy||!0,onClose:t.close}}}},96616:(e,t,l)=>{l.d(t,{d:()=>el});var n=l(1029),i=l(61565),s=l(48124),a=l(43059),u=l(55371),r=l(10133),o=l(63498),d=l(76704),c=l(16344),g=l(9422),p=l(12345),v=l(67980),h=l(17666),f=l(26812),y=l(5191);let m={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},b={...m,customError:!0,valid:!1},D={isInvalid:!1,validationDetails:m,validationErrors:[]},x=(0,d.createContext)({}),P="__formValidationState"+Date.now();function E(e){return e?Array.isArray(e)?e:[e]:[]}function C(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:b}:null}function B(e,t){return e===t||!!e&&!!t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((e,l)=>e===t.validationErrors[l])&&Object.entries(e.validationDetails).every(([e,l])=>t.validationDetails[e]===l)}var K=l(11270),A=l(31744),M=l(10649),S=l(24499),w=l(77243);new WeakMap;class k{getItemRect(e){var t,l,n;let i,s,a=this.ref.current;if(!a)return null;let u=null!=e?(t=this.ref,i=`[data-key="${CSS.escape(String(e))}"]`,(s=null==(l=t.current)?void 0:l.dataset.collection)&&(i=`[data-collection="${CSS.escape(s)}"]${i}`),null==(n=t.current)?void 0:n.querySelector(i)):null;if(!u)return null;let r=a.getBoundingClientRect(),o=u.getBoundingClientRect();return{x:o.left-r.left-a.clientLeft+a.scrollLeft,y:o.top-r.top-a.clientTop+a.scrollTop,width:o.width,height:o.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,n;let i=this.ref.current;return{x:null!=(e=null==i?void 0:i.scrollLeft)?e:0,y:null!=(t=null==i?void 0:i.scrollTop)?t:0,width:null!=(l=null==i?void 0:i.clientWidth)?l:0,height:null!=(n=null==i?void 0:i.clientHeight)?n:0}}constructor(e){this.ref=e}}function N(e,t){if(!e)return!1;let l=window.getComputedStyle(e),n=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(l.overflow+l.overflowX+l.overflowY);return e===n&&"hidden"!==l.overflow&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}class j{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 n=e,i=this.layoutDelegate.getItemRect(n);if(!i||null==n)return null;let s=i;do{if(null==(n=t(n)))break;i=this.layoutDelegate.getItemRect(n)}while(i&&l(s,i)&&null!=n);return n}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)}
1getKeyAbove(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&&!N(t))return this.getFirstKey();let n=e;if("horizontal"===this.orientation){let e=Math.max(0,l.x+l.width-this.layoutDelegate.getVisibleRect().width);for(;l&&l.x>e&&null!=n;)l=null==(n=this.getKeyAbove(n))?null:this.layoutDelegate.getItemRect(n)}else{let e=Math.max(0,l.y+l.height-this.layoutDelegate.getVisibleRect().height);for(;l&&l.y>e&&null!=n;)l=null==(n=this.getKeyAbove(n))?null:this.layoutDelegate.getItemRect(n)}return null!=n?n:this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,l=this.layoutDelegate.getItemRect(e);if(!l)return null;if(t&&!N(t))return this.getLastKey();let n=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!=n;)l=null==(n=this.getKeyBelow(n))?null:this.layoutDelegate.getItemRect(n)}else{let e=Math.min(this.layoutDelegate.getContentSize().height,l.y-l.height+this.layoutDelegate.getVisibleRect().height);for(;l&&l.y<e&&null!=n;)l=null==(n=this.getKeyBelow(n))?null:this.layoutDelegate.getItemRect(n)}return null!=n?n:this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let l=this.collection,n=t||this.getFirstKey();for(;null!=n;){let t=l.getItem(n);if(!t)break;let i=t.textValue.slice(0,e.length);if(t.textValue&&0===this.collator.compare(i,e))return n;n=this.getNextKey(n)}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 k(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 k(this.ref);"stack"===this.layout&&"vertical"===this.orientation&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}var I=l(46275),R=l(82356),F=l(66533),L=l(34899),T=l(67862),V=l(1703),z=l(59935),O=new WeakMap,W="undefined"!=typeof document?d.useLayoutEffect:()=>{},U=l(81314),H=l(76494),q=l(82158),_=l(96900),$=l(5740);function G(e){var t;let{state:l,triggerRef:n,selectRef:i,label:s,name:a,isDisabled:u,form:r}=e,{containerProps:o,selectProps:c}=function(e,t,l){var n,i,s,a;let u,r,o=O.get(t)||{},{autoComplete:c,name:g=o.name,isDisabled:p=o.isDisabled,selectionMode:v,onChange:h,form:f}=e,{validationBehavior:y,isRequired:m,isInvalid:b}=o,{visuallyHiddenProps:D}=(0,U.B)();return i=e.selectRef,s=t.selectedKeys,a=t.setSelectedKeys,u=(0,d.useRef)(s),r=function(e){let t=(0,d.useRef)(null);return W(()=>{t.current=e},[e]),(0,d.useCallback)((...e)=>{let l=t.current;return null==l?void 0:l(...e)},[])}(()=>{a&&a(u.current)}),(0,d.useEffect)(()=>{var e;let t=null==(e=null==i?void 0:i.current)?void 0:e.form;return null==t||t.addEventListener("reset",r),()=>{null==t||t.removeEventListener("reset",r)}},[i,r]),!function(e,t,l){let{validationBehavior:n,focus:i}=e;(0,H.N)(()=>
1{if("native"===n&&(null==l?void 0:l.current)&&!l.current.disabled){var e;let n,i=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";l.current.setCustomValidity(i),l.current.hasAttribute("title")||(l.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation({isInvalid:!(e=l.current).validity.valid,validationDetails:{badInput:(n=e.validity).badInput,customError:n.customError,patternMismatch:n.patternMismatch,rangeOverflow:n.rangeOverflow,rangeUnderflow:n.rangeUnderflow,stepMismatch:n.stepMismatch,tooLong:n.tooLong,tooShort:n.tooShort,typeMismatch:n.typeMismatch,valueMissing:n.valueMissing,valid:n.valid},validationErrors:e.validationMessage?[e.validationMessage]:[]})}});let s=(0,d.useRef)(!1),a=(0,q.J)(()=>{s.current||t.resetValidation()}),u=(0,q.J)(e=>{var n,s;t.displayValidation.isInvalid||t.commitValidation();let a=null==l||null==(n=l.current)?void 0:n.form;!e.defaultPrevented&&l&&a&&function(e){for(let l=0;l<e.elements.length;l++){var t;let n=e.elements[l];if((null==(t=n.validity)?void 0:t.valid)===!1)return n}return null}(a)===l.current&&(i?i():null==(s=l.current)||s.focus(),(0,A.Cl)("keyboard")),e.preventDefault()}),r=(0,q.J)(()=>{t.commitValidation()});(0,d.useEffect)(()=>{let e=null==l?void 0:l.current;if(!e)return;let t=e.form,n=null==t?void 0:t.reset;return t&&(t.reset=()=>{s.current=!window.event||"message"===window.event.type&&(0,_.wt)(window.event)instanceof MessagePort,null==n||n.call(t),s.current=!1}),e.addEventListener("invalid",u),e.addEventListener("change",r),null==t||t.addEventListener("reset",a),()=>{e.removeEventListener("invalid",u),e.removeEventListener("change",r),null==t||t.removeEventListener("reset",a),t&&(t.reset=n)}},[l,n])}({validationBehavior:y,focus:()=>{var e;return null==(e=l.current)?void 0:e.focus()}},t,e.selectRef),{containerProps:{...D,"aria-hidden":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{style:{display:"none"}},selectProps:{form:f,autoComplete:c,disabled:p,"aria-invalid":b||void 0,"aria-required":m&&"aria"===y||void 0,required:m&&"native"===y,name:g,tabIndex:-1,value:"multiple"===v?[...t.selectedKeys].map(e=>String(e)):null!=(n=[...t.selectedKeys][0])?n:"",multiple:"multiple"===v,onChange:e=>{t.setSelectedKeys(e.target.value),null==h||h(e)}}}}({...e,selectRef:i},l,n);return l.collection.size<=300?(0,$.jsx)("div",{...o,"data-testid":"hidden-select-container",children:(0,$.jsxs)("label",{children:[s,(0,$.jsxs)("select",{...c,ref:i,children:[(0,$.jsx)("option",{}),[...l.collection.getKeys()].map(e=>{let t=l.collection.getItem(e);if((null==t?void 0:t.type)==="item")return(0,$.jsx)("option",{value:t.key,children:t.textValue},t.key)})]})]})}):a?(0,$.jsx)("input",{autoComplete:c.autoComplete,disabled:u,form:r,name:a,type:"hidden",value:null!=(t=[...l.selectedKeys].join(","))?t:""}):null}var J=l(95132),X=l(53772),Z=l(46060),Q=l(2086),Y=l(82980),ee=l(55665),et=l(75289),el=(0,i.Rf)(function(e,t){var l;let{Component:m,state:k,label:N,hasHelper:W,isLoading:H,triggerRef:q,selectorIcon:_=(0,$.jsx)(Z.D,{}),description:el,errorMessage:en,isInvalid:ei,startContent:es,endContent:ea,placeholder:eu,renderValue:er,shouldLabelBeOutside:eo,disableAnimation:ed,getBaseProps:ec,getLabelProps:eg,getTriggerProps:ep,getValueProps:ev,getListboxProps:eh,getPopoverProps:ef,getSpinnerProps:ey,getMainWrapperProps:em,getInnerWrapperProps:eb,getHiddenSelectProps:eD,getHelperWrapperProps:ex,getListboxWrapperProps:eP,getDescriptionProps:eE,getErrorMessageProps:eC,getSelectorIconProps:eB,isClearable:eK,getClearButtonProps:eA,getEndWrapperProps:eM,getEndContentProps:eS}=function(e){var t,l,m,k,N,W;let U=(0,n.o)(),{validationBehavior:H}=(0,T.CC)(V.c)||{},[q,_]=(0,i.rE)(e,a.Lt.variantKeys),$=null!=(l=null!=(t=e.disableAnimation)?t:null==U?void 0:U.disableAnimation)&&l,{ref:G,as:J,label:X,name:Z,isLoading:Q,selectorIcon:Y,isOpen:ee,defaultOpen:et,onOpenChange:el,startContent:en,endContent:ei,description:es,renderValue:ea,onSelectionChange:eu,placeholder:er,isVirtualized:eo,itemHeight:ed=36,maxListboxHeight:ec=256,children:eg,disallowEmptySelection:ep=!1,selectionMode:ev="single",spinnerRef:eh,scrollRef:ef,popoverProps:ey={},scrollShadowProps:em={},listboxProps:eb={},spinnerProps:eD={},validationState:ex,onChange:eP,onClose:eE,className:eC,classNames:eB,validationBehavior:eK=null!=(m=null!=H?H:null==U?void 0:U.validationBehavior)?m:"native",hideEmptyContent:eA=!1,onClear:eM,...eS}=q,ew=(0,r.zD)(ef),ek={popoverProps:(0,p.v6)({placement:"bottom",triggerScaleOnOpen:!1,offset:5,disableAnimation:$},ey),scrollShadowProps:(0,p.v6)({ref:ew,isEnabled:null==(k=e.showScrollIndicators)||k,hideScrollBar:!0,offset:15},em),listboxProps:(0,p.v6)({disableAnimation:$},eb)},eN=J||"button",ej="string"==typeof eN,eI=(0,r.zD)(G),eR=(0,d.useRef)(null),eF=(0,d.useRef)(null),eL=(0,d.useRef)(null),eT=function({validate:e,validationBehavior:t,...l}){let[n,i]=(0,d.useState)(!1),[s,a]=(0,d.useState)(null),u=(0,y.I)(l),r=function(e){let{c
1ollection:t,disabledKeys:l,selectionManager:n,selectionManager:{setSelectedKeys:i,selectedKeys:s,selectionMode:a}}=(0,f.p)(e),u=(0,d.useMemo)(()=>e.isLoading||0===s.size?[]:Array.from(s).filter(Boolean).filter(e=>!t.getItem(e)),[s,t]),r=0!==s.size?Array.from(s).map(e=>t.getItem(e)).filter(Boolean):null;return u.length&&console.warn(`Select: Keys "${u.join(", ")}" passed to "selectedKeys" are not present in the collection.`),{collection:t,disabledKeys:l,selectionManager:n,selectionMode:a,selectedKeys:s,setSelectedKeys:i.bind(n),selectedItems:r}}({...l,onSelectionChange:e=>{null!=l.onSelectionChange&&("all"===e?l.onSelectionChange(new Set(r.collection.getKeys())):l.onSelectionChange(e)),"single"===l.selectionMode&&u.close()}}),o=function(e){if(e[P]){let{realtimeValidation:t,displayValidation:l,updateValidation:n,resetValidation:i,commitValidation:s}=e[P];return{realtimeValidation:t,displayValidation:l,updateValidation:n,resetValidation:i,commitValidation:s}}return function(e){let{isInvalid:t,validationState:l,name:n,value:i,builtinValidation:s,validate:a,validationBehavior:u="aria"}=e;l&&(t||(t="invalid"===l));let r=void 0!==t?{isInvalid:t,validationErrors:[],validationDetails:b}:null,o=(0,d.useMemo)(()=>a&&null!=i?C(function(e,t){if("function"==typeof e){let l=e(t);if(l&&"boolean"!=typeof l)return E(l)}return[]}(a,i)):null,[a,i]);(null==s?void 0:s.validationDetails.valid)&&(s=void 0);let c=(0,d.useContext)(x),g=(0,d.useMemo)(()=>n?Array.isArray(n)?n.flatMap(e=>E(c[e])):E(c[n]):[],[c,n]),[p,v]=(0,d.useState)(c),[h,f]=(0,d.useState)(!1);c!==p&&(v(c),f(!1));let y=(0,d.useMemo)(()=>C(h?[]:g),[h,g]),m=(0,d.useRef)(D),[P,K]=(0,d.useState)(D),A=(0,d.useRef)(D),[M,S]=(0,d.useState)(!1);return(0,d.useEffect)(()=>{if(!M)return;S(!1);let e=o||s||m.current;B(e,A.current)||(A.current=e,K(e))}),{realtimeValidation:r||y||o||s||D,displayValidation:"native"===u?r||y||P:r||y||o||s||P,updateValidation(e){"aria"!==u||B(P,e)?m.current=e:K(e)},resetValidation(){B(D,A.current)||(A.current=D,K(D)),"native"===u&&S(!1),f(!0)},commitValidation(){"native"===u&&S(!0),f(!0)}}}(e)}({...l,validationBehavior:t,validate:t=>{if(!e)return;let n=Array.from(t);return e("single"===l.selectionMode?n[0]:n)},value:r.selectedKeys}),c=0===r.collection.size&&l.hideEmptyContent;return{...o,...r,...u,focusStrategy:s,close(){u.close()},open(e=null){c||(a(e),u.open())},toggle(e=null){c||(a(e),u.toggle())},isFocused:n,setFocused:i}}({...q,isOpen:ee,selectionMode:ev,disallowEmptySelection:ep,validationBehavior:eK,children:eg,isRequired:e.isRequired,isDisabled:e.isDisabled,isInvalid:e.isInvalid,defaultOpen:et,hideEmptyContent:eA,onOpenChange:e=>{null==el||el(e),e||null==eE||eE()},onSelectionChange:e=>{null==eu||eu(e),eP&&"function"==typeof eP&&eP({target:{...eI.current&&{...eI.current,name:eI.current.name},value:Array.from(e).join(",")}}),eT.commitValidation()}});eT={...eT,...e.isDisabled&&{disabledKeys:new Set([...eT.collection.getKeys()])}},(0,L.U)(()=>{var e;(null==(e=eI.current)?void 0:e.value)&&eT.setSelectedKeys(new Set([...eT.selectedKeys,eI.current.value]))},[eI.current]);let{labelProps:eV,triggerProps:ez,valueProps:eO,menuProps:eW,descriptionProps:eU,errorMessageProps:eH,isInvalid:eq,validationErrors:e_,validationDetails:e$}=function(e,t,l){let{disallowEmptySelection:n,isDisabled:i}=e,s=(0,K.Q)({usage:"search",sensitivity:"base"}),a=(0,d.useMemo)(()=>new j(t.collection,t.disabledKeys,null,s),[t.collection,t.disabledKeys,s]),{menuTriggerProps:u,menuProps:r}=(0,w.V)({isDisabled:i,type:"listbox"},t,l),{typeSelectProps:o}=function(e){let{keyboardDelegate:t,selectionManager:l,onTypeSelect:n}=e,i=(0,d.useRef)({search:"",timeout:void 0}).current;return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?e=>{var s;let a=1!==(s=e.key).length&&/^[A-Z]/i.test(s)?"":s;if(a&&!e.ctrlKey&&!e.metaKey&&function(e,t){if(!(0,I.Nf)())return!!t&&!!e&&e.contains(t);if(!e||!t)return!1;let l=t;for(;null!==l;){if(l===e)return!0;l="SLOT"===l.tagName&&l.assignedSlot?l.assignedSlot.parentNode:!function(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}(l)?l.parentNode:l.host}return!1}(e.currentTarget,function(e){if((0,I.Nf)()&&e.target instanceof Element&&e.target.shadowRoot){var t,l;if("composedPath"in e)return null!=(t=e.composedPath()[0])?t:null;if("composedPath"in e.nativeEvent)return null!=(l=e.nativeEvent.composedPath()[0])?l:null}return e.target}
1(e))&&(0!==i.search.length||" "!==a)){if(" "===a&&i.search.trim().length>0&&(e.preventDefault(),"continuePropagation"in e||e.stopPropagation()),i.search+=a,null!=t.getKeyForSearch){let e=t.getKeyForSearch(i.search,l.focusedKey);null==e&&(e=t.getKeyForSearch(i.search)),null!=e&&(l.setFocusedKey(e),n&&n(e))}clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},1e3)}}:void 0}}}({keyboardDelegate:a,selectionManager:t.selectionManager,onTypeSelect(e){t.setSelectedKeys([e])}}),{isInvalid:c,validationErrors:g,validationDetails:p}=t.displayValidation,{labelProps:v,fieldProps:h,descriptionProps:f,errorMessageProps:y}=function(e){let{description:t,errorMessage:l,isInvalid:n,validationState:i}=e,{labelProps:s,fieldProps:a}=function(e){let{id:t,label:l,"aria-labelledby":n,"aria-label":i,labelElementType:s="label"}=e;t=(0,M.Bi)(t);let a=(0,M.Bi)(),u={};return l&&(n=n?`${a} ${n}`:a,u={id:a,htmlFor:"label"===s?t:void 0}),{labelProps:u,fieldProps:function(e,t){let{id:l,"aria-label":n,"aria-labelledby":i}=e;return l=(0,M.Bi)(l),i&&n?i=[...new Set([l,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!n,{id:l,"aria-label":n,"aria-labelledby":i}}({id:t,"aria-label":i,"aria-labelledby":n})}}(e),u=(0,M.X1)([!!t,!!l,n,i]),r=(0,M.X1)([!!t,!!l,n,i]);return{labelProps:s,fieldProps:a=(0,S.v)(a,{"aria-describedby":[u,r,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),descriptionProps:{id:u},errorMessageProps:{id:r}}}({...e,labelElementType:"span",isInvalid:c,errorMessage:e.errorMessage||g});o.onKeyDown=o.onKeyDownCapture,delete o.onKeyDownCapture,u.onPressStart=e=>{"touch"===e.pointerType||"keyboard"===e.pointerType||i||t.toggle("virtual"===e.pointerType?"first":null)};let m=(0,R.$)(e,{labelable:!0}),b=(0,S.v)(o,u,h),D=(0,M.Bi)();return{labelProps:{...v,onClick:()=>{var t;e.isDisabled||(null==(t=l.current)||t.focus(),(0,A.Cl)("keyboard"))}},triggerProps:(0,S.v)(m,{...b,onKeyDown:(0,F.c)(b.onKeyDown,e=>{if("single"===t.selectionMode)switch(e.key){case"ArrowLeft":{e.preventDefault();let l=t.selectedKeys.size>0?a.getKeyAbove(t.selectedKeys.values().next().value):a.getFirstKey();l&&t.setSelectedKeys([l]);break}case"ArrowRight":{e.preventDefault();let l=t.selectedKeys.size>0?a.getKeyBelow(t.selectedKeys.values().next().value):a.getFirstKey();l&&t.setSelectedKeys([l])}}},e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[D,b["aria-labelledby"],b["aria-label"]&&!b["aria-labelledby"]?b.id:null].join(" "),onFocus(l){t.isFocused||(e.onFocus&&e.onFocus(l),t.setFocused(!0))},onBlur(l){t.isOpen||(e.onBlur&&e.onBlur(l),t.setFocused(!1))}}),valueProps:{id:D},menuProps:{...r,disallowEmptySelection:n,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,onBlur:l=>{l.currentTarget.contains(l.relatedTarget)||(e.onBlur&&e.onBlur(l),t.setFocused(!1))},onFocus:null==r?void 0:r.onFocus,"aria-labelledby":[h["aria-labelledby"],b["aria-label"]&&!h["aria-labelledby"]?b.id:null].filter(Boolean).join(" ")},descriptionProps:f,errorMessageProps:y,isInvalid:c,validationErrors:g,validationDetails:p}}({...q,disallowEmptySelection:ep,isDisabled:e.isDisabled},eT,eR),eG=(0,d.useCallback)(()=>{var e;eT.setSelectedKeys(new Set([])),null==eM||eM(),null==(e=eR.current)||e.focus()},[eM,eT]),{pressProps:eJ}=(0,v.d)({isDisabled:!!(null==e?void 0:e.isDisabled),onPress:eG}),eX=e.isInvalid||"invalid"===ex||eq,{isPressed:eZ,buttonProps:eQ}=(0,c.l)(ez,eR),{focusProps:eY,isFocused:e0,isFocusVisible:e4}=(0,g.o)(),{focusProps:e3,isFocusVisible:e1}=(0,g.o)(),{isHovered:e5,hoverProps:e6}=(0,h.M)({isDisabled:e.isDisabled}),e2=(0,s.n)({labelPlacement:e.labelPlacement,label:X}),e7=!!er,e9="outside-left"===e2||"outside"===e2||"outside-top"===e2,e8="inside"===e2,te="outside-left"===e2,tt=e.isClearable,tl=eT.isOpen||e7||!!(null==(N=eT.selectedItems)?void 0:N.length)||!!en||!!ei||!!e.isMultiline,tn=!!(null==(W=eT.selectedItems)?void 0:W.length),ti=!!X,ts=ti&&(te||e9&&e7),ta=(0,u.cn)(null==eB?void 0:eB.base,eC),tu=(0,d.useMemo)(()=>(0,a.Lt)({..._,isInvalid:eX,isClearable:tt,labelPlacement:e2,disableAnimation:$}),[(0,p.t6)(_),eX,e2,$]);(0,z.H)({isDisabled:!eT.isOpen});let tr="function"==typeof q.errorMessage?q.errorMessage({isInvalid:eX,validationErrors:e_,validationDetail
1s:e$}):q.errorMessage||(null==e_?void 0:e_.join(" ")),to=!!es||!!tr,td=!!ei;(0,d.useEffect)(()=>{if(eT.isOpen&&eL.current&&eR.current){let e=eR.current.getBoundingClientRect();eL.current.style.width=e.width+"px"}},[eT.isOpen]),(0,d.useEffect)(()=>{if(eT.isOpen&&eL.current&&eF.current){let e=eF.current.querySelector("[aria-selected=true] [data-label=true]"),t=ew.current;if(e&&t&&e.parentElement){let l=t.getBoundingClientRect().height;t.scrollTop=e.parentElement.offsetTop-l/2+e.parentElement.clientHeight/2}}},[eT.isOpen,$]);let tc=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"base","data-filled":(0,p.sE)(tl),"data-has-value":(0,p.sE)(tn),"data-has-label":(0,p.sE)(ti),"data-has-helper":(0,p.sE)(to),"data-has-end-content":(0,p.sE)(td),"data-invalid":(0,p.sE)(eX),"data-has-label-outside":(0,p.sE)(ts),className:tu.base({class:(0,u.cn)(ta,e.className)}),...e}},[tu,to,tn,ti,ts,tl,ta]),tg=(0,d.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ref:eR,"data-slot":"trigger","data-open":(0,p.sE)(eT.isOpen),"data-disabled":(0,p.sE)(null==e?void 0:e.isDisabled),"data-focus":(0,p.sE)(e0),"data-pressed":(0,p.sE)(eZ),"data-focus-visible":(0,p.sE)(e4),"data-hover":(0,p.sE)(e5),className:tu.trigger({class:null==eB?void 0:eB.trigger}),...(0,p.v6)(eQ,eY,e6,(0,o.$)(eS,{enabled:ej}),(0,o.$)(t))}},[tu,eR,eT.isOpen,null==eB?void 0:eB.trigger,null==e?void 0:e.isDisabled,e0,eZ,e4,e5,eQ,eY,e6,eS,ej]),tp=(0,d.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{state:eT,triggerRef:eR,selectRef:eI,selectionMode:ev,label:null==e?void 0:e.label,name:null==e?void 0:e.name,isRequired:null==e?void 0:e.isRequired,autoComplete:null==e?void 0:e.autoComplete,isDisabled:null==e?void 0:e.isDisabled,form:null==e?void 0:e.form,onChange:eP,...t}},[eT,ev,null==e?void 0:e.label,null==e?void 0:e.autoComplete,null==e?void 0:e.name,null==e?void 0:e.isDisabled,eR]),tv=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"label",className:tu.label({class:(0,u.cn)(null==eB?void 0:eB.label,e.className)}),...eV,...e}},[tu,null==eB?void 0:eB.label,eV]),th=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"value",className:tu.value({class:(0,u.cn)(null==eB?void 0:eB.value,e.className)}),...eO,...e}},[tu,null==eB?void 0:eB.value,eO]),tf=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"data-slot":"listboxWrapper",className:tu.listboxWrapper({class:(0,u.cn)(null==eB?void 0:eB.listboxWrapper,null==e?void 0:e.className)}),style:{maxHeight:null!=ec?ec:256,...e.style},...(0,p.v6)(ek.scrollShadowProps,e)}},[tu.listboxWrapper,null==eB?void 0:eB.listboxWrapper,ek.scrollShadowProps,ec]),ty=(0,d.useCallback)(function(){var e,t;let l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,p.v6)(ek.popoverProps,l);return{state:eT,triggerRef:eR,ref:eL,"data-slot":"popover",scrollRef:eF,triggerType:"listbox",classNames:{content:tu.popoverContent({class:(0,u.cn)(null==eB?void 0:eB.popoverContent,l.className)})},...n,offset:eT.selectedItems&&eT.selectedItems.length>0?1e-8*eT.selectedItems.length+((null==(e=ek.popoverProps)?void 0:e.offset)||0):null==(t=ek.popoverProps)?void 0:t.offset}},[tu,null==eB?void 0:eB.popoverContent,ek.popoverProps,eR,eT,eT.selectedItems]),tm=(0,d.useCallback)(()=>({"data-slot":"selectorIcon","aria-hidden":(0,p.sE)(!0),"data-open":(0,p.sE)(eT.isOpen),className:tu.selectorIcon({class:null==eB?void 0:eB.selectorIcon})}),[tu,null==eB?void 0:eB.selectorIcon,eT.isOpen]),tb=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"data-slot":"innerWrapper",className:tu.innerWrapper({class:(0,u.cn)(null==eB?void 0:eB.innerWrapper,null==e?void 0:e.className)})}},[tu,null==eB?void 0:eB.innerWrapper]),tD=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"data-slot":"helperWrapper",className:tu.helperWrapper({class:(0,u.cn)(null==eB?void 0:eB.helperWrapper,null==e?void 0:e.className)})}},[tu,null==eB?void 0:eB.helperWrapper]),tx=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,...eU,"data-slot":"description",className:tu.description({class:(0,u.cn)(null==eB?void 0:eB.description,null==e?void 0:e.className)})}}
1,[tu,null==eB?void 0:eB.description]),tP=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"data-slot":"mainWrapper",className:tu.mainWrapper({class:(0,u.cn)(null==eB?void 0:eB.mainWrapper,null==e?void 0:e.className)})}},[tu,null==eB?void 0:eB.mainWrapper]),tE=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"data-slot":"end-wrapper",className:tu.endWrapper({class:(0,u.cn)(null==eB?void 0:eB.endWrapper,null==e?void 0:e.className)})}},[tu,null==eB?void 0:eB.endWrapper]),tC=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,"data-slot":"end-content",className:tu.endContent({class:(0,u.cn)(null==eB?void 0:eB.endContent,null==e?void 0:e.className)})}},[tu,null==eB?void 0:eB.endContent]),tB=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,...eH,"data-slot":"error-message",className:tu.errorMessage({class:(0,u.cn)(null==eB?void 0:eB.errorMessage,null==e?void 0:e.className)})}},[tu,eH,null==eB?void 0:eB.errorMessage]),tK=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{"aria-hidden":(0,p.sE)(!0),"data-slot":"spinner",color:"current",size:"sm",...eD,...e,ref:eh,className:tu.spinner({class:(0,u.cn)(null==eB?void 0:eB.spinner,null==e?void 0:e.className)})}},[tu,eh,eD,null==eB?void 0:eB.spinner]),tA=(0,d.useCallback)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...e,type:"button",tabIndex:-1,"aria-label":"clear selection","data-slot":"clear-button","data-focus-visible":(0,p.sE)(e1),className:tu.clearButton({class:(0,u.cn)(null==eB?void 0:eB.clearButton,null==e?void 0:e.className)}),...(0,p.v6)(eJ,e3)}},[tu,e1,eJ,e3,null==eB?void 0:eB.clearButton]);return O.set(eT,{isDisabled:null==e?void 0:e.isDisabled,isRequired:null==e?void 0:e.isRequired,name:null==e?void 0:e.name,isInvalid:eX,validationBehavior:eK}),{Component:eN,domRef:eI,state:eT,label:X,name:Z,triggerRef:eR,isLoading:Q,placeholder:er,startContent:en,endContent:ei,description:es,selectorIcon:Y,hasHelper:to,labelPlacement:e2,hasPlaceholder:e7,renderValue:ea,selectionMode:ev,disableAnimation:$,isOutsideLeft:te,shouldLabelBeOutside:e9,shouldLabelBeInside:e8,isInvalid:eX,errorMessage:tr,isClearable:tt,getClearButtonProps:tA,getBaseProps:tc,getTriggerProps:tg,getLabelProps:tv,getValueProps:th,getListboxProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null!=eo?eo:eT.collection.size>50;return{state:eT,ref:eF,isVirtualized:t,virtualization:t?{maxListboxHeight:ec,itemHeight:ed}:void 0,"data-slot":"listbox",className:tu.listbox({class:(0,u.cn)(null==eB?void 0:eB.listbox,null==e?void 0:e.className)}),scrollShadowProps:ek.scrollShadowProps,...(0,p.v6)(ek.listboxProps,e,eW)}},getPopoverProps:ty,getSpinnerProps:tK,getMainWrapperProps:tP,getListboxWrapperProps:tf,getHiddenSelectProps:tp,getInnerWrapperProps:tb,getHelperWrapperProps:tD,getDescriptionProps:tx,getErrorMessageProps:tB,getSelectorIconProps:tm,getEndWrapperProps:tE,getEndContentProps:tC}}({...e,ref:t}),ew=N?(0,$.jsx)("label",{...eg(),children:N}):null,ek=(0,d.cloneElement)(_,eB()),eN=(0,d.useMemo)(()=>{var e;return eK&&(null==(e=k.selectedItems)?void 0:e.length)?(0,$.jsx)("span",{...eA(),children:(0,$.jsx)(Q.o,{})}):null},[eK,eA,null==(l=k.selectedItems)?void 0:l.length]),ej=(0,d.useMemo)(()=>eN?(0,$.jsxs)("div",{...eM(),children:[eN,ea&&(0,$.jsx)("span",{...eS(),children:ea})]}):ea&&(0,$.jsx)("span",{...eS(),children:ea}),[eN,ea,eM,eS]),eI=(0,d.useMemo)(()=>{let e=ei&&en,t=e||el;return W&&t?(0,$.jsx)("div",{...ex(),children:e?(0,$.jsx)("div",{...eC(),children:en}):(0,$.jsx)("div",{...eE(),children:el})}):null},[W,ei,en,el,ex,eC,eE]),eR=(0,d.useMemo)(()=>{var e;return(null==(e=k.selectedItems)?void 0:e.length)?er&&"function"==typeof er?er([...k.selectedItems].map(e=>({key:e.key,data:e.value,type:e.type,props:e.props,textValue:e.textValue,rendered:e.rendered,"aria-label":e["aria-label"]}))):k.selectedItems.map(e=>e.textValue).join(", "):eu},[k.selectedItems,er,eu]),eF=(0,d.useMemo)(()=>H?(0,$.jsx)(Y.o,{...ey()}):ek,[H,ek,ey]),eL=(0,d.useMemo)(()=>k.isOpen?(0,$.jsx)(X.j,{...ef(),children:(0,$.jsx)(ee.H,{...eP(),children:(0,$.jsx)(J.K,{...eh()})})}):null,[k.isOpen,ef,k,q,eP,eh]);return(0,$.jsxs)("div",{...ec(),children:[(0,$.jsx)(G,{...eD()}),eo?ew:null,(0,$.jsxs)("div",{...em(),children:[(0,$.jsxs)(m,{...ep(),children:[eo?null:ew,(0,$.jsxs)("div",{...eb(),children:[es,(0,$.jsx)("span",{...ev(),children:eR}),ea&&k.selectedItems&&(0,$.jsx)(U.s,{elementType:"span",children:","}),ej]}),eF]}),eI]}),ed?eL:(0,$.jsx)(et.N,{children:eL})]})})}}]);

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.