"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[398],{5398:(e,r,n)=>{n.d(r,{UC:()=>eg,Y9:()=>ev,q7:()=>ey,bL:()=>em,l9:()=>eh});var t,l=n(2115),i=n(6081),o=n(4971),a=n(5920),d=n(6266),s=n(6101),u=n(5155);function c(e){let r=function(e){let r=l.forwardRef((e,r)=>{let{children:n,...t}=e;if(l.isValidElement(n)){var i;let e,o,a=(i=n,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),d=function(e,r){let n={...r};for(let t in r){let l=e[t],i=r[t];/^on[A-Z]/.test(t)?l&&i?n[t]=(...e)=>{let r=i(...e);return l(...e),r}:l&&(n[t]=l):"style"===t?n[t]={...l,...i}:"className"===t&&(n[t]=[l,i].filter(Boolean).join(" "))}return{...e,...n}}(t,n.props);return n.type!==l.Fragment&&(d.ref=r?(0,s.t)(r,a):a),l.cloneElement(n,d)}return l.Children.count(n)>1?l.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}(e),n=l.forwardRef((e,n)=>{let{children:t,...i}=e,o=l.Children.toArray(t),a=o.find(p);if(a){let e=a.props.children,t=o.map(r=>r!==a?r:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,u.jsx)(r,{...i,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,t):null})}return(0,u.jsx)(r,{...i,ref:n,children:t})});return n.displayName=`${e}.Slot`,n}var f=Symbol("radix.slottable");function p(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===f}var m=new WeakMap;function y(e,r){if("at"in Array.prototype)return Array.prototype.at.call(e,r);let n=function(e,r){let n=e.length,t=v(r),l=t>=0?t:n+t;return l<0||l>=n?-1:l}(e,r);return -1===n?void 0:e[n]}function v(e){return e!=e||0===e?0:Math.trunc(e)}t=new WeakMap;var h=n(5185),g=n(5845);n(7650);var w=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let n=c(`Primitive.${r}`),t=l.forwardRef((e,t)=>{let{asChild:l,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(l?n:r,{...i,ref:t})});return t.displayName=`Primitive.${r}`,{...e,[r]:t}},{}),b=n(2712),x=Symbol("radix.slottable");function N(e){return l.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===x}var R=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,r)=>{let n=function(e){let r=function(e){let r=l.forwardRef((e,r)=>{let{children:n,...t}=e;if(l.isValidElement(n)){var i;let e,o,a=(i=n,(o=(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.ref:(o=(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?i.props.ref:i.props.ref||i.ref),d=function(e,r){let n={...r};for(let t in r){let l=e[t],i=r[t];/^on[A-Z]/.test(t)?l&&i?n[t]=(...e)=>{let r=i(...e);return l(...e),r}:l&&(n[t]=l):"style"===t?n[t]={...l,...i}:"className"===t&&(n[t]=[l,i].filter(Boolean).join(" "))}return{...e,...n}}(t,n.props);return n.type!==l.Fragment&&(d.ref=r?(0,s.t)(r,a):a),l.cloneElement(n,d)}return l.Children.count(n)>1?l.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}(e),n=l.forwardRef((e,n)=>{let{children:t,...i}=e,o=l.Children.toArray(t),a=o.find(N);if(a){let e=a.props.children,t=o.map(r=>r!==a?r:l.Children.count(e)>1?l.Children.only(null):l.isValidElement(e)?e.props.children:null);return(0,u.jsx)(r,{...i,ref:n,children:l.isValidElement(e)?l.cloneElement(e,void 0,t):null})}return(0,u.jsx)(r,{...i,ref:n,children:t})});return n.displayName=`${e}.Slot`,n}(`Primitive.${r}`),t=l.forwardRef((e,t)=>{let{asChild:l,...i}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(l?n:r,{...i,ref:t})});return t.displayName=`Primitive.${r}`,{...e,[r]:t}},{}),C=n(8905),j=n(1285),A="Collapsible",[O,I]=(0,i.A)(A),[E,_]=O(A),M=l.forwardRef((e,r)=>{let{__scopeCollapsible:n,open:t,defaultOpen:i,disabled:o,onOpenChange:a,...d}=e,[s,c]=(0,g.i)({prop:t,defaultProp:null!=i&&i,onChange:a,caller:A});return(0,u.jsx)(E,{scope:n,disabled:o,contentId:(0,j.B)(),open:s,onOpenToggle:l.useCallback(()=>c(e=>!e),[c]),children:(0,u.jsx)(R.div,{"data-state":U(s),"data-disabled":o?"":void 0,...d,ref:r})})});M.displayName=A;var k="CollapsibleTrigger",S=l.forwardRef((e,r)=>{let{__scopeCollapsible:n,...t}=e,l=_(k,n);return(0,u.jsx)(R.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":U(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...t,ref:r,onClick:(0,h.m)(e.onClick,l.onOpenToggle)})});S.displayName=k;var D="CollapsibleContent",P=l.forwardRef((e,r)=>{let{forceMount:n,...t}=e,l=_(D,e.__scopeCollapsible);return(0,u.jsx)(C.C,{present:n||l.open,children:e=>{let{present:n}=e;return(0,u.jsx)(T,{...t,ref:r,present:n})}})});P.displayName=D;var T=l.forwardRef((e,r)=>{let{__scopeCollapsible:n,present:t,children:i,...o}=e,a=_(D,n),[d,c]=l.useState(t),f=l.useRef(null),p=(0,s.s)(r,f),m=l.useRef(0),y=m.current,v=l.useRef(0),h=v.current,g=a.open||d,w=l.useRef(g),x=l.useRef(void 0);return l.useEffect(()=>{let e=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,b.N)(()=>{let e=f.current;if(e){x.current=x.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let r=e.getBoundingClientRect();m.current=r.height,v.current=r.width,w.current||(e.style.transitionDuration=x.current.transitionDuration,e.style.animationName=x.current.animationName),c(t)}},[a.open,t]),(0,u.jsx)(R.div,{"data-state":U(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!g,...o,ref:p,style:{"--radix-collapsible-content-height":y?"".concat(y,"px"):void 0,"--radix-collapsible-content-width":h?"".concat(h,"px"):void 0,...e.style},children:g&&i})});function U(e){return e?"open":"closed"}var W=n(4315),L="Accordion",V=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[F,$,B]=function(e){let r=e+"CollectionProvider",[n,t]=(0,i.A)(r),[o,a]=n(r,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:r,children:n}=e,t=l.useRef(null),i=l.useRef(new Map).current;return(0,u.jsx)(o,{scope:r,itemMap:i,collectionRef:t,children:n})};d.displayName=r;let f=e+"CollectionSlot",p=c(f),m=l.forwardRef((e,r)=>{let{scope:n,children:t}=e,l=a(f,n),i=(0,s.s)(r,l.collectionRef);return(0,u.jsx)(p,{ref:i,children:t})});m.displayName=f;let y=e+"CollectionItemSlot",v="data-radix-collection-item",h=c(y),g=l.forwardRef((e,r)=>{let{scope:n,children:t,...i}=e,o=l.useRef(null),d=(0,s.s)(r,o),c=a(y,n);return l.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,u.jsx)(h,{...{[v]:""},ref:d,children:t})});return g.displayName=y,[{Provider:d,Slot:m,ItemSlot:g},function(r){let n=a(e+"CollectionConsumer",r);return l.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let r=Array.from(e.querySelectorAll("[".concat(v,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>r.indexOf(e.ref.current)-r.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},t]}(L),[H,q]=(0,i.A)(L,[B,I]),z=I(),K=l.forwardRef((e,r)=>{let{type:n,...t}=e;return(0,u.jsx)(F.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,u.jsx)(X,{...t,ref:r}):(0,u.jsx)(Q,{...t,ref:r})})});K.displayName=L;var[Z,Y]=H(L),[G,J]=H(L,{collapsible:!1}),Q=l.forwardRef((e,r)=>{let{value:n,defaultValue:t,onValueChange:i=()=>{},collapsible:o=!1,...a}=e,[d,s]=(0,g.i)({prop:n,defaultProp:null!=t?t:"",onChange:i,caller:L});return(0,u.jsx)(Z,{scope:e.__scopeAccordion,value:l.useMemo(()=>d?[d]:[],[d]),onItemOpen:s,onItemClose:l.useCallback(()=>o&&s(""),[o,s]),children:(0,u.jsx)(G,{scope:e.__scopeAccordion,collapsible:o,children:(0,u.jsx)(en,{...a,ref:r})})})}),X=l.forwardRef((e,r)=>{let{value:n,defaultValue:t,onValueChange:i=()=>{},...o}=e,[a,d]=(0,g.i)({prop:n,defaultProp:null!=t?t:[],onChange:i,caller:L}),s=l.useCallback(e=>d(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...r,e]}),[d]),c=l.useCallback(e=>d(function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return r.filter(r=>r!==e)}),[d]);return(0,u.jsx)(Z,{scope:e.__scopeAccordion,value:a,onItemOpen:s,onItemClose:c,children:(0,u.jsx)(G,{scope:e.__scopeAccordion,collapsible:!0,children:(0,u.jsx)(en,{...o,ref:r})})})}),[ee,er]=H(L),en=l.forwardRef((e,r)=>{let{__scopeAccordion:n,disabled:t,dir:i,orientation:o="vertical",...a}=e,d=l.useRef(null),c=(0,s.s)(d,r),f=$(n),p="ltr"===(0,W.jH)(i),m=(0,h.m)(e.onKeyDown,e=>{var r;if(!V.includes(e.key))return;let n=e.target,t=f().filter(e=>{var r;return!(null==(r=e.ref.current)?void 0:r.disabled)}),l=t.findIndex(e=>e.ref.current===n),i=t.length;if(-1===l)return;e.preventDefault();let a=l,d=i-1,s=()=>{(a=l+1)>d&&(a=0)},u=()=>{(a=l-1)<0&&(a=d)};switch(e.key){case"Home":a=0;break;case"End":a=d;break;case"ArrowRight":"horizontal"===o&&(p?s():u());break;case"ArrowDown":"vertical"===o&&s();break;case"ArrowLeft":"horizontal"===o&&(p?u():s());break;case"ArrowUp":"vertical"===o&&u()}null==(r=t[a%i].ref.current)||r.focus()});return(0,u.jsx)(ee,{scope:n,disabled:t,direction:i,orientation:o,children:(0,u.jsx)(F.Slot,{scope:n,children:(0,u.jsx)(w.div,{...a,"data-orientation":o,ref:c,onKeyDown:t?void 0:m})})})}),et="AccordionItem",[el,ei]=H(et),eo=l.forwardRef((e,r)=>{let{__scopeAccordion:n,value:t,...l}=e,i=er(et,n),o=Y(et,n),a=z(n),d=(0,j.B)(),s=t&&o.value.includes(t)||!1,c=i.disabled||e.disabled;return(0,u.jsx)(el,{scope:n,open:s,disabled:c,triggerId:d,children:(0,u.jsx)(M,{"data-orientation":i.orientation,"data-state":ep(s),...a,...l,ref:r,disabled:c,open:s,onOpenChange:e=>{e?o.onItemOpen(t):o.onItemClose(t)}})})});eo.displayName=et;var ea="AccordionHeader",ed=l.forwardRef((e,r)=>{let{__scopeAccordion:n,...t}=e,l=er(L,n),i=ei(ea,n);return(0,u.jsx)(w.h3,{"data-orientation":l.orientation,"data-state":ep(i.open),"data-disabled":i.disabled?"":void 0,...t,ref:r})});ed.displayName=ea;var es="AccordionTrigger",eu=l.forwardRef((e,r)=>{let{__scopeAccordion:n,...t}=e,l=er(L,n),i=ei(es,n),o=J(es,n),a=z(n);return(0,u.jsx)(F.ItemSlot,{scope:n,children:(0,u.jsx)(S,{"aria-disabled":i.open&&!o.collapsible||void 0,"data-orientation":l.orientation,id:i.triggerId,...a,...t,ref:r})})});eu.displayName=es;var ec="AccordionContent",ef=l.forwardRef((e,r)=>{let{__scopeAccordion:n,...t}=e,l=er(L,n),i=ei(ec,n),o=z(n);return(0,u.jsx)(P,{role:"region","aria-labelledby":i.triggerId,"data-orientation":l.orientation,...o,...t,ref:r,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function ep(e){return e?"open":"closed"}ef.displayName=ec;var em=K,ey=eo,ev=ed,eh=eu,eg=ef},8905:(e,r,n)=>{n.d(r,{C:()=>o});var t=n(2115),l=n(6101),i=n(2712),o=e=>{let{present:r,children:n}=e,o=function(e){var r,n;let[l,o]=t.useState(),d=t.useRef(null),s=t.useRef(e),u=t.useRef("none"),[c,f]=(r=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},t.useReducer((e,r)=>{let t=n[e][r];return null!=t?t:e},r));return t.useEffect(()=>{let e=a(d.current);u.current="mounted"===c?e:"none"},[c]),(0,i.N)(()=>{let r=d.current,n=s.current;if(n!==e){let t=u.current,l=a(r);e?f("MOUNT"):"none"===l||(null==r?void 0:r.display)==="none"?f("UNMOUNT"):n&&t!==l?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,i.N)(()=>{if(l){var e;let r,n=null!=(e=l.ownerDocument.defaultView)?e:window,t=e=>{let t=a(d.current).includes(e.animationName);if(e.target===l&&t&&(f("ANIMATION_END"),!s.current)){let e=l.style.animationFillMode;l.style.animationFillMode="forwards",r=n.setTimeout(()=>{"forwards"===l.style.animationFillMode&&(l.style.animationFillMode=e)})}},i=e=>{e.target===l&&(u.current=a(d.current))};return l.addEventListener("animationstart",i),l.addEventListener("animationcancel",t),l.addEventListener("animationend",t),()=>{n.clearTimeout(r),l.removeEventListener("animationstart",i),l.removeEventListener("animationcancel",t),l.removeEventListener("animationend",t)}}f("ANIMATION_END")},[l,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:t.useCallback(e=>{d.current=e?getComputedStyle(e):null,o(e)},[])}}(r),d="function"==typeof n?n({present:o.isPresent}):t.Children.only(n),s=(0,l.s)(o.ref,function(e){var r,n;let t=null==(r=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:r.get,l=t&&"isReactWarning"in t&&t.isReactWarning;return l?e.ref:(l=(t=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in t&&t.isReactWarning)?e.props.ref:e.props.ref||e.ref}(d));return"function"==typeof n||o.isPresent?t.cloneElement(d,{ref:s}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}o.displayName="Presence"}}]);