1import{r as e}from"./BuSOlfxh.js";import{n as t}from"./DBPNtrFu.js";import"./CJK4q2eS.js";import{t as n}from"./Bnu_qReS.js";var r=`builtin`;`${r}`;function i(e){let t=e.trim().toLowerCase();return t===`builtin`||t==="default"}var a=`browser-builtin`;function o(e){return String(e??``).trim().toLowerCase()===a}var s=`/ai/skills`,c=`/ai/tools/index`;function l(e){if(!e)return``;let t=e.split(`/`);return(t[0]===`Sources`||t[0]===`AgentTools`)&&t.length>1?t.slice(1).join(`/`):e}function u(e){let t=String(e??``).trim();return!t||t===`index`?``:t}function d(e){let t=u(e);return!t||i(t)?r:t}function f(e){let t=l(e.id);return n(e.name,e.title)||i(t)||o(t)||!t?c:`/ai/tools/${encodeURIComponent(t)}`}function p(r,i){let a=(r??[]).filter(e=>(e.library??`AgentTools`)===t).filter(t=>!(e(t.ownerId)===`system`&&!i)),o=a.find(e=>n(e.name,e.title))??a[0];return o?l(o.id):``}function m(e,t,n){return t===`AgentTools`?p(e,n):``}function h(e){return e===`/ai/skills`||e===`/ai/tools/index`}export{m as a,f as c,i as d,u as i,o as l,c as n,d as o,h as r,l as s,s as t,r 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.