1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`2.995.4`};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`deec76b7-bd6c-4b9c-8f10-778a0d6d7f96`,e._sentryDebugIdIdentifier=`sentry-dbid-deec76b7-bd6c-4b9c-8f10-778a0d6d7f96`)}catch{}})();import{b as e}from"./axios-Ceh35Nrd.js";import{t}from"./skillsToolkit-B_JfjsET.js";import{n}from"./dedicatedEditRoute-B6ie4FDT.js";var r=Object.freeze({Catalog:`catalog`,CustomApp:`custom-app`,SkillRepository:`skill-repository`});function i(i){return t(i)||i.customServer&&n(i.customServer)?r.SkillRepository:i.status===e.Custom?r.CustomApp:r.Catalog}var a=t=>t.status===e.Custom?e.Available:t.status,o=e=>{let t=e?.split(`,`).filter(Boolean);return t&&t.length>0?new Set(t):void 0};function s(t){let n=t.status?.split(`,`).filter(Boolean)??[];if(!n.includes(e.Custom))return t;let i=n.filter(t=>t!==e.Custom);if(i.length>0)return{...t,status:i.join(`,`)};let a=new Set(t.source?.split(`,`).filter(Boolean));return a.add(r.CustomApp),a.add(r.SkillRepository),{...t,status:void 0,source:[...a].join(`,`)}}function c({status:e,source:t}){let n=o(e),r=o(t);return e=>{let t=a(e),o=!n||!!t&&n.has(t),s=!r||r.has(i(e));return o&&s}}function l(e,t){if(!e)return[];let n=o(t?.category),r=c(t);return e.filter(e=>{let i=t?.filter,a=!i||i.trim()===``||e.name?.toLowerCase().includes(i.toLowerCase())||e.description?.toLowerCase().includes(i.toLowerCase())||e.id.toLowerCase().includes(i.toLowerCase()),o=!n||!!e.category&&n.has(e.category);return a&&o&&r(e)})}export{s as i,l as n,c as r,r as t}; 2//# sourceMappingURL=mcpServerFilters-CjHYZY52.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.