PageSourceSearch

https://mst.ru/_nuxt/DhSSw3qc.js

js mst.ru collected 2026-10-05 03:40:58 UTC 1,786 bytes, 1 lines download raw bytes

1import{p as b,y as w,ag as x,al as E,ah as S,g as u,an as I,P,D as B,U as L,k as C,G as h,af as c,a3 as N,K as U,a1 as z,W as A}from"./7k1903kh.js";const $=["src"],F=b({__name:"NuxtImg",props:w,emits:["load","error"],setup(y,{emit:_}){const s=y,m=x(),t=_,p=!1,d=E(),a=S(s),i=z(!1),o=z(),l=u(()=>d.getSizes(s.src,{...a.options.value,sizes:s.sizes,densities:s.densities,modifiers:{...a.modifiers.value,width:A(s.width),height:A(s.height)}})),f=u(()=>{const e={...a.attrs.value,"data-nuxt-img":""};return(!s.placeholder||i.value)&&(e.sizes=l.value.sizes,e.srcset=l.value.srcset),e}),n=u(()=>{let e=s.placeholder;if(e===""&&(e=!0),!e||i.value)return!1;if(typeof e=="string")return e;const r=Array.isArray(e)?e:typeof e=="number"?[e,e]:[10,10];return d(s.src,{...a.modifiers.value,width:r[0],height:r[1],quality:r[2]||50,blur:r[3]||3},a.options.value)}),v=u(()=>s.sizes?l.value.src:d(s.src,a.modifiers.value,a.options.value)),g=u(()=>n.value?n.value:v.value),k=I().isHydrating;return P(()=>{if(n.value||s.custom){const e=new Image;v.value&&(e.src=v.value),s.sizes&&(e.sizes=l.value.sizes||"",e.srcset=l.value.srcset),e.onload=r=>{i.value=!0,t("load",r)},e.onerror=r=>{t("error",r)},B("nuxt-image");return}o.value&&(o.value.complete&&k&&(o.value.getAttribute("data-error")?t("error",new Event("error")):t("load",new Event("load"))),o.value.onload=e=>{t("load",e)},o.value.onerror=e=>{t("error",e)})}),(e,r)=>e.custom?N(e.$slots,"default",U(h({key:1},{...c(p)?{onerror:"this.setAttribute('data-error', 1)"}:{},imgAttrs:{...f.value,...c(m)},isLoaded:i.value,src:g.value}))):(L(),C("img",h({key:0,ref_key:"imgEl",ref:o,class:n.value&&!i.value?e.placeholderClass:void 0},{...c(p)?{onerror:"this.setAttribute('data-error', 1)"}:{},...f.value,...c(m)},{src:g.value}),null,16,$))}});
1export{F 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.