PageSourceSearch

https://cantina.com/luke-assets/typeahead-Dv-uXMiI.js

js cantina.com collected 2026-10-02 09:58:32 UTC 1,015 bytes, 2 lines download raw bytes

1import{e as d,f as p}from"./split-presence-props-CdFKwhsE.js";import{w as g}from"./runtime-Dmz8XCAg.js";var h=e=>e.split("").map(a=>{const t=a.charCodeAt(0);return t>0&&t<128?a:t>=128&&t<=255?`/x${t.toString(16)}`.replace("/","\\"):""}).join("").trim(),x=e=>h(e.dataset?.valuetext??e.textContent??""),T=(e,a)=>e.trim().toLowerCase().startsWith(a.toLowerCase());function S(e,a,t,n=d){const o=t?p(e,t,n):-1;let r=t?g(e,o):e;return a.length===1&&(r=r.filter(i=>n(i)!==t)),r.find(i=>T(x(i),a))}function k(e,a){const{state:t,activeId:n,key:o,timeout:r=350,itemToId:m}=a,i=t.keysSoFar+o,u=i.length>1&&Array.from(i).every(s=>s===i[0])?i[0]:i;let f=e.slice();const y=S(f,u,n,m);function c(){clearTimeout(t.timer),t.timer=-1}function l(s){t.keysSoFar=s,c(),s!==""&&(t.timer=+setTimeout(()=>{l(""),c()},r))}return l(i),y}var B=Object.assign(k,{defaultOptions:{keysSoFar:"",timer:-1},isValidEvent:v});function v(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}export{B as g};
2//# sourceMappingURL=typeahead-Dv-uXMiI.js.map

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.