PageSourceSearch

https://www.thevoyage.ai/assets/es2015-C7CnQsnk.js

js thevoyage.ai collected 2026-10-01 23:54:01 UTC 24,045 bytes, 41 lines download raw bytes

vendor: 24,045 bytes, lines 1-41
1import{a as e}from"./chunk-BEqpzyXh.js";import{n as t}from"./createLucideIcon-CEDU0v2w.js";import{t as n}from"./react-dom-CDssyIXU.js";import{t as r}from"./jsx-runtime-DOlcsXOY.js";import{a as i,i as a,r as o}from"./supabase-browser-xYsJrBgW.js";import{a as s}from"./button-gj4yBSBX.js";import{n as c,t as l}from"./dist-DV8ixfq4.js";var u=e(t(),1),d=r();function f(e,t){let n=u.createContext(t),r=e=>{let{children:t,...r}=e,i=u.useMemo(()=>r,Object.values(r));return(0,d.jsx)(n.Provider,{value:i,children:t})};r.displayName=e+`Provider`;function i(r){let i=u.useContext(n);if(i)return i;if(t!==void 0)return t;throw Error(`\`${r}\` must be used within \`${e}\``)}return[r,i]}function p(e,t=[]){let n=[];function r(t,r){let i=u.createContext(r),a=n.length;n=[...n,r];let o=t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=u.useMemo(()=>o,Object.values(o));return(0,d.jsx)(s.Provider,{value:c,children:r})};o.displayName=t+`Provider`;function s(n,o){let s=o?.[e]?.[a]||i,c=u.useContext(s);if(c)return c;if(r!==void 0)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}return[o,s]}let i=()=>{let t=n.map(e=>u.createContext(e));return function(n){let r=n?.[e]||t;return u.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return i.scopeName=e,[r,m(i,...t)]}function m(...e){let t=e[0];if(e.length===1)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 i=n(e)[`__scope${r}`];return{...t,...i}},{});return u.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}typeof window<`u`&&window.document&&window.document.createElement;function h(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),n===!1||!r.defaultPrevented)return t?.(r)}}var g=globalThis?.document?u.useLayoutEffect:()=>{},_=u.useInsertionEffect||g;function v({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[i,a,o]=y({defaultProp:t,onChange:n}),s=e!==void 0,c=s?e:i;{let t=u.useRef(e!==void 0);u.useEffect(()=>{let e=t.current;if(e!==s){let t=e?`controlled`:`uncontrolled`,n=s?`controlled`:`uncontrolled`;console.warn(`${r} is changing from ${t} to ${n}. 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=s},[s,r])}return[c,u.useCallback(t=>{if(s){let n=b(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}function y({defaultProp:e,onChange:t}){let[n,r]=u.useState(e),i=u.useRef(n),a=u.useRef(t);return _(()=>{a.current=t},[t]),u.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}function b(e){return typeof e==`function`}function x(e,t){return u.useReducer((e,n)=>t[e][n]??e,e)}var S=e=>{let{present:t,children:n}=e,r=C(t),i=typeof n==`function`?n({present:r.isPresent}):u.Children.only(n),a=s(r.ref,T(i));return typeof n==`function`||r.isPresent?u.cloneElement(i,{ref:a}):null};S.displayName=`Presence`;function C(e){let[t,n]=u.useState(),r=u.useRef(null),i=u.useRef(e),a=u.useRef(`none`),[o,s]=x(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return u.useEffect(()=>{let e=w(r.current);a.current=o===`mounted`?e:`none`},[o]),g(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,o=w(t);e?s(`MOUNT`):o===`none`||t?.display===`none`?s(`UNMOUNT`):s(n&&r!==o?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,s]),g(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=a=>{let o=w(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(s(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},c=e=>{e.target===t&&(a.current=w(r.current))};return t.addEventListener(`animationstart`,c),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,c),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else s(`ANIMATION_END`)},[t,s]),{isPresent:[`mounted`,`unmountSuspended`].includes(o),ref:u.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}function w(e){return e?.animationName||`none`}function T(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)}var E=u.useId||(()=>void 0),D=0;function ee(e){let[t,n]=u.useState(E());return g(()=>{e||n(e=>e??String(D++))},[e]),e||(t?`radix-${t}`:``)}function O(e){let t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...e)=>t.current?.(...e),[])}function te(e,t=globalThis?.document){let n=O(e);u.useEffect(()=>{let e=e=>{e.key===`Escape`&&n(e)};return t.addEventListener(`keydown`,e,{capture:!0}),()=>t.removeEventListener(`keydown`,e,{capture:!0})},[n,t])}var ne=`DismissableLayer`,k=`dismissableLayer.update`,re=`dismissableLayer.pointerDownOutside`,ie=`dismissableLayer.focusOutside`,ae,oe=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),se=u.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:o,onDismiss:c,...f}=e,p=u.useContext(oe),[m,g]=u.useState(null),_=m?.ownerDocument??globalThis?.document,[,v]=u.useState({}),y=s(t,e=>g(e)),b=Array.from(p.layers),[x]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),S=b.indexOf(x),C=m?b.indexOf(m):-1,w=p.layersWithOutsidePointerEventsDisabled.size>0,T=C>=S,E=ue(e=>{let t=e.target,n=[...p.branches].some(e=>e.contains(t));!T||n||(i?.(e),o?.(e),e.defaultPrevented||c?.())},_),D=de(e=>{let t=e.target;[...p.branches].some(e=>e.contains(t))||(a?.(e),o?.(e),e.defaultPrevented||c?.())},_);return te(e=>{C===p.layers.size-1&&(r?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))},_),u.useEffect(()=>{if(m)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(ae=_.body.style.pointerEvents,_.body.style.pointerEvents=`none`),p.layersWithOutsidePointerEventsDisabled.add(m)),p.layers.add(m),fe(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(_.body.style.pointerEvents=ae)}},[m,_,n,p]),u.useEffect(()=>()=>{m&&(p.layers.delete(m),p.layersWithOutsidePointerEventsDisabled.delete(m),fe())},[m,p]),u.useEffect(()=>{let e=()=>v({});return document.addEventListener(k,e),()=>document.removeEventListener(k,e)},[]),(0,d.jsx)(l.div,{...f,ref:y,style:{pointerEvents:w?T?`auto`:`none`:void 0,...e.style},onFocusCapture:h(e.onFocusCapture,D.onFocusCapture),onBlurCapture:h(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:h(e.onPointerDownCapture,E.onPointerDownCapture)})});se.displayName=ne;var ce=`DismissableLayerBranch`,le=u.forwardRef((e,t)=>{let n=u.useContext(oe),r=u.useRef(null),i=s(t,r);return u.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,d.jsx)(l.div,{...e,ref:i})});le.displayName=ce;function ue(e,t=globalThis?.document){let n=O(e),r=u.useRef(!1),i=u.useRef(()=>{});return u.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){pe(re,n,a,{discrete:!0})},a={originalEvent:e};e.pointerType===`touch`?(t.removeEventListener(`click`,i.current),i.current=r,t.addEventListener(`click`,i.current,{once:!0})):r()}else t.removeEventListener(`click`,i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener(`pointerdown`,e)},0);return()=>{window.clearTimeout(a),t.removeEventListener(`pointerdown`,e),t.removeEventListener(`click`,i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function de(e,t=globalThis?.document){let n=O(e),r=u.useRef(!1);return u.useEffect(()=>{let e=e=>{e.target&&!r.current&&pe(ie,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function fe(){let e=new CustomEvent(k);document.dispatchEvent(e)}function pe(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?c(i,a):i.dispatchEvent(a)}var A=`focusScope.autoFocusOnMount`,j=`focusScope.autoFocusOnUnmount`,M={bubbles:!1,cancelable:!0},me=`FocusScope`,N=u.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[c,f]=u.useState(null),p=O(i),m=O(a),h=u.useRef(null),g=s(t,e=>f(e)),_=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect(()=>{if(r){let e=function(e){if(_.paused||!c)return;let t=e.target;c.contains(t)?h.current=t:P(h.current,{select:!0})},t=function(e){if(_.paused||!c)return;let t=e.relatedTarget;t!==null&&(c.contains(t)||P(h.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&P(c)};document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,_.paused]),u.useEffect(()=>{if(c){xe.add(_);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(A,M);c.addEventListener(A,p),c.dispatchEvent(t),t.defaultPrevented||(he(we(_e(c)),{select:!0}),document.activeElement===e&&P(c))}return()=>{c.removeEventListener(A,p),setTimeout(()=>{let t=new CustomEvent(j,M);c.addEventListener(j,m),c.dispatchEvent(t),t.defaultPrevented||P(e??document.body,{select:!0}),c.removeEventListener(j,m),xe.remove(_)},0)}}},[c,p,m,_]);let v=u.useCallback(e=>{if(!n&&!r||_.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]=ge(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&P(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&P(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,_.paused]);return(0,d.jsx)(l.div,{tabIndex:-1,...o,ref:g,onKeyDown:v})});N.displayName=me;function he(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(P(r,{select:t}),document.activeElement!==n)return}function ge(e){let t=_e(e);return[ve(t,e),ve(t.reverse(),e)]}function _e(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode: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}});for(;n.nextNode();)t.push(n.currentNode);return t}function ve(e,t){for(let n of e)if(!ye(n,{upTo:t}))return n}function ye(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 be(e){return e instanceof HTMLInputElement&&`select`in e}function P(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&be(e)&&t&&e.select()}}var xe=Se();function Se(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Ce(e,t),e.unshift(t)},remove(t){e=Ce(e,t),e[0]?.resume()}}}function Ce(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function we(e){return e.filter(e=>e.tagName!==`A`)}var Te=e(n(),1),Ee=`Portal`,De=u.forwardRef((e,t)=>{let{container:n,...r}=e,[i,a]=u.useState(!1);g(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Te.createPortal((0,d.jsx)(l.div,{...r,ref:t}),o):null});De.displayName=Ee;var F=0;function Oe(){u.useEffect(()=>{let e=document.querySelectorAll(`[data-radix-focus-guard]`);return document.body.insertAdjacentElement(`afterbegin`,e[0]??ke()),document.body.insertAdjacentElement(`beforeend`,e[1]??ke()),F++,()=>{F===1&&document.querySelectorAll(`[data-radix-focus-guard]`).forEach(e=>e.remove()),F--}},[])}function ke(){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}var I=`right-scroll-bar-position`,L=`width-before-scroll-bar`,Ae=`with-scroll-bars-hidden`,je=`--removed-body-scroll-bar-size`;function R(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Me(e,t){var n=(0,u.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 Ne=typeof window<`u`?u.useLayoutEffect:u.useEffect,Pe=new WeakMap;function Fe(e,t){var n=Me(t||null,function(t){return e.forEach(function(e){return R(e,t)})});return Ne(function(){var t=Pe.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||R(e,null)}),i.forEach(function(e){r.has(e)||R(e,a)})}Pe.set(n,e)},[e]),n}function Ie(e){return e}function Le(e,t){t===void 0&&(t=Ie);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 Re(e){e===void 0&&(e={});var t=Le(null);return t.options=o({async:!0,ssr:!1},e),t}var ze=function(e){var t=e.sideCar,n=a(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 u.createElement(r,o({},n))};ze.isSideCarExport=!0;function Be(e,t){return e.useMedium(t),ze}var z=Re(),B=function(){},V=u.forwardRef(function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:B,onWheelCapture:B,onTouchMoveCapture:B}),i=r[0],s=r[1],c=e.forwardProps,l=e.children,d=e.className,f=e.removeScrollBar,p=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,S=e.gapMode,C=a(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),w=h,T=Fe([n,t]),E=o(o({},C),i);return u.createElement(u.Fragment,null,p&&u.createElement(w,{sideCar:z,removeScrollBar:f,shards:m,noRelative:g,noIsolation:_,inert:v,setCallbacks:s,allowPinchZoom:!!y,lockRef:n,gapMode:S}),c?u.cloneElement(u.Children.only(l),o(o({},E),{ref:T})):u.createElement(x,o({},E,{className:d,ref:T}),l))});V.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},V.classNames={fullWidth:L,zeroRight:I};var Ve,He=function(){if(Ve)return Ve;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Ue(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=He();return t&&e.setAttribute(`nonce`,t),e}function We(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Ge(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var Ke=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Ue())&&(We(t,n),Ge(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},qe=function(){var e=Ke();return function(t,n){u.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Je=function(){var e=qe();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Ye={left:0,top:0,right:0,gap:0},H=function(e){return parseInt(e||``,10)||0},Xe=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[H(n),H(r),H(i)]},Ze=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return Ye;var t=Xe(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])}},Qe=Je(),U=`data-scroll-locked`,$e=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  .${Ae} {
3   overflow: hidden ${r};
4   padding-right: ${s}px ${r};
5  }
6  body[${U}] {
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  .${I} {
20    right: ${s}px ${r};
21  }
22  
23  .${L} {
24    margin-right: ${s}px ${r};
25  }
26  
27  .${I} .${I} {
28    right: 0 ${r};
29  }
30  
31  .${L} .${L} {
32    margin-right: 0 ${r};
33  }
34  
35  body[${U}] {
36    ${je}: ${s}px;
37  }
38`},et=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},tt=function(){u.useEffect(function(){return document.body.setAttribute(U,(et()+1).toString()),function(){var e=et()-1;e<=0?document.body.removeAttribute(U):document.body.setAttribute(U,e.toString())}},[])},nt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;tt();var a=u.useMemo(function(){return Ze(i)},[i]);return u.createElement(Qe,{styles:$e(a,!t,i,n?``:`!important`)})},W=!1;if(typeof window<`u`)try{var G=Object.defineProperty({},`passive`,{get:function(){return W=!0,!0}});window.addEventListener(`test`,G,G),window.removeEventListener(`test`,G,G)}catch{W=!1}var K=W?{passive:!1}:!1,rt=function(e){return e.tagName===`TEXTAREA`},it=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!rt(e)&&n[t]===`visible`)},at=function(e){return it(e,`overflowY`)},ot=function(e){return it(e,`overflowX`)},st=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),ut(e,r)){var i=dt(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},ct=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},lt=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},ut=function(e,t){return e===`v`?at(t):ot(t)},dt=function(e,t){return e===`v`?ct(t):lt(t)},ft=function(e,t){return e===`h`&&t===`rtl`?-1:1},pt=function(e,t,n,r,i){var a=ft(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=dt(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&ut(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]},J=function(e){return[e.deltaX,e.deltaY]},mt=function(e){return e&&`current`in e?e.current:e},ht=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gt=function(e){return`
39  .block-interactivity-${e} {pointer-events: none;}
40  .allow-interactivity-${e} {pointer-events: all;}
41`},_t=0,Y=[];function vt(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),a=u.useState(_t++)[0],o=u.useState(Je)[0],s=u.useRef(e);u.useEffect(function(){s.current=e},[e]),u.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${a}`);var t=i([e.lockRef.current],(e.shards||[]).map(mt),!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=u.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=st(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=st(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 pt(h,t,e,h===`h`?o:c,!0)},[]),l=u.useCallback(function(e){var n=e;if(!(!Y.length||Y[Y.length-1]!==o)){var r=`deltaY`in n?J(n):q(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&ht(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var a=(s.current.shards||[]).map(mt).filter(Boolean).filter(function(e){return e.contains(n.target)});(a.length>0?c(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),d=u.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:yt(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),f=u.useCallback(function(e){n.current=q(e),r.current=void 0},[]),p=u.useCallback(function(t){d(t.type,J(t),t.target,c(t,e.lockRef.current))},[]),m=u.useCallback(function(t){d(t.type,q(t),t.target,c(t,e.lockRef.current))},[]);u.useEffect(function(){return Y.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:m}),document.addEventListener(`wheel`,l,K),document.addEventListener(`touchmove`,l,K),document.addEventListener(`touchstart`,f,K),function(){Y=Y.filter(function(e){return e!==o}),document.removeEventListener(`wheel`,l,K),document.removeEventListener(`touchmove`,l,K),document.removeEventListener(`touchstart`,f,K)}},[]);var h=e.removeScrollBar,g=e.inert;return u.createElement(u.Fragment,null,g?u.createElement(o,{styles:gt(a)}):null,h?u.createElement(nt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function yt(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var bt=Be(z,vt),xt=u.forwardRef(function(e,t){return u.createElement(V,o({},e,{ref:t,sideCar:bt}))});xt.classNames=V.classNames;var St=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},X=new WeakMap,Z=new WeakMap,Q={},$=0,Ct=function(e){return e&&(e.host||Ct(e.parentNode))},wt=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ct(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})},Tt=function(e,t,n,r){var i=wt(t,Array.isArray(e)?e:[e]);Q[n]||(Q[n]=new WeakMap);var a=Q[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.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=(X.get(e)||0)+1,l=(a.get(e)||0)+1;X.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Z.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(),$++,function(){o.forEach(function(e){var t=X.get(e)-1,i=a.get(e)-1;X.set(e,t),a.set(e,i),t||(Z.has(e)||e.removeAttribute(r),Z.delete(e)),i||e.removeAttribute(n)}),$--,$||(X=new WeakMap,X=new WeakMap,Z=new WeakMap,Q={})}},Et=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||St(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Tt(r,i,n,`aria-hidden`)):function(){return null}};export{N as a,ee as c,g as d,h as f,De as i,S as l,p as m,xt as n,se as o,f as p,Oe as r,O as s,Et as t,v 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.