"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7184],{7184:function(e,n,t){function r(){return r=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},r.apply(this,arguments)}t.d(n,{VY:function(){return be},ck:function(){return he},fC:function(){return ve},xz:function(){return Ee}});var o=t(7294),l=t.t(o,2);function c(e,n=[]){let t=[];const r=()=>{const n=t.map((e=>(0,o.createContext)(e)));return function(t){const r=(null===t||void 0===t?void 0:t[e])||n;return(0,o.useMemo)((()=>({[`__scope${e}`]:{...t,[e]:r}})),[t,r])}};return r.scopeName=e,[function(n,r){const l=(0,o.createContext)(r),c=t.length;function i(n){const{scope:t,children:r,...i}=n,a=(null===t||void 0===t?void 0:t[e][c])||l,u=(0,o.useMemo)((()=>i),Object.values(i));return(0,o.createElement)(a.Provider,{value:u},r)}return t=[...t,r],i.displayName=n+"Provider",[i,function(t,i){const a=(null===i||void 0===i?void 0:i[e][c])||l,u=(0,o.useContext)(a);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},i(r,...n)]}function i(...e){const n=e[0];if(1===e.length)return n;const t=()=>{const t=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=t.reduce(((n,{useScope:t,scopeName:r})=>({...n,...t(e)[`__scope${r}`]})),{});return(0,o.useMemo)((()=>({[`__scope${n.scopeName}`]:r})),[r])}};return t.scopeName=n.scopeName,t}function a(...e){return n=>e.forEach((e=>function(e,n){"function"===typeof e?e(n):null!==e&&void 0!==e&&(e.current=n)}(e,n)))}function u(...e){return(0,o.useCallback)(a(...e),e)}const s=(0,o.forwardRef)(((e,n)=>{const{children:t,...l}=e,c=o.Children.toArray(t),i=c.find(p);if(i){const e=i.props.children,t=c.map((n=>n===i?o.Children.count(e)>1?o.Children.only(null):(0,o.isValidElement)(e)?e.props.children:null:n));return(0,o.createElement)(d,r({},l,{ref:n}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,t):null)}return(0,o.createElement)(d,r({},l,{ref:n}),t)}));s.displayName="Slot";const d=(0,o.forwardRef)(((e,n)=>{const{children:t,...r}=e;return(0,o.isValidElement)(t)?(0,o.cloneElement)(t,{...m(r,t.props),ref:n?a(n,t.ref):t.ref}):o.Children.count(t)>1?o.Children.only(null):null}));d.displayName="SlotClone";const f=({children:e})=>(0,o.createElement)(o.Fragment,null,e);function p(e){return(0,o.isValidElement)(e)&&e.type===f}function m(e,n){const t={...n};for(const r in n){const o=e[r],l=n[r];/^on[A-Z]/.test(r)?o&&l?t[r]=(...e)=>{l(...e),o(...e)}:o&&(t[r]=o):"style"===r?t[r]={...o,...l}:"className"===r&&(t[r]=[o,l].filter(Boolean).join(" "))}return{...e,...t}}function v(e,n,{checkForDefaultPrevented:t=!0}={}){return function(r){if(null===e||void 0===e||e(r),!1===t||!r.defaultPrevented)return null===n||void 0===n?void 0:n(r)}}function h(e){const n=(0,o.useRef)(e);return(0,o.useEffect)((()=>{n.current=e})),(0,o.useMemo)((()=>(...e)=>{var t;return null===(t=n.current)||void 0===t?void 0:t.call(n,...e)}),[])}function E({prop:e,defaultProp:n,onChange:t=(()=>{})}){const[r,l]=function({defaultProp:e,onChange:n}){const t=(0,o.useState)(e),[r]=t,l=(0,o.useRef)(r),c=h(n);return(0,o.useEffect)((()=>{l.current!==r&&(c(r),l.current=r)}),[r,l,c]),t}({defaultProp:n,onChange:t}),c=void 0!==e,i=c?e:r,a=h(t);return[i,(0,o.useCallback)((n=>{if(c){const t=n,r="function"===typeof n?t(e):n;r!==e&&a(r)}else l(n)}),[c,e,l,a])]}var b=t(3935);const g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,n)=>{const t=(0,o.forwardRef)(((e,t)=>{const{asChild:l,...c}=e,i=l?s:n;return(0,o.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,o.createElement)(i,r({},c,{ref:t}))}));return t.displayName=`Primitive.${n}`,{...e,[n]:t}}),{});const y=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?o.useLayoutEffect:()=>{};const C=e=>{const{present:n,children:t}=e,r=function(e){const[n,t]=(0,o.useState)(),r=(0,o.useRef)({}),l=(0,o.useRef)(e),c=(0,o.useRef)("none"),i=e?"mounted":"unmounted",[a,u]=function(e,n){return(0,o.useReducer)(((e,t)=>{const r=n[e][t];return null!==r&&void 0!==r?r:e}),e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,o.useEffect)((()=>{const e=w(r.current);c.current="mounted"===a?e:"none"}),[a]),y((()=>{const n=r.current,t=l.current;if(t!==e){const r=c.current,o=w(n);if(e)u("MOUNT");else if("none"===o||"none"===(null===n||void 0===n?void 0:n.display))u("UNMOUNT");else{const e=r!==o;u(t&&e?"ANIMATION_OUT":"UNMOUNT")}l.current=e}}),[e,u]),y((()=>{if(n){const e=e=>{const t=w(r.current).includes(e.animationName);e.target===n&&t&&(0,b.flushSync)((()=>u("ANIMATION_END")))},t=e=>{e.target===n&&(c.current=w(r.current))};return n.addEventListener("animationstart",t),n.addEventListener("animationcancel",e),n.addEventListener("animationend",e),()=>{n.removeEventListener("animationstart",t),n.removeEventListener("animationcancel",e),n.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[n,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:(0,o.useCallback)((e=>{e&&(r.current=getComputedStyle(e)),t(e)}),[])}}(n),l="function"===typeof t?t({present:r.isPresent}):o.Children.only(t),c=u(r.ref,l.ref);return"function"===typeof t||r.isPresent?(0,o.cloneElement)(l,{ref:c}):null};function w(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}C.displayName="Presence";const N=l["useId".toString()]||(()=>{});let A=0;function _(e){const[n,t]=o.useState(N());return y((()=>{e||t((e=>null!==e&&void 0!==e?e:String(A++)))}),[e]),e||(n?`radix-${n}`:"")}const R="Collapsible",[I,O]=c(R),[x,M]=I(R),k=(0,o.forwardRef)(((e,n)=>{const{__scopeCollapsible:t,open:l,defaultOpen:c,disabled:i,onOpenChange:a,...u}=e,[s=!1,d]=E({prop:l,defaultProp:c,onChange:a});return(0,o.createElement)(x,{scope:t,disabled:i,contentId:_(),open:s,onOpenToggle:(0,o.useCallback)((()=>d((e=>!e))),[d])},(0,o.createElement)(g.div,r({"data-state":V(s),"data-disabled":i?"":void 0},u,{ref:n})))})),S="CollapsibleTrigger",T=(0,o.forwardRef)(((e,n)=>{const{__scopeCollapsible:t,...l}=e,c=M(S,t);return(0,o.createElement)(g.button,r({type:"button","aria-controls":c.contentId,"aria-expanded":c.open||!1,"data-state":V(c.open),"data-disabled":c.disabled?"":void 0,disabled:c.disabled},l,{ref:n,onClick:v(e.onClick,c.onOpenToggle)}))})),P="CollapsibleContent",D=(0,o.forwardRef)(((e,n)=>{const{forceMount:t,...l}=e,c=M(P,e.__scopeCollapsible);return(0,o.createElement)(C,{present:t||c.open},(({present:e})=>(0,o.createElement)(U,r({},l,{ref:n,present:e}))))})),U=(0,o.forwardRef)(((e,n)=>{const{__scopeCollapsible:t,present:l,children:c,...i}=e,a=M(P,t),[s,d]=(0,o.useState)(l),f=(0,o.useRef)(null),p=u(n,f),m=(0,o.useRef)(0),v=m.current,h=(0,o.useRef)(0),E=h.current,b=a.open||s,C=(0,o.useRef)(b),w=(0,o.useRef)();return(0,o.useEffect)((()=>{const e=requestAnimationFrame((()=>C.current=!1));return()=>cancelAnimationFrame(e)}),[]),y((()=>{const e=f.current;if(e){w.current=w.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";const n=e.getBoundingClientRect();m.current=n.height,h.current=n.width,C.current||(e.style.transitionDuration=w.current.transitionDuration,e.style.animationName=w.current.animationName),d(l)}}),[a.open,l]),(0,o.createElement)(g.div,r({"data-state":V(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!b},i,{ref:p,style:{"--radix-collapsible-content-height":v?`${v}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style}}),b&&c)}));function V(e){return e?"open":"closed"}const $=k,L=T,j=D,F=(0,o.createContext)(void 0);const z="Accordion",B=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[q,H,K]=function(e){const n=e+"CollectionProvider",[t,r]=c(n),[l,i]=t(n,{collectionRef:{current:null},itemMap:new Map}),a=e=>{const{scope:n,children:t}=e,r=o.useRef(null),c=o.useRef(new Map).current;return o.createElement(l,{scope:n,itemMap:c,collectionRef:r},t)},d=e+"CollectionSlot",f=o.forwardRef(((e,n)=>{const{scope:t,children:r}=e,l=u(n,i(d,t).collectionRef);return o.createElement(s,{ref:l},r)})),p=e+"CollectionItemSlot",m="data-radix-collection-item",v=o.forwardRef(((e,n)=>{const{scope:t,children:r,...l}=e,c=o.useRef(null),a=u(n,c),d=i(p,t);return o.useEffect((()=>(d.itemMap.set(c,{ref:c,...l}),()=>{d.itemMap.delete(c)}))),o.createElement(s,{[m]:"",ref:a},r)}));return[{Provider:a,Slot:f,ItemSlot:v},function(n){const t=i(e+"CollectionConsumer",n);return o.useCallback((()=>{const e=t.collectionRef.current;if(!e)return[];const n=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(t.itemMap.values()).sort(((e,t)=>n.indexOf(e.ref.current)-n.indexOf(t.ref.current)))}),[t.collectionRef,t.itemMap])},r]}(z),[Y,Z]=c(z,[K,O]),G=O(),J=o.forwardRef(((e,n)=>{const{type:t,...l}=e,c=l,i=l;return o.createElement(q.Provider,{scope:e.__scopeAccordion},"multiple"===t?o.createElement(te,r({},i,{ref:n})):o.createElement(ne,r({},c,{ref:n})))}));J.propTypes={type(e){const n=e.value||e.defaultValue;return e.type&&!["single","multiple"].includes(e.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===e.type&&"string"===typeof n?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===e.type&&Array.isArray(n)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};const[Q,W]=Y(z),[X,ee]=Y(z,{collapsible:!1}),ne=o.forwardRef(((e,n)=>{const{value:t,defaultValue:l,onValueChange:c=(()=>{}),collapsible:i=!1,...a}=e,[u,s]=E({prop:t,defaultProp:l,onChange:c});return o.createElement(Q,{scope:e.__scopeAccordion,value:u?[u]:[],onItemOpen:s,onItemClose:o.useCallback((()=>i&&s("")),[i,s])},o.createElement(X,{scope:e.__scopeAccordion,collapsible:i},o.createElement(le,r({},a,{ref:n}))))})),te=o.forwardRef(((e,n)=>{const{value:t,defaultValue:l,onValueChange:c=(()=>{}),...i}=e,[a=[],u]=E({prop:t,defaultProp:l,onChange:c}),s=o.useCallback((e=>u(((n=[])=>[...n,e]))),[u]),d=o.useCallback((e=>u(((n=[])=>n.filter((n=>n!==e))))),[u]);return o.createElement(Q,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:d},o.createElement(X,{scope:e.__scopeAccordion,collapsible:!0},o.createElement(le,r({},i,{ref:n}))))})),[re,oe]=Y(z),le=o.forwardRef(((e,n)=>{const{__scopeAccordion:t,disabled:l,dir:c,orientation:i="vertical",...a}=e,s=u(o.useRef(null),n),d=H(t),f="ltr"===function(e){const n=(0,o.useContext)(F);return e||n||"ltr"}(c),p=v(e.onKeyDown,(e=>{var n;if(!B.includes(e.key))return;const t=e.target,r=d().filter((e=>{var n;return!(null!==(n=e.ref.current)&&void 0!==n&&n.disabled)})),o=r.findIndex((e=>e.ref.current===t)),l=r.length;if(-1===o)return;e.preventDefault();let c=o;const a=l-1,u=()=>{c=o+1,c>a&&(c=0)},s=()=>{c=o-1,c<0&&(c=a)};switch(e.key){case"Home":c=0;break;case"End":c=a;break;case"ArrowRight":"horizontal"===i&&(f?u():s());break;case"ArrowDown":"vertical"===i&&u();break;case"ArrowLeft":"horizontal"===i&&(f?s():u());break;case"ArrowUp":"vertical"===i&&s()}null===(n=r[c%l].ref.current)||void 0===n||n.focus()}));return o.createElement(re,{scope:t,disabled:l,direction:c,orientation:i},o.createElement(q.Slot,{scope:t},o.createElement(g.div,r({},a,{"data-orientation":i,ref:s,onKeyDown:l?void 0:p}))))})),ce="AccordionItem",[ie,ae]=Y(ce),ue=o.forwardRef(((e,n)=>{const{__scopeAccordion:t,value:l,...c}=e,i=oe(ce,t),a=W(ce,t),u=G(t),s=_(),d=l&&a.value.includes(l)||!1,f=i.disabled||e.disabled;return o.createElement(ie,{scope:t,open:d,disabled:f,triggerId:s},o.createElement($,r({"data-orientation":i.orientation,"data-state":me(d)},u,c,{ref:n,disabled:f,open:d,onOpenChange:e=>{e?a.onItemOpen(l):a.onItemClose(l)}})))})),se="AccordionTrigger",de=o.forwardRef(((e,n)=>{const{__scopeAccordion:t,...l}=e,c=oe(z,t),i=ae(se,t),a=ee(se,t),u=G(t);return o.createElement(q.ItemSlot,{scope:t},o.createElement(L,r({"aria-disabled":i.open&&!a.collapsible||void 0,"data-orientation":c.orientation,id:i.triggerId},u,l,{ref:n})))})),fe="AccordionContent",pe=o.forwardRef(((e,n)=>{const{__scopeAccordion:t,...l}=e,c=oe(z,t),i=ae(fe,t),a=G(t);return o.createElement(j,r({role:"region","aria-labelledby":i.triggerId,"data-orientation":c.orientation},a,l,{ref:n,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}}))}));function me(e){return e?"open":"closed"}const ve=J,he=ue,Ee=de,be=pe}}]);