1"use strict";(self.webpackChunktiempo=self.webpackChunktiempo||[]).push([[5680],{7315:function(t,e,s){s.d(e,{p:function(){return i}});class i{static convert(t,e){switch(e){case this.METERS:return t;case this.FEET:return 3.2808399*t;case this.CENTIMETER:return 100*t;case this.INCHES:return 39.37*t}}}i.METERS=0,i.FEET=1,i.CENTIMETER=-1,i.INCHES=-2},5680:function(t,e,s){s.d(e,{A:function(){return p}});var i=s(1149),r=s(1918),n=s(6919),o=s(3494),a=s(9470);class h{static convert(t,e){switch(e){case this.METERS:return t;case this.MILES:return Math.round(.621371192*t)/1e3;case this.KILOMETERS:return Math.round(t/1e3)}}}h.KILOMETERS=0,h.MILES=1,h.METERS=2;var u=s(7315),l=s(3691);class c{constructor(t,e,s,i,r,n=!1){var o;this.translation=s,this.config=i,this.visibility=0,this.show=!0,this.center=!1,this.grouped=!1,this.indice=0,this.rain_grouped=0,this.perfil_grouped=[],this.snow_deep_grouped=0,this.symbol_grouped=0,this.probability_grouped=0,this.night_=!1,this.metros=!1,this.millas=!1,this.time=null!==(o=t.time)&&void 0!==o?o:t.utime,this.symbol=t.symbol,this.rain=t.rain,this.temperature=t.temperature,this.wind=t.wind,this.humidity=t.humidity,this.snow=t.snow,this.pressure=t.pressure,this.clouds=t.clouds,this.fog=t.fog,this.uv_index=t.uv_index,this.translation=s,this.visibility=t.visibility,this.day=r,this.setHourV3(e,n),-1==r.sun.status?this.night_=!0:1==r.sun.status?this.night_=!1:this.night_=this.time>r.getLastLight()||this.time<r.getFirstLight()}setHourV3(t,e=!1){let s=new Date;e?s.setTime(this.time+t):s.setTime(this.time+1e3*t),this.hour=s.getUTCHours(),this.minutes=s.getMinutes()}getDescription(t,e){return this.isNight(t,e)?this.translation.simbolos_noche_2[this.getWebValue()]:this.translation.simbolos_2[this.getWebValue()]}getDescriptionLarge(t,e){return this.isNight(t,e)?this.translation.simbolo_noche_2[this.getWebValue()]:this.translation.simbolo_2[this.getWebValue()]}getDescriptionGrouped(t,e){return this.isNight(t,e)?this.translation.simbolos_noche_2[this.symbol_grouped]:this.translation.simbolos_2[this.symbol_grouped]}getDescriptionGroupedLarge(t,e){return this.isNight(t,e)?this.translation.simbolo_noche_2[this.symbol_grouped]:this.translation.simbolo_2[this.symbol_grouped]}isNight(t,e){return this.night_}isNieve(){return 1==this.getTipoPrecipitacion()}night(t,e){return this.getSymbolLuz()?"":"n"}isObsolete(){return Math.floor((new Date).getTime())>this.time}hourFormat(){if(this.config.f12h)return this.getF12h().toUpperCase();{let t=this.minutes<10?"0"+this.minutes:`${this.minutes}`;return("0"+this.hour+":"+t).slice(-5)}}getConfig12h(){return this.config.f12h}getF12h(){let t=this.hour,e=parseInt(t)<12||24==parseInt(t)?"am":"pm",s=parseInt(t)%12;return(parseInt(t)<=12?parseInt(t):24!=parseInt(t)?parseInt(s):"12")+" "+e}getPrecip(){return this.rain.value}getRain(t="mm"){const e="in"===t?1:0;return this.rain.lluvia&&"number"==typeof this.rain.lluvia?r.Q.convert(this.rain.lluvia,e):0}getSnow(t="cm"){const e="in"===t?1:0;return this.rain.nieve&&"number"==typeof this.rain.nieve&&parseFloat((0,l.A)(this.rain.nieve,e,!1,!1))||0}getRainGrouped(t=0){return r.Q.convert(this.rain_grouped,t)}getSnowGrouped(t="cm"){const e="in"===t?1:0;return parseFloat((0,l.A)(this.rain_grouped,e,!1,!1))||0}getRainProb(){return this.probability_grouped}getTipoPrecipitacion(){if(this.rain){if(this.rain.lluvia&&this.rain.lluvia>0)return 0;if(this.rain.nieve&&this.rain.nieve>0)return 1}return-1}getRain_(){return this.rain&&"number"==typeof this.rain.probability?this.rain.probability:0}getSymbolValue(){return this.symbol.value}getSymbolLuz(){return this.symbol.luz}getPerfil(){return this.isNieve()?"N2":0==this.snow.depth?"D":"N1"}getPerfilGrouped(){return this.perfil_grouped.includes(1)&&!this.perfil_grouped.includes(0)?"N2":0==this.snow_deep_grouped?"D":"N1"}getTemperature(t=0){return n.B.convert(this.temperature.value,t)}getTemperatureFeel(t=0){return n.B.convert(this.temperature.feel,t)}getTemperatureDew(t=0){return n.B.convert(this.temperature.dew,t)}getWindSpeed(t=0){return o.Q.convert(this.wind.speed,t)}getWindMax(t=0){return o.Q.convert(this.wind.max,t)}getWindDir(){return this.wind.dir}getPressure(t=0){return a.S.convert(this.pressure,t)}getSnowLevel(t=0){return Math.round(u.p.convert(this.snow.level,t))}getUVRounded(){var t,e;return Math.round(null!==(t=this.uv_index)&&void 0!==t?t:0)>10?"11+":Math.round(null!==(e=this.uv_index)&&void 0!==e?e:0)+""}getHumidity(){return this.humidity}getCloudness(){return this.clouds}getSnowDepth(t=0){let e=-1;return 1==t&&(e=-2),Math.round(100*u.p.convert(this.snow.depth,e))/100}changeSnow(t="cm"){return"in"===t?"in":"cm"}changeAltitud(t="m"){return"m"==t?"cm":"ft"==t?"in":"cm"}
1getUvRisk(){var t;const e=Math.round(null!==(t=this.uv_index)&&void 0!==t?t:0);return e<3?this.translation.indice_riesgos[0]:e<6?this.translation.indice_riesgos[1]:e<8?this.translation.indice_riesgos[2]:e<11?this.translation.indice_riesgos[3]:this.translation.indice_riesgos[4]}getUvValor(){var t;const e=Math.round(null!==(t=this.uv_index)&&void 0!==t?t:0);return e<3?this.translation.no.toLowerCase():e<6?"6-10":e<8?"15-25":e<11?"25-50":"50+"}getDescFPS(){var t;const e=Math.round(null!==(t=this.uv_index)&&void 0!==t?t:0);return e<3?`${this.translation.fps}: ${this.translation.no.toLowerCase()}`:e<6?`${this.translation.fps}: 6-10`:e<8?`${this.translation.fps}: 15-25`:e<11?`${this.translation.fps}: 25-50`:`${this.translation.fps}: 50+`}getVisibility(t=0){return h.convert(this.visibility,t)}inMeters(){return this.metros}getFogTxt(){return this.fog?this.translation.si.charAt(0).toUpperCase()+this.translation.si.substr(1).toLowerCase():this.translation.no.charAt(0).toUpperCase()+this.translation.no.substr(1).toLowerCase()}getWebValue(){var t,e;if(!this.day.notify||!this.day.notify.rain_hard||!this.day.notify.probability)return this.symbol.value;if((null===(t=this.rain)||void 0===t?void 0:t.value)>=this.day.notify.rain_hard&&(null===(e=this.rain)||void 0===e?void 0:e.probability)>=this.day.notify.probability)switch(this.symbol.value){case 8:return 23;case 9:return 24;case 10:return 25}return this.symbol.value}}var g=s(4678),d=s(4810);class m{constructor(t,e,s,i=null){var r,n,o;this.translation=e,this.sunrise_local=0,this.sunset_local=0,this.moonrise_local=0,this.moonset_local=0,this.index_sunrise=0,this.index_sunset=0,this.first_light_local=0,this.last_light_local=0,this.index_first_light=0,this.index_last_light=0,this.notify=null,this.symbol=t.symbol,this.day=t.day,this.date=null!==(r=t.date)&&void 0!==r?r:(null===(n=t.utime)||void 0===n?void 0:n.start)+t.gap,this.zone=t.zone,this.target=t.target,this.sun=t.sun,this.moon=null!==(o=t.moon)&&void 0!==o?o:t.luna,this.translation=e,this.hours=[],this.notify=i,this.gap=t.gap,this.setLocalTime();const a=g.A.isSa?this.gap:this.zone;for(let i of t.hours)this.hours.push(new c(i,a,e,s,this,g.A.isSa));this.setIndexesSun()}getAhora(){const t=1e3*Date.now(),e=this.hours;let s=e[this.hours.length-1];for(let i=e.length-2;i>=0;i--)e[i].time+(e[i+1].time-e[i].time)/2>t&&(s=e[i]);return s}getSimboloOcurrencia(){const t=this.symbol,e=this.getAhora().hour;if(1==t||2==t||3==t||4==t)return this.translation.todo_el_dia;let s=[],i=[],r=[];for(let e of this.hours)e.symbol.value==t&&(e.isObsolete()?i.push(e.hour):s.push(e.hour),r.push(e.hour));let n=null;s&&(n=s[0]);let o=null;i&&(o=i.reverse()[0]);let a=!1,h=!1,u=!1,l=!1,c=this.getSunriseLocal()?this.getSunriseLocal().getUTCHours():0,g=this.getSunsetLocal()?this.getSunsetLocal().getUTCHours():0;for(let t of r)t<=c&&(a=!0),c<t&&t<=12&&(h=!0),12<t&&t<=g&&(u=!0),g<t&&t<=24&&(l=!0);let d="",m=null;return a&&h&&u&&l||e<=12&&h&&u&&l?d=this.translation.todo_el_dia:(m=s?n:o,d=m?c<m&&m<=12?this.translation.por_la_manana:12<m&&m<=g?this.translation.por_la_tarde:g<m&&m<=24?this.translation.por_la_noche:m<=c?this.translation.de_madrugada:"":""),d}setLocalTime(){const t=g.A.isSa?this.gap:1e3*this.zone;if(0!=this.sun.sunrise){let e=new Date;e.setTime(this.sun.sunrise+t),this.sunrise_local=e}if(0!=this.sun.sunset){let e=new Date;e.setTime(this.sun.sunset+t),this.sunset_local=e}if(0!=this.moon.moonrise){let e=new Date;g.A.isSa?e.setTime(this.moon.salida+t):e.setTime(this.moon.moonrise+t),this.moonrise_local=e}if(0!=this.moon.moonset){let e=new Date;g.A.isSa?e.setTime(this.moon.puesta+t):e.setTime(this.moon.moonset+t),this.moonset_local=e}if(this.sun.first_light&&0!=this.sun.first_light){let e=new Date;e.setTime(this.sun.first_light+t),this.first_light_local=e}if(this.sun.last_light&&0!=this.sun.last_light){let e=new Date;e.setTime(this.sun.last_light+t),this.last_light_local=e}}getTimeHourFromDate(t){return t.getUTCHours()}getTimeMinutesFromDate(t){return t.getMinutes()}getTimeFormatFromDate(t,e=!0){const s=g.A.por_horas.f12h?(t.getUTCHours()%12).toString():`0${t.getUTCHours()}`.slice(-2),i=`0${t.getMinutes()}`.slice(-2)+(g.A.por_horas.f12h?t.getUTCHours()>12?" PM":" AM":"");return(e?this.translation.amanece_a_las:this.translation.anochece_a_las).replace("{{h}}",s).replace("{{m}}",i)}getTimeStringLuz(t,e){const s=g.A.por_horas.f12h?(t.getUTCHours()%12).toString():`0${t.getUTCHours()}`.slice(-2),i=`0${t.getMinutes()}`.slice(-2)+(g.A.por_horas.f12h?t.getUTCHours()>12?" PM":" AM":"");return(e?this.translation.primera_luz_a_las:this.translation.ultima_luz_a_las).replace("{{h}}",s).replace("{{m}}",i)}getTimeFromDate(t){return 0!=t?d.A.formatTimeHM(t,g.A.por_horas.f12h):"--:--"}getFechaDiaSemanaDiaMes(){const t=this.target,e=t.toString().substring(6),s=parseInt(t.toString().substring(4,6))-1;return this.translation.fecha_diasemana_dia_mes.replace("{{dia_semana}}",this.translation.semana_pre[this.day]).replace("{{dia}}",e).replace("{{mes_may}}",this.translation.meses_genitivo[s]).replace("{{mes_min}}",this.translation.meses_genitivo[s])}
1setIndexesSun(){0!=this.sun.sunrise&&this.setIndexSunrise(),0!=this.sun.sunset&&this.setIndexSunset(),this.sun.first_light&&0!=this.sun.first_light&&this.setIndexFirstLight(),this.sun.last_light&&0!=this.sun.last_light&&this.setIndexLastLight()}setIndexSunrise(){let t=0;for(let e of this.hours){if(e.getConfig12h()){if(e.hour>this.getTimeHourFromDate(this.sunrise_local))return void(this.index_sunrise=t)}else if(e.hour>this.getTimeHourFromDate(this.sunrise_local)||e.hour==this.getTimeHourFromDate(this.sunrise_local)&&e.minutes>this.getTimeMinutesFromDate(this.sunrise_local))return void(this.index_sunrise=t);t++}}setIndexFirstLightDeprecated(){let t=0;const e=this.getTimeHourFromDate(this.first_light_local);for(let s of this.hours){if(s.hour>e)return void(this.index_first_light=t);t++}}setIndexFirstLight(){const t=this.getTimeHourFromDate(this.first_light_local);this.index_first_light=this.hours.findIndex(e=>e.hour>=t)}setIndexSunset(){let t=0,e=!1;for(let s of this.hours)s.getConfig12h()?s.hour>this.getTimeHourFromDate(this.sunset_local)&&!e&&(this.index_sunset=t-1,e=!0):(s.hour>this.getTimeHourFromDate(this.sunset_local)||s.hour==this.getTimeHourFromDate(this.sunset_local)&&s.minutes>this.getTimeMinutesFromDate(this.sunset_local))&&!e&&(this.index_sunset=t-1,e=!0),t++;0==e&&(this.index_sunset=this.hours.length-1)}setIndexLastLight(){let t=0,e=!1;const s=this.getTimeHourFromDate(this.last_light_local);for(let i of this.hours)i.hour>s&&!e&&(this.index_last_light=t-1,e=!0),t++;0==e&&(this.index_last_light=this.hours.length-1)}getDateString(){let t=new Date;return t.setTime(this.date+1e3*this.zone),t.getUTCDate()}getMoonDescription(t){const e=t<0?1:0;switch(this.moon.icon){case 0:case 1:case 27:case 28:return 1;case 13:case 14:case 15:return 3;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 12:return 0==e?2:4;default:return 0==e?4:2}}getGroupHours(){let t=0,e=[];if(this.hours.length>=24){for(let s=0;s<24;s+=3){const i=this.hours[s],r=this.hours[s+1],n=this.hours[s+2];r&&(i.show=!1,i.indice=t,r.show=!1,r.center=!0,r.grouped=!0,r.rain_grouped=i.getPrecip()+r.getPrecip()+n.getPrecip(),r.probability_grouped=Math.max(i.getRain_(),r.getRain_(),n.getRain_()),r.symbol_grouped=Math.max(i.getWebValue(),r.getWebValue(),n.getWebValue()),r.perfil_grouped=[i.getTipoPrecipitacion(),r.getTipoPrecipitacion(),n.getTipoPrecipitacion()],r.snow_deep_grouped=i.getSnowDepth()+r.getSnowDepth()+n.getSnowDepth(),r.indice=t,n.show=!1,n.indice=t,e.push(i),e.push(r),e.push(n)),t++}if(this.hours.length>24)for(let s=24;s<this.hours.length;s++){let i=this.hours[s];i.indice=t-1,i.show=!1,e.push(this.hours[s])}}else for(const t in this.hours){let s=this.hours[t];e.push(s)}return e}getFirstLight(){return this.sun.first_light}getLastLight(){return this.sun.last_light}getSunrise(){return this.sun.sunrise}getSunset(){return this.sun.sunset}getSunriseLocal(){return this.sunrise_local}getSunsetLocal(){return this.sunset_local}getFistLightLocal(){return this.first_light_local}getLastLightLocal(){return this.last_light_local}getSunriseLocalIndex(){return this.index_sunrise}getSunsetLocalIndex(){return this.index_sunset}getIndexSunrise(){return 0!=this.getFistLightLocal()?this.index_first_light:this.getSunriseLocalIndex()}getIndexSunset(){return 0!=this.getLastLightLocal()?this.index_last_light:this.getSunsetLocalIndex()}mostrarInformacionSol(t){return t?0!=this.getSunsetLocal()||0!=this.getFistLightLocal():0!=this.getSunriseLocal()||0!=this.getLastLightLocal()}getSymbolDayOrNight(){let t=this.symbol.toString();return-1==this.sun.status&&(t+="n"),t}getHorizonte(){return this.moon.horizonte}}var _=s(8367);class p{constructor(){this.days=[]}addDay(t){this.days.push(t)}static load(t,e){return new Promise((s,r)=>{const n=0==e.location;let o,a;const h=n?e.gn:e.location;o=`${_.A.services}/weather/mixed/graphics/v4/${n?"3":"1"}-${h}.json`,i.A.get(o).then(i=>{const r=JSON.parse(i);a=r.data;const n=a.notify,o=a.days,h=new p,u=(new Date).getTime();for(let s of o)u<=(g.A.isSa?s.utime.end:s.date+this.FINALDIA)&&h.addDay(new m(s,t,e,n));p.forecast=h,s(h)}).catch(t=>{r(t)})})}static getForecast(){return p.forecast}}p.FINALDIA=86399e3},1918:function(t,e,s){s.d(e,{Q:function(){return i}});
1class i{static convert(t,e,s=!1){const i=t=>parseFloat(t.toFixed(3));switch(e){case this.LITERSM2:case this.MILIMETERS:let e=t;return e>10?Math.round(e):parseFloat(e.toFixed(2));case this.INCHES:if(s)return i(.393700787*t);let r=Math.round(.393700787*t*1e3)/1e3;return r>10?Math.round(r):i(r)}}}i.MILIMETERS=0,i.INCHES=1,i.LITERSM2=2},9470:function(t,e,s){s.d(e,{S:function(){return i}});class i{static convert(t,e){switch(e){case this.MILLIBARS:return t;case this.MMHG:return Math.round(.75*t*10)/10;case this.INCHES:return Math.round(.0295301*t*1e3)/1e3;case this.KILOPASCALS:return Math.round(.1*t*100)/100;case this.HECTOPASCALS:return t}}}i.MILLIBARS=0,i.INCHES=1,i.HECTOPASCALS=2,i.MMHG=3,i.KILOPASCALS=4},3494:function(t,e,s){s.d(e,{Q:function(){return i}});class i{static convert(t,e){switch(e){case this.KILOMETERS_HOUR:return t;case this.MILES_HOUR:return Math.round(.621371192*t);case this.METERS_SECOND:return Math.round(1e3*t/3600);case this.KNOTS:return Math.round(.539957*t);case this.BEAUFORT:return t<1?0:t<=5?1:t<=11?2:t<=19?3:t<=28?4:t<=38?5:t<=49?6:t<=61?7:t<=74?8:t<=88?9:t<=102?10:t<=117?11:12}}static getSimbolo(t){return this.SIMBOLOS[t]}}i.KILOMETERS_HOUR=0,i.MILES_HOUR=1,i.METERS_SECOND=2,i.KNOTS=3,i.BEAUFORT=4,i.SIMBOLOS=["km/h","mph","m/s","kt","beaufort"]},6919:function(t,e,s){s.d(e,{B:function(){return i}});
1class i{static convert(t,e){switch(e){case this.CENTIGRADES:return Math.round(t);case this.FAHRENHEIT:return Math.round(9*t/5+32);default:return t}}}i.CENTIGRADES=0,i.FAHRENHEIT=1},3691:function(t,e,s){s.d(e,{A:function(){return n}});var i,r=s(4678);!function(t){t[t.m=0]="m",t[t.ft=1]="ft"}(i||(i={}));var n=function(t,e,s=!1,n=!0){var o,a;const h=n&&null!==(o=r.A.settings.vars.altitudes[e])&&void 0!==o?o:"",u=n&&null!==(a=r.A.settings.vars.snows[e])&&void 0!==a?a:"",l=t=>parseFloat(t.toFixed(3));switch(e){case i.ft:return s?l(t=Math.round(.3937*t))+" "+u:t>30.48?l(t=Math.round(3.28084*t))+" "+h:l(t*=.3937)+" "+u;case i.m:default:return s?(t=Math.round(t))+" "+u:t<10&&t>0?parseFloat(t.toFixed(2))+" "+u:t<100?(t=Math.round(10*t)/10)+" "+u:(t>100&&(t=Math.round(t)),(t=Math.round(t))+" "+h)}return""}},4810:function(t,e,s){s.d(e,{A:function(){return a}});class i{constructor(){}formatPercent(t){return t?t.toFixed(2):"0"}formatTimeHM(t,e=!1,s=!0){const i=s?t.getUTCHours():t.getHours();let r=i,n="";e&&(r%=12,0==r&&(r=12),n=i>12?" PM":" AM");const o=`00${r}`.slice(-2),a=`00${s?t.getUTCMinutes():t.getMinutes()}`.slice(-2);return(e?parseInt(o):o)+(e&&0==parseInt(a)?"":":"+a)+n}formatDateDayNum(t,e){return e[t.getDay()]+". "+`0${t.getDate()}`.slice(-2)}formatDayNum(t){return`${t.getDate()}`}formatMonthName(t,e){return`${e[t.getMonth()+1].toLowerCase()}`}}class r extends i{formatPercent(t){return t?t.toFixed(2).replace(".",",").replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1."):"0"}formatDateDayNum(t,e){return e[t.getDay()]+", "+`0${t.getDate()}`.slice(-2)+"."}formatDayNum(t){return`${t.getDate()}.`}formatMonthName(t,e){return`${e[t.getMonth()+1]}`}}class n extends i{formatMonthName(t,e){return`${e[t.getMonth()+1]}`}}let o;switch(s(8367).A.id){case"de":o=new r;break;case"eu":o=new n;break;default:o=new i}var a=o},1149:function(t,e){e.A=new class{get(t){return new Promise((e,s)=>{const i=new XMLHttpRequest;this.callback(i,e,s),i.open("GET",t,!0),i.send()})}post(t,e,s={}){return new Promise((i,r)=>{const n=new XMLHttpRequest;this.callback(n,i,r),n.open("POST",t,!0);for(const t of Object.keys(s))n.setRequestHeader(t,s[t]);n.send(e)})}head(t){const e=new XMLHttpRequest;e.open("HEAD",t,!0),e.send()}callback(t,e,s){t.onreadystatechange=()=>{4==t.readyState&&(200==t.status?e(t.responseText):s({status:t.statusText,response:t.responseText,code:t.status}))}}}}}]);
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.