PageSourceSearch

https://able.dcodestem.ai/static/js/getScrollParent.CxeBz6Ij.js

js dcodestem.ai collected 2026-10-05 15:17:29 UTC 3,913 bytes, 1 lines download raw bytes

1import{o as e}from"./rolldown-runtime.DAXXjFlN.js";import{r as t}from"./emotion-is-prop-valid.esm.CygBv61C.js";import{C as n}from"./Tooltip.DJg7muty.js";import{i as r}from"./useDescription.CAgugccB.js";var i=Symbol.for(`react-aria.i18n.locale`),a=Symbol.for(`react-aria.i18n.strings`),o=void 0,s=class e{constructor(e,t=`en-US`){this.strings=Object.fromEntries(Object.entries(e).filter(([,e])=>e)),this.defaultLocale=t}getStringForLocale(e,t){let n=this.getStringsForLocale(t)[e];if(!n)throw Error(`Could not find intl message ${e} in ${t} locale`);return n}getStringsForLocale(e){let t=this.strings[e];return t||(t=c(e,this.strings,this.defaultLocale),this.strings[e]=t),t}static getGlobalDictionaryForPackage(t){if(typeof window>`u`)return null;let n=window[i];if(o===void 0){let t=window[a];if(!t)return null;o={};for(let r in t)o[r]=new e({[n]:t[r]},n)}let r=o?.[t];if(!r)throw Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}};function c(e,t,n=`en-US`){if(t[e])return t[e];let r=l(e);if(t[r])return t[r];for(let e in t)if(e.startsWith(r+`-`))return t[e];return t[n]}function l(e){return Intl.Locale?new Intl.Locale(e).language:e.split(`-`)[0]}var u=new Map,d=new Map,f=class{constructor(e,t){this.locale=e,this.strings=t}format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return typeof n==`function`?n(t,this):n}plural(e,t,n=`cardinal`){let r=t[`=`+e];if(r)return typeof r==`function`?r():r;let i=this.locale+`:`+n,a=u.get(i);return a||(a=new Intl.PluralRules(this.locale,{type:n}),u.set(i,a)),r=t[a.select(e)]||t.other,typeof r==`function`?r():r}number(e){let t=d.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),d.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return typeof n==`function`?n():n}},p=e(t(),1),m=new WeakMap;function h(e){let t=m.get(e);return t||(t=new s(e),m.set(e,t)),t}function g(e,t){return t&&s.getGlobalDictionaryForPackage(t)||h(e)}function _(e,t){let{locale:r}=n(),i=g(e,t);return(0,p.useMemo)(()=>new f(r,i),[r,i])}var v=7e3,y=null;function b(e,t=`assertive`,n=v){y?y.announce(e,t,n):(y=new S,(typeof IS_REACT_ACT_ENVIRONMENT==`boolean`?IS_REACT_ACT_ENVIRONMENT:typeof jest<`u`)?y.announce(e,t,n):setTimeout(()=>{y?.isAttached()&&y?.announce(e,t,n)},100))}function x(e){y&&y.clear(e)}var S=class{constructor(){this.node=null,this.assertiveLog=null,this.politeLog=null,typeof document<`u`&&(this.node=document.createElement(`div`),this.node.dataset.liveAnnouncer=`true`,Object.assign(this.node.style,{border:0,clip:`rect(0 0 0 0)`,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`}),this.assertiveLog=this.createLog(`assertive`),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog(`polite`),this.node.appendChild(this.politeLog),document.body.prepend(this.node))}isAttached(){return this.node?.isConnected}createLog(e){let t=document.createElement(`div`);return t.setAttribute(`role`,`log`),t.setAttribute(`aria-live`,e),t.setAttribute(`aria-relevant`,`additions`),t}destroy(){this.node&&=(document.body.removeChild(this.node),null)}announce(e,t=`assertive`,n=v){if(!this.node)return;let r=document.createElement(`div`);typeof e==`object`?(r.setAttribute(`role`,`img`),r.setAttribute(`aria-labelledby`,e[`aria-labelledby`])):r.textContent=e,t===`assertive`?this.assertiveLog?.appendChild(r):this.politeLog?.appendChild(r),e!==``&&setTimeout(()=>{r.remove()},n)}clear(e){this.node&&((!e||e===`assertive`)&&this.assertiveLog&&(this.assertiveLog.innerHTML=``),(!e||e===`polite`)&&this.politeLog&&(this.politeLog.innerHTML=``))}};function C(e,t){let n=e;for(r(n,t)&&(n=n.parentElement);n&&!r(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}export{_ as a,g as i,b as n,f as o,x as r,s,C 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.