1import{d as f,J as y,H as b,a as l}from"./DzZ5sRFm.js";const T=f({__name:"ScriptTags",setup(x){const p=y(),s=Array();p.scriptTags.forEach((e,o)=>{const t=`script-${o}`,n=e.elements.location.value.length>0?m(e.elements.location.value[0].codename):"head";if(e.elements.innerCode.value.length>0){const c=e.elements.innerCode.value;if(c.includes("<script")){const r=/<script\b([^>]*)>([\s\S]*?)<\/script>/gm;let a,i=0;for(;(a=r.exec(c))!==null;){const g=a[1],_=a[2],u={key:`${t}-${i}`,id:`${t}-${i}`,innerHTML:_,tagPosition:n};h(g).forEach(d=>{u[d.key]=d.value}),s.push(u),i++}}else s.push({key:t,id:t,innerHTML:c,tagPosition:n})}e.elements.url.value.length>0&&s.push({key:`${t}-url`,id:`${t}-url`,src:e.elements.url.value,tagPosition:n})}),s.length>0&&b({script:s});function m(e){switch(e){case l.script_tag.elements.location.options.head.codename:return"head";case l.script_tag.elements.location.options.body_close.codename:return"bodyClose";case l.script_tag.elements.location.options.body_open.codename:return"bodyOpen";default:return"head"}}function h(e){const o=[],t=/([\w-]+)(?:\s*=\s*["']([^"']+)["']|(?=\s|>|$))/g;let n;for(;(n=t.exec(e))!==null;){const c=n[1],r=n[2]||"true";o.push({key:c,value:r})}return o}return(e,o)=>null}});export{T as _}; 2//# sourceMappingURL=DiGJc4fe.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.