PageSourceSearch

https://vale.sh/_app/immutable/chunks/mounted.CrJTH1E3.js

js vale.sh collected 2026-10-03 21:25:30 UTC 1,904 bytes, 1 lines download raw bytes

1import{b as w}from"./box-auto-reset.svelte.9UO0Skai.js";import"./disclose-version.CtdTVmsE.js";import{p as I,u as x,A as b,a as A}from"./runtime.Dneb9BA2.js";import{p as M}from"./props.B7X6Dyn6.js";import{n as R}from"./popper-layer-force-mount.BnNLmMir.js";function D(t,e,n=!0){if(!(t.length===0||e<0||e>=t.length))return t.length===1&&e===0?t[0]:e===t.length-1?n?t[0]:void 0:t[e+1]}function E(t,e,n=!0){if(!(t.length===0||e<0||e>=t.length))return t.length===1&&e===0?t[0]:e===0?n?t[t.length-1]:void 0:t[e-1]}function N(t,e,n,o=!0){if(t.length===0||e<0||e>=t.length)return;let u=e+n;return o?u=(u%t.length+t.length)%t.length:u=Math.max(0,Math.min(u,t.length-1)),t[u]}function V(t,e,n,o=!0){if(t.length===0||e<0||e>=t.length)return;let u=e-n;return o?u=(u%t.length+t.length)%t.length:u=Math.max(0,Math.min(u,t.length-1)),t[u]}function T(t,e,n){const u=e.length>1&&Array.from(e).every(f=>f===e[0])?e[0]:e,g=n?t.indexOf(n):-1;let h=k(t,Math.max(g,0));u.length===1&&(h=h.filter(f=>f!==n));const l=h.find(f=>f==null?void 0:f.toLowerCase().startsWith(u.toLowerCase()));return l!==n?l:void 0}function k(t,e){return t.map((n,o)=>t[(e+o)%t.length])}function W(t){const e=w("",1e3),n=(t==null?void 0:t.onMatch)??(h=>h.focus()),o=(t==null?void 0:t.getCurrentItem)??(()=>document.activeElement);function u(h,r){var m,d;if(!r.length)return;e.current=e.current+h;const l=o(),f=((d=(m=r.find(c=>c===l))==null?void 0:m.textContent)==null?void 0:d.trim())??"",p=r.map(c=>{var i;return((i=c.textContent)==null?void 0:i.trim())??""}),C=T(p,e.current,f),s=r.find(c=>{var i;return((i=c.textContent)==null?void 0:i.trim())===C});return s&&n(s),s}function g(){e.current=""}return{search:e,handleTypeaheadSearch:u,resetTypeahead:g}}function j(t,e){I(e,!0);let n=M(e,"isMounted",15,!1),o=M(e,"onMountedChange",3,R);x(()=>(b(()=>{n(!0),o()(!0)}),()=>{n(!1),o()(!1)})),A()}export{j as M,V as b,N as f,T as g,D as n,E as p,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.