PageSourceSearch

https://larepublica.pe/_next/static/chunks/pages/sitemap/imagenes/[seccion]-f223f4a2bfe81296.js

js larepublica.pe collected 2026-10-02 02:19:03 UTC 2,312 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6824],{29756:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/sitemap/imagenes/[seccion]",function(){return a(60088)}])},60088:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>i});var n=a(39847),l=a(89027);let o=()=>{};o.getInitialProps=async e=>{let{res:t,query:a,apolloClient:o}=e;t.setHeader("Content-Type","text/xml; charset=UTF-8");let i=new Date,r=new Date;(0,l.yM)(i,"iso-2"),r.setDate(r.getDate()-2),(0,l.yM)(r,"iso-2");let{seccion:s}=a,c=s.replace(".xml","");if(!(a&&a.seccion&&a.seccion.includes("xml"))||"home"===c)return t.write('<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"\n    xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"></rss>'),t.end(),{error:404};try{let e=await (0,n.A)("articles",{limit:100,category_slug:c,sitemap:!0},o);return t.write((e=>{let t="",a=null;if(e){let{articles:n}=e;return n&&n.data&&n.data.length&&(t=n.data.map(e=>{var t;let{slug:n,update_date:o,data:i}=e,r=null==(t=i.multimedia)?void 0:t.filter(e=>"video"==e.type||"image"==e.type);return r&&(a=r.map(e=>{var t;let{data:{title:a,alt:n}}=e,l="image"==e.type?null==e?void 0:e.path:null==e||null==(t=e.data)?void 0:t.image_path;return"<image:image>\n                              <image:loc>".concat(l,"></image:loc>\n                              <image:title><![CDATA[").concat(a,"]]></image:title>\n                              <image:caption><![CDATA[").concat(n||a,"]]></image:caption>\n                              <image:geo_location>Lima, Per\xfa</image:geo_location>\n                          </image:image>")})),"<url>\n                          <loc>https://larepublica.pe".concat(n,"</loc>\n                          <lastmod>").concat((0,l.yM)(o,"iso-global"),"</lastmod>\n                              ").concat(a,"\n                          </url>")}).join("")),'<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"\n          xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">'.concat(t,"</urlset>")}})(e)),t.end(),{content:e}}catch(e){return console.error("Error: ",e),{error:404}}};let i=o}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=29756)),_N_E=e.O()}]);

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.