1import{R as Y,r as c}from"./chunk-62JRHF6Z-q9tEU0X1.js";import{q as J,E as A}from"./keyboard-BEAItoqV.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="227589aa-78f5-4e7e-9e94-c0f16210aa4b",e._sentryDebugIdIdentifier="sentry-dbid-227589aa-78f5-4e7e-9e94-c0f16210aa4b")}catch{}const G=typeof document<"u"?Y.useLayoutEffect:()=>{};function Q(e){const t=c.useRef(null);return G(()=>{t.current=e},[e]),c.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}const p=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},m=e=>e&&"window"in e&&e.window===e?e:p(e).defaultView||window;function X(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function Z(e){return X(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let ee=!1;function S(){return ee}function _(e,t){if(!S())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:Z(n)?n=n.host:n=n.parentNode}return!1}const M=(e=document)=>{var t;if(!S())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function B(e){return S()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function te(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function ne(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function O(e){let t=null;return()=>(t==null&&(t=e()),t)}const re=O(function(){return ne(/^Mac/i)}),oe=O(function(){return te(/Android/i)});function R(){let e=c.useRef(new Map),t=c.useCallback((o,s,i,a)=>{let u=a?.once?(...f)=>{e.current.delete(i),i(...f)}:i;e.current.set(i,{type:s,eventTarget:o,fn:u,options:a}),o.addEventListener(s,u,a)},[]),n=c.useCallback((o,s,i,a)=>{var u;let f=((u=e.current.get(i))===null||u===void 0?void 0:u.fn)||i;o.removeEventListener(s,f,a),e.current.delete(i)},[]),r=c.useCallback(()=>{e.current.forEach((o,s)=>{n(o.eventTarget,o.type,s,o.options)})},[n]);return c.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function ae(e){return e.mozInputSource===0&&e.isTrusted?!0:oe()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function V(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function ie(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function K(e){let t=c.useRef({isFocused:!1,observer:null});G(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Q(r=>{e?.(r)});return c.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,s=i=>{if(t.current.isFocused=!1,o.disabled){let a=V(i);n(a)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",s,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var i;(i=t.current.observer)===null||i===void 0||i.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let ue=!1,L=null,P=new Set,T=new Map,w=!1,k=!1;const se={Tab:!0,Escape:!0};function I(e,t){for(let n of P)n(e,t)}function ce(e){return!(e.metaKey||!re()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function F(e){w=!0,ce(e)&&(L="keyboard",I("keyboard",e))}function h(e){L="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(w=!0,I("pointer",e))}function j(e){ae(e)&&(w=!0,L="virtual")}function N(e){e.target===window||e.target===document||ue||!e.isTrusted||(!w&&!k&&(L="virtual",I("virtual",e)),w=!1,k=!1)}function U(){w=!1,k=!0}function C(e){if(typeof window>"u"||typeof document>"u"||T.get(m(e)))return;const t=m(e),n=p(e);
1let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){w=!0,r.apply(this,arguments)},n.addEventListener("keydown",F,!0),n.addEventListener("keyup",F,!0),n.addEventListener("click",j,!0),t.addEventListener("focus",N,!0),t.addEventListener("blur",U,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",h,!0),n.addEventListener("pointermove",h,!0),n.addEventListener("pointerup",h,!0)),t.addEventListener("beforeunload",()=>{q(e)},{once:!0}),T.set(t,{focus:r})}const q=(e,t)=>{const n=m(e),r=p(e);t&&r.removeEventListener("DOMContentLoaded",t),T.has(n)&&(n.HTMLElement.prototype.focus=T.get(n).focus,r.removeEventListener("keydown",F,!0),r.removeEventListener("keyup",F,!0),r.removeEventListener("click",j,!0),n.removeEventListener("focus",N,!0),n.removeEventListener("blur",U,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",h,!0),r.removeEventListener("pointermove",h,!0),r.removeEventListener("pointerup",h,!0)),T.delete(n))};function de(e){const t=p(e);let n;return t.readyState!=="loading"?C(e):(n=()=>{C(e)},t.addEventListener("DOMContentLoaded",n)),()=>q(e,n)}typeof document<"u"&&de();function z(){return L!=="pointer"}const le=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function fe(e,t,n){let r=p(n?.target);const o=typeof window<"u"?m(n?.target).HTMLInputElement:HTMLInputElement,s=typeof window<"u"?m(n?.target).HTMLTextAreaElement:HTMLTextAreaElement,i=typeof window<"u"?m(n?.target).HTMLElement:HTMLElement,a=typeof window<"u"?m(n?.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof o&&!le.has(r.activeElement.type)||r.activeElement instanceof s||r.activeElement instanceof i&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof a&&!se[n.key])}function ve(e,t,n){C(),c.useEffect(()=>{let r=(o,s)=>{fe(!!n?.isTextInput,o,s)&&e(z())};return P.add(r),()=>{P.delete(r)}},t)}function be(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const s=c.useCallback(u=>{if(u.target===u.currentTarget)return r&&r(u),o&&o(!1),!0},[r,o]),i=K(s),a=c.useCallback(u=>{const f=p(u.target),$=f?M(f):M();u.target===u.currentTarget&&$===B(u.nativeEvent)&&(n&&n(u),o&&o(!0),i(u))},[o,n,i]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?s:void 0}}}function $e(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,s=c.useRef({isFocusWithin:!1}),{addGlobalListener:i,removeAllGlobalListeners:a}=R(),u=c.useCallback(d=>{d.currentTarget.contains(d.target)&&s.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(s.current.isFocusWithin=!1,a(),n&&n(d),o&&o(!1))},[n,o,s,a]),f=K(u),$=c.useCallback(d=>{if(!d.currentTarget.contains(d.target))return;const g=p(d.target),v=M(g);if(!s.current.isFocusWithin&&v===B(d.nativeEvent)){r&&r(d),o&&o(!0),s.current.isFocusWithin=!0,f(d);let y=d.currentTarget;i(g,"focus",l=>{if(s.current.isFocusWithin&&!_(y,l.target)){let b=new g.defaultView.FocusEvent("blur",{relatedTarget:l.target});ie(b,y);let E=V(b);u(E)}},{capture:!0})}},[r,o,f,i,u]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:$,onBlur:u}}}let D=!1,H=0;function pe(){D=!0,setTimeout(()=>{D=!1},50)}function W(e){e.pointerType==="touch"&&pe()}function ge(){if(!(typeof document>"u"))return typeof PointerEvent<"u"&&document.addEventListener("pointerup",W),H++,()=>{H--,!(H>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",W)}}function ye(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[s,i]=c.useState(!1),a=c.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;c.useEffect(ge,[]);let{addGlobalListener:u,removeAllGlobalListeners:f}=R(),{hoverProps:$,triggerHoverEnd:d}=c.useMemo(()=>{let g=(l,b)=>{if(a.pointerType=b,o||b==="touch"||a.isHovered||!l.currentTarget.contains(l.target))return;a.isHovered=!0;let E=l.currentTarget;a.target=E,u(p(l.target),"pointerover",x=>{a.isHovered&&a.target&&!_(a.target,x.target)&&v(x,x.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:E,pointerType:b}),n&&n(!0),i(!0)},v=(l,b)=>{let E=a.target;a.pointerType="",a.target=null,!(b==="touch"||!a.isHovered||!E)&&(a.isHovered=!1,f(),r&&r({type:"hoverend",target:E,pointerType:b}),n&&n(!1),i(!1))},y={};return typeof PointerEvent<"u"&&(y.onPointerEnter=l=>{D&&l.pointerType==="mouse"||g(l,l.pointerType)},y.onPointerLeave=l=>{!o&&l.currentTarget.contains(l.target)&&v(l,l.pointerType)}),{hoverProps:y,triggerHoverEnd:v}},[t,n,r,o,a,u,f]);return c.useEffect(()=>{o&&d({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:$,isHovered:s}}function he(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=c.useRef({isFocused:!1,isFocusVisible:t||z()}),[s,i]=c.useState(!1),[a,u]=c.useState(()=>o.current.isFocused&&o.current.isFocusVisible),f=c.useCallback(()=>u(o.current.isFocused&&o.current.isFocusVisible),[]),$=c.useCallback(v=>{o.current.isFocused=v,i(v),f()},[f]);ve(v=>{o.current.isFocusVisible=v,f()},[],{isTextInput:n});let{focusProps:d}
1=be({isDisabled:r,onFocusChange:$}),{focusWithinProps:g}=$e({isDisabled:!r,onFocusWithinChange:$});return{isFocused:s,isFocusVisible:a,focusProps:r?g:d}}function Te(e){let t=e.parentElement,n=null;for(;t&&!J(t);)A(t)&&(n=t),t=t.parentElement;let r=t?.getAttribute("disabled")==="";return r&&Ee(n)?!1:r}function Ee(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(A(t))return!1;t=t.previousElementSibling}return!0}export{he as $,ye as a,Te as s};
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.