1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,649932,e=>{"use strict";var t=e.i(754939),r=e.i(838082),n=e.i(950888),o=e.i(597245),i=e.i(344816);function l(e){let l=e+"CollectionProvider",[s,a]=(0,r.createContextScope)(l),[u,c]=s(l,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:n}=e,o=t.default.useRef(null),l=t.default.useRef(new Map).current;return(0,i.jsx)(u,{scope:r,itemMap:l,collectionRef:o,children:n})};d.displayName=l;let f=e+"CollectionSlot",p=(0,o.createSlot)(f),h=t.default.forwardRef((e,t)=>{let{scope:r,children:o}=e,l=c(f,r),s=(0,n.useComposedRefs)(t,l.collectionRef);return(0,i.jsx)(p,{ref:s,children:o})});h.displayName=f;let m=e+"CollectionItemSlot",v="data-radix-collection-item",g=(0,o.createSlot)(m),x=t.default.forwardRef((e,r)=>{let{scope:o,children:l,...s}=e,a=t.default.useRef(null),u=(0,n.useComposedRefs)(r,a),d=c(m,o);return t.default.useEffect(()=>(d.itemMap.set(a,{ref:a,...s}),()=>void d.itemMap.delete(a))),(0,i.jsx)(g,{...{[v]:""},ref:u,children:l})});return x.displayName=m,[{Provider:d,Slot:h,ItemSlot:x},function(r){let n=c(e+"CollectionConsumer",r);return t.default.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${v}]`));return Array.from(n.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[n.collectionRef,n.itemMap])},a]}var s=new WeakMap;function a(e,t){var r,n;let o,i,l;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let s=(r=e,n=t,o=r.length,(l=(i=u(n))>=0?i:o+i)<0||l>=o?-1:l);return -1===s?void 0:e[s]}function u(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],s.set(this,!0)}set(e,t){return s.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,o=this.has(t),i=this.#e.length,l=u(e),s=l>=0?l:i+l,a=s<0||s>=i?-1:s;if(a===this.size||o&&a===this.size-1||-1===a)return this.set(t,r),this;let c=this.size+ +!o;l<0&&s++;let d=[...this.#e],f=!1;for(let e=s;e<c;e++)if(s===e){let i=d[e];d[e]===t&&(i=d[e+1]),o&&this.delete(t),n=this.get(i),this.set(t,r)}else{f||d[e-1]!==t||(f=!0);let r=d[f?e:e-1],o=n;n=this.get(r),this.delete(r),this.set(r,o)}return this}with(t,r,n){let o=new e(this);return o.insert(t,r,n),o}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=a(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=a(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return a(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],o=0;for(let e of this)Reflect.apply(t,r,[e,o,this])&&n.push(e),o++;return new e(n)}map(t,r){let n=[],o=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,o,this])]),o++;return new e(n)}reduce(...e){let[t,r]=e,n=0,o=r??this.at(0);for(let r of this)o=0===n&&1===e.length?r:Reflect.apply(t,this,[o,r,n,this]),n++;return o}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let o=this.at(r);n=r===this.size-1&&1===e.length?o:Reflect.apply(t,this,[n,o,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,o=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(o=r-1);for(let e=t;e<=o;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}}),e.s(["createCollection",()=>l])}
1,881070,e=>{"use strict";var t=e.i(488685),r=e.i(754939),n=e.i(344816),o=e.i(291967),i=e.i(838082),l=e.i(649932),s=e.i(950888),a=e.i(654041),u=e.i(729103),c=e.i(684080),d=e.i(438185),f=e.i(12138),p="rovingFocusGroup.onEntryFocus",h={bubbles:!1,cancelable:!0},m="RovingFocusGroup",[v,g,x]=(0,l.createCollection)(m),[y,w]=(0,i.createContextScope)(m,[x]),[b,C]=y(m),S=r.forwardRef((e,t)=>(0,n.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,n.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,n.jsx)(R,{...e,ref:t})})}));S.displayName=m;var R=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:i,orientation:l,loop:a=!1,dir:v,currentTabStopId:x,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:w,onEntryFocus:C,preventScrollOnEntryFocus:S=!1,...R}=e,j=r.useRef(null),k=(0,s.useComposedRefs)(t,j),E=(0,f.useDirection)(v),[T,P]=(0,d.useControllableState)({prop:x,defaultProp:y??null,onChange:w,caller:m}),[I,A]=r.useState(!1),D=(0,c.useCallbackRef)(C),H=g(i),L=r.useRef(!1),[M,F]=r.useState(0);return r.useEffect(()=>{let e=j.current;if(e)return e.addEventListener(p,D),()=>e.removeEventListener(p,D)},[D]),(0,n.jsx)(b,{scope:i,orientation:l,dir:E,loop:a,currentTabStopId:T,onItemFocus:r.useCallback(e=>P(e),[P]),onItemShiftTab:r.useCallback(()=>A(!0),[]),onFocusableItemAdd:r.useCallback(()=>F(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>F(e=>e-1),[]),children:(0,n.jsx)(u.Primitive.div,{tabIndex:I||0===M?-1:0,"data-orientation":l,...R,ref:k,style:{outline:"none",...e.style},onMouseDown:(0,o.composeEventHandlers)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,o.composeEventHandlers)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!I){let t=new CustomEvent(p,h);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=H().filter(e=>e.focusable);N([e.find(e=>e.active),e.find(e=>e.id===T),...e].filter(Boolean).map(e=>e.ref.current),S)}}L.current=!1}),onBlur:(0,o.composeEventHandlers)(e.onBlur,()=>A(!1))})})}),j="RovingFocusGroupItem",k=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:i,focusable:l=!0,active:s=!1,tabStopId:c,children:d,...f}=e,p=(0,a.useId)(),h=c||p,m=C(j,i),x=m.currentTabStopId===h,y=g(i),{onFocusableItemAdd:w,onFocusableItemRemove:b,currentTabStopId:S}=m;return r.useEffect(()=>{if(l)return w(),()=>b()},[l,w,b]),(0,n.jsx)(v.ItemSlot,{scope:i,id:h,focusable:l,active:s,children:(0,n.jsx)(u.Primitive.span,{tabIndex:x?0:-1,"data-orientation":m.orientation,...f,ref:t,onMouseDown:(0,o.composeEventHandlers)(e.onMouseDown,e=>{l?m.onItemFocus(h):e.preventDefault()}),onFocus:(0,o.composeEventHandlers)(e.onFocus,()=>m.onItemFocus(h)),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return E[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=y().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let i=o.indexOf(e.currentTarget);o=m.loop?(r=o,n=i+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(i+1)}setTimeout(()=>N(o))}}),children:"function"==typeof d?d({isCurrentTabStop:x,hasTabStop:null!=S}):d})})});k.displayName=j;var E={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function N(e,t=!1){let r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var T=e.i(472502),P="Tabs",[I,A]=(0,i.createContextScope)(P,[w]),D=w(),[H,L]=I(P),M=r.forwardRef((e,t)=>{let{__scopeTabs:r,value:o,onValueChange:i,defaultValue:l,orientation:s="horizontal",dir:c,activationMode:p="automatic",...h}=e,m=(0,f.useDirection)(c),[v,g]=(0,d.useControllableState)({prop:o,onChange:i,defaultProp:l??"",caller:P});return(0,n.jsx)(H,{scope:r,baseId:(0,a.useId)(),value:v,onValueChange:g,orientation:s,dir:m,activationMode:p,children:(0,n.jsx)(u.Primitive.div,{dir:m,"data-orientation":s,...h,ref:t})})});M.displayName=P;var F="TabsList",z=r.forwardRef((e,t)=>
1{let{__scopeTabs:r,loop:o=!0,...i}=e,l=L(F,r),s=D(r);return(0,n.jsx)(S,{asChild:!0,...s,orientation:l.orientation,dir:l.dir,loop:o,children:(0,n.jsx)(u.Primitive.div,{role:"tablist","aria-orientation":l.orientation,...i,ref:t})})});z.displayName=F;var O="TabsTrigger",B=r.forwardRef((e,t)=>{let{__scopeTabs:r,value:i,disabled:l=!1,...s}=e,a=L(O,r),c=D(r),d=K(a.baseId,i),f=U(a.baseId,i),p=i===a.value;return(0,n.jsx)(k,{asChild:!0,...c,focusable:!l,active:p,children:(0,n.jsx)(u.Primitive.button,{type:"button",role:"tab","aria-selected":p,"aria-controls":f,"data-state":p?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:d,...s,ref:t,onMouseDown:(0,o.composeEventHandlers)(e.onMouseDown,e=>{l||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(i)}),onKeyDown:(0,o.composeEventHandlers)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(i)}),onFocus:(0,o.composeEventHandlers)(e.onFocus,()=>{let e="manual"!==a.activationMode;p||l||!e||a.onValueChange(i)})})})});B.displayName=O;var V="TabsContent",_=r.forwardRef((e,t)=>{let{__scopeTabs:o,value:i,forceMount:l,children:s,...a}=e,c=L(V,o),d=K(c.baseId,i),f=U(c.baseId,i),p=i===c.value,h=r.useRef(p);return r.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,n.jsx)(T.Presence,{present:l||p,children:({present:r})=>(0,n.jsx)(u.Primitive.div,{"data-state":p?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!r,id:f,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:r&&s})})});function K(e,t){return`${e}-trigger-${t}`}function U(e,t){return`${e}-content-${t}`}_.displayName=V;let W=new Map,G=(0,r.createContext)(null);function $({ref:e,groupId:o,persist:i=!1,updateAnchor:l=!1,defaultValue:s,value:a,onValueChange:u,...c}){let d=(0,r.useRef)(null),f=(0,r.useMemo)(()=>new Map,[]),[p,h]=void 0===a?(0,r.useState)(s):[a,(0,r.useEffectEvent)(e=>u?.(e))];return(0,r.useLayoutEffect)(()=>{if(!o)return;let e=sessionStorage.getItem(o);i&&(e??=localStorage.getItem(o)),e&&h(e);let t=W.get(o)??new Set;return t.add(h),W.set(o,t),()=>{t.delete(h)}},[o,i,h]),(0,r.useLayoutEffect)(()=>{let e=window.location.hash.slice(1);if(e){for(let[t,r]of f.entries())if(r===e){h(t),d.current?.scrollIntoView();break}}},[h,f]),(0,n.jsx)(M,{ref:(0,t.mergeRefs)(e,d),value:p,onValueChange:e=>{if(l){let t=f.get(e);t&&window.history.replaceState(null,"",`#${t}`)}if(o){let t=W.get(o);if(t)for(let r of t)r(e);sessionStorage.setItem(o,e),i&&localStorage.setItem(o,e)}else h(e)},...c,children:(0,n.jsx)(G,{value:(0,r.useMemo)(()=>({valueToIdMap:f}),[f]),children:c.children})})}function q({value:e,...t}){let{valueToIdMap:o}=function(){let e=(0,r.use)(G);if(!e)throw Error("You must wrap your component in <Tabs>");return e}();return t.id&&o.set(e,t.id),(0,n.jsx)(_,{value:e,...t,children:t.children})}e.s(["Tabs",()=>$,"TabsContent",()=>q,"TabsList",()=>z,"TabsTrigger",()=>B],881070)},725140,e=>{"use strict";var t=e.i(754939);function r(e){let[r,n]=(0,t.useState)(!1),o=(0,t.useRef)(e),i=(0,t.useRef)(null);o.current=e;let l=(0,t.useCallback)(()=>{i.current&&window.clearTimeout(i.current),Promise.resolve(o.current()).then(()=>{n(!0),i.current=window.setTimeout(()=>{n(!1)},1500)})},[]);return(0,t.useEffect)(()=>()=>{i.current&&window.clearTimeout(i.current)},[]),[r,l]}e.s(["useCopyButton",()=>r])},981030,e=>{"use strict";e.i(710988);var t=e.i(972395),r=e.i(725140),n=e.i(897772),o=e.i(488685),i=e.i(881070),l=e.i(754939),s=e.i(344816),a=e.i(497364);let u=(0,e.i(103790).default)("clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]),c=(0,l.createContext)(null);function d(e){return(0,s.jsx)("pre",{...e,className:(0,t.cn)("min-w-full w-max *:flex *:flex-col",e.className),children:e.children})}function f({ref:e,title:r,allowCopy:n=!0,keepBackground:o=!1,icon:i,viewportProps:a={},children:u,Actions:d=e=>(0,s.jsx)("div",{...e,className:(0,t.cn)("empty:hidden",e.className)}),...f}){let h=null!==(0,l.use)(c),m=(0,l.useRef)(null);
1return(0,s.jsxs)("figure",{ref:e,dir:"ltr",...f,tabIndex:-1,className:(0,t.cn)(h?"bg-fd-secondary -mx-px -mb-px last:rounded-b-xl":"my-4 bg-fd-card rounded-xl",o&&"bg-(--shiki-light-bg) dark:bg-(--shiki-dark-bg)","shiki relative border shadow-sm not-prose overflow-hidden text-sm",f.className),children:[r?(0,s.jsxs)("div",{className:"flex text-fd-muted-foreground items-center gap-2 h-9.5 border-b px-4",children:["string"==typeof i?(0,s.jsx)("div",{className:"[&_svg]:size-3.5",dangerouslySetInnerHTML:{__html:i}}):i,(0,s.jsx)("figcaption",{className:"flex-1 truncate",children:r}),d({className:"-me-2",children:n&&(0,s.jsx)(p,{containerRef:m})})]}):d({className:"absolute top-3 right-2 z-2 backdrop-blur-lg rounded-lg text-fd-muted-foreground",children:n&&(0,s.jsx)(p,{containerRef:m})}),(0,s.jsx)("div",{ref:m,...a,role:"region",tabIndex:0,className:(0,t.cn)("text-[0.8125rem] py-3.5 overflow-auto max-h-[600px] fd-scroll-container focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-fd-ring",a.className),style:{"--padding-right":r?void 0:"calc(var(--spacing) * 8)",counterSet:f["data-line-numbers"]?`line ${Number(f["data-line-numbers-start"]??1)-1}`:void 0,...a.style},children:u})]})}function p({className:e,containerRef:o,...i}){let[l,c]=(0,r.useCopyButton)(()=>{let e=o.current?.getElementsByTagName("pre").item(0);if(!e)return;let t=e.cloneNode(!0);t.querySelectorAll(".nd-copy-ignore").forEach(e=>{e.replaceWith("\n")}),navigator.clipboard.writeText(t.textContent??"")});return(0,s.jsx)("button",{type:"button","data-checked":l||void 0,className:(0,t.cn)((0,n.buttonVariants)({className:"hover:text-fd-accent-foreground data-checked:text-fd-accent-foreground",size:"icon-xs"}),e),"aria-label":l?"Copied Text":"Copy Text",onClick:c,...i,children:l?(0,s.jsx)(a.Check,{}):(0,s.jsx)(u,{})})}function h({ref:e,...r}){let n=(0,l.useRef)(null),a=null!==(0,l.use)(c);return(0,s.jsx)(i.Tabs,{ref:(0,o.mergeRefs)(n,e),...r,className:(0,t.cn)("bg-fd-card rounded-xl border",!a&&"my-4",r.className),children:(0,s.jsx)(c,{value:(0,l.useMemo)(()=>({containerRef:n,nested:a}),[a]),children:r.children})})}function m(e){return(0,s.jsx)(i.TabsList,{...e,className:(0,t.cn)("flex flex-row px-2 overflow-x-auto text-fd-muted-foreground",e.className),children:e.children})}function v({children:e,...r}){return(0,s.jsxs)(i.TabsTrigger,{...r,className:(0,t.cn)("relative group inline-flex text-sm font-medium text-nowrap items-center transition-colors gap-2 px-2 py-1.5 hover:text-fd-accent-foreground data-[state=active]:text-fd-primary [&_svg]:size-3.5",r.className),children:[(0,s.jsx)("div",{className:"absolute inset-x-2 bottom-0 h-px group-data-[state=active]:bg-fd-primary"}),e]})}function g(e){return(0,s.jsx)(i.TabsContent,{...e})}e.s(["CodeBlock",()=>f,"CodeBlockTab",()=>g,"CodeBlockTabs",()=>h,"CodeBlockTabsList",()=>m,"CodeBlockTabsTrigger",()=>v,"Pre",()=>d],981030)},292783,e=>{"use strict";e.i(877130),e.s([])},344891,e=>{"use strict";e.i(292783);var t=e.i(972395),r=e.i(754939),n=e.i(344816),o=e.i(497364),i=e.i(963192);let l=(0,e.i(103790).default)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var s=e.i(292742),a=e.i(527069),u=e.i(291967),c=e.i(649932),d=e.i(950888),f=e.i(838082),p=e.i(12138),h=e.i(336683),m=e.i(991148),v=e.i(86288),g=e.i(654041),x=e.i(582228),y=e.i(646196),w=e.i(729103),b=e.i(597245),C=e.i(684080),S=e.i(438185),R=e.i(488577),j=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});r.forwardRef((e,t)=>(0,n.jsx)(w.Primitive.span,{...e,ref:t,style:{...j,...e.style}})).displayName="VisuallyHidden";var k=e.i(73772),E=e.i(212180),N=[" ","Enter","ArrowUp","ArrowDown"],T=[" ","Enter"],P="Select",[I,A,D]=(0,c.createCollection)(P),[H,L]=(0,f.createContextScope)(P,[D,x.createPopperScope]),M=(0,x.createPopperScope)(),[F,z]=H(P),[O,B]=H(P),V=e=>{let{__scopeSelect:t,children:o,open:i,defaultOpen:l,onOpenChange:s,value:a,defaultValue:u,onValueChange:c,dir:d,name:f,autoComplete:h,disabled:m,required:v,form:y}=e,w=M(t),[b,C]=r.useState(null),[R,j]=r.useState(null),[k,E]=r.useState(!1),N=(0,p.useDirection)(d),[T,A]=(0,S.useControllableState)({prop:i,defaultProp:l??!1,onChange:s,caller:P}),[D,H]=(0,S.useControllableState)({prop:a,defaultProp:u,onChange:c,caller:P}),L=r.useRef(null),z=!b||y||!!b.closest("form"),[B,V]=r.useState(new Set),_=Array.from(B).map(e=>e.props.value).join(";");return(0,n.jsx)(x.Root,{...w,children:(0,n.jsxs)(F,{required:v,scope:t,trigger:b,onTriggerChange:C,valueNode:R,onValueNodeChange:j,valueNodeHasChildren:k,onValueNodeHasChildrenChange:E,contentId:(0,g.useId)(),value:D,onValueChange:H,open:T,onOpenChange:A,dir:N,triggerPointerDownPosRef:L,disabled:m,children:[(0,n.jsx)(I.Provider,{scope:t,children:(0,n.jsx)(O,{scope:e.__scopeSelect,onNativeOptionAdd:r.useCallback(e=>{V(t=>new Set(t).add(e))},[]),onNativeOptionRemove:r.useCallback(e=>{V(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:o})}),z?(0,n.jsxs)(ek,{"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:h,value:D,onChange:e=>H(e.target.value),disabled:m,form:y,children:[void 0===D?(0,n.jsx)("option",{value:""}):null,Array.from(B)]},_):null]})})};V.displayName=P;var _="SelectTrigger",K=r.forwardRef((e,t)=>
1{let{__scopeSelect:o,disabled:i=!1,...l}=e,s=M(o),a=z(_,o),c=a.disabled||i,f=(0,d.useComposedRefs)(t,a.onTriggerChange),p=A(o),h=r.useRef("touch"),[m,v,g]=eN(e=>{let t=p().filter(e=>!e.disabled),r=t.find(e=>e.value===a.value),n=eT(t,e,r);void 0!==n&&a.onValueChange(n.value)}),y=e=>{c||(a.onOpenChange(!0),g()),e&&(a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,n.jsx)(x.Anchor,{asChild:!0,...s,children:(0,n.jsx)(w.Primitive.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":eE(a.value)?"":void 0,...l,ref:f,onClick:(0,u.composeEventHandlers)(l.onClick,e=>{e.currentTarget.focus(),"mouse"!==h.current&&y(e)}),onPointerDown:(0,u.composeEventHandlers)(l.onPointerDown,e=>{h.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:(0,u.composeEventHandlers)(l.onKeyDown,e=>{let t=""!==m.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||v(e.key),(!t||" "!==e.key)&&N.includes(e.key)&&(y(),e.preventDefault())})})})});K.displayName=_;var U="SelectValue",W=r.forwardRef((e,t)=>{let{__scopeSelect:r,className:o,style:i,children:l,placeholder:s="",...a}=e,u=z(U,r),{onValueNodeHasChildrenChange:c}=u,f=void 0!==l,p=(0,d.useComposedRefs)(t,u.onValueNodeChange);return(0,R.useLayoutEffect)(()=>{c(f)},[c,f]),(0,n.jsx)(w.Primitive.span,{...a,ref:p,style:{pointerEvents:"none"},children:eE(u.value)?(0,n.jsx)(n.Fragment,{children:s}):l})});W.displayName=U;var G=r.forwardRef((e,t)=>{let{__scopeSelect:r,children:o,...i}=e;return(0,n.jsx)(w.Primitive.span,{"aria-hidden":!0,...i,ref:t,children:o||"â¼"})});G.displayName="SelectIcon";var $=e=>(0,n.jsx)(y.Portal,{asChild:!0,...e});$.displayName="SelectPortal";var q="SelectContent",Y=r.forwardRef((e,t)=>{let o=z(q,e.__scopeSelect),[i,l]=r.useState();return((0,R.useLayoutEffect)(()=>
1{l(new DocumentFragment)},[]),o.open)?(0,n.jsx)(Q,{...e,ref:t}):i?s.createPortal((0,n.jsx)(X,{scope:e.__scopeSelect,children:(0,n.jsx)(I.Slot,{scope:e.__scopeSelect,children:(0,n.jsx)("div",{children:e.children})})}),i):null});Y.displayName=q;var[X,J]=H(q),Z=(0,b.createSlot)("SelectContent.RemoveScroll"),Q=r.forwardRef((e,t)=>{let{__scopeSelect:o,position:i="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:s,onPointerDownOutside:a,side:c,sideOffset:f,align:p,alignOffset:g,arrowPadding:x,collisionBoundary:y,collisionPadding:w,sticky:b,hideWhenDetached:C,avoidCollisions:S,...R}=e,j=z(q,o),[N,T]=r.useState(null),[P,I]=r.useState(null),D=(0,d.useComposedRefs)(t,e=>T(e)),[H,L]=r.useState(null),[M,F]=r.useState(null),O=A(o),[B,V]=r.useState(!1),_=r.useRef(!1);r.useEffect(()=>{if(N)return(0,k.hideOthers)(N)},[N]),(0,m.useFocusGuards)();let K=r.useCallback(e=>{let[t,...r]=O().map(e=>e.ref.current),[n]=r.slice(-1),o=document.activeElement;for(let r of e)if(r===o||(r?.scrollIntoView({block:"nearest"}),r===t&&P&&(P.scrollTop=0),r===n&&P&&(P.scrollTop=P.scrollHeight),r?.focus(),document.activeElement!==o))return},[O,P]),U=r.useCallback(()=>K([H,N]),[K,H,N]);r.useEffect(()=>{B&&U()},[B,U]);let{onOpenChange:W,triggerPointerDownPosRef:G}=j;r.useEffect(()=>{if(N){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(G.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(G.current?.y??0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():N.contains(r.target)||W(!1),document.removeEventListener("pointermove",t),G.current=null};return null!==G.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[N,W,G]),r.useEffect(()=>{let e=()=>W(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[W]);let[$,Y]=eN(e=>{let t=O().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=eT(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),J=r.useCallback((e,t,r)=>{let n=!_.current&&!r;(void 0!==j.value&&j.value===t||n)&&(L(e),n&&(_.current=!0))},[j.value]),Q=r.useCallback(()=>N?.focus(),[N]),er=r.useCallback((e,t,r)=>{let n=!_.current&&!r;(void 0!==j.value&&j.value===t||n)&&F(e)},[j.value]),en="popper"===i?et:ee,eo=en===et?{side:c,sideOffset:f,align:p,alignOffset:g,arrowPadding:x,collisionBoundary:y,collisionPadding:w,sticky:b,hideWhenDetached:C,avoidCollisions:S}:{};return(0,n.jsx)(X,{scope:o,content:N,viewport:P,onViewportChange:I,itemRefCallback:J,selectedItem:H,onItemLeave:Q,itemTextRefCallback:er,focusSelectedItem:U,selectedItemText:M,position:i,isPositioned:B,searchRef:$,children:(0,n.jsx)(E.RemoveScroll,{as:Z,allowPinchZoom:!0,children:(0,n.jsx)(v.FocusScope,{asChild:!0,trapped:j.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,u.composeEventHandlers)(l,e=>{j.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,n.jsx)(h.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:(0,n.jsx)(en,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:e=>e.preventDefault(),...R,...eo,onPlaced:()=>V(!0),ref:D,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:(0,u.composeEventHandlers)(R.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Y(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>K(t)),e.preventDefault()}})})})})})})});Q.displayName="SelectContentImpl";var ee=r.forwardRef((e,t)=>{let{__scopeSelect:o,onPlaced:i,...l}=e,s=z(q,o),u=J(q,o),[c,f]=r.useState(null),[p,h]=r.useState(null),m=(0,d.useComposedRefs)(t,e=>h(e)),v=A(o),g=r.useRef(!1),x=r.useRef(!0),{viewport:y,selectedItem:b,selectedItemText:C,focusSelectedItem:S}=u,j=r.useCallback(()=>
1{if(s.trigger&&s.valueNode&&c&&p&&y&&b&&C){let e=s.trigger.getBoundingClientRect(),t=p.getBoundingClientRect(),r=s.valueNode.getBoundingClientRect(),n=C.getBoundingClientRect();if("rtl"!==s.dir){let o=n.left-t.left,i=r.left-o,l=e.left-i,s=e.width+l,u=Math.max(s,t.width),d=window.innerWidth-10,f=(0,a.clamp)(i,[10,Math.max(10,d-u)]);c.style.minWidth=s+"px",c.style.left=f+"px"}else{let o=t.right-n.right,i=window.innerWidth-r.right-o,l=window.innerWidth-e.right-i,s=e.width+l,u=Math.max(s,t.width),d=window.innerWidth-10,f=(0,a.clamp)(i,[10,Math.max(10,d-u)]);c.style.minWidth=s+"px",c.style.right=f+"px"}let o=v(),l=window.innerHeight-20,u=y.scrollHeight,d=window.getComputedStyle(p),f=parseInt(d.borderTopWidth,10),h=parseInt(d.paddingTop,10),m=parseInt(d.borderBottomWidth,10),x=f+h+u+parseInt(d.paddingBottom,10)+m,w=Math.min(5*b.offsetHeight,x),S=window.getComputedStyle(y),R=parseInt(S.paddingTop,10),j=parseInt(S.paddingBottom,10),k=e.top+e.height/2-10,E=b.offsetHeight/2,N=f+h+(b.offsetTop+E);if(N<=k){let e=o.length>0&&b===o[o.length-1].ref.current;c.style.bottom="0px";let t=Math.max(l-k,E+(e?j:0)+(p.clientHeight-y.offsetTop-y.offsetHeight)+m);c.style.height=N+t+"px"}else{let e=o.length>0&&b===o[0].ref.current;c.style.top="0px";let t=Math.max(k,f+y.offsetTop+(e?R:0)+E);c.style.height=t+(x-N)+"px",y.scrollTop=N-k+y.offsetTop}c.style.margin="10px 0",c.style.minHeight=w+"px",c.style.maxHeight=l+"px",i?.(),requestAnimationFrame(()=>g.current=!0)}},[v,s.trigger,s.valueNode,c,p,y,b,C,s.dir,i]);(0,R.useLayoutEffect)(()=>j(),[j]);let[k,E]=r.useState();(0,R.useLayoutEffect)(()=>{p&&E(window.getComputedStyle(p).zIndex)},[p]);let N=r.useCallback(e=>{e&&!0===x.current&&(j(),S?.(),x.current=!1)},[j,S]);return(0,n.jsx)(er,{scope:o,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:N,children:(0,n.jsx)("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:(0,n.jsx)(w.Primitive.div,{...l,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});ee.displayName="SelectItemAlignedPosition";var et=r.forwardRef((e,t)=>{let{__scopeSelect:r,align:o="start",collisionPadding:i=10,...l}=e,s=M(r);return(0,n.jsx)(x.Content,{...s,...l,ref:t,align:o,collisionPadding:i,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});et.displayName="SelectPopperPosition";var[er,en]=H(q,{}),eo="SelectViewport",ei=r.forwardRef((e,t)=>{let{__scopeSelect:o,nonce:i,...l}=e,s=J(eo,o),a=en(eo,o),c=(0,d.useComposedRefs)(t,s.onViewportChange),f=r.useRef(0);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,n.jsx)(I.Slot,{scope:o,children:(0,n.jsx)(w.Primitive.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:(0,u.composeEventHandlers)(l.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=a;if(n?.current&&r){let e=Math.abs(f.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,o=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(o<n){let i=o+e,l=Math.min(n,i),s=i-l;r.style.height=l+"px","0px"===r.style.bottom&&(t.scrollTop=s>0?s:0,r.style.justifyContent="flex-end")}}}f.current=t.scrollTop})})})]})});ei.displayName=eo;var el="SelectGroup",[es,ea]=H(el);r.forwardRef((e,t)=>{let{__scopeSelect:r,...o}=e,i=(0,g.useId)();return(0,n.jsx)(es,{scope:r,id:i,children:(0,n.jsx)(w.Primitive.div,{role:"group","aria-labelledby":i,...o,ref:t})})}).displayName=el;var eu="SelectLabel",ec=r.forwardRef((e,t)=>
1{let{__scopeSelect:r,...o}=e,i=ea(eu,r);return(0,n.jsx)(w.Primitive.div,{id:i.id,...o,ref:t})});ec.displayName=eu;var ed="SelectItem",[ef,ep]=H(ed),eh=r.forwardRef((e,t)=>{let{__scopeSelect:o,value:i,disabled:l=!1,textValue:s,...a}=e,c=z(ed,o),f=J(ed,o),p=c.value===i,[h,m]=r.useState(s??""),[v,x]=r.useState(!1),y=(0,d.useComposedRefs)(t,e=>f.itemRefCallback?.(e,i,l)),b=(0,g.useId)(),C=r.useRef("touch"),S=()=>{l||(c.onValueChange(i),c.onOpenChange(!1))};if(""===i)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,n.jsx)(ef,{scope:o,value:i,disabled:l,textId:b,isSelected:p,onItemTextChange:r.useCallback(e=>{m(t=>t||(e?.textContent??"").trim())},[]),children:(0,n.jsx)(I.ItemSlot,{scope:o,value:i,disabled:l,textValue:h,children:(0,n.jsx)(w.Primitive.div,{role:"option","aria-labelledby":b,"data-highlighted":v?"":void 0,"aria-selected":p&&v,"data-state":p?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...a,ref:y,onFocus:(0,u.composeEventHandlers)(a.onFocus,()=>x(!0)),onBlur:(0,u.composeEventHandlers)(a.onBlur,()=>x(!1)),onClick:(0,u.composeEventHandlers)(a.onClick,()=>{"mouse"!==C.current&&S()}),onPointerUp:(0,u.composeEventHandlers)(a.onPointerUp,()=>{"mouse"===C.current&&S()}),onPointerDown:(0,u.composeEventHandlers)(a.onPointerDown,e=>{C.current=e.pointerType}),onPointerMove:(0,u.composeEventHandlers)(a.onPointerMove,e=>{C.current=e.pointerType,l?f.onItemLeave?.():"mouse"===C.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,u.composeEventHandlers)(a.onPointerLeave,e=>{e.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:(0,u.composeEventHandlers)(a.onKeyDown,e=>{(f.searchRef?.current===""||" "!==e.key)&&(T.includes(e.key)&&S()," "===e.key&&e.preventDefault())})})})})});eh.displayName=ed;var em="SelectItemText",ev=r.forwardRef((e,t)=>{let{__scopeSelect:o,className:i,style:l,...a}=e,u=z(em,o),c=J(em,o),f=ep(em,o),p=B(em,o),[h,m]=r.useState(null),v=(0,d.useComposedRefs)(t,e=>m(e),f.onItemTextChange,e=>c.itemTextRefCallback?.(e,f.value,f.disabled)),g=h?.textContent,x=r.useMemo(()=>(0,n.jsx)("option",{value:f.value,disabled:f.disabled,children:g},f.value),[f.disabled,f.value,g]),{onNativeOptionAdd:y,onNativeOptionRemove:b}=p;return(0,R.useLayoutEffect)(()=>(y(x),()=>b(x)),[y,b,x]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(w.Primitive.span,{id:f.textId,...a,ref:v}),f.isSelected&&u.valueNode&&!u.valueNodeHasChildren?s.createPortal(a.children,u.valueNode):null]})});ev.displayName=em;var eg="SelectItemIndicator",ex=r.forwardRef((e,t)=>{let{__scopeSelect:r,...o}=e;return ep(eg,r).isSelected?(0,n.jsx)(w.Primitive.span,{"aria-hidden":!0,...o,ref:t}):null});ex.displayName=eg;var ey="SelectScrollUpButton",ew=r.forwardRef((e,t)=>{let o=J(ey,e.__scopeSelect),i=en(ey,e.__scopeSelect),[l,s]=r.useState(!1),a=(0,d.useComposedRefs)(t,i.onScrollButtonChange);return(0,R.useLayoutEffect)(()=>{if(o.viewport&&o.isPositioned){let e=function(){s(t.scrollTop>0)},t=o.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[o.viewport,o.isPositioned]),l?(0,n.jsx)(eS,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=o;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ew.displayName=ey;var eb="SelectScrollDownButton",eC=r.forwardRef((e,t)=>{let o=J(eb,e.__scopeSelect),i=en(eb,e.__scopeSelect),[l,s]=r.useState(!1),a=(0,d.useComposedRefs)(t,i.onScrollButtonChange);return(0,R.useLayoutEffect)(()=>{if(o.viewport&&o.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;s(Math.ceil(t.scrollTop)<e)},t=o.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[o.viewport,o.isPositioned]),l?(0,n.jsx)(eS,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=o;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});eC.displayName=eb;var eS=r.forwardRef((e,t)=>{let{__scopeSelect:o,onAutoScroll:i,...l}=e,s=J("SelectScrollButton",o),a=r.useRef(null),c=A(o),d=r.useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return r.useEffect(()=>()=>d(),[d]),(0,R.useLayoutEffect)(()=>{let e=c().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[c]),(0,n.jsx)(w.Primitive.div,{"aria-hidden":!0,...l,ref:t,style:{flexShrink:0,...l.style},onPointerDown:(0,u.composeEventHandlers)(l.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(i,50))}),onPointerMove:(0,u.composeEventHandlers)(l.onPointerMove,()=>{s.onItemLeave?.(),null===a.current&&(a.current=window.setInterval(i,50))}),onPointerLeave:(0,u.composeEventHandlers)(l.onPointerLeave,()=>{d()})})}),eR=r.forwardRef((e,t)=>
1{let{__scopeSelect:r,...o}=e;return(0,n.jsx)(w.Primitive.div,{"aria-hidden":!0,...o,ref:t})});eR.displayName="SelectSeparator";var ej="SelectArrow";r.forwardRef((e,t)=>{let{__scopeSelect:r,...o}=e,i=M(r),l=z(ej,r),s=J(ej,r);return l.open&&"popper"===s.position?(0,n.jsx)(x.Arrow,{...i,...o,ref:t}):null}).displayName=ej;var ek=r.forwardRef(({__scopeSelect:e,value:t,...o},i)=>{let l,s=r.useRef(null),a=(0,d.useComposedRefs)(i,s),u=(l=r.useRef({value:t,previous:t}),r.useMemo(()=>(l.current.value!==t&&(l.current.previous=l.current.value,l.current.value=t),l.current.previous),[t]));return r.useEffect(()=>{let e=s.current;if(!e)return;let r=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(u!==t&&r){let n=new Event("change",{bubbles:!0});r.call(e,t),e.dispatchEvent(n)}},[u,t]),(0,n.jsx)(w.Primitive.select,{...o,style:{...j,...o.style},ref:a,defaultValue:t})});function eE(e){return""===e||void 0===e}function eN(e){let t=(0,C.useCallbackRef)(e),n=r.useRef(""),o=r.useRef(0),i=r.useCallback(e=>{let 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]),l=r.useCallback(()=>{n.current="",window.clearTimeout(o.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(o.current),[]),[n,i,l]}function eT(e,t,r){var n,o;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,l=r?e.indexOf(r):-1,s=(n=e,o=Math.max(l,0),n.map((e,t)=>n[(o+t)%n.length]));1===i.length&&(s=s.filter(e=>e!==r));let a=s.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return a!==r?a:void 0}ek.displayName="SelectBubbleInput";let eP=(0,r.forwardRef)(({className:e,children:r,...o},l)=>(0,n.jsxs)(K,{ref:l,className:(0,t.cn)("flex items-center w-full rounded-md border p-2 gap-2 text-start text-sm text-fd-secondary-foreground bg-fd-secondary hover:bg-fd-accent focus:outline-none focus:ring focus:ring-fd-ring disabled:cursor-not-allowed disabled:opacity-50 data-placeholder:text-fd-muted-foreground",e),...o,children:[r,(0,n.jsx)(G,{asChild:!0,children:(0,n.jsx)(i.ChevronDown,{className:"ms-auto size-3.5 text-fd-muted-foreground shrink-0"})})]}));eP.displayName=K.displayName;let eI=(0,r.forwardRef)(({className:e,...r},o)=>(0,n.jsx)(ew,{ref:o,className:(0,t.cn)("flex items-center justify-center py-1",e),...r,children:(0,n.jsx)(l,{className:"size-4"})}));eI.displayName=ew.displayName;let eA=(0,r.forwardRef)(({className:e,...r},o)=>(0,n.jsx)(eC,{ref:o,className:(0,t.cn)("flex items-center justify-center py-1",e),...r,children:(0,n.jsx)(i.ChevronDown,{className:"size-4"})}));eA.displayName=eC.displayName;let eD=(0,r.forwardRef)(({className:e,children:r,position:o,...i},l)=>(0,n.jsx)($,{children:(0,n.jsxs)(Y,{ref:l,className:(0,t.cn)("z-50 overflow-hidden rounded-lg border bg-fd-popover text-fd-popover-foreground shadow-md",e),position:o,...i,children:[(0,n.jsx)(eI,{}),(0,n.jsx)(ei,{className:"p-1",children:r}),(0,n.jsx)(eA,{})]})}));eD.displayName=Y.displayName,(0,r.forwardRef)(({className:e,...r},o)=>(0,n.jsx)(ec,{ref:o,className:(0,t.cn)("py-1.5 pe-2 ps-6 text-sm font-semibold",e),...r})).displayName=ec.displayName;let eH=(0,r.forwardRef)(({className:e,children:r,...i},l)=>(0,n.jsxs)(eh,{ref:l,className:(0,t.cn)("flex select-none flex-row items-center rounded-md py-1.5 px-2 text-sm outline-none focus:bg-fd-accent focus:text-fd-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...i,children:[(0,n.jsx)(ev,{children:r}),(0,n.jsx)(ex,{className:"ms-auto",children:(0,n.jsx)(o.Check,{className:"size-3.5 text-fd-primary"})})]}));eH.displayName=eh.displayName,(0,r.forwardRef)(({className:e,...r},o)=>(0,n.jsx)(eR,{ref:o,className:(0,t.cn)("my-1 h-px bg-fd-muted",e),...r})).displayName=eR.displayName,e.s(["Select",()=>V,"SelectContent",()=>eD,"SelectItem",()=>eH,"SelectTrigger",()=>eP,"SelectValue",()=>W],344891)},53368,791186,e=>{"use strict";var t=e.i(754939),r=e.i(344816),n=e.i(945334);async function o(t,r){let n,{fallbackLanguage:o="text",config:s,...a}=r;if(Object.assign(a,s.resolveThemes(a)),"theme"in a)n=[a.theme];else if("themes"in a)n=Object.values(a.themes).filter(e=>void 0!==e);else throw Error("impossible");
1let{isSpecialLang:u}=await e.A(362904),c=await s.createHighlighter();return u(a.lang)||a.lang in c.getBundledLanguages()||c.getLoadedLanguages().includes(a.lang)||(a.lang=o),await Promise.all([i(c,...n),l(c,a.lang)]),c.codeToHast(t,a)}async function i(t,...r){let{isSpecialTheme:n}=await e.A(362904),o=r.filter(e=>{if(n(e))return!1;try{return t.getTheme(e),!1}catch{return!0}});o.length>0&&await t.loadTheme(...o)}async function l(t,...r){let{isSpecialLang:n}=await e.A(362904),o=r.filter(e=>{if(n(e))return!1;try{return t.getLanguage(e),!1}catch{return!0}});o.length>0&&await t.loadLanguage(...o)}async function s(e,t){let r=await e.createHighlighter();return await Promise.all([t?.langs&&l(r,...t.langs),t?.themes&&i(r,...t.themes)]),r}async function a(e,i){return(0,n.toJsxRuntime)(await o(e,i),{jsx:r.jsx,jsxs:r.jsxs,development:!1,Fragment:t.Fragment,components:i.components})}e.s(["getHighlighter",()=>s,"highlight",()=>a,"highlightHast",()=>o],791186);let u=(0,t.createContext)(null);function c(){return(0,t.use)(u)}function d({config:e,children:t}){return(0,r.jsx)(u,{value:e,children:t})}function f(e,r,n){let[o,i]=(0,t.useState)(r.defaultValue),l=function(e){if(e)return e;let r=(0,t.use)(u);if(!r)throw Error("missing <ShikiConfigProvider />");return r}(r.config),s=(0,t.useRef)(null);return(0,t.useEffect)(()=>{let t=a(e,{...r,config:l});return s.current=t,t.then(e=>{s.current===t&&i(e)}),()=>{s.current=null}},n),o}e.s(["ShikiConfigProvider",()=>d,"useShikiConfigOptional",()=>c,"useShikiDynamic",()=>f],53368)}]);
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.