PageSourceSearch

https://datoasturias.com/dist/assets/PosterSection-BHrj2gmq.js

js datoasturias.com collected 2026-09-24 13:58:09 UTC 37,666 bytes, 11 lines download raw bytes

1import{r as i,j as o}from"./vendor-react-EtBdcxzB.js";import{c as De,ad as tt,a1 as rt,y as ot,aD as Fe,aH as Ae,ag as ze,u as lt}from"./main-nkazyCpV.js";import{m as nt}from"./maplibre-gl-B7Cl8eD_.js";import{b as at,l as it,a as st}from"./geoData-BiFbAUJs.js";import{A as D}from"./maps-KIksgkz-.js";import{m as Be,M as oe,a as Ue}from"./mapAttribution-BTr99jt9.js";import{C as Ie}from"./chevron-down-DGeXeP3c.js";import{P as Ge}from"./palette-B2xLdaFz.js";import{S as ct}from"./scissors-CvYD2_VU.js";/**
2 * @license lucide-react v0.469.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const dt=De("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);/**
7 * @license lucide-react v0.469.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const ft=De("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);function ut(){return at("parroquias.geojson",null)}const bt="https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json",_e=Ue(oe.CARTO),gt=Ue(oe.MAPZEN_TERRAIN),ae={type:"FeatureCollection",features:[]},re={roads:{key:"C",label:"Carreteras"},buildings:{key:"E",label:"Edificios"},water:{key:"A",label:"Agua"},terrain:{key:"T",label:"Terreno"}},ie=Object.keys(re),qe={roads:["neon-roads-glow","neon-roads"],buildings:["neon-buildings"],water:["neon-water","neon-waterway"],terrain:["neon-landuse","neon-landcover"]},yt=Object.values(qe).flat(),pt=["muni-glow-outer","muni-glow-inner","muni-sharp","muni-fill"],ht=["grid-lines","grid-labels"],F=[null,1,.5,.25,.1],mt=["s","c","clip","f","v","p","k","b","sea","3d","g","lat","lng","z","r","pi"],ce=[{label:"Full",ratio:null},{label:"16:9",ratio:16/9},{label:"3:2",ratio:3/2},{label:"1:1",ratio:1},{label:"2:3",ratio:2/3},{label:"9:16",ratio:9/16},{label:"A4",ratio:210/297}],v={cyan:{label:"Cyan",dot:"#00ffff",bg:"#000000",maskFill:"#000000",line:"#00ffff",border:"#ff00ff",parish:"#b478ff",titleColor:"#00ffff",subtitleColor:"rgba(200,120,255,0.9)",subtitleGlow:"rgba(200,120,255,0.4)",vector:{roads:"#00ffff",buildings:"#ff00ff",water:"#0088ff",terrain:"#00aaaa"}},green:{label:"Matrix",dot:"#00ff41",bg:"#000000",maskFill:"#000000",line:"#00ff41",border:"#00ff41",parish:"#00ff41",titleColor:"#00ff41",subtitleColor:"rgba(0,255,65,0.7)",subtitleGlow:"rgba(0,255,65,0.3)",vector:{roads:"#00ff41",buildings:"#80ff00",water:"#00cc88",terrain:"#1a8c1a"}},gold:{label:"Oro",dot:"#ffd700",bg:"#000000",maskFill:"#000000",line:"#ffd700",border:"#ff6b00",parish:"#ffa500",titleColor:"#ffd700",subtitleColor:"rgba(255,165,0,0.85)",subtitleGlow:"rgba(255,165,0,0.4)",vector:{roads:"#ffd700",buildings:"#ff6b00",water:"#cc8800",terrain:"#998200"}},white:{label:"Frost",dot:"#e0f0ff",bg:"#000000",maskFill:"#000000",line:"#e0f0ff",border:"#60a5fa",parish:"#60a5fa",titleColor:"#e0f0ff",subtitleColor:"rgba(96,165,250,0.8)",subtitleGlow:"rgba(96,165,250,0.4)",vector:{roads:"#e0f0ff",buildings:"#60a5fa",water:"#3b82f6",terrain:"#4a7ab5"}},noir:{label:"Noir",dot:"#c0392b",bg:"#f5f0e8",maskFill:"#f5f0e8",line:"#1a1a2e",border:"#c0392b",parish:"#1a1a2e",titleColor:"#1a1a2e",subt
11itleColor:"rgba(192,57,43,0.85)",subtitleGlow:"rgba(192,57,43,0.2)",vector:{roads:"#2c3e50",buildings:"#8e44ad",water:"#2980b9",terrain:"#d5c4a1"}},blueprint:{label:"Blueprint",dot:"#e0ecff",bg:"#0a1628",maskFill:"#0a1628",line:"#c8dcff",border:"#ffffff",parish:"#c8dcff",titleColor:"#c8dcff",subtitleColor:"rgba(255,255,255,0.7)",subtitleGlow:"rgba(200,220,255,0.3)",vector:{roads:"#c8dcff",buildings:"#ffffff",water:"#5b9bd5",terrain:"#3a6a9f"}},ink:{label:"Tinta",dot:"#8b7355",bg:"#fffef5",maskFill:"#fffef5",line:"#2c2c2c",border:"#2c2c2c",parish:"#2c2c2c",titleColor:"#2c2c2c",subtitleColor:"rgba(44,44,44,0.6)",subtitleGlow:"rgba(44,44,44,0.0)",vector:{roads:"#555555",buildings:"#888888",water:"#4a90d9",terrain:"#e8e0d0"}},sunset:{label:"Sunset",dot:"#ff6b6b",bg:"#0a0a12",maskFill:"#0a0a12",line:"#ff6b6b",border:"#ffa502",parish:"#ff9ff3",titleColor:"#ffa502",subtitleColor:"rgba(255,107,107,0.85)",subtitleGlow:"rgba(255,107,107,0.4)",vector:{roads:"#ff6b6b",buildings:"#ffa502",water:"#5f27cd",terrain:"#341f97"}},emerald:{label:"Esmeralda",dot:"#2ecc71",bg:"#05120a",maskFill:"#05120a",line:"#2ecc71",border:"#1abc9c",parish:"#55efc4",titleColor:"#2ecc71",subtitleColor:"rgba(85,239,196,0.8)",subtitleGlow:"rgba(46,204,113,0.35)",vector:{roads:"#2ecc71",buildings:"#1abc9c",water:"#00b894",terrain:"#0a6e42"}},ocean:{label:"Océano",dot:"#0984e3",bg:"#020c1b",maskFill:"#020c1b",line:"#0984e3",border:"#00cec9",parish:"#74b9ff",titleColor:"#00cec9",subtitleColor:"rgba(9,132,227,0.85)",subtitleGlow:"rgba(9,132,227,0.4)",vector:{roads:"#74b9ff",buildings:"#00cec9",water:"#0652DD",terrain:"#0a3d62"}},terracotta:{label:"Terracota",dot:"#e17055",bg:"#1a0f0a",maskFill:"#1a0f0a",line:"#e17055",border:"#d4a373",parish:"#cc8e6e",titleColor:"#d4a373",subtitleColor:"rgba(225,112,85,0.85)",subtitleGlow:"rgba(225,112,85,0.3)",vector:{roads:"#e17055",buildings:"#d4a373",water:"#6c5ce7",terrain:"#8b5e3c"}},sakura:{label:"Sakura",dot:"#fd79a8",bg:"#0d0015",maskFill:"#0d0015",line:"#fd79a8",border:"#e84393",parish:"#f8a5c2",titleColor:"#fd79a8",subtitleColor:"rgba(232,67,147,0.85)",subtitleGlow:"rgba(253,121,168,0.4)",vector:{roads:"#fd79a8",buildings:"#e84393",water:"#a29bfe",terrain:"#6c2d5b"}},copper:{label:"Cobre",dot:"#cd7f32",bg:"#0a0806",maskFill:"#0a0806",line:"#cd7f32",border:"#b87333",parish:"#da9a5b",titleColor:"#cd7f32",subtitleColor:"rgba(184,115,51,0.85)",subtitleGlow:"rgba(205,127,50,0.35)",vector:{roads:"#cd7f32",buildings:"#b87333",water:"#5a8f7b",terrain:"#6b4226"}},negativo:{label:"Negativo",dot:"#ffffff",bg:"#000000",maskFill:"#000000",line:"#ffffff",border:"#ffffff",parish:"#ffffff",titleColor:"#ffffff",subtitleColor:"rgba(255,255,255,0.5)",subtitleGlow:"rgba(255,255,255,0.0)",vector:{roads:"#ffffff",buildings:"#cccccc",water:"#ffffff",terrain:"#1a1a1a"}}},B=Object.keys(v),se=(t,r)=>{const n=t>=0?"N":"S",c=r>=0?"E":"W";return`${Math.abs(t).toFixed(4)}° ${n}, ${Math.abs(r).toFixed(4)}° ${c}`},ee=(t,r,n)=>{if(!t||!n)return t;const c=n.toLowerCase();return{type:"FeatureCollection",features:t.features.filter(a=>(a.properties[r]||"").toLowerCase()===c)}};function $e(t){const r=[[-180,-90],[180,-90],[180,90],[-180,90],[-180,-90]],n=[];if(t!=null&&t.features)for(const c of t.features){const a=c.geometry;if(a.type==="Polygon")n.push(a.coordinates[0]);else if(a.type==="MultiPolygon")for(const m of a.coordinates)n.push(m[0])}return{type:"Feature",geometry:{type:"Polygon",coordinates:[r,...n]}}}function te(t){var s;if(!((s=t==null?void 0:t.features)!=null&&s.length))return null;let r=1/0,n=1/0,c=-1/0,a=-1/0;const m=([k,h])=>{r=Math.min(r,k),n=Math.min(n,h),c=Math.max(c,k),a=Math.max(a,h)},f=k=>k.forEach(m);for(const k of t.features){const h=k.geometry;h.type==="Polygon"?h.coordinates.forEach(f):h.type==="MultiPolygon"&&h.coordinates.forEach(U=>U.forEach(f))}return r<1/0?[[r,n],[c,a]]:null}function xt(t){return{lat:(t[0][1]+t[1][1])/2,lng:(t[0][0]+t[1][0])/2}}function Oe(t=.5){const r=[];for(let f=Math.ceil(42/t)*t;f<=44.5;f=+(f+t).toFixed(2))r.push({type:"Feature",properties:{label:`${f.toFixed(1)}°`},geometry:{type:"LineString",coordinates:[[-8.5,f],[-3,f]]}});for(let f=Math.ceil(-8.5/t)*t;f<=-3;f=+(f+t).toFixed(2))r.push({type:"Feature",properties:{label:`${Math.abs(f).toFixed(1)}°`},geometry:{type:"LineString",coordinates:[[f,42],[f,44.5]]}});return{type:"FeatureCollection",features:r}}async function wt(t){const r=await fetch(bt);
11if(!r.ok)throw new Error(`CARTO style request failed (${r.status})`);const n=await r.json(),c=Object.entries(n.sources).find(([,m])=>m.type==="vector"),a=(c==null?void 0:c[0])||"carto";return n.sources[a]&&(n.sources[a].attribution=Be(oe.CARTO)),n.layers=[{id:"background",type:"background",paint:{"background-color":t}}],{style:n,vectorSource:a}}function vt(t,r,n){t.addLayer({id:"neon-landcover",type:"fill",source:r,"source-layer":"landcover",paint:{"fill-color":n.vector.terrain,"fill-opacity":.25},layout:{visibility:"none"}}),t.addLayer({id:"neon-landuse",type:"fill",source:r,"source-layer":"landuse",paint:{"fill-color":n.vector.terrain,"fill-opacity":.35},layout:{visibility:"none"}}),t.addLayer({id:"neon-water",type:"fill",source:r,"source-layer":"water",paint:{"fill-color":n.vector.water,"fill-opacity":.4},layout:{visibility:"none"}}),t.addLayer({id:"neon-waterway",type:"line",source:r,"source-layer":"waterway",paint:{"line-color":n.vector.water,"line-width":1,"line-opacity":.5,"line-blur":1},layout:{visibility:"none"},minzoom:10}),t.addLayer({id:"neon-roads-glow",type:"line",source:r,"source-layer":"transportation",filter:["in","class","motorway","trunk"],paint:{"line-color":n.vector.roads,"line-width":["interpolate",["linear"],["zoom"],8,3,13,8,16,14],"line-blur":6,"line-opacity":.2},layout:{visibility:"none"},minzoom:7}),t.addLayer({id:"neon-roads",type:"line",source:r,"source-layer":"transportation",paint:{"line-color":n.vector.roads,"line-width":["interpolate",["linear"],["zoom"],8,["match",["get","class"],"motorway",1.5,"trunk",1.2,"primary",.8,"secondary",.5,"tertiary",.3,.2],13,["match",["get","class"],"motorway",3.5,"trunk",3,"primary",2,"secondary",1.3,"tertiary",.8,.5],16,["match",["get","class"],"motorway",6,"trunk",5,"primary",3.5,"secondary",2.5,"tertiary",1.5,.8]],"line-opacity":["match",["get","class"],"motorway",.85,"trunk",.75,"primary",.65,"secondary",.5,"tertiary",.4,.3],"line-blur":["match",["get","class"],"motorway",0,"trunk",0,"primary",.5,.8]},layout:{visibility:"none"},minzoom:7}),t.addLayer({id:"neon-buildings",type:"fill",source:r,"source-layer":"building",paint:{"fill-color":n.vector.buildings,"fill-opacity":.45,"fill-outline-color":n.vector.buildings},layout:{visibility:"none"},minzoom:13}),t.addLayer({id:"hillshade",type:"hillshade",source:"dem",paint:{"hillshade-exaggeration":.35,"hillshade-shadow-color":"#000000","hillshade-highlight-color":"#ffffff","hillshade-accent-color":n.line,"hillshade-illumination-direction":315},layout:{visibility:"none"}}),t.addLayer({id:"mask",type:"fill",source:"mask",paint:{"fill-color":n.maskFill,"fill-opacity":1}}),t.addLayer({id:"neon-sea",type:"fill",source:r,"source-layer":"water",paint:{"fill-color":n.vector.water,"fill-opacity":.25},layout:{visibility:"none"}}),t.addLayer({id:"neon-sea-glow",type:"line",source:r,"source-layer":"water",paint:{"line-color":n.vector.water,"line-width":1.5,"line-blur":6,"line-opacity":.3},layout:{visibility:"none"}}),t.addLayer({id:"muni-glow-outer",type:"line",source:"municipalities",paint:{"line-color":n.line,"line-width":2,"line-blur":14,"line-opacity":.15}}),t.addLayer({id:"muni-glow-inner",type:"line",source:"municipalities",paint:{"line-color":n.line,"line-width":2,"line-blur":5,"line-opacity":.35}}),t.addLayer({id:"muni-fill",type:"fill",source:"municipalities",paint:{"fill-color":n.line,"fill-opacity":.02}}),t.addLayer({id:"parishes",type:"line",source:"parishes",paint:{"line-color":n.parish,"line-width":.5,"line-opacity":.5}}),t.addLayer({id:"muni-sharp",type:"line",source:"municipalities",paint:{"line-color":n.line,"line-width":1.2,"line-opacity":.9}}),t.addLayer({id:"border-glow",type:"line",source:"border",paint:{"line-color":n.border,"line-width":2,"line-blur":10,"line-opacity":.25}}),t.addLayer({id:"border-sharp",type:"line",source:"border",paint:{"line-color":n.border,"line-width":2.5,"line-opacity":1}}),t.addLayer({id:"grid-lines",type:"line",source:"grid",paint:{"line-color":n.line,"line-width":.8,"line-opacity":.35,"line-dasharray":[3,2]},layout:{visibility:"none"}}),t.addLayer({id:"grid-labels",type:"symbol",source:"grid",layout:{"symbol-placement":"line","text-field":["get","label"],"text-size":9,"text-font":["Open Sans Regular","Arial Unicode MS Regular"],"text-letter-spacing":.1,"text-rotation-alignment":"viewport","symbol-spacing":400,visibility:"none"},paint:{"text-color":n.line,"text-opacity":.55,"text-halo-color":n.bg,"text-halo-width":1.5}})}function Ct(t,r){t.setPaintProperty("background","background-color",r.bg),t.setPaintProperty("mask","fill-color",r.maskFill);
11for(const n of["muni-glow-outer","muni-glow-inner","muni-sharp"])t.setPaintProperty(n,"line-color",r.line);t.setPaintProperty("muni-fill","fill-color",r.line),t.setPaintProperty("parishes","line-color",r.parish),t.setPaintProperty("border-glow","line-color",r.border),t.setPaintProperty("border-sharp","line-color",r.border),t.getLayer("neon-sea")&&t.setPaintProperty("neon-sea","fill-color",r.vector.water),t.getLayer("neon-sea-glow")&&t.setPaintProperty("neon-sea-glow","line-color",r.vector.water);for(const n of yt){if(!t.getLayer(n))continue;const c=n.replace("neon-","").replace("-glow",""),a=c==="roads"||c==="waterway"?c:c==="landuse"||c==="landcover"?"terrain":c==="buildings"?"buildings":"water",m=a==="waterway"?"water":a==="landuse"||a==="landcover"?"terrain":a,f=r.vector[m]||r.vector[a];if(!f)continue;t.getLayer(n).type==="line"?t.setPaintProperty(n,"line-color",f):(t.setPaintProperty(n,"fill-color",f),n==="neon-buildings"&&t.setPaintProperty(n,"fill-outline-color",f))}t.getLayer("hillshade")&&t.setPaintProperty("hillshade","hillshade-accent-color",r.line),t.getLayer("grid-lines")&&t.setPaintProperty("grid-lines","line-color",r.line),t.getLayer("grid-labels")&&(t.setPaintProperty("grid-labels","text-color",r.line),t.setPaintProperty("grid-labels","text-halo-color",r.bg))}function jt(t=window.location.search){const r=new URLSearchParams(t),n=(c,a,m)=>{const f=r.get(c);if(f==null||f.trim()==="")return null;const s=Number(f);return Number.isFinite(s)&&s>=a&&s<=m?s:null};return{scheme:B.includes(r.get("s"))?r.get("s"):"cyan",concejo:r.get("c")||null,clipMode:r.has("clip")?r.get("clip")!=="0":!0,formatIdx:r.has("f")?Math.min(Math.max(+r.get("f")||0,0),ce.length-1):0,vectorEnabled:{roads:(r.get("v")||"").includes("r"),buildings:(r.get("v")||"").includes("e"),water:(r.get("v")||"").includes("a"),terrain:(r.get("v")||"").includes("t")},showParishes:r.has("p")?r.get("p")!=="0":!0,showConcejos:r.has("k")?r.get("k")!=="0":!0,showBorder:r.has("b")?r.get("b")!=="0":!0,showSea:r.get("sea")==="1",showTerrain:r.get("3d")==="1",gridStep:r.has("g")&&F.includes(+r.get("g"))?+r.get("g"):null,customTitle:null,customSubtitle:null,lat:n("lat",-90,90),lng:n("lng",-180,180),z:n("z",0,20),bearing:n("r",-180,180)??0,pitch:n("pi",0,70)??0}}function Nt(t){const r=new URLSearchParams;
11t.scheme!=="cyan"&&r.set("s",t.scheme),t.concejo&&r.set("c",t.concejo),t.clipMode||r.set("clip","0"),t.formatIdx&&r.set("f",t.formatIdx);const n=[t.vectorEnabled.roads&&"r",t.vectorEnabled.buildings&&"e",t.vectorEnabled.water&&"a",t.vectorEnabled.terrain&&"t"].filter(Boolean).join("");return n&&r.set("v",n),t.showParishes||r.set("p","0"),t.showConcejos||r.set("k","0"),t.showBorder||r.set("b","0"),t.showSea&&r.set("sea","1"),t.showTerrain&&r.set("3d","1"),t.gridStep&&r.set("g",t.gridStep),t.lat!=null&&t.lng!=null&&(r.set("lat",t.lat.toFixed(4)),r.set("lng",t.lng.toFixed(4))),t.z!=null&&r.set("z",t.z.toFixed(2)),t.bearing&&Math.abs(t.bearing)>.5&&r.set("r",t.bearing.toFixed(1)),t.pitch&&t.pitch>.5&&r.set("pi",t.pitch.toFixed(1)),r}function kt({open:t,onClose:r}){const n=i.useRef(null),c=i.useRef(null),a=i.useRef(null),m=i.useRef(null),f=i.useRef(null),s=i.useMemo(()=>jt(),[]),k=s.lat!=null&&s.lng!=null,[h,U]=i.useState(s.scheme),[A,de]=i.useState(s.showParishes),[z,fe]=i.useState(s.showConcejos),[I,ue]=i.useState(s.showBorder),[G,be]=i.useState(s.showSea),[C,ge]=i.useState(s.showTerrain),[w,ye]=i.useState(s.gridStep),[S,He]=i.useState(s.vectorEnabled),[R,pe]=i.useState(s.clipMode),[E,Y]=i.useState(null),[g,K]=i.useState(!1),[he,le]=i.useState(null),[Ve,Ye]=i.useState(0),[b,W]=i.useState(s.concejo),[M,T]=i.useState(!1),[q,L]=i.useState(""),[Ke,me]=i.useState(s.customTitle),[We,xe]=i.useState(s.customSubtitle),[Z,Ze]=i.useState(s.formatIdx),[_,Qe]=i.useState({lat:s.lat,lng:s.lng,z:s.z,bearing:s.bearing,pitch:s.pitch}),H=i.useRef(null),V=i.useRef(null),y=v[h],we=b||"Asturias",$=Ke??we,ve=i.useMemo(()=>{if(!g||!m.current)return se(D[0],D[1]);const{muniGeo:e,bordeGeo:l}=m.current,d=b?ee(e,"NAMEUNIT",b):l,u=te(d);if(!u)return se(D[0],D[1]);const x=xt(u);return se(x.lat,x.lng)},[g,b]),Ce=We??ve,j=ce[Z],Je=C?`${_e} · ${gt}`:_e,Xe=i.useMemo(()=>{const e={backgroundColor:y.bg};if(!j.ratio)return{...e,width:"100vw",height:"100vh"};const l=window.innerWidth,d=window.innerHeight,u=j.ratio;let x,N;return l/d>u?(N=d,x=d*u):(x=l,N=l/u),{...e,width:x,height:N}},[j.ratio,y.bg]),ne=i.useMemo(()=>{var e;return!g||!((e=m.current)!=null&&e.muniGeo)?[]:m.current.muniGeo.features.map(l=>
11l.properties.NAMEUNIT).filter(Boolean).sort((l,d)=>l.localeCompare(d,"es"))},[g]),je=i.useMemo(()=>{if(!q)return ne;const e=q.toLowerCase();return ne.filter(l=>l.toLowerCase().includes(e))},[ne,q]),Ne=i.useRef(!1);i.useEffect(()=>{if(!Ne.current){Ne.current=!0;return}me(null),xe(null)},[b]),i.useEffect(()=>{H.current&&document.activeElement!==H.current&&(H.current.textContent=$)},[$]),i.useEffect(()=>{V.current&&document.activeElement!==V.current&&(V.current.textContent=Ce)},[Ce]),i.useEffect(()=>{if(!t||!n.current)return;let e=!1,l=null;return le(null),(async()=>{try{const d=v[s.scheme],[{style:u,vectorSource:x},N,Q,O]=await Promise.all([wt(d.bg),it(),ut(),st()]);if(e||!n.current)return;m.current={muniGeo:N,parroquiasGeo:Q,bordeGeo:O},f.current=x;const J=k,p=new nt.Map({container:n.current,style:u,center:J?[s.lng,s.lat]:[D[1],D[0]],zoom:s.z??8,bearing:s.bearing,pitch:s.pitch,maxPitch:70,maxZoom:20,attributionControl:!1,preserveDrawingBuffer:!0});l=p,a.current=p,p.on("moveend",()=>{if(a.current!==p)return;const P=p.getCenter();Qe({lat:P.lat,lng:P.lng,z:p.getZoom(),bearing:p.getBearing(),pitch:p.getPitch()})}),p.on("load",()=>{if(!(e||a.current!==p))try{if(p.addSource("municipalities",{type:"geojson",data:N}),p.addSource("parishes",{type:"geojson",data:Q}),p.addSource("border",{type:"geojson",data:O}),p.addSource("mask",{type:"geojson",data:$e(O)}),p.addSource("grid",{type:"geojson",data:Oe()}),p.addSource("dem",{type:"raster-dem",tiles:["https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png"],encoding:"terrarium",tileSize:256,maxzoom:15,attribution:Be(oe.MAPZEN_TERRAIN)}),vt(p,x,d),!J){const P=te(O);P&&p.fitBounds(P,{padding:40,animate:!1})}K(!0)}catch(P){if(e||a.current!==p)return;console.warn("Neon poster: map setup failed",P),p.remove(),a.current=null,l=null,K(!1),le("No se pudo preparar el mapa del póster.")}})}catch(d){if(e)return;console.warn("Neon poster: initialization failed",d);try{l==null||l.remove()}catch{}a.current===l&&(a.current=null),l=null,m.current=null,f.current=null,K(!1),le("No se pudo cargar el mapa del póster.")}})(),()=>{e=!0,a.current===l&&(a.current=null);try{l==null||l.remove()}catch{}m.current=null,f.current=null,K(!1)}},[t,Ve,k,s.bearing,s.lat,s.lng,s.pitch,s.scheme,s.z]);const ke=i.useRef(k);i.useEffect(()=>{var p,P,Re,Me;if(!g||!a.current||!m.current)return;const e=a.current,{muniGeo:l,parroquiasGeo:d,bordeGeo:u}=m.current,x=R&&b,N=x?ee(l,"NAMEUNIT",b):l,Q=x?ee(d,"Concejo",b):d,O=x?N:u,J=x?N:u;if((p=e.getSource("municipalities"))==null||p.setData(N||ae),(P=e.getSource("parishes"))==null||P.setData(Q||ae),(Re=e.getSource("border"))==null||Re.setData(O||ae),(Me=e.getSource("mask"))==null||Me.setData($e(J)),ke.current){ke.current=!1;return}if(!R&&b){const X=ee(l,"NAMEUNIT",b),Te=te(X);Te&&e.fitBounds(Te,{padding:80,animate:!0})}else{const X=te(N);X&&e.fitBounds(X,{padding:x?60:40,animate:!0})}},[b,R,g]),i.useEffect(()=>{if(!g||!a.current)return;const e=a.current;Ct(e,v[h]),n.current&&(n.current.style.backgroundColor=v[h].bg)},[h,g]),i.useEffect(()=>{if(!g||!a.current)return;const e=a.current;for(const l of ie){const d=S[l]?"visible":"none";for(const u of qe[l])e.getLayer(u)&&e.setLayoutProperty(u,"visibility",d)}},[S,g]),i.useEffect(()=>{!g||!a.current||a.current.setLayoutProperty("parishes","visibility",A?"visible":"none")},[A,g]),i.useEffect(()=>{if(!g||!a.current)return;const e=z?"visible":"none";for(const l of pt)a.current.getLayer(l)&&a.current.setLayoutProperty(l,"visibility",e)},[z,g]),i.useEffect(()=>{if(!g||!a.current)return;const e=I?"visible":"none";for(const l of["border-glow","border-sharp"])a.current.getLayer(l)&&a.current.setLayoutProperty(l,"visibility",e)},[I,g]),i.useEffect(()=>{if(!g||!a.current)return;const e=G?"visible":"none";for(const l of["neon-sea","neon-sea-glow"])a.current.getLayer(l)&&a.current.setLayoutProperty(l,"visibility",e)},[G,g]),i.useEffect(()=>{var d;if(!g||!a.current)return;const e=a.current,l=w?"visible":"none";for(const u of ht)e.getLayer(u)&&e.setLayoutProperty(u,"visibility",l);w&&((d=e.getSource("grid"))==null||d.setData(Oe(w)))},[w,g]),i.useEffect(()=>{if(!g||!a.current)return;const e=a.current;C?(e.setTerrain({source:"dem",exaggeration:1.3}),e.getLayer("hillshade")&&e.setLayoutProperty("hillshade","visibility","visible"),e.getPitch()<30&&e.easeTo({pitch:50,duration:800})):(e.setTerrain(null),e.getLayer("hillshade")&&e.setLayoutProperty("hillshade","visibility","none"))},[C,g]),i.useEffect(()=>{if(!g||!a.current)return;const e=setTimeout(()=>{var l;return(l=a.current)==null?void 0:l.resize()},50);return()=>clearTimeout(e)},[Z,g]),i.useEffect(()=>{if(!t)return;const e=Nt({scheme:h,concejo:b,clipMode:R,formatIdx:Z,vectorEnabled:S,showParishes:A,showConcejos:z,showBorder:I,showSea:G,
11showTerrain:C,gridStep:w,lat:_.lat,lng:_.lng,z:_.z,bearing:_.bearing,pitch:_.pitch});tt(mt,e)},[t,h,b,R,Z,S,A,z,I,G,C,w,_]),i.useEffect(()=>{if(!t)return;const e=l=>{l.key==="Escape"&&(M?(T(!1),L("")):E?Y(null):r())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t,r,M,E]);const Se=i.useCallback(e=>{He(l=>({...l,[e]:!l[e]}))},[]),et=i.useCallback(()=>{U(e=>B[(B.indexOf(e)+1)%B.length])},[]),Pe=i.useCallback(()=>{Ze(e=>(e+1)%ce.length)},[]),Ee=i.useCallback(async()=>{const e=window.location.href;if(navigator.share)try{await navigator.share({title:`Poster — ${$}`,url:e});return}catch{}await navigator.clipboard.writeText(e)},[$]),Le=i.useCallback(async()=>{if(c.current)try{const{domToPng:e}=await rt(async()=>{const{domToPng:u}=await import("./index-B0_Hw-zY.js");return{domToPng:u}},[]),l=await e(c.current,{backgroundColor:y.bg,scale:2,filter:u=>{var x;return((x=u==null?void 0:u.dataset)==null?void 0:x.neonControls)===void 0}}),d=document.createElement("a");d.download=b?`${b.toLowerCase().replace(/\s+/g,"-")}-neon.png`:"asturias-neon-poster.png",d.href=l,d.click()}catch(e){console.warn("Export failed:",e)}},[b,y.bg]);return t?o.jsxs("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center",style:{backgroundColor:"#000"},children:[o.jsxs("div",{className:"relative overflow-hidden",ref:c,style:Xe,children:[o.jsx("div",{ref:n,style:{width:"100%",height:"100%",backgroundColor:y.bg}}),he&&o.jsx("div",{className:"absolute inset-0 z-20 flex items-center justify-center bg-black/80 px-6 text-center",children:o.jsxs("div",{className:"max-w-sm rounded-xl border border-white/15 bg-black/80 p-5 text-white shadow-2xl",children:[o.jsx("p",{className:"text-sm font-semibold",children:he}),o.jsx("p",{className:"mt-1 text-xs text-white/55",children:"Comprueba la conexión y vuelve a intentarlo."}),o.jsxs("button",{type:"button",onClick:()=>Ye(e=>e+1),className:"mx-auto mt-4 flex items-center gap-1.5 rounded-md border border-white/25 px-3 py-1.5 text-xs font-medium text-white transition-colors hover:bg-white/10",children:[o.jsx(ot,{className:"h-3.5 w-3.5"}),"Reintentar"]})]})}),o.jsx("div",{className:"absolute bottom-0 left-0 right-0 pointer-events-none z-[9]",style:{height:"35%",background:`linear-gradient(to bottom, ${y.bg}00 0%, ${y.bg}40 30%, ${y.bg}cc 65%, ${y.bg} 100%)`}}),o.jsx("div",{className:"absolute top-0 left-0 right-0 pointer-events-none z-[9]",style:{height:"15%",background:`linear-gradient(to top, ${y.bg}00 0%, ${y.bg}80 60%, ${y.bg}cc 100%)`}}),o.jsxs("div",{className:"absolute bottom-14 left-0 right-0 text-center z-10 select-none px-4",children:[o.jsx("h2",{ref:H,className:"font-black tracking-[0.25em] uppercase cursor-text outline-none",style:{color:y.titleColor,fontSize:`clamp(2rem, ${$.length>12?6:$.length>8?8:10}vw, 8rem)`,wordBreak:"keep-all"},contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:!1,onFocus:()=>{const e=window.getSelection(),l=document.createRange();l.selectNodeContents(H.current),e.removeAllRanges(),e.addRange(l)},onBlur:e=>{const l=e.currentTarget.textContent.trim();me(l&&l!==we?l:null)},onKeyDown:e=>{e.key==="Enter"&&(e.preventDefault(),e.currentTarget.blur())}}),o.jsx("p",{ref:V,className:"text-sm md:text-base tracking-[0.35em] uppercase mt-3 font-light cursor-text outline-none",style:{color:y.subtitleColor,textShadow:`0 0 5px ${y.subtitleGlow}, 0 0 15px ${y.subtitleGlow}`},contentEditable:!0,suppressContentEditableWarning:!0,spellCheck:!1,onFocus:()=>{const e=window.getSelection(),l=document.createRange();l.selectNodeContents(V.current),e.removeAllRanges(),e.addRange(l)},onBlur:e=>{const l=e.currentTarget.textContent.trim();xe(l&&l!==ve?l:null)},onKeyDown:e=>{e.key==="Enter"&&(e.preventDefault(),e.currentTarget.blur())}})]}),o.jsxs("div",{className:"absolute bottom-2 inset-x-3 z-10 flex items-end justify-between gap-3 pointer-events-none",style:{color:y.titleColor,opacity:.68},children:[o.jsx("span",{className:"shrink-0 text-[10px] tracking-wider font-medium",children:"datoasturias.com"}),o.jsx("span",{className:"min-w-0 max-w-[78%] text-right text-[9px] leading-tight tracking-wide font-normal",children:Je})]}),j.ratio&&o.jsx("div",{className:"absolute inset-0 pointer-events-none z-[11] border border-white/20 rounded-sm"})]}),o.jsxs("div",{className:"fixed top-0 left-0 right-0 z-[10000] md:hidden","data-neon-controls":!0,children:[o.jsxs("div",{className:"flex items-center justify-between px-3 py-2 backdrop-blur-md",style:{backgroundColor:"rgba(0,0,0,0.88)"},children:[o.jsxs("button",{onClick:()=>{T(e=>!e),L(""),Y(e=>"layers")}
11,className:"neon-control-btn gap-1",style:{borderColor:"rgba(255,255,255,0.25)",color:"rgba(255,255,255,0.9)",width:"auto",paddingLeft:8,paddingRight:6},children:[o.jsx("span",{className:"text-xs truncate max-w-[90px]",children:b||"Asturias"}),o.jsx(Ie,{className:`h-3 w-3 flex-shrink-0 transition-transform ${M&&E==="layers"?"rotate-180":""}`})]}),o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsx("button",{onClick:()=>Y(e=>e==="styles"?null:"styles"),className:"neon-control-btn",style:{borderColor:E==="styles"?"#ffffff":"rgba(255,255,255,0.2)",color:E==="styles"?"#ffffff":"rgba(255,255,255,0.5)"},children:o.jsx(Ge,{className:"h-3.5 w-3.5"})}),o.jsx("button",{onClick:()=>{Y(e=>e==="layers"?null:"layers"),T(!1)},className:"neon-control-btn",style:{borderColor:E==="layers"?"#ffffff":"rgba(255,255,255,0.2)",color:E==="layers"?"#ffffff":"rgba(255,255,255,0.5)"},children:o.jsx(ft,{className:"h-3.5 w-3.5"})}),o.jsx("button",{onClick:Pe,className:"neon-control-btn",style:{borderColor:j.ratio?"#ffffff":"rgba(255,255,255,0.2)",color:j.ratio?"#ffffff":"rgba(255,255,255,0.5)",width:40,paddingLeft:0,paddingRight:0,justifyContent:"center"},children:o.jsx("span",{className:"text-[10px] font-mono",children:j.label})}),o.jsx("button",{onClick:Ee,className:"neon-control-btn",style:{borderColor:"rgba(255,255,255,0.25)",color:"rgba(255,255,255,0.9)"},title:"Compartir URL",children:o.jsx(Fe,{className:"h-3.5 w-3.5"})}),o.jsx("button",{onClick:Le,className:"neon-control-btn",style:{borderColor:"rgba(255,255,255,0.25)",color:"rgba(255,255,255,0.9)"},children:o.jsx(Ae,{className:"h-3.5 w-3.5"})}),o.jsx("button",{onClick:r,className:"neon-control-btn",style:{borderColor:"rgba(255,255,255,0.2)",color:"rgba(255,255,255,0.5)"},children:o.jsx(ze,{className:"h-3.5 w-3.5"})})]})]}),E==="styles"&&o.jsx("div",{className:"px-3 pb-3 pt-2 backdrop-blur-xl",style:{backgroundColor:"rgba(0,0,0,0.92)"},children:o.jsx("div",{className:"grid grid-cols-7 gap-y-3 justify-items-center",children:B.map(e=>o.jsxs("button",{onClick:()=>U(e),className:"flex flex-col items-center gap-1",children:[o.jsx("div",{className:"w-6 h-6 rounded-full border-2 transition-all duration-300",style:{backgroundColor:e===h?v[e].dot:"transparent",borderColor:v[e].dot,boxShadow:e===h?`0 0 10px ${v[e].dot}`:"none",transform:e===h?"scale(1.15)":"scale(1)"}}),o.jsx("span",{className:"text-[9px]",style:{color:e===h?v[e].dot:"rgba(255,255,255,0.45)"},children:v[e].label})]},e))})}),E==="layers"&&o.jsxs("div",{className:"px-3 pb-3 pt-1 backdrop-blur-xl overflow-y-auto",style:{backgroundColor:"rgba(0,0,0,0.92)",maxHeight:"55vh"},children:[M&&o.jsxs("div",{className:"rounded-lg border overflow-hidden mb-3",style:{borderColor:"rgba(255,255,255,0.15)"}
11,children:[o.jsx("input",{autoFocus:!0,type:"text",placeholder:"Buscar concejo…",value:q,onChange:e=>L(e.target.value),className:"w-full bg-transparent border-b px-3 py-2 text-xs outline-none",style:{borderColor:"rgba(255,255,255,0.1)",color:"rgba(255,255,255,0.9)"}}),o.jsxs("div",{className:"max-h-36 overflow-y-auto",children:[o.jsx("button",{onClick:()=>{W(null),T(!1),L("")},className:"w-full text-left px-3 py-1.5 text-xs hover:bg-white/10",style:{color:b?"rgba(255,255,255,0.5)":"#ffffff"},children:"Asturias (todo)"}),je.map(e=>o.jsx("button",{onClick:()=>{W(e),T(!1),L("")},className:"w-full text-left px-3 py-1.5 text-xs hover:bg-white/10",style:{color:b===e?"#ffffff":"rgba(255,255,255,0.5)"},children:e},e))]})]}),b&&!M&&o.jsx("div",{className:"flex items-center gap-2 mb-3",children:o.jsxs("button",{onClick:()=>pe(e=>!e),className:"px-3 py-1.5 rounded-full border text-xs font-medium transition-all",style:{borderColor:"rgba(255,255,255,0.3)",color:"rgba(255,255,255,0.9)",backgroundColor:"rgba(255,255,255,0.08)"},children:[R?"Recorte":"Enfoque"," — ",b]})}),!M&&o.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[ie.map(e=>o.jsx("button",{onClick:()=>Se(e),className:"px-2.5 py-1 rounded-full border text-[11px] font-medium transition-all",style:{borderColor:S[e]?y.vector[e]:"rgba(255,255,255,0.12)",color:S[e]?y.vector[e]:"rgba(255,255,255,0.45)",backgroundColor:S[e]?y.vector[e]+"20":"transparent"},children:re[e].label},e)),[{label:"Concejos",active:z,c:"#ffffff",toggle:()=>fe(e=>!e)},{label:"Parroquias",active:A,c:"#ffffff",toggle:()=>de(e=>!e)},{label:"Borde",active:I,c:"#ffffff",toggle:()=>ue(e=>!e)},{label:"Mar",active:G,c:"#60a5fa",toggle:()=>be(e=>!e)}].map(({label:e,active:l,toggle:d,c:u})=>o.jsx("button",{onClick:d,className:"px-2.5 py-1 rounded-full border text-[11px] font-medium transition-all",style:{borderColor:l?u:"rgba(255,255,255,0.12)",color:l?u:"rgba(255,255,255,0.45)",backgroundColor:l?u+"20":"transparent"},children:e},e)),o.jsx("button",{onClick:()=>ge(e=>!e),className:"px-2.5 py-1 rounded-full border text-[11px] font-bold transition-all",style:{borderColor:C?"#f59e0b":"rgba(255,255,255,0.12)",color:C?"#f59e0b":"rgba(255,255,255,0.45)",backgroundColor:C?"rgba(245,158,11,0.15)":"transparent"},children:"3D"}),o.jsx("button",{onClick:()=>ye(e=>F[(F.indexOf(e)+1)%F.length]),className:"px-2.5 py-1 rounded-full border text-[11px] font-medium transition-all",style:{borderColor:w?"#ffffff":"rgba(255,255,255,0.12)",color:w?"#ffffff":"rgba(255,255,255,0.45)",backgroundColor:w?"rgba(255,255,255,0.12)":"transparent"},children:w?`Retícula ${w}°`:"Retícula"})]})]})]}),o.jsx("div",{className:"fixed top-3 left-3 right-3 z-[10000] hidden md:block","data-neon-controls":!0,children:o.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-xl px-3 py-2 backdrop-blur-md",style:{backgroundColor:"rgba(0,0,0,0.88)"},children:[o.jsx("div",{className:"flex items-center gap-1.5 flex-shrink-0",children:B.map(e=>o.jsx("button",{onClick:()=>U(e),className:"w-3 h-3 rounded-full border transition-all duration-300",style:{backgroundColor:e===h?v[e].dot:"transparent",borderColor:v[e].dot,boxShadow:e===h?`0 0 8px ${v[e].dot}`:"none",transform:e===h?"scale(1.3)":"scale(1)"},title:v[e].label},e))}),o.jsxs("div",{className:"flex items-center gap-1.5",children:[o.jsxs("div",{className:"relative",children:[o.jsxs("button",{onClick:()=>{T(e=>!e),L("")},className:"neon-control-btn gap-1",style:{borderColor:"rgba(255,255,255,0.25)",color:"rgba(255,255,255,0.9)",width:"auto",paddingLeft:10,paddingRight:8},title:"Seleccionar concejo",children:[o.jsx("span",{className:"text-xs truncate max-w-[100px]",children:b||"Asturias"}),o.jsx(Ie,{className:`h-3 w-3 flex-shrink-0 transition-transform ${M?"rotate-180":""}`})]}),M&&o.jsxs("div",{className:"absolute right-0 mt-1 w-52 rounded-lg border backdrop-blur-xl overflow-hidden",style:{borderColor:"rgba(255,255,255,0.15)",backgroundColor:"rgba(0,0,0,0.92)"}
11,children:[o.jsx("input",{autoFocus:!0,type:"text",placeholder:"Buscar concejo…",value:q,onChange:e=>L(e.target.value),className:"w-full bg-transparent border-b px-3 py-2 text-xs outline-none",style:{borderColor:"rgba(255,255,255,0.1)",color:"rgba(255,255,255,0.9)"}}),o.jsxs("div",{className:"max-h-64 overflow-y-auto",children:[o.jsx("button",{onClick:()=>{W(null),T(!1),L("")},className:"w-full text-left px-3 py-1.5 text-xs hover:bg-white/10 transition-colors",style:{color:b?"rgba(255,255,255,0.5)":"#ffffff"},children:"Asturias (todo)"}),je.map(e=>o.jsx("button",{onClick:()=>{W(e),T(!1),L("")},className:"w-full text-left px-3 py-1.5 text-xs hover:bg-white/10 transition-colors",style:{color:b===e?"#ffffff":"rgba(255,255,255,0.5)"},children:e},e))]})]})]}),b&&o.jsx("button",{onClick:()=>pe(e=>!e),className:"neon-control-btn",style:{borderColor:"rgba(255,255,255,0.25)",color:"rgba(255,255,255,0.9)"},title:R?"Modo enfoque (ver todo)":"Modo recorte (solo concejo)",children:R?o.jsx(dt,{className:"h-4 w-4"}):o.jsx(ct,{className:"h-4 w-4"})}),o.jsx("div",{className:"w-px h-5",style:{backgroundColor:"rgba(255,255,255,0.12)"}}),ie.map(e=>o.jsx("button",{onClick:()=>Se(e),className:"neon-control-btn",style:{borderColor:S[e]?y.vector[e]:"rgba(255,255,255,0.15)",color:S[e]?y.vector[e]:"rgba(255,255,255,0.3)"},title:`${S[e]?"Ocultar":"Mostrar"} ${re[e].label}`,children:o.jsx("span",{className:"text-xs font-mono",children:re[e].key})},e)),o.jsx("div",{className:"w-px h-5",style:{backgroundColor:"rgba(255,255,255,0.12)"}}),[{key:"concejos",label:"C",active:z,toggle:()=>fe(e=>!e),title:"Concejos"},{key:"parroquias",label:"P",active:A,toggle:()=>de(e=>!e),title:"Parroquias"},{key:"borde",label:"B",active:I,toggle:()=>ue(e=>!e),title:"Borde"},{key:"mar",label:"M",active:G,toggle:()=>be(e=>!e),title:"Mar"}].map(({key:e,label:l,active:d,toggle:u,title:x})=>o.jsx("button",{onClick:u,className:"neon-control-btn",style:{borderColor:d?"#ffffff":"rgba(255,255,255,0.15)",color:d?"#ffffff":"rgba(255,255,255,0.3)"},title:`${d?"Ocultar":"Mostrar"} ${x}`,children:o.jsx("span",{className:"text-xs font-mono",children:l})},e)),o.jsx("button",{onClick:()=>ge(e=>!e),className:"neon-control-btn",style:{borderColor:C?"#f59e0b":"rgba(255,255,255,0.15)",color:C?"#f59e0b":"rgba(255,255,255,0.3)"},title:C?"Desactivar terreno 3D":"Activar terreno 3D",children:o.jsx("span",{className:"text-xs font-mono font-bold",children:"3D"})}),o.jsx("button",{onClick:()=>ye(e=>F[(F.indexOf(e)+1)%F.length]),className:"neon-control-btn",style:{borderColor:w?"#ffffff":"rgba(255,255,255,0.15)",color:w?"#ffffff":"rgba(255,255,255,0.3)"},title:w?`Retícula ${w}° (click para cambiar)`:"Mostrar retícula",children:o.jsx("span",{className:"text-xs font-mono",children:w?F.indexOf(w):"#"})}),o.jsx("div",{className:"w-px h-5",style:{backgroundColor:"rgba(255,255,255,0.12)"}}),o.jsx("button",{onClick:et,className:"neon-control-btn",style:{borderColor:"rgba(255,255,255,0.25)",color:"rgba(255,255,255,0.9)"},title:`Tema: ${y.label}`,children:o.jsx(Ge,{className:"h-4 w-4"})}),o.jsx("button",{onClick:Pe,className:"neon-control-btn",style:{borderColor:j.ratio?"#ffffff":"rgba(255,255,255,0.15)",color:j.ratio?"#ffffff":"rgba(255,255,255,0.9)",width:44,paddingLeft:0,paddingRight:0,justifyContent:"center"},title:`Formato: ${j.label}`,children:o.jsx("span",{className:"text-xs font-mono",children:j.label})}),o.jsx("button",{onClick:Ee,className:"neon-control-btn",style:{borderColor:"rgba(255,255,255,0.25)",color:"rgba(255,255,255,0.9)"},title:"Compartir URL",children:o.jsx(Fe,{className:"h-4 w-4"})}),o.jsx("button",{onClick:Le,className:"neon-control-btn",style:{borderColor:"rgba(255,255,255,0.25)",color:"rgba(255,255,255,0.9)"},title:"Descargar infografía",children:o.jsx(Ae,{className:"h-4 w-4"})}),o.jsx("button",{onClick:r,className:"neon-control-btn",style:{borderColor:"rgba(255,255,255,0.2)",color:"rgba(255,255,255,0.5)"},title:"Cerrar (Esc)",children:o.jsx(ze,{className:"h-4 w-4"})})]})]})})]}):null}function zt(){const{navigateTo:t,openMunicipality:r}=lt(),n=()=>{var a;if((a=window.history.state)!=null&&a.appNav){window.history.back();return}const c=new URLSearchParams(window.location.search).get("c");c?r(c):t("mapa")};return o.jsx(kt,{open:!0,onClose:n})}export{zt 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.