1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5102],{82023:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])},32489:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(79205).Z)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},98575:function(e,t,n){n.d(t,{e:function(){return i}});var r=n(2265);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function i(...e){return r.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(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():o(e[t],null)}}}}(...e),e)}},41009:function(e,t,n){let r;n.d(t,{x8:function(){return tf},VY:function(){return tc},dk:function(){return td},aV:function(){return tl},h_:function(){return tu},fC:function(){return ti},Dx:function(){return ts},xz:function(){return ta}});var o,i,a,u,l,c,s,d,f=n(2265),p=n.t(f,2);function v(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var m=n(98575),h=n(57437),g=globalThis?.document?f.useLayoutEffect:()=>{},y=p[" useId ".trim().toString()]||(()=>void 0),E=0;function b(e){let[t,n]=f.useState(y());return g(()=>{e||n(e=>e??String(E++))},[e]),e||(t?`radix-${t}`:"")}var w=p[" useInsertionEffect ".trim().toString()]||g;Symbol("RADIX:SYNC_STATE");var C=n(54887),N=n(37053),x=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,N.Z8)(`Primitive.${t}`),r=f.forwardRef((e,r)=>{let{asChild:o,...i}=e,a=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,h.jsx)(a,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function R(e){let t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...e)=>t.current?.(...e),[])}var S="dismissableLayer.update",O=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),D=f.forwardRef((e,t)=>{var n;let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:u,onDismiss:l,...c}=e,d=f.useContext(O),[p,g]=f.useState(null),y=(null==p?void 0:p.ownerDocument)??(null===(n=globalThis)||void 0===n?void 0:n.document),[,E]=f.useState({}),b=(0,m.e)(t,e=>g(e)),w=Array.from(d.layers),[C]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),N=w.indexOf(C),D=p?w.indexOf(p):-1,A=d.layersWithOutsidePointerEventsDisabled.size>0,P=D>=N,k=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=R(e),o=f.useRef(!1),i=f.useRef(()=>{});return f.useEffect(()=>{let e=e=>{if(e.target&&!o.current){let t=function(){T("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);o.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>o.current=!0}}(e=>{let t=e.target,n=[...d.branches].some(e=>e.contains(t));!P||n||(null==i||i(e),null==u||u(e),e.defaultPrevented||null==l||l())},y),L=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=R(e),o=f.useRef(!1);return f.useEffect(()=>{let e=e=>{e.target&&!o.current&&T("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}(e=>{let t=e.target;[...d.branches].some(e=>e.contains(t))||(null==a||a(e),null==u||u(e),e.defaultPrevented||null==l||l())},y);return!function(e,t=globalThis?.document){let n=R(e);f.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{D!==d.layers.size-1||(null==o||o(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},y),f.useEffect(()=>{if(p)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(s=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(p)),d.layers.add(p),M(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=s)}},[p,y,r,d]),f.useEffect(()=>()=>{p&&(d.layers.delete(p),d.layersWithOutsidePointerEventsDisabled.delete(p),M())},[p,d]),f.useEffect(()=>{let e=()=>E({});return document.addEventListener(S,e),()=>document.removeEventListener(S,e)},[]),(0,h.jsx)(x.div,{...c,ref:b,style:{pointerEvents:A?P?"auto":"none":void 0,...e.style},onFocusCapture:v(e.onFocusCapture,L.onFocusCapture),onBlurCapture:v(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:v(e.onPointerDownCapture,k.onPointerDownCapture)})});function M(){let e=new CustomEvent(S);document.dispatchEvent(e)}function T(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),o)?i&&C.flushSync(()=>i.dispatchEvent(a)):i.dispatchEvent(a)}D.displayName="DismissableLayer",f.forwardRef((e,t)=>
1{let n=f.useContext(O),r=f.useRef(null),o=(0,m.e)(t,r);return f.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,h.jsx)(x.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var A="focusScope.autoFocusOnMount",P="focusScope.autoFocusOnUnmount",k={bubbles:!1,cancelable:!0},L=f.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[u,l]=f.useState(null),c=R(o),s=R(i),d=f.useRef(null),p=(0,m.e)(t,e=>l(e)),v=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let e=function(e){if(v.paused||!u)return;let t=e.target;u.contains(t)?d.current=t:_(d.current,{select:!0})},t=function(e){if(v.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||_(d.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&_(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,v.paused]),f.useEffect(()=>{if(u){F.add(v);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(A,k);u.addEventListener(A,c),u.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(_(r,{select:t}),document.activeElement!==n)return}(j(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&_(u))}return()=>{u.removeEventListener(A,c),setTimeout(()=>{let t=new CustomEvent(P,k);u.addEventListener(P,s),u.dispatchEvent(t),t.defaultPrevented||_(e??document.body,{select:!0}),u.removeEventListener(P,s),F.remove(v)},0)}}},[u,c,s,v]);let g=f.useCallback(e=>{if(!n&&!r||v.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=j(e);return[I(t,e),I(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&_(i,{select:!0})):(e.preventDefault(),n&&_(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,v.paused]);return(0,h.jsx)(x.div,{tabIndex:-1,...a,ref:p,onKeyDown:g})});function j(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function I(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function _(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}L.displayName="FocusScope";var F=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=W(r,e)).unshift(e)},remove(e){var t;null===(t=(r=W(r,e))[0])||void 0===t||t.resume()}});function W(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var $=f.forwardRef((e,t)=>{var n,r;let{container:o,...i}=e,[a,u]=f.useState(!1);g(()=>u(!0),[]);let l=o||a&&(null===(r=globalThis)||void 0===r?void 0:null===(n=r.document)||void 0===n?void 0:n.body);return l?C.createPortal((0,h.jsx)(x.div,{...i,ref:t}),l):null});$.displayName="Portal";var B=e=>{var t,n;let r,o;let{present:i,children:a}=e,u=function(e){var t,n;let[r,o]=f.useState(),i=f.useRef(null),a=f.useRef(e),u=f.useRef("none"),[l,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},f.useReducer((e,t)=>n[e][t]??e,t));return f.useEffect(()=>{let e=U(i.current);u.current="mounted"===l?e:"none"},[l]),g(()=>{let t=i.current,n=a.current;if(n!==e){let r=u.current,o=U(t);e?c("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):n&&r!==o?c("ANIMATION_OUT"):c("UNMOUNT"),a.current=e}},[e,c]),g(()=>{if(r){let e;let t=r.ownerDocument.defaultView??window,n=n=>{let o=U(i.current).includes(n.animationName);if(n.target===r&&o&&(c("ANIMATION_END"),!a.current)){let n=r.style.animationFillMode;r.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===r.style.animationFillMode&&(r.style.animationFillMode=n)})}},o=e=>{e.target===r&&(u.current=U(i.current))};return r.addEventListener("animationstart",o),r.addEventListener("animationcancel",n),r.addEventListener("animationend",n),()=>{t.clearTimeout(e),r.removeEventListener("animationstart",o),r.removeEventListener("animationcancel",n),r.removeEventListener("animationend",n)}}c("ANIMATION_END")},[r,c]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:f.useCallback(e=>{i.current=e?getComputedStyle(e):null,o(e)},[])}}(i),l="function"==typeof a?a({present:u.isPresent}):f.Children.only(a),c=(0,m.e)(u.ref,(r=null===(t=Object.getOwnPropertyDescriptor(l.props,"ref"))||void 0===t?void 0:t.get)&&"isReactWarning"in r&&r.isReactWarning?l.ref:(r=null===(n=Object.getOwnPropertyDescriptor(l,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning?l.props.ref:l.props.ref||l.ref);return"function"==typeof a||u.isPresent?f.cloneElement(l,{ref:c}):null};function U(e){return(null==e?void 0:e.animationName)||"none"}B.displayName="Presence";var Z=0;function K(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
1style.position="fixed",e.style.pointerEvents="none",e}var V=n(5853),z="right-scroll-bar-position",Y="width-before-scroll-bar";function X(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var H="undefined"!=typeof window?f.useLayoutEffect:f.useEffect,q=new WeakMap,G=(void 0===o&&(o={}),(void 0===i&&(i=function(e){return e}),a=[],u=!1,l={read:function(){if(u)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=i(e,u);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(u=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){u=!0;var t=[];if(a.length){var n=a;a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),a={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),a}}}}).options=(0,V.pi)({async:!0,ssr:!1},o),l),J=function(){},Q=f.forwardRef(function(e,t){var n,r,o,i,a=f.useRef(null),u=f.useState({onScrollCapture:J,onWheelCapture:J,onTouchMoveCapture:J}),l=u[0],c=u[1],s=e.forwardProps,d=e.children,p=e.className,v=e.removeScrollBar,m=e.enabled,h=e.shards,g=e.sideCar,y=e.noIsolation,E=e.inert,b=e.allowPinchZoom,w=e.as,C=e.gapMode,N=(0,V._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=(n=[a,t],r=function(e){return n.forEach(function(t){return X(t,e)})},(o=(0,f.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,H(function(){var e=q.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||X(e,null)}),r.forEach(function(e){t.has(e)||X(e,o)})}q.set(i,n)},[n]),i),R=(0,V.pi)((0,V.pi)({},N),l);return f.createElement(f.Fragment,null,m&&f.createElement(g,{sideCar:G,removeScrollBar:v,shards:h,noIsolation:y,inert:E,setCallbacks:c,allowPinchZoom:!!b,lockRef:a,gapMode:C}),s?f.cloneElement(f.Children.only(d),(0,V.pi)((0,V.pi)({},R),{ref:x})):f.createElement(void 0===w?"div":w,(0,V.pi)({},R,{className:p,ref:x}),d))});Q.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Q.classNames={fullWidth:Y,zeroRight:z};var ee=function(e){var t=e.sideCar,n=(0,V._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return f.createElement(r,(0,V.pi)({},n))};ee.isSideCarExport=!0;var et=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=d||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},en=function(){var e=et();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},er=function(){var e=en();return function(t){return e(t.styles,t.dynamic),null}},eo={left:0,top:0,right:0,gap:0},ei=function(e){return parseInt(e||"",10)||0},ea=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[ei(n),ei(r),ei(o)]},eu=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return eo;var t=ea(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},el=er(),ec="data-scroll-locked",es=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(ec,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";
1")].filter(Boolean).join(""),"\n }\n \n .").concat(z," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(Y," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(z," .").concat(z," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Y," .").concat(Y," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(ec,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},ed=function(){var e=parseInt(document.body.getAttribute(ec)||"0",10);return isFinite(e)?e:0},ef=function(){f.useEffect(function(){return document.body.setAttribute(ec,(ed()+1).toString()),function(){var e=ed()-1;e<=0?document.body.removeAttribute(ec):document.body.setAttribute(ec,e.toString())}},[])},ep=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;ef();var i=f.useMemo(function(){return eu(o)},[o]);return f.createElement(el,{styles:es(i,!t,o,n?"":"!important")})},ev=!1;if("undefined"!=typeof window)try{var em=Object.defineProperty({},"passive",{get:function(){return ev=!0,!0}});window.addEventListener("test",em,em),window.removeEventListener("test",em,em)}catch(e){ev=!1}var eh=!!ev&&{passive:!1},eg=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},ey=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eE(e,r)){var o=eb(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eE=function(e,t){return"v"===e?eg(t,"overflowY"):eg(t,"overflowX")},eb=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ew=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),u=a*r,l=n.target,c=t.contains(l),s=!1,d=u>0,f=0,p=0;do{var v=eb(e,l),m=v[0],h=v[1]-v[2]-a*m;(m||h)&&eE(e,l)&&(f+=h,p+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return d&&(o&&1>Math.abs(f)||!o&&u>f)?s=!0:!d&&(o&&1>Math.abs(p)||!o&&-u>p)&&(s=!0),s},eC=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eN=function(e){return[e.deltaX,e.deltaY]},ex=function(e){return e&&"current"in e?e.current:e},eR=0,eS=[],eO=(c=function(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(eR++)[0],i=f.useState(er)[0],a=f.useRef(e);f.useEffect(function(){a.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,V.ev)([e.lockRef.current],(e.shards||[]).map(ex),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=f.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=eC(e),u=n.current,l="deltaX"in e?e.deltaX:u[0]-i[0],c="deltaY"in e?e.deltaY:u[1]-i[1],s=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===s.type)return!1;var f=ey(d,s);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=ey(d,s)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var p=r.current||o;return ew(p,t,e,"h"===p?l:c,!0)},[]),l=f.useCallback(function(e){if(eS.length&&eS[eS.length-1]===i){var n="deltaY"in e?eN(e):eC(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(ex).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=f.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),s=f.useCallback(function(e){n.current=eC(e),r.current=void 0},[]),d=f.useCallback(function(t){c(t.type,eN(t),t.target,u(t,e.lockRef.current))},[]),p=f.useCallback(function(t){c(t.type,eC(t),t.target,u(t,e.lockRef.current))},[]);f.useEffect(function(){return eS.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,eh),document.addEventListener("touchmove",l,eh),document.addEventListener("touchstart",s,eh),function(){eS=eS.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,eh),document.removeEventListener("touchmove",l,eh),document.removeEventListener("touchstart",s,eh)}},[]);var v=e.removeScrollBar,m=e.inert;return f.createElement(f.Fragment,null,m?f.createElement(i,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?f.createElement(ep,{gapMode:e.gapMode}):null)},G.useMedium(c),ee),eD=f.forwardRef(function(e,t){return f.createElement(Q,(0,V.pi)({},e,{ref:t,sideCar:eO}))});eD.classNames=Q.classNames;var eM=new WeakMap,eT=new WeakMap,eA={},eP=0,ek=function(e){return e&&(e.host||ek(e.parentNode))},eL=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=ek(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});eA[n]||(eA[n]=new WeakMap);var i=eA[n],a=[],u=new Set,l=new Set(o),c=function(e){!e||u.has(e)||(u.add(e),c(e.parentNode))};o.forEach(c);var s=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(u.has(e))s(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(eM.get(e)||0)+1,c=(i.get(e)||0)+1;eM.set(e,l),i.set(e,c),a.push(e),1===l&&o&&eT.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return s(t),u.clear(),eP++,function(){a.forEach(function(e){var t=eM.get(e)-1,o=i.get(e)-1;eM.set(e,t),i.set(e,o),t||(eT.has(e)||e.removeAttribute(r),eT.delete(e)),o||e.removeAttribute(n)}),--eP||(eM=new WeakMap,eM=new WeakMap,eT=new WeakMap,eA={})}},ej=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),eL(r,o,n,"aria-hidden")):function(){return null}},eI="Dialog",[e_,eF]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>f.createContext(e));return function(n){let r=n?.[e]||t;return f.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=f.createContext(r),i=n.length;n=[...n,r];let a=t=>{let{scope:n,children:r,...a}=t,u=n?.[e]?.[i]||o,l=f.useMemo(()=>a,Object.values(a));return(0,h.jsx)(u.Provider,{value:l,children:r})};return a.displayName=t+"Provider",[a,function(n,a){let u=a?.[e]?.[i]||o,l=f.useContext(u);if(l)return l;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 f.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(eI),[eW,e$]=e_(eI),eB=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:
1a=!0}=e,u=f.useRef(null),l=f.useRef(null),[c,s]=function({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[o,i,a]=function({defaultProp:e,onChange:t}){let[n,r]=f.useState(e),o=f.useRef(n),i=f.useRef(t);return w(()=>{i.current=t},[t]),f.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}({defaultProp:t,onChange:n}),u=void 0!==e,l=u?e:o;{let t=f.useRef(void 0!==e);f.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"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=u},[u,r])}return[l,f.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&a.current?.(n)}else i(t)},[u,e,i,a])]}({prop:r,defaultProp:o??!1,onChange:i,caller:eI});return(0,h.jsx)(eW,{scope:t,triggerRef:u,contentRef:l,contentId:b(),titleId:b(),descriptionId:b(),open:c,onOpenChange:s,onOpenToggle:f.useCallback(()=>s(e=>!e),[s]),modal:a,children:n})};eB.displayName=eI;var eU="DialogTrigger",eZ=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=e$(eU,n),i=(0,m.e)(t,o.triggerRef);return(0,h.jsx)(x.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":e4(o.open),...r,ref:i,onClick:v(e.onClick,o.onOpenToggle)})});eZ.displayName=eU;var eK="DialogPortal",[eV,ez]=e_(eK,{forceMount:void 0}),eY=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=e$(eK,t);return(0,h.jsx)(eV,{scope:t,forceMount:n,children:f.Children.map(r,e=>(0,h.jsx)(B,{present:n||i.open,children:(0,h.jsx)($,{asChild:!0,container:o,children:e})}))})};eY.displayName=eK;var eX="DialogOverlay",eH=f.forwardRef((e,t)=>{let n=ez(eX,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=e$(eX,e.__scopeDialog);return i.modal?(0,h.jsx)(B,{present:r||i.open,children:(0,h.jsx)(eG,{...o,ref:t})}):null});eH.displayName=eX;var eq=(0,N.Z8)("DialogOverlay.RemoveScroll"),eG=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=e$(eX,n);return(0,h.jsx)(eD,{as:eq,allowPinchZoom:!0,shards:[o.contentRef],children:(0,h.jsx)(x.div,{"data-state":e4(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),eJ="DialogContent",eQ=f.forwardRef((e,t)=>{let n=ez(eJ,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=e$(eJ,e.__scopeDialog);return(0,h.jsx)(B,{present:r||i.open,children:i.modal?(0,h.jsx)(e0,{...o,ref:t}):(0,h.jsx)(e1,{...o,ref:t})})});eQ.displayName=eJ;var e0=f.forwardRef((e,t)=>{let n=e$(eJ,e.__scopeDialog),r=f.useRef(null),o=(0,m.e)(t,n.contentRef,r);return f.useEffect(()=>{let e=r.current;if(e)return ej(e)},[]),(0,h.jsx)(e5,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:v(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:v(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:v(e.onFocusOutside,e=>e.preventDefault())})}),e1=f.forwardRef((e,t)=>{let n=e$(eJ,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return(0,h.jsx)(e5,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let u=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(u))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),e5=f.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,u=e$(eJ,n),l=f.useRef(null),c=(0,m.e)(t,l);return f.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??K()),document.body.insertAdjacentElement("beforeend",e[1]??K()),Z++,()=>{1===Z&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e
1=>e.remove()),Z--}},[]),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(L,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,h.jsx)(D,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":e4(u.open),...a,ref:c,onDismiss:()=>u.onOpenChange(!1)})}),(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(tr,{titleId:u.titleId}),(0,h.jsx)(to,{contentRef:l,descriptionId:u.descriptionId})]})]})}),e2="DialogTitle",e3=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=e$(e2,n);return(0,h.jsx)(x.h2,{id:o.titleId,...r,ref:t})});e3.displayName=e2;var e8="DialogDescription",e9=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=e$(e8,n);return(0,h.jsx)(x.p,{id:o.descriptionId,...r,ref:t})});e9.displayName=e8;var e6="DialogClose",e7=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=e$(e6,n);return(0,h.jsx)(x.button,{type:"button",...r,ref:t,onClick:v(e.onClick,()=>o.onOpenChange(!1))})});function e4(e){return e?"open":"closed"}e7.displayName=e6;var te="DialogTitleWarning",[tt,tn]=function(e,t){let n=f.createContext(t),r=e=>{let{children:t,...r}=e,o=f.useMemo(()=>r,Object.values(r));return(0,h.jsx)(n.Provider,{value:o,children:t})};return r.displayName=e+"Provider",[r,function(r){let o=f.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}]}(te,{contentName:eJ,titleName:e2,docsSlug:"dialog"}),tr=e=>{let{titleId:t}=e,n=tn(te),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users. 2 3If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component. 4 5For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return f.useEffect(()=>{t&&!document.getElementById(t)&&console.error(r)},[r,t]),null},to=e=>{let{contentRef:t,descriptionId:n}=e,r=tn("DialogDescriptionWarning"),o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return f.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(o)},[o,t,n]),null},ti=eB,ta=eZ,tu=eY,tl=eH,tc=eQ,ts=e3,td=e9,tf=e7},37053:function(e,t,n){n.d(t,{Z8:function(){return a},g7:function(){return u}});var r=n(2265),o=n(98575),i=n(57437);function a(e){let t=function(e){let t=r.forwardRef((e,t)=>{var n,i;let a,u;let{children:l,...c}=e,s=r.isValidElement(l)?(a=null===(n=Object.getOwnPropertyDescriptor(l.props,"ref"))||void 0===n?void 0:n.get)&&"isReactWarning"in a&&a.isReactWarning?l.ref:(a=null===(i=Object.getOwnPropertyDescriptor(l,"ref"))||void 0===i?void 0:i.get)&&"isReactWarning"in a&&a.isReactWarning?l.props.ref:l.props.ref||l.ref:void 0,d=(0,o.e)(s,t);if(r.isValidElement(l)){let e=function(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let r=i(...t);return o(...t),r}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}(c,l.props);return l.type!==r.Fragment&&(e.ref=d),r.cloneElement(l,e)}return r.Children.count(l)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:o,...a}=e,u=r.Children.toArray(o),l=u.find(c);if(l){let e=l.props.children,o=u.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...a,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,o):null})}return(0,i.jsx)(t,{...a,ref:n,children:o})});return n.displayName=`${e}.Slot`,n}var u=a("Slot"),l=Symbol("radix.slottable");function c(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}},90535:function(e,t,n){n.d(t,{j:function(){return a}});var r=n(61994);let o=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,i=r.W,a=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return i(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:u}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],r=null==u?void 0:u[e];
5if(null===t)return null;let i=o(t)||o(r);return a[e][i]}),c=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return i(e,l,null==t?void 0:null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...u,...c}[t]):({...u,...c})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},5853:function(e,t,n){n.d(t,{_T:function(){return o},ev:function(){return i},pi:function(){return r}});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function i(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError}}]);
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.