1import{z as t,r as e,U as r,j as a,L as s,br as o,c as n,a as l,h as i}from"./index-DTGISDb4.js";const c=["href","src","action","formaction","poster","data","xlink:href"],u=t=>{if(!t||"undefined"==typeof DOMParser)return"";const e=(new DOMParser).parseFromString(t,"text/html");e.querySelectorAll("script, base").forEach(t=>t.remove()),e.querySelectorAll("*").forEach(t=>{[...t.attributes].forEach(({name:e,value:r})=>{const a=e.toLowerCase();a.startsWith("on")?t.removeAttribute(e):"srcdoc"!==a?c.includes(a)&&(t=>/^(?:(?:java|vb)script:|data:text\/html)/i.test(String(t).replace(/[\u0000-\u0020]/g,"")))(r)&&t.removeAttribute(e):t.removeAttribute(e)})});return`${[...e.head.querySelectorAll("style, link")].map(t=>t.outerHTML).join("\n")}\n${e.body.innerHTML}`.trim()},d=()=>{const{pathname:i}=t(),[c,d]=e.useState(""),[f,h]=e.useState(!0);return e.useEffect(()=>{let t=!0;const e=r.getSlug(i.toLowerCase());return h(!0),d(""),(async()=>{var r,a;try{const s=n.api.pages.replace("{{pageId}}",e),o=await l.get(s),i=await o.json();if(!t)return;if(200===o.status){const t=(null==i?void 0:i.html)||(null==(a=null==(r=null==i?void 0:i.content_blocks)?void 0:r.find(t=>null==t?void 0:t.html))?void 0:a.html);d(u(t))}}catch(s){console.log(s)}finally{t&&h(!1)}})(),()=>{t=!1}},[i]),f?a.jsx(s,{}):c?a.jsx(m,{dangerouslySetInnerHTML:{__html:c}}):a.jsx(o,{title:"404"})},m=i.div` 2 width: 100%; 3`;export{d as default};
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.