PageSourceSearch

https://tochno.st/_nuxt/Cr_66V1w.js

js tochno.st collected 2026-09-25 08:27:26 UTC 1,839 bytes, 1 lines download raw bytes

1import{e as w,s as v,f as _,g as h,h as l,i as p,r as y,u as R,j as S,k as z,l as B,o as E,c as M,b as k,m as r}from"./DgttN8Q_.js";import{u as x,_ as H}from"./ZP1MpgxM.js";import{u as P}from"./jG_OYvwS.js";import"./DXg6EcfZ.js";import"./CqIADfsE.js";import"./BzEA7Oob.js";import"./BV26t87A.js";import"./CXXg9FCC.js";import"./JhHjMal8.js";import"./DLhWdRnk.js";import"./C-n1W3Gn.js";import"./D8m6L-wo.js";import"./BOInjHVb.js";import"./ZhWAdK_X.js";import"./Cy7uFtrf.js";import"./z6wUNT-H.js";import"./SxrpxHGF.js";import"./DvmNImj2.js";import"./BDThqjE3.js";import"./CNeT7pVu.js";const ee=w({__name:"[slug]",setup(C){v("widget");const u=_(),t=String(u.params.slug||""),a=P(),{regions:c,legend:d,problems:g}=h(a);if(!t)throw l({statusCode:404,statusMessage:"Страница не найдена"});if(g.value.length>0&&!a.getProblemBySlug(t))throw l({statusCode:404,statusMessage:"Проблема не найдена"});const{mapData:i}=x(()=>t),m=p(()=>a.getProblemBySlug(t)?.title||""),f=p(()=>[...i.value.availableYears??[]].sort((e,o)=>e-o)),n=y(null),s=()=>{if(window.parent===window)return;const e=n.value?.offsetHeight??document.documentElement.scrollHeight;window.parent.postMessage({id:t,h:`${e}px`},"*")};return R({title:m,meta:[{name:"robots",content:"noindex, nofollow"}]}),S(()=>{s();const e=typeof ResizeObserver<"u"?new ResizeObserver(()=>{s()}):null;z(n,(o,L,b)=>{!o||!e||(e.observe(o),b(()=>e.unobserve(o)))},{immediate:!0}),window.addEventListener("resize",s),B(()=>{e?.disconnect(),window.removeEventListener("resize",s)})}),(e,o)=>(E(),M("div",{ref_key:"rootRef",ref:n,class:"map-widget"},[k(H,{"problem-slug":r(t),"map-data":r(i),"map-title":r(m),"legend-years":r(f),regions:r(c),legend:r(d),embed:""},null,8,["problem-slug","map-data","map-title","legend-years","regions","legend"])],512))}});export{ee 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.