1import{r as e}from"./rolldown-runtime-hePW80VL.js";import{d as t,t as n,u as r}from"./jsx-runtime-C7-ux-fW.js";import{i,n as a,r as o}from"./client-VBgMEFYK.js";import{i as s,n as c}from"./dist-BV74KGWu.js";import{a as l}from"./button-CbvVUUtd.js";import{n as u,t as d}from"./dist-B_X-AHfg.js";import{t as f}from"./createLucideIcon-C2iSEyTC.js";var p=e(t(),1),m=Object.defineProperty,h=(e,t)=>m(e,`name`,{value:t,configurable:!0});function g(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>((...e)=>t.current?.(...e)),[])}h(g,`useCallbackRef`);var _=n(),v=Object.defineProperty,y=(e,t)=>v(e,`name`,{value:t,configurable:!0}),b=`dismissableLayer.update`,x=`dismissableLayer.pointerDownOutside`,ee=`dismissableLayer.focusOutside`,S,te=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),C=p.forwardRef(y(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:c,onDismiss:u,...f}=e,m=p.useContext(te),[h,v]=p.useState(null),x=h?.ownerDocument??globalThis?.document,[,ee]=p.useState({}),C=l(t,v),w=Array.from(m.layers),[T]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),E=T?w.indexOf(T):-1,ae=h?w.indexOf(h):-1,oe=m.layersWithOutsidePointerEventsDisabled.size>0,D=ae>=E,se=p.useRef(!1),O=ne(e=>{a?.(e),c?.(e),e.defaultPrevented||u?.()},{ownerDocument:x,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:se,dismissableSurfaces:m.dismissableSurfaces,shouldHandlePointerDownOutside:p.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...m.branches].some(t=>t.contains(e));return D&&!t},[m.branches,D])}),k=re(e=>{if(r&&se.current)return;let t=e.target;[...m.branches].some(e=>e.contains(t))||(o?.(e),c?.(e),e.defaultPrevented||u?.())},x),ce=h?ae===w.length-1:!1,A=g(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))});return p.useEffect(()=>{if(ce)return x.addEventListener(`keydown`,A,{capture:!0}),()=>x.removeEventListener(`keydown`,A,{capture:!0})},[x,ce,A]),p.useEffect(()=>{if(h)return n&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(S=x.body.style.pointerEvents,x.body.style.pointerEvents=`none`),m.layersWithOutsidePointerEventsDisabled.add(h)),m.layers.add(h),ie(),()=>{n&&(m.layersWithOutsidePointerEventsDisabled.delete(h),m.layersWithOutsidePointerEventsDisabled.size===0&&(x.body.style.pointerEvents=S))}},[h,x,n,m]),p.useEffect(()=>()=>{h&&(m.layers.delete(h),m.layersWithOutsidePointerEventsDisabled.delete(h),ie())},[h,m]),p.useEffect(()=>{let e=y(()=>ee({}),`handleUpdate`);return document.addEventListener(b,e),()=>document.removeEventListener(b,e)},[]),(0,_.jsx)(d.div,{...f,ref:C,style:{pointerEvents:oe?D?`auto`:`none`:void 0,...e.style},onFocusCapture:s(e.onFocusCapture,k.onFocusCapture),onBlurCapture:s(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:s(e.onPointerDownCapture,O.onPointerDownCapture)})},`DismissableLayer`));function w(){let e=p.useContext(te),[t,n]=p.useState(null);return p.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}y(w,`useDismissableLayerSurface`);var T=y(()=>!0,`IS_TRUE`);function ne(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=T}=t,s=g(e),c=p.useRef(!1),l=p.useRef(!1),u=p.useRef(new Map),d=p.useRef(()=>{});return p.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}y(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}y(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}y(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}y(p,`handleInteractionBubble`);let m=y(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||E(x,s,p,{discrete:!0})};if(y(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(
1),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:y(()=>c.current=!0,`onPointerDownCapture`)}}y(ne,`usePointerDownOutside`);function re(e,t=globalThis?.document){let n=g(e),r=p.useRef(!1);return p.useEffect(()=>{let e=y(e=>{e.target&&!r.current&&E(ee,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:y(()=>r.current=!0,`onFocusCapture`),onBlurCapture:y(()=>r.current=!1,`onBlurCapture`)}}y(re,`useFocusOutside`);function ie(){let e=new CustomEvent(b);document.dispatchEvent(e)}y(ie,`dispatchUpdate`);function E(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?u(i,a):i.dispatchEvent(a)}y(E,`handleAndDispatchCustomEvent`);var ae=Object.defineProperty,oe=(e,t)=>ae(e,`name`,{value:t,configurable:!0}),D=p.useId||(()=>void 0),se=0;function O(e){let[t,n]=p.useState(D());return c(()=>{e||n(e=>e??String(se++))},[e]),e||(t?`radix-${t}`:``)}oe(O,`useId`);var k=e(r(),1),ce=Object.defineProperty,A=p.forwardRef(((e,t)=>ce(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=p.useState(!1);c(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?k.createPortal((0,_.jsx)(d.div,{...r,ref:t}),o):null},`Portal`)),le=Object.defineProperty,j=(e,t)=>le(e,`name`,{value:t,configurable:!0});function ue(e,t){return p.useReducer((e,n)=>t[e][n]??e,e)}j(ue,`useStateMachine`);var de=j(e=>{let{present:t,children:n}=e,r=fe(t),i=typeof n==`function`?n({present:r.isPresent}):p.Children.only(n),a=pe(r.ref,me(i));return typeof n==`function`||r.isPresent?p.cloneElement(i,{ref:a}):null},`Presence`);function fe(e){let[t,n]=p.useState(),r=p.useRef(null),i=p.useRef(e),a=p.useRef(`none`),o=p.useRef(void 0),[s,l]=ue(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return p.useEffect(()=>{s===`mounted`?(a.current=o.current??N(r.current),o.current=void 0):a.current=`none`},[s]),c(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=N(t);e?(o.current=s,l(`MOUNT`)):s===`none`||t?.display===`none`?l(`UNMOUNT`):l(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,l]),c(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=j(a=>{let o=N(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(l(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=j(e=>{e.target===t&&(a.current=N(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}l(`ANIMATION_END`)},[t,l]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:p.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=N(t)}else r.current=null;n(e)},[])}}j(fe,`usePresence`);function M(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}j(M,`setRef`);function pe(...e){let t=p.useRef(e);return t.current=e,p.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=M(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():M(n[e],null)}}},[])}j(pe,`useStableComposedRefs`);function N(e){return e?.animationName||`none`}j(N,`getAnimationName`);function me(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}j(me,`getElementRef`);
1var he=f(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),ge=Object.defineProperty,P=(e,t)=>ge(e,`name`,{value:t,configurable:!0}),F=0,I=null;function _e(e){return ve(),e.children}P(_e,`FocusGuards`);function ve(){p.useEffect(()=>{I||={start:ye(),end:ye()};let{start:e,end:t}=I;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),F++,()=>{F===1&&(I?.start.remove(),I?.end.remove(),I=null),F=Math.max(0,F-1)}},[])}P(ve,`useFocusGuards`);function ye(){let 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}P(ye,`createFocusGuard`);var be=Object.defineProperty,L=(e,t)=>be(e,`name`,{value:t,configurable:!0}),xe=`focusScope.autoFocusOnMount`,R=`focusScope.autoFocusOnUnmount`,Se={bubbles:!1,cancelable:!0},Ce=p.forwardRef(L(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=p.useState(null),u=g(i),f=g(a),m=p.useRef(null),h=l(t,c),v=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let e=function(e){if(v.paused||!s)return;let t=e.target;s.contains(t)?m.current=t:V(m.current,{select:!0})},t=function(e){if(v.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||V(m.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&V(s)};L(e,`handleFocusIn`),L(t,`handleFocusOut`),L(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,v.paused]),p.useEffect(()=>{if(s){Oe.add(v);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(xe,Se);s.addEventListener(xe,u),s.dispatchEvent(t),t.defaultPrevented||(we(Ae(z(s)),{select:!0}),document.activeElement===e&&V(s))}return()=>{s.removeEventListener(xe,u),setTimeout(()=>{let t=new CustomEvent(R,Se);s.addEventListener(R,f),s.dispatchEvent(t),t.defaultPrevented||V(e??document.body,{select:!0}),s.removeEventListener(R,f),Oe.remove(v)},0)}}},[s,u,f,v]);let y=p.useCallback(e=>{if(!n&&!r||v.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=Te(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&V(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&V(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,v.paused]);return(0,_.jsx)(d.div,{tabIndex:-1,...o,ref:h,onKeyDown:y})},`FocusScope`));function we(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(V(r,{select:t}),document.activeElement!==n)return}L(we,`focusFirst`);function Te(e){let t=z(e);return[B(t,e),B(t.reverse(),e)]}L(Te,`getTabbableEdges`);function z(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:L(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}L(z,`getTabbableCandidates`);function B(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Ee(r,{upTo:t})))return r}L(B,`findVisible`);function Ee(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}L(Ee,`isHidden`);function De(e){return e instanceof HTMLInputElement&&`select`in e}L(De,`isSelectableInput`);function V(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&De(e)&&t&&e.select()}}L(V,`focus`);var Oe=ke();function ke(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=H(e,t),e.unshift(t)},remove(t){e=H(e,t),e[0]?.resume()}}}L(ke,`createFocusScopesStack`);function H(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}L(H,`arrayRemove`);function Ae(e){return e.filter(e=>e.tagName!==`A`)}L(Ae,`removeLinks`);var je=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},U=new WeakMap,W=new WeakMap,G={},Me=0,Ne=function(e){return e&&(e.host||Ne(e.parentNode))},Pe=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ne(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Fe=function(e,t,n,r){var i=Pe(t,Array.isArray(e)?e:[e]);G[n]||(G[n]=new WeakMap);var a=G[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};
vendor: 11,192 bytes, lines 1-41
1i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(U.get(e)||0)+1,l=(a.get(e)||0)+1;U.set(e,c),a.set(e,l),o.push(e),c===1&&i&&W.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Me++,function(){o.forEach(function(e){var t=U.get(e)-1,i=a.get(e)-1;U.set(e,t),a.set(e,i),t||(W.has(e)||e.removeAttribute(r),W.delete(e)),i||e.removeAttribute(n)}),Me--,Me||(U=new WeakMap,U=new WeakMap,W=new WeakMap,G={})}},Ie=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||je(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Fe(r,i,n,`aria-hidden`)):function(){return null}},K=`right-scroll-bar-position`,q=`width-before-scroll-bar`,Le=`with-scroll-bars-hidden`,Re=`--removed-body-scroll-bar-size`;function ze(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Be(e,t){var n=(0,p.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Ve=typeof window<`u`?p.useLayoutEffect:p.useEffect,He=new WeakMap;function Ue(e,t){var n=Be(t||null,function(t){return e.forEach(function(e){return ze(e,t)})});return Ve(function(){var t=He.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||ze(e,null)}),i.forEach(function(e){r.has(e)||ze(e,a)})}He.set(n,e)},[e]),n}function We(e){return e}function Ge(e,t){t===void 0&&(t=We);var n=[],r=!1;return{read:function(){if(r)throw 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(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Ke(e){e===void 0&&(e={});var t=Ge(null);return t.options=a({async:!0,ssr:!1},e),t}var qe=function(e){var t=e.sideCar,n=o(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 p.createElement(r,a({},n))};qe.isSideCarExport=!0;function Je(e,t){return e.useMedium(t),qe}var Ye=Ke(),Xe=function(){},J=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:Xe,onWheelCapture:Xe,onTouchMoveCapture:Xe}),i=r[0],s=r[1],c=e.forwardProps,l=e.children,u=e.className,d=e.removeScrollBar,f=e.enabled,m=e.shards,h=e.sideCar,g=e.noRelative,_=e.noIsolation,v=e.inert,y=e.allowPinchZoom,b=e.as,x=b===void 0?`div`:b,ee=e.gapMode,S=o(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),te=h,C=Ue([n,t]),w=a(a({},S),i);return p.createElement(p.Fragment,null,f&&p.createElement(te,{sideCar:Ye,removeScrollBar:d,shards:m,noRelative:g,noIsolation:_,inert:v,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:ee}),c?p.cloneElement(p.Children.only(l),a(a({},w),{ref:C})):p.createElement(x,a({},w,{className:u,ref:C}),l))});J.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},J.classNames={fullWidth:q,zeroRight:K};var Ze,Qe=function(){if(Ze)return Ze;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function $e(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Qe();return t&&e.setAttribute(`nonce`,t),e}function et(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tt(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var nt=function(){var e=0,t=null;return{add:function(n){e==0&&(t=$e())&&(et(t,n),tt(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rt=function(){var e=nt();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},it=function(){var e=rt();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},at={left:0,top:0,right:0,gap:0},ot=function(e){return parseInt(e||``,10)||0},st=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[ot(n),ot(r),ot(i)]},ct=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return at;var t=st(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])}},lt=it(),Y=`data-scroll-locked`,ut=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),` 2 .${Le} { 3 overflow: hidden ${r}; 4 padding-right: ${s}px ${r}; 5 } 6 body[${Y}] { 7 overflow: hidden ${r}; 8 overscroll-behavior: contain; 9 ${[t&&`position: relative ${r};`,n===`margin`&&` 10 padding-left: ${i}px; 11 padding-top: ${a}px; 12 padding-right: ${o}px; 13 margin-left:0; 14 margin-top:0; 15 margin-right: ${s}px ${r}; 16 `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)} 17 } 18 19 .${K} { 20 right: ${s}px ${r}; 21 } 22 23 .${q} { 24 margin-right: ${s}px ${r}; 25 } 26 27 .${K} .${K} { 28 right: 0 ${r}; 29 } 30 31 .${q} .${q} { 32 margin-right: 0 ${r}; 33 } 34 35 body[${Y}] { 36 ${Re}: ${s}px; 37 } 38`},dt=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},ft=function(){p.useEffect(function(){return document.body.setAttribute(Y,(dt()+1).toString()),function(){var e=dt()-1;e<=0?document.body.removeAttribute(Y):document.body.setAttribute(Y,e.toString())}},[])},pt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;ft();var a=p.useMemo(function(){return ct(i)},[i]);return p.createElement(lt,{styles:ut(a,!t,i,n?``:`!important`)})},mt=!1;if(typeof window<`u`)try{var X=Object.defineProperty({},"passive",{get:function(){return mt=!0,!0}});window.addEventListener(`test`,X,X),window.removeEventListener(`test`,X,X)}catch{mt=!1}var Z=mt?{passive:!1}:!1,ht=function(e){return e.tagName===`TEXTAREA`},gt=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!ht(e)&&n[t]===`visible`)},_t=function(e){return gt(e,`overflowY`)},vt=function(e){return gt(e,`overflowX`)},yt=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),St(e,r)){var i=Ct(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},bt=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},xt=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},St=function(e,t){return e===`v`?_t(t):vt(t)},Ct=function(e,t){return e===`v`?bt(t):xt(t)},wt=function(e,t){return e===`h`&&t===`rtl`?-1:1},Tt=function(e,t,n,r,i){var a=wt(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Ct(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&St(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Q=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Et=function(e){return[e.deltaX,e.deltaY]},Dt=function(e){return e&&`current`in e?e.current:e},Ot=function(e,t){return e[0]===t[0]&&e[1]===t[1]},kt=function(e){return` 39 .block-interactivity-${e} {pointer-events: none;} 40 .allow-interactivity-${e} {pointer-events: all;} 41`},At=0,$=[];function jt(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),a=p.useState(At++)[0],o=p.useState(it)[0],s=p.useRef(e);p.useEffect(function(){s.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${a}`);var t=i([e.lockRef.current],(e.shards||[]).map(Dt),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${a}`)}),function(){document.body.classList.remove(`block-interactivity-${a}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${a}`)})}}},[e.inert,e.lockRef.current,e.shards]);var c=p.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!s.current.allowPinchZoom;var i=Q(e),a=n.current,o=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(o)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=yt(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=yt(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(o||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Tt(h,t,e,h===`h`?o:c,!0)},[]),l=p.useCallback(function(e){var n=e;if(!(!$.length||$[$.length-1]!==o)){var r=`deltaY`in n?Et(n):Q(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Ot(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var a=(s.current.shards||[]).map(Dt).filter(Boolean).filter(function(e){return e.contains(n.target)});(a.length>0?c(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=p.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Mt(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=p.useCallback(function(e){n.current=Q(e),r.current=void 0},[]),f=p.useCallback(function(t){u(t.type,Et(t),t.target,c(t,e.lockRef.current))},[]),m=p.useCallback(function(t){u(t.type,Q(t),t.target,c(t,e.lockRef.current))},[]);p.useEffect(function(){return $.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:m}),document.addEventListener(`wheel`,l,Z),document.addEventListener(`touchmove`,l,Z),document.addEventListener(`touchstart`,d,Z),function(){$=$.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,l,Z),document.removeEventListener(`touchmove`,l,Z),document.removeEventListener(`touchstart`,d,Z)}},[]);var h=e.removeScrollBar,g=e.inert;return p.createElement(p.Fragment,null,g?p.createElement(o,{styles:kt(a)}):null,h?p.createElement(pt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Mt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Nt=Je(Ye,jt),Pt=p.forwardRef(function(e,t){return p.createElement(J,a({},e,{ref:t,sideCar:Nt}))});Pt.classNames=J.classNames;export{he as a,O as c,g as d,ve as i,C as l,Ie as n,de as o,Ce as r,A as s,Pt as t,w as u};
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.