vendor: 8,791 bytes, lines 1-16
1import{r as c,l as se,i as G,j as l,P as O,k as Ze,f as qe,m as re,I as Qe,h as F,J as Je,K as et,M as tt,n as H,X as nt}from"./index-CfXt94mg.js";import{u as Y}from"./index-CFkHKdcp.js";import{_ as D,h as be,i as rt}from"./Footer-QB-29R0c.js";var z="focusScope.autoFocusOnMount",Z="focusScope.autoFocusOnUnmount",ue={bubbles:!1,cancelable:!0},at="FocusScope",Ee=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...u}=e,[a,g]=c.useState(null),m=se(o),h=se(i),f=c.useRef(null),p=G(t,s=>g(s)),y=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(r){let s=function(E){if(y.paused||!a)return;const C=E.target;a.contains(C)?f.current=C:N(f.current,{select:!0})},d=function(E){if(y.paused||!a)return;const C=E.relatedTarget;C!==null&&(a.contains(C)||N(f.current,{select:!0}))},v=function(E){if(document.activeElement===document.body)for(const S of E)S.removedNodes.length>0&&N(a)};document.addEventListener("focusin",s),document.addEventListener("focusout",d);const b=new MutationObserver(v);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",s),document.removeEventListener("focusout",d),b.disconnect()}}},[r,a,y.paused]),c.useEffect(()=>{if(a){de.add(y);const s=document.activeElement;if(!a.contains(s)){const v=new CustomEvent(z,ue);a.addEventListener(z,m),a.dispatchEvent(v),v.defaultPrevented||(ot(lt(Ce(a)),{select:!0}),document.activeElement===s&&N(a))}return()=>{a.removeEventListener(z,m),setTimeout(()=>{const v=new CustomEvent(Z,ue);a.addEventListener(Z,h),a.dispatchEvent(v),v.defaultPrevented||N(s??document.body,{select:!0}),a.removeEventListener(Z,h),de.remove(y)},0)}}},[a,m,h,y]);const w=c.useCallback(s=>{if(!n&&!r||y.paused)return;const d=s.key==="Tab"&&!s.altKey&&!s.ctrlKey&&!s.metaKey,v=document.activeElement;if(d&&v){const b=s.currentTarget,[E,C]=it(b);E&&C?!s.shiftKey&&v===C?(s.preventDefault(),n&&N(E,{select:!0})):s.shiftKey&&v===E&&(s.preventDefault(),n&&N(C,{select:!0})):v===b&&s.preventDefault()}},[n,r,y.paused]);return l.jsx(O.div,{tabIndex:-1,...u,ref:p,onKeyDown:w})});Ee.displayName=at;function ot(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(N(r,{select:t}),document.activeElement!==n)return}function it(e){const t=Ce(e),n=le(t,e),r=le(t.reverse(),e);return[n,r]}function Ce(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function le(e,t){for(const n of e)if(!ct(n,{upTo:t}))return n}function ct(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function st(e){return e instanceof HTMLInputElement&&"select"in e}function N(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&st(e)&&t&&e.select()}}var de=ut();function ut(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=fe(e,t),e.unshift(t)},remove(t){var n;e=fe(e,t),(n=e[0])==null||n.resume()}}}function fe(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function lt(e){return e.filter(t=>t.tagName!=="A")}var q=0;function dt(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ve()),document.body.insertAdjacentElement("beforeend",e[1]??ve()),q++,()=>{q===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),q--}},[])}function ve(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var U="right-scroll-bar-position",K="width-before-scroll-bar",ft="with-scroll-bars-hidden",vt="--removed-body-scroll-bar-size";function Q(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function mt(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var gt=typeof window<"u"?c.useLayoutEffect:c.useEffect,me=new WeakMap;function ht(e,t){var n=mt(null,function(r){return e.forEach(function(o){return Q(o,r)})});return gt(function(){var r=me.get(n);if(r){var o=new Set(r),i=new Set(e),u=n.current;o.forEach(function(a){i.has(a)||Q(a,null)}),i.forEach(function(a){o.has(a)||Q(a,u)})}me.set(n,e)},[e]),n}function pt(e){return e}function yt(e,t){t===void 0&&(t=pt);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var u=t(i,r);return n.push(u),function(){n=n.filter(function(a){return a!==u})}},assignSyncMedium:function(i){for(r=!0;n.length;){var u=n;n=[],u.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var u=[];if(n.length){var a=n;n=[],a.forEach(i),u=n}var g=function(){var h=u;u=[],h.forEach(i)},m=function(){return Promise.resolve().then(g)};m(),n={push:function(h){u.push(h),m()},filter:function(h){return u=u.filter(h),n}}}};return o}function bt(e){e===void 0&&(e={});var t=yt(null);return t.options=D({async:!0,ssr:!1},e),t}var Se=function(e){var t=e.sideCar,n=be(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,D({},n))};Se.isSideCarExport=!0;function Et(e,t){return e.useMedium(t),Se}var we=bt(),J=function(){},V=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:J,onWheelCapture:J,onTouchMoveCapture:J}),o=r[0],i=r[1],u=e.forwardProps,a=e.children,g=e.className,m=e.removeScrollBar,h=e.enabled,f=e.shards,p=e.sideCar,y=e.noRelative,w=e.noIsolation,s=e.inert,d=e.allowPinchZoom,v=e.as,b=v===void 0?"div":v,E=e.gapMode,C=be(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=p,T=ht([n,t]),x=D(D({},C),o);return c.createElement(c.Fragment,null,h&&c.createElement(S,{sideCar:we,removeScrollBar:m,shards:f,noRelative:y,noIsolation:w,inert:s,setCallbacks:i,allowPinchZoom:!!d,lockRef:n,gapMode:E}),u?c.cloneElement(c.Children.only(a),D(D({},x),{ref:T})):c.createElement(b,D({},x,{className:g,ref:T}),a))});V.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};V.classNames={fullWidth:K,zeroRight:U};var Ct=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function St(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Ct();return t&&e.setAttribute("nonce",t),e}function wt(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Rt(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var xt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=St())&&(wt(t,n),Rt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Nt=function(){var e=xt();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Re=function(){var e=Nt(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Dt={left:0,top:0,right:0,gap:0},ee=function(e){return parseInt(e||"",10)||0},At=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[ee(n),ee(r),ee(o)]},Tt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Dt;var t=At(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])}},Pt=Re(),k="data-scroll-locked",Mt=function(e,t,n,r){var o=e.left,i=e.top,u=e.right,a=e.gap;return n===void 0&&(n="margin"),` 2 .`.concat(ft,` { 3 overflow: hidden `).concat(r,`; 4 padding-right: `).concat(a,"px ").concat(r,`; 5 } 6 body[`).concat(k,`] { 7 overflow: hidden `).concat(r,`; 8 overscroll-behavior: contain; 9 `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&` 10 padding-left: `.concat(o,`px; 11 padding-top: `).concat(i,`px; 12 padding-right: `).concat(u,`px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: `).concat(a,"px ").concat(r,`; 16 `),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";
16")].filter(Boolean).join(""),` 17 } 18 19 .`).concat(U,` { 20 right: `).concat(a,"px ").concat(r,`; 21 } 22 23 .`).concat(K,` { 24 margin-right: `).concat(a,"px ").concat(r,`; 25 } 26 27 .`).concat(U," .").concat(U,` { 28 right: 0 `).concat(r,`; 29 } 30 31 .`).concat(K," .").concat(K,` { 32 margin-right: 0 `).concat(r,`; 33 } 34 35 body[`).concat(k,`] { 36 `).concat(vt,": ").concat(a,`px; 37 } 38`)},ge=function(){var e=parseInt(document.body.getAttribute(k)||"0",10);return isFinite(e)?e:0},It=function(){c.useEffect(function(){return document.body.setAttribute(k,(ge()+1).toString()),function(){var e=ge()-1;e<=0?document.body.removeAttribute(k):document.body.setAttribute(k,e.toString())}},[])},kt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;It();var i=c.useMemo(function(){return Tt(o)},[o]);return c.createElement(Pt,{styles:Mt(i,!t,o,n?"":"!important")})},ne=!1;if(typeof window<"u")try{var L=Object.defineProperty({},"passive",{get:function(){return ne=!0,!0}});window.addEventListener("test",L,L),window.removeEventListener("test",L,L)}catch{ne=!1}var P=ne?{passive:!1}:!1,Ot=function(e){return e.tagName==="TEXTAREA"},xe=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Ot(e)&&n[t]==="visible")},Ft=function(e){return xe(e,"overflowY")},_t=function(e){return xe(e,"overflowX")},he=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=Ne(e,r);if(o){var i=De(e,r),u=i[1],a=i[2];if(u>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Lt=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},jt=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},Ne=function(e,t){return e==="v"?Ft(t):_t(t)},De=function(e,t){return e==="v"?Lt(t):jt(t)},Wt=function(e,t){return e==="h"&&t==="rtl"?-1:1},Bt=function(e,t,n,r,o){var i=Wt(e,window.getComputedStyle(t).direction),u=i*r,a=n.target,g=t.contains(a),m=!1,h=u>0,f=0,p=0;do{if(!a)break;var y=De(e,a),w=y[0],s=y[1],d=y[2],v=s-d-i*w;(w||v)&&Ne(e,a)&&(f+=v,p+=w);var b=a.parentNode;a=b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?b.host:b}while(!g&&a!==document.body||g&&(t.contains(a)||t===a));return(h&&Math.abs(f)<1||!h&&Math.abs(p)<1)&&(m=!0),m},j=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},pe=function(e){return[e.deltaX,e.deltaY]},ye=function(e){return e&&"current"in e?e.current:e},Ut=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Kt=function(e){return` 39 .block-interactivity-`.concat(e,` {pointer-events: none;} 40 .allow-interactivity-`).concat(e,` {pointer-events: all;} 41`)},$t=0,M=[];function Gt(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState($t++)[0],i=c.useState(Re)[0],u=c.useRef(e);c.useEffect(function(){u.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var s=rt([e.lockRef.current],(e.shards||[]).map(ye),!0).filter(Boolean);return s.forEach(function(d){return d.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),s.forEach(function(d){return d.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=c.useCallback(function(s,d){if("touches"in s&&s.touches.length===2||s.type==="wheel"&&s.ctrlKey)return!u.current.allowPinchZoom;var v=j(s),b=n.current,E="deltaX"in s?s.deltaX:b[0]-v[0],C="deltaY"in s?s.deltaY:b[1]-v[1],S,T=s.target,x=Math.abs(E)>Math.abs(C)?"h":"v";if("touches"in s&&x==="h"&&T.type==="range")return!1;var _=he(x,T);if(!_)return!0;if(_?S=x:(S=x==="v"?"h":"v",_=he(x,T)),!_)return!1;if(!r.current&&"changedTouches"in s&&(E||C)&&(r.current=S),!S)return!0;var ce=r.current||S;return Bt(ce,d,s,ce==="h"?E:C)},[]),g=c.useCallback(function(s){var d=s;if(!(!M.length||M[M.length-1]!==i)){var v="deltaY"in d?pe(d):j(d),b=t.current.filter(function(S){return S.name===d.type&&(S.target===d.target||d.target===S.shadowParent)&&Ut(S.delta,v)}
vendor: 4,341 bytes, line 41
41)[0];if(b&&b.should){d.cancelable&&d.preventDefault();return}if(!b){var E=(u.current.shards||[]).map(ye).filter(Boolean).filter(function(S){return S.contains(d.target)}),C=E.length>0?a(d,E[0]):!u.current.noIsolation;C&&d.cancelable&&d.preventDefault()}}},[]),m=c.useCallback(function(s,d,v,b){var E={name:s,delta:d,target:v,should:b,shadowParent:Ht(v)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(C){return C!==E})},1)},[]),h=c.useCallback(function(s){n.current=j(s),r.current=void 0},[]),f=c.useCallback(function(s){m(s.type,pe(s),s.target,a(s,e.lockRef.current))},[]),p=c.useCallback(function(s){m(s.type,j(s),s.target,a(s,e.lockRef.current))},[]);c.useEffect(function(){return M.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",g,P),document.addEventListener("touchmove",g,P),document.addEventListener("touchstart",h,P),function(){M=M.filter(function(s){return s!==i}),document.removeEventListener("wheel",g,P),document.removeEventListener("touchmove",g,P),document.removeEventListener("touchstart",h,P)}},[]);var y=e.removeScrollBar,w=e.inert;return c.createElement(c.Fragment,null,w?c.createElement(i,{styles:Kt(o)}):null,y?c.createElement(kt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ht(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Vt=Et(we,Gt);var Ae=c.forwardRef(function(e,t){return c.createElement(V,D({},e,{ref:t,sideCar:Vt}))});Ae.classNames=V.classNames;var Xt=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},I=new WeakMap,W=new WeakMap,B={},te=0,Te=function(e){return e&&(e.host||Te(e.parentNode))},Yt=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Te(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},zt=function(e,t,n,r){var o=Yt(t,Array.isArray(e)?e:[e]);B[n]||(B[n]=new WeakMap);var i=B[n],u=[],a=new Set,g=new Set(o),m=function(f){!f||a.has(f)||(a.add(f),m(f.parentNode))};o.forEach(m);var h=function(f){!f||g.has(f)||Array.prototype.forEach.call(f.children,function(p){if(a.has(p))h(p);else try{var y=p.getAttribute(r),w=y!==null&&y!=="false",s=(I.get(p)||0)+1,d=(i.get(p)||0)+1;I.set(p,s),i.set(p,d),u.push(p),s===1&&w&&W.set(p,!0),d===1&&p.setAttribute(n,"true"),w||p.setAttribute(r,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return h(t),a.clear(),te++,function(){u.forEach(function(f){var p=I.get(f)-1,y=i.get(f)-1;I.set(f,p),i.set(f,y),p||(W.has(f)||f.removeAttribute(r),W.delete(f)),y||f.removeAttribute(n)}),te--,te||(I=new WeakMap,I=new WeakMap,W=new WeakMap,B={})}},Zt=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Xt(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),zt(r,o,n,"aria-hidden")):function(){return null}},X="Dialog",[Pe]=qe(X),[qt,R]=Pe(X),Me=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:u=!0}=e,a=c.useRef(null),g=c.useRef(null),[m,h]=Ze({prop:r,defaultProp:o??!1,onChange:i,caller:X});return l.jsx(qt,{scope:t,triggerRef:a,contentRef:g,contentId:Y(),titleId:Y(),descriptionId:Y(),open:m,onOpenChange:h,onOpenToggle:c.useCallback(()=>h(f=>!f),[h]),modal:u,children:n})};Me.displayName=X;var Ie="DialogTrigger",Qt=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=R(Ie,n),i=G(t,o.triggerRef);return l.jsx(O.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ie(o.open),...r,ref:i,onClick:F(e.onClick,o.onOpenToggle)})});Qt.displayName=Ie;var ae="DialogPortal",[Jt,ke]=Pe(ae,{forceMount:void 0}),Oe=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=R(ae,t);return l.jsx(Jt,{scope:t,forceMount:n,children:c.Children.map(r,u=>l.jsx(re,{present:n||i.open,children:l.jsx(Qe,{asChild:!0,container:o,children:u})}))})};Oe.displayName=ae;var $="DialogOverlay",Fe=c.forwardRef((e,t)=>{const n=ke($,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=R($,e.__scopeDialog);return i.modal?l.jsx(re,{present:r||i.open,children:l.jsx(tn,{...o,ref:t})}):null});Fe.displayName=$;var en=Je("DialogOverlay.RemoveScroll"),tn=c.forwardRef((e,t)=>
vendor: 4,599 bytes, lines 41-45
41{const{__scopeDialog:n,...r}=e,o=R($,n);return l.jsx(Ae,{as:en,allowPinchZoom:!0,shards:[o.contentRef],children:l.jsx(O.div,{"data-state":ie(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),A="DialogContent",_e=c.forwardRef((e,t)=>{const n=ke(A,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=R(A,e.__scopeDialog);return l.jsx(re,{present:r||i.open,children:i.modal?l.jsx(nn,{...o,ref:t}):l.jsx(rn,{...o,ref:t})})});_e.displayName=A;var nn=c.forwardRef((e,t)=>{const n=R(A,e.__scopeDialog),r=c.useRef(null),o=G(t,n.contentRef,r);return c.useEffect(()=>{const i=r.current;if(i)return Zt(i)},[]),l.jsx(Le,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:F(e.onCloseAutoFocus,i=>{var u;i.preventDefault(),(u=n.triggerRef.current)==null||u.focus()}),onPointerDownOutside:F(e.onPointerDownOutside,i=>{const u=i.detail.originalEvent,a=u.button===0&&u.ctrlKey===!0;(u.button===2||a)&&i.preventDefault()}),onFocusOutside:F(e.onFocusOutside,i=>i.preventDefault())})}),rn=c.forwardRef((e,t)=>{const n=R(A,e.__scopeDialog),r=c.useRef(!1),o=c.useRef(!1);return l.jsx(Le,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var u,a;(u=e.onCloseAutoFocus)==null||u.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var g,m;(g=e.onInteractOutside)==null||g.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=i.target;((m=n.triggerRef.current)==null?void 0:m.contains(u))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),Le=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...u}=e,a=R(A,n),g=c.useRef(null),m=G(t,g);return dt(),l.jsxs(l.Fragment,{children:[l.jsx(Ee,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:l.jsx(et,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":ie(a.open),...u,ref:m,onDismiss:()=>a.onOpenChange(!1)})}),l.jsxs(l.Fragment,{children:[l.jsx(an,{titleId:a.titleId}),l.jsx(cn,{contentRef:g,descriptionId:a.descriptionId})]})]})}),oe="DialogTitle",je=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=R(oe,n);return l.jsx(O.h2,{id:o.titleId,...r,ref:t})});je.displayName=oe;var We="DialogDescription",Be=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=R(We,n);return l.jsx(O.p,{id:o.descriptionId,...r,ref:t})});Be.displayName=We;var Ue="DialogClose",Ke=c.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=R(Ue,n);return l.jsx(O.button,{type:"button",...r,ref:t,onClick:F(e.onClick,()=>o.onOpenChange(!1))})});Ke.displayName=Ue;function ie(e){return e?"open":"closed"}var $e="DialogTitleWarning",[yn,Ge]=tt($e,{contentName:A,titleName:oe,docsSlug:"dialog"}),an=({titleId:e})=>{const t=Ge($e),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 42 43If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 44 45For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},on="DialogDescriptionWarning",cn=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ge(on).contentName}}.`;return c.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},sn=Me,un=Oe,He=Fe,Ve=_e,Xe=je,Ye=Be,ln=Ke;const bn=sn,dn=un,ze=c.forwardRef(({className:e,...t},n)=>l.jsx(He,{ref:n,className:H("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ze.displayName=He.displayName;const fn=c.forwardRef(({className:e,children:t,...n},r)=>l.jsxs(dn,{children:[l.jsx(ze,{}),l.jsxs(Ve,{ref:r,className:H("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rou
45nded-lg",e),...n,children:[t,l.jsxs(ln,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[l.jsx(nt,{className:"h-4 w-4"}),l.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));fn.displayName=Ve.displayName;const vn=c.forwardRef(({className:e,...t},n)=>l.jsx(Xe,{ref:n,className:H("text-lg font-semibold leading-none tracking-tight",e),...t}));vn.displayName=Xe.displayName;const mn=c.forwardRef(({className:e,...t},n)=>l.jsx(Ye,{ref:n,className:H("text-sm text-muted-foreground",e),...t}));mn.displayName=Ye.displayName;export{bn as D,fn as a,vn as b};
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.