PageSourceSearch

https://www.airaplanet.ai/static/js/useDescription.C9ZPiKDT.js

js airaplanet.ai collected 2026-10-05 13:59:43 UTC 3,597 bytes, 1 lines download raw bytes

1import{o as e}from"./rolldown-runtime.C0FnF6B9.js";import{r as t}from"./emotion-is-prop-valid.esm.CuYlOKOk.js";import{$ as n,D as r,N as i,T as a,mt as o}from"./Tooltip.J-aaVqsl.js";var s=e(t(),1);function c(e,t,r,i){let o=a(r),c=r==null;(0,s.useEffect)(()=>{if(!(c||e.current==null))return n(e.current,t,o,i)},[e,t,i,c])}function l(e,t){if(!e)return!1;let n=window.getComputedStyle(e),r=document.scrollingElement||document.documentElement,i=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return e===r&&n.overflow!==`hidden`&&(i=!0),i&&t&&(i=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),i}function u(e,t){let n=e;for(l(n,t)&&(n=n.parentElement);n&&!l(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function d(e,t){let n=[],r=document.scrollingElement||document.documentElement;for(;e&&(l(e,t)&&n.push(e),e!==r);)e=e.parentElement;return n}function f(e,t,n={}){e!==t&&p(e,t,t.getBoundingClientRect(),n)}function p(e,t,n,a={}){let{block:o=`nearest`,inline:s=`nearest`}=a,c=e.scrollTop,l=e.scrollLeft,u=e.getBoundingClientRect(),d=window.getComputedStyle(t),f=window.getComputedStyle(e),p=document.scrollingElement||document.documentElement,m=e===p,h=e===p?0:u.top,g=e===p?e.clientHeight:u.bottom,_=e===p?0:u.left,v=e===p?e.clientWidth:u.right,y=parseFloat(d.scrollMarginTop)||0,b=parseFloat(d.scrollMarginBottom)||0,x=parseFloat(d.scrollMarginLeft)||0,S=parseFloat(d.scrollMarginRight)||0,C=parseFloat(f.scrollPaddingTop)||0,w=parseFloat(f.scrollPaddingBottom)||0,T=parseFloat(f.scrollPaddingLeft)||0,E=parseFloat(f.scrollPaddingRight)||0,D=parseFloat(f.borderTopWidth)||0,O=parseFloat(f.borderBottomWidth)||0,k=parseFloat(f.borderLeftWidth)||0,A=parseFloat(f.borderRightWidth)||0,j=n.top-y,M=n.bottom+b,N=n.left-x,P=n.right+S,F=e===p?0:k+A,I=e===p?0:D+O,L=e===p?0:e.offsetWidth-e.clientWidth-F,R=e===p?0:e.offsetHeight-e.clientHeight-I,z=h+(m?0:D)+C,B=g-(m?0:O)-w-R,V=_+(m?0:k)+T,H=v-(m?0:A)-E;i()&&r()||f.direction===`ltr`?H-=L:f.direction===`rtl`&&(V+=L);let U=j<z||M>B,W=N<V||P>H;if(U&&o===`start`)c+=j-z;else if(U&&o===`center`)c+=(j+M)/2-(z+B)/2;else if(U&&o===`end`)c+=M-B;else if(U&&o===`nearest`){let e=j-z,t=M-B;c+=Math.abs(e)<=Math.abs(t)?e:t}if(W&&s===`start`)l+=N-V;else if(W&&s===`center`)l+=(N+P)/2-(V+H)/2;else if(W&&s===`end`)l+=P-H;else if(W&&s===`nearest`){let e=N-V,t=P-H;l+=Math.abs(e)<=Math.abs(t)?e:t}e.scrollTo({left:l,top:c})}function m(e,t={}){let{containingElement:n}=t;if(e&&e.isConnected){let t=document.scrollingElement||document.documentElement;if(window.getComputedStyle(t).overflow!==`hidden`){let{left:t,top:r}=e.getBoundingClientRect();e?.scrollIntoView?.({block:`nearest`});let{left:i,top:a}=e.getBoundingClientRect();(Math.abs(t-i)>1||Math.abs(r-a)>1)&&(n?.scrollIntoView?.({block:`center`,inline:`center`}),e.scrollIntoView?.({block:`nearest`}))}else{let{left:t,top:r}=e.getBoundingClientRect(),i=d(e,!0);for(let t of i)f(t,e);let{left:a,top:o}=e.getBoundingClientRect();if(Math.abs(t-a)>1||Math.abs(r-o)>1){i=n?d(n,!0):[];for(let e of i)f(e,n,{block:`center`,inline:`center`});for(let t of d(e,!0))f(t,e)}}}}var h=0,g=new Map;function _(e){let[t,n]=(0,s.useState)();return o(()=>{if(!e)return;let t=g.get(e);if(t)n(t.element.id);else{let r=`react-aria-description-${h++}`;n(r);let i=document.createElement(`div`);i.id=r,i.style.display=`none`,i.textContent=e,document.body.appendChild(i),t={refCount:0,element:i},g.set(e,t)}return t.refCount++,()=>{t&&--t.refCount===0&&(t.element.remove(),g.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}export{l as a,u as i,f as n,c as o,m as r,_ as t};

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.