1import{o as e}from"./chunk-CMxvf4Kt.js";import{t}from"./react-CiG4YQQ8.js";import{S as n,a as r,x as i}from"./Image-QuKQUDfz.js";import{t as a}from"./jsx-runtime-sLPvdpSW.js";import{l as o}from"./index-CVndYtTQ.js";function s(e,t){return i(e,n,t)}var c=e(t(),1),l=a();function u({embed:e}){let t=(0,c.useRef)(null),{data:n}=s(r()),i=o(),a=e?.embed?.trim(),u=!n?.analytics?.enabled||i===`accepted`;return(0,c.useEffect)(()=>{let e=t.current;if(!e||!a||!u)return;let n=!1,r=()=>{n||(e.innerHTML=a,e.querySelectorAll(`script`).forEach(t=>{if(t.src&&Array.from(document.scripts).some(n=>n.src===t.src&&!e.contains(n))){t.remove();return}let n=document.createElement(`script`);for(let e of Array.from(t.attributes))n.setAttribute(e.name,e.value);n.async=!0,t.textContent&&(n.textContent=t.textContent),t.replaceWith(n)}))},i=typeof window.requestIdleCallback==`function`,o=i?window.requestIdleCallback(r,{timeout:2e3}):window.setTimeout(r,200);return()=>{n=!0,i?window.cancelIdleCallback(o):window.clearTimeout(o),e.innerHTML=``}},[a,u]),a?(0,l.jsx)(`div`,{ref:t,"data-chatbot-embed":!0}):null}export{u as t};
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.