"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[600],{9923:function(e,t,r){r.d(t,{B:function(){return f}});var n=r(2265),l=r(73966),i=r(98575),o=r(57437);function a(e){let t=function(e){let t=n.forwardRef((e,t)=>{let{children:r,...l}=e;if(n.isValidElement(r)){let e,o;let a=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref,u=function(e,t){let r={...t};for(let n in t){let l=e[n],i=t[n];/^on[A-Z]/.test(n)?l&&i?r[n]=(...e)=>{let t=i(...e);return l(...e),t}:l&&(r[n]=l):"style"===n?r[n]={...l,...i}:"className"===n&&(r[n]=[l,i].filter(Boolean).join(" "))}return{...e,...r}}(l,r.props);return r.type!==n.Fragment&&(u.ref=t?(0,i.F)(t,a):a),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:l,...i}=e,a=n.Children.toArray(l),u=a.find(c);if(u){let e=u.props.children,l=a.map(t=>t!==u?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,o.jsx)(t,{...i,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,l):null})}return(0,o.jsx)(t,{...i,ref:r,children:l})});return r.displayName=`${e}.Slot`,r}var u=Symbol("radix.slottable");function c(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===u}function f(e){let t=e+"CollectionProvider",[r,u]=(0,l.b)(t),[c,f]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,l=n.useRef(null),i=n.useRef(new Map).current;return(0,o.jsx)(c,{scope:t,itemMap:i,collectionRef:l,children:r})};s.displayName=t;let d=e+"CollectionSlot",p=a(d),m=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,l=f(d,r),a=(0,i.e)(t,l.collectionRef);return(0,o.jsx)(p,{ref:a,children:n})});m.displayName=d;let y=e+"CollectionItemSlot",C="data-radix-collection-item",R=a(y),x=n.forwardRef((e,t)=>{let{scope:r,children:l,...a}=e,u=n.useRef(null),c=(0,i.e)(t,u),s=f(y,r);return n.useEffect(()=>(s.itemMap.set(u,{ref:u,...a}),()=>void s.itemMap.delete(u))),(0,o.jsx)(R,{[C]:"",ref:c,children:l})});return x.displayName=y,[{Provider:s,Slot:m,ItemSlot:x},function(t){let r=f(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(C,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},u]}},29114:function(e,t,r){r.d(t,{gm:function(){return i}});var n=r(2265);r(57437);var l=n.createContext(void 0);function i(e){let t=n.useContext(l);return e||t||"ltr"}}}]);