"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[596],{875:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},859:function(e,t,n){n.d(t,{VY:function(){return ea},h4:function(){return eo},ck:function(){return er},fC:function(){return en},xz:function(){return ei}});var r=n(2265),o=n(3966),i=n(7437),a=n(8575),l=n(7495),u=n(6741),c=n(886),s=n(6840),d=n(1188),f=n(1599),p=n(9255),m="Collapsible",[v,b]=(0,o.b)(m),[N,h]=v(m),x=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:o,defaultOpen:a,disabled:l,onOpenChange:u,...d}=e,[f=!1,m]=(0,c.T)({prop:o,defaultProp:a,onChange:u});return(0,i.jsx)(N,{scope:n,disabled:l,contentId:(0,p.M)(),open:f,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),children:(0,i.jsx)(s.WV.div,{"data-state":A(f),"data-disabled":l?"":void 0,...d,ref:t})})});x.displayName=m;var g="CollapsibleTrigger",w=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=h(g,n);return(0,i.jsx)(s.WV.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":A(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:(0,u.M)(e.onClick,o.onOpenToggle)})});w.displayName=g;var y="CollapsibleContent",R=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=h(y,e.__scopeCollapsible);return(0,i.jsx)(f.z,{present:n||o.open,children:e=>{let{present:n}=e;return(0,i.jsx)(C,{...r,ref:t,present:n})}})});R.displayName=y;var C=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:o,children:l,...u}=e,c=h(y,n),[f,p]=r.useState(o),m=r.useRef(null),v=(0,a.e)(t,m),b=r.useRef(0),N=b.current,x=r.useRef(0),g=x.current,w=c.open||f,R=r.useRef(w),C=r.useRef();return r.useEffect(()=>{let e=requestAnimationFrame(()=>R.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.b)(()=>{let e=m.current;if(e){C.current=C.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();b.current=t.height,x.current=t.width,R.current||(e.style.transitionDuration=C.current.transitionDuration,e.style.animationName=C.current.animationName),p(o)}},[c.open,o]),(0,i.jsx)(s.WV.div,{"data-state":A(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!w,...u,ref:v,style:{"--radix-collapsible-content-height":N?"".concat(N,"px"):void 0,"--radix-collapsible-content-width":g?"".concat(g,"px"):void 0,...e.style},children:w&&l})});function A(e){return e?"open":"closed"}var j=r.createContext(void 0),M="Accordion",I=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[_,O,T]=function(e){let t=e+"CollectionProvider",[n,o]=function(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let a=r.createContext(o),l=n.length;function u(t){let{scope:n,children:o,...u}=t,c=n?.[e][l]||a,s=r.useMemo(()=>u,Object.values(u));return(0,i.jsx)(c.Provider,{value:s,children:o})}return n=[...n,o],u.displayName=t+"Provider",[u,function(n,i){let u=i?.[e][l]||a,c=r.useContext(u);if(c)return c;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}(t),[u,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:n}=e,o=r.useRef(null),a=r.useRef(new Map).current;return(0,i.jsx)(u,{scope:t,itemMap:a,collectionRef:o,children:n})};s.displayName=t;let d=e+"CollectionSlot",f=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=c(d,n),u=(0,a.e)(t,o.collectionRef);return(0,i.jsx)(l.g7,{ref:u,children:r})});f.displayName=d;let p=e+"CollectionItemSlot",m="data-radix-collection-item",v=r.forwardRef((e,t)=>{let{scope:n,children:o,...u}=e,s=r.useRef(null),d=(0,a.e)(t,s),f=c(p,n);return r.useEffect(()=>(f.itemMap.set(s,{ref:s,...u}),()=>void f.itemMap.delete(s))),(0,i.jsx)(l.g7,{[m]:"",ref:d,children:o})});return v.displayName=p,[{Provider:s,Slot:f,ItemSlot:v},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},o]}(M),[k,E]=(0,o.b)(M,[T,b]),D=b(),S=r.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,i.jsx)(_.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,i.jsx)(F,{...r,ref:t}):(0,i.jsx)(V,{...r,ref:t})})});S.displayName=M;var[P,U]=k(M),[W,L]=k(M,{collapsible:!1}),V=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:a=()=>{},collapsible:l=!1,...u}=e,[s,d]=(0,c.T)({prop:n,defaultProp:o,onChange:a});return(0,i.jsx)(P,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:d,onItemClose:r.useCallback(()=>l&&d(""),[l,d]),children:(0,i.jsx)(W,{scope:e.__scopeAccordion,collapsible:l,children:(0,i.jsx)(q,{...u,ref:t})})})}),F=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:a=()=>{},...l}=e,[u=[],s]=(0,c.T)({prop:n,defaultProp:o,onChange:a}),d=r.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[s]),f=r.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[s]);return(0,i.jsx)(P,{scope:e.__scopeAccordion,value:u,onItemOpen:d,onItemClose:f,children:(0,i.jsx)(W,{scope:e.__scopeAccordion,collapsible:!0,children:(0,i.jsx)(q,{...l,ref:t})})})}),[$,z]=k(M),q=r.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:o,dir:l,orientation:c="vertical",...d}=e,f=r.useRef(null),p=(0,a.e)(f,t),m=O(n),v="ltr"===function(e){let t=r.useContext(j);return e||t||"ltr"}(l),b=(0,u.M)(e.onKeyDown,e=>{var t;if(!I.includes(e.key))return;let n=e.target,r=m().filter(e=>{var t;return!(null===(t=e.ref.current)||void 0===t?void 0:t.disabled)}),o=r.findIndex(e=>e.ref.current===n),i=r.length;if(-1===o)return;e.preventDefault();let a=o,l=i-1,u=()=>{(a=o+1)>l&&(a=0)},s=()=>{(a=o-1)<0&&(a=l)};switch(e.key){case"Home":a=0;break;case"End":a=l;break;case"ArrowRight":"horizontal"===c&&(v?u():s());break;case"ArrowDown":"vertical"===c&&u();break;case"ArrowLeft":"horizontal"===c&&(v?s():u());break;case"ArrowUp":"vertical"===c&&s()}null===(t=r[a%i].ref.current)||void 0===t||t.focus()});return(0,i.jsx)($,{scope:n,disabled:o,direction:l,orientation:c,children:(0,i.jsx)(_.Slot,{scope:n,children:(0,i.jsx)(s.WV.div,{...d,"data-orientation":c,ref:p,onKeyDown:o?void 0:b})})})}),H="AccordionItem",[K,Z]=k(H),B=r.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...o}=e,a=z(H,n),l=U(H,n),u=D(n),c=(0,p.M)(),s=r&&l.value.includes(r)||!1,d=a.disabled||e.disabled;return(0,i.jsx)(K,{scope:n,open:s,disabled:d,triggerId:c,children:(0,i.jsx)(x,{"data-orientation":a.orientation,"data-state":et(s),...u,...o,ref:t,disabled:d,open:s,onOpenChange:e=>{e?l.onItemOpen(r):l.onItemClose(r)}})})});B.displayName=H;var Y="AccordionHeader",G=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=z(M,n),a=Z(Y,n);return(0,i.jsx)(s.WV.h3,{"data-orientation":o.orientation,"data-state":et(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})});G.displayName=Y;var J="AccordionTrigger",Q=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=z(M,n),a=Z(J,n),l=L(J,n),u=D(n);return(0,i.jsx)(_.ItemSlot,{scope:n,children:(0,i.jsx)(w,{"aria-disabled":a.open&&!l.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...u,...r,ref:t})})});Q.displayName=J;var X="AccordionContent",ee=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=z(M,n),a=Z(X,n),l=D(n);return(0,i.jsx)(R,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...l,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function et(e){return e?"open":"closed"}ee.displayName=X;var en=S,er=B,eo=G,ei=Q,ea=ee},9255:function(e,t,n){n.d(t,{M:function(){return u}});var r,o=n(2265),i=n(1188),a=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),l=0;function u(e){let[t,n]=o.useState(a());return(0,i.b)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},1599:function(e,t,n){n.d(t,{z:function(){return a}});var r=n(2265),o=n(8575),i=n(1188),a=e=>{var t,n;let a,u;let{present:c,children:s}=e,d=function(e){var t,n;let[o,a]=r.useState(),u=r.useRef({}),c=r.useRef(e),s=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(u.current);s.current="mounted"===d?e:"none"},[d]),(0,i.b)(()=>{let t=u.current,n=c.current;if(n!==e){let r=s.current,o=l(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),c.current=e}},[e,f]),(0,i.b)(()=>{if(o){var e;let t;let n=null!==(e=o.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{let r=l(u.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!c.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},i=e=>{e.target===o&&(s.current=l(u.current))};return o.addEventListener("animationstart",i),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",i),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),a(e)},[])}}(c),f="function"==typeof s?s({present:d.isPresent}):r.Children.only(s),p=(0,o.e)(d.ref,(a=null===(t=Object.getOwnPropertyDescriptor(f.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in a&&a.isReactWarning?f.ref:(a=null===(n=Object.getOwnPropertyDescriptor(f,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in a&&a.isReactWarning?f.props.ref:f.props.ref||f.ref);return"function"==typeof s||d.isPresent?r.cloneElement(f,{ref:p}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}a.displayName="Presence"}}]);