PageSourceSearch

https://featherless.ai/_nuxt/DpWmr3sG.js

js featherless.ai collected 2026-09-24 18:27:47 UTC 3,974 bytes, 1 lines download raw bytes

1import{P as g,r as b,a8 as m}from"./uKV8ELha.js";try{let a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="1ae44ad3-67ae-4dad-99d2-d36b4c899eeb",a._sentryDebugIdIdentifier="sentry-dbid-1ae44ad3-67ae-4dad-99d2-d36b4c899eeb")}catch{}const i=["base","embed","iframe","link","meta","object","script","style","template"],n=["http","https","mailto","tel"],l={rich:{allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","del","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr","img"],globalAttributes:["class"],attributesByTag:{a:["href","name","target","rel"],img:["src","srcset","alt","title","width","height","loading"],td:["colspan","rowspan"],th:["colspan","rowspan","scope"]},blockedTags:i,allowedProtocols:n},svg:{allowedTags:["svg","g","path","circle","ellipse","line","polygon","polyline","rect","defs","linearGradient","radialGradient","stop","clipPath","mask","pattern","title","desc"],globalAttributes:["class","fill","fill-rule","stroke","stroke-linecap","stroke-linejoin","stroke-width","transform","opacity","clip-path","mask"],attributesByTag:{svg:["xmlns","viewBox","width","height","role","aria-hidden","focusable"],path:["d"],circle:["cx","cy","r"],ellipse:["cx","cy","rx","ry"],line:["x1","x2","y1","y2"],polygon:["points"],polyline:["points"],rect:["x","y","width","height","rx","ry"],linearGradient:["id","x1","x2","y1","y2","gradientUnits","gradientTransform"],radialGradient:["id","cx","cy","r","fx","fy","gradientUnits","gradientTransform"],stop:["offset","stop-color","stop-opacity"],clipPath:["id"],mask:["id","x","y","width","height","maskUnits"],pattern:["id","x","y","width","height","patternUnits","patternTransform"]},blockedTags:i,allowedProtocols:n},highlight:{allowedTags:["mark"],globalAttributes:[],attributesByTag:{mark:["class"]},blockedTags:i,allowedProtocols:n}},u=new Set(["href","src"]);function d(a){return{allowedTags:new Set(a.allowedTags.map(e=>e.toLowerCase())),globalAttributes:new Set(a.globalAttributes.map(e=>e.toLowerCase())),attributesByTag:Object.fromEntries(Object.entries(a.attributesByTag).map(([e,t])=>[e.toLowerCase(),new Set(t.map(r=>r.toLowerCase()))])),blockedTags:new Set(a.blockedTags),allowedProtocols:new Set(a.allowedProtocols.map(e=>`${e}:`))}}const p={rich:d(l.rich),svg:d(l.svg),highlight:d(l.highlight)};function f(a,e){const t=a.trim();if(t.startsWith("/")||t.startsWith("#")||t.startsWith("./")||t.startsWith("../"))return!0;try{return e.has(new URL(t,window.location.origin).protocol)}catch{return!1}}function c(a,e){for(const t of Array.from(a.childNodes)){if(t.nodeType===Node.COMMENT_NODE){t.remove();continue}if(!(t instanceof Element))continue;const r=t.tagName.toLowerCase();if(!e.allowedTags.has(r)){e.blockedTags.has(r)?t.remove():(c(t,e),t.replaceWith(...Array.from(t.childNodes)));continue}const h=e.attributesByTag[r]??new Set;for(const s of Array.from(t.attributes)){const o=s.name.toLowerCase();(!(e.globalAttributes.has(o)||h.has(o))||o.startsWith("on")||u.has(o)&&!f(s.value,e.allowedProtocols))&&t.removeAttribute(s.name)}r==="a"&&t.getAttribute("target")==="_blank"&&t.setAttribute("rel","noopener noreferrer"),c(t,e)}}function w(a,e){const t=document.createElement("template");return t.innerHTML=a,c(t.content,p[e]),t.innerHTML}const k=g({inheritAttrs:!1,props:{html:{type:String,default:""},as:{type:String,default:"div"},mode:{type:String,default:"rich"}},setup(a,{attrs:e}){const t=b(()=>w(a.html??"",a.mode));return()=>m(a.as,{...e,innerHTML:t.value})}});
1export{k as _};

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.