1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5330],{25330:(e,t,n)=>{n.d(t,{VY:()=>er,aV:()=>et,fC:()=>ee,xz:()=>en});var r,o=n(2265),u=n.t(o,2);function i(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var l=n(57437);function a(e,t=[]){let n=[],r=()=>{let t=n.map(e=>o.createContext(e));return function(n){let r=n?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let u=o.createContext(r),i=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,c=n?.[e]?.[i]||u,s=o.useMemo(()=>a,Object.values(a));return(0,l.jsx)(c.Provider,{value:s,children:r})};return a.displayName=t+"Provider",[a,function(n,l){let a=l?.[e]?.[i]||u,c=o.useContext(a);if(c)return c;if(void 0!==r)return r;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 r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function s(...e){return o.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=c(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():c(e[t],null)}}}}(...e),e)}n(78497),n(63092),n(12423);var f=n(23951),d=globalThis?.document?o.useLayoutEffect:()=>{},m=u[" useId ".trim().toString()]||(()=>void 0),p=0;function v(e){let[t,n]=o.useState(m());return d(()=>{e||n(e=>e??String(p++))},[e]),e||(t?`radix-${t}`:"")}n(54887);var w=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,f.Z8)(`Primitive.${t}`),r=o.forwardRef((e,r)=>{let{asChild:o,...u}=e,i=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(i,{...u,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),b=u[" useInsertionEffect ".trim().toString()]||d;function y({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[u,i,l]=function({defaultProp:e,onChange:t}){let[n,r]=o.useState(e),u=o.useRef(n),i=o.useRef(t);return b(()=>{i.current=t},[t]),o.useEffect(()=>{u.current!==n&&(i.current?.(n),u.current=n)},[n,u]),[n,r,i]}({defaultProp:t,onChange:n}),a=void 0!==e,c=a?e:u;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==a){let t=a?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=a},[a,r])}return[c,o.useCallback(t=>{if(a){let n="function"==typeof t?t(e):t;n!==e&&l.current?.(n)}else i(t)},[a,e,i,l])]}Symbol("RADIX:SYNC_STATE");var g=o.createContext(void 0);function h(e){let t=o.useContext(g);return e||t||"ltr"}var N="rovingFocusGroup.onEntryFocus",R={bubbles:!1,cancelable:!0},x="RovingFocusGroup",[C,I,T]=function(e){let t=e+"CollectionProvider",[n,r]=a(t),[u,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:n}=e,r=o.useRef(null),i=o.useRef(new Map).current;return(0,l.jsx)(u,{scope:t,itemMap:i,collectionRef:r,children:n})};c.displayName=t;let d=e+"CollectionSlot",m=(0,f.Z8)(d),p=o.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(t,i(d,n).collectionRef);return(0,l.jsx)(m,{ref:o,children:r})});p.displayName=d;let v=e+"CollectionItemSlot",w="data-radix-collection-item",b=(0,f.Z8)(v),y=o.forwardRef((e,t)=>{let{scope:n,children:r,...u}=e,a=o.useRef(null),c=s(t,a),f=i(v,n);return o.useEffect(()=>(f.itemMap.set(a,{ref:a,...u}),()=>void f.itemMap.delete(a))),(0,l.jsx)(b,{[w]:"",ref:c,children:r})});return y.displayName=v,[{Provider:c,Slot:p,ItemSlot:y},function(t){let n=i(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(w,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(x),[E,M]=a(x,[T]),[A,S]=E(x),D=o.forwardRef((e,t)=>
1(0,l.jsx)(C.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,l.jsx)(C.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,l.jsx)(j,{...e,ref:t})})}));D.displayName=x;var j=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:u=!1,dir:a,currentTabStopId:c,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:d,onEntryFocus:m,preventScrollOnEntryFocus:p=!1,...v}=e,b=o.useRef(null),g=s(t,b),C=h(a),[T,E]=y({prop:c,defaultProp:null!=f?f:null,onChange:d,caller:x}),[M,S]=o.useState(!1),D=function(e){let t=o.useRef(e);return o.useEffect(()=>{t.current=e}),o.useMemo(()=>(...e)=>t.current?.(...e),[])}(m),j=I(n),F=o.useRef(!1),[O,_]=o.useState(0);return o.useEffect(()=>{let e=b.current;if(e)return e.addEventListener(N,D),()=>e.removeEventListener(N,D)},[D]),(0,l.jsx)(A,{scope:n,orientation:r,dir:C,loop:u,currentTabStopId:T,onItemFocus:o.useCallback(e=>E(e),[E]),onItemShiftTab:o.useCallback(()=>S(!0),[]),onFocusableItemAdd:o.useCallback(()=>_(e=>e+1),[]),onFocusableItemRemove:o.useCallback(()=>_(e=>e-1),[]),children:(0,l.jsx)(w.div,{tabIndex:M||0===O?-1:0,"data-orientation":r,...v,ref:g,style:{outline:"none",...e.style},onMouseDown:i(e.onMouseDown,()=>{F.current=!0}),onFocus:i(e.onFocus,e=>{let t=!F.current;if(e.target===e.currentTarget&&t&&!M){let t=new CustomEvent(N,R);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=j().filter(e=>e.focusable);P([e.find(e=>e.active),e.find(e=>e.id===T),...e].filter(Boolean).map(e=>e.ref.current),p)}}F.current=!1}),onBlur:i(e.onBlur,()=>S(!1))})})}),F="RovingFocusGroupItem",O=o.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:u=!1,tabStopId:a,children:c,...s}=e,f=v(),d=a||f,m=S(F,n),p=m.currentTabStopId===d,b=I(n),{onFocusableItemAdd:y,onFocusableItemRemove:g,currentTabStopId:h}=m;return o.useEffect(()=>{if(r)return y(),()=>g()},[r,y,g]),(0,l.jsx)(C.ItemSlot,{scope:n,id:d,focusable:r,active:u,children:(0,l.jsx)(w.span,{tabIndex:p?0:-1,"data-orientation":m.orientation,...s,ref:t,onMouseDown:i(e.onMouseDown,e=>{r?m.onItemFocus(d):e.preventDefault()}),onFocus:i(e.onFocus,()=>m.onItemFocus(d)),onKeyDown:i(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){m.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return _[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=b().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=m.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>P(n))}}),children:"function"==typeof c?c({isCurrentTabStop:p,hasTabStop:null!=h}):c})})});O.displayName=F;var _={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function P(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var k=e=>{let{present:t,children:n}=e,r=function(e){var t,n;let[r,u]=o.useState(),i=o.useRef(null),l=o.useRef(e),a=o.useRef("none"),[c,s]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},o.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return o.useEffect(()=>{let e=L(i.current);a.current="mounted"===c?e:"none"},[c]),d(()=>{let t=i.current,n=l.current;if(n!==e){let r=a.current,o=L(t);e?s("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?s("UNMOUNT"):n&&r!==o?s("ANIMATION_OUT"):s("UNMOUNT"),l.current=e}},[e,s]),d(()=>{if(r){var e;let t;let n=null!==(e=r.ownerDocument.defaultView)&&void 0!==e?e:window,o=e=>{let o=L(i.current).includes(e.animationName);if(e.target===r&&o&&(s("ANIMATION_END"),!l.current)){let e=r.style.animationFillMode;r.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=e)})}},u=e=>{e.target===r&&(a.current=L(i.current))};return r.addEventListener("animationstart",u),r.addEventListener("animationcancel",o),r.addEventListener("animationend",o),()=>{n.clearTimeout(t),r.removeEventListener("animationstart",u),r.removeEventListener("animationcancel",o),r.removeEventListener("animationend",o)}}s("ANIMATION_END")},[r,s]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:o.useCallback(e=>{i.current=e?getComputedStyle(e):null,u(e)},[])}}(t),u="function"==typeof n?n({present:r.isPresent}):o.Children.only(n),i=s(r.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(u));return"function"==typeof n||r.isPresent?o.cloneElement(u,{ref:i}):null};function L(e){return(null==e?void 0:e.animationName)||"none"}k.displayName="Presence";var U="Tabs",[$,K]=a(U,[M]),V=M(),[G,W]=$(U),z=o.forwardRef((e,t)=>
1{let{__scopeTabs:n,value:r,onValueChange:o,defaultValue:u,orientation:i="horizontal",dir:a,activationMode:c="automatic",...s}=e,f=h(a),[d,m]=y({prop:r,onChange:o,defaultProp:null!=u?u:"",caller:U});return(0,l.jsx)(G,{scope:n,baseId:v(),value:d,onValueChange:m,orientation:i,dir:f,activationMode:c,children:(0,l.jsx)(w.div,{dir:f,"data-orientation":i,...s,ref:t})})});z.displayName=U;var B="TabsList",Z=o.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...o}=e,u=W(B,n),i=V(n);return(0,l.jsx)(D,{asChild:!0,...i,orientation:u.orientation,dir:u.dir,loop:r,children:(0,l.jsx)(w.div,{role:"tablist","aria-orientation":u.orientation,...o,ref:t})})});Z.displayName=B;var q="TabsTrigger",Y=o.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:o=!1,...u}=e,a=W(q,n),c=V(n),s=J(a.baseId,r),f=Q(a.baseId,r),d=r===a.value;return(0,l.jsx)(O,{asChild:!0,...c,focusable:!o,active:d,children:(0,l.jsx)(w.button,{type:"button",role:"tab","aria-selected":d,"aria-controls":f,"data-state":d?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:s,...u,ref:t,onMouseDown:i(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():a.onValueChange(r)}),onKeyDown:i(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&a.onValueChange(r)}),onFocus:i(e.onFocus,()=>{let e="manual"!==a.activationMode;d||o||!e||a.onValueChange(r)})})})});Y.displayName=q;var H="TabsContent",X=o.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:u,children:i,...a}=e,c=W(H,n),s=J(c.baseId,r),f=Q(c.baseId,r),d=r===c.value,m=o.useRef(d);return o.useEffect(()=>{let e=requestAnimationFrame(()=>m.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,l.jsx)(k,{present:u||d,children:n=>{let{present:r}=n;return(0,l.jsx)(w.div,{"data-state":d?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":s,hidden:!r,id:f,tabIndex:0,...a,ref:t,style:{...e.style,animationDuration:m.current?"0s":void 0},children:r&&i})}})});function J(e,t){return"".concat(e,"-trigger-").concat(t)}function Q(e,t){return"".concat(e,"-content-").concat(t)}X.displayName=H;var ee=z,et=Z,en=Y,er=X}}]);
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.