@idmui/basic 0.7.9 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(oe,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("moment"),require("vue"),require("@idm-plugin/geo"),require("@idm-plugin/meteo"),require("echarts"),require("mapbox-gl")):typeof define=="function"&&define.amd?define(["exports","moment","vue","@idm-plugin/geo","@idm-plugin/meteo","echarts","mapbox-gl"],M):(oe=typeof globalThis<"u"?globalThis:oe||self,M(oe["idmui-basic"]={},oe.moment,oe.Vue,oe["@idm-plugin/geo"],oe["@idm-plugin/meteo"],oe.echarts,oe["mapbox-gl"]))})(this,function(oe,M,e,re,c1,Y2,i1){"use strict";function U2(l){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const t in l)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(l,t);Object.defineProperty(a,t,s.get?s:{enumerable:!0,get:()=>l[t]})}}return a.default=l,Object.freeze(a)}const ae=U2(Y2),j4="",Ie=(l,a)=>{const t=l.__vccOpts||l;for(const[s,n]of a)t[s]=n;return t},Z2={name:"IdmSign",props:{issued:{type:String,default:""},report:{type:Object,default:()=>({})}},methods:{computeUTCTime(l,a){return M.utc(l).format(a)}}},q2={class:"idm-sign-section"},J2={class:"right-section"},X2={class:"tracking-number"};function Q2(l,a,t,s,n,i){var c,m,d,p;return e.openBlock(),e.createElementBlock("div",q2,[e.createElementVNode("div",J2,[a[2]||(a[2]=e.createElementVNode("div",{class:"signature-info"},[e.createTextVNode(" This document is signed electronically. "),e.createElementVNode("br"),e.createTextVNode("Validation and authentication can be obtained from "),e.createElementVNode("a",{href:"https://nop.ormwx.com/trust",target:"_blank",class:"link"},"trust.ormwx.com"),e.createTextVNode(" by using the Unique Tracking Number. ")],-1)),e.createElementVNode("div",X2,[e.createElementVNode("div",null,[a[0]||(a[0]=e.createTextVNode("VN: ",-1)),e.createElementVNode("b",null,e.toDisplayString(((m=(c=t.report)==null?void 0:c.voyage)==null?void 0:m.number)||"-"),1)]),e.createElementVNode("div",null,[a[1]||(a[1]=e.createTextVNode("ID: ",-1)),e.createElementVNode("b",null,e.toDisplayString(((p=(d=t.report)==null?void 0:d.report)==null?void 0:p.certified)||"-"),1)])]),a[3]||(a[3]=e.createElementVNode("div",{class:"note"},[e.createTextVNode(" Please note: The verified report only indicates that it was generated by ORM within a specific temporal context. "),e.createElementVNode("br"),e.createTextVNode("Final conclusions should be based on the latest report. ")],-1)),a[4]||(a[4]=e.createElementVNode("div",{class:"contact"},[e.createTextVNode(" For any questions about the statement, contact "),e.createElementVNode("a",{href:"mailto:op@ormwx.com",class:"link"},"op@ormwx.com"),e.createTextVNode(". ")],-1))])])}const B1=Ie(Z2,[["render",Q2],["__scopeId","data-v-4517d189"]]),K2={install(l){l.component("IdmSign",B1)}},Y4="",et={name:"IdmBrand",props:{name:{type:String,default:"Weather Forecast Report"},issued:{type:String,default:void 0},locale:{type:String,default:"en"}},methods:{computeUTCTime(l,a){return M.utc(l).format(a)}}},tt={class:"idm-brand-section"},at={class:"title-box"},lt={class:"issue-box"};function ot(l,a,t,s,n,i){return e.openBlock(),e.createElementBlock("div",tt,[a[0]||(a[0]=e.createElementVNode("div",{class:"logo-box"},[e.createElementVNode("a",{href:"https://nop.ormwx.com/",target:"_blank"},[e.createElementVNode("img",{src:"https://osshz.idmwx.com/asset/logo/logo.svg",alt:""})])],-1)),e.createElementVNode("div",at,e.toDisplayString(t.name),1),e.createElementVNode("div",lt,[e.createElementVNode("div",null,e.toDisplayString(t.locale==="en"?"Mail to":"联系我们")+": op@ormwx.com",1),e.createElementVNode("div",null,e.toDisplayString(t.locale==="en"?"Issued":"发布时间")+": "+e.toDisplayString(i.computeUTCTime(t.issued,"MMM-DD, YYYY")),1)])])}const F1=Ie(et,[["render",ot],["__scopeId","data-v-f091128d"]]),it={install(l){l.component("IdmBrand",F1)}},U4="",st={name:"IdmMeteo",components:{IdmBrand:F1},props:{model:{type:String,default:"meteo"}}},rt={class:"orm-meteo-source"},nt={key:0,class:"section"},ct={key:1,class:"section"};function dt(l,a,t,s,n,i){var m,d;const c=e.resolveComponent("IdmBrand");return e.openBlock(),e.createElementBlock("div",rt,[e.createVNode(c,{name:"Data Sources",issued:"2026-01-01"}),["gfs","meteo"].includes((m=t.model)==null?void 0:m.toLowerCase())?(e.openBlock(),e.createElementBlock("div",nt,[...a[0]||(a[0]=[e.createStaticVNode('<div class="title" data-v-d940c680>Data from NOAA (National Oceanic and Atmospheric Administration)</div><div class="body" data-v-d940c680><div class="block" data-v-d940c680><div class="flex-start" data-v-d940c680><a href="https://www.noaa.gov/about-our-agency" data-v-d940c680><img style="width:60px;" src="https://img.idmwx.com/asset/noaa_digital_logo.svg" alt="" data-v-d940c680></a></div><div class="content" data-v-d940c680> NOAA is an agency that enriches life through science. Our reach goes from the surface of the sun to the depths of the ocean floor as we work to keep the public informed of the changing environment around them. NOAA’s dedicated scientists use cutting-edge research and high-tech instrumentation to provide citizens, planners, emergency managers and other decision makers with reliable information they need, when they need it. </div></div></div><div class="body" data-v-d940c680><div class="block" data-v-d940c680><div class="title" data-v-d940c680><a href="https://www.ncei.noaa.gov/products/weather-climate-models/global-forecast" target="_blank" data-v-d940c680>Wind</a></div><div class="content" data-v-d940c680> The Global Forecast System (GFS) is a National Centers for Environmental Prediction (NCEP) weather forecast model that generates data for dozens of atmospheric and land-soil variables, including temperatures, winds, precipitation, soil moisture, and atmospheric ozone concentration. The system couples four separate models (atmosphere, ocean model, land/soil model, and sea ice) that work together to accurately depict weather conditions. </div></div></div><div class="body" data-v-d940c680><div class="block" data-v-d940c680><div class="title" data-v-d940c680><a href="https://polar.ncep.noaa.gov/waves/Model_Description.pdf" target="_blank" data-v-d940c680>Wave</a></div><div class="content" data-v-d940c680> The NCEP/EMC global deterministic wave model is now unified with the Global Forecast System (GFS). The WAVEWATCH III wave model is one-way coupled with the atmospheric forecast model. The wave model uses three native computational grids: 1) Arctic Polar 9km resolution from 50N to 90N, 2) Global Core 10min resolution from 15S to 52.5N and 3) Southern Ocean 15min resolution from 10.5S to 79.5S. There are 4 post-processed grids: West Coast, Eastern Pacific, Atlantic Ocean all with 0.16deg resolution and a Global grid with 0.25 deg of resolution. </div></div></div>',4)])])):e.createCommentVNode("",!0),["ec","ecmwf","meteo"].includes((d=t.model)==null?void 0:d.toLowerCase())?(e.openBlock(),e.createElementBlock("div",ct,[...a[1]||(a[1]=[e.createStaticVNode('<div class="title" data-v-d940c680>Data from ECMWF(European Centre for Medium-Range Weather Forecasts)</div><div class="body" data-v-d940c680><div class="block" data-v-d940c680><div class="flext-start" data-v-d940c680><a href="https://www.ecmwf.int/en/forecasts/documentation-and-support/changes-ecmwf-model" target="_blank" data-v-d940c680><img src="https://img.idmwx.com/asset/ecmwf_logo.svg" alt="" data-v-d940c680></a></div><div class="content" data-v-d940c680> ECMWF Integrated Forecasting System (IFS), which includes a sophisticated data assimilation system and global numerical model of the Earth system, as well as supporting infrastructure to make forecast products available to our Member and Co-operating States and other users. The data assimilation system combines the latest weather observations with a recent forecast to obtain the best possible estimate of the current state of the Earth system – known as an analysis. The Earth system model has a model of the atmosphere at its heart, coupled to models of other Earth system components, such as the ocean. Starting from the analysis, our Earth system model is then used to forecast the likely evolution of the weather and some other aspects of the Earth system. </div></div><div class="block" data-v-d940c680><div class="flex-end" data-v-d940c680><a href="https://marine.copernicus.eu/about/" target="_blank" data-v-d940c680><img src="https://img.idmwx.com/asset/copermicus_marine_service_logo.png" alt="" data-v-d940c680></a></div><div class="content" data-v-d940c680> The Copernicus Marine Service is the marine component of the European Union’s Copernicus Programme. It provides regular and science-based information on the state of the Ocean at both global and regional scales. This includes data on the physical Ocean (Blue Ocean), sea ice (White Ocean), and Ocean biogeochemistry (Green Ocean). Funded by the European Commission and implemented by Mercator Ocean International, the service supports the implementation of EU policies and International legal Commitments related to Ocean Governance. It also aims to meet the growing demand for reliable Ocean knowledge across society, and to foster sustainable development in the Ocean sectors by providing state-of-the-art Ocean data and forecasts. </div></div></div><div class="body" data-v-d940c680><div class="block" data-v-d940c680><div class="title" data-v-d940c680><a href="https://codes.ecmwf.int/grib/param-db/165" target="_blank" data-v-d940c680>Wind</a></div><div class="content" data-v-d940c680> The wind is provided as two orthogonal vectors that can be used to calculate the total speed and direction. 10u is the eastward component of the 10m wind. It is the horizontal speed of air moving towards the east, at a height of ten metres above the surface of the Earth, in metres per second. 10v is the northward component of the 10m wind. It is the horizontal speed of air moving towards the north, at a height of ten metres above the surface of the Earth, in metres per second. </div></div><div class="block" data-v-d940c680><div class="title" data-v-d940c680><a href="https://www.ecmwf.int/en/about/media-centre/focus/2020/fact-sheet-ocean-wave-forecasting" target="_blank" data-v-d940c680>Waves</a></div><div class="content" data-v-d940c680> ECMWF ocean wave model (ECWAM) is based on a statistical description of surface waves. It covers both the open ocean and coastal waters. The surface wave field is simplified and represented by a spectrum of waves according to frequency (or wavelength) and direction of propagation. Waves are also divided into those generated by local wind (wind sea waves) and waves which have travelled away from where they were generated (swell). The wave model then simulates how the wave spectrum evolves in space and time by representing how the wind generates waves, how different waves interact with each other, and how wave energy gradually dissipates. </div></div><div class="block" data-v-d940c680><div class="title" data-v-d940c680><a href="https://marine.copernicus.eu/sites/default/files/wp-content/uploads/2019/04/Poster_SMOC_EGU2018APRIL.pdf" target="_blank" data-v-d940c680>Currents</a></div><div class="content" data-v-d940c680> SMOC (Surface and Merged Ocean Currents) is a composite surface current product that combines data from the CMEMS modeling systems to reproduce the net velocity felt by a body at sea surface. In SMOC, the total current is obtained by adding together the contributions of the oceanic general circulation, tides and waves. Three independent systems are used to compute the SMOC product: the CMEMS global high resolution (1/12°) real time forecasting system, the CMEMS global waves (1/10°) forecasting system and the FES tidal model. We present here the characteristics of the product together with some validation work based on comparison with observations: firstly, with drifting buoys in Eulerian and Lagrangian mode, and secondly, with in-situ current measurement and coastal radar data. SMOC is distributed on the global domain, with a horizontal resolution of 1/12° and with an hourly frequency. All horizontal components and their sum are provided, so that the user can select and focus on each component individually. SMOC data are computed daily, using one day of hindcast for the previous day, and five days of forecast ahead from the date of production. </div></div></div>',3)])])):e.createCommentVNode("",!0)])}const A1=Ie(st,[["render",dt],["__scopeId","data-v-d940c680"]]),ht={install(l){l.component("IdmMeteo",A1)}},mt={name:"IdmLoading",props:{loading:{type:Boolean,default:!1},text:{type:String,default:"Loading..."}},emits:["timeout"],watch:{loading:{handler(){this.loading&&setTimeout(()=>{this.$emit("timeout",!1)},5e3)},immediate:!0}}},pt={key:0,style:{width:"100%",height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function gt(l,a,t,s,n,i){return t.loading?(e.openBlock(),e.createElementBlock("div",pt,[...a[0]||(a[0]=[e.createElementVNode("img",{style:{height:"60px"},src:"https://osshz.idmwx.com/asset/loading.gif",alt:""},null,-1)])])):e.createCommentVNode("",!0)}const N1=Ie(mt,[["render",gt]]),yt={install(l){l.component("IdmLoading",N1)}},Z4="",ft={name:"ForecastReport",components:{},props:{reportData:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1},showTide:{type:Boolean,default:!1},tideLoading:{type:Boolean,default:!1},tideTableData:{type:Array,default:()=>[]},theme:{type:String,default:"light"},locale:{type:String,default:"en"}},data(){return{positionGmt:void 0,meteogramData:void 0,hourlyTableData:[]}},computed:{computeHourLT(){return l=>{if(l){const a=M.tz(l,this.positionGmt);return`${a==null?void 0:a.format("HH")}`}return"-"}},computeUTCTime(){return(l,a="MMM-DD/HHmm[Z], YYYY")=>{if(l){const t=M(l).utc();return`${t==null?void 0:t.format(a)}`}return"-"}},computeMMMDDHHmmLT(){return(l,a,t="MMM-DD/HHmm")=>{if(l){const s=M.tz(l,a);return`${s==null?void 0:s.format(t)}`}return"-"}},computeHHmmLT(){return l=>{if(l){const a=M.tz(l,this.positionGmt);return`${a==null?void 0:a.format("HH:mm")}`}return"-"}},computeTzTime(){return(l,a)=>{if(l){const t=M.tz(l,a);return`${t==null?void 0:t.format("yyyy-MM-DD")}`}return"-"}},computeLat(){return(l,a=4)=>re.LngLatHelper.lat2pretty(l,a).pretty},computeLng(){return(l,a=4)=>re.LngLatHelper.lng2pretty(l,a).pretty},roundPrecision(){return(l,a=4)=>isNaN(l)||l===null||l===void 0||isNaN(a)?"-":re.LngLatHelper.roundPrecision(l,a)}},watch:{"reportData.version":{handler(){var l,a,t,s;(l=this.reportData)!=null&&l.version&&(this.positionGmt=(s=(t=(a=this.reportData)==null?void 0:a.weather)==null?void 0:t[0])==null?void 0:s.timezone,this.handleRender())},immediate:!0}},methods:{handleRender(){this.$nextTick(()=>{this.disposeEcharts(),this.handleMeteogramData(this.reportData),this.initHourlyTableData(this.reportData)})},handleMeteogramData(l){var p;const a=l.forecastDays||7,t=l.interval||3,s=a>7?6:a>3?3:t,n=l.datetime||((p=this.reportData)==null?void 0:p.etime);this.meteogramData={xDates:[],dates:[],hours:[],temperatures:[],weatherIcons:[],weatherNames:[],visibility:[],windspeed:[],windGusts:[],windDir:[],windDirIcons:[],windSpeedReferMax:[],precip:[],sigWaveHeight:[],swellHeight:[],waveHeightRefer:[],markarea:[],gridOffset:{l:4,r:4},singleAxisOffset:{}};let i={start:void 0,end:void 0};const c=this.theme==="dark"?"rgba(159, 255, 126, 1)":"rgba(54, 212, 0, 1)",m="data:image/svg+xml;base64,"+window.btoa(`<svg t="1740383449285" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10797" width="200" height="200"><path d="M133.8 579l-44.4-44.4c-18.8-18.8-18.8-49.2 0-67.8L478 78c18.8-18.8 49.2-18.8 67.8 0l388.6 388.6c18.8 18.8 18.8 49.2 0 67.8L890 578.8c-19 19-50 18.6-68.6-0.8L592 337.2V912c0 26.6-21.4 48-48 48h-64c-26.6 0-48-21.4-48-48V337.2L202.4 578.2c-18.6 19.6-49.6 20-68.6 0.8z" fill="${c}" p-id="10798"></path></svg>`),d=new Image(64,64);d.src=m,d.onload=async()=>{var b,f,v,E,_,N,k,D,x,L,S,R,C,z,I,T,y,F,V,o,W,h,j,Y,O,K,q,J,B,$,Z,X,ee,te,H,A,ce,de,he,ie,se,r,le,ne,fe,Ne,Se,Me,_e,Ee,ve,Le,Ve,He,Ce,Be,Ge,$e,je,Ye,Ue;const u=(f=(b=M.tz(n,this.positionGmt))==null?void 0:b.set({hour:0,minute:0,second:0,millisecond:0}))==null?void 0:f.format();for(let me=0;me<a*24;me++)if(me%t===0){const Ae=M(u).clone().add(me,"h").format();(v=this.meteogramData)==null||v.dates.push(Ae);const U=((E=c1.Meteo2Assist.pickHourly(l,Ae))==null?void 0:E[0])||{};(N=this.meteogramData)==null||N.temperatures.push(this.roundPrecision((_=U==null?void 0:U.weather)==null?void 0:_.temp,0)),(D=this.meteogramData)==null||D.visibility.push(this.roundPrecision((k=U==null?void 0:U.weather)==null?void 0:k.visibility,1)),(S=this.meteogramData)==null||S.windspeed.push(this.roundPrecision((L=(x=U.weather)==null?void 0:x.wind)==null?void 0:L.kts,1)),(z=this.meteogramData)==null||z.windGusts.push(this.roundPrecision((C=(R=U==null?void 0:U.weather)==null?void 0:R.wind)==null?void 0:C.gusts,1)),(I=this.meteogramData)==null||I.windSpeedReferMax.push(16),(F=this.meteogramData)==null||F.sigWaveHeight.push(this.roundPrecision((y=(T=U==null?void 0:U.wave)==null?void 0:T.sig)==null?void 0:y.height)),(W=this.meteogramData)==null||W.swellHeight.push(this.roundPrecision((o=(V=U==null?void 0:U.wave)==null?void 0:V.swell)==null?void 0:o.height)),(h=this.meteogramData)==null||h.waveHeightRefer.push(1.5);const t1=t===1?"sum1Hours":"sum3Hours";if((O=this.meteogramData)==null||O.precip.push(this.roundPrecision((Y=(j=U==null?void 0:U.weather)==null?void 0:j.precip)==null?void 0:Y[t1],1)),t<24&&me%12===0&&me%24!==0||t>=24&&me%24===0?(q=this.meteogramData)==null||q.xDates.push((K=M.tz(Ae,this.positionGmt))==null?void 0:K.format("MMM-DD")):(J=this.meteogramData)==null||J.xDates.push(""),me%s===0?(B=this.meteogramData)==null||B.hours.push(this.computeHourLT(Ae)):($=this.meteogramData)==null||$.hours.push(""),me%12===0?((Z=U.weather)!=null&&Z.url?(ee=this.meteogramData)==null||ee.weatherIcons.push({symbol:"image://"+((X=U.weather)==null?void 0:X.url),symbolSize:30}):this.meteogramData.weatherIcons.push({symbol:"image://",symbolSize:0}),(H=this.meteogramData)==null||H.weatherNames.push((te=U.weather)==null?void 0:te.name)):((A=this.meteogramData)==null||A.weatherIcons.push({symbol:"image://",symbolSize:0}),(ce=this.meteogramData)==null||ce.weatherNames.push("")),me%s===0?(ie=this.meteogramData)==null||ie.windDir.push((he=(de=U.weather)==null?void 0:de.wind)==null?void 0:he.bearing):(se=this.meteogramData)==null||se.windDir.push(void 0),me%s===0){const ke=document.createElement("canvas"),Te=ke.getContext("2d");ke.width=d.width,ke.height=d.height;const pe=((le=(r=U.weather)==null?void 0:r.wind)==null?void 0:le.bearing)*(Math.PI/180);Te.translate(ke.width/2,ke.height/2),Te.rotate(pe),Te.translate(-d.width/2,-d.height/2),Te.drawImage(d,0,0,64,64);const We=ke.toDataURL();this.meteogramData.windDirIcons.push({symbol:"image://"+We,symbolSize:16})}else this.meteogramData.windDirIcons.push({symbol:"image://",symbolSize:0});(ne=U==null?void 0:U.weather)!=null&&ne.isDay?i.end===void 0&&i.start>=0&&(i.end=me):i.start===void 0&&(i.start=me),(i.start>=0&&i.end>=0||i.start>=0&&me===a*24-1)&&((ve=this.meteogramData)==null||ve.markarea.push([{x:((fe=this.meteogramData)==null?void 0:fe.gridOffset.l)+i.start/(a*24)*(100-((Ne=this.meteogramData)==null?void 0:Ne.gridOffset.l)-((Se=this.meteogramData)==null?void 0:Se.gridOffset.r))+"%"},{x:((Me=this.meteogramData)==null?void 0:Me.gridOffset.l)+(i.end+1)/(a*24)*(100-((_e=this.meteogramData)==null?void 0:_e.gridOffset.l)-((Ee=this.meteogramData)==null?void 0:Ee.gridOffset.r))+"%"}]),i={start:void 0,end:void 0})}this.meteogramData.singleAxisOffset.l=((Le=this.meteogramData)==null?void 0:Le.gridOffset.l)+.5/((He=(Ve=this.meteogramData)==null?void 0:Ve.dates)==null?void 0:He.length)*(100-((Ce=this.meteogramData)==null?void 0:Ce.gridOffset.l)-((Be=this.meteogramData)==null?void 0:Be.gridOffset.r))+"%",this.meteogramData.singleAxisOffset.r=((Ge=this.meteogramData)==null?void 0:Ge.gridOffset.r)+.5/((je=($e=this.meteogramData)==null?void 0:$e.dates)==null?void 0:je.length)*(100-((Ye=this.meteogramData)==null?void 0:Ye.gridOffset.l)-((Ue=this.meteogramData)==null?void 0:Ue.gridOffset.r))+"%",this.$nextTick(()=>{this.initMeteogramEchart(l)})}},initMeteogramEchart(l){var _,N,k,D,x,L,S,R,C,z,I,T,y,F,V,o,W,h,j,Y,O,K,q,J,B,$,Z,X,ee,te,H,A,ce,de,he,ie,se,r,le,ne,fe,Ne,Se,Me,_e,Ee,ve,Le,Ve,He,Ce,Be,Ge,$e,je,Ye,Ue,me,Ae,U,t1,ke,Te,l1,pe,We,G,s1,Oe,a1,d1,r1,n1,h1,m1,p1,g1;l.forecastDays;const a=l.interval||3;let t,s={grid:{show:!0,bottom:"0%",top:"0%",left:`${this.meteogramData.gridOffset.l}%`,right:`${this.meteogramData.gridOffset.r}%`,borderColor:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0, 0, 0, 0.4)",borderWidth:1,z:1,zlevel:1},tooltip:{trigger:"item",show:!0,position:"right",formatter:w=>{const De=w==null?void 0:w.dataIndex;return w.seriesName==="Weather Icons"?`<strong>${this.meteogramData.weatherNames[De]}</strong>`:!1}},legend:{show:!1},xAxis:{left:0,right:0,top:"50%",height:"50%",type:"category",data:(_=this.meteogramData)==null?void 0:_.dates,show:!1},singleAxis:[{left:(k=(N=this.meteogramData)==null?void 0:N.singleAxisOffset)==null?void 0:k.l,right:(x=(D=this.meteogramData)==null?void 0:D.singleAxisOffset)==null?void 0:x.r,type:"category",show:!1,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},boundaryGap:!1,data:(L=this.meteogramData)==null?void 0:L.dates,top:"50%",height:"2%"}],series:[{name:"Weather Icons",type:"scatter",singleAxisIndex:0,coordinateSystem:"singleAxis",data:(S=this.meteogramData)==null?void 0:S.weatherIcons,symbolSize:24}]};document.getElementById("weatherIconsEchart")&&(t=ae.init(document.getElementById("weatherIconsEchart")),t.setOption(s));let n=Math.max(...this.meteogramData.temperatures.filter(w=>typeof w=="number"&&!isNaN(w))),i=Math.min(...this.meteogramData.temperatures.filter(w=>typeof w=="number"&&!isNaN(w))),c=Math.floor(i/5)*5,m=Math.ceil(n/5)*5,d=Math.ceil((m-c)/5);c=Math.floor((c-2*d)/5)*5,m=Math.ceil((m+1)/5)*5,d=Math.ceil((m-c)/5);let p="",u=[];a===1?(p=this.locale==="zhHans"?"1小时降水 ( mm ) ":"Precip.1h ( mm ) ",u=[{gte:8,color:"rgba(248, 1, 1, 1)",label:this.locale==="zhHans"?"暴雨,>7.9mm":"Rainstorm, >7.9mm"},{gte:4,lte:7.9,color:"rgba(190, 226, 2, 18)",label:this.locale==="zhHans"?"大雨,<=7.9mm":"Heavy, <=7.9mm"},{gte:2,lte:3.9,color:"rgba(3, 248, 103, 1)",label:this.locale==="zhHans"?"中雨,<=3.9mm":"Moderate, <=3.9mm"},{lt:2,color:"rgba(172, 210, 255, 1)",label:this.locale==="zhHans"?"小雨,<2mm":"Light, <2mm"}]):(p=this.locale==="zhHans"?"3小时降水 ( mm ) ":"Precip.3h ( mm ) ",u=[{gte:25,color:"rgba(248, 1, 1, 1)",label:this.locale==="zhHans"?"暴雨,>24.9mm":"Rainstorm, >24.9mm"},{gte:10,lte:24.9,color:"rgba(190, 226, 2, 18)",label:this.locale==="zhHans"?"大雨,<=24.9mm":"Heavy, <=24.9mm"},{gte:5,lte:9.9,color:"rgba(3, 248, 103, 1)",label:this.locale==="zhHans"?"中雨,<=9.9mm":"Moderate, <=9.9mm"},{lt:5,color:"rgba(172, 210, 255, 1)",label:this.locale==="zhHans"?"小雨,<5mm":"Light, <5mm"}]);let b;s={title:{text:this.locale==="zhHans"?"天气情况":"Weather Conditions",top:"10px",left:0,textStyle:{fontWeight:"500",fontSize:16,color:this.theme==="dark"?"rgba(255, 255, 255, 1)":"rgba(28,31,35,1)"}},grid:{show:!0,bottom:"20%",top:"70px",left:`${this.meteogramData.gridOffset.l}%`,right:`${this.meteogramData.gridOffset.r}%`,borderColor:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0, 0, 0, 0.4)",borderWidth:1,z:1,zlevel:1},tooltip:{trigger:"axis",show:!0,position:"right",formatter:w=>{var Ze,qe,Je,Xe,Qe,Ke,Q,y1,f1,b1,u1,w1,x1,z1,k1,D1;const De=(Ze=w==null?void 0:w.find(ge=>ge.seriesType==="bar"))==null?void 0:Ze.dataIndex;if(w.find(ge=>ge.seriesType==="scatter"))return!1;{let ge="";const e1=(qe=w==null?void 0:w.find(be=>be.seriesName==="Precipitation"||be.seriesName==="降水"))==null?void 0:qe.value;return a===1?(e1<2?ge="rgba(172, 210, 255, 1)":e1<=3.9?ge="rgba(3, 248, 103, 1)":e1<=7.9?ge="rgba(190, 226, 2, 18)":e1>7.9?ge="rgba(248, 1, 1, 1)":ge="rgba(172, 210, 255, 1)",`<div style="font-size: 13px;"><strong>${M.tz((Je=this.meteogramData)==null?void 0:Je.dates[De],this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
1
+ (function(oe,M){typeof exports=="object"&&typeof module<"u"?M(exports,require("moment"),require("vue"),require("@idm-plugin/geo"),require("@idm-plugin/meteo"),require("echarts"),require("mapbox-gl")):typeof define=="function"&&define.amd?define(["exports","moment","vue","@idm-plugin/geo","@idm-plugin/meteo","echarts","mapbox-gl"],M):(oe=typeof globalThis<"u"?globalThis:oe||self,M(oe["idmui-basic"]={},oe.moment,oe.Vue,oe["@idm-plugin/geo"],oe["@idm-plugin/meteo"],oe.echarts,oe["mapbox-gl"]))})(this,function(oe,M,e,re,c1,Y2,i1){"use strict";function U2(l){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(l){for(const t in l)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(l,t);Object.defineProperty(a,t,s.get?s:{enumerable:!0,get:()=>l[t]})}}return a.default=l,Object.freeze(a)}const ae=U2(Y2),j4="",Ie=(l,a)=>{const t=l.__vccOpts||l;for(const[s,n]of a)t[s]=n;return t},Z2={name:"IdmSign",props:{issued:{type:String,default:""},report:{type:Object,default:()=>({})}},methods:{computeUTCTime(l,a){return M.utc(l).format(a)}}},q2={class:"idm-sign-section"},J2={class:"right-section"},X2={class:"tracking-number"};function Q2(l,a,t,s,n,i){var c,m,d,p;return e.openBlock(),e.createElementBlock("div",q2,[e.createElementVNode("div",J2,[a[2]||(a[2]=e.createElementVNode("div",{class:"signature-info"},[e.createTextVNode(" This document is signed electronically. "),e.createElementVNode("br"),e.createTextVNode("Validation and authentication can be obtained from "),e.createElementVNode("a",{href:"https://nop.ormwx.com/trust",target:"_blank",class:"link"},"trust.ormwx.com"),e.createTextVNode(" by using the Unique Tracking Number. ")],-1)),e.createElementVNode("div",X2,[e.createElementVNode("div",null,[a[0]||(a[0]=e.createTextVNode("VN: ",-1)),e.createElementVNode("b",null,e.toDisplayString(((m=(c=t.report)==null?void 0:c.voyage)==null?void 0:m.number)||"-"),1)]),e.createElementVNode("div",null,[a[1]||(a[1]=e.createTextVNode("ID: ",-1)),e.createElementVNode("b",null,e.toDisplayString(((p=(d=t.report)==null?void 0:d.report)==null?void 0:p.certified)||"-"),1)])]),a[3]||(a[3]=e.createElementVNode("div",{class:"note"},[e.createTextVNode(" Please note: The verified report only indicates that it was generated by ORM within a specific temporal context. "),e.createElementVNode("br"),e.createTextVNode("Final conclusions should be based on the latest report. ")],-1)),a[4]||(a[4]=e.createElementVNode("div",{class:"contact"},[e.createTextVNode(" For any questions about the statement, contact "),e.createElementVNode("a",{href:"mailto:op@ormwx.com",class:"link"},"op@ormwx.com"),e.createTextVNode(". ")],-1))])])}const B1=Ie(Z2,[["render",Q2],["__scopeId","data-v-4517d189"]]),K2={install(l){l.component("IdmSign",B1)}},Y4="",et={name:"IdmBrand",props:{name:{type:String,default:"Weather Forecast Report"},issued:{type:String,default:void 0},locale:{type:String,default:"en"}},methods:{computeUTCTime(l,a){return M.utc(l).format(a)}}},tt={class:"idm-brand-section"},at={class:"title-box"},lt={class:"issue-box"};function ot(l,a,t,s,n,i){return e.openBlock(),e.createElementBlock("div",tt,[a[0]||(a[0]=e.createElementVNode("div",{class:"logo-box"},[e.createElementVNode("a",{href:"https://nop.ormwx.com/",target:"_blank"},[e.createElementVNode("img",{src:"https://osshz.idmwx.com/asset/logo/logo.svg",alt:""})])],-1)),e.createElementVNode("div",at,e.toDisplayString(t.name),1),e.createElementVNode("div",lt,[e.createElementVNode("div",null,e.toDisplayString(t.locale==="en"?"Mail to":"联系我们")+": op@ormwx.com",1),e.createElementVNode("div",null,e.toDisplayString(t.locale==="en"?"Issued":"发布时间")+": "+e.toDisplayString(i.computeUTCTime(t.issued,"MMM-DD, YYYY")),1)])])}const F1=Ie(et,[["render",ot],["__scopeId","data-v-f091128d"]]),it={install(l){l.component("IdmBrand",F1)}},U4="",st={name:"IdmMeteo",components:{IdmBrand:F1},props:{model:{type:String,default:"meteo"}}},rt={class:"orm-meteo-source"},nt={key:0,class:"section"},ct={key:1,class:"section"};function dt(l,a,t,s,n,i){var m,d;const c=e.resolveComponent("IdmBrand");return e.openBlock(),e.createElementBlock("div",rt,[e.createVNode(c,{name:"Data Sources",issued:"2026-01-01"}),["gfs","meteo"].includes((m=t.model)==null?void 0:m.toLowerCase())?(e.openBlock(),e.createElementBlock("div",nt,[...a[0]||(a[0]=[e.createStaticVNode('<div class="title" data-v-d940c680>Data from NOAA (National Oceanic and Atmospheric Administration)</div><div class="body" data-v-d940c680><div class="block" data-v-d940c680><div class="flex-start" data-v-d940c680><a href="https://www.noaa.gov/about-our-agency" data-v-d940c680><img style="width:60px;" src="https://img.idmwx.com/asset/noaa_digital_logo.svg" alt="" data-v-d940c680></a></div><div class="content" data-v-d940c680> NOAA is an agency that enriches life through science. Our reach goes from the surface of the sun to the depths of the ocean floor as we work to keep the public informed of the changing environment around them. NOAA’s dedicated scientists use cutting-edge research and high-tech instrumentation to provide citizens, planners, emergency managers and other decision makers with reliable information they need, when they need it. </div></div></div><div class="body" data-v-d940c680><div class="block" data-v-d940c680><div class="title" data-v-d940c680><a href="https://www.ncei.noaa.gov/products/weather-climate-models/global-forecast" target="_blank" data-v-d940c680>Wind</a></div><div class="content" data-v-d940c680> The Global Forecast System (GFS) is a National Centers for Environmental Prediction (NCEP) weather forecast model that generates data for dozens of atmospheric and land-soil variables, including temperatures, winds, precipitation, soil moisture, and atmospheric ozone concentration. The system couples four separate models (atmosphere, ocean model, land/soil model, and sea ice) that work together to accurately depict weather conditions. </div></div></div><div class="body" data-v-d940c680><div class="block" data-v-d940c680><div class="title" data-v-d940c680><a href="https://polar.ncep.noaa.gov/waves/Model_Description.pdf" target="_blank" data-v-d940c680>Wave</a></div><div class="content" data-v-d940c680> The NCEP/EMC global deterministic wave model is now unified with the Global Forecast System (GFS). The WAVEWATCH III wave model is one-way coupled with the atmospheric forecast model. The wave model uses three native computational grids: 1) Arctic Polar 9km resolution from 50N to 90N, 2) Global Core 10min resolution from 15S to 52.5N and 3) Southern Ocean 15min resolution from 10.5S to 79.5S. There are 4 post-processed grids: West Coast, Eastern Pacific, Atlantic Ocean all with 0.16deg resolution and a Global grid with 0.25 deg of resolution. </div></div></div>',4)])])):e.createCommentVNode("",!0),["ec","ecmwf","meteo"].includes((d=t.model)==null?void 0:d.toLowerCase())?(e.openBlock(),e.createElementBlock("div",ct,[...a[1]||(a[1]=[e.createStaticVNode('<div class="title" data-v-d940c680>Data from ECMWF(European Centre for Medium-Range Weather Forecasts)</div><div class="body" data-v-d940c680><div class="block" data-v-d940c680><div class="flext-start" data-v-d940c680><a href="https://www.ecmwf.int/en/forecasts/documentation-and-support/changes-ecmwf-model" target="_blank" data-v-d940c680><img src="https://img.idmwx.com/asset/ecmwf_logo.svg" alt="" data-v-d940c680></a></div><div class="content" data-v-d940c680> ECMWF Integrated Forecasting System (IFS), which includes a sophisticated data assimilation system and global numerical model of the Earth system, as well as supporting infrastructure to make forecast products available to our Member and Co-operating States and other users. The data assimilation system combines the latest weather observations with a recent forecast to obtain the best possible estimate of the current state of the Earth system – known as an analysis. The Earth system model has a model of the atmosphere at its heart, coupled to models of other Earth system components, such as the ocean. Starting from the analysis, our Earth system model is then used to forecast the likely evolution of the weather and some other aspects of the Earth system. </div></div><div class="block" data-v-d940c680><div class="flex-end" data-v-d940c680><a href="https://marine.copernicus.eu/about/" target="_blank" data-v-d940c680><img src="https://img.idmwx.com/asset/copermicus_marine_service_logo.png" alt="" data-v-d940c680></a></div><div class="content" data-v-d940c680> The Copernicus Marine Service is the marine component of the European Union’s Copernicus Programme. It provides regular and science-based information on the state of the Ocean at both global and regional scales. This includes data on the physical Ocean (Blue Ocean), sea ice (White Ocean), and Ocean biogeochemistry (Green Ocean). Funded by the European Commission and implemented by Mercator Ocean International, the service supports the implementation of EU policies and International legal Commitments related to Ocean Governance. It also aims to meet the growing demand for reliable Ocean knowledge across society, and to foster sustainable development in the Ocean sectors by providing state-of-the-art Ocean data and forecasts. </div></div></div><div class="body" data-v-d940c680><div class="block" data-v-d940c680><div class="title" data-v-d940c680><a href="https://codes.ecmwf.int/grib/param-db/165" target="_blank" data-v-d940c680>Wind</a></div><div class="content" data-v-d940c680> The wind is provided as two orthogonal vectors that can be used to calculate the total speed and direction. 10u is the eastward component of the 10m wind. It is the horizontal speed of air moving towards the east, at a height of ten metres above the surface of the Earth, in metres per second. 10v is the northward component of the 10m wind. It is the horizontal speed of air moving towards the north, at a height of ten metres above the surface of the Earth, in metres per second. </div></div><div class="block" data-v-d940c680><div class="title" data-v-d940c680><a href="https://www.ecmwf.int/en/about/media-centre/focus/2020/fact-sheet-ocean-wave-forecasting" target="_blank" data-v-d940c680>Waves</a></div><div class="content" data-v-d940c680> ECMWF ocean wave model (ECWAM) is based on a statistical description of surface waves. It covers both the open ocean and coastal waters. The surface wave field is simplified and represented by a spectrum of waves according to frequency (or wavelength) and direction of propagation. Waves are also divided into those generated by local wind (wind sea waves) and waves which have travelled away from where they were generated (swell). The wave model then simulates how the wave spectrum evolves in space and time by representing how the wind generates waves, how different waves interact with each other, and how wave energy gradually dissipates. </div></div><div class="block" data-v-d940c680><div class="title" data-v-d940c680><a href="https://marine.copernicus.eu/sites/default/files/wp-content/uploads/2019/04/Poster_SMOC_EGU2018APRIL.pdf" target="_blank" data-v-d940c680>Currents</a></div><div class="content" data-v-d940c680> SMOC (Surface and Merged Ocean Currents) is a composite surface current product that combines data from the CMEMS modeling systems to reproduce the net velocity felt by a body at sea surface. In SMOC, the total current is obtained by adding together the contributions of the oceanic general circulation, tides and waves. Three independent systems are used to compute the SMOC product: the CMEMS global high resolution (1/12°) real time forecasting system, the CMEMS global waves (1/10°) forecasting system and the FES tidal model. We present here the characteristics of the product together with some validation work based on comparison with observations: firstly, with drifting buoys in Eulerian and Lagrangian mode, and secondly, with in-situ current measurement and coastal radar data. SMOC is distributed on the global domain, with a horizontal resolution of 1/12° and with an hourly frequency. All horizontal components and their sum are provided, so that the user can select and focus on each component individually. SMOC data are computed daily, using one day of hindcast for the previous day, and five days of forecast ahead from the date of production. </div></div></div>',3)])])):e.createCommentVNode("",!0)])}const A1=Ie(st,[["render",dt],["__scopeId","data-v-d940c680"]]),ht={install(l){l.component("IdmMeteo",A1)}},mt={name:"IdmLoading",props:{loading:{type:Boolean,default:!1},text:{type:String,default:"Loading..."}},emits:["timeout"],watch:{loading:{handler(){this.loading&&setTimeout(()=>{this.$emit("timeout",!1)},5e3)},immediate:!0}}},pt={key:0,style:{width:"100%",height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function gt(l,a,t,s,n,i){return t.loading?(e.openBlock(),e.createElementBlock("div",pt,[...a[0]||(a[0]=[e.createElementVNode("img",{style:{height:"60px"},src:"https://osshz.idmwx.com/asset/loading.gif",alt:""},null,-1)])])):e.createCommentVNode("",!0)}const N1=Ie(mt,[["render",gt]]),yt={install(l){l.component("IdmLoading",N1)}},Z4="",ft={name:"ForecastReport",components:{},props:{reportData:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1},showTide:{type:Boolean,default:!1},tideLoading:{type:Boolean,default:!1},tideTableData:{type:Array,default:()=>[]},theme:{type:String,default:"light"},locale:{type:String,default:"en"}},data(){return{positionGmt:void 0,meteogramData:void 0,hourlyTableData:[]}},computed:{computeHourLT(){return l=>{if(l){const a=M.tz(l,this.positionGmt);return`${a==null?void 0:a.format("HH")}`}return"-"}},computeUTCTime(){return(l,a="MMM-DD/HHmm[Z], YYYY")=>{if(l){const t=M(l).utc();return`${t==null?void 0:t.format(a)}`}return"-"}},computeMMMDDHHmmLT(){return(l,a,t="MMM-DD/HHmm")=>{if(l){const s=M.tz(l,a);return`${s==null?void 0:s.format(t)}`}return"-"}},computeHHmmLT(){return l=>{if(l){const a=M.tz(l,this.positionGmt);return`${a==null?void 0:a.format("HH:mm")}`}return"-"}},computeTzTime(){return(l,a)=>{if(l){const t=M.tz(l,a);return`${t==null?void 0:t.format("yyyy-MM-DD")}`}return"-"}},computeLat(){return(l,a=4)=>re.LngLatHelper.lat2pretty(l,a).pretty},computeLng(){return(l,a=4)=>re.LngLatHelper.lng2pretty(l,a).pretty},roundPrecision(){return(l,a=4)=>isNaN(l)||l===null||l===void 0||isNaN(a)?"-":re.LngLatHelper.roundPrecision(l,a)}},watch:{"reportData.version":{handler(){var l,a,t,s;(l=this.reportData)!=null&&l.version&&(this.positionGmt=(s=(t=(a=this.reportData)==null?void 0:a.weather)==null?void 0:t[0])==null?void 0:s.timezone,this.handleRender())},immediate:!0}},methods:{handleRender(){this.$nextTick(()=>{this.disposeEcharts(),this.handleMeteogramData(this.reportData),this.initHourlyTableData(this.reportData)})},handleMeteogramData(l){var p;const a=l.forecastDays||7,t=l.interval||3,s=a>7?6:a>3?3:t,n=l.datetime||((p=this.reportData)==null?void 0:p.etime);this.meteogramData={xDates:[],dates:[],hours:[],temperatures:[],weatherIcons:[],weatherNames:[],visibility:[],windspeed:[],windGusts:[],windDir:[],windDirIcons:[],windSpeedReferMax:[],precip:[],sigWaveHeight:[],swellHeight:[],waveHeightRefer:[],markarea:[],gridOffset:{l:6,r:6},singleAxisOffset:{}};let i={start:void 0,end:void 0};const c=this.theme==="dark"?"rgba(159, 255, 126, 1)":"rgba(54, 212, 0, 1)",m="data:image/svg+xml;base64,"+window.btoa(`<svg t="1740383449285" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10797" width="200" height="200"><path d="M133.8 579l-44.4-44.4c-18.8-18.8-18.8-49.2 0-67.8L478 78c18.8-18.8 49.2-18.8 67.8 0l388.6 388.6c18.8 18.8 18.8 49.2 0 67.8L890 578.8c-19 19-50 18.6-68.6-0.8L592 337.2V912c0 26.6-21.4 48-48 48h-64c-26.6 0-48-21.4-48-48V337.2L202.4 578.2c-18.6 19.6-49.6 20-68.6 0.8z" fill="${c}" p-id="10798"></path></svg>`),d=new Image(64,64);d.src=m,d.onload=async()=>{var b,f,v,E,_,N,k,D,x,L,S,R,C,z,I,T,y,F,V,o,W,h,j,Y,O,K,q,J,B,$,Z,X,ee,te,H,A,ce,de,he,ie,se,r,le,ne,fe,Ne,Se,Me,_e,Ee,ve,Le,Ve,He,Ce,Be,Ge,$e,je,Ye,Ue;const u=(f=(b=M.tz(n,this.positionGmt))==null?void 0:b.set({hour:0,minute:0,second:0,millisecond:0}))==null?void 0:f.format();for(let me=0;me<a*24;me++)if(me%t===0){const Ae=M(u).clone().add(me,"h").format();(v=this.meteogramData)==null||v.dates.push(Ae);const U=((E=c1.Meteo2Assist.pickHourly(l,Ae))==null?void 0:E[0])||{};(N=this.meteogramData)==null||N.temperatures.push(this.roundPrecision((_=U==null?void 0:U.weather)==null?void 0:_.temp,0)),(D=this.meteogramData)==null||D.visibility.push(this.roundPrecision((k=U==null?void 0:U.weather)==null?void 0:k.visibility,1)),(S=this.meteogramData)==null||S.windspeed.push(this.roundPrecision((L=(x=U.weather)==null?void 0:x.wind)==null?void 0:L.kts,1)),(z=this.meteogramData)==null||z.windGusts.push(this.roundPrecision((C=(R=U==null?void 0:U.weather)==null?void 0:R.wind)==null?void 0:C.gusts,1)),(I=this.meteogramData)==null||I.windSpeedReferMax.push(16),(F=this.meteogramData)==null||F.sigWaveHeight.push(this.roundPrecision((y=(T=U==null?void 0:U.wave)==null?void 0:T.sig)==null?void 0:y.height)),(W=this.meteogramData)==null||W.swellHeight.push(this.roundPrecision((o=(V=U==null?void 0:U.wave)==null?void 0:V.swell)==null?void 0:o.height)),(h=this.meteogramData)==null||h.waveHeightRefer.push(1.5);const t1=t===1?"sum1Hours":"sum3Hours";if((O=this.meteogramData)==null||O.precip.push(this.roundPrecision((Y=(j=U==null?void 0:U.weather)==null?void 0:j.precip)==null?void 0:Y[t1],1)),t<24&&me%12===0&&me%24!==0||t>=24&&me%24===0?(q=this.meteogramData)==null||q.xDates.push((K=M.tz(Ae,this.positionGmt))==null?void 0:K.format("MMM-DD")):(J=this.meteogramData)==null||J.xDates.push(""),me%s===0?(B=this.meteogramData)==null||B.hours.push(this.computeHourLT(Ae)):($=this.meteogramData)==null||$.hours.push(""),me%12===0?((Z=U.weather)!=null&&Z.url?(ee=this.meteogramData)==null||ee.weatherIcons.push({symbol:"image://"+((X=U.weather)==null?void 0:X.url),symbolSize:30}):this.meteogramData.weatherIcons.push({symbol:"image://",symbolSize:0}),(H=this.meteogramData)==null||H.weatherNames.push((te=U.weather)==null?void 0:te.name)):((A=this.meteogramData)==null||A.weatherIcons.push({symbol:"image://",symbolSize:0}),(ce=this.meteogramData)==null||ce.weatherNames.push("")),me%s===0?(ie=this.meteogramData)==null||ie.windDir.push((he=(de=U.weather)==null?void 0:de.wind)==null?void 0:he.bearing):(se=this.meteogramData)==null||se.windDir.push(void 0),me%s===0){const ke=document.createElement("canvas"),Te=ke.getContext("2d");ke.width=d.width,ke.height=d.height;const pe=((le=(r=U.weather)==null?void 0:r.wind)==null?void 0:le.bearing)*(Math.PI/180);Te.translate(ke.width/2,ke.height/2),Te.rotate(pe),Te.translate(-d.width/2,-d.height/2),Te.drawImage(d,0,0,64,64);const We=ke.toDataURL();this.meteogramData.windDirIcons.push({symbol:"image://"+We,symbolSize:16})}else this.meteogramData.windDirIcons.push({symbol:"image://",symbolSize:0});(ne=U==null?void 0:U.weather)!=null&&ne.isDay?i.end===void 0&&i.start>=0&&(i.end=me):i.start===void 0&&(i.start=me),(i.start>=0&&i.end>=0||i.start>=0&&me===a*24-1)&&((ve=this.meteogramData)==null||ve.markarea.push([{x:((fe=this.meteogramData)==null?void 0:fe.gridOffset.l)+i.start/(a*24)*(100-((Ne=this.meteogramData)==null?void 0:Ne.gridOffset.l)-((Se=this.meteogramData)==null?void 0:Se.gridOffset.r))+"%"},{x:((Me=this.meteogramData)==null?void 0:Me.gridOffset.l)+(i.end+1)/(a*24)*(100-((_e=this.meteogramData)==null?void 0:_e.gridOffset.l)-((Ee=this.meteogramData)==null?void 0:Ee.gridOffset.r))+"%"}]),i={start:void 0,end:void 0})}this.meteogramData.singleAxisOffset.l=((Le=this.meteogramData)==null?void 0:Le.gridOffset.l)+.5/((He=(Ve=this.meteogramData)==null?void 0:Ve.dates)==null?void 0:He.length)*(100-((Ce=this.meteogramData)==null?void 0:Ce.gridOffset.l)-((Be=this.meteogramData)==null?void 0:Be.gridOffset.r))+"%",this.meteogramData.singleAxisOffset.r=((Ge=this.meteogramData)==null?void 0:Ge.gridOffset.r)+.5/((je=($e=this.meteogramData)==null?void 0:$e.dates)==null?void 0:je.length)*(100-((Ye=this.meteogramData)==null?void 0:Ye.gridOffset.l)-((Ue=this.meteogramData)==null?void 0:Ue.gridOffset.r))+"%",this.$nextTick(()=>{this.initMeteogramEchart(l)})}},initMeteogramEchart(l){var _,N,k,D,x,L,S,R,C,z,I,T,y,F,V,o,W,h,j,Y,O,K,q,J,B,$,Z,X,ee,te,H,A,ce,de,he,ie,se,r,le,ne,fe,Ne,Se,Me,_e,Ee,ve,Le,Ve,He,Ce,Be,Ge,$e,je,Ye,Ue,me,Ae,U,t1,ke,Te,l1,pe,We,G,s1,Oe,a1,d1,r1,n1,h1,m1,p1,g1;const a=l.interval||3;let t,s={grid:{show:!0,bottom:"0%",top:"0%",left:`${this.meteogramData.gridOffset.l}%`,right:`${this.meteogramData.gridOffset.r}%`,borderColor:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0, 0, 0, 0.4)",borderWidth:1,z:1,zlevel:1},tooltip:{trigger:"item",show:!0,position:"right",formatter:w=>{const De=w==null?void 0:w.dataIndex;return w.seriesName==="Weather Icons"?`<strong>${this.meteogramData.weatherNames[De]}</strong>`:!1}},legend:{show:!1},xAxis:{left:0,right:0,top:"50%",height:"50%",type:"category",data:(_=this.meteogramData)==null?void 0:_.dates,show:!1},singleAxis:[{left:(k=(N=this.meteogramData)==null?void 0:N.singleAxisOffset)==null?void 0:k.l,right:(x=(D=this.meteogramData)==null?void 0:D.singleAxisOffset)==null?void 0:x.r,type:"category",show:!1,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},boundaryGap:!1,data:(L=this.meteogramData)==null?void 0:L.dates,top:"50%",height:"2%"}],series:[{name:"Weather Icons",type:"scatter",singleAxisIndex:0,coordinateSystem:"singleAxis",data:(S=this.meteogramData)==null?void 0:S.weatherIcons,symbolSize:24}]};document.getElementById("weatherIconsEchart")&&(t=ae.init(document.getElementById("weatherIconsEchart")),t.setOption(s));let n=Math.max(...this.meteogramData.temperatures.filter(w=>typeof w=="number"&&!isNaN(w))),i=Math.min(...this.meteogramData.temperatures.filter(w=>typeof w=="number"&&!isNaN(w))),c=Math.floor(i/5)*5,m=Math.ceil(n/5)*5,d=Math.ceil((m-c)/5);c=Math.floor((c-2*d)/5)*5,m=Math.ceil((m+1)/5)*5,d=Math.ceil((m-c)/5);let p="",u=[];a===1?(p=this.locale==="zhHans"?"1小时降水 ( mm ) ":"Precip.1h ( mm ) ",u=[{gte:8,color:"rgba(248, 1, 1, 1)",label:this.locale==="zhHans"?"暴雨,>7.9mm":"Rainstorm, >7.9mm"},{gte:4,lte:7.9,color:"rgba(190, 226, 2, 18)",label:this.locale==="zhHans"?"大雨,<=7.9mm":"Heavy, <=7.9mm"},{gte:2,lte:3.9,color:"rgba(3, 248, 103, 1)",label:this.locale==="zhHans"?"中雨,<=3.9mm":"Moderate, <=3.9mm"},{lt:2,color:"rgba(172, 210, 255, 1)",label:this.locale==="zhHans"?"小雨,<2mm":"Light, <2mm"}]):(p=this.locale==="zhHans"?"3小时降水 ( mm ) ":"Precip.3h ( mm ) ",u=[{gte:25,color:"rgba(248, 1, 1, 1)",label:this.locale==="zhHans"?"暴雨,>24.9mm":"Rainstorm, >24.9mm"},{gte:10,lte:24.9,color:"rgba(190, 226, 2, 18)",label:this.locale==="zhHans"?"大雨,<=24.9mm":"Heavy, <=24.9mm"},{gte:5,lte:9.9,color:"rgba(3, 248, 103, 1)",label:this.locale==="zhHans"?"中雨,<=9.9mm":"Moderate, <=9.9mm"},{lt:5,color:"rgba(172, 210, 255, 1)",label:this.locale==="zhHans"?"小雨,<5mm":"Light, <5mm"}]);let b;s={title:{text:this.locale==="zhHans"?"天气情况":"Weather Conditions",top:"10px",left:0,textStyle:{fontWeight:"500",fontSize:16,color:this.theme==="dark"?"rgba(255, 255, 255, 1)":"rgba(28,31,35,1)"}},grid:{show:!0,bottom:"20%",top:"70px",left:`${this.meteogramData.gridOffset.l}%`,right:`${this.meteogramData.gridOffset.r}%`,borderColor:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0, 0, 0, 0.4)",borderWidth:1,z:1,zlevel:1},tooltip:{trigger:"axis",show:!0,position:"right",formatter:w=>{var Ze,qe,Je,Xe,Qe,Ke,Q,y1,f1,b1,u1,w1,x1,z1,k1,D1;const De=(Ze=w==null?void 0:w.find(ge=>ge.seriesType==="bar"))==null?void 0:Ze.dataIndex;if(w.find(ge=>ge.seriesType==="scatter"))return!1;{let ge="";const e1=(qe=w==null?void 0:w.find(be=>be.seriesName==="Precipitation"||be.seriesName==="降水"))==null?void 0:qe.value;return a===1?(e1<2?ge="rgba(172, 210, 255, 1)":e1<=3.9?ge="rgba(3, 248, 103, 1)":e1<=7.9?ge="rgba(190, 226, 2, 18)":e1>7.9?ge="rgba(248, 1, 1, 1)":ge="rgba(172, 210, 255, 1)",`<div style="font-size: 13px;"><strong>${M.tz((Je=this.meteogramData)==null?void 0:Je.dates[De],this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
2
2
  <div style="display: ${(Xe=this.meteogramData)!=null&&Xe.weatherNames[De]?"block":"none"}; font-size: 13px;">
3
3
  <span>${this.locale==="zhHans"?"天气":"Weather"} : </span><strong>${(Qe=this.meteogramData)==null?void 0:Qe.weatherNames[De]}</strong>
4
4
  </div>
@@ -31,7 +31,7 @@
31
31
  <strong>${e1}</strong>
32
32
  <span style="padding-left: 3px;">mm</span>
33
33
  </div>
34
- `)}}},legend:{show:!0,top:"10px",right:`${this.meteogramData.gridOffset.r}%`,data:[this.locale==="zhHans"?"温度":"Temperature"],itemWidth:40,textStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"}},xAxis:{show:!0,left:0,right:0,top:"50%",height:"50%",type:"category",data:(R=this.meteogramData)==null?void 0:R.dates,axisLabel:{show:!1},axisLine:{show:!1,onZero:!1},axisTick:{show:!0,inside:!0,lineStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0,0,0,0.4)"}},z:1,zlevel:1},singleAxis:[{left:(z=(C=this.meteogramData)==null?void 0:C.singleAxisOffset)==null?void 0:z.l,right:(T=(I=this.meteogramData)==null?void 0:I.singleAxisOffset)==null?void 0:T.r,type:"category",show:!1,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},boundaryGap:!1,data:(y=this.meteogramData)==null?void 0:y.dates,top:"17%",height:"2%"},{left:(V=(F=this.meteogramData)==null?void 0:F.singleAxisOffset)==null?void 0:V.l,right:(W=(o=this.meteogramData)==null?void 0:o.singleAxisOffset)==null?void 0:W.r,type:"category",show:!1,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},boundaryGap:!1,data:(h=this.meteogramData)==null?void 0:h.dates,top:"27%",height:"2%"},{left:(Y=(j=this.meteogramData)==null?void 0:j.singleAxisOffset)==null?void 0:Y.l,right:(K=(O=this.meteogramData)==null?void 0:O.singleAxisOffset)==null?void 0:K.r,type:"category",show:!1,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},boundaryGap:!1,data:(q=this.meteogramData)==null?void 0:q.dates,top:"84%",height:"2%"},{left:(B=(J=this.meteogramData)==null?void 0:J.singleAxisOffset)==null?void 0:B.l,right:(Z=($=this.meteogramData)==null?void 0:$.singleAxisOffset)==null?void 0:Z.r,type:"category",show:!1,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},boundaryGap:!1,data:(X=this.meteogramData)==null?void 0:X.dates,top:"92%",height:"2%"}],yAxis:[{type:"value",name:this.locale==="zhHans"?"温度 ( ℃ ) ":"Temperature ( ℃ ) ",show:!0,min:c,max:m,interval:d,splitNumber:5,nameRotate:90,nameLocation:"middle",nameGap:30,nameTextStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},axisLabel:{show:!0,fontSize:10,color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},splitLine:{show:!0,lineStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.1)":"rgba(0,0,0,0.1)"}},z:0,zlevel:0},{position:"right",type:"value",name:p,min:0,max:Math.ceil((Math.max(...this.meteogramData.precip.filter(w=>typeof w=="number"&&!isNaN(w)))+1)/5)*5,interval:Math.ceil((Math.max(...this.meteogramData.precip.filter(w=>typeof w=="number"&&!isNaN(w)))+1)/5),splitNumber:5,show:!0,nameRotate:90,nameLocation:"middle",nameGap:30,nameTextStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},axisLabel:{show:!0,fontSize:10,color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},splitLine:{show:!0,lineStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.1)":"rgba(0,0,0,0.1)"}},z:0,zlevel:0}],visualMap:{type:"piecewise",orient:"horizontal",top:11,right:"15%",show:!0,textStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},pieces:u,seriesIndex:1,dimension:1},series:[{name:this.locale==="zhHans"?"温度":"Temperature",type:"line",yAxisIndex:0,data:(ee=this.meteogramData)==null?void 0:ee.temperatures,symbol:"none",smooth:!1,itemStyle:{color:this.theme==="dark"?"rgba(255, 161, 0, 1)":"rgba(242, 153, 56, 1)"},label:{show:!1},markArea:{z:-1,zlevel:-1,itemStyle:{color:this.theme==="dark"?"rgba(190, 218, 255,0.025)":"rgba(239,239,239,0.3)"},data:(te=this.meteogramData)==null?void 0:te.markarea,emphasis:{disabled:!0}}},{name:this.locale==="zhHans"?"降水":"Precipitation",type:"bar",yAxisIndex:1,data:(H=this.meteogramData)==null?void 0:H.precip,itemStyle:{color:this.theme==="dark"?"rgb(19, 134, 192)":"#0c73a8"},label:{show:!1},markArea:{z:-1,zlevel:-1,itemStyle:{color:this.theme==="dark"?"rgba(190, 218, 255,0.025)":"rgba(239,239,239,0.3)"},data:(A=this.meteogramData)==null?void 0:A.markarea,emphasis:{disabled:!0}}},{singleAxisIndex:2,coordinateSystem:"singleAxis",type:"scatter",data:(ce=this.meteogramData)==null?void 0:ce.hours,label:{show:!0,fontSize:10,formatter:"{c}"},itemStyle:{color:this.theme==="dark"?"rgba(0,0,0,0)":"rgba(255, 255, 255, 0.7)"},symbolSize:0},{singleAxisIndex:3,coordinateSystem:"singleAxis",type:"scatter",data:(de=this.meteogramData)==null?void 0:de.xDates,label:{show:!0,fontSize:13,formatter:"{c}"},itemStyle:{color:this.theme==="dark"?"rgba(0,0,0,0)":"rgba(255, 255, 255, 0.7)"},symbolSize:0}]},document.getElementById("weatherConditionEchart")&&(b=ae.init(document.getElementById("weatherConditionEchart")),b.setOption(s));let f;s={grid:{show:!0,bottom:"0%",top:"0%",left:`${this.meteogramData.gridOffset.l}%`,right:`${this.meteogramData.gridOffset.r}%`,borderColor:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0, 0, 0, 0.4)",borderWidth:1,z:1,zlevel:1},legend:{show:!1},xAxis:{left:0,right:0,top:"50%",height:"50%",type:"category",data:(he=this.meteogramData)==null?void 0:he.dates,show:!1},singleAxis:[{left:(se=(ie=this.meteogramData)==null?void 0:ie.singleAxisOffset)==null?void 0:se.l,right:(le=(r=this.meteogramData)==null?void 0:r.singleAxisOffset)==null?void 0:le.r,type:"category",show:!1,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},boundaryGap:!1,data:(ne=this.meteogramData)==null?void 0:ne.dates,top:"50%",height:"2%"}],series:[{name:"Wind Dir",type:"scatter",singleAxisIndex:0,coordinateSystem:"singleAxis",data:(fe=this.meteogramData)==null?void 0:fe.windDirIcons,symbolSize:16}]},document.getElementById("windIconsEchart")&&(f=ae.init(document.getElementById("windIconsEchart")),f.setOption(s));let v;s={title:{text:this.locale==="zhHans"?"风":"Wind",top:"10px",left:0,textStyle:{fontWeight:"500",fontSize:16,color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(28,31,35,1)"}},grid:{show:!0,bottom:"20%",top:"70px",left:`${this.meteogramData.gridOffset.l}%`,right:`${this.meteogramData.gridOffset.r}%`,borderColor:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0, 0, 0, 0.4)",borderWidth:1,z:1,zlevel:1},tooltip:{trigger:"axis",triggerOn:"mousemove",show:!0,position:"right",formatter:w=>{var Ze,qe,Je,Xe,Qe,Ke;const De=(Ze=w==null?void 0:w[0])==null?void 0:Ze.dataIndex;return w.find(Q=>Q.seriesType==="scatter")?!1:`<div style="font-size: 13px;"><strong>${M.tz((qe=this.meteogramData)==null?void 0:qe.dates[De],this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
34
+ `)}}},legend:{show:!0,top:"10px",right:`${this.meteogramData.gridOffset.r}%`,data:[this.locale==="zhHans"?"温度":"Temperature"],itemWidth:40,textStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"}},xAxis:{show:!0,left:0,right:0,top:"50%",height:"50%",type:"category",data:(R=this.meteogramData)==null?void 0:R.dates,axisLabel:{show:!1},axisLine:{show:!1,onZero:!1},axisTick:{show:!0,inside:!0,lineStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0,0,0,0.4)"}},z:1,zlevel:1},singleAxis:[{left:(z=(C=this.meteogramData)==null?void 0:C.singleAxisOffset)==null?void 0:z.l,right:(T=(I=this.meteogramData)==null?void 0:I.singleAxisOffset)==null?void 0:T.r,type:"category",show:!1,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},boundaryGap:!1,data:(y=this.meteogramData)==null?void 0:y.dates,top:"17%",height:"2%"},{left:(V=(F=this.meteogramData)==null?void 0:F.singleAxisOffset)==null?void 0:V.l,right:(W=(o=this.meteogramData)==null?void 0:o.singleAxisOffset)==null?void 0:W.r,type:"category",show:!1,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},boundaryGap:!1,data:(h=this.meteogramData)==null?void 0:h.dates,top:"27%",height:"2%"},{left:(Y=(j=this.meteogramData)==null?void 0:j.singleAxisOffset)==null?void 0:Y.l,right:(K=(O=this.meteogramData)==null?void 0:O.singleAxisOffset)==null?void 0:K.r,type:"category",show:!1,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},boundaryGap:!1,data:(q=this.meteogramData)==null?void 0:q.dates,top:"84%",height:"2%"},{left:(B=(J=this.meteogramData)==null?void 0:J.singleAxisOffset)==null?void 0:B.l,right:(Z=($=this.meteogramData)==null?void 0:$.singleAxisOffset)==null?void 0:Z.r,type:"category",show:!1,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},boundaryGap:!1,data:(X=this.meteogramData)==null?void 0:X.dates,top:"92%",height:"2%"}],yAxis:[{type:"value",name:this.locale==="zhHans"?"温度 ( ℃ ) ":"Temperature ( ℃ ) ",show:!0,min:c,max:m,interval:d,splitNumber:5,nameRotate:90,nameLocation:"middle",nameGap:30,nameTextStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},axisLabel:{show:!0,color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},splitLine:{show:!0,lineStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.1)":"rgba(0,0,0,0.1)"}},z:0,zlevel:0},{position:"right",type:"value",name:p,min:0,max:Math.ceil((Math.max(...this.meteogramData.precip.filter(w=>typeof w=="number"&&!isNaN(w)))+1)/5)*5,interval:Math.ceil((Math.max(...this.meteogramData.precip.filter(w=>typeof w=="number"&&!isNaN(w)))+1)/5),splitNumber:5,show:!0,nameRotate:90,nameLocation:"middle",nameGap:30,nameTextStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},axisLabel:{show:!0,color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},splitLine:{show:!0,lineStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.1)":"rgba(0,0,0,0.1)"}},z:0,zlevel:0}],visualMap:{type:"piecewise",orient:"horizontal",top:-1,right:"16%",show:!0,textStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},pieces:u,seriesIndex:1,dimension:1},series:[{name:this.locale==="zhHans"?"温度":"Temperature",type:"line",yAxisIndex:0,data:(ee=this.meteogramData)==null?void 0:ee.temperatures,symbol:"none",smooth:!1,itemStyle:{color:this.theme==="dark"?"rgba(255, 161, 0, 1)":"rgba(242, 153, 56, 1)"},label:{show:!1},markArea:{z:-1,zlevel:-1,itemStyle:{color:this.theme==="dark"?"rgba(190, 218, 255,0.025)":"rgba(239,239,239,0.3)"},data:(te=this.meteogramData)==null?void 0:te.markarea,emphasis:{disabled:!0}}},{name:this.locale==="zhHans"?"降水":"Precipitation",type:"bar",yAxisIndex:1,data:(H=this.meteogramData)==null?void 0:H.precip,itemStyle:{color:this.theme==="dark"?"rgb(19, 134, 192)":"#0c73a8"},label:{show:!1},markArea:{z:-1,zlevel:-1,itemStyle:{color:this.theme==="dark"?"rgba(190, 218, 255,0.025)":"rgba(239,239,239,0.3)"},data:(A=this.meteogramData)==null?void 0:A.markarea,emphasis:{disabled:!0}}},{singleAxisIndex:2,coordinateSystem:"singleAxis",type:"scatter",data:(ce=this.meteogramData)==null?void 0:ce.hours,label:{show:!0,fontSize:10,formatter:"{c}"},itemStyle:{color:this.theme==="dark"?"rgba(0,0,0,0)":"rgba(255, 255, 255, 0.7)"},symbolSize:0},{singleAxisIndex:3,coordinateSystem:"singleAxis",type:"scatter",data:(de=this.meteogramData)==null?void 0:de.xDates,label:{show:!0,fontSize:13,formatter:"{c}"},itemStyle:{color:this.theme==="dark"?"rgba(0,0,0,0)":"rgba(255, 255, 255, 0.7)"},symbolSize:0}]},document.getElementById("weatherConditionEchart")&&(b=ae.init(document.getElementById("weatherConditionEchart")),b.setOption(s));let f;s={grid:{show:!0,bottom:"0%",top:"0%",left:`${this.meteogramData.gridOffset.l}%`,right:`${this.meteogramData.gridOffset.r}%`,borderColor:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0, 0, 0, 0.4)",borderWidth:1,z:1,zlevel:1},legend:{show:!1},xAxis:{left:0,right:0,top:"50%",height:"50%",type:"category",data:(he=this.meteogramData)==null?void 0:he.dates,show:!1},singleAxis:[{left:(se=(ie=this.meteogramData)==null?void 0:ie.singleAxisOffset)==null?void 0:se.l,right:(le=(r=this.meteogramData)==null?void 0:r.singleAxisOffset)==null?void 0:le.r,type:"category",show:!1,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{show:!1},boundaryGap:!1,data:(ne=this.meteogramData)==null?void 0:ne.dates,top:"50%",height:"2%"}],series:[{name:"Wind Dir",type:"scatter",singleAxisIndex:0,coordinateSystem:"singleAxis",data:(fe=this.meteogramData)==null?void 0:fe.windDirIcons,symbolSize:16}]},document.getElementById("windIconsEchart")&&(f=ae.init(document.getElementById("windIconsEchart")),f.setOption(s));let v;s={title:{text:this.locale==="zhHans"?"风":"Wind",top:"10px",left:0,textStyle:{fontWeight:"500",fontSize:16,color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(28,31,35,1)"}},grid:{show:!0,bottom:"20%",top:"70px",left:`${this.meteogramData.gridOffset.l}%`,right:`${this.meteogramData.gridOffset.r}%`,borderColor:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0, 0, 0, 0.4)",borderWidth:1,z:1,zlevel:1},tooltip:{trigger:"axis",triggerOn:"mousemove",show:!0,position:"right",formatter:w=>{var Ze,qe,Je,Xe,Qe,Ke;const De=(Ze=w==null?void 0:w[0])==null?void 0:Ze.dataIndex;return w.find(Q=>Q.seriesType==="scatter")?!1:`<div style="font-size: 13px;"><strong>${M.tz((qe=this.meteogramData)==null?void 0:qe.dates[De],this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
35
35
  <div style="font-size: 13px;display: ${isNaN((Je=w.find(Q=>Q.seriesName==="Wind Speed"||Q.seriesName==="风速"))==null?void 0:Je.value)?"none":"block"}">
36
36
  <span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: ${this.theme==="dark"?"rgba(159, 255, 126, 1)":"rgba(54, 212, 0, 1)"};}"></span>
37
37
  <span>${this.locale==="zhHans"?"风速":"Wind Speed"} : </span>
@@ -66,7 +66,7 @@
66
66
  <g transform="rotate(${l}, 512, 512)">
67
67
  <path d="M128 896l384-768 384 768-384-128-384 128z" fill="${a}" p-id="9615"></path>
68
68
  </g>
69
- </svg>`;return btoa(unescape(encodeURIComponent(t)))},async convertSvgUrlToBase64(l){try{const t=await(await fetch(l)).text();return`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(t)))}`}catch(a){return console.warn("SVG conversion error:",a),l}}}},bt={class:"row"},ut={class:"col",style:{width:"54%"}},wt={key:0,style:{"margin-left":"8px"}},xt={key:1,style:{"margin-left":"8px"}},zt={key:0,class:"col",style:{width:"42%"}},kt={style:{"margin-left":"8px"}},Dt={key:1,class:"col",style:{width:"42%"}},Ft={style:{"margin-left":"8px"}},Nt={class:"row"},St={class:"col",style:{width:"54%"}},Mt={style:{"margin-left":"8px"}},_t={class:"col",style:{width:"42%"}},Et={style:{"margin-left":"8px"}},vt={class:"content-box"},Lt={key:0,class:"meteogram-echart-section"},Vt={key:2,id:"weatherIconsEchart"},Ht={key:3,id:"weatherConditionEchart"},Ct={key:4,id:"windIconsEchart"},Bt={key:5,id:"windEchart"},At={key:6,class:"page-break"},Tt={key:7,id:"waveChart"},Pt={class:"table-section"},It={key:0,class:"card"},Wt={class:"date"},Ot={class:"",style:{"font-size":"16px","font-weight":"500"}},Rt={rowspan:"2",colspan:"1",class:"border",style:{width:"90px"}},Gt={rowspan:"1",colspan:"1",class:"border"},$t={rowspan:"1",colspan:"1",class:"border"},jt={rowspan:"1",colspan:"1",class:"border"},Yt={rowspan:"1",colspan:"4",class:"border"},Ut={rowspan:"1",colspan:"3",class:"border"},Zt={rowspan:"1",colspan:"3",class:"border"},qt={rowspan:"1",colspan:"3",class:"border"},Jt={rowspan:"1",colspan:"2",class:"border"},Xt={rowspan:"1",colspan:"1",class:"border"},Qt={rowspan:"1",colspan:"1",class:"border"},Kt={rowspan:"1",colspan:"1",class:"border",style:{width:"80px"}},e6={rowspan:"1",colspan:"1",class:"border",style:{width:"70px"}},t6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},a6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},l6={rowspan:"1",colspan:"1",class:"border",style:{width:"30px"}},o6={rowspan:"1",colspan:"1",class:"border",style:{width:"60px"}},i6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},s6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},r6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},n6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},c6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},d6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},h6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},m6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},p6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},g6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},y6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},f6={rowspan:"1",colspan:"1",class:"border",style:{width:"70px"}},b6={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},u6={rowspan:"1",colspan:"1",class:"border",style:{width:"90px"}},w6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},x6={rowspan:"1",colspan:"1",class:"border",style:{width:"80px"}},z6={rowspan:"1",colspan:"1",class:"border",style:{width:"70px"}},k6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},D6=["src"],F6={key:1},N6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},S6={rowspan:"1",colspan:"1",class:"border",style:{width:"60px"}},M6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},_6=["src"],E6={key:1},v6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},L6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},V6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},H6=["src"],C6={key:1},B6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},A6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},T6=["src"],P6={key:1},I6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},W6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},O6=["src"],R6={key:1},G6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},$6={rowspan:"1",colspan:"1",class:"border",style:{width:"70px"}},j6={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},Y6={key:1,class:"table-section",style:{"margin-top":"20px","page-break-inside":"avoid"}},U6={key:0,class:"card",style:{"min-height":"220px"}},Z6={class:"date"},q6={class:"",style:{"font-size":"16px","font-weight":"500"}},J6={rowspan:"2",colspan:"1",class:"border",style:{width:"126px"}},X6={rowspan:"1",colspan:"3",class:"border"},Q6={rowspan:"1",colspan:"3",class:"border"},K6={rowspan:"1",colspan:"3",class:"border"},e3={rowspan:"1",colspan:"3",class:"border"},t3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},a3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},l3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},o3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},i3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},s3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},r3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},n3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},c3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},d3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},h3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},m3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},p3={style:{height:"auto"}},g3={rowspan:"1",colspan:"1",class:"border",style:{width:"126px"}};function y3(l,a,t,s,n,i){var c,m,d,p,u,b,f,v,E,_,N,k,D,x,L,S,R,C,z,I,T,y,F,V;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["idm-spot-forecast-report",t.theme==="dark"?"dark":"light"])},[(c=t.reportData)!=null&&c.showSummary?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["summary-info-box",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("div",bt,[e.createElementVNode("div",ut,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"位置":"Position")+":",3),(m=t.reportData)!=null&&m.portName?(e.openBlock(),e.createElementBlock("span",wt,e.toDisplayString((d=t.reportData)==null?void 0:d.portName)+" "+e.toDisplayString(`[${i.computeLat(t.reportData.lat)}, ${i.computeLng(t.reportData.lng)}]`),1)):(e.openBlock(),e.createElementBlock("span",xt,e.toDisplayString(`${i.computeLat(t.reportData.lat)} , ${i.computeLng(t.reportData.lng)}`),1))]),(p=t.reportData)!=null&&p.datetime?(e.openBlock(),e.createElementBlock("div",zt,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"预报时段":"Forecast Period")+":",3),e.createElementVNode("span",kt,e.toDisplayString(i.computeTzTime((b=(u=t.reportData)==null?void 0:u.dateRange)==null?void 0:b[0],n.positionGmt))+" ~ "+e.toDisplayString(i.computeTzTime((v=(f=t.reportData)==null?void 0:f.dateRange)==null?void 0:v[1],n.positionGmt)),1)])):(e.openBlock(),e.createElementBlock("div",Dt,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"预报天数":"Forecast Days")+":",3),e.createElementVNode("span",Ft,e.toDisplayString((E=t.reportData)==null?void 0:E.forecastDays)+" "+e.toDisplayString(t.locale==="zhHans"?"天":"Days"),1)]))]),e.createElementVNode("div",Nt,[e.createElementVNode("div",St,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"时区":"Timezone")+":",3),e.createElementVNode("span",Mt,"UTC "+e.toDisplayString((_=t.reportData)==null?void 0:_.positionOffset),1)]),e.createElementVNode("div",_t,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"预报模式":"Forecast Model")+":",3),e.createElementVNode("span",Et,e.toDisplayString((N=t.reportData)==null?void 0:N.forecastModel),1)])])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",vt,[(k=t.reportData)!=null&&k.showWeatherChart||(D=t.reportData)!=null&&D.showWindChart||(x=t.reportData)!=null&&x.showWaveChart?(e.openBlock(),e.createElementBlock("div",Lt,[t.loading?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},[...a[0]||(a[0]=[e.createElementVNode("img",{style:{height:"60px"},src:"https://osshz.idmwx.com/asset/loading.gif"},null,-1)])],2)):t.reportData?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"暂无数据":"No Data"),3)),!t.loading&&((L=t.reportData)!=null&&L.showWeatherChart)?(e.openBlock(),e.createElementBlock("div",Vt)):e.createCommentVNode("",!0),!t.loading&&((S=t.reportData)!=null&&S.showWeatherChart)?(e.openBlock(),e.createElementBlock("div",Ht)):e.createCommentVNode("",!0),!t.loading&&((R=t.reportData)!=null&&R.showWindChart)?(e.openBlock(),e.createElementBlock("div",Ct)):e.createCommentVNode("",!0),!t.loading&&((C=t.reportData)!=null&&C.showWindChart)?(e.openBlock(),e.createElementBlock("div",Bt)):e.createCommentVNode("",!0),(z=t.reportData)!=null&&z.showWeatherChart&&((I=t.reportData)!=null&&I.showWindChart)?(e.openBlock(),e.createElementBlock("div",At)):e.createCommentVNode("",!0),!t.loading&&((T=t.reportData)!=null&&T.showWaveChart)?(e.openBlock(),e.createElementBlock("div",Tt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Pt,[t.loading?t.loading?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},[...a[30]||(a[30]=[e.createElementVNode("img",{style:{height:"60px"},src:"https://osshz.idmwx.com/asset/loading.gif"},null,-1)])],2)):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"暂无数据":"No Data"),3)):(e.openBlock(),e.createElementBlock("div",It,[e.createElementVNode("div",Wt,[e.createElementVNode("div",Ot,e.toDisplayString(t.locale==="zhHans"?"小时预报":"Hourly Weather Forecast"),1),e.createElementVNode("div",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"]),style:{"font-size":"12px","margin-right":"20px"}}," * "+e.toDisplayString(t.locale==="zhHans"?"涌浪、显浪高度>=1.5米时标记为黄色, 风速蒲福等级>=4时标记为黄色。":"Swell or Sig.wave height alert in yellow for value>=1.5m, wind speed alert in yellow for beaufort scale >= 4."),3)]),e.createElementVNode("table",{class:e.normalizeClass(["conditions-table",(y=t.reportData)!=null&&y.showSummary?"":"table-header-fixed"])},[e.createElementVNode("thead",{class:e.normalizeClass(t.theme==="dark"?"dark":"light")},[e.createElementVNode("tr",{class:e.normalizeClass(["day",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("th",Rt,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"时间":"DateTime"),1),a[1]||(a[1]=e.createElementVNode("br",null,null,-1)),a[2]||(a[2]=e.createTextVNode("(LT)",-1))]),e.createElementVNode("th",Gt,e.toDisplayString(t.locale==="zhHans"?"温度":"Temp"),1),e.createElementVNode("th",$t,e.toDisplayString(t.locale==="zhHans"?`${t.reportData.interval}小时降水`:`Precip.${t.reportData.interval}h`),1),e.createElementVNode("th",jt,e.toDisplayString(t.locale==="zhHans"?"能见度":"Visibility"),1),e.createElementVNode("th",Yt,e.toDisplayString(t.locale==="zhHans"?"风":"Wind"),1),e.createElementVNode("th",Ut,e.toDisplayString(t.locale==="zhHans"?"风浪":"Wind wave"),1),e.createElementVNode("th",Zt,e.toDisplayString(t.locale==="zhHans"?"涌浪":"Swell wave"),1),e.createElementVNode("th",qt,e.toDisplayString(t.locale==="zhHans"?"显浪":"Sig.wave"),1),e.createElementVNode("th",Jt,e.toDisplayString(t.locale==="zhHans"?"洋流":"Current"),1),e.createElementVNode("th",Xt,e.toDisplayString(t.locale==="zhHans"?"海面":"Sea Level"),1),e.createElementVNode("th",Qt,e.toDisplayString(t.locale==="zhHans"?"海表":"Sea Surface"),1)],2),e.createElementVNode("tr",{class:e.normalizeClass(["hour",t.theme==="dark"?"dark":"light"])},[a[29]||(a[29]=e.createElementVNode("th",{rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},"°C",-1)),e.createElementVNode("th",Kt,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"累计":"Acc"),1),a[3]||(a[3]=e.createElementVNode("br",null,null,-1)),a[4]||(a[4]=e.createTextVNode("(mm)",-1))]),e.createElementVNode("th",e6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"距离":"Dist"),1),a[5]||(a[5]=e.createElementVNode("br",null,null,-1)),a[6]||(a[6]=e.createTextVNode("(nm)",-1))]),e.createElementVNode("th",t6,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",a6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"速度":"Spd"),1),a[7]||(a[7]=e.createElementVNode("br",null,null,-1)),a[8]||(a[8]=e.createTextVNode("(kts)",-1))]),e.createElementVNode("th",l6,e.toDisplayString(t.locale==="zhHans"?"等级":"BF"),1),e.createElementVNode("th",o6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"阵风":"Gusts"),1),a[9]||(a[9]=e.createElementVNode("br",null,null,-1)),a[10]||(a[10]=e.createTextVNode("(kts)",-1))]),e.createElementVNode("th",i6,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",s6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Hgt"),1),a[11]||(a[11]=e.createElementVNode("br",null,null,-1)),a[12]||(a[12]=e.createTextVNode("(m)",-1))]),e.createElementVNode("th",r6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"周期":"Prd"),1),a[13]||(a[13]=e.createElementVNode("br",null,null,-1)),a[14]||(a[14]=e.createTextVNode("(s)",-1))]),e.createElementVNode("th",n6,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",c6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Hgt"),1),a[15]||(a[15]=e.createElementVNode("br",null,null,-1)),a[16]||(a[16]=e.createTextVNode("(m)",-1))]),e.createElementVNode("th",d6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"周期":"Prd"),1),a[17]||(a[17]=e.createElementVNode("br",null,null,-1)),a[18]||(a[18]=e.createTextVNode("(s)",-1))]),e.createElementVNode("th",h6,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",m6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Hgt"),1),a[19]||(a[19]=e.createElementVNode("br",null,null,-1)),a[20]||(a[20]=e.createTextVNode("(m)",-1))]),e.createElementVNode("th",p6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"周期":"Prd"),1),a[21]||(a[21]=e.createElementVNode("br",null,null,-1)),a[22]||(a[22]=e.createTextVNode("(s)",-1))]),e.createElementVNode("th",g6,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",y6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"速度":"Spd"),1),a[23]||(a[23]=e.createElementVNode("br",null,null,-1)),a[24]||(a[24]=e.createTextVNode("(kts)",-1))]),e.createElementVNode("th",f6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Hgt"),1),a[25]||(a[25]=e.createElementVNode("br",null,null,-1)),a[26]||(a[26]=e.createTextVNode("(m)",-1))]),e.createElementVNode("th",b6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"温度":"Temp"),1),a[27]||(a[27]=e.createElementVNode("br",null,null,-1)),a[28]||(a[28]=e.createTextVNode("(°C)",-1))])],2)],2),e.createElementVNode("tbody",{class:e.normalizeClass((F=t.reportData)!=null&&F.showSummary?"":"scroll")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.hourlyTableData,o=>(e.openBlock(),e.createElementBlock("tr",{key:Math.random()+o.localDate,class:e.normalizeClass(["text border-bottom",o.windBF>=4||o.swellHeight>1.5||o.sigWaveHeight>1.5?"bg-gray":"",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("td",u6,[e.createElementVNode("div",null,e.toDisplayString(o.localDate),1)]),e.createElementVNode("td",w6,[e.createElementVNode("div",null,e.toDisplayString(o.temp),1)]),e.createElementVNode("td",x6,e.toDisplayString(o.precipSum),1),e.createElementVNode("td",z6,e.toDisplayString(o.visibility),1),e.createElementVNode("td",k6,[e.createTextVNode(e.toDisplayString(o.windDir)+" ",1),!isNaN(o.windBearing)&&o.windDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWindArrowBase64(o.windBearing,this.theme==="dark"?"rgba(159, 255, 126, 1)":"rgba(54, 212, 0, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,D6)):(e.openBlock(),e.createElementBlock("span",F6,"-"))]),e.createElementVNode("td",N6,e.toDisplayString(o.windSpeed),1),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border",o.windBF>=4?"bg-yellow":"",t.theme==="dark"?"dark":"light"]),style:{width:"30px"}},e.toDisplayString(o.windBF),3),e.createElementVNode("td",S6,e.toDisplayString(o.windGusts),1),e.createElementVNode("td",M6,[e.createTextVNode(e.toDisplayString(o.windWaveDir)+" ",1),!isNaN(o.windWaveBearing)&&o.windWaveDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWaveArrowBase64(o.windWaveBearing,(this.theme==="dark","#7cc7b3"))}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,_6)):(e.openBlock(),e.createElementBlock("span",E6,"-"))]),e.createElementVNode("td",v6,e.toDisplayString(o.windWaveHeight),1),e.createElementVNode("td",L6,e.toDisplayString(o.windWavePeriod),1),e.createElementVNode("td",V6,[e.createTextVNode(e.toDisplayString(o.swellDir)+" ",1),!isNaN(o.swellBearing)&&o.swellDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWaveArrowBase64(o.swellBearing,this.theme==="dark"?"rgb(17, 245, 211)":"rgba(0, 230, 194, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,H6)):(e.openBlock(),e.createElementBlock("span",C6,"-"))]),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border",o.swellHeight>1.5?"bg-yellow":"",t.theme==="dark"?"dark":"light"]),style:{width:"45px"}},e.toDisplayString(o.swellHeight),3),e.createElementVNode("td",B6,e.toDisplayString(o.swellPeriod),1),e.createElementVNode("td",A6,[e.createTextVNode(e.toDisplayString(o.sigWaveDir)+" ",1),!isNaN(o.sigWaveBearing)&&o.sigWaveDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWaveArrowBase64(o.sigWaveBearing,this.theme==="dark"?"rgba(89, 199, 211, 1)":"rgba(1, 189, 211, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,T6)):(e.openBlock(),e.createElementBlock("span",P6,"-"))]),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border",o.sigWaveHeight>1.5?"bg-yellow":"",t.theme==="dark"?"dark":"light"]),style:{width:"45px"}},e.toDisplayString(o.sigWaveHeight),3),e.createElementVNode("td",I6,e.toDisplayString(o.sigWavePeriod),1),e.createElementVNode("td",W6,[e.createTextVNode(e.toDisplayString(o.currentDir)+" ",1),!isNaN(o.currentBearing)&&o.currentDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWaveArrowBase64(o.currentBearing,this.theme==="dark"?"rgba(220, 115, 255, 1)":"rgba(178, 51, 220, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,O6)):(e.openBlock(),e.createElementBlock("span",R6,"-"))]),e.createElementVNode("td",G6,e.toDisplayString(o.currentSpd),1),e.createElementVNode("td",$6,e.toDisplayString(o.seaLevel),1),e.createElementVNode("td",j6,e.toDisplayString(o.seaSurfaceTemp),1)],2))),128))],2)],2)]))]),t.showTide?(e.openBlock(),e.createElementBlock("div",Y6,[t.tideLoading?t.tideLoading?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},[...a[49]||(a[49]=[e.createElementVNode("img",{style:{height:"60px"},src:"https://osshz.idmwx.com/asset/loading.gif"},null,-1)])],2)):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"暂无数据":"No Data"),3)):(e.openBlock(),e.createElementBlock("div",U6,[e.createElementVNode("div",Z6,[e.createElementVNode("div",q6,e.toDisplayString(t.locale==="zhHans"?"潮汐预报":"Tide Forecast"),1),e.createElementVNode("div",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"]),style:{"font-size":"12px","margin-right":"20px"}}," * "+e.toDisplayString(t.locale==="zhHans"?"低位标记为红色,高位标记为绿色。":"Low tide in red, high tide in green."),3)]),e.createElementVNode("table",{class:e.normalizeClass(["conditions-table",(V=t.reportData)!=null&&V.showSummary?"":"table-header-fixed"])},[e.createElementVNode("thead",{class:e.normalizeClass(t.theme==="dark"?"dark":"light")},[e.createElementVNode("tr",{class:e.normalizeClass(["day",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("th",J6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"日期":"Date"),1),a[31]||(a[31]=e.createElementVNode("br",null,null,-1)),a[32]||(a[32]=e.createTextVNode("(LT)",-1))]),e.createElementVNode("th",X6,e.toDisplayString(t.locale==="zhHans"?"第一次潮汐":"1st Tide"),1),e.createElementVNode("th",Q6,e.toDisplayString(t.locale==="zhHans"?"第二次潮汐":"2st Tide"),1),e.createElementVNode("th",K6,e.toDisplayString(t.locale==="zhHans"?"第三次潮汐":"3st Tide"),1),e.createElementVNode("th",e3,e.toDisplayString(t.locale==="zhHans"?"第四次潮汐":"4st Tide"),1)],2),e.createElementVNode("tr",{class:e.normalizeClass(["hour",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("th",t3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"时间":"Time"),1),a[33]||(a[33]=e.createElementVNode("br",null,null,-1)),a[34]||(a[34]=e.createTextVNode("(LT)",-1))]),e.createElementVNode("th",a3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Height"),1),a[35]||(a[35]=e.createElementVNode("br",null,null,-1)),a[36]||(a[36]=e.createTextVNode("(mm)",-1))]),e.createElementVNode("th",l3,e.toDisplayString(t.locale==="zhHans"?"类型":"Type"),1),e.createElementVNode("th",o3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"时间":"Time"),1),a[37]||(a[37]=e.createElementVNode("br",null,null,-1)),a[38]||(a[38]=e.createTextVNode("(LT)",-1))]),e.createElementVNode("th",i3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Height"),1),a[39]||(a[39]=e.createElementVNode("br",null,null,-1)),a[40]||(a[40]=e.createTextVNode("(mm)",-1))]),e.createElementVNode("th",s3,e.toDisplayString(t.locale==="zhHans"?"类型":"Type"),1),e.createElementVNode("th",r3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"时间":"Time"),1),a[41]||(a[41]=e.createElementVNode("br",null,null,-1)),a[42]||(a[42]=e.createTextVNode("(LT)",-1))]),e.createElementVNode("th",n3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Height"),1),a[43]||(a[43]=e.createElementVNode("br",null,null,-1)),a[44]||(a[44]=e.createTextVNode("(mm)",-1))]),e.createElementVNode("th",c3,e.toDisplayString(t.locale==="zhHans"?"类型":"Type"),1),e.createElementVNode("th",d3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"时间":"Time"),1),a[45]||(a[45]=e.createElementVNode("br",null,null,-1)),a[46]||(a[46]=e.createTextVNode("(LT)",-1))]),e.createElementVNode("th",h3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Height"),1),a[47]||(a[47]=e.createElementVNode("br",null,null,-1)),a[48]||(a[48]=e.createTextVNode("(mm)",-1))]),e.createElementVNode("th",m3,e.toDisplayString(t.locale==="zhHans"?"类型":"Type"),1)],2)],2),e.createElementVNode("tbody",p3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tideTableData,o=>{var W,h,j,Y,O,K,q,J,B,$,Z,X,ee,te,H,A,ce,de,he,ie,se,r,le,ne,fe,Ne,Se,Me,_e,Ee,ve,Le,Ve,He,Ce,Be;return e.openBlock(),e.createElementBlock("tr",{key:Math.random()+o.date,class:e.normalizeClass(["text border-bottom",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("td",g3,[e.createElementVNode("div",null,e.toDisplayString((o==null?void 0:o.date)||""),1)]),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((W=o==null?void 0:o[0])==null?void 0:W.type)==="Low"?"text-danger":((h=o==null?void 0:o[0])==null?void 0:h.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(i.computeHHmmLT((j=o==null?void 0:o[0])==null?void 0:j.date)),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((Y=o==null?void 0:o[0])==null?void 0:Y.type)==="Low"?"text-danger":((O=o==null?void 0:o[0])==null?void 0:O.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(((K=o==null?void 0:o[0])==null?void 0:K.height)??"-"),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((q=o==null?void 0:o[0])==null?void 0:q.type)==="Low"?"text-danger":((J=o==null?void 0:o[0])==null?void 0:J.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(((B=o==null?void 0:o[0])==null?void 0:B.type)??"-"),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",(($=o==null?void 0:o[1])==null?void 0:$.type)==="Low"?"text-danger":((Z=o==null?void 0:o[1])==null?void 0:Z.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(i.computeHHmmLT((X=o==null?void 0:o[1])==null?void 0:X.date)),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((ee=o==null?void 0:o[1])==null?void 0:ee.type)==="Low"?"text-danger":((te=o==null?void 0:o[1])==null?void 0:te.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(((H=o==null?void 0:o[1])==null?void 0:H.height)??"-"),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((A=o==null?void 0:o[1])==null?void 0:A.type)==="Low"?"text-danger":((ce=o==null?void 0:o[1])==null?void 0:ce.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(((de=o==null?void 0:o[1])==null?void 0:de.type)??"-"),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((he=o==null?void 0:o[2])==null?void 0:he.type)==="Low"?"text-danger":((ie=o==null?void 0:o[2])==null?void 0:ie.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(i.computeHHmmLT((se=o==null?void 0:o[2])==null?void 0:se.date)),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((r=o==null?void 0:o[2])==null?void 0:r.type)==="Low"?"text-danger":((le=o==null?void 0:o[2])==null?void 0:le.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(((ne=o==null?void 0:o[2])==null?void 0:ne.height)??"-"),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((fe=o==null?void 0:o[2])==null?void 0:fe.type)==="Low"?"text-danger":((Ne=o==null?void 0:o[2])==null?void 0:Ne.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(((Se=o==null?void 0:o[2])==null?void 0:Se.type)??"-"),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((Me=o==null?void 0:o[3])==null?void 0:Me.type)==="Low"?"text-danger":((_e=o==null?void 0:o[3])==null?void 0:_e.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(i.computeHHmmLT((Ee=o==null?void 0:o[3])==null?void 0:Ee.date)),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((ve=o==null?void 0:o[3])==null?void 0:ve.type)==="Low"?"text-danger":((Le=o==null?void 0:o[3])==null?void 0:Le.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(((Ve=o==null?void 0:o[3])==null?void 0:Ve.height)??"-"),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((He=o==null?void 0:o[3])==null?void 0:He.type)==="Low"?"text-danger":((Ce=o==null?void 0:o[3])==null?void 0:Ce.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(((Be=o==null?void 0:o[3])==null?void 0:Be.type)??"-"),3)],2)}),128))])],2)]))])):e.createCommentVNode("",!0)])],2)}const T1=Ie(ft,[["render",y3],["__scopeId","data-v-e2dff67f"]]),q4="",f3={name:"IdmHistorical",components:{IdmLoading:N1},props:{reportData:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1},theme:{type:String,default:"light"},locale:{type:String,default:"en"}},data(){return{positionGmt:void 0,meteogramData:void 0,hourlyTableData:[]}},computed:{computeHourLT(){return l=>{if(l){const a=M.tz(l,this.positionGmt);return`${a==null?void 0:a.format("HH")}`}return"-"}},computeUTCTime(){return(l,a="MMM-DD/HHmm[Z], YYYY")=>{if(l){const t=M(l).utc();return`${t==null?void 0:t.format(a)}`}return"-"}},computeMMMDDHHmmLT(){return(l,a)=>{if(l){const t=M.tz(l,a);return`${t==null?void 0:t.format("MMM-DD/HHmm")}`}return"-"}},computeTzTime(){return(l,a)=>{if(l){const t=M.tz(l,a);return`${t==null?void 0:t.format("yyyy-MM-DD")}`}return"-"}},computeLat(){return(l,a=4)=>re.LngLatHelper.lat2pretty(l,a).pretty},computeLng(){return(l,a=4)=>re.LngLatHelper.lng2pretty(l,a).pretty},roundPrecision(){return(l,a=4)=>isNaN(l)||l===null||l===void 0||isNaN(a)?"-":re.LngLatHelper.roundPrecision(l,a)}},watch:{"reportData.version":{handler(){var l,a,t,s;(l=this.reportData)!=null&&l.version&&(this.positionGmt=(s=(t=(a=this.reportData)==null?void 0:a.weather)==null?void 0:t[0])==null?void 0:s.timezone,this.handleRender())},immediate:!0}},methods:{handleRender(){this.$nextTick(()=>{this.disposeEcharts(),this.handleMeteogramData(this.reportData),this.initHourlyTableData(this.reportData)})},handleMeteogramData(l){var p,u;const a=l.forecastDays||7,t=l.interval||3,s=a>7?6:a>3?3:t,n=((p=this.reportData)==null?void 0:p.datetime)||((u=this.reportData)==null?void 0:u.etime);this.meteogramData={xDates:[],dates:[],hours:[],temperatures:[],weatherIcons:[],weatherNames:[],visibility:[],windspeed:[],windGusts:[],windDir:[],windDirIcons:[],windSpeedReferMax:[],precip:[],sigWaveHeight:[],windWaveHeight:[],swellHeight:[],waveHeightRefer:[],currentSpd:[],sst:[],markarea:[],gridOffset:{l:4,r:4},singleAxisOffset:{}};let i={start:void 0,end:void 0};const c=this.theme==="dark"?"rgba(159, 255, 126, 1)":"rgba(54, 212, 0, 1)",m="data:image/svg+xml;base64,"+window.btoa(`<svg t="1740383449285" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10797" width="200" height="200"><path d="M133.8 579l-44.4-44.4c-18.8-18.8-18.8-49.2 0-67.8L478 78c18.8-18.8 49.2-18.8 67.8 0l388.6 388.6c18.8 18.8 18.8 49.2 0 67.8L890 578.8c-19 19-50 18.6-68.6-0.8L592 337.2V912c0 26.6-21.4 48-48 48h-64c-26.6 0-48-21.4-48-48V337.2L202.4 578.2c-18.6 19.6-49.6 20-68.6 0.8z" fill="${c}" p-id="10798"></path></svg>`),d=new Image(64,64);d.src=m,d.onload=async()=>{var f,v,E,_,N,k,D,x,L,S,R,C,z,I,T,y,F,V,o,W,h,j,Y,O,K,q,J,B,$,Z,X,ee,te,H,A,ce,de,he,ie,se,r,le,ne,fe,Ne,Se,Me,_e,Ee,ve,Le,Ve,He,Ce,Be,Ge,$e,je,Ye,Ue,me,Ae,U,t1,ke,Te,l1;const b=(v=(f=M.tz(n,this.positionGmt))==null?void 0:f.set({hour:0,minute:0,second:0,millisecond:0}))==null?void 0:v.format();for(let pe=0;pe<a*24;pe++)if(pe%t===0){const We=M(b).clone().add(pe,"h").format();(E=this.meteogramData)==null||E.dates.push(We);const G=((_=c1.Meteo2Assist.pickHourly(l,We))==null?void 0:_[0])||{};(k=this.meteogramData)==null||k.temperatures.push(this.roundPrecision((N=G==null?void 0:G.weather)==null?void 0:N.temp,0)),(x=this.meteogramData)==null||x.visibility.push(this.roundPrecision((D=G==null?void 0:G.weather)==null?void 0:D.visibility,1)),(R=this.meteogramData)==null||R.windspeed.push(this.roundPrecision((S=(L=G.weather)==null?void 0:L.wind)==null?void 0:S.kts,1)),(I=this.meteogramData)==null||I.windGusts.push(this.roundPrecision((z=(C=G==null?void 0:G.weather)==null?void 0:C.wind)==null?void 0:z.gusts,1)),(T=this.meteogramData)==null||T.windSpeedReferMax.push(16),(V=this.meteogramData)==null||V.sigWaveHeight.push(this.roundPrecision((F=(y=G==null?void 0:G.wave)==null?void 0:y.sig)==null?void 0:F.height)),(h=this.meteogramData)==null||h.windWaveHeight.push(this.roundPrecision((W=(o=G==null?void 0:G.wave)==null?void 0:o.wd)==null?void 0:W.height)),(O=this.meteogramData)==null||O.swellHeight.push(this.roundPrecision((Y=(j=G==null?void 0:G.wave)==null?void 0:j.swell)==null?void 0:Y.height)),(K=this.meteogramData)==null||K.waveHeightRefer.push(1.5);const s1=t===1?"sum1Hours":"sum3Hours";if((B=this.meteogramData)==null||B.precip.push(this.roundPrecision((J=(q=G==null?void 0:G.weather)==null?void 0:q.precip)==null?void 0:J[s1],1)),(Z=this.meteogramData)==null||Z.currentSpd.push(this.roundPrecision(($=G==null?void 0:G.current)==null?void 0:$.kts,1)),(X=this.meteogramData)==null||X.sst.push(this.roundPrecision(G==null?void 0:G.sst,0)),t<24&&pe%12===0&&pe%24!==0||t>=24&&pe%24===0?(te=this.meteogramData)==null||te.xDates.push((ee=M.tz(We,this.positionGmt))==null?void 0:ee.format("MMM-DD")):(H=this.meteogramData)==null||H.xDates.push(""),pe%s===0?(A=this.meteogramData)==null||A.hours.push(this.computeHourLT(We)):(ce=this.meteogramData)==null||ce.hours.push(""),pe%12===0?((de=G.weather)!=null&&de.url?(ie=this.meteogramData)==null||ie.weatherIcons.push({symbol:"image://"+((he=G.weather)==null?void 0:he.url),symbolSize:30}):this.meteogramData.weatherIcons.push({symbol:"image://",symbolSize:0}),(r=this.meteogramData)==null||r.weatherNames.push((se=G.weather)==null?void 0:se.name)):((le=this.meteogramData)==null||le.weatherIcons.push({symbol:"image://",symbolSize:0}),(ne=this.meteogramData)==null||ne.weatherNames.push("")),pe%s===0?(Se=this.meteogramData)==null||Se.windDir.push((Ne=(fe=G.weather)==null?void 0:fe.wind)==null?void 0:Ne.bearing):(Me=this.meteogramData)==null||Me.windDir.push(void 0),pe%s===0){const Oe=document.createElement("canvas"),a1=Oe.getContext("2d");Oe.width=d.width,Oe.height=d.height;const r1=((Ee=(_e=G.weather)==null?void 0:_e.wind)==null?void 0:Ee.bearing)*(Math.PI/180);a1.translate(Oe.width/2,Oe.height/2),a1.rotate(r1),a1.translate(-d.width/2,-d.height/2),a1.drawImage(d,0,0,64,64);const n1=Oe.toDataURL();this.meteogramData.windDirIcons.push({symbol:"image://"+n1,symbolSize:16})}else this.meteogramData.windDirIcons.push({symbol:"image://",symbolSize:0});(ve=G==null?void 0:G.weather)!=null&&ve.isDay?i.end===void 0&&i.start>=0&&(i.end=pe):i.start===void 0&&(i.start=pe),(i.start>=0&&i.end>=0||i.start>=0&&pe===a*24-1)&&(($e=this.meteogramData)==null||$e.markarea.push([{x:((Le=this.meteogramData)==null?void 0:Le.gridOffset.l)+i.start/(a*24)*(100-((Ve=this.meteogramData)==null?void 0:Ve.gridOffset.l)-((He=this.meteogramData)==null?void 0:He.gridOffset.r))+"%"},{x:((Ce=this.meteogramData)==null?void 0:Ce.gridOffset.l)+(i.end+1)/(a*24)*(100-((Be=this.meteogramData)==null?void 0:Be.gridOffset.l)-((Ge=this.meteogramData)==null?void 0:Ge.gridOffset.r))+"%"}]),i={start:void 0,end:void 0})}this.meteogramData.singleAxisOffset.l=((je=this.meteogramData)==null?void 0:je.gridOffset.l)+.5/((Ue=(Ye=this.meteogramData)==null?void 0:Ye.dates)==null?void 0:Ue.length)*(100-((me=this.meteogramData)==null?void 0:me.gridOffset.l)-((Ae=this.meteogramData)==null?void 0:Ae.gridOffset.r))+"%",this.meteogramData.singleAxisOffset.r=((U=this.meteogramData)==null?void 0:U.gridOffset.r)+.5/((ke=(t1=this.meteogramData)==null?void 0:t1.dates)==null?void 0:ke.length)*(100-((Te=this.meteogramData)==null?void 0:Te.gridOffset.l)-((l1=this.meteogramData)==null?void 0:l1.gridOffset.r))+"%",this.$nextTick(()=>{this.initMeteogramEchart(l)})}},initMeteogramEchart(l){var N,k,D,x,L,S,R,C,z,I,T,y,F,V,o,W,h,j,Y,O,K,q,J,B,$,Z,X,ee,te,H,A,ce,de,he,ie,se,r,le,ne,fe,Ne,Se,Me,_e,Ee,ve,Le,Ve,He,Ce,Be,Ge,$e,je,Ye,Ue,me,Ae,U,t1,ke,Te,l1,pe,We,G,s1,Oe,a1,d1,r1,n1,h1,m1,p1,g1,w,De,Ze,qe,Je,Xe,Qe,Ke,Q,y1,f1,b1,u1,w1,x1,z1,k1,D1,ge,e1,be,X1,Q1,K1,e2,t2,a2,l2,o2,i2,s2,r2,n2,c2,d2,h2,m2,p2,g2,y2,f2,b2,u2,w2,x2,z2,k2,D2,F2,N2,S2,M2,_2,E2,v2,L2,V2,H2,C2,B2,A2,T2,P2,I2,W2,O2,R2,G2,$2;const a=l.interval||3;let t=Math.max(...this.meteogramData.temperatures.filter(g=>typeof g=="number"&&!isNaN(g))),s=Math.min(...this.meteogramData.temperatures.filter(g=>typeof g=="number"&&!isNaN(g))),n=Math.floor(s/5)*5,i=Math.ceil(t/5)*5,c=Math.ceil((i-n)/5);n=Math.floor((n-2*c)/5)*5,i=Math.ceil((i+1)/5)*5,c=Math.ceil((i-n)/5);let m="";a===1?(m=this.locale==="zhHans"?"1小时降水 ( mm ) ":"Precip.1h ( mm ) ",this.locale,this.locale,this.locale,this.locale):(m=this.locale==="zhHans"?"3小时降水 ( mm ) ":"Precip.3h ( mm ) ",this.locale,this.locale,this.locale,this.locale);let d,p={title:{text:this.locale==="zhHans"?"温度":"Temperature",top:"10px",left:0,textStyle:{fontWeight:"500",fontSize:16,color:this.theme==="dark"?"rgba(255, 255, 255, 1)":"rgba(28,31,35,1)"}},grid:{show:!0,bottom:"20%",top:"40px",left:`${this.meteogramData.gridOffset.l}%`,right:`${this.meteogramData.gridOffset.r}%`,borderColor:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0, 0, 0, 0.4)",borderWidth:1,z:1,zlevel:1},tooltip:{trigger:"axis",show:!0,position:"right",formatter:g=>{var ue,we,xe,ze;const Re=(ue=g==null?void 0:g.find(P=>P.seriesType==="line"))==null?void 0:ue.dataIndex;return g.find(P=>P.seriesType==="scatter")?!1:`<div style="font-size: 13px;"><strong>${M.tz((we=this.meteogramData)==null?void 0:we.dates[Re],this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
69
+ </svg>`;return btoa(unescape(encodeURIComponent(t)))},async convertSvgUrlToBase64(l){try{const t=await(await fetch(l)).text();return`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(t)))}`}catch(a){return console.warn("SVG conversion error:",a),l}}}},bt={class:"row"},ut={class:"col",style:{width:"54%"}},wt={key:0,style:{"margin-left":"8px"}},xt={key:1,style:{"margin-left":"8px"}},zt={key:0,class:"col",style:{width:"42%"}},kt={style:{"margin-left":"8px"}},Dt={key:1,class:"col",style:{width:"42%"}},Ft={style:{"margin-left":"8px"}},Nt={class:"row"},St={class:"col",style:{width:"54%"}},Mt={style:{"margin-left":"8px"}},_t={class:"col",style:{width:"42%"}},Et={style:{"margin-left":"8px"}},vt={class:"content-box"},Lt={key:0,class:"meteogram-echart-section"},Vt={key:2,id:"weatherIconsEchart"},Ht={key:3,id:"weatherConditionEchart"},Ct={key:4,id:"windIconsEchart"},Bt={key:5,id:"windEchart"},At={key:6,class:"page-break"},Tt={key:7,id:"waveChart"},Pt={class:"table-section"},It={key:0,class:"card"},Wt={class:"date"},Ot={class:"",style:{"font-size":"16px","font-weight":"500"}},Rt={rowspan:"2",colspan:"1",class:"border",style:{width:"90px"}},Gt={rowspan:"1",colspan:"1",class:"border"},$t={rowspan:"1",colspan:"1",class:"border"},jt={rowspan:"1",colspan:"1",class:"border"},Yt={rowspan:"1",colspan:"4",class:"border"},Ut={rowspan:"1",colspan:"3",class:"border"},Zt={rowspan:"1",colspan:"3",class:"border"},qt={rowspan:"1",colspan:"3",class:"border"},Jt={rowspan:"1",colspan:"2",class:"border"},Xt={rowspan:"1",colspan:"1",class:"border"},Qt={rowspan:"1",colspan:"1",class:"border"},Kt={rowspan:"1",colspan:"1",class:"border",style:{width:"80px"}},e6={rowspan:"1",colspan:"1",class:"border",style:{width:"70px"}},t6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},a6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},l6={rowspan:"1",colspan:"1",class:"border",style:{width:"30px"}},o6={rowspan:"1",colspan:"1",class:"border",style:{width:"60px"}},i6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},s6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},r6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},n6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},c6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},d6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},h6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},m6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},p6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},g6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},y6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},f6={rowspan:"1",colspan:"1",class:"border",style:{width:"70px"}},b6={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},u6={rowspan:"1",colspan:"1",class:"border",style:{width:"90px"}},w6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},x6={rowspan:"1",colspan:"1",class:"border",style:{width:"80px"}},z6={rowspan:"1",colspan:"1",class:"border",style:{width:"70px"}},k6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},D6=["src"],F6={key:1},N6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},S6={rowspan:"1",colspan:"1",class:"border",style:{width:"60px"}},M6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},_6=["src"],E6={key:1},v6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},L6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},V6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},H6=["src"],C6={key:1},B6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},A6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},T6=["src"],P6={key:1},I6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},W6={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},O6=["src"],R6={key:1},G6={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},$6={rowspan:"1",colspan:"1",class:"border",style:{width:"70px"}},j6={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},Y6={key:1,class:"table-section",style:{"margin-top":"20px","page-break-inside":"avoid"}},U6={key:0,class:"card",style:{"min-height":"220px"}},Z6={class:"date"},q6={class:"",style:{"font-size":"16px","font-weight":"500"}},J6={rowspan:"2",colspan:"1",class:"border",style:{width:"126px"}},X6={rowspan:"1",colspan:"3",class:"border"},Q6={rowspan:"1",colspan:"3",class:"border"},K6={rowspan:"1",colspan:"3",class:"border"},e3={rowspan:"1",colspan:"3",class:"border"},t3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},a3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},l3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},o3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},i3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},s3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},r3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},n3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},c3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},d3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},h3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},m3={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},p3={style:{height:"auto"}},g3={rowspan:"1",colspan:"1",class:"border",style:{width:"126px"}};function y3(l,a,t,s,n,i){var c,m,d,p,u,b,f,v,E,_,N,k,D,x,L,S,R,C,z,I,T,y,F,V;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["idm-spot-forecast-report",t.theme==="dark"?"dark":"light"])},[(c=t.reportData)!=null&&c.showSummary?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["summary-info-box",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("div",bt,[e.createElementVNode("div",ut,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"位置":"Position")+":",3),(m=t.reportData)!=null&&m.portName?(e.openBlock(),e.createElementBlock("span",wt,e.toDisplayString((d=t.reportData)==null?void 0:d.portName)+" "+e.toDisplayString(`[${i.computeLat(t.reportData.lat)}, ${i.computeLng(t.reportData.lng)}]`),1)):(e.openBlock(),e.createElementBlock("span",xt,e.toDisplayString(`${i.computeLat(t.reportData.lat)} , ${i.computeLng(t.reportData.lng)}`),1))]),(p=t.reportData)!=null&&p.datetime?(e.openBlock(),e.createElementBlock("div",zt,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"预报时段":"Forecast Period")+":",3),e.createElementVNode("span",kt,e.toDisplayString(i.computeTzTime((b=(u=t.reportData)==null?void 0:u.dateRange)==null?void 0:b[0],n.positionGmt))+" ~ "+e.toDisplayString(i.computeTzTime((v=(f=t.reportData)==null?void 0:f.dateRange)==null?void 0:v[1],n.positionGmt)),1)])):(e.openBlock(),e.createElementBlock("div",Dt,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"预报天数":"Forecast Days")+":",3),e.createElementVNode("span",Ft,e.toDisplayString((E=t.reportData)==null?void 0:E.forecastDays)+" "+e.toDisplayString(t.locale==="zhHans"?"天":"Days"),1)]))]),e.createElementVNode("div",Nt,[e.createElementVNode("div",St,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"时区":"Timezone")+":",3),e.createElementVNode("span",Mt,"UTC "+e.toDisplayString((_=t.reportData)==null?void 0:_.positionOffset),1)]),e.createElementVNode("div",_t,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"预报模式":"Forecast Model")+":",3),e.createElementVNode("span",Et,e.toDisplayString((N=t.reportData)==null?void 0:N.forecastModel),1)])])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",vt,[(k=t.reportData)!=null&&k.showWeatherChart||(D=t.reportData)!=null&&D.showWindChart||(x=t.reportData)!=null&&x.showWaveChart?(e.openBlock(),e.createElementBlock("div",Lt,[t.loading?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},[...a[0]||(a[0]=[e.createElementVNode("img",{style:{height:"60px"},src:"https://osshz.idmwx.com/asset/loading.gif"},null,-1)])],2)):t.reportData?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"暂无数据":"No Data"),3)),!t.loading&&((L=t.reportData)!=null&&L.showWeatherChart)?(e.openBlock(),e.createElementBlock("div",Vt)):e.createCommentVNode("",!0),!t.loading&&((S=t.reportData)!=null&&S.showWeatherChart)?(e.openBlock(),e.createElementBlock("div",Ht)):e.createCommentVNode("",!0),!t.loading&&((R=t.reportData)!=null&&R.showWindChart)?(e.openBlock(),e.createElementBlock("div",Ct)):e.createCommentVNode("",!0),!t.loading&&((C=t.reportData)!=null&&C.showWindChart)?(e.openBlock(),e.createElementBlock("div",Bt)):e.createCommentVNode("",!0),(z=t.reportData)!=null&&z.showWeatherChart&&((I=t.reportData)!=null&&I.showWindChart)?(e.openBlock(),e.createElementBlock("div",At)):e.createCommentVNode("",!0),!t.loading&&((T=t.reportData)!=null&&T.showWaveChart)?(e.openBlock(),e.createElementBlock("div",Tt)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Pt,[t.loading?t.loading?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},[...a[30]||(a[30]=[e.createElementVNode("img",{style:{height:"60px"},src:"https://osshz.idmwx.com/asset/loading.gif"},null,-1)])],2)):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"暂无数据":"No Data"),3)):(e.openBlock(),e.createElementBlock("div",It,[e.createElementVNode("div",Wt,[e.createElementVNode("div",Ot,e.toDisplayString(t.locale==="zhHans"?"小时预报":"Hourly Weather Forecast"),1),e.createElementVNode("div",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"]),style:{"font-size":"12px","margin-right":"20px"}}," * "+e.toDisplayString(t.locale==="zhHans"?"涌浪、显浪高度>=1.5米时标记为黄色, 风速蒲福等级>=4时标记为黄色。":"Swell or Sig.wave height alert in yellow for value>=1.5m, wind speed alert in yellow for beaufort scale >= 4."),3)]),e.createElementVNode("table",{class:e.normalizeClass(["conditions-table",(y=t.reportData)!=null&&y.showSummary?"":"table-header-fixed"])},[e.createElementVNode("thead",{class:e.normalizeClass(t.theme==="dark"?"dark":"light")},[e.createElementVNode("tr",{class:e.normalizeClass(["day",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("th",Rt,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"时间":"DateTime"),1),a[1]||(a[1]=e.createElementVNode("br",null,null,-1)),a[2]||(a[2]=e.createTextVNode("(LT)",-1))]),e.createElementVNode("th",Gt,e.toDisplayString(t.locale==="zhHans"?"温度":"Temp"),1),e.createElementVNode("th",$t,e.toDisplayString(t.locale==="zhHans"?`${t.reportData.interval}小时降水`:`Precip.${t.reportData.interval}h`),1),e.createElementVNode("th",jt,e.toDisplayString(t.locale==="zhHans"?"能见度":"Visibility"),1),e.createElementVNode("th",Yt,e.toDisplayString(t.locale==="zhHans"?"风":"Wind"),1),e.createElementVNode("th",Ut,e.toDisplayString(t.locale==="zhHans"?"风浪":"Wind wave"),1),e.createElementVNode("th",Zt,e.toDisplayString(t.locale==="zhHans"?"涌浪":"Swell wave"),1),e.createElementVNode("th",qt,e.toDisplayString(t.locale==="zhHans"?"显浪":"Sig.wave"),1),e.createElementVNode("th",Jt,e.toDisplayString(t.locale==="zhHans"?"洋流":"Current"),1),e.createElementVNode("th",Xt,e.toDisplayString(t.locale==="zhHans"?"海面":"Sea Level"),1),e.createElementVNode("th",Qt,e.toDisplayString(t.locale==="zhHans"?"海表":"Sea Surface"),1)],2),e.createElementVNode("tr",{class:e.normalizeClass(["hour",t.theme==="dark"?"dark":"light"])},[a[29]||(a[29]=e.createElementVNode("th",{rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},"°C",-1)),e.createElementVNode("th",Kt,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"累计":"Acc"),1),a[3]||(a[3]=e.createElementVNode("br",null,null,-1)),a[4]||(a[4]=e.createTextVNode("(mm)",-1))]),e.createElementVNode("th",e6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"距离":"Dist"),1),a[5]||(a[5]=e.createElementVNode("br",null,null,-1)),a[6]||(a[6]=e.createTextVNode("(nm)",-1))]),e.createElementVNode("th",t6,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",a6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"速度":"Spd"),1),a[7]||(a[7]=e.createElementVNode("br",null,null,-1)),a[8]||(a[8]=e.createTextVNode("(kts)",-1))]),e.createElementVNode("th",l6,e.toDisplayString(t.locale==="zhHans"?"等级":"BF"),1),e.createElementVNode("th",o6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"阵风":"Gusts"),1),a[9]||(a[9]=e.createElementVNode("br",null,null,-1)),a[10]||(a[10]=e.createTextVNode("(kts)",-1))]),e.createElementVNode("th",i6,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",s6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Hgt"),1),a[11]||(a[11]=e.createElementVNode("br",null,null,-1)),a[12]||(a[12]=e.createTextVNode("(m)",-1))]),e.createElementVNode("th",r6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"周期":"Prd"),1),a[13]||(a[13]=e.createElementVNode("br",null,null,-1)),a[14]||(a[14]=e.createTextVNode("(s)",-1))]),e.createElementVNode("th",n6,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",c6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Hgt"),1),a[15]||(a[15]=e.createElementVNode("br",null,null,-1)),a[16]||(a[16]=e.createTextVNode("(m)",-1))]),e.createElementVNode("th",d6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"周期":"Prd"),1),a[17]||(a[17]=e.createElementVNode("br",null,null,-1)),a[18]||(a[18]=e.createTextVNode("(s)",-1))]),e.createElementVNode("th",h6,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",m6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Hgt"),1),a[19]||(a[19]=e.createElementVNode("br",null,null,-1)),a[20]||(a[20]=e.createTextVNode("(m)",-1))]),e.createElementVNode("th",p6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"周期":"Prd"),1),a[21]||(a[21]=e.createElementVNode("br",null,null,-1)),a[22]||(a[22]=e.createTextVNode("(s)",-1))]),e.createElementVNode("th",g6,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",y6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"速度":"Spd"),1),a[23]||(a[23]=e.createElementVNode("br",null,null,-1)),a[24]||(a[24]=e.createTextVNode("(kts)",-1))]),e.createElementVNode("th",f6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Hgt"),1),a[25]||(a[25]=e.createElementVNode("br",null,null,-1)),a[26]||(a[26]=e.createTextVNode("(m)",-1))]),e.createElementVNode("th",b6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"温度":"Temp"),1),a[27]||(a[27]=e.createElementVNode("br",null,null,-1)),a[28]||(a[28]=e.createTextVNode("(°C)",-1))])],2)],2),e.createElementVNode("tbody",{class:e.normalizeClass((F=t.reportData)!=null&&F.showSummary?"":"scroll")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.hourlyTableData,o=>(e.openBlock(),e.createElementBlock("tr",{key:Math.random()+o.localDate,class:e.normalizeClass(["text border-bottom",o.windBF>=4||o.swellHeight>1.5||o.sigWaveHeight>1.5?"bg-gray":"",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("td",u6,[e.createElementVNode("div",null,e.toDisplayString(o.localDate),1)]),e.createElementVNode("td",w6,[e.createElementVNode("div",null,e.toDisplayString(o.temp),1)]),e.createElementVNode("td",x6,e.toDisplayString(o.precipSum),1),e.createElementVNode("td",z6,e.toDisplayString(o.visibility),1),e.createElementVNode("td",k6,[e.createTextVNode(e.toDisplayString(o.windDir)+" ",1),!isNaN(o.windBearing)&&o.windDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWindArrowBase64(o.windBearing,this.theme==="dark"?"rgba(159, 255, 126, 1)":"rgba(54, 212, 0, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,D6)):(e.openBlock(),e.createElementBlock("span",F6,"-"))]),e.createElementVNode("td",N6,e.toDisplayString(o.windSpeed),1),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border",o.windBF>=4?"bg-yellow":"",t.theme==="dark"?"dark":"light"]),style:{width:"30px"}},e.toDisplayString(o.windBF),3),e.createElementVNode("td",S6,e.toDisplayString(o.windGusts),1),e.createElementVNode("td",M6,[e.createTextVNode(e.toDisplayString(o.windWaveDir)+" ",1),!isNaN(o.windWaveBearing)&&o.windWaveDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWaveArrowBase64(o.windWaveBearing,(this.theme==="dark","#7cc7b3"))}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,_6)):(e.openBlock(),e.createElementBlock("span",E6,"-"))]),e.createElementVNode("td",v6,e.toDisplayString(o.windWaveHeight),1),e.createElementVNode("td",L6,e.toDisplayString(o.windWavePeriod),1),e.createElementVNode("td",V6,[e.createTextVNode(e.toDisplayString(o.swellDir)+" ",1),!isNaN(o.swellBearing)&&o.swellDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWaveArrowBase64(o.swellBearing,this.theme==="dark"?"rgb(17, 245, 211)":"rgba(0, 230, 194, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,H6)):(e.openBlock(),e.createElementBlock("span",C6,"-"))]),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border",o.swellHeight>1.5?"bg-yellow":"",t.theme==="dark"?"dark":"light"]),style:{width:"45px"}},e.toDisplayString(o.swellHeight),3),e.createElementVNode("td",B6,e.toDisplayString(o.swellPeriod),1),e.createElementVNode("td",A6,[e.createTextVNode(e.toDisplayString(o.sigWaveDir)+" ",1),!isNaN(o.sigWaveBearing)&&o.sigWaveDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWaveArrowBase64(o.sigWaveBearing,this.theme==="dark"?"rgba(89, 199, 211, 1)":"rgba(1, 189, 211, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,T6)):(e.openBlock(),e.createElementBlock("span",P6,"-"))]),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border",o.sigWaveHeight>1.5?"bg-yellow":"",t.theme==="dark"?"dark":"light"]),style:{width:"45px"}},e.toDisplayString(o.sigWaveHeight),3),e.createElementVNode("td",I6,e.toDisplayString(o.sigWavePeriod),1),e.createElementVNode("td",W6,[e.createTextVNode(e.toDisplayString(o.currentDir)+" ",1),!isNaN(o.currentBearing)&&o.currentDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWaveArrowBase64(o.currentBearing,this.theme==="dark"?"rgba(220, 115, 255, 1)":"rgba(178, 51, 220, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,O6)):(e.openBlock(),e.createElementBlock("span",R6,"-"))]),e.createElementVNode("td",G6,e.toDisplayString(o.currentSpd),1),e.createElementVNode("td",$6,e.toDisplayString(o.seaLevel),1),e.createElementVNode("td",j6,e.toDisplayString(o.seaSurfaceTemp),1)],2))),128))],2)],2)]))]),t.showTide?(e.openBlock(),e.createElementBlock("div",Y6,[t.tideLoading?t.tideLoading?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},[...a[49]||(a[49]=[e.createElementVNode("img",{style:{height:"60px"},src:"https://osshz.idmwx.com/asset/loading.gif"},null,-1)])],2)):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"暂无数据":"No Data"),3)):(e.openBlock(),e.createElementBlock("div",U6,[e.createElementVNode("div",Z6,[e.createElementVNode("div",q6,e.toDisplayString(t.locale==="zhHans"?"潮汐预报":"Tide Forecast"),1),e.createElementVNode("div",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"]),style:{"font-size":"12px","margin-right":"20px"}}," * "+e.toDisplayString(t.locale==="zhHans"?"低位标记为红色,高位标记为绿色。":"Low tide in red, high tide in green."),3)]),e.createElementVNode("table",{class:e.normalizeClass(["conditions-table",(V=t.reportData)!=null&&V.showSummary?"":"table-header-fixed"])},[e.createElementVNode("thead",{class:e.normalizeClass(t.theme==="dark"?"dark":"light")},[e.createElementVNode("tr",{class:e.normalizeClass(["day",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("th",J6,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"日期":"Date"),1),a[31]||(a[31]=e.createElementVNode("br",null,null,-1)),a[32]||(a[32]=e.createTextVNode("(LT)",-1))]),e.createElementVNode("th",X6,e.toDisplayString(t.locale==="zhHans"?"第一次潮汐":"1st Tide"),1),e.createElementVNode("th",Q6,e.toDisplayString(t.locale==="zhHans"?"第二次潮汐":"2st Tide"),1),e.createElementVNode("th",K6,e.toDisplayString(t.locale==="zhHans"?"第三次潮汐":"3st Tide"),1),e.createElementVNode("th",e3,e.toDisplayString(t.locale==="zhHans"?"第四次潮汐":"4st Tide"),1)],2),e.createElementVNode("tr",{class:e.normalizeClass(["hour",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("th",t3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"时间":"Time"),1),a[33]||(a[33]=e.createElementVNode("br",null,null,-1)),a[34]||(a[34]=e.createTextVNode("(LT)",-1))]),e.createElementVNode("th",a3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Height"),1),a[35]||(a[35]=e.createElementVNode("br",null,null,-1)),a[36]||(a[36]=e.createTextVNode("(mm)",-1))]),e.createElementVNode("th",l3,e.toDisplayString(t.locale==="zhHans"?"类型":"Type"),1),e.createElementVNode("th",o3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"时间":"Time"),1),a[37]||(a[37]=e.createElementVNode("br",null,null,-1)),a[38]||(a[38]=e.createTextVNode("(LT)",-1))]),e.createElementVNode("th",i3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Height"),1),a[39]||(a[39]=e.createElementVNode("br",null,null,-1)),a[40]||(a[40]=e.createTextVNode("(mm)",-1))]),e.createElementVNode("th",s3,e.toDisplayString(t.locale==="zhHans"?"类型":"Type"),1),e.createElementVNode("th",r3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"时间":"Time"),1),a[41]||(a[41]=e.createElementVNode("br",null,null,-1)),a[42]||(a[42]=e.createTextVNode("(LT)",-1))]),e.createElementVNode("th",n3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Height"),1),a[43]||(a[43]=e.createElementVNode("br",null,null,-1)),a[44]||(a[44]=e.createTextVNode("(mm)",-1))]),e.createElementVNode("th",c3,e.toDisplayString(t.locale==="zhHans"?"类型":"Type"),1),e.createElementVNode("th",d3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"时间":"Time"),1),a[45]||(a[45]=e.createElementVNode("br",null,null,-1)),a[46]||(a[46]=e.createTextVNode("(LT)",-1))]),e.createElementVNode("th",h3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Height"),1),a[47]||(a[47]=e.createElementVNode("br",null,null,-1)),a[48]||(a[48]=e.createTextVNode("(mm)",-1))]),e.createElementVNode("th",m3,e.toDisplayString(t.locale==="zhHans"?"类型":"Type"),1)],2)],2),e.createElementVNode("tbody",p3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tideTableData,o=>{var W,h,j,Y,O,K,q,J,B,$,Z,X,ee,te,H,A,ce,de,he,ie,se,r,le,ne,fe,Ne,Se,Me,_e,Ee,ve,Le,Ve,He,Ce,Be;return e.openBlock(),e.createElementBlock("tr",{key:Math.random()+o.date,class:e.normalizeClass(["text border-bottom",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("td",g3,[e.createElementVNode("div",null,e.toDisplayString((o==null?void 0:o.date)||""),1)]),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((W=o==null?void 0:o[0])==null?void 0:W.type)==="Low"?"text-danger":((h=o==null?void 0:o[0])==null?void 0:h.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(i.computeHHmmLT((j=o==null?void 0:o[0])==null?void 0:j.date)),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((Y=o==null?void 0:o[0])==null?void 0:Y.type)==="Low"?"text-danger":((O=o==null?void 0:o[0])==null?void 0:O.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(((K=o==null?void 0:o[0])==null?void 0:K.height)??"-"),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((q=o==null?void 0:o[0])==null?void 0:q.type)==="Low"?"text-danger":((J=o==null?void 0:o[0])==null?void 0:J.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(((B=o==null?void 0:o[0])==null?void 0:B.type)??"-"),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",(($=o==null?void 0:o[1])==null?void 0:$.type)==="Low"?"text-danger":((Z=o==null?void 0:o[1])==null?void 0:Z.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(i.computeHHmmLT((X=o==null?void 0:o[1])==null?void 0:X.date)),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((ee=o==null?void 0:o[1])==null?void 0:ee.type)==="Low"?"text-danger":((te=o==null?void 0:o[1])==null?void 0:te.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(((H=o==null?void 0:o[1])==null?void 0:H.height)??"-"),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((A=o==null?void 0:o[1])==null?void 0:A.type)==="Low"?"text-danger":((ce=o==null?void 0:o[1])==null?void 0:ce.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(((de=o==null?void 0:o[1])==null?void 0:de.type)??"-"),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((he=o==null?void 0:o[2])==null?void 0:he.type)==="Low"?"text-danger":((ie=o==null?void 0:o[2])==null?void 0:ie.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(i.computeHHmmLT((se=o==null?void 0:o[2])==null?void 0:se.date)),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((r=o==null?void 0:o[2])==null?void 0:r.type)==="Low"?"text-danger":((le=o==null?void 0:o[2])==null?void 0:le.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(((ne=o==null?void 0:o[2])==null?void 0:ne.height)??"-"),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((fe=o==null?void 0:o[2])==null?void 0:fe.type)==="Low"?"text-danger":((Ne=o==null?void 0:o[2])==null?void 0:Ne.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(((Se=o==null?void 0:o[2])==null?void 0:Se.type)??"-"),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((Me=o==null?void 0:o[3])==null?void 0:Me.type)==="Low"?"text-danger":((_e=o==null?void 0:o[3])==null?void 0:_e.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(i.computeHHmmLT((Ee=o==null?void 0:o[3])==null?void 0:Ee.date)),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((ve=o==null?void 0:o[3])==null?void 0:ve.type)==="Low"?"text-danger":((Le=o==null?void 0:o[3])==null?void 0:Le.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(((Ve=o==null?void 0:o[3])==null?void 0:Ve.height)??"-"),3),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border text-bold",((He=o==null?void 0:o[3])==null?void 0:He.type)==="Low"?"text-danger":((Ce=o==null?void 0:o[3])==null?void 0:Ce.type)==="High"?"text-success":"",t.theme==="dark"?"dark":"light"]),style:{width:"85px"}},e.toDisplayString(((Be=o==null?void 0:o[3])==null?void 0:Be.type)??"-"),3)],2)}),128))])],2)]))])):e.createCommentVNode("",!0)])],2)}const T1=Ie(ft,[["render",y3],["__scopeId","data-v-73da07a8"]]),q4="",f3={name:"IdmHistorical",components:{IdmLoading:N1},props:{reportData:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1},theme:{type:String,default:"light"},locale:{type:String,default:"en"}},data(){return{positionGmt:void 0,meteogramData:void 0,hourlyTableData:[]}},computed:{computeHourLT(){return l=>{if(l){const a=M.tz(l,this.positionGmt);return`${a==null?void 0:a.format("HH")}`}return"-"}},computeUTCTime(){return(l,a="MMM-DD/HHmm[Z], YYYY")=>{if(l){const t=M(l).utc();return`${t==null?void 0:t.format(a)}`}return"-"}},computeMMMDDHHmmLT(){return(l,a)=>{if(l){const t=M.tz(l,a);return`${t==null?void 0:t.format("MMM-DD/HHmm")}`}return"-"}},computeTzTime(){return(l,a)=>{if(l){const t=M.tz(l,a);return`${t==null?void 0:t.format("yyyy-MM-DD")}`}return"-"}},computeLat(){return(l,a=4)=>re.LngLatHelper.lat2pretty(l,a).pretty},computeLng(){return(l,a=4)=>re.LngLatHelper.lng2pretty(l,a).pretty},roundPrecision(){return(l,a=4)=>isNaN(l)||l===null||l===void 0||isNaN(a)?"-":re.LngLatHelper.roundPrecision(l,a)}},watch:{"reportData.version":{handler(){var l,a,t,s;(l=this.reportData)!=null&&l.version&&(this.positionGmt=(s=(t=(a=this.reportData)==null?void 0:a.weather)==null?void 0:t[0])==null?void 0:s.timezone,this.handleRender())},immediate:!0}},methods:{handleRender(){this.$nextTick(()=>{this.disposeEcharts(),this.handleMeteogramData(this.reportData),this.initHourlyTableData(this.reportData)})},handleMeteogramData(l){var p,u;const a=l.forecastDays||7,t=l.interval||3,s=a>7?6:a>3?3:t,n=((p=this.reportData)==null?void 0:p.datetime)||((u=this.reportData)==null?void 0:u.etime);this.meteogramData={xDates:[],dates:[],hours:[],temperatures:[],weatherIcons:[],weatherNames:[],visibility:[],windspeed:[],windGusts:[],windDir:[],windDirIcons:[],windSpeedReferMax:[],precip:[],sigWaveHeight:[],windWaveHeight:[],swellHeight:[],waveHeightRefer:[],currentSpd:[],sst:[],markarea:[],gridOffset:{l:6,r:6},singleAxisOffset:{}};let i={start:void 0,end:void 0};const c=this.theme==="dark"?"rgba(159, 255, 126, 1)":"rgba(54, 212, 0, 1)",m="data:image/svg+xml;base64,"+window.btoa(`<svg t="1740383449285" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10797" width="200" height="200"><path d="M133.8 579l-44.4-44.4c-18.8-18.8-18.8-49.2 0-67.8L478 78c18.8-18.8 49.2-18.8 67.8 0l388.6 388.6c18.8 18.8 18.8 49.2 0 67.8L890 578.8c-19 19-50 18.6-68.6-0.8L592 337.2V912c0 26.6-21.4 48-48 48h-64c-26.6 0-48-21.4-48-48V337.2L202.4 578.2c-18.6 19.6-49.6 20-68.6 0.8z" fill="${c}" p-id="10798"></path></svg>`),d=new Image(64,64);d.src=m,d.onload=async()=>{var f,v,E,_,N,k,D,x,L,S,R,C,z,I,T,y,F,V,o,W,h,j,Y,O,K,q,J,B,$,Z,X,ee,te,H,A,ce,de,he,ie,se,r,le,ne,fe,Ne,Se,Me,_e,Ee,ve,Le,Ve,He,Ce,Be,Ge,$e,je,Ye,Ue,me,Ae,U,t1,ke,Te,l1;const b=(v=(f=M.tz(n,this.positionGmt))==null?void 0:f.set({hour:0,minute:0,second:0,millisecond:0}))==null?void 0:v.format();for(let pe=0;pe<a*24;pe++)if(pe%t===0){const We=M(b).clone().add(pe,"h").format();(E=this.meteogramData)==null||E.dates.push(We);const G=((_=c1.Meteo2Assist.pickHourly(l,We))==null?void 0:_[0])||{};(k=this.meteogramData)==null||k.temperatures.push(this.roundPrecision((N=G==null?void 0:G.weather)==null?void 0:N.temp,0)),(x=this.meteogramData)==null||x.visibility.push(this.roundPrecision((D=G==null?void 0:G.weather)==null?void 0:D.visibility,1)),(R=this.meteogramData)==null||R.windspeed.push(this.roundPrecision((S=(L=G.weather)==null?void 0:L.wind)==null?void 0:S.kts,1)),(I=this.meteogramData)==null||I.windGusts.push(this.roundPrecision((z=(C=G==null?void 0:G.weather)==null?void 0:C.wind)==null?void 0:z.gusts,1)),(T=this.meteogramData)==null||T.windSpeedReferMax.push(16),(V=this.meteogramData)==null||V.sigWaveHeight.push(this.roundPrecision((F=(y=G==null?void 0:G.wave)==null?void 0:y.sig)==null?void 0:F.height)),(h=this.meteogramData)==null||h.windWaveHeight.push(this.roundPrecision((W=(o=G==null?void 0:G.wave)==null?void 0:o.wd)==null?void 0:W.height)),(O=this.meteogramData)==null||O.swellHeight.push(this.roundPrecision((Y=(j=G==null?void 0:G.wave)==null?void 0:j.swell)==null?void 0:Y.height)),(K=this.meteogramData)==null||K.waveHeightRefer.push(1.5);const s1=t===1?"sum1Hours":"sum3Hours";if((B=this.meteogramData)==null||B.precip.push(this.roundPrecision((J=(q=G==null?void 0:G.weather)==null?void 0:q.precip)==null?void 0:J[s1],1)),(Z=this.meteogramData)==null||Z.currentSpd.push(this.roundPrecision(($=G==null?void 0:G.current)==null?void 0:$.kts,1)),(X=this.meteogramData)==null||X.sst.push(this.roundPrecision(G==null?void 0:G.sst,0)),t<24&&pe%12===0&&pe%24!==0||t>=24&&pe%24===0?(te=this.meteogramData)==null||te.xDates.push((ee=M.tz(We,this.positionGmt))==null?void 0:ee.format("MMM-DD")):(H=this.meteogramData)==null||H.xDates.push(""),pe%s===0?(A=this.meteogramData)==null||A.hours.push(this.computeHourLT(We)):(ce=this.meteogramData)==null||ce.hours.push(""),pe%12===0?((de=G.weather)!=null&&de.url?(ie=this.meteogramData)==null||ie.weatherIcons.push({symbol:"image://"+((he=G.weather)==null?void 0:he.url),symbolSize:30}):this.meteogramData.weatherIcons.push({symbol:"image://",symbolSize:0}),(r=this.meteogramData)==null||r.weatherNames.push((se=G.weather)==null?void 0:se.name)):((le=this.meteogramData)==null||le.weatherIcons.push({symbol:"image://",symbolSize:0}),(ne=this.meteogramData)==null||ne.weatherNames.push("")),pe%s===0?(Se=this.meteogramData)==null||Se.windDir.push((Ne=(fe=G.weather)==null?void 0:fe.wind)==null?void 0:Ne.bearing):(Me=this.meteogramData)==null||Me.windDir.push(void 0),pe%s===0){const Oe=document.createElement("canvas"),a1=Oe.getContext("2d");Oe.width=d.width,Oe.height=d.height;const r1=((Ee=(_e=G.weather)==null?void 0:_e.wind)==null?void 0:Ee.bearing)*(Math.PI/180);a1.translate(Oe.width/2,Oe.height/2),a1.rotate(r1),a1.translate(-d.width/2,-d.height/2),a1.drawImage(d,0,0,64,64);const n1=Oe.toDataURL();this.meteogramData.windDirIcons.push({symbol:"image://"+n1,symbolSize:16})}else this.meteogramData.windDirIcons.push({symbol:"image://",symbolSize:0});(ve=G==null?void 0:G.weather)!=null&&ve.isDay?i.end===void 0&&i.start>=0&&(i.end=pe):i.start===void 0&&(i.start=pe),(i.start>=0&&i.end>=0||i.start>=0&&pe===a*24-1)&&(($e=this.meteogramData)==null||$e.markarea.push([{x:((Le=this.meteogramData)==null?void 0:Le.gridOffset.l)+i.start/(a*24)*(100-((Ve=this.meteogramData)==null?void 0:Ve.gridOffset.l)-((He=this.meteogramData)==null?void 0:He.gridOffset.r))+"%"},{x:((Ce=this.meteogramData)==null?void 0:Ce.gridOffset.l)+(i.end+1)/(a*24)*(100-((Be=this.meteogramData)==null?void 0:Be.gridOffset.l)-((Ge=this.meteogramData)==null?void 0:Ge.gridOffset.r))+"%"}]),i={start:void 0,end:void 0})}this.meteogramData.singleAxisOffset.l=((je=this.meteogramData)==null?void 0:je.gridOffset.l)+.5/((Ue=(Ye=this.meteogramData)==null?void 0:Ye.dates)==null?void 0:Ue.length)*(100-((me=this.meteogramData)==null?void 0:me.gridOffset.l)-((Ae=this.meteogramData)==null?void 0:Ae.gridOffset.r))+"%",this.meteogramData.singleAxisOffset.r=((U=this.meteogramData)==null?void 0:U.gridOffset.r)+.5/((ke=(t1=this.meteogramData)==null?void 0:t1.dates)==null?void 0:ke.length)*(100-((Te=this.meteogramData)==null?void 0:Te.gridOffset.l)-((l1=this.meteogramData)==null?void 0:l1.gridOffset.r))+"%",this.$nextTick(()=>{this.initMeteogramEchart(l)})}},initMeteogramEchart(l){var N,k,D,x,L,S,R,C,z,I,T,y,F,V,o,W,h,j,Y,O,K,q,J,B,$,Z,X,ee,te,H,A,ce,de,he,ie,se,r,le,ne,fe,Ne,Se,Me,_e,Ee,ve,Le,Ve,He,Ce,Be,Ge,$e,je,Ye,Ue,me,Ae,U,t1,ke,Te,l1,pe,We,G,s1,Oe,a1,d1,r1,n1,h1,m1,p1,g1,w,De,Ze,qe,Je,Xe,Qe,Ke,Q,y1,f1,b1,u1,w1,x1,z1,k1,D1,ge,e1,be,X1,Q1,K1,e2,t2,a2,l2,o2,i2,s2,r2,n2,c2,d2,h2,m2,p2,g2,y2,f2,b2,u2,w2,x2,z2,k2,D2,F2,N2,S2,M2,_2,E2,v2,L2,V2,H2,C2,B2,A2,T2,P2,I2,W2,O2,R2,G2,$2;const a=l.interval||3;let t=Math.max(...this.meteogramData.temperatures.filter(g=>typeof g=="number"&&!isNaN(g))),s=Math.min(...this.meteogramData.temperatures.filter(g=>typeof g=="number"&&!isNaN(g))),n=Math.floor(s/5)*5,i=Math.ceil(t/5)*5,c=Math.ceil((i-n)/5);n=Math.floor((n-2*c)/5)*5,i=Math.ceil((i+1)/5)*5,c=Math.ceil((i-n)/5);let m="";a===1?(m=this.locale==="zhHans"?"1小时降水 ( mm ) ":"Precip.1h ( mm ) ",this.locale,this.locale,this.locale,this.locale):(m=this.locale==="zhHans"?"3小时降水 ( mm ) ":"Precip.3h ( mm ) ",this.locale,this.locale,this.locale,this.locale);let d,p={title:{text:this.locale==="zhHans"?"温度":"Temperature",top:"10px",left:0,textStyle:{fontWeight:"500",fontSize:16,color:this.theme==="dark"?"rgba(255, 255, 255, 1)":"rgba(28,31,35,1)"}},grid:{show:!0,bottom:"20%",top:"40px",left:`${this.meteogramData.gridOffset.l}%`,right:`${this.meteogramData.gridOffset.r}%`,borderColor:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0, 0, 0, 0.4)",borderWidth:1,z:1,zlevel:1},tooltip:{trigger:"axis",show:!0,position:"right",formatter:g=>{var ue,we,xe,ze;const Re=(ue=g==null?void 0:g.find(P=>P.seriesType==="line"))==null?void 0:ue.dataIndex;return g.find(P=>P.seriesType==="scatter")?!1:`<div style="font-size: 13px;"><strong>${M.tz((we=this.meteogramData)==null?void 0:we.dates[Re],this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
70
70
  <div style="font-size: 13px;display: ${isNaN((xe=g==null?void 0:g.find(P=>P.seriesName==="Temperature"||P.seriesName==="温度"))==null?void 0:xe.value)?"none":"block"}">
71
71
  <span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: ${this.theme==="dark"?"rgba(255, 161, 0, 1)":"rgba(242, 153, 56, 1)"};}"></span>
72
72
  <span>${this.locale==="zhHans"?"温度: ":"Temperature: "}</span>
@@ -138,12 +138,12 @@
138
138
  <g transform="rotate(${l}, 512, 512)">
139
139
  <path d="M128 896l384-768 384 768-384-128-384 128z" fill="${a}" p-id="9615"></path>
140
140
  </g>
141
- </svg>`;return btoa(unescape(encodeURIComponent(t)))},async convertSvgUrlToBase64(l){try{const t=await(await fetch(l)).text();return`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(t)))}`}catch(a){return console.warn("SVG conversion error:",a),l}}}},b3={class:"row"},u3={class:"col",style:{width:"54%"}},w3={key:0,style:{"margin-left":"8px"}},x3={key:1,style:{"margin-left":"8px"}},z3={class:"col",style:{width:"42%"}},k3={style:{"margin-left":"8px"}},D3={class:"row"},F3={class:"col",style:{width:"54%"}},N3={style:{"margin-left":"8px"}},S3={class:"content-box"},M3={key:0,class:"meteogram-echart-section"},_3={key:2,id:"tempEchart"},E3={key:3,id:"precipEchart"},v3={key:4,id:"windIconsEchart"},L3={key:5,id:"windEchart"},V3={key:6,id:"waveEchart"},H3={key:7,id:"currentEchart"},C3={key:8,id:"sstEchart"},B3={class:"hourly-table-section"},A3={key:0,class:"card"},T3={class:"date"},P3={class:"",style:{"font-size":"16px","font-weight":"500"}},I3={rowspan:"2",colspan:"1",class:"border",style:{width:"90px"}},W3={rowspan:"1",colspan:"1",class:"border"},O3={rowspan:"1",colspan:"1",class:"border"},R3={rowspan:"1",colspan:"1",class:"border"},G3={rowspan:"1",colspan:"4",class:"border"},$3={rowspan:"1",colspan:"3",class:"border"},j3={rowspan:"1",colspan:"3",class:"border"},Y3={rowspan:"1",colspan:"3",class:"border"},U3={rowspan:"1",colspan:"2",class:"border"},Z3={rowspan:"1",colspan:"1",class:"border"},q3={rowspan:"1",colspan:"1",class:"border"},J3={rowspan:"1",colspan:"1",class:"border",style:{width:"80px"}},X3={rowspan:"1",colspan:"1",class:"border",style:{width:"70px"}},Q3={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},K3={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},e0={rowspan:"1",colspan:"1",class:"border",style:{width:"30px"}},t0={rowspan:"1",colspan:"1",class:"border",style:{width:"60px"}},a0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},l0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},o0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},i0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},s0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},r0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},n0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},c0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},d0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},h0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},m0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},p0={rowspan:"1",colspan:"1",class:"border",style:{width:"70px"}},g0={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},y0={rowspan:"1",colspan:"1",class:"border",style:{width:"90px"}},f0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},b0={rowspan:"1",colspan:"1",class:"border",style:{width:"80px"}},u0={rowspan:"1",colspan:"1",class:"border",style:{width:"70px"}},w0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},x0=["src"],z0={key:1},k0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},D0={rowspan:"1",colspan:"1",class:"border",style:{width:"60px"}},F0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},N0=["src"],S0={key:1},M0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},_0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},E0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},v0=["src"],L0={key:1},V0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},H0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},C0=["src"],B0={key:1},A0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},T0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},P0=["src"],I0={key:1},W0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},O0={rowspan:"1",colspan:"1",class:"border",style:{width:"70px"}},R0={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}};function G0(l,a,t,s,n,i){var m,d,p,u,b,f,v,E,_,N,k,D,x,L,S,R,C,z,I,T,y,F,V;const c=e.resolveComponent("IdmLoading");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["idm-spot-historical-report",t.theme==="dark"?"dark":"light"])},[(m=t.reportData)!=null&&m.showSummary?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["summary-info-box",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("div",b3,[e.createElementVNode("div",u3,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"位置":"Position")+":",3),(d=t.reportData)!=null&&d.portName?(e.openBlock(),e.createElementBlock("span",w3,e.toDisplayString((p=t.reportData)==null?void 0:p.portName)+" "+e.toDisplayString(`[${i.computeLat(t.reportData.lat)}, ${i.computeLng(t.reportData.lng)}]`),1)):(e.openBlock(),e.createElementBlock("span",x3,e.toDisplayString(`${i.computeLat(t.reportData.lat)} , ${i.computeLng(t.reportData.lng)}`),1))]),e.createElementVNode("div",z3,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"历史时段":"History Period")+":",3),e.createElementVNode("span",k3,e.toDisplayString(i.computeTzTime((b=(u=t.reportData)==null?void 0:u.dateRange)==null?void 0:b[0],n.positionGmt))+" ~ "+e.toDisplayString(i.computeTzTime((v=(f=t.reportData)==null?void 0:f.dateRange)==null?void 0:v[1],n.positionGmt)),1)])]),e.createElementVNode("div",D3,[e.createElementVNode("div",F3,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"时区":"Timezone")+":",3),e.createElementVNode("span",N3,"UTC "+e.toDisplayString((E=t.reportData)==null?void 0:E.positionOffset),1)])])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",S3,[(_=t.reportData)!=null&&_.showTempChart||(N=t.reportData)!=null&&N.showPrecipChart||(k=t.reportData)!=null&&k.showWindChart||(D=t.reportData)!=null&&D.showWaveChart||(x=t.reportData)!=null&&x.showCurrentChart||(L=t.reportData)!=null&&L.showSstChart?(e.openBlock(),e.createElementBlock("div",M3,[t.loading?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},[e.createVNode(c,{loading:t.loading},null,8,["loading"])],2)):t.reportData?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"暂无数据":"No Data"),3)),!t.loading&&((S=t.reportData)!=null&&S.showTempChart)?(e.openBlock(),e.createElementBlock("div",_3)):e.createCommentVNode("",!0),!t.loading&&((R=t.reportData)!=null&&R.showPrecipChart)?(e.openBlock(),e.createElementBlock("div",E3)):e.createCommentVNode("",!0),!t.loading&&((C=t.reportData)!=null&&C.showWindChart)?(e.openBlock(),e.createElementBlock("div",v3)):e.createCommentVNode("",!0),!t.loading&&((z=t.reportData)!=null&&z.showWindChart)?(e.openBlock(),e.createElementBlock("div",L3)):e.createCommentVNode("",!0),!t.loading&&((I=t.reportData)!=null&&I.showWaveChart)?(e.openBlock(),e.createElementBlock("div",V3)):e.createCommentVNode("",!0),!t.loading&&((T=t.reportData)!=null&&T.showCurrentChart)?(e.openBlock(),e.createElementBlock("div",H3)):e.createCommentVNode("",!0),!t.loading&&((y=t.reportData)!=null&&y.showSstChart)?(e.openBlock(),e.createElementBlock("div",C3)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",B3,[t.loading?t.loading?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},[e.createVNode(c,{loading:t.loading},null,8,["loading"])],2)):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"暂无数据":"No Data"),3)):(e.openBlock(),e.createElementBlock("div",A3,[e.createElementVNode("div",T3,[e.createElementVNode("div",P3,e.toDisplayString(t.locale==="zhHans"?"小时预报":"Hourly Forecast"),1),e.createElementVNode("div",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"]),style:{"font-size":"12px","font-weight":"300"}}," * "+e.toDisplayString(t.locale==="zhHans"?"涌浪、显浪高度>=1.5米时标记为黄色, 风速蒲福等级>=4时标记为黄色。":"Swell or Sig.wave height alert in yellow for value>=1.5m, wind speed alert in yellow for beaufort scale >= 4."),3)]),e.createElementVNode("table",{class:e.normalizeClass(["conditions-table",(F=t.reportData)!=null&&F.showSummary?"":"table-header-fixed"])},[e.createElementVNode("thead",{class:e.normalizeClass(t.theme==="dark"?"dark":"light")},[e.createElementVNode("tr",{class:e.normalizeClass(["day tr-title",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("th",I3,e.toDisplayString(t.locale==="zhHans"?"时间(LT)":"DateTime (LT)"),1),e.createElementVNode("th",W3,e.toDisplayString(t.locale==="zhHans"?"温度":"Temp"),1),e.createElementVNode("th",O3,e.toDisplayString(t.locale==="zhHans"?"3小时降水":"Precip.3h"),1),e.createElementVNode("th",R3,e.toDisplayString(t.locale==="zhHans"?"能见度":"Visibility"),1),e.createElementVNode("th",G3,e.toDisplayString(t.locale==="zhHans"?"风":"Wind"),1),e.createElementVNode("th",$3,e.toDisplayString(t.locale==="zhHans"?"风浪":"Wind wave"),1),e.createElementVNode("th",j3,e.toDisplayString(t.locale==="zhHans"?"涌浪":"Swell wave"),1),e.createElementVNode("th",Y3,e.toDisplayString(t.locale==="zhHans"?"显浪":"Sig.wave"),1),e.createElementVNode("th",U3,e.toDisplayString(t.locale==="zhHans"?"洋流":"Current"),1),e.createElementVNode("th",Z3,e.toDisplayString(t.locale==="zhHans"?"海面":"Sea Level"),1),e.createElementVNode("th",q3,e.toDisplayString(t.locale==="zhHans"?"海表":"Sea Surface"),1)],2),e.createElementVNode("tr",{class:e.normalizeClass(["hour tr-title",t.theme==="dark"?"dark":"light"])},[a[26]||(a[26]=e.createElementVNode("th",{rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},"°C",-1)),e.createElementVNode("th",J3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"累计":"Acc"),1),a[0]||(a[0]=e.createElementVNode("br",null,null,-1)),a[1]||(a[1]=e.createTextVNode("(mm)",-1))]),e.createElementVNode("th",X3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"距离":"Dist"),1),a[2]||(a[2]=e.createElementVNode("br",null,null,-1)),a[3]||(a[3]=e.createTextVNode("(nm)",-1))]),e.createElementVNode("th",Q3,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",K3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"速度":"Spd"),1),a[4]||(a[4]=e.createElementVNode("br",null,null,-1)),a[5]||(a[5]=e.createTextVNode("(kts)",-1))]),e.createElementVNode("th",e0,e.toDisplayString(t.locale==="zhHans"?"等级":"BF"),1),e.createElementVNode("th",t0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"阵风":"Gusts"),1),a[6]||(a[6]=e.createElementVNode("br",null,null,-1)),a[7]||(a[7]=e.createTextVNode("(kts)",-1))]),e.createElementVNode("th",a0,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",l0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Hgt"),1),a[8]||(a[8]=e.createElementVNode("br",null,null,-1)),a[9]||(a[9]=e.createTextVNode("(m)",-1))]),e.createElementVNode("th",o0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"周期":"Prd"),1),a[10]||(a[10]=e.createElementVNode("br",null,null,-1)),a[11]||(a[11]=e.createTextVNode("(s)",-1))]),e.createElementVNode("th",i0,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",s0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Hgt"),1),a[12]||(a[12]=e.createElementVNode("br",null,null,-1)),a[13]||(a[13]=e.createTextVNode("(m)",-1))]),e.createElementVNode("th",r0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"周期":"Prd"),1),a[14]||(a[14]=e.createElementVNode("br",null,null,-1)),a[15]||(a[15]=e.createTextVNode("(s)",-1))]),e.createElementVNode("th",n0,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",c0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Hgt"),1),a[16]||(a[16]=e.createElementVNode("br",null,null,-1)),a[17]||(a[17]=e.createTextVNode("(m)",-1))]),e.createElementVNode("th",d0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"周期":"Prd"),1),a[18]||(a[18]=e.createElementVNode("br",null,null,-1)),a[19]||(a[19]=e.createTextVNode("(s)",-1))]),e.createElementVNode("th",h0,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",m0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"速度":"Spd"),1),a[20]||(a[20]=e.createElementVNode("br",null,null,-1)),a[21]||(a[21]=e.createTextVNode("(kts)",-1))]),e.createElementVNode("th",p0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Hgt"),1),a[22]||(a[22]=e.createElementVNode("br",null,null,-1)),a[23]||(a[23]=e.createTextVNode("(m)",-1))]),e.createElementVNode("th",g0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"温度":"Temp"),1),a[24]||(a[24]=e.createElementVNode("br",null,null,-1)),a[25]||(a[25]=e.createTextVNode("(°C)",-1))])],2)],2),e.createElementVNode("tbody",{class:e.normalizeClass((V=t.reportData)!=null&&V.showSummary?"":"scroll")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.hourlyTableData,o=>(e.openBlock(),e.createElementBlock("tr",{key:Math.random()+o.localDate,class:e.normalizeClass(["text border-bottom",o.windBF>=4||o.swellHeight>1.5||o.sigWaveHeight>1.5?"bg-gray":"",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("td",y0,[e.createElementVNode("div",null,e.toDisplayString(o.localDate),1)]),e.createElementVNode("td",f0,[e.createElementVNode("div",null,e.toDisplayString(o.temp),1)]),e.createElementVNode("td",b0,e.toDisplayString(o.precipSum),1),e.createElementVNode("td",u0,e.toDisplayString(o.visibility),1),e.createElementVNode("td",w0,[e.createTextVNode(e.toDisplayString(o.windDir)+" ",1),!isNaN(o.windBearing)&&o.windDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWindArrowBase64(o.windBearing,this.theme==="dark"?"rgba(159, 255, 126, 1)":"rgba(54, 212, 0, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,x0)):(e.openBlock(),e.createElementBlock("span",z0,"-"))]),e.createElementVNode("td",k0,e.toDisplayString(o.windSpeed),1),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border",o.windBF>=4?"bg-yellow":"",t.theme==="dark"?"dark":"light"]),style:{width:"30px"}},e.toDisplayString(o.windBF),3),e.createElementVNode("td",D0,e.toDisplayString(o.windGusts),1),e.createElementVNode("td",F0,[e.createTextVNode(e.toDisplayString(o.windWaveDir)+" ",1),!isNaN(o.windWaveBearing)&&o.windWaveDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWaveArrowBase64(o.windWaveBearing,(this.theme==="dark","#7cc7b3"))}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,N0)):(e.openBlock(),e.createElementBlock("span",S0,"-"))]),e.createElementVNode("td",M0,e.toDisplayString(o.windWaveHeight),1),e.createElementVNode("td",_0,e.toDisplayString(o.windWavePeriod),1),e.createElementVNode("td",E0,[e.createTextVNode(e.toDisplayString(o.swellDir)+" ",1),!isNaN(o.swellBearing)&&o.swellDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWaveArrowBase64(o.swellBearing,this.theme==="dark"?"rgb(17, 245, 211)":"rgba(0, 230, 194, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,v0)):(e.openBlock(),e.createElementBlock("span",L0,"-"))]),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border",o.swellHeight>1.5?"bg-yellow":"",t.theme==="dark"?"dark":"light"]),style:{width:"45px"}},e.toDisplayString(o.swellHeight),3),e.createElementVNode("td",V0,e.toDisplayString(o.swellPeriod),1),e.createElementVNode("td",H0,[e.createTextVNode(e.toDisplayString(o.sigWaveDir)+" ",1),!isNaN(o.sigWaveBearing)&&o.sigWaveDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWaveArrowBase64(o.sigWaveBearing,this.theme==="dark"?"rgba(89, 199, 211, 1)":"rgba(1, 189, 211, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,C0)):(e.openBlock(),e.createElementBlock("span",B0,"-"))]),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border",o.sigWaveHeight>1.5?"bg-yellow":"",t.theme==="dark"?"dark":"light"]),style:{width:"45px"}},e.toDisplayString(o.sigWaveHeight),3),e.createElementVNode("td",A0,e.toDisplayString(o.sigWavePeriod),1),e.createElementVNode("td",T0,[e.createTextVNode(e.toDisplayString(o.currentDir)+" ",1),!isNaN(o.currentBearing)&&o.currentDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWaveArrowBase64(o.currentBearing,this.theme==="dark"?"rgba(220, 115, 255, 1)":"rgba(178, 51, 220, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,P0)):(e.openBlock(),e.createElementBlock("span",I0,"-"))]),e.createElementVNode("td",W0,e.toDisplayString(o.currentSpd),1),e.createElementVNode("td",O0,e.toDisplayString(o.seaLevel),1),e.createElementVNode("td",R0,e.toDisplayString(o.seaSurfaceTemp),1)],2))),128))],2)],2)]))])])],2)}const P1=Ie(f3,[["render",G0],["__scopeId","data-v-4fb93458"]]),J4="",$0={name:"IdmSeasonal",components:{IdmLoading:N1},props:{reportData:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1},theme:{type:String,default:"light"},locale:{type:String,default:"en"}},data(){return{positionGmt:void 0,meteogramData:void 0}},computed:{computeUTCTime(){return(l,a="MMM-DD/HHmm[Z], YYYY")=>{if(l){const t=M(l).utc();return`${t==null?void 0:t.format(a)}`}return"-"}},computeLat(){return(l,a=4)=>re.LngLatHelper.lat2pretty(l,a).pretty},computeLng(){return(l,a=4)=>re.LngLatHelper.lng2pretty(l,a).pretty},roundPrecision(){return(l,a=4)=>isNaN(l)||l===null||l===void 0||isNaN(a)?"-":re.LngLatHelper.roundPrecision(l,a)}},watch:{"reportData.version":{handler(){var l,a,t,s,n;(l=this.reportData)!=null&&l.version&&(this.positionGmt=(n=(s=(t=(a=this.reportData)==null?void 0:a.seasonal)==null?void 0:t.weather)==null?void 0:s[0])==null?void 0:n.timezone,this.handleRender())},immediate:!0}},methods:{handleRender(){this.$nextTick(()=>{this.disposeEcharts(),this.initSeasonalEchart()})},getRotatedWindArrowBase64(l,a){const t=`
141
+ </svg>`;return btoa(unescape(encodeURIComponent(t)))},async convertSvgUrlToBase64(l){try{const t=await(await fetch(l)).text();return`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(t)))}`}catch(a){return console.warn("SVG conversion error:",a),l}}}},b3={class:"row"},u3={class:"col",style:{width:"54%"}},w3={key:0,style:{"margin-left":"8px"}},x3={key:1,style:{"margin-left":"8px"}},z3={class:"col",style:{width:"42%"}},k3={style:{"margin-left":"8px"}},D3={class:"row"},F3={class:"col",style:{width:"54%"}},N3={style:{"margin-left":"8px"}},S3={class:"content-box"},M3={key:0,class:"meteogram-echart-section"},_3={key:2,id:"tempEchart"},E3={key:3,id:"precipEchart"},v3={key:4,id:"windIconsEchart"},L3={key:5,id:"windEchart"},V3={key:6,id:"waveEchart"},H3={key:7,id:"currentEchart"},C3={key:8,id:"sstEchart"},B3={class:"hourly-table-section"},A3={key:0,class:"card"},T3={class:"date"},P3={class:"",style:{"font-size":"16px","font-weight":"500"}},I3={rowspan:"2",colspan:"1",class:"border",style:{width:"90px"}},W3={rowspan:"1",colspan:"1",class:"border"},O3={rowspan:"1",colspan:"1",class:"border"},R3={rowspan:"1",colspan:"1",class:"border"},G3={rowspan:"1",colspan:"4",class:"border"},$3={rowspan:"1",colspan:"3",class:"border"},j3={rowspan:"1",colspan:"3",class:"border"},Y3={rowspan:"1",colspan:"3",class:"border"},U3={rowspan:"1",colspan:"2",class:"border"},Z3={rowspan:"1",colspan:"1",class:"border"},q3={rowspan:"1",colspan:"1",class:"border"},J3={rowspan:"1",colspan:"1",class:"border",style:{width:"80px"}},X3={rowspan:"1",colspan:"1",class:"border",style:{width:"70px"}},Q3={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},K3={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},e0={rowspan:"1",colspan:"1",class:"border",style:{width:"30px"}},t0={rowspan:"1",colspan:"1",class:"border",style:{width:"60px"}},a0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},l0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},o0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},i0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},s0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},r0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},n0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},c0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},d0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},h0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},m0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},p0={rowspan:"1",colspan:"1",class:"border",style:{width:"70px"}},g0={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}},y0={rowspan:"1",colspan:"1",class:"border",style:{width:"90px"}},f0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},b0={rowspan:"1",colspan:"1",class:"border",style:{width:"80px"}},u0={rowspan:"1",colspan:"1",class:"border",style:{width:"70px"}},w0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},x0=["src"],z0={key:1},k0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},D0={rowspan:"1",colspan:"1",class:"border",style:{width:"60px"}},F0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},N0=["src"],S0={key:1},M0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},_0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},E0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},v0=["src"],L0={key:1},V0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},H0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},C0=["src"],B0={key:1},A0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},T0={rowspan:"1",colspan:"1",class:"border",style:{width:"50px","font-size":"11px","text-align":"right","padding-right":"1px"}},P0=["src"],I0={key:1},W0={rowspan:"1",colspan:"1",class:"border",style:{width:"45px"}},O0={rowspan:"1",colspan:"1",class:"border",style:{width:"70px"}},R0={rowspan:"1",colspan:"1",class:"border",style:{width:"85px"}};function G0(l,a,t,s,n,i){var m,d,p,u,b,f,v,E,_,N,k,D,x,L,S,R,C,z,I,T,y,F,V;const c=e.resolveComponent("IdmLoading");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["idm-spot-historical-report",t.theme==="dark"?"dark":"light"])},[(m=t.reportData)!=null&&m.showSummary?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["summary-info-box",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("div",b3,[e.createElementVNode("div",u3,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"位置":"Position")+":",3),(d=t.reportData)!=null&&d.portName?(e.openBlock(),e.createElementBlock("span",w3,e.toDisplayString((p=t.reportData)==null?void 0:p.portName)+" "+e.toDisplayString(`[${i.computeLat(t.reportData.lat)}, ${i.computeLng(t.reportData.lng)}]`),1)):(e.openBlock(),e.createElementBlock("span",x3,e.toDisplayString(`${i.computeLat(t.reportData.lat)} , ${i.computeLng(t.reportData.lng)}`),1))]),e.createElementVNode("div",z3,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"历史时段":"History Period")+":",3),e.createElementVNode("span",k3,e.toDisplayString(i.computeTzTime((b=(u=t.reportData)==null?void 0:u.dateRange)==null?void 0:b[0],n.positionGmt))+" ~ "+e.toDisplayString(i.computeTzTime((v=(f=t.reportData)==null?void 0:f.dateRange)==null?void 0:v[1],n.positionGmt)),1)])]),e.createElementVNode("div",D3,[e.createElementVNode("div",F3,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"时区":"Timezone")+":",3),e.createElementVNode("span",N3,"UTC "+e.toDisplayString((E=t.reportData)==null?void 0:E.positionOffset),1)])])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",S3,[(_=t.reportData)!=null&&_.showTempChart||(N=t.reportData)!=null&&N.showPrecipChart||(k=t.reportData)!=null&&k.showWindChart||(D=t.reportData)!=null&&D.showWaveChart||(x=t.reportData)!=null&&x.showCurrentChart||(L=t.reportData)!=null&&L.showSstChart?(e.openBlock(),e.createElementBlock("div",M3,[t.loading?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},[e.createVNode(c,{loading:t.loading},null,8,["loading"])],2)):t.reportData?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"暂无数据":"No Data"),3)),!t.loading&&((S=t.reportData)!=null&&S.showTempChart)?(e.openBlock(),e.createElementBlock("div",_3)):e.createCommentVNode("",!0),!t.loading&&((R=t.reportData)!=null&&R.showPrecipChart)?(e.openBlock(),e.createElementBlock("div",E3)):e.createCommentVNode("",!0),!t.loading&&((C=t.reportData)!=null&&C.showWindChart)?(e.openBlock(),e.createElementBlock("div",v3)):e.createCommentVNode("",!0),!t.loading&&((z=t.reportData)!=null&&z.showWindChart)?(e.openBlock(),e.createElementBlock("div",L3)):e.createCommentVNode("",!0),!t.loading&&((I=t.reportData)!=null&&I.showWaveChart)?(e.openBlock(),e.createElementBlock("div",V3)):e.createCommentVNode("",!0),!t.loading&&((T=t.reportData)!=null&&T.showCurrentChart)?(e.openBlock(),e.createElementBlock("div",H3)):e.createCommentVNode("",!0),!t.loading&&((y=t.reportData)!=null&&y.showSstChart)?(e.openBlock(),e.createElementBlock("div",C3)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",B3,[t.loading?t.loading?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},[e.createVNode(c,{loading:t.loading},null,8,["loading"])],2)):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"暂无数据":"No Data"),3)):(e.openBlock(),e.createElementBlock("div",A3,[e.createElementVNode("div",T3,[e.createElementVNode("div",P3,e.toDisplayString(t.locale==="zhHans"?"小时预报":"Hourly Forecast"),1),e.createElementVNode("div",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"]),style:{"font-size":"12px","font-weight":"300"}}," * "+e.toDisplayString(t.locale==="zhHans"?"涌浪、显浪高度>=1.5米时标记为黄色, 风速蒲福等级>=4时标记为黄色。":"Swell or Sig.wave height alert in yellow for value>=1.5m, wind speed alert in yellow for beaufort scale >= 4."),3)]),e.createElementVNode("table",{class:e.normalizeClass(["conditions-table",(F=t.reportData)!=null&&F.showSummary?"":"table-header-fixed"])},[e.createElementVNode("thead",{class:e.normalizeClass(t.theme==="dark"?"dark":"light")},[e.createElementVNode("tr",{class:e.normalizeClass(["day tr-title",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("th",I3,e.toDisplayString(t.locale==="zhHans"?"时间(LT)":"DateTime (LT)"),1),e.createElementVNode("th",W3,e.toDisplayString(t.locale==="zhHans"?"温度":"Temp"),1),e.createElementVNode("th",O3,e.toDisplayString(t.locale==="zhHans"?"3小时降水":"Precip.3h"),1),e.createElementVNode("th",R3,e.toDisplayString(t.locale==="zhHans"?"能见度":"Visibility"),1),e.createElementVNode("th",G3,e.toDisplayString(t.locale==="zhHans"?"风":"Wind"),1),e.createElementVNode("th",$3,e.toDisplayString(t.locale==="zhHans"?"风浪":"Wind wave"),1),e.createElementVNode("th",j3,e.toDisplayString(t.locale==="zhHans"?"涌浪":"Swell wave"),1),e.createElementVNode("th",Y3,e.toDisplayString(t.locale==="zhHans"?"显浪":"Sig.wave"),1),e.createElementVNode("th",U3,e.toDisplayString(t.locale==="zhHans"?"洋流":"Current"),1),e.createElementVNode("th",Z3,e.toDisplayString(t.locale==="zhHans"?"海面":"Sea Level"),1),e.createElementVNode("th",q3,e.toDisplayString(t.locale==="zhHans"?"海表":"Sea Surface"),1)],2),e.createElementVNode("tr",{class:e.normalizeClass(["hour tr-title",t.theme==="dark"?"dark":"light"])},[a[26]||(a[26]=e.createElementVNode("th",{rowspan:"1",colspan:"1",class:"border",style:{width:"50px"}},"°C",-1)),e.createElementVNode("th",J3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"累计":"Acc"),1),a[0]||(a[0]=e.createElementVNode("br",null,null,-1)),a[1]||(a[1]=e.createTextVNode("(mm)",-1))]),e.createElementVNode("th",X3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"距离":"Dist"),1),a[2]||(a[2]=e.createElementVNode("br",null,null,-1)),a[3]||(a[3]=e.createTextVNode("(nm)",-1))]),e.createElementVNode("th",Q3,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",K3,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"速度":"Spd"),1),a[4]||(a[4]=e.createElementVNode("br",null,null,-1)),a[5]||(a[5]=e.createTextVNode("(kts)",-1))]),e.createElementVNode("th",e0,e.toDisplayString(t.locale==="zhHans"?"等级":"BF"),1),e.createElementVNode("th",t0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"阵风":"Gusts"),1),a[6]||(a[6]=e.createElementVNode("br",null,null,-1)),a[7]||(a[7]=e.createTextVNode("(kts)",-1))]),e.createElementVNode("th",a0,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",l0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Hgt"),1),a[8]||(a[8]=e.createElementVNode("br",null,null,-1)),a[9]||(a[9]=e.createTextVNode("(m)",-1))]),e.createElementVNode("th",o0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"周期":"Prd"),1),a[10]||(a[10]=e.createElementVNode("br",null,null,-1)),a[11]||(a[11]=e.createTextVNode("(s)",-1))]),e.createElementVNode("th",i0,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",s0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Hgt"),1),a[12]||(a[12]=e.createElementVNode("br",null,null,-1)),a[13]||(a[13]=e.createTextVNode("(m)",-1))]),e.createElementVNode("th",r0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"周期":"Prd"),1),a[14]||(a[14]=e.createElementVNode("br",null,null,-1)),a[15]||(a[15]=e.createTextVNode("(s)",-1))]),e.createElementVNode("th",n0,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",c0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Hgt"),1),a[16]||(a[16]=e.createElementVNode("br",null,null,-1)),a[17]||(a[17]=e.createTextVNode("(m)",-1))]),e.createElementVNode("th",d0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"周期":"Prd"),1),a[18]||(a[18]=e.createElementVNode("br",null,null,-1)),a[19]||(a[19]=e.createTextVNode("(s)",-1))]),e.createElementVNode("th",h0,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",m0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"速度":"Spd"),1),a[20]||(a[20]=e.createElementVNode("br",null,null,-1)),a[21]||(a[21]=e.createTextVNode("(kts)",-1))]),e.createElementVNode("th",p0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"高度":"Hgt"),1),a[22]||(a[22]=e.createElementVNode("br",null,null,-1)),a[23]||(a[23]=e.createTextVNode("(m)",-1))]),e.createElementVNode("th",g0,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"温度":"Temp"),1),a[24]||(a[24]=e.createElementVNode("br",null,null,-1)),a[25]||(a[25]=e.createTextVNode("(°C)",-1))])],2)],2),e.createElementVNode("tbody",{class:e.normalizeClass((V=t.reportData)!=null&&V.showSummary?"":"scroll")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.hourlyTableData,o=>(e.openBlock(),e.createElementBlock("tr",{key:Math.random()+o.localDate,class:e.normalizeClass(["text border-bottom",o.windBF>=4||o.swellHeight>1.5||o.sigWaveHeight>1.5?"bg-gray":"",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("td",y0,[e.createElementVNode("div",null,e.toDisplayString(o.localDate),1)]),e.createElementVNode("td",f0,[e.createElementVNode("div",null,e.toDisplayString(o.temp),1)]),e.createElementVNode("td",b0,e.toDisplayString(o.precipSum),1),e.createElementVNode("td",u0,e.toDisplayString(o.visibility),1),e.createElementVNode("td",w0,[e.createTextVNode(e.toDisplayString(o.windDir)+" ",1),!isNaN(o.windBearing)&&o.windDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWindArrowBase64(o.windBearing,this.theme==="dark"?"rgba(159, 255, 126, 1)":"rgba(54, 212, 0, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,x0)):(e.openBlock(),e.createElementBlock("span",z0,"-"))]),e.createElementVNode("td",k0,e.toDisplayString(o.windSpeed),1),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border",o.windBF>=4?"bg-yellow":"",t.theme==="dark"?"dark":"light"]),style:{width:"30px"}},e.toDisplayString(o.windBF),3),e.createElementVNode("td",D0,e.toDisplayString(o.windGusts),1),e.createElementVNode("td",F0,[e.createTextVNode(e.toDisplayString(o.windWaveDir)+" ",1),!isNaN(o.windWaveBearing)&&o.windWaveDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWaveArrowBase64(o.windWaveBearing,(this.theme==="dark","#7cc7b3"))}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,N0)):(e.openBlock(),e.createElementBlock("span",S0,"-"))]),e.createElementVNode("td",M0,e.toDisplayString(o.windWaveHeight),1),e.createElementVNode("td",_0,e.toDisplayString(o.windWavePeriod),1),e.createElementVNode("td",E0,[e.createTextVNode(e.toDisplayString(o.swellDir)+" ",1),!isNaN(o.swellBearing)&&o.swellDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWaveArrowBase64(o.swellBearing,this.theme==="dark"?"rgb(17, 245, 211)":"rgba(0, 230, 194, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,v0)):(e.openBlock(),e.createElementBlock("span",L0,"-"))]),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border",o.swellHeight>1.5?"bg-yellow":"",t.theme==="dark"?"dark":"light"]),style:{width:"45px"}},e.toDisplayString(o.swellHeight),3),e.createElementVNode("td",V0,e.toDisplayString(o.swellPeriod),1),e.createElementVNode("td",H0,[e.createTextVNode(e.toDisplayString(o.sigWaveDir)+" ",1),!isNaN(o.sigWaveBearing)&&o.sigWaveDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWaveArrowBase64(o.sigWaveBearing,this.theme==="dark"?"rgba(89, 199, 211, 1)":"rgba(1, 189, 211, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,C0)):(e.openBlock(),e.createElementBlock("span",B0,"-"))]),e.createElementVNode("td",{rowspan:"1",colspan:"1",class:e.normalizeClass(["border",o.sigWaveHeight>1.5?"bg-yellow":"",t.theme==="dark"?"dark":"light"]),style:{width:"45px"}},e.toDisplayString(o.sigWaveHeight),3),e.createElementVNode("td",A0,e.toDisplayString(o.sigWavePeriod),1),e.createElementVNode("td",T0,[e.createTextVNode(e.toDisplayString(o.currentDir)+" ",1),!isNaN(o.currentBearing)&&o.currentDir?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWaveArrowBase64(o.currentBearing,this.theme==="dark"?"rgba(220, 115, 255, 1)":"rgba(178, 51, 220, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,P0)):(e.openBlock(),e.createElementBlock("span",I0,"-"))]),e.createElementVNode("td",W0,e.toDisplayString(o.currentSpd),1),e.createElementVNode("td",O0,e.toDisplayString(o.seaLevel),1),e.createElementVNode("td",R0,e.toDisplayString(o.seaSurfaceTemp),1)],2))),128))],2)],2)]))])])],2)}const P1=Ie(f3,[["render",G0],["__scopeId","data-v-de98f8dc"]]),J4="",$0={name:"IdmSeasonal",components:{IdmLoading:N1},props:{reportData:{type:Object,default:()=>({})},loading:{type:Boolean,default:!1},theme:{type:String,default:"light"},locale:{type:String,default:"en"}},data(){return{positionGmt:void 0,meteogramData:void 0}},computed:{computeUTCTime(){return(l,a="MMM-DD/HHmm[Z], YYYY")=>{if(l){const t=M(l).utc();return`${t==null?void 0:t.format(a)}`}return"-"}},computeLat(){return(l,a=4)=>re.LngLatHelper.lat2pretty(l,a).pretty},computeLng(){return(l,a=4)=>re.LngLatHelper.lng2pretty(l,a).pretty},roundPrecision(){return(l,a=4)=>isNaN(l)||l===null||l===void 0||isNaN(a)?"-":re.LngLatHelper.roundPrecision(l,a)}},watch:{"reportData.version":{handler(){var l,a,t,s,n;(l=this.reportData)!=null&&l.version&&(this.positionGmt=(n=(s=(t=(a=this.reportData)==null?void 0:a.seasonal)==null?void 0:t.weather)==null?void 0:s[0])==null?void 0:n.timezone,this.handleRender())},immediate:!0}},methods:{handleRender(){this.$nextTick(()=>{this.disposeEcharts(),this.initSeasonalEchart()})},getRotatedWindArrowBase64(l,a){const t=`
142
142
  <svg viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg">
