1import{aD as p}from"./index-Dk8RHkdd.js";import{x as s,v as a,ad as m}from"./vue-WuHqyJOJ.js";import{a as c}from"./maps-DUMK4Hs6.js";import"./photoswipe-DBz4ixLY.js";const r=typeof window>"u"?null:p(window);function l(t){if(typeof t!="string"||[...t].some(e=>e.charCodeAt(0)<=32||e.charCodeAt(0)===127||e==="\\"))return"";try{const e=new URL(t);if(e.protocol!=="https:"||e.port||e.username||e.password)return"";const o=e.hostname==="www.google.com"&&(e.pathname==="/maps/embed"||e.pathname==="/maps/d/embed"||/^\/maps\/embed\/v1\/(place|view|directions|streetview|search)$/.test(e.pathname)),n=e.hostname==="www.openstreetmap.org"&&e.pathname==="/export/embed.html";return o||n?e.href:""}catch{return""}}function d(t){if(!(r!=null&&r.isSupported)||typeof t!="string")return"";const o=r.sanitize(t,{ALLOWED_TAGS:["iframe"],ALLOWED_ATTR:["src"],ALLOW_ARIA_ATTR:!1,ALLOW_DATA_ATTR:!1,RETURN_DOM_FRAGMENT:!0}).querySelectorAll("iframe");return o.length===1?l(o[0].getAttribute("src")):""}const f={class:"safe-map-embed"},u=["src","title"],h={key:1};function _(t,e,o,n,g,i){return s(),a("div",f,[i.source?(s(),a("iframe",{key:0,src:i.source,title:t.$t("collection.map"),sandbox:"allow-scripts allow-same-origin allow-popups",referrerpolicy:"strict-origin-when-cross-origin",loading:"lazy"},null,8,u)):(s(),a("p",h,m(t.$t("collection.mapUnavailable")),1))])}const w={name:"safe-map-embed",props:{html:{type:String,default:""}},computed:{source(){return d(this.html)}}},L=c(w,[["render",_],["__scopeId","data-v-7ff95471"]]);export{L 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.