143
143
  <g transform="rotate(${l}, 512, 512)">
144
144
  <path d="M133.8 579l-44.4-44.4c-18.8-18.8-18.8-49.2 0-67.8L478 78c18.8-18.8 49.2-18.8 67.8 0l388.6 388.6c18.8 18.8 18.8 49.2 0 67.8L890 578.8c-19 19-50 18.6-68.6-0.8L592 337.2V912c0 26.6-21.4 48-48 48h-64c-26.6 0-48-21.4-48-48V337.2L202.4 578.2c-18.6 19.6-49.6 20-68.6 0.8z" fill="${a}"/>
145
145
  </g>
146
- </svg>`;return btoa(unescape(encodeURIComponent(t)))},initSeasonalEchart(){var D,x,L,S,R,C,z,I,T,y,F,V,o,W;let l=Math.max(...[...this.reportData.highTemp,...this.reportData.lastYearHighTemp].filter(h=>typeof h=="number"&&!isNaN(h))),a=Math.min(...[...this.reportData.lowTemp,...this.reportData.lastYearLowTemp].filter(h=>typeof h=="number"&&!isNaN(h))),t=Math.ceil((l+1)/5)*5,s=Math.floor((a-1)/5)*5,n=Math.ceil((t-s)/5),i=[{name:this.locale==="zhHans"?"最高温度":"High",type:"line",data:(D=this.reportData)==null?void 0:D.highTemp,show:!0,symbol:"none",smooth:!1,itemStyle:{color:this.theme==="dark"?"rgba(255, 161, 0, 1)":"rgba(242, 153, 56, 1)"},label:{show:!1}},{name:this.locale==="zhHans"?"去年最高温度":"High, last year",type:"line",symbol:"none",data:(x=this.reportData)==null?void 0:x.lastYearHighTemp,show:(L=this.reportData)==null?void 0:L.compareToLastYear,itemStyle:{color:"#f7c587"},lineStyle:{color:"#f7c587"},label:{show:!1}},{name:this.locale==="zhHans"?"最低温度":"Low",type:"line",data:(S=this.reportData)==null?void 0:S.lowTemp,show:!0,symbol:"none",smooth:!1,itemStyle:{color:"#2164bf"},label:{show:!1}},{name:this.locale==="zhHans"?"去年最低温度":"Low, last year",type:"line",symbol:"none",data:(R=this.reportData)==null?void 0:R.lastYearLowTemp,show:(C=this.reportData)==null?void 0:C.compareToLastYear,itemStyle:{color:"#7baef7"},lineStyle:{color:"#7baef7"},label:{show:!1}}];const c={title:{text:this.locale==="zhHans"?"温度":"Temperature",top:"10px",left:0,textStyle:{fontWeight:"500",fontSize:16,color:this.theme==="dark"?"rgba(255, 255, 255, 1)":"rgba(28,31,35,1)"}},grid:{show:!0,bottom:"15%",top:"45px",left:"4%",right:"4%",borderColor:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(28,31,35,0.4)",borderWidth:1,z:1,zlevel:1},tooltip:{trigger:"axis",show:!0,position:"right",formatter:h=>{var Y,O,K,q,J,B,$,Z,X,ee,te;const j=(Y=h==null?void 0:h[0])==null?void 0:Y.dataIndex;if(h.find(H=>H.seriesType==="scatter"))return!1;{let H=`<div style="font-size: 13px;"><strong>${(O=this.reportData)==null?void 0:O.dates[j]}</strong></div>
146
+ </svg>`;return btoa(unescape(encodeURIComponent(t)))},initSeasonalEchart(){var D,x,L,S,R,C,z,I,T,y,F,V,o,W;let l=Math.max(...[...this.reportData.highTemp,...this.reportData.lastYearHighTemp].filter(h=>typeof h=="number"&&!isNaN(h))),a=Math.min(...[...this.reportData.lowTemp,...this.reportData.lastYearLowTemp].filter(h=>typeof h=="number"&&!isNaN(h))),t=Math.ceil((l+1)/5)*5,s=Math.floor((a-1)/5)*5,n=Math.ceil((t-s)/5),i=[{name:this.locale==="zhHans"?"最高温度":"High",type:"line",data:(D=this.reportData)==null?void 0:D.highTemp,show:!0,symbol:"none",smooth:!1,itemStyle:{color:this.theme==="dark"?"rgba(255, 161, 0, 1)":"rgba(242, 153, 56, 1)"},label:{show:!1}},{name:this.locale==="zhHans"?"去年最高温度":"High, last year",type:"line",symbol:"none",data:(x=this.reportData)==null?void 0:x.lastYearHighTemp,show:(L=this.reportData)==null?void 0:L.compareToLastYear,itemStyle:{color:"#f7c587"},lineStyle:{color:"#f7c587"},label:{show:!1}},{name:this.locale==="zhHans"?"最低温度":"Low",type:"line",data:(S=this.reportData)==null?void 0:S.lowTemp,show:!0,symbol:"none",smooth:!1,itemStyle:{color:"#2164bf"},label:{show:!1}},{name:this.locale==="zhHans"?"去年最低温度":"Low, last year",type:"line",symbol:"none",data:(R=this.reportData)==null?void 0:R.lastYearLowTemp,show:(C=this.reportData)==null?void 0:C.compareToLastYear,itemStyle:{color:"#7baef7"},lineStyle:{color:"#7baef7"},label:{show:!1}}];const c={title:{text:this.locale==="zhHans"?"温度":"Temperature",top:"10px",left:0,textStyle:{fontWeight:"500",fontSize:16,color:this.theme==="dark"?"rgba(255, 255, 255, 1)":"rgba(28,31,35,1)"}},grid:{show:!0,bottom:"15%",top:"45px",left:"6%",right:"6%",borderColor:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(28,31,35,0.4)",borderWidth:1,z:1,zlevel:1},tooltip:{trigger:"axis",show:!0,position:"right",formatter:h=>{var Y,O,K,q,J,B,$,Z,X,ee,te;const j=(Y=h==null?void 0:h[0])==null?void 0:Y.dataIndex;if(h.find(H=>H.seriesType==="scatter"))return!1;{let H=`<div style="font-size: 13px;"><strong>${(O=this.reportData)==null?void 0:O.dates[j]}</strong></div>
147
147
  <div style="font-size: 13px;display: ${isNaN((K=h==null?void 0:h.find(A=>A.seriesName==="High"||A.seriesName==="最高温度"))==null?void 0:K.value)?"none":"block"}">
148
148
  <span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: ${this.theme==="dark"?"rgba(255, 161, 0, 1)":"rgba(242, 153, 56, 1)"};"></span>
149
149
  <span>${this.locale==="zhHans"?"最高温度":"High"} : </span>
@@ -167,7 +167,7 @@
167
167
  <strong>${(te=h==null?void 0:h.find(A=>A.seriesName==="Low, last year"||A.seriesName==="去年最低温度"))==null?void 0:te.value}</strong>
168
168
  <span style="padding-left: 3px;">℃</span>
169
169
  </div>
170
- `),H}}},legend:{show:!0,top:"15px",right:"4%",itemWidth:40,textStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0, 0, 0, 0.7)"}},xAxis:{show:!0,left:0,right:0,top:"50%",height:"50%",type:"category",boundaryGap:!0,data:(z=this.reportData)==null?void 0:z.xDates,axisLabel:{show:!0,fontSize:12,color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0, 0, 0, 0.7)"},axisLine:{show:!0,onZero:!1},axisTick:{show:!0,inside:!0,lineStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0, 0, 0, 0.4)"}},z:1,zlevel:1},yAxis:[{type:"value",name:this.locale==="zhHans"?"温度 ( ℃ ) ":"Temperature ( ℃ ) ",show:!0,min:s,max:t,interval:n,splitNumber:5,nameRotate:90,nameLocation:"middle",nameGap:25,nameTextStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},axisLabel:{show:!0,fontSize:10,color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},splitLine:{show:!0,lineStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.1)":"rgba(0,0,0,0.1)"}},z:0,zlevel:0}],series:i.filter(h=>h.show)};this.$nextTick(()=>{let h;document.getElementById("temperature-echart")&&(h=ae.init(document.getElementById("temperature-echart")),h.setOption(c))});let m=Math.max(...[...this.reportData.windSpeed,...this.reportData.lastYearWindSpeed].filter(h=>typeof h=="number"&&!isNaN(h))),p=Math.min(...[...this.reportData.windSpeed,...this.reportData.lastYearWindSpeed].filter(h=>typeof h=="number"&&!isNaN(h)))>0?0:Math.min(...[...this.reportData.windSpeed,...this.reportData.lastYearWindSpeed].filter(h=>typeof h=="number"&&!isNaN(h))),u=Math.ceil((m+1)/5)*5,b=Math.ceil((u-p)/5),f=Math.max(...[...this.reportData.precip,...this.reportData.lastYearPrecip].filter(h=>typeof h=="number"&&!isNaN(h))),E=0,_=Math.ceil(f*2/5)*5,N=Math.ceil((_-E)/5);i=[{name:this.locale==="zhHans"?"风速":"Wind",type:"line",data:(I=this.reportData)==null?void 0:I.windSpeed,show:!0,symbol:"none",smooth:!1,itemStyle:{color:this.theme==="dark"?"rgba(159, 255, 126, 1)":"rgba(54, 212, 0, 1)"},label:{show:!1}},{name:this.locale==="zhHans"?"去年风速":"Wind, last year",type:"line",symbol:"none",data:(T=this.reportData)==null?void 0:T.lastYearWindSpeed,show:(y=this.reportData)==null?void 0:y.compareToLastYear,itemStyle:{color:this.theme==="dark"?"rgba(209, 242, 196, 1)":"#9af77b"},lineStyle:{color:this.theme==="dark"?"rgba(209, 242, 196, 1)":"#9af77b"},label:{show:!1}},{name:this.locale==="zhHans"?"降水量":"Precip",type:"bar",yAxisIndex:1,barWidth:"30%",data:(F=this.reportData)==null?void 0:F.precip,show:!0,symbol:"none",smooth:!1,itemStyle:{color:this.theme==="dark"?"rgb(19, 134, 192)":"#0c73a8"},label:{show:!1}},{name:this.locale==="zhHans"?"去年降水量":"Precip, last year",type:"bar",yAxisIndex:1,barWidth:"30%",data:(V=this.reportData)==null?void 0:V.lastYearPrecip,show:(o=this.reportData)==null?void 0:o.compareToLastYear,itemStyle:{color:"rgba(97,187,232,1)"},label:{show:!1}}];const k={title:{text:this.locale==="zhHans"?"风速 & 降水量":"Wind & Preciption",top:"10px",left:0,textStyle:{fontWeight:"500",fontSize:16,color:this.theme==="dark"?"rgba(255, 255, 255, 1)":"rgba(28,31,35,1)"}},grid:{show:!0,bottom:"15%",top:"45px",left:"4%",right:"4%",borderColor:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0,0,0,0.4)",borderWidth:1,z:1,zlevel:1},tooltip:{trigger:"axis",show:!0,position:"right",formatter:h=>{var Y,O,K,q,J,B,$,Z,X,ee;const j=(Y=h==null?void 0:h[0])==null?void 0:Y.dataIndex;if(h.find(te=>te.seriesType==="scatter"))return!1;{let te=`<div style="font-size: 13px;"><strong>${(O=this.reportData)==null?void 0:O.dates[j]}</strong></div>
170
+ `),H}}},legend:{show:!0,top:"15px",right:"6%",itemWidth:40,textStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0, 0, 0, 0.7)"}},xAxis:{show:!0,left:0,right:0,top:"50%",height:"50%",type:"category",boundaryGap:!0,data:(z=this.reportData)==null?void 0:z.xDates,axisLabel:{show:!0,fontSize:12,color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0, 0, 0, 0.7)"},axisLine:{show:!0,onZero:!1},axisTick:{show:!0,inside:!0,lineStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0, 0, 0, 0.4)"}},z:1,zlevel:1},yAxis:[{type:"value",name:this.locale==="zhHans"?"温度 ( ℃ ) ":"Temperature ( ℃ ) ",show:!0,min:s,max:t,interval:n,splitNumber:5,nameRotate:90,nameLocation:"middle",nameGap:25,nameTextStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},axisLabel:{show:!0,fontSize:10,color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},splitLine:{show:!0,lineStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.1)":"rgba(0,0,0,0.1)"}},z:0,zlevel:0}],series:i.filter(h=>h.show)};this.$nextTick(()=>{let h;document.getElementById("temperature-echart")&&(h=ae.init(document.getElementById("temperature-echart")),h.setOption(c))});let m=Math.max(...[...this.reportData.windSpeed,...this.reportData.lastYearWindSpeed].filter(h=>typeof h=="number"&&!isNaN(h))),p=Math.min(...[...this.reportData.windSpeed,...this.reportData.lastYearWindSpeed].filter(h=>typeof h=="number"&&!isNaN(h)))>0?0:Math.min(...[...this.reportData.windSpeed,...this.reportData.lastYearWindSpeed].filter(h=>typeof h=="number"&&!isNaN(h))),u=Math.ceil((m+1)/5)*5,b=Math.ceil((u-p)/5),f=Math.max(...[...this.reportData.precip,...this.reportData.lastYearPrecip].filter(h=>typeof h=="number"&&!isNaN(h))),E=0,_=Math.ceil(f*2/5)*5,N=Math.ceil((_-E)/5);i=[{name:this.locale==="zhHans"?"风速":"Wind",type:"line",data:(I=this.reportData)==null?void 0:I.windSpeed,show:!0,symbol:"none",smooth:!1,itemStyle:{color:this.theme==="dark"?"rgba(159, 255, 126, 1)":"rgba(54, 212, 0, 1)"},label:{show:!1}},{name:this.locale==="zhHans"?"去年风速":"Wind, last year",type:"line",symbol:"none",data:(T=this.reportData)==null?void 0:T.lastYearWindSpeed,show:(y=this.reportData)==null?void 0:y.compareToLastYear,itemStyle:{color:this.theme==="dark"?"rgba(209, 242, 196, 1)":"#9af77b"},lineStyle:{color:this.theme==="dark"?"rgba(209, 242, 196, 1)":"#9af77b"},label:{show:!1}},{name:this.locale==="zhHans"?"降水量":"Precip",type:"bar",yAxisIndex:1,barWidth:"30%",data:(F=this.reportData)==null?void 0:F.precip,show:!0,symbol:"none",smooth:!1,itemStyle:{color:this.theme==="dark"?"rgb(19, 134, 192)":"#0c73a8"},label:{show:!1}},{name:this.locale==="zhHans"?"去年降水量":"Precip, last year",type:"bar",yAxisIndex:1,barWidth:"30%",data:(V=this.reportData)==null?void 0:V.lastYearPrecip,show:(o=this.reportData)==null?void 0:o.compareToLastYear,itemStyle:{color:"rgba(97,187,232,1)"},label:{show:!1}}];const k={title:{text:this.locale==="zhHans"?"风速 & 降水量":"Wind & Preciption",top:"10px",left:0,textStyle:{fontWeight:"500",fontSize:16,color:this.theme==="dark"?"rgba(255, 255, 255, 1)":"rgba(28,31,35,1)"}},grid:{show:!0,bottom:"15%",top:"45px",left:"6%",right:"6%",borderColor:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0,0,0,0.4)",borderWidth:1,z:1,zlevel:1},tooltip:{trigger:"axis",show:!0,position:"right",formatter:h=>{var Y,O,K,q,J,B,$,Z,X,ee;const j=(Y=h==null?void 0:h[0])==null?void 0:Y.dataIndex;if(h.find(te=>te.seriesType==="scatter"))return!1;{let te=`<div style="font-size: 13px;"><strong>${(O=this.reportData)==null?void 0:O.dates[j]}</strong></div>
171
171
  <div style="font-size: 13px;display: ${isNaN((K=h==null?void 0:h.find(H=>H.seriesName==="Wind"||H.seriesName==="风速"))==null?void 0:K.value)?"none":"block"}">
172
172
  <span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: ${this.theme==="dark"?"rgba(159, 255, 126, 1)":"rgba(54, 212, 0, 1)"};"></span>
173
173
  <span>${this.locale==="zhHans"?"风速":"Wind"} : </span>
@@ -190,7 +190,7 @@
190
190
  <span>${this.locale==="zhHans"?"去年降水量":"Precip, last year"} : </span>
191
191
  <strong>${(ee=h==null?void 0:h.find(H=>H.seriesName==="Precip, last year"||H.seriesName==="去年降水量"))==null?void 0:ee.value}</strong>
192
192
  <span style="padding-left: 3px;">mm</span>
193
- </div>`),te}}},legend:{show:!0,top:"10px",right:"4%",itemWidth:40,textStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"}},xAxis:{show:!0,left:0,right:0,top:"50%",height:"50%",type:"category",boundaryGap:!0,data:(W=this.reportData)==null?void 0:W.xDates,axisLabel:{show:!0,fontSize:12,color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0, 0, 0, 0.7)"},axisLine:{show:!0},axisTick:{show:!0,inside:!0,lineStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0,0,0,0.4)"}},z:1,zlevel:1},yAxis:[{type:"value",name:this.locale==="zhHans"?"风速 ( kts ) ":"Wind speed ( kts ) ",show:!0,min:p,max:u,interval:b,splitNumber:5,nameRotate:90,nameLocation:"middle",nameGap:25,nameTextStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},axisLabel:{show:!0,fontSize:10,color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},splitLine:{show:!0,lineStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.1)":"rgba(0,0,0,0.1)"}},z:0,zlevel:0},{type:"value",name:this.locale==="zhHans"?"降水量 ( mm ) ":"Precipitation ( mm ) ",show:!0,min:E,max:_,interval:N,splitNumber:5,nameRotate:90,nameLocation:"middle",nameGap:30,nameTextStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},axisLabel:{show:!0,fontSize:10,color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},splitLine:{show:!0,lineStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.1)":"rgba(0,0,0,0.1)"}},z:1,zlevel:0}],series:i.filter(h=>h.show)};this.$nextTick(()=>{let h;document.getElementById("wind-precip-echart")&&(h=ae.init(document.getElementById("wind-precip-echart")),h.setOption(k))})},disposeEcharts(){document.getElementById("temperature-echart")&&ae.dispose(document.getElementById("temperature-echart")),document.getElementById("wind-precip-echart")&&ae.dispose(document.getElementById("wind-precip-echart"))}}},j0={class:"row"},Y0={class:"col",style:{width:"54%"}},U0={key:0,style:{"margin-left":"8px"}},Z0={key:1,style:{"margin-left":"8px"}},q0={class:"col",style:{width:"42%"}},J0={style:{"margin-left":"8px"}},X0={class:"row"},Q0={class:"col",style:{width:"54%"}},K0={style:{"margin-left":"8px"}},ea={class:"content-box"},ta={class:"summary-section"},aa={class:"title",style:{"margin-left":"5px"}},la={class:"spot-info-block"},oa={class:"text"},ia={class:"text"},sa={class:"text"},ra={class:"text"},na={class:"text"},ca={class:"text"},da={class:"text"},ha={class:"text"},ma={class:"text"},pa={class:"text"},ga={class:"text"},ya={class:"seasonal-weather-section",style:{}},fa={key:0,id:"temperature-echart"},ba={key:1,id:"wind-precip-echart"},ua={class:"table-section"},wa={key:0,class:"card"},xa={class:"date"},za={class:"",style:{"font-size":"16px","font-weight":"500"}},ka={rowspan:"2",colspan:"1",class:"border",style:{width:"110px"}},Da={rowspan:"1",colspan:"3",class:"border"},Fa={rowspan:"1",colspan:"5",class:"border"},Na={rowspan:"1",colspan:"2",class:"border"},Sa={rowspan:"1",colspan:"1",class:"border"},Ma={rowspan:"1",colspan:"1",class:"border",style:{width:"68px"}},_a={rowspan:"1",colspan:"1",class:"border",style:{width:"68px"}},Ea={rowspan:"1",colspan:"1",class:"border",style:{width:"68px"}},va={rowspan:"1",colspan:"1",class:"border",style:{width:"68px"}},La={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Va={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Ha={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Ca={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Ba={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Aa={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Ta={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Pa={rowspan:"1",colspan:"1",class:"border",style:{width:"110px"}},Ia={rowspan:"1",colspan:"1",class:"border",style:{width:"68px"}},Wa={rowspan:"1",colspan:"1",class:"border",style:{width:"68px"}},Oa={rowspan:"1",colspan:"1",class:"border",style:{width:"68px"}},Ra={rowspan:"1",colspan:"1",class:"border",style:{width:"68px","font-size":"11px","text-align":"right","padding-right":"1px"}},Ga=["src"],$a={key:1},ja={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Ya={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Ua={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Za={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},qa={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Ja={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Xa={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}};function Qa(l,a,t,s,n,i){var m,d,p,u,b,f,v,E,_,N,k,D,x,L,S,R,C,z,I,T;const c=e.resolveComponent("IdmLoading");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["idm-spot-seasonal-report",t.theme==="dark"?"dark":"light"])},[(m=t.reportData)!=null&&m.showSummary?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["summary-info-box",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("div",j0,[e.createElementVNode("div",Y0,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"位置":"Position")+":",3),(d=t.reportData)!=null&&d.portName?(e.openBlock(),e.createElementBlock("span",U0,e.toDisplayString((p=t.reportData)==null?void 0:p.portName)+" "+e.toDisplayString(`[${i.computeLat(t.reportData.lat)}, ${i.computeLng(t.reportData.lng)}]`),1)):(e.openBlock(),e.createElementBlock("span",Z0,e.toDisplayString(`${i.computeLat(t.reportData.lat)} , ${i.computeLng(t.reportData.lng)}`),1))]),e.createElementVNode("div",q0,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"预报月份":"Forecast Month")+":",3),e.createElementVNode("span",J0,e.toDisplayString((u=t.reportData)==null?void 0:u.forecastMonth),1)])]),e.createElementVNode("div",X0,[e.createElementVNode("div",Q0,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"时区":"Timezone")+":",3),e.createElementVNode("span",K0,"UTC "+e.toDisplayString((b=t.reportData)==null?void 0:b.positionOffset),1)])])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",ea,[e.createElementVNode("div",ta,[e.createElementVNode("div",aa,e.toDisplayString(t.locale==="zhHans"?"总结":"Summary"),1),e.createElementVNode("div",la,[e.createElementVNode("div",{class:e.normalizeClass(["block",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("div",{class:e.normalizeClass(["label primary-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"温度":"Temperature"),3),e.createElementVNode("div",{class:e.normalizeClass(["divider",t.theme==="dark"?"dark":"light"])},null,2),e.createElementVNode("div",oa,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"平均最高温度:":"Avg High Temp:"),3),e.createTextVNode(" "+e.toDisplayString(t.reportData.minHighTemp)+" to "+e.toDisplayString(t.reportData.maxHighTemp)+" °C",1)]),e.createElementVNode("div",ia,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"平均最低温度:":"Avg Low Temp:"),3),e.createTextVNode(" "+e.toDisplayString(t.reportData.minLowTemp)+" to "+e.toDisplayString(t.reportData.maxLowTemp)+" °C",1)]),e.createElementVNode("div",sa,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"最热日期:":"Hottest Day:"),3),e.createTextVNode(" "+e.toDisplayString(t.reportData.hottestDay),1)]),e.createElementVNode("div",ra,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"最冷日期:":"Coldest Day:"),3),e.createTextVNode(" "+e.toDisplayString(t.reportData.coldestDay),1)])],2),e.createElementVNode("div",{class:e.normalizeClass(["block",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("div",{class:e.normalizeClass(["label primary-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"降水":"Precipitation"),3),e.createElementVNode("div",{class:e.normalizeClass(["divider",t.theme==="dark"?"dark":"light"])},null,2),e.createElementVNode("div",na,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"小雨:":"Light (<10mm):"),3),e.createTextVNode(" "+e.toDisplayString((E=(v=(f=t.reportData)==null?void 0:f.precip)==null?void 0:v.filter(y=>y<10))==null?void 0:E.length)+" days",1)]),e.createElementVNode("div",ca,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"中雨:":"Moderate (<=24.9mm):"),3),e.createTextVNode(" "+e.toDisplayString((k=(N=(_=t.reportData)==null?void 0:_.precip)==null?void 0:N.filter(y=>y>=10&&y<=24.9))==null?void 0:k.length)+" days",1)]),e.createElementVNode("div",da,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"大雨:":"Heavy (<=49.9mm):"),3),e.createTextVNode(" "+e.toDisplayString((L=(x=(D=t.reportData)==null?void 0:D.precip)==null?void 0:x.filter(y=>y>24.9&&y<=49.9))==null?void 0:L.length)+" days",1)]),e.createElementVNode("div",ha,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"暴雨:":"Rainstorm (>49.9mm):"),3),e.createTextVNode(" "+e.toDisplayString((C=(R=(S=t.reportData)==null?void 0:S.precip)==null?void 0:R.filter(y=>y>49.9))==null?void 0:C.length)+" days",1)])],2),e.createElementVNode("div",{class:e.normalizeClass(["block",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("div",{class:e.normalizeClass(["label primary-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"风":"Wind"),3),e.createElementVNode("div",{class:e.normalizeClass(["divider",t.theme==="dark"?"dark":"light"])},null,2),e.createElementVNode("div",ma,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"平均风速:":"Mean Wind:"),3),e.createTextVNode(" "+e.toDisplayString(i.roundPrecision(t.reportData.meanWind,1))+" kts",1)]),e.createElementVNode("div",pa,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"最强风日:":"Windiest Day:"),3),e.createTextVNode(" "+e.toDisplayString(t.reportData.windiestDay)+" ( "+e.toDisplayString(t.reportData.maxWindSpeed)+"kts )",1)]),e.createElementVNode("div",ga,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"主要风向:":"Dominant Wind Dir:"),3),e.createTextVNode(" "+e.toDisplayString(t.reportData.dominantWind),1)])],2)])]),e.createElementVNode("div",ya,[t.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",fa)),t.loading?t.loading?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},[e.createVNode(c,{loading:t.loading},null,8,["loading"])],2)):(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"暂无数据":"No Data"),3)):(e.openBlock(),e.createElementBlock("div",ba))]),e.createElementVNode("div",ua,[t.loading?t.loading?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},[...a[2]||(a[2]=[e.createElementVNode("img",{style:{height:"60px"},src:"https://osshz.idmwx.com/asset/loading.gif"},null,-1)])],2)):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"暂无数据":"No Data"),3)):(e.openBlock(),e.createElementBlock("div",wa,[e.createElementVNode("div",xa,[e.createElementVNode("div",za,e.toDisplayString(t.locale==="zhHans"?"预报":"Daily Weather Forecast"),1)]),e.createElementVNode("table",{class:e.normalizeClass(["conditions-table",(z=t.reportData)!=null&&z.showSummary?"":"table-header-fixed"])},[e.createElementVNode("thead",{class:e.normalizeClass(t.theme==="dark"?"dark":"light")},[e.createElementVNode("tr",{class:e.normalizeClass(["day",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("th",ka,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"时间":"DateTime"),1),a[0]||(a[0]=e.createElementVNode("br",null,null,-1)),a[1]||(a[1]=e.createTextVNode("(LT)",-1))]),e.createElementVNode("th",Da,e.toDisplayString(t.locale==="zhHans"?"温度":"Temp")+" (°C)",1),e.createElementVNode("th",Fa,e.toDisplayString(t.locale==="zhHans"?"风":"Wind"),1),e.createElementVNode("th",Na,e.toDisplayString(t.locale==="zhHans"?"阵风":"Gust"),1),e.createElementVNode("th",Sa,e.toDisplayString(t.locale==="zhHans"?"降水":"Precip")+" (mm)",1)],2),e.createElementVNode("tr",{class:e.normalizeClass(["hour",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("th",Ma,e.toDisplayString(t.locale==="zhHans"?"最小":"Min"),1),e.createElementVNode("th",_a,e.toDisplayString(t.locale==="zhHans"?"平均":"Mean"),1),e.createElementVNode("th",Ea,e.toDisplayString(t.locale==="zhHans"?"最大":"Max"),1),e.createElementVNode("th",va,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",La,e.toDisplayString(t.locale==="zhHans"?"平均速度":"Spd Mean")+" (kts)",1),e.createElementVNode("th",Va,e.toDisplayString(t.locale==="zhHans"?"平均等级":"BF Mean"),1),e.createElementVNode("th",Ha,e.toDisplayString(t.locale==="zhHans"?"最大速度":"Spd Max")+" (kts)",1),e.createElementVNode("th",Ca,e.toDisplayString(t.locale==="zhHans"?"最大等级":"BF Max"),1),e.createElementVNode("th",Ba,e.toDisplayString(t.locale==="zhHans"?"最大速度":"Spd Max")+" (kts)",1),e.createElementVNode("th",Aa,e.toDisplayString(t.locale==="zhHans"?"最大等级":"BF Max"),1),e.createElementVNode("th",Ta,e.toDisplayString(t.locale==="zhHans"?"累计":"Acc"),1)],2)],2),e.createElementVNode("tbody",{class:e.normalizeClass((I=t.reportData)!=null&&I.showSummary?"":"scroll")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((T=t.reportData)==null?void 0:T.tableData,y=>(e.openBlock(),e.createElementBlock("tr",{key:Math.random()+y.localDate,class:e.normalizeClass(["text border-bottom",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("td",Pa,e.toDisplayString(y.localDate),1),e.createElementVNode("td",Ia,e.toDisplayString((y==null?void 0:y.minTemp)??"-"),1),e.createElementVNode("td",Wa,e.toDisplayString((y==null?void 0:y.meanTemp)??"-"),1),e.createElementVNode("td",Oa,e.toDisplayString((y==null?void 0:y.maxTemp)??"-"),1),e.createElementVNode("td",Ra,[e.createTextVNode(e.toDisplayString((y==null?void 0:y.windDirection)||"-")+" ",1),!isNaN(y.windBearing)&&y.windDirection?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWindArrowBase64(y.windBearing,this.theme==="dark"?"rgba(159, 255, 126, 1)":"rgba(54, 212, 0, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,Ga)):(e.openBlock(),e.createElementBlock("span",$a,"-"))]),e.createElementVNode("td",ja,e.toDisplayString((y==null?void 0:y.meanWindSpeed)??"-"),1),e.createElementVNode("td",Ya,e.toDisplayString((y==null?void 0:y.meanWindBF)??"-"),1),e.createElementVNode("td",Ua,e.toDisplayString((y==null?void 0:y.maxWindSpeed)??"-"),1),e.createElementVNode("td",Za,e.toDisplayString((y==null?void 0:y.maxWindBF)??"-"),1),e.createElementVNode("td",qa,e.toDisplayString((y==null?void 0:y.maxGustSpeed)??"-"),1),e.createElementVNode("td",Ja,e.toDisplayString((y==null?void 0:y.maxGustBF)??"-"),1),e.createElementVNode("td",Xa,e.toDisplayString((y==null?void 0:y.precip)??"-"),1)],2))),128))],2)],2)]))])])],2)}const I1=Ie($0,[["render",Qa],["__scopeId","data-v-1c5b274c"]]),Ka={install(l){l.component("ForecastReport",T1),l.component("HistoricalReport",P1),l.component("SeasonalReport",I1)}},X4="",Q4="",e4={props:{tropicals:{type:Object,default:()=>({})},ts:{type:String,default:()=>""},container:{type:String,default:()=>""},zoom:{type:Number,default:()=>1}},components:{},data(){return{map:void 0,source:"tropicals-source",bboxSource:"tropicals-bbox-source",historyLayer:"tropicals-history-layer",forecastLayer:"tropicals-forecast-layer",bboxLayer:"tropicals-bbox-layer",interpolateData:void 0}},mounted(){this.initMap()},methods:{async initMap(){i1.accessToken="pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";const l=new i1.Map({container:this.container,style:{version:8,name:"light",metadata:{"mapbox:print":{width:8.5,height:11,units:"in",format:"png",resolution:300},"mapbox:type":"default","mapbox:trackposition":!0,"mapbox:autocomposite":!0,"mapbox:sdk-support":{android:"11.0.0",ios:"11.0.0",js:"3.0.0"},"mapbox:origin":"outdoors-v12","mapbox:groups":{"Terrain, terrain-labels":{name:"Terrain, terrain-labels",collapsed:!0},"Administrative boundaries, admin":{name:"Administrative boundaries, admin",collapsed:!0},"Land & water, built":{name:"Land & water, built",collapsed:!0},"Terrain, surface":{name:"Terrain, surface",collapsed:!0},"Land & water, land":{name:"Land & water, land",collapsed:!1},"Natural features, natural-labels":{name:"Natural features, natural-labels",collapsed:!0},e9bb8e77353431519f7918998e9079d9:{name:"Group",collapsed:!1},"Walking, cycling, etc., barriers-bridges":{name:"Walking, cycling, etc., barriers-bridges",collapsed:!0},"Place labels, place-labels":{name:"Place labels, place-labels",collapsed:!1},"Transit, ferries":{name:"Transit, ferries",collapsed:!0},"Transit, elevated":{name:"Transit, elevated",collapsed:!0},"Walking, cycling, etc., tunnels":{name:"Walking, cycling, etc., tunnels",collapsed:!0},"Terrain, land":{name:"Terrain, land",collapsed:!0},"Road network, tunnels-case":{name:"Road network, tunnels-case",collapsed:!0},"Walking, cycling, etc., walking-cycling-labels":{name:"Walking, cycling, etc., walking-cycling-labels",collapsed:!0},"Walking, cycling, etc., surface":{name:"Walking, cycling, etc., surface",collapsed:!0},"Road network, surface-icons":{name:"Road network, surface-icons",collapsed:!0},"Land & water, water":{name:"Land & water, water",collapsed:!1}}},center:[104.01743114258029,17.078999978347557],zoom:1.9133216316430233,bearing:0,pitch:0,lights:[],fog:{range:[.5,10]},sources:{composite:{url:"mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2,mapbox.country-boundaries-v1,neatchenheng.d44z21eg,neatchenheng.82kqbc1q,neatchenheng.a4ifbysm,neatchenheng.27issko0,neatchenheng.9uwc9x7l,neatchenheng.7y3kpvvv,neatchenheng.dlkkohie",type:"vector"}},sprite:"mapbox://sprites/neatchenheng/cmd894dwn036m01rf7anc0k0d/bph0p8ithotzwly53az7lwdmv",glyphs:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",projection:{name:"equirectangular"},layers:[{id:"land",type:"background",layout:{},paint:{"background-color":"#e9ebed"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"}},{layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"},maxzoom:12,type:"fill",source:"composite",id:"landcover",paint:{"fill-color":["match",["get","class"],"wood","hsla(103, 50%, 60%, 0.8)","scrub","hsla(98, 47%, 68%, 0.6)","crop","hsla(68, 55%, 70%, 0.6)","grass","hsla(98, 50%, 74%, 0.6)","snow","hsl(205, 45%, 95%)","hsl(98, 48%, 67%)"],"fill-opacity":["interpolate",["exponential",1.5],["zoom"],8,.8,12,0],"fill-antialias":!1},"source-layer":"landcover"},{minzoom:5,layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"},filter:["==",["get","class"],"national_park"],type:"fill",source:"composite",id:"national-park",paint:{"fill-color":"hsl(98, 38%, 68%)","fill-opacity":["interpolate",["linear"],["zoom"],5,0,6,.6,12,.2]},"source-layer":"landuse_overlay"},{minzoom:9,layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"},filter:["==",["get","class"],"national_park"],type:"line",source:"composite",id:"national-park_tint-band",paint:{"line-color":"hsl(98, 38%, 68%)","line-width":["interpolate",["exponential",1.5],["zoom"],9,1,14,8],"line-blur":["interpolate",["exponential",1.5],["zoom"],9,1,14,8]},"source-layer":"landuse_overlay"},{minzoom:5,layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"},filter:["all",[">=",["to-number",["get","sizerank"]],0],["match",["get","class"],["agriculture","wood","grass","scrub","glacier","pitch","sand"],["step",["zoom"],!1,11,!0],"residential",["step",["zoom"],!0,10,!1],["park","airport"],["step",["zoom"],!1,8,["case",["==",["get","sizerank"],1],!0,!1],10,!0],["facility","industrial"],["step",["zoom"],!1,12,!0],"rock",["step",["zoom"],!1,11,!0],"cemetery",["step",["zoom"],!1,11,!0],"school",["step",["zoom"],!1,11,!0],"hospital",["step",["zoom"],!1,11,!0],"commercial_area",["step",["zoom"],!1,11,!0],!1],["<=",["-",["to-number",["get","sizerank"]],["interpolate",["exponential",1.5],["zoom"],12,0,18,14]],14]],type:"fill",source:"composite",id:"landuse",paint:{"fill-color":["interpolate",["linear"],["zoom"],15,["match",["get","class"],"wood","hsla(103, 50%, 60%, 0.8)","scrub","hsla(98, 47%, 68%, 0.6)","agriculture","hsla(98, 50%, 74%, 0.6)","park",["match",["get","type"],["garden","playground","zoo"],"hsl(98, 38%, 68%)","hsl(98, 55%, 70%)"],"grass","hsla(98, 50%, 74%, 0.6)","airport","hsl(230, 40%, 82%)","cemetery","hsl(98, 45%, 75%)","glacier","hsl(205, 45%, 95%)","hospital","hsl(20, 45%, 82%)","pitch","hsl(88, 65%, 75%)","sand","hsl(69, 60%, 72%)","rock","hsl(60, 0%, 85%)","school","hsl(40, 45%, 78%)","commercial_area","hsl(55, 45%, 85%)","residential","hsl(60, 7%, 87%)",["facility","industrial"],"hsl(230, 20%, 85%)","hsl(60, 12%, 72%)"],16,["match",["get","class"],"wood","hsla(103, 50%, 60%, 0.8)","scrub","hsla(98, 47%, 68%, 0.6)","agriculture","hsla(98, 50%, 74%, 0.6)","park",["match",["get","type"],["garden","playground","zoo"],"hsl(98, 38%, 68%)","hsl(98, 55%, 70%)"],"grass","hsla(98, 50%, 74%, 0.6)","airport","hsl(230, 40%, 82%)","cemetery","hsl(98, 45%, 75%)","glacier","hsl(205, 45%, 95%)","hospital","hsl(20, 45%, 82%)","pitch","hsl(88, 65%, 75%)","sand","hsl(69, 60%, 72%)","rock","hsla(60, 0%, 85%, 0.5)","school","hsl(40, 45%, 78%)","commercial_area","hsla(55, 45%, 85%, 0.5)",["facility","industrial"],"hsl(230, 20%, 85%)","hsl(60, 12%, 72%)"]],"fill-opacity":["interpolate",["linear"],["zoom"],8,["match",["get","class"],"residential",.8,.2],10,["match",["get","class"],"residential",0,1]],"fill-antialias":!1},"source-layer":"landuse"},{minzoom:15,layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"},filter:["==",["get","class"],"pitch"],type:"line",source:"composite",id:"pitch-outline",paint:{"line-color":"hsl(0, 0%, 69%)"},"source-layer":"landuse"},{id:"waterway-shadow",type:"line",source:"composite","source-layer":"waterway",minzoom:10,layout:{"line-cap":["step",["zoom"],"butt",11,"round"],"line-join":["step",["zoom"],"miter",11,"round"],visibility:"none"},paint:{"line-color":"hsl(224, 79%, 69%)","line-width":["interpolate",["exponential",1.3],["zoom"],9,["match",["get","class"],["canal","river"],.1,0],20,["match",["get","class"],["canal","river"],8,3]],"line-translate":["interpolate",["exponential",1.2],["zoom"],7,["literal",[0,0]],16,["literal",[-1,-1]]],"line-translate-anchor":"viewport","line-opacity":["interpolate",["linear"],["zoom"],8,0,8.5,1]},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"}},{id:"water-shadow",type:"fill",source:"composite","source-layer":"water",minzoom:10,layout:{visibility:"none"},paint:{"fill-color":"hsl(224, 79%, 69%)","fill-translate":["interpolate",["exponential",1.2],["zoom"],7,["literal",[0,0]],16,["literal",[-1,-1]]],"fill-translate-anchor":"viewport"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"}},{id:"waterway",type:"line",source:"composite","source-layer":"waterway",minzoom:8,layout:{"line-cap":["step",["zoom"],"butt",11,"round"],"line-join":["step",["zoom"],"miter",11,"round"]},paint:{"line-color":"hsl(198, 100%, 37%)","line-width":["interpolate",["exponential",1.3],["zoom"],9,["match",["get","class"],["canal","river"],.1,0],20,["match",["get","class"],["canal","river"],8,3]],"line-opacity":["interpolate",["linear"],["zoom"],8,0,8.5,1]},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"}},{id:"water",type:"fill",source:"composite","source-layer":"water",layout:{},paint:{"fill-color":"hsl(215, 92%, 81%)"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"}},{layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"},maxzoom:8,type:"fill",source:"composite",id:"water-depth",paint:{"fill-antialias":!1,"fill-color":["interpolate",["linear"],["zoom"],6,["interpolate",["linear"],["get","min_depth"],0,"hsla(205, 75%, 70%, 0.35)",200,"hsla(205, 75%, 63%, 0.35)",7e3,"hsla(205, 75%, 56%, 0.35)"],8,["interpolate",["linear"],["get","min_depth"],0,"hsla(205, 75%, 70%, 0)",200,"hsla(205, 75%, 63%, 0)",7e3,"hsla(205, 75%, 53%, 0)"]]},"source-layer":"depth"},{minzoom:5,layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"},filter:["match",["get","class"],["wetland","wetland_noveg"],!0,!1],type:"fill",source:"composite",id:"wetland",paint:{"fill-color":"hsl(194, 38%, 74%)","fill-opacity":["interpolate",["linear"],["zoom"],10,.25,10.5,.15]},"source-layer":"landuse_overlay"},{minzoom:5,layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"},filter:["match",["get","class"],["wetland","wetland_noveg"],!0,!1],type:"fill",source:"composite",id:"wetland-pattern",paint:{"fill-color":"hsl(194, 38%, 74%)","fill-opacity":["interpolate",["linear"],["zoom"],10,0,10.5,1],"fill-pattern":"wetland","fill-translate-anchor":"viewport"},"source-layer":"landuse_overlay"},{minzoom:13,layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, built"},filter:["all",["==",["get","class"],"land"],["==",["geometry-type"],"Polygon"]],type:"fill",source:"composite",id:"land-structure-polygon",paint:{"fill-color":"hsl(0, 0%, 69%)"},"source-layer":"structure"},{minzoom:13,layout:{"line-cap":"square",visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, built"},filter:["all",["==",["get","class"],"land"],["==",["geometry-type"],"LineString"]],type:"line",source:"composite",id:"land-structure-line",paint:{"line-width":["interpolate",["exponential",1.99],["zoom"],14,.75,20,40],"line-color":"hsl(60, 20%, 85%)"},"source-layer":"structure"},{id:"empty-layer-0",minzoom:0,maxzoom:22,type:"fill",paint:{"fill-color":"rgba(0, 0, 0, 0)"},layout:{},source:"composite","source-layer":"country_boundaries"},{id:"empty-layer-1",minzoom:0,maxzoom:22,type:"fill",paint:{"fill-color":"rgba(0, 0, 0, 0)"},layout:{},source:"composite","source-layer":"country_boundaries"},{id:"country-boundaries",type:"fill",source:"composite","source-layer":"country_boundaries",paint:{"fill-color":"rgb(200, 200, 200)"},layout:{visibility:"none"}},{id:"empty-layer-2",minzoom:0,maxzoom:22,type:"fill",paint:{"fill-color":"rgba(0, 0, 0, 0)"},layout:{},source:"composite","source-layer":"country_boundaries"},{id:"empty-layer-3",minzoom:0,maxzoom:22,type:"fill",paint:{"fill-color":"rgba(0, 0, 0, 0)"},layout:{},source:"composite","source-layer":"country_boundaries"},{id:"empty-layer-4",minzoom:0,maxzoom:22,type:"fill",paint:{"fill-color":"rgba(0, 0, 0, 0)"},layout:{},source:"composite","source-layer":"country_boundaries"},{id:"water-outline2",minzoom:0,maxzoom:22,type:"line",paint:{"line-color":"rgb(150, 150, 150)"},layout:{visibility:"none"},source:"composite","source-layer":"water"},{id:"water-outline",type:"line",paint:{"line-color":"hsl(0, 0%, 70%)","line-width":["interpolate",["linear"],["zoom"],0,1.5,4,1]},source:"composite","source-layer":"water"},{minzoom:1,layout:{},metadata:{"mapbox:featureComponent":"admin-boundaries","mapbox:group":"Administrative boundaries, admin"},filter:["all",["==",["get","admin_level"],0],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","CN"],!0,!1]],type:"line",source:"composite",id:"admin-0-boundary-bg",paint:{"line-width":["interpolate",["linear"],["zoom"],3,4,12,8],"line-color":"rgb(173, 169, 170)","line-opacity":["interpolate",["linear"],["zoom"],3,0,4,.5],"line-blur":["interpolate",["linear"],["zoom"],3,0,12,2]},"source-layer":"admin"},{minzoom:1,layout:{},metadata:{"mapbox:featureComponent":"admin-boundaries","mapbox:group":"Administrative boundaries, admin"},filter:["all",["==",["get","admin_level"],0],["==",["get","disputed"],"false"],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","CN"],!0,!1]],type:"line",source:"composite",id:"admin-0-boundary",paint:{"line-color":"rgb(143, 143, 143)","line-width":["interpolate",["linear"],["zoom"],3,.5,12,2],"line-dasharray":["step",["zoom"],["literal",[2,0]],7,["literal",[2,2,6,2]]]},"source-layer":"admin"},{minzoom:1,layout:{},metadata:{"mapbox:featureComponent":"admin-boundaries","mapbox:group":"Administrative boundaries, admin"},filter:["all",["==",["get","disputed"],"true"],["==",["get","admin_level"],0],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","CN"],!0,!1]],type:"line",source:"composite",id:"admin-0-boundary-disputed",paint:{"line-color":"rgb(95, 93, 94)","line-width":["interpolate",["linear"],["zoom"],3,.5,12,2],"line-dasharray":["step",["zoom"],["literal",[3,2,5]],7,["literal",[2,1.5]]]},"source-layer":"admin"},{minzoom:13,layout:{"text-font":["DIN Pro Italic","Arial Unicode MS Regular"],"text-max-angle":30,"symbol-spacing":["interpolate",["linear",1],["zoom"],15,250,17,400],"text-size":["interpolate",["linear"],["zoom"],13,12,18,18],"symbol-placement":"line","text-pitch-alignment":"viewport","text-field":["coalesce",["get","name_en"],["get","name"]]},metadata:{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"},filter:["all",["match",["get","class"],["canal","river","stream","disputed_canal","disputed_river","disputed_stream"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["step",["pitch"],!0,50,["<",["distance-from-center"],1],60,["<",["distance-from-center"],1.5],70,["<",["distance-from-center"],2]],["==",["geometry-type"],"LineString"]],type:"symbol",source:"composite",id:"waterway-label",paint:{"text-color":"hsl(205, 43%, 90%)","text-halo-color":"hsla(60, 17%, 84%, 0.5)"},"source-layer":"natural_label"},{minzoom:4,layout:{"text-size":["step",["zoom"],["step",["get","sizerank"],18,5,12],17,["step",["get","sizerank"],18,13,12]],"text-max-angle":30,"text-field":["coalesce",["get","name_en"],["get","name"]],"text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"symbol-placement":"line-center","text-pitch-alignment":"viewport"},metadata:{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"},filter:["all",["match",["get","class"],["glacier","landform","disputed_glacier","disputed_landform"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["<=",["get","filterrank"],4],["step",["pitch"],!0,50,["<",["distance-from-center"],1],60,["<",["distance-from-center"],1.5],70,["<",["distance-from-center"],2]],["==",["geometry-type"],"LineString"]],type:"symbol",source:"composite",id:"natural-line-label",paint:{"text-halo-width":.5,"text-halo-color":"hsl(60, 17%, 84%)","text-halo-blur":.5,"text-color":"hsl(340, 10%, 38%)"},"source-layer":"natural_label"},{minzoom:4,layout:{"text-size":["step",["zoom"],["step",["get","sizerank"],18,5,12],17,["step",["get","sizerank"],18,13,12]],"icon-image":["case",["has","maki_beta"],["coalesce",["image",["get","maki_beta"]],["image",["get","maki"]]],["image",["get","maki"]]],"text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-offset":["step",["zoom"],["step",["get","sizerank"],["literal",[0,0]],5,["literal",[0,.8]]],17,["step",["get","sizerank"],["literal",[0,0]],13,["literal",[0,.8]]]],"text-anchor":["step",["zoom"],["step",["get","sizerank"],"center",5,"top"],17,["step",["get","sizerank"],"center",13,"top"]],"text-field":["coalesce",["get","name_en"],["get","name"]]},metadata:{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"},filter:["all",["match",["get","class"],["dock","glacier","landform","water_feature","wetland","disputed_dock","disputed_glacier","disputed_landform","disputed_water_feature","disputed_wetland"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["<=",["get","filterrank"],4],["step",["pitch"],!0,50,["<",["distance-from-center"],1],60,["<",["distance-from-center"],1.5],70,["<",["distance-from-center"],2]],["==",["geometry-type"],"Point"]],type:"symbol",source:"composite",id:"natural-point-label",paint:{"icon-opacity":["step",["zoom"],["step",["get","sizerank"],0,5,1],17,["step",["get","sizerank"],0,13,1]],"text-halo-color":"hsl(60, 20%, 98%)","text-halo-width":.5,"text-halo-blur":.5,"text-color":"hsl(340, 10%, 38%)"},"source-layer":"natural_label"},{minzoom:1,layout:{"text-size":["interpolate",["linear"],["zoom"],0,["*",["-",16,["sqrt",["get","sizerank"]]],1],22,["*",["-",22,["sqrt",["get","sizerank"]]],1]],"text-max-angle":30,"text-letter-spacing":["match",["get","class"],"ocean",.25,["sea","bay"],.15,0],"text-font":["DIN Pro Italic","Arial Unicode MS Regular"],"symbol-placement":"line-center","text-pitch-alignment":"viewport","text-field":["coalesce",["get","name_en"],["get","name"]]},metadata:{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"},filter:["all",["match",["get","class"],["bay","ocean","reservoir","sea","water","disputed_bay","disputed_ocean","disputed_reservoir","disputed_sea","disputed_water"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["step",["pitch"],!0,50,["<",["distance-from-center"],1],60,["<",["distance-from-center"],1.5],70,["<",["distance-from-center"],2]],["==",["geometry-type"],"LineString"]],type:"symbol",source:"composite",id:"water-line-label",paint:{"text-color":["match",["get","class"],["bay","ocean","sea"],"hsl(205, 71%, 90%)","hsl(205, 43%, 90%)"],"text-halo-color":"hsla(60, 17%, 84%, 0.5)"},"source-layer":"natural_label"},{minzoom:1,layout:{"text-line-height":1.3,"text-size":["interpolate",["linear"],["zoom"],0,["*",["-",16,["sqrt",["get","sizerank"]]],1],22,["*",["-",22,["sqrt",["get","sizerank"]]],1]],"text-font":["DIN Pro Italic","Arial Unicode MS Regular"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-letter-spacing":["match",["get","class"],"ocean",.25,["bay","sea"],.15,.01],"text-max-width":["match",["get","class"],"ocean",4,"sea",5,["bay","water"],7,10]},metadata:{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"},filter:["all",["match",["get","class"],["bay","ocean","reservoir","sea","water","disputed_bay","disputed_ocean","disputed_reservoir","disputed_sea","disputed_water"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["step",["pitch"],!0,50,["<",["distance-from-center"],1],60,["<",["distance-from-center"],1.5],70,["<",["distance-from-center"],2]],["==",["geometry-type"],"Point"]],type:"symbol",source:"composite",id:"water-point-label",paint:{"text-color":["match",["get","class"],["bay","ocean","sea"],"hsl(205, 71%, 90%)","hsl(205, 43%, 90%)"],"text-halo-color":"hsla(60, 17%, 84%, 0.5)"},"source-layer":"natural_label"},{minzoom:10,layout:{"text-field":["coalesce",["get","name_en"],["get","name"]],"text-transform":"uppercase","text-font":["DIN Pro Regular","Arial Unicode MS Regular"],"text-letter-spacing":["match",["get","type"],"suburb",.15,.05],"text-max-width":7,"text-padding":3,"text-size":["interpolate",["cubic-bezier",.5,0,1,1],["zoom"],11,["match",["get","type"],"suburb",11,10.5],15,["match",["get","type"],"suburb",15,14]],visibility:"none"},metadata:{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"},maxzoom:15,filter:["all",["match",["get","class"],["settlement_subdivision","disputed_settlement_subdivision"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["<=",["get","filterrank"],3],["step",["pitch"],!0,50,["<",["distance-from-center"],3],60,["<",["distance-from-center"],4],70,["<",["distance-from-center"],5]]],type:"symbol",source:"composite",id:"settlement-subdivision-label",paint:{"text-halo-color":"hsla(60, 25%, 100%, 0.75)","text-halo-width":1,"text-color":"hsl(230, 29%, 36%)","text-halo-blur":.5},"source-layer":"place_label"},{minzoom:2,layout:{"text-line-height":1.1,"text-size":["interpolate",["cubic-bezier",.2,0,.9,1],["zoom"],3,["step",["get","symbolrank"],11,9,10],6,["step",["get","symbolrank"],14,9,12,12,10],8,["step",["get","symbolrank"],16,9,14,12,12,15,10],13,["step",["get","symbolrank"],22,9,20,12,16,15,14]],"text-radial-offset":["step",["zoom"],["match",["get","capital"],2,.6,.55],8,0],"symbol-sort-key":["get","symbolrank"],"icon-image":["step",["zoom"],["case",["==",["get","capital"],2],"border-dot-13",["step",["get","symbolrank"],"dot-11",9,"dot-10",11,"dot-9"]],8,""],"text-font":["DIN Pro Regular","Arial Unicode MS Regular"],"text-justify":"auto",visibility:"none","text-anchor":["step",["zoom"],["get","text_anchor"],8,"center"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-max-width":7},metadata:{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"},maxzoom:13,filter:["all",["<=",["get","filterrank"],3],["match",["get","class"],["settlement","disputed_settlement"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["step",["zoom"],[">",["get","symbolrank"],6],4,[">=",["get","symbolrank"],7],6,[">=",["get","symbolrank"],8],7,[">=",["get","symbolrank"],10],10,[">=",["get","symbolrank"],11],11,[">=",["get","symbolrank"],13],12,[">=",["get","symbolrank"],15]],["step",["pitch"],!0,50,["<",["distance-from-center"],3],60,["<",["distance-from-center"],4],70,["<",["distance-from-center"],5]]],type:"symbol",source:"composite",id:"settlement-minor-label",paint:{"text-color":"hsl(230, 29%, 0%)","text-halo-color":"hsl(60, 25%, 100%)","text-halo-width":1,"text-halo-blur":1},"source-layer":"place_label"},{minzoom:2,layout:{"text-line-height":1.1,"text-size":["interpolate",["cubic-bezier",.2,0,.9,1],["zoom"],3,["step",["get","symbolrank"],13,6,11],6,["step",["get","symbolrank"],18,6,16,7,14],8,["step",["get","symbolrank"],20,9,16,10,14],15,["step",["get","symbolrank"],24,9,20,12,16,15,14]],"text-radial-offset":["step",["zoom"],["match",["get","capital"],2,.6,.55],8,0],"symbol-sort-key":["get","symbolrank"],"icon-image":["step",["zoom"],["case",["==",["get","capital"],2],"border-dot-13",["step",["get","symbolrank"],"dot-11",9,"dot-10",11,"dot-9"]],8,""],"text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-justify":["step",["zoom"],["match",["get","text_anchor"],["left","bottom-left","top-left"],"left",["right","bottom-right","top-right"],"right","center"],8,"center"],visibility:"none","text-anchor":["step",["zoom"],["get","text_anchor"],8,"center"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-max-width":7},metadata:{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"},maxzoom:15,filter:["all",["<=",["get","filterrank"],3],["match",["get","class"],["settlement","disputed_settlement"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["step",["zoom"],!1,2,["<=",["get","symbolrank"],6],4,["<",["get","symbolrank"],7],6,["<",["get","symbolrank"],8],7,["<",["get","symbolrank"],10],10,["<",["get","symbolrank"],11],11,["<",["get","symbolrank"],13],12,["<",["get","symbolrank"],15],13,[">=",["get","symbolrank"],11],14,[">=",["get","symbolrank"],15]],["step",["pitch"],!0,50,["<",["distance-from-center"],3],60,["<",["distance-from-center"],4],70,["<",["distance-from-center"],5]]],type:"symbol",source:"composite",id:"settlement-major-label",paint:{"text-color":"hsl(230, 29%, 0%)","text-halo-color":"hsl(60, 25%, 100%)","text-halo-width":1,"text-halo-blur":1},"source-layer":"place_label"},{minzoom:3,layout:{"text-size":["interpolate",["cubic-bezier",.85,.7,.65,1],["zoom"],4,["step",["get","symbolrank"],9,6,8,7,7],9,["step",["get","symbolrank"],21,6,16,7,14]],"text-transform":"uppercase","text-font":["DIN Pro Bold","Arial Unicode MS Bold"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-letter-spacing":.15,"text-max-width":6},metadata:{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"},maxzoom:9,filter:["all",["match",["get","class"],["state","disputed_state"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["step",["pitch"],!0,50,["<",["distance-from-center"],3],60,["<",["distance-from-center"],4],70,["<",["distance-from-center"],5]]],type:"symbol",source:"composite",id:"state-label",paint:{"text-color":"hsl(230, 29%, 0%)","text-halo-color":"hsl(60, 25%, 100%)","text-halo-width":1,"text-opacity":.5},"source-layer":"place_label"},{minzoom:1,layout:{"text-field":["coalesce",["get","name_en"],["get","name"]],"text-line-height":1.1,"text-max-width":6,"text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-radial-offset":["step",["zoom"],.6,8,0],"text-justify":["step",["zoom"],["match",["get","text_anchor"],["left","bottom-left","top-left"],"left",["right","bottom-right","top-right"],"right","center"],7,"auto"],"text-size":["interpolate",["cubic-bezier",.2,0,.7,1],["zoom"],1,["step",["get","symbolrank"],12.100000000000001,4,9.9,5,8.8],9,["step",["get","symbolrank"],24.200000000000003,4,20.900000000000002,5,18.700000000000003]]},metadata:{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"},maxzoom:10,filter:["all",["match",["get","class"],["country","disputed_country"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["step",["pitch"],!0,50,["<",["distance-from-center"],3],60,["<",["distance-from-center"],4],70,["<",["distance-from-center"],5]]],type:"symbol",source:"composite",id:"country-label",paint:{"icon-opacity":["step",["zoom"],["case",["has","text_anchor"],1,0],7,0],"text-color":"hsl(0, 0.00%, 13.70%)","text-halo-color":["interpolate",["linear"],["zoom"],2,"hsla(60, 25%, 100%, 0.75)",3,"hsl(60, 25%, 100%)"],"text-halo-width":1.25},"source-layer":"place_label"},{minzoom:.75,layout:{"text-field":["coalesce",["get","name_en"],["get","name"]],"text-line-height":1.1,"text-max-width":6,"text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-size":["interpolate",["exponential",.5],["zoom"],0,10,2.5,15],"text-transform":"uppercase","text-letter-spacing":.05},metadata:{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"},maxzoom:3,filter:["==",["get","class"],"continent"],type:"symbol",source:"composite",id:"continent-label",paint:{"text-color":"hsl(230, 29%, 0%)","text-halo-color":["interpolate",["linear"],["zoom"],0,"hsla(60, 25%, 100%, 0.75)",3,"hsl(60, 25%, 100%)"],"text-halo-width":1.5,"text-opacity":["interpolate",["linear"],["zoom"],0,.8,1.5,.5,2.5,0]},"source-layer":"natural_label"},{id:"world-12nm-v4-20231025",minzoom:3,type:"line",paint:{"line-color":"hsl(2, 88%, 55%)","line-opacity":.62,"line-width":["interpolate",["linear"],["zoom"],0,2,22,2],"line-translate":[0,0]},source:"composite","source-layer":"eez_12nm_new1-6jzkww",layout:{"line-join":"round",visibility:"none"}},{id:"china-taiwan",type:"line",paint:{"line-color":"hsl(2, 88%, 55%)","line-opacity":.62,"line-width":["interpolate",["linear"],["zoom"],0,2,22,2]},layout:{"line-join":"round",visibility:"none"},source:"composite","source-layer":"eez-d4udtm"},{id:"ne-10m-outline",type:"line",paint:{"line-color":"hsl(172, 0%, 33%)"},source:"composite","source-layer":"ne_10m_geography_marine_polys-3968bv",layout:{visibility:"none"}},{id:"ne-10m-label",type:"symbol",paint:{"text-halo-color":"hsl(0, 0%, 100%)","text-halo-width":1,"text-halo-blur":1},layout:{"text-field":["to-string",["get","name"]],"text-size":12,visibility:"none"},source:"composite","source-layer":"ne_10m_geography_marine_polys-3968bv"},{id:"china-route-line",type:"line",paint:{"line-color":"rgba(119, 239, 157, 1)","line-width":2},source:"composite","source-layer":"china_route-bdtx5d",layout:{visibility:"none"}},{id:"china-route-fill",type:"fill",paint:{"fill-color":"rgba(119, 239, 157, 1)","fill-opacity":.2},source:"composite","source-layer":"china_route-bdtx5d",filter:["match",["get","featureType"],["route"],!0,!1],layout:{visibility:"none"}},{id:"china-route-label",type:"symbol",paint:{"text-color":"rgba(0, 0, 0, 1)"},source:"composite","source-layer":"china_route-bdtx5d",layout:{"text-field":["to-string",["get","RouteName"]],"text-size":10,"text-offset":[0,1.6],visibility:"none"}},{id:"ice-area-fill",minzoom:0,maxzoom:22,type:"fill",paint:{"fill-color":"rgba(199, 239, 236, 0.7)"},source:"composite","source-layer":"ICE_AREA-6oqazd",layout:{visibility:"none"}},{id:"ice-area-line",minzoom:0,maxzoom:22,type:"line",paint:{"line-color":"rgba(199, 239, 236, 1)"},layout:{visibility:"none"},source:"composite","source-layer":"ICE_AREA-6oqazd"},{id:"tide-stations",minzoom:0,maxzoom:22,type:"symbol",paint:{"text-color":"rgb(0, 0, 0)","text-opacity":["step",["zoom"],0,4,1]},layout:{visibility:"none","text-field":["to-string",["get","Location_EN"]],"text-size":10,"icon-image":"tide","icon-size":1,"icon-offset":[0,-13],"text-offset":[0,1.6],"text-font":["DIN Pro Regular","Arial Unicode MS Regular"]},source:"composite","source-layer":"tide_station_cn-8xvt91"},{id:"loadlines-label",minzoom:0,maxzoom:22,type:"symbol",paint:{"text-color":"rgb(0, 0, 0)"},layout:{"text-field":["to-string",["get","name"]],"text-size":10,"text-font":["DIN Pro Regular","Arial Unicode MS Regular"],visibility:"none","text-offset":[0,1]},source:"composite","source-layer":"loadlines-b6mgr8"},{id:"loadlines-fill",minzoom:0,maxzoom:22,type:"fill",paint:{"fill-color":["match",["get","val"],["LLGreen"],"rgba(164, 214, 217, 0.6)",["LLBlue"],"rgba(53, 121, 194, 0.6)",["LLRed"],"rgba(217, 150, 151, 0.6)",["LLSUMMER"],"rgba(111, 110, 212, 0.6)","rgba(255, 255, 255, 0.6)"],"fill-outline-color":"rgba(255, 255, 255, 0.3)"},layout:{visibility:"none"},source:"composite","source-layer":"loadlines-b6mgr8"}],created:"2025-07-18T03:20:31.079Z",modified:"2025-07-31T03:57:21.238Z",id:"cmd894dwn036m01rf7anc0k0d",owner:"neatchenheng",visibility:"private",protected:!1,draft:!1},zoom:this.zoom,center:this.tropicals.center||[120,30],preserveDrawingBuffer:!0,projection:"mercator",attributionControl:!1,dragPan:!1});l.on("load",()=>{var a;this.map=l,this.map.scrollZoom.disable(),(a=this.tropicals)!=null&&a.data&&(this.handleSetCenterAndBbox(),this.handleRenderTropcals(),this.handleDrawHurricaneMarker())})},handleSetCenterAndBbox(){var s,n,i;const l=[];(i=(n=(s=this.tropicals)==null?void 0:s.data)==null?void 0:n.features)==null||i.forEach(c=>{var m,d,p,u;((m=c==null?void 0:c.properties)==null?void 0:m.type)==="forecast"&&!c.properties.disabled&&(((d=c==null?void 0:c.geometry)==null?void 0:d.type)==="LineString"?l.push(...(p=c==null?void 0:c.geometry)==null?void 0:p.coordinates):l.push((u=c==null?void 0:c.geometry)==null?void 0:u.coordinates))});const a=re.LaneHelper.calculateCenter([l]);this.map.setCenter(a);let t=re.LaneHelper.calculateBBox([l]);this.map.fitScreenCoordinates(this.map.project([t[0]-10,t[1]-10]),this.map.project([t[2]+10,t[3]+10]),this.map.getBearing()),this.map.addSource(this.bboxSource,{type:"geojson",data:{type:"Feature",geometry:{type:"LineString",coordinates:[[t[0]-5,t[1]-5],[t[2]+5,t[1]-5],[t[2]+5,t[3]+5],[t[0]-5,t[3]+5],[t[0]-5,t[1]-5]]}}}),this.map.addLayer({id:this.bboxLayer,type:"line",source:this.bboxSource,layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(0,0,0,0.6)","line-width":1,"line-opacity":1,"line-dasharray":[2,2]}})},handleRenderTropcals(){var l,a,t,s,n;if(this.tropicals){const i=new Date().valueOf();let c=0,m=0;(l=this.map)!=null&&l.getSource(this.source)?((t=this.map)==null||t.getSource(this.source).setData((a=this.tropicals)!=null&&a.active?this.tropicals.data:this.empty),m=new Date().valueOf()-(i+c),console.log("[tropicals] update elapsed: ",m,", total: ",c+=m)):(this.map.addSource(this.source,{type:"geojson",data:(s=this.tropicals)!=null&&s.active?(n=this.tropicals)==null?void 0:n.data:this.empty}),this.map.addLayer({id:this.historyLayer,type:"line",source:this.source,filter:["all",["==","$type","LineString"],["==","type","history"],["!=","disabled",!0]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#000","line-width":4,"line-opacity":.5}}),this.map.addLayer({id:this.forecastLayer,type:"line",source:this.source,filter:["all",["==","$type","LineString"],["==","type","forecast"],["!=","disabled",!0]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":["match",["get","model"],"cma","#e2ea03","jma","#01d2b7","ecmwf","#f582f2","ukm","#f5bb47","noaa-at","#9758fb","noaa-ep","#9758fb","#f2a0a0"],"line-width":3,"line-opacity":1,"line-dasharray":[1,2]}}))}},handleDrawHurricaneMarker(){var s,n,i,c,m,d,p,u,b,f,v,E,_,N,k,D,x,L,S,R,C,z,I,T;const l=re.TropicalHelper.interpolate(this.tropicals,1),a=JSON.parse(JSON.stringify(l)),t=[];if(a.forEach(y=>{var F,V,o;(F=y.properties)!=null&&F.name&&!t.includes((V=y.properties)==null?void 0:V.name)&&t.push((o=y.properties)==null?void 0:o.name)}),t.forEach(y=>{var o;const V=(o=a.filter(W=>{var h;return((h=W.properties)==null?void 0:h.name)===y})[0])==null?void 0:o.properties.model;a.map((W,h)=>{var j,Y;return((j=W.properties)==null?void 0:j.name)===y&&(W.properties.disabled=((Y=W.properties)==null?void 0:Y.model)!==V),W})}),this.interpolateData=JSON.parse(JSON.stringify(a)),(s=this.interpolateMarkers)==null||s.forEach(y=>y==null?void 0:y.remove()),this.interpolateMarkers=[],(n=this.interpolateData)!=null&&n.length&&this.tropicals.active){const y=this.interpolateData.filter(F=>F.properties.date===this.ts&&!F.properties.disabled);this.interpolateData.forEach(F=>{});for(const F of y)if(!F.properties.disabled){let V="#f44336";((c=(i=F.properties)==null?void 0:i.wind)==null?void 0:c.kts)<32||!((d=(m=F.properties)==null?void 0:m.wind)!=null&&d.kts)?V="#03f869":((u=(p=F.properties)==null?void 0:p.wind)==null?void 0:u.kts)>=32&&((f=(b=F.properties)==null?void 0:b.wind)==null?void 0:f.kts)<47?V="#f2f202":((E=(v=F.properties)==null?void 0:v.wind)==null?void 0:E.kts)>=47&&((N=(_=F.properties)==null?void 0:_.wind)==null?void 0:N.kts)<63?V="#ff9100":((D=(k=F.properties)==null?void 0:k.wind)==null?void 0:D.kts)>=63&&((L=(x=F.properties)==null?void 0:x.wind)==null?void 0:L.kts)<79?V="#f44336":((R=(S=F.properties)==null?void 0:S.wind)==null?void 0:R.kts)>=79&&((z=(C=F.properties)==null?void 0:C.wind)==null?void 0:z.kts)<94?V="#f903d0":((T=(I=F.properties)==null?void 0:I.wind)==null?void 0:T.kts)>=94?V="#8702f9":V="#f44336";const o=`<svg t="1719918955501"
193
+ </div>`),te}}},legend:{show:!0,top:"10px",right:"6%",itemWidth:40,textStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"}},xAxis:{show:!0,left:0,right:0,top:"50%",height:"50%",type:"category",boundaryGap:!0,data:(W=this.reportData)==null?void 0:W.xDates,axisLabel:{show:!0,fontSize:12,color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0, 0, 0, 0.7)"},axisLine:{show:!0},axisTick:{show:!0,inside:!0,lineStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.4)":"rgba(0,0,0,0.4)"}},z:1,zlevel:1},yAxis:[{type:"value",name:this.locale==="zhHans"?"风速 ( kts ) ":"Wind speed ( kts ) ",show:!0,min:p,max:u,interval:b,splitNumber:5,nameRotate:90,nameLocation:"middle",nameGap:25,nameTextStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},axisLabel:{show:!0,fontSize:10,color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},splitLine:{show:!0,lineStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.1)":"rgba(0,0,0,0.1)"}},z:0,zlevel:0},{type:"value",name:this.locale==="zhHans"?"降水量 ( mm ) ":"Precipitation ( mm ) ",show:!0,min:E,max:_,interval:N,splitNumber:5,nameRotate:90,nameLocation:"middle",nameGap:30,nameTextStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},axisLabel:{show:!0,fontSize:10,color:this.theme==="dark"?"rgba(255, 255, 255, 0.7)":"rgba(0,0,0,0.7)"},splitLine:{show:!0,lineStyle:{color:this.theme==="dark"?"rgba(255, 255, 255, 0.1)":"rgba(0,0,0,0.1)"}},z:1,zlevel:0}],series:i.filter(h=>h.show)};this.$nextTick(()=>{let h;document.getElementById("wind-precip-echart")&&(h=ae.init(document.getElementById("wind-precip-echart")),h.setOption(k))})},disposeEcharts(){document.getElementById("temperature-echart")&&ae.dispose(document.getElementById("temperature-echart")),document.getElementById("wind-precip-echart")&&ae.dispose(document.getElementById("wind-precip-echart"))}}},j0={class:"row"},Y0={class:"col",style:{width:"54%"}},U0={key:0,style:{"margin-left":"8px"}},Z0={key:1,style:{"margin-left":"8px"}},q0={class:"col",style:{width:"42%"}},J0={style:{"margin-left":"8px"}},X0={class:"row"},Q0={class:"col",style:{width:"54%"}},K0={style:{"margin-left":"8px"}},ea={class:"content-box"},ta={class:"summary-section"},aa={class:"title",style:{"margin-left":"5px"}},la={class:"spot-info-block"},oa={class:"text"},ia={class:"text"},sa={class:"text"},ra={class:"text"},na={class:"text"},ca={class:"text"},da={class:"text"},ha={class:"text"},ma={class:"text"},pa={class:"text"},ga={class:"text"},ya={class:"seasonal-weather-section",style:{}},fa={key:0,id:"temperature-echart"},ba={key:1,id:"wind-precip-echart"},ua={class:"table-section"},wa={key:0,class:"card"},xa={class:"date"},za={class:"",style:{"font-size":"16px","font-weight":"500","margin-bottom":"8px"}},ka={rowspan:"2",colspan:"1",class:"border",style:{width:"110px"}},Da={rowspan:"1",colspan:"3",class:"border"},Fa={rowspan:"1",colspan:"5",class:"border"},Na={rowspan:"1",colspan:"2",class:"border"},Sa={rowspan:"1",colspan:"1",class:"border"},Ma={rowspan:"1",colspan:"1",class:"border",style:{width:"68px"}},_a={rowspan:"1",colspan:"1",class:"border",style:{width:"68px"}},Ea={rowspan:"1",colspan:"1",class:"border",style:{width:"68px"}},va={rowspan:"1",colspan:"1",class:"border",style:{width:"68px"}},La={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Va={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Ha={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Ca={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Ba={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Aa={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Ta={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Pa={rowspan:"1",colspan:"1",class:"border",style:{width:"110px"}},Ia={rowspan:"1",colspan:"1",class:"border",style:{width:"68px"}},Wa={rowspan:"1",colspan:"1",class:"border",style:{width:"68px"}},Oa={rowspan:"1",colspan:"1",class:"border",style:{width:"68px"}},Ra={rowspan:"1",colspan:"1",class:"border",style:{width:"68px","font-size":"11px","text-align":"right","padding-right":"1px"}},Ga=["src"],$a={key:1},ja={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Ya={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Ua={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Za={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},qa={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Ja={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Xa={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}};function Qa(l,a,t,s,n,i){var m,d,p,u,b,f,v,E,_,N,k,D,x,L,S,R,C,z,I,T;const c=e.resolveComponent("IdmLoading");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["idm-spot-seasonal-report",t.theme==="dark"?"dark":"light"])},[(m=t.reportData)!=null&&m.showSummary?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["summary-info-box",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("div",j0,[e.createElementVNode("div",Y0,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"位置":"Position")+":",3),(d=t.reportData)!=null&&d.portName?(e.openBlock(),e.createElementBlock("span",U0,e.toDisplayString((p=t.reportData)==null?void 0:p.portName)+" "+e.toDisplayString(`[${i.computeLat(t.reportData.lat)}, ${i.computeLng(t.reportData.lng)}]`),1)):(e.openBlock(),e.createElementBlock("span",Z0,e.toDisplayString(`${i.computeLat(t.reportData.lat)} , ${i.computeLng(t.reportData.lng)}`),1))]),e.createElementVNode("div",q0,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"预报月份":"Forecast Month")+":",3),e.createElementVNode("span",J0,e.toDisplayString((u=t.reportData)==null?void 0:u.forecastMonth),1)])]),e.createElementVNode("div",X0,[e.createElementVNode("div",Q0,[e.createElementVNode("span",{class:e.normalizeClass(["label label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"时区":"Timezone")+":",3),e.createElementVNode("span",K0,"UTC "+e.toDisplayString((b=t.reportData)==null?void 0:b.positionOffset),1)])])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",ea,[e.createElementVNode("div",ta,[e.createElementVNode("div",aa,e.toDisplayString(t.locale==="zhHans"?"总结":"Summary"),1),e.createElementVNode("div",la,[e.createElementVNode("div",{class:e.normalizeClass(["block",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("div",{class:e.normalizeClass(["label primary-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"温度":"Temperature"),3),e.createElementVNode("div",{class:e.normalizeClass(["divider",t.theme==="dark"?"dark":"light"])},null,2),e.createElementVNode("div",oa,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"平均最高温度:":"Avg High Temp:"),3),e.createTextVNode(" "+e.toDisplayString(t.reportData.minHighTemp)+" to "+e.toDisplayString(t.reportData.maxHighTemp)+" °C",1)]),e.createElementVNode("div",ia,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"平均最低温度:":"Avg Low Temp:"),3),e.createTextVNode(" "+e.toDisplayString(t.reportData.minLowTemp)+" to "+e.toDisplayString(t.reportData.maxLowTemp)+" °C",1)]),e.createElementVNode("div",sa,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"最热日期:":"Hottest Day:"),3),e.createTextVNode(" "+e.toDisplayString(t.reportData.hottestDay),1)]),e.createElementVNode("div",ra,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"最冷日期:":"Coldest Day:"),3),e.createTextVNode(" "+e.toDisplayString(t.reportData.coldestDay),1)])],2),e.createElementVNode("div",{class:e.normalizeClass(["block",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("div",{class:e.normalizeClass(["label primary-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"降水":"Precipitation"),3),e.createElementVNode("div",{class:e.normalizeClass(["divider",t.theme==="dark"?"dark":"light"])},null,2),e.createElementVNode("div",na,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"小雨:":"Light (<10mm):"),3),e.createTextVNode(" "+e.toDisplayString((E=(v=(f=t.reportData)==null?void 0:f.precip)==null?void 0:v.filter(y=>y<10))==null?void 0:E.length)+" days",1)]),e.createElementVNode("div",ca,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"中雨:":"Moderate (<=24.9mm):"),3),e.createTextVNode(" "+e.toDisplayString((k=(N=(_=t.reportData)==null?void 0:_.precip)==null?void 0:N.filter(y=>y>=10&&y<=24.9))==null?void 0:k.length)+" days",1)]),e.createElementVNode("div",da,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"大雨:":"Heavy (<=49.9mm):"),3),e.createTextVNode(" "+e.toDisplayString((L=(x=(D=t.reportData)==null?void 0:D.precip)==null?void 0:x.filter(y=>y>24.9&&y<=49.9))==null?void 0:L.length)+" days",1)]),e.createElementVNode("div",ha,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"暴雨:":"Rainstorm (>49.9mm):"),3),e.createTextVNode(" "+e.toDisplayString((C=(R=(S=t.reportData)==null?void 0:S.precip)==null?void 0:R.filter(y=>y>49.9))==null?void 0:C.length)+" days",1)])],2),e.createElementVNode("div",{class:e.normalizeClass(["block",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("div",{class:e.normalizeClass(["label primary-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"风":"Wind"),3),e.createElementVNode("div",{class:e.normalizeClass(["divider",t.theme==="dark"?"dark":"light"])},null,2),e.createElementVNode("div",ma,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"平均风速:":"Mean Wind:"),3),e.createTextVNode(" "+e.toDisplayString(i.roundPrecision(t.reportData.meanWind,1))+" kts",1)]),e.createElementVNode("div",pa,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"最强风日:":"Windiest Day:"),3),e.createTextVNode(" "+e.toDisplayString(t.reportData.windiestDay)+" ( "+e.toDisplayString(t.reportData.maxWindSpeed)+"kts )",1)]),e.createElementVNode("div",ga,[e.createElementVNode("span",{class:e.normalizeClass(["label-color",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"主要风向:":"Dominant Wind Dir:"),3),e.createTextVNode(" "+e.toDisplayString(t.reportData.dominantWind),1)])],2)])]),e.createElementVNode("div",ya,[t.loading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",fa)),t.loading?t.loading?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},[e.createVNode(c,{loading:t.loading},null,8,["loading"])],2)):(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"暂无数据":"No Data"),3)):(e.openBlock(),e.createElementBlock("div",ba))]),e.createElementVNode("div",ua,[t.loading?t.loading?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},[...a[2]||(a[2]=[e.createElementVNode("img",{style:{height:"60px"},src:"https://osshz.idmwx.com/asset/loading.gif"},null,-1)])],2)):(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["loading-box",t.theme==="dark"?"dark":"light"])},e.toDisplayString(t.locale==="zhHans"?"暂无数据":"No Data"),3)):(e.openBlock(),e.createElementBlock("div",wa,[e.createElementVNode("div",xa,[e.createElementVNode("div",za,e.toDisplayString(t.locale==="zhHans"?"预报":"Daily Weather Forecast"),1)]),e.createElementVNode("table",{class:e.normalizeClass(["conditions-table",(z=t.reportData)!=null&&z.showSummary?"":"table-header-fixed"])},[e.createElementVNode("thead",{class:e.normalizeClass(t.theme==="dark"?"dark":"light")},[e.createElementVNode("tr",{class:e.normalizeClass(["day",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("th",ka,[e.createTextVNode(e.toDisplayString(t.locale==="zhHans"?"时间":"DateTime"),1),a[0]||(a[0]=e.createElementVNode("br",null,null,-1)),a[1]||(a[1]=e.createTextVNode("(LT)",-1))]),e.createElementVNode("th",Da,e.toDisplayString(t.locale==="zhHans"?"温度":"Temp")+" (°C)",1),e.createElementVNode("th",Fa,e.toDisplayString(t.locale==="zhHans"?"风":"Wind"),1),e.createElementVNode("th",Na,e.toDisplayString(t.locale==="zhHans"?"阵风":"Gust"),1),e.createElementVNode("th",Sa,e.toDisplayString(t.locale==="zhHans"?"降水":"Precip")+" (mm)",1)],2),e.createElementVNode("tr",{class:e.normalizeClass(["hour",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("th",Ma,e.toDisplayString(t.locale==="zhHans"?"最小":"Min"),1),e.createElementVNode("th",_a,e.toDisplayString(t.locale==="zhHans"?"平均":"Mean"),1),e.createElementVNode("th",Ea,e.toDisplayString(t.locale==="zhHans"?"最大":"Max"),1),e.createElementVNode("th",va,e.toDisplayString(t.locale==="zhHans"?"方向":"Dir"),1),e.createElementVNode("th",La,e.toDisplayString(t.locale==="zhHans"?"平均速度":"Spd Mean")+" (kts)",1),e.createElementVNode("th",Va,e.toDisplayString(t.locale==="zhHans"?"平均等级":"BF Mean"),1),e.createElementVNode("th",Ha,e.toDisplayString(t.locale==="zhHans"?"最大速度":"Spd Max")+" (kts)",1),e.createElementVNode("th",Ca,e.toDisplayString(t.locale==="zhHans"?"最大等级":"BF Max"),1),e.createElementVNode("th",Ba,e.toDisplayString(t.locale==="zhHans"?"最大速度":"Spd Max")+" (kts)",1),e.createElementVNode("th",Aa,e.toDisplayString(t.locale==="zhHans"?"最大等级":"BF Max"),1),e.createElementVNode("th",Ta,e.toDisplayString(t.locale==="zhHans"?"累计":"Acc"),1)],2)],2),e.createElementVNode("tbody",{class:e.normalizeClass((I=t.reportData)!=null&&I.showSummary?"":"scroll")},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((T=t.reportData)==null?void 0:T.tableData,y=>(e.openBlock(),e.createElementBlock("tr",{key:Math.random()+y.localDate,class:e.normalizeClass(["text border-bottom",t.theme==="dark"?"dark":"light"])},[e.createElementVNode("td",Pa,e.toDisplayString(y.localDate),1),e.createElementVNode("td",Ia,e.toDisplayString((y==null?void 0:y.minTemp)??"-"),1),e.createElementVNode("td",Wa,e.toDisplayString((y==null?void 0:y.meanTemp)??"-"),1),e.createElementVNode("td",Oa,e.toDisplayString((y==null?void 0:y.maxTemp)??"-"),1),e.createElementVNode("td",Ra,[e.createTextVNode(e.toDisplayString((y==null?void 0:y.windDirection)||"-")+" ",1),!isNaN(y.windBearing)&&y.windDirection?(e.openBlock(),e.createElementBlock("img",{key:0,class:"iconfont icon",src:`data:image/svg+xml;base64,${i.getRotatedWindArrowBase64(y.windBearing,this.theme==="dark"?"rgba(159, 255, 126, 1)":"rgba(54, 212, 0, 1)")}`,style:{width:"11px",height:"11px",display:"inline-block"}},null,8,Ga)):(e.openBlock(),e.createElementBlock("span",$a,"-"))]),e.createElementVNode("td",ja,e.toDisplayString((y==null?void 0:y.meanWindSpeed)??"-"),1),e.createElementVNode("td",Ya,e.toDisplayString((y==null?void 0:y.meanWindBF)??"-"),1),e.createElementVNode("td",Ua,e.toDisplayString((y==null?void 0:y.maxWindSpeed)??"-"),1),e.createElementVNode("td",Za,e.toDisplayString((y==null?void 0:y.maxWindBF)??"-"),1),e.createElementVNode("td",qa,e.toDisplayString((y==null?void 0:y.maxGustSpeed)??"-"),1),e.createElementVNode("td",Ja,e.toDisplayString((y==null?void 0:y.maxGustBF)??"-"),1),e.createElementVNode("td",Xa,e.toDisplayString((y==null?void 0:y.precip)??"-"),1)],2))),128))],2)],2)]))])])],2)}const I1=Ie($0,[["render",Qa],["__scopeId","data-v-0c5657c8"]]),Ka={install(l){l.component("ForecastReport",T1),l.component("HistoricalReport",P1),l.component("SeasonalReport",I1)}},X4="",Q4="",e4={props:{tropicals:{type:Object,default:()=>({})},ts:{type:String,default:()=>""},container:{type:String,default:()=>""},zoom:{type:Number,default:()=>1}},components:{},data(){return{map:void 0,source:"tropicals-source",bboxSource:"tropicals-bbox-source",historyLayer:"tropicals-history-layer",forecastLayer:"tropicals-forecast-layer",bboxLayer:"tropicals-bbox-layer",interpolateData:void 0}},mounted(){this.initMap()},methods:{async initMap(){i1.accessToken="pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";const l=new i1.Map({container:this.container,style:{version:8,name:"light",metadata:{"mapbox:print":{width:8.5,height:11,units:"in",format:"png",resolution:300},"mapbox:type":"default","mapbox:trackposition":!0,"mapbox:autocomposite":!0,"mapbox:sdk-support":{android:"11.0.0",ios:"11.0.0",js:"3.0.0"},"mapbox:origin":"outdoors-v12","mapbox:groups":{"Terrain, terrain-labels":{name:"Terrain, terrain-labels",collapsed:!0},"Administrative boundaries, admin":{name:"Administrative boundaries, admin",collapsed:!0},"Land & water, built":{name:"Land & water, built",collapsed:!0},"Terrain, surface":{name:"Terrain, surface",collapsed:!0},"Land & water, land":{name:"Land & water, land",collapsed:!1},"Natural features, natural-labels":{name:"Natural features, natural-labels",collapsed:!0},e9bb8e77353431519f7918998e9079d9:{name:"Group",collapsed:!1},"Walking, cycling, etc., barriers-bridges":{name:"Walking, cycling, etc., barriers-bridges",collapsed:!0},"Place labels, place-labels":{name:"Place labels, place-labels",collapsed:!1},"Transit, ferries":{name:"Transit, ferries",collapsed:!0},"Transit, elevated":{name:"Transit, elevated",collapsed:!0},"Walking, cycling, etc., tunnels":{name:"Walking, cycling, etc., tunnels",collapsed:!0},"Terrain, land":{name:"Terrain, land",collapsed:!0},"Road network, tunnels-case":{name:"Road network, tunnels-case",collapsed:!0},"Walking, cycling, etc., walking-cycling-labels":{name:"Walking, cycling, etc., walking-cycling-labels",collapsed:!0},"Walking, cycling, etc., surface":{name:"Walking, cycling, etc., surface",collapsed:!0},"Road network, surface-icons":{name:"Road network, surface-icons",collapsed:!0},"Land & water, water":{name:"Land & water, water",collapsed:!1}}},center:[104.01743114258029,17.078999978347557],zoom:1.9133216316430233,bearing:0,pitch:0,lights:[],fog:{range:[.5,10]},sources:{composite:{url:"mapbox://mapbox.mapbox-streets-v8,mapbox.mapbox-terrain-v2,mapbox.mapbox-bathymetry-v2,mapbox.country-boundaries-v1,neatchenheng.d44z21eg,neatchenheng.82kqbc1q,neatchenheng.a4ifbysm,neatchenheng.27issko0,neatchenheng.9uwc9x7l,neatchenheng.7y3kpvvv,neatchenheng.dlkkohie",type:"vector"}},sprite:"mapbox://sprites/neatchenheng/cmd894dwn036m01rf7anc0k0d/bph0p8ithotzwly53az7lwdmv",glyphs:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",projection:{name:"equirectangular"},layers:[{id:"land",type:"background",layout:{},paint:{"background-color":"#e9ebed"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"}},{layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"},maxzoom:12,type:"fill",source:"composite",id:"landcover",paint:{"fill-color":["match",["get","class"],"wood","hsla(103, 50%, 60%, 0.8)","scrub","hsla(98, 47%, 68%, 0.6)","crop","hsla(68, 55%, 70%, 0.6)","grass","hsla(98, 50%, 74%, 0.6)","snow","hsl(205, 45%, 95%)","hsl(98, 48%, 67%)"],"fill-opacity":["interpolate",["exponential",1.5],["zoom"],8,.8,12,0],"fill-antialias":!1},"source-layer":"landcover"},{minzoom:5,layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"},filter:["==",["get","class"],"national_park"],type:"fill",source:"composite",id:"national-park",paint:{"fill-color":"hsl(98, 38%, 68%)","fill-opacity":["interpolate",["linear"],["zoom"],5,0,6,.6,12,.2]},"source-layer":"landuse_overlay"},{minzoom:9,layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"},filter:["==",["get","class"],"national_park"],type:"line",source:"composite",id:"national-park_tint-band",paint:{"line-color":"hsl(98, 38%, 68%)","line-width":["interpolate",["exponential",1.5],["zoom"],9,1,14,8],"line-blur":["interpolate",["exponential",1.5],["zoom"],9,1,14,8]},"source-layer":"landuse_overlay"},{minzoom:5,layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"},filter:["all",[">=",["to-number",["get","sizerank"]],0],["match",["get","class"],["agriculture","wood","grass","scrub","glacier","pitch","sand"],["step",["zoom"],!1,11,!0],"residential",["step",["zoom"],!0,10,!1],["park","airport"],["step",["zoom"],!1,8,["case",["==",["get","sizerank"],1],!0,!1],10,!0],["facility","industrial"],["step",["zoom"],!1,12,!0],"rock",["step",["zoom"],!1,11,!0],"cemetery",["step",["zoom"],!1,11,!0],"school",["step",["zoom"],!1,11,!0],"hospital",["step",["zoom"],!1,11,!0],"commercial_area",["step",["zoom"],!1,11,!0],!1],["<=",["-",["to-number",["get","sizerank"]],["interpolate",["exponential",1.5],["zoom"],12,0,18,14]],14]],type:"fill",source:"composite",id:"landuse",paint:{"fill-color":["interpolate",["linear"],["zoom"],15,["match",["get","class"],"wood","hsla(103, 50%, 60%, 0.8)","scrub","hsla(98, 47%, 68%, 0.6)","agriculture","hsla(98, 50%, 74%, 0.6)","park",["match",["get","type"],["garden","playground","zoo"],"hsl(98, 38%, 68%)","hsl(98, 55%, 70%)"],"grass","hsla(98, 50%, 74%, 0.6)","airport","hsl(230, 40%, 82%)","cemetery","hsl(98, 45%, 75%)","glacier","hsl(205, 45%, 95%)","hospital","hsl(20, 45%, 82%)","pitch","hsl(88, 65%, 75%)","sand","hsl(69, 60%, 72%)","rock","hsl(60, 0%, 85%)","school","hsl(40, 45%, 78%)","commercial_area","hsl(55, 45%, 85%)","residential","hsl(60, 7%, 87%)",["facility","industrial"],"hsl(230, 20%, 85%)","hsl(60, 12%, 72%)"],16,["match",["get","class"],"wood","hsla(103, 50%, 60%, 0.8)","scrub","hsla(98, 47%, 68%, 0.6)","agriculture","hsla(98, 50%, 74%, 0.6)","park",["match",["get","type"],["garden","playground","zoo"],"hsl(98, 38%, 68%)","hsl(98, 55%, 70%)"],"grass","hsla(98, 50%, 74%, 0.6)","airport","hsl(230, 40%, 82%)","cemetery","hsl(98, 45%, 75%)","glacier","hsl(205, 45%, 95%)","hospital","hsl(20, 45%, 82%)","pitch","hsl(88, 65%, 75%)","sand","hsl(69, 60%, 72%)","rock","hsla(60, 0%, 85%, 0.5)","school","hsl(40, 45%, 78%)","commercial_area","hsla(55, 45%, 85%, 0.5)",["facility","industrial"],"hsl(230, 20%, 85%)","hsl(60, 12%, 72%)"]],"fill-opacity":["interpolate",["linear"],["zoom"],8,["match",["get","class"],"residential",.8,.2],10,["match",["get","class"],"residential",0,1]],"fill-antialias":!1},"source-layer":"landuse"},{minzoom:15,layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, land"},filter:["==",["get","class"],"pitch"],type:"line",source:"composite",id:"pitch-outline",paint:{"line-color":"hsl(0, 0%, 69%)"},"source-layer":"landuse"},{id:"waterway-shadow",type:"line",source:"composite","source-layer":"waterway",minzoom:10,layout:{"line-cap":["step",["zoom"],"butt",11,"round"],"line-join":["step",["zoom"],"miter",11,"round"],visibility:"none"},paint:{"line-color":"hsl(224, 79%, 69%)","line-width":["interpolate",["exponential",1.3],["zoom"],9,["match",["get","class"],["canal","river"],.1,0],20,["match",["get","class"],["canal","river"],8,3]],"line-translate":["interpolate",["exponential",1.2],["zoom"],7,["literal",[0,0]],16,["literal",[-1,-1]]],"line-translate-anchor":"viewport","line-opacity":["interpolate",["linear"],["zoom"],8,0,8.5,1]},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"}},{id:"water-shadow",type:"fill",source:"composite","source-layer":"water",minzoom:10,layout:{visibility:"none"},paint:{"fill-color":"hsl(224, 79%, 69%)","fill-translate":["interpolate",["exponential",1.2],["zoom"],7,["literal",[0,0]],16,["literal",[-1,-1]]],"fill-translate-anchor":"viewport"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"}},{id:"waterway",type:"line",source:"composite","source-layer":"waterway",minzoom:8,layout:{"line-cap":["step",["zoom"],"butt",11,"round"],"line-join":["step",["zoom"],"miter",11,"round"]},paint:{"line-color":"hsl(198, 100%, 37%)","line-width":["interpolate",["exponential",1.3],["zoom"],9,["match",["get","class"],["canal","river"],.1,0],20,["match",["get","class"],["canal","river"],8,3]],"line-opacity":["interpolate",["linear"],["zoom"],8,0,8.5,1]},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"}},{id:"water",type:"fill",source:"composite","source-layer":"water",layout:{},paint:{"fill-color":"hsl(215, 92%, 81%)"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"}},{layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"},maxzoom:8,type:"fill",source:"composite",id:"water-depth",paint:{"fill-antialias":!1,"fill-color":["interpolate",["linear"],["zoom"],6,["interpolate",["linear"],["get","min_depth"],0,"hsla(205, 75%, 70%, 0.35)",200,"hsla(205, 75%, 63%, 0.35)",7e3,"hsla(205, 75%, 56%, 0.35)"],8,["interpolate",["linear"],["get","min_depth"],0,"hsla(205, 75%, 70%, 0)",200,"hsla(205, 75%, 63%, 0)",7e3,"hsla(205, 75%, 53%, 0)"]]},"source-layer":"depth"},{minzoom:5,layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"},filter:["match",["get","class"],["wetland","wetland_noveg"],!0,!1],type:"fill",source:"composite",id:"wetland",paint:{"fill-color":"hsl(194, 38%, 74%)","fill-opacity":["interpolate",["linear"],["zoom"],10,.25,10.5,.15]},"source-layer":"landuse_overlay"},{minzoom:5,layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, water"},filter:["match",["get","class"],["wetland","wetland_noveg"],!0,!1],type:"fill",source:"composite",id:"wetland-pattern",paint:{"fill-color":"hsl(194, 38%, 74%)","fill-opacity":["interpolate",["linear"],["zoom"],10,0,10.5,1],"fill-pattern":"wetland","fill-translate-anchor":"viewport"},"source-layer":"landuse_overlay"},{minzoom:13,layout:{visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, built"},filter:["all",["==",["get","class"],"land"],["==",["geometry-type"],"Polygon"]],type:"fill",source:"composite",id:"land-structure-polygon",paint:{"fill-color":"hsl(0, 0%, 69%)"},"source-layer":"structure"},{minzoom:13,layout:{"line-cap":"square",visibility:"none"},metadata:{"mapbox:featureComponent":"land-and-water","mapbox:group":"Land & water, built"},filter:["all",["==",["get","class"],"land"],["==",["geometry-type"],"LineString"]],type:"line",source:"composite",id:"land-structure-line",paint:{"line-width":["interpolate",["exponential",1.99],["zoom"],14,.75,20,40],"line-color":"hsl(60, 20%, 85%)"},"source-layer":"structure"},{id:"empty-layer-0",minzoom:0,maxzoom:22,type:"fill",paint:{"fill-color":"rgba(0, 0, 0, 0)"},layout:{},source:"composite","source-layer":"country_boundaries"},{id:"empty-layer-1",minzoom:0,maxzoom:22,type:"fill",paint:{"fill-color":"rgba(0, 0, 0, 0)"},layout:{},source:"composite","source-layer":"country_boundaries"},{id:"country-boundaries",type:"fill",source:"composite","source-layer":"country_boundaries",paint:{"fill-color":"rgb(200, 200, 200)"},layout:{visibility:"none"}},{id:"empty-layer-2",minzoom:0,maxzoom:22,type:"fill",paint:{"fill-color":"rgba(0, 0, 0, 0)"},layout:{},source:"composite","source-layer":"country_boundaries"},{id:"empty-layer-3",minzoom:0,maxzoom:22,type:"fill",paint:{"fill-color":"rgba(0, 0, 0, 0)"},layout:{},source:"composite","source-layer":"country_boundaries"},{id:"empty-layer-4",minzoom:0,maxzoom:22,type:"fill",paint:{"fill-color":"rgba(0, 0, 0, 0)"},layout:{},source:"composite","source-layer":"country_boundaries"},{id:"water-outline2",minzoom:0,maxzoom:22,type:"line",paint:{"line-color":"rgb(150, 150, 150)"},layout:{visibility:"none"},source:"composite","source-layer":"water"},{id:"water-outline",type:"line",paint:{"line-color":"hsl(0, 0%, 70%)","line-width":["interpolate",["linear"],["zoom"],0,1.5,4,1]},source:"composite","source-layer":"water"},{minzoom:1,layout:{},metadata:{"mapbox:featureComponent":"admin-boundaries","mapbox:group":"Administrative boundaries, admin"},filter:["all",["==",["get","admin_level"],0],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","CN"],!0,!1]],type:"line",source:"composite",id:"admin-0-boundary-bg",paint:{"line-width":["interpolate",["linear"],["zoom"],3,4,12,8],"line-color":"rgb(173, 169, 170)","line-opacity":["interpolate",["linear"],["zoom"],3,0,4,.5],"line-blur":["interpolate",["linear"],["zoom"],3,0,12,2]},"source-layer":"admin"},{minzoom:1,layout:{},metadata:{"mapbox:featureComponent":"admin-boundaries","mapbox:group":"Administrative boundaries, admin"},filter:["all",["==",["get","admin_level"],0],["==",["get","disputed"],"false"],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","CN"],!0,!1]],type:"line",source:"composite",id:"admin-0-boundary",paint:{"line-color":"rgb(143, 143, 143)","line-width":["interpolate",["linear"],["zoom"],3,.5,12,2],"line-dasharray":["step",["zoom"],["literal",[2,0]],7,["literal",[2,2,6,2]]]},"source-layer":"admin"},{minzoom:1,layout:{},metadata:{"mapbox:featureComponent":"admin-boundaries","mapbox:group":"Administrative boundaries, admin"},filter:["all",["==",["get","disputed"],"true"],["==",["get","admin_level"],0],["==",["get","maritime"],"false"],["match",["get","worldview"],["all","CN"],!0,!1]],type:"line",source:"composite",id:"admin-0-boundary-disputed",paint:{"line-color":"rgb(95, 93, 94)","line-width":["interpolate",["linear"],["zoom"],3,.5,12,2],"line-dasharray":["step",["zoom"],["literal",[3,2,5]],7,["literal",[2,1.5]]]},"source-layer":"admin"},{minzoom:13,layout:{"text-font":["DIN Pro Italic","Arial Unicode MS Regular"],"text-max-angle":30,"symbol-spacing":["interpolate",["linear",1],["zoom"],15,250,17,400],"text-size":["interpolate",["linear"],["zoom"],13,12,18,18],"symbol-placement":"line","text-pitch-alignment":"viewport","text-field":["coalesce",["get","name_en"],["get","name"]]},metadata:{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"},filter:["all",["match",["get","class"],["canal","river","stream","disputed_canal","disputed_river","disputed_stream"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["step",["pitch"],!0,50,["<",["distance-from-center"],1],60,["<",["distance-from-center"],1.5],70,["<",["distance-from-center"],2]],["==",["geometry-type"],"LineString"]],type:"symbol",source:"composite",id:"waterway-label",paint:{"text-color":"hsl(205, 43%, 90%)","text-halo-color":"hsla(60, 17%, 84%, 0.5)"},"source-layer":"natural_label"},{minzoom:4,layout:{"text-size":["step",["zoom"],["step",["get","sizerank"],18,5,12],17,["step",["get","sizerank"],18,13,12]],"text-max-angle":30,"text-field":["coalesce",["get","name_en"],["get","name"]],"text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"symbol-placement":"line-center","text-pitch-alignment":"viewport"},metadata:{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"},filter:["all",["match",["get","class"],["glacier","landform","disputed_glacier","disputed_landform"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["<=",["get","filterrank"],4],["step",["pitch"],!0,50,["<",["distance-from-center"],1],60,["<",["distance-from-center"],1.5],70,["<",["distance-from-center"],2]],["==",["geometry-type"],"LineString"]],type:"symbol",source:"composite",id:"natural-line-label",paint:{"text-halo-width":.5,"text-halo-color":"hsl(60, 17%, 84%)","text-halo-blur":.5,"text-color":"hsl(340, 10%, 38%)"},"source-layer":"natural_label"},{minzoom:4,layout:{"text-size":["step",["zoom"],["step",["get","sizerank"],18,5,12],17,["step",["get","sizerank"],18,13,12]],"icon-image":["case",["has","maki_beta"],["coalesce",["image",["get","maki_beta"]],["image",["get","maki"]]],["image",["get","maki"]]],"text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-offset":["step",["zoom"],["step",["get","sizerank"],["literal",[0,0]],5,["literal",[0,.8]]],17,["step",["get","sizerank"],["literal",[0,0]],13,["literal",[0,.8]]]],"text-anchor":["step",["zoom"],["step",["get","sizerank"],"center",5,"top"],17,["step",["get","sizerank"],"center",13,"top"]],"text-field":["coalesce",["get","name_en"],["get","name"]]},metadata:{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"},filter:["all",["match",["get","class"],["dock","glacier","landform","water_feature","wetland","disputed_dock","disputed_glacier","disputed_landform","disputed_water_feature","disputed_wetland"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["<=",["get","filterrank"],4],["step",["pitch"],!0,50,["<",["distance-from-center"],1],60,["<",["distance-from-center"],1.5],70,["<",["distance-from-center"],2]],["==",["geometry-type"],"Point"]],type:"symbol",source:"composite",id:"natural-point-label",paint:{"icon-opacity":["step",["zoom"],["step",["get","sizerank"],0,5,1],17,["step",["get","sizerank"],0,13,1]],"text-halo-color":"hsl(60, 20%, 98%)","text-halo-width":.5,"text-halo-blur":.5,"text-color":"hsl(340, 10%, 38%)"},"source-layer":"natural_label"},{minzoom:1,layout:{"text-size":["interpolate",["linear"],["zoom"],0,["*",["-",16,["sqrt",["get","sizerank"]]],1],22,["*",["-",22,["sqrt",["get","sizerank"]]],1]],"text-max-angle":30,"text-letter-spacing":["match",["get","class"],"ocean",.25,["sea","bay"],.15,0],"text-font":["DIN Pro Italic","Arial Unicode MS Regular"],"symbol-placement":"line-center","text-pitch-alignment":"viewport","text-field":["coalesce",["get","name_en"],["get","name"]]},metadata:{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"},filter:["all",["match",["get","class"],["bay","ocean","reservoir","sea","water","disputed_bay","disputed_ocean","disputed_reservoir","disputed_sea","disputed_water"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["step",["pitch"],!0,50,["<",["distance-from-center"],1],60,["<",["distance-from-center"],1.5],70,["<",["distance-from-center"],2]],["==",["geometry-type"],"LineString"]],type:"symbol",source:"composite",id:"water-line-label",paint:{"text-color":["match",["get","class"],["bay","ocean","sea"],"hsl(205, 71%, 90%)","hsl(205, 43%, 90%)"],"text-halo-color":"hsla(60, 17%, 84%, 0.5)"},"source-layer":"natural_label"},{minzoom:1,layout:{"text-line-height":1.3,"text-size":["interpolate",["linear"],["zoom"],0,["*",["-",16,["sqrt",["get","sizerank"]]],1],22,["*",["-",22,["sqrt",["get","sizerank"]]],1]],"text-font":["DIN Pro Italic","Arial Unicode MS Regular"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-letter-spacing":["match",["get","class"],"ocean",.25,["bay","sea"],.15,.01],"text-max-width":["match",["get","class"],"ocean",4,"sea",5,["bay","water"],7,10]},metadata:{"mapbox:featureComponent":"natural-features","mapbox:group":"Natural features, natural-labels"},filter:["all",["match",["get","class"],["bay","ocean","reservoir","sea","water","disputed_bay","disputed_ocean","disputed_reservoir","disputed_sea","disputed_water"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["step",["pitch"],!0,50,["<",["distance-from-center"],1],60,["<",["distance-from-center"],1.5],70,["<",["distance-from-center"],2]],["==",["geometry-type"],"Point"]],type:"symbol",source:"composite",id:"water-point-label",paint:{"text-color":["match",["get","class"],["bay","ocean","sea"],"hsl(205, 71%, 90%)","hsl(205, 43%, 90%)"],"text-halo-color":"hsla(60, 17%, 84%, 0.5)"},"source-layer":"natural_label"},{minzoom:10,layout:{"text-field":["coalesce",["get","name_en"],["get","name"]],"text-transform":"uppercase","text-font":["DIN Pro Regular","Arial Unicode MS Regular"],"text-letter-spacing":["match",["get","type"],"suburb",.15,.05],"text-max-width":7,"text-padding":3,"text-size":["interpolate",["cubic-bezier",.5,0,1,1],["zoom"],11,["match",["get","type"],"suburb",11,10.5],15,["match",["get","type"],"suburb",15,14]],visibility:"none"},metadata:{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"},maxzoom:15,filter:["all",["match",["get","class"],["settlement_subdivision","disputed_settlement_subdivision"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["<=",["get","filterrank"],3],["step",["pitch"],!0,50,["<",["distance-from-center"],3],60,["<",["distance-from-center"],4],70,["<",["distance-from-center"],5]]],type:"symbol",source:"composite",id:"settlement-subdivision-label",paint:{"text-halo-color":"hsla(60, 25%, 100%, 0.75)","text-halo-width":1,"text-color":"hsl(230, 29%, 36%)","text-halo-blur":.5},"source-layer":"place_label"},{minzoom:2,layout:{"text-line-height":1.1,"text-size":["interpolate",["cubic-bezier",.2,0,.9,1],["zoom"],3,["step",["get","symbolrank"],11,9,10],6,["step",["get","symbolrank"],14,9,12,12,10],8,["step",["get","symbolrank"],16,9,14,12,12,15,10],13,["step",["get","symbolrank"],22,9,20,12,16,15,14]],"text-radial-offset":["step",["zoom"],["match",["get","capital"],2,.6,.55],8,0],"symbol-sort-key":["get","symbolrank"],"icon-image":["step",["zoom"],["case",["==",["get","capital"],2],"border-dot-13",["step",["get","symbolrank"],"dot-11",9,"dot-10",11,"dot-9"]],8,""],"text-font":["DIN Pro Regular","Arial Unicode MS Regular"],"text-justify":"auto",visibility:"none","text-anchor":["step",["zoom"],["get","text_anchor"],8,"center"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-max-width":7},metadata:{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"},maxzoom:13,filter:["all",["<=",["get","filterrank"],3],["match",["get","class"],["settlement","disputed_settlement"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["step",["zoom"],[">",["get","symbolrank"],6],4,[">=",["get","symbolrank"],7],6,[">=",["get","symbolrank"],8],7,[">=",["get","symbolrank"],10],10,[">=",["get","symbolrank"],11],11,[">=",["get","symbolrank"],13],12,[">=",["get","symbolrank"],15]],["step",["pitch"],!0,50,["<",["distance-from-center"],3],60,["<",["distance-from-center"],4],70,["<",["distance-from-center"],5]]],type:"symbol",source:"composite",id:"settlement-minor-label",paint:{"text-color":"hsl(230, 29%, 0%)","text-halo-color":"hsl(60, 25%, 100%)","text-halo-width":1,"text-halo-blur":1},"source-layer":"place_label"},{minzoom:2,layout:{"text-line-height":1.1,"text-size":["interpolate",["cubic-bezier",.2,0,.9,1],["zoom"],3,["step",["get","symbolrank"],13,6,11],6,["step",["get","symbolrank"],18,6,16,7,14],8,["step",["get","symbolrank"],20,9,16,10,14],15,["step",["get","symbolrank"],24,9,20,12,16,15,14]],"text-radial-offset":["step",["zoom"],["match",["get","capital"],2,.6,.55],8,0],"symbol-sort-key":["get","symbolrank"],"icon-image":["step",["zoom"],["case",["==",["get","capital"],2],"border-dot-13",["step",["get","symbolrank"],"dot-11",9,"dot-10",11,"dot-9"]],8,""],"text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-justify":["step",["zoom"],["match",["get","text_anchor"],["left","bottom-left","top-left"],"left",["right","bottom-right","top-right"],"right","center"],8,"center"],visibility:"none","text-anchor":["step",["zoom"],["get","text_anchor"],8,"center"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-max-width":7},metadata:{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"},maxzoom:15,filter:["all",["<=",["get","filterrank"],3],["match",["get","class"],["settlement","disputed_settlement"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["step",["zoom"],!1,2,["<=",["get","symbolrank"],6],4,["<",["get","symbolrank"],7],6,["<",["get","symbolrank"],8],7,["<",["get","symbolrank"],10],10,["<",["get","symbolrank"],11],11,["<",["get","symbolrank"],13],12,["<",["get","symbolrank"],15],13,[">=",["get","symbolrank"],11],14,[">=",["get","symbolrank"],15]],["step",["pitch"],!0,50,["<",["distance-from-center"],3],60,["<",["distance-from-center"],4],70,["<",["distance-from-center"],5]]],type:"symbol",source:"composite",id:"settlement-major-label",paint:{"text-color":"hsl(230, 29%, 0%)","text-halo-color":"hsl(60, 25%, 100%)","text-halo-width":1,"text-halo-blur":1},"source-layer":"place_label"},{minzoom:3,layout:{"text-size":["interpolate",["cubic-bezier",.85,.7,.65,1],["zoom"],4,["step",["get","symbolrank"],9,6,8,7,7],9,["step",["get","symbolrank"],21,6,16,7,14]],"text-transform":"uppercase","text-font":["DIN Pro Bold","Arial Unicode MS Bold"],"text-field":["coalesce",["get","name_en"],["get","name"]],"text-letter-spacing":.15,"text-max-width":6},metadata:{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"},maxzoom:9,filter:["all",["match",["get","class"],["state","disputed_state"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["step",["pitch"],!0,50,["<",["distance-from-center"],3],60,["<",["distance-from-center"],4],70,["<",["distance-from-center"],5]]],type:"symbol",source:"composite",id:"state-label",paint:{"text-color":"hsl(230, 29%, 0%)","text-halo-color":"hsl(60, 25%, 100%)","text-halo-width":1,"text-opacity":.5},"source-layer":"place_label"},{minzoom:1,layout:{"text-field":["coalesce",["get","name_en"],["get","name"]],"text-line-height":1.1,"text-max-width":6,"text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-radial-offset":["step",["zoom"],.6,8,0],"text-justify":["step",["zoom"],["match",["get","text_anchor"],["left","bottom-left","top-left"],"left",["right","bottom-right","top-right"],"right","center"],7,"auto"],"text-size":["interpolate",["cubic-bezier",.2,0,.7,1],["zoom"],1,["step",["get","symbolrank"],12.100000000000001,4,9.9,5,8.8],9,["step",["get","symbolrank"],24.200000000000003,4,20.900000000000002,5,18.700000000000003]]},metadata:{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"},maxzoom:10,filter:["all",["match",["get","class"],["country","disputed_country"],["match",["get","worldview"],["all","CN"],!0,!1],!1],["step",["pitch"],!0,50,["<",["distance-from-center"],3],60,["<",["distance-from-center"],4],70,["<",["distance-from-center"],5]]],type:"symbol",source:"composite",id:"country-label",paint:{"icon-opacity":["step",["zoom"],["case",["has","text_anchor"],1,0],7,0],"text-color":"hsl(0, 0.00%, 13.70%)","text-halo-color":["interpolate",["linear"],["zoom"],2,"hsla(60, 25%, 100%, 0.75)",3,"hsl(60, 25%, 100%)"],"text-halo-width":1.25},"source-layer":"place_label"},{minzoom:.75,layout:{"text-field":["coalesce",["get","name_en"],["get","name"]],"text-line-height":1.1,"text-max-width":6,"text-font":["DIN Pro Medium","Arial Unicode MS Regular"],"text-size":["interpolate",["exponential",.5],["zoom"],0,10,2.5,15],"text-transform":"uppercase","text-letter-spacing":.05},metadata:{"mapbox:featureComponent":"place-labels","mapbox:group":"Place labels, place-labels"},maxzoom:3,filter:["==",["get","class"],"continent"],type:"symbol",source:"composite",id:"continent-label",paint:{"text-color":"hsl(230, 29%, 0%)","text-halo-color":["interpolate",["linear"],["zoom"],0,"hsla(60, 25%, 100%, 0.75)",3,"hsl(60, 25%, 100%)"],"text-halo-width":1.5,"text-opacity":["interpolate",["linear"],["zoom"],0,.8,1.5,.5,2.5,0]},"source-layer":"natural_label"},{id:"world-12nm-v4-20231025",minzoom:3,type:"line",paint:{"line-color":"hsl(2, 88%, 55%)","line-opacity":.62,"line-width":["interpolate",["linear"],["zoom"],0,2,22,2],"line-translate":[0,0]},source:"composite","source-layer":"eez_12nm_new1-6jzkww",layout:{"line-join":"round",visibility:"none"}},{id:"china-taiwan",type:"line",paint:{"line-color":"hsl(2, 88%, 55%)","line-opacity":.62,"line-width":["interpolate",["linear"],["zoom"],0,2,22,2]},layout:{"line-join":"round",visibility:"none"},source:"composite","source-layer":"eez-d4udtm"},{id:"ne-10m-outline",type:"line",paint:{"line-color":"hsl(172, 0%, 33%)"},source:"composite","source-layer":"ne_10m_geography_marine_polys-3968bv",layout:{visibility:"none"}},{id:"ne-10m-label",type:"symbol",paint:{"text-halo-color":"hsl(0, 0%, 100%)","text-halo-width":1,"text-halo-blur":1},layout:{"text-field":["to-string",["get","name"]],"text-size":12,visibility:"none"},source:"composite","source-layer":"ne_10m_geography_marine_polys-3968bv"},{id:"china-route-line",type:"line",paint:{"line-color":"rgba(119, 239, 157, 1)","line-width":2},source:"composite","source-layer":"china_route-bdtx5d",layout:{visibility:"none"}},{id:"china-route-fill",type:"fill",paint:{"fill-color":"rgba(119, 239, 157, 1)","fill-opacity":.2},source:"composite","source-layer":"china_route-bdtx5d",filter:["match",["get","featureType"],["route"],!0,!1],layout:{visibility:"none"}},{id:"china-route-label",type:"symbol",paint:{"text-color":"rgba(0, 0, 0, 1)"},source:"composite","source-layer":"china_route-bdtx5d",layout:{"text-field":["to-string",["get","RouteName"]],"text-size":10,"text-offset":[0,1.6],visibility:"none"}},{id:"ice-area-fill",minzoom:0,maxzoom:22,type:"fill",paint:{"fill-color":"rgba(199, 239, 236, 0.7)"},source:"composite","source-layer":"ICE_AREA-6oqazd",layout:{visibility:"none"}},{id:"ice-area-line",minzoom:0,maxzoom:22,type:"line",paint:{"line-color":"rgba(199, 239, 236, 1)"},layout:{visibility:"none"},source:"composite","source-layer":"ICE_AREA-6oqazd"},{id:"tide-stations",minzoom:0,maxzoom:22,type:"symbol",paint:{"text-color":"rgb(0, 0, 0)","text-opacity":["step",["zoom"],0,4,1]},layout:{visibility:"none","text-field":["to-string",["get","Location_EN"]],"text-size":10,"icon-image":"tide","icon-size":1,"icon-offset":[0,-13],"text-offset":[0,1.6],"text-font":["DIN Pro Regular","Arial Unicode MS Regular"]},source:"composite","source-layer":"tide_station_cn-8xvt91"},{id:"loadlines-label",minzoom:0,maxzoom:22,type:"symbol",paint:{"text-color":"rgb(0, 0, 0)"},layout:{"text-field":["to-string",["get","name"]],"text-size":10,"text-font":["DIN Pro Regular","Arial Unicode MS Regular"],visibility:"none","text-offset":[0,1]},source:"composite","source-layer":"loadlines-b6mgr8"},{id:"loadlines-fill",minzoom:0,maxzoom:22,type:"fill",paint:{"fill-color":["match",["get","val"],["LLGreen"],"rgba(164, 214, 217, 0.6)",["LLBlue"],"rgba(53, 121, 194, 0.6)",["LLRed"],"rgba(217, 150, 151, 0.6)",["LLSUMMER"],"rgba(111, 110, 212, 0.6)","rgba(255, 255, 255, 0.6)"],"fill-outline-color":"rgba(255, 255, 255, 0.3)"},layout:{visibility:"none"},source:"composite","source-layer":"loadlines-b6mgr8"}],created:"2025-07-18T03:20:31.079Z",modified:"2025-07-31T03:57:21.238Z",id:"cmd894dwn036m01rf7anc0k0d",owner:"neatchenheng",visibility:"private",protected:!1,draft:!1},zoom:this.zoom,center:this.tropicals.center||[120,30],preserveDrawingBuffer:!0,projection:"mercator",attributionControl:!1,dragPan:!1});l.on("load",()=>{var a;this.map=l,this.map.scrollZoom.disable(),(a=this.tropicals)!=null&&a.data&&(this.handleSetCenterAndBbox(),this.handleRenderTropcals(),this.handleDrawHurricaneMarker())})},handleSetCenterAndBbox(){var s,n,i;const l=[];(i=(n=(s=this.tropicals)==null?void 0:s.data)==null?void 0:n.features)==null||i.forEach(c=>{var m,d,p,u;((m=c==null?void 0:c.properties)==null?void 0:m.type)==="forecast"&&!c.properties.disabled&&(((d=c==null?void 0:c.geometry)==null?void 0:d.type)==="LineString"?l.push(...(p=c==null?void 0:c.geometry)==null?void 0:p.coordinates):l.push((u=c==null?void 0:c.geometry)==null?void 0:u.coordinates))});const a=re.LaneHelper.calculateCenter([l]);this.map.setCenter(a);let t=re.LaneHelper.calculateBBox([l]);this.map.fitScreenCoordinates(this.map.project([t[0]-10,t[1]-10]),this.map.project([t[2]+10,t[3]+10]),this.map.getBearing()),this.map.addSource(this.bboxSource,{type:"geojson",data:{type:"Feature",geometry:{type:"LineString",coordinates:[[t[0]-5,t[1]-5],[t[2]+5,t[1]-5],[t[2]+5,t[3]+5],[t[0]-5,t[3]+5],[t[0]-5,t[1]-5]]}}}),this.map.addLayer({id:this.bboxLayer,type:"line",source:this.bboxSource,layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"rgba(0,0,0,0.6)","line-width":1,"line-opacity":1,"line-dasharray":[2,2]}})},handleRenderTropcals(){var l,a,t,s,n;if(this.tropicals){const i=new Date().valueOf();let c=0,m=0;(l=this.map)!=null&&l.getSource(this.source)?((t=this.map)==null||t.getSource(this.source).setData((a=this.tropicals)!=null&&a.active?this.tropicals.data:this.empty),m=new Date().valueOf()-(i+c),console.log("[tropicals] update elapsed: ",m,", total: ",c+=m)):(this.map.addSource(this.source,{type:"geojson",data:(s=this.tropicals)!=null&&s.active?(n=this.tropicals)==null?void 0:n.data:this.empty}),this.map.addLayer({id:this.historyLayer,type:"line",source:this.source,filter:["all",["==","$type","LineString"],["==","type","history"],["!=","disabled",!0]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":"#000","line-width":4,"line-opacity":.5}}),this.map.addLayer({id:this.forecastLayer,type:"line",source:this.source,filter:["all",["==","$type","LineString"],["==","type","forecast"],["!=","disabled",!0]],layout:{"line-cap":"round","line-join":"round"},paint:{"line-color":["match",["get","model"],"cma","#e2ea03","jma","#01d2b7","ecmwf","#f582f2","ukm","#f5bb47","noaa-at","#9758fb","noaa-ep","#9758fb","#f2a0a0"],"line-width":3,"line-opacity":1,"line-dasharray":[1,2]}}))}},handleDrawHurricaneMarker(){var s,n,i,c,m,d,p,u,b,f,v,E,_,N,k,D,x,L,S,R,C,z,I,T;const l=re.TropicalHelper.interpolate(this.tropicals,1),a=JSON.parse(JSON.stringify(l)),t=[];if(a.forEach(y=>{var F,V,o;(F=y.properties)!=null&&F.name&&!t.includes((V=y.properties)==null?void 0:V.name)&&t.push((o=y.properties)==null?void 0:o.name)}),t.forEach(y=>{var o;const V=(o=a.filter(W=>{var h;return((h=W.properties)==null?void 0:h.name)===y})[0])==null?void 0:o.properties.model;a.map((W,h)=>{var j,Y;return((j=W.properties)==null?void 0:j.name)===y&&(W.properties.disabled=((Y=W.properties)==null?void 0:Y.model)!==V),W})}),this.interpolateData=JSON.parse(JSON.stringify(a)),(s=this.interpolateMarkers)==null||s.forEach(y=>y==null?void 0:y.remove()),this.interpolateMarkers=[],(n=this.interpolateData)!=null&&n.length&&this.tropicals.active){const y=this.interpolateData.filter(F=>F.properties.date===this.ts&&!F.properties.disabled);this.interpolateData.forEach(F=>{});for(const F of y)if(!F.properties.disabled){let V="#f44336";((c=(i=F.properties)==null?void 0:i.wind)==null?void 0:c.kts)<32||!((d=(m=F.properties)==null?void 0:m.wind)!=null&&d.kts)?V="#03f869":((u=(p=F.properties)==null?void 0:p.wind)==null?void 0:u.kts)>=32&&((f=(b=F.properties)==null?void 0:b.wind)==null?void 0:f.kts)<47?V="#f2f202":((E=(v=F.properties)==null?void 0:v.wind)==null?void 0:E.kts)>=47&&((N=(_=F.properties)==null?void 0:_.wind)==null?void 0:N.kts)<63?V="#ff9100":((D=(k=F.properties)==null?void 0:k.wind)==null?void 0:D.kts)>=63&&((L=(x=F.properties)==null?void 0:x.wind)==null?void 0:L.kts)<79?V="#f44336":((R=(S=F.properties)==null?void 0:S.wind)==null?void 0:R.kts)>=79&&((z=(C=F.properties)==null?void 0:C.wind)==null?void 0:z.kts)<94?V="#f903d0":((T=(I=F.properties)==null?void 0:I.wind)==null?void 0:T.kts)>=94?V="#8702f9":V="#f44336";const o=`<svg t="1719918955501"
194
194
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
195
195
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
196
196
  <path