@idmui/basic 0.7.4 → 0.7.6

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.
@@ -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"},U0={class:"col",style:{width:"54%"}},Y0={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"}},Ua={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Ya={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",U0,[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",Y0,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",Ua,e.toDisplayString((y==null?void 0:y.meanWindBF)??"-"),1),e.createElementVNode("td",Ya,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","#fff"],"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,U;return((j=W.properties)==null?void 0:j.name)===y&&(W.properties.disabled=((U=W.properties)==null?void 0:U.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="#c604a4":((T=(I=F.properties)==null?void 0:I.wind)==null?void 0:T.kts)>=94?V="#6b05bb":V="#f44336";const o=`<svg t="1719918955501"
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"},U0={class:"col",style:{width:"54%"}},Y0={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"}},Ua={rowspan:"1",colspan:"1",class:"border",style:{width:"109px"}},Ya={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",U0,[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",Y0,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",Ua,e.toDisplayString((y==null?void 0:y.meanWindBF)??"-"),1),e.createElementVNode("td",Ya,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,U;return((j=W.properties)==null?void 0:j.name)===y&&(W.properties.disabled=((U=W.properties)==null?void 0:U.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
@@ -204,7 +204,7 @@
204
204
  <path
205
205
  d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
206
206
  fill="#ffffff" p-id="18386"></path>
207
- </svg>`,W=document.createElement("div");W.className="hurricane-hourly-marker-simple",W.innerHTML=`<div class="${F.geometry.coordinates[1]>=0?"center north":"center south"}">${o}</div>`;const h=new i1.Marker(W).setLngLat(F.geometry.coordinates).addTo(this.map);this.interpolateMarkers.push(h)}}}}};function t4(l,a,t,s,n,i){return null}const a4=Ie(e4,[["render",t4]]);var Fe=63710088e-1,l4={centimeters:Fe*100,centimetres:Fe*100,degrees:Fe/111325,feet:Fe*3.28084,inches:Fe*39.37,kilometers:Fe/1e3,kilometres:Fe/1e3,meters:Fe,metres:Fe,miles:Fe/1609.344,millimeters:Fe*1e3,millimetres:Fe*1e3,nauticalmiles:Fe/1852,radians:1,yards:Fe*1.0936};function S1(l,a,t){t===void 0&&(t={});var s={type:"Feature"};return(t.id===0||t.id)&&(s.id=t.id),t.bbox&&(s.bbox=t.bbox),s.properties=a||{},s.geometry=l,s}function o4(l,a,t){if(t===void 0&&(t={}),!l)throw new Error("coordinates is required");if(!Array.isArray(l))throw new Error("coordinates must be an Array");if(l.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!O1(l[0])||!O1(l[1]))throw new Error("coordinates must contain numbers");var s={type:"Point",coordinates:l};return S1(s,a,t)}function E1(l,a,t){t===void 0&&(t={});for(var s=0,n=l;s<n.length;s++){var i=n[s];if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var c=0;c<i[i.length-1].length;c++)if(i[i.length-1][c]!==i[0][c])throw new Error("First and last Position are not equivalent.")}var m={type:"Polygon",coordinates:l};return S1(m,a,t)}function M1(l,a,t){if(t===void 0&&(t={}),l.length<2)throw new Error("coordinates must be an array of two or more positions");var s={type:"LineString",coordinates:l};return S1(s,a,t)}function v1(l,a){a===void 0&&(a={});var t={type:"FeatureCollection"};return a.id&&(t.id=a.id),a.bbox&&(t.bbox=a.bbox),t.features=l,t}function i4(l,a,t){t===void 0&&(t={});var s={type:"MultiPolygon",coordinates:l};return S1(s,a,t)}function s4(l,a){a===void 0&&(a="kilometers");var t=l4[a];if(!t)throw new Error(a+" units is invalid");return l/t}function W1(l){var a=l%(2*Math.PI);return a*180/Math.PI}function L1(l){var a=l%360;return a*Math.PI/180}function O1(l){return!isNaN(l)&&l!==null&&!Array.isArray(l)}function R1(l,a,t){if(l!==null)for(var s,n,i,c,m,d,p,u=0,b=0,f,v=l.type,E=v==="FeatureCollection",_=v==="Feature",N=E?l.features.length:1,k=0;k<N;k++){p=E?l.features[k].geometry:_?l.geometry:l,f=p?p.type==="GeometryCollection":!1,m=f?p.geometries.length:1;for(var D=0;D<m;D++){var x=0,L=0;if(c=f?p.geometries[D]:p,c!==null){d=c.coordinates;var S=c.type;switch(u=t&&(S==="Polygon"||S==="MultiPolygon")?1:0,S){case null:break;case"Point":if(a(d,b,k,x,L)===!1)return!1;b++,x++;break;case"LineString":case"MultiPoint":for(s=0;s<d.length;s++){if(a(d[s],b,k,x,L)===!1)return!1;b++,S==="MultiPoint"&&x++}S==="LineString"&&x++;break;case"Polygon":case"MultiLineString":for(s=0;s<d.length;s++){for(n=0;n<d[s].length-u;n++){if(a(d[s][n],b,k,x,L)===!1)return!1;b++}S==="MultiLineString"&&x++,S==="Polygon"&&L++}S==="Polygon"&&x++;break;case"MultiPolygon":for(s=0;s<d.length;s++){for(L=0,n=0;n<d[s].length;n++){for(i=0;i<d[s][n].length-u;i++){if(a(d[s][n][i],b,k,x,L)===!1)return!1;b++}L++}x++}break;case"GeometryCollection":for(s=0;s<c.geometries.length;s++)if(R1(c.geometries[s],a,t)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function V1(l){var a=[1/0,1/0,-1/0,-1/0];return R1(l,function(t){a[0]>t[0]&&(a[0]=t[0]),a[1]>t[1]&&(a[1]=t[1]),a[2]<t[0]&&(a[2]=t[0]),a[3]<t[1]&&(a[3]=t[1])}),a}V1.default=V1;function r4(l){if(!l)throw new Error("coord is required");if(!Array.isArray(l)){if(l.type==="Feature"&&l.geometry!==null&&l.geometry.type==="Point")return l.geometry.coordinates;if(l.type==="Point")return l.coordinates}if(Array.isArray(l)&&l.length>=2&&!Array.isArray(l[0])&&!Array.isArray(l[1]))return l;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function n4(l){if(Array.isArray(l))return l;if(l.type==="Feature"){if(l.geometry!==null)return l.geometry.coordinates}else if(l.coordinates)return l.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function c4(l){return l.type==="Feature"?l.geometry:l}function d4(l){if(!l)throw new Error("geojson is required");switch(l.type){case"Feature":return G1(l);case"FeatureCollection":return h4(l);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return H1(l);default:throw new Error("unknown GeoJSON type")}}function G1(l){var a={type:"Feature"};return Object.keys(l).forEach(function(t){switch(t){case"type":case"properties":case"geometry":return;default:a[t]=l[t]}}),a.properties=$1(l.properties),a.geometry=H1(l.geometry),a}function $1(l){var a={};return l&&Object.keys(l).forEach(function(t){var s=l[t];typeof s=="object"?s===null?a[t]=null:Array.isArray(s)?a[t]=s.map(function(n){return n}):a[t]=$1(s):a[t]=s}),a}function h4(l){var a={type:"FeatureCollection"};return Object.keys(l).forEach(function(t){switch(t){case"type":case"features":return;default:a[t]=l[t]}}),a.features=l.features.map(function(t){return G1(t)}),a}function H1(l){var a={type:l.type};return l.bbox&&(a.bbox=l.bbox),l.type==="GeometryCollection"?(a.geometries=l.geometries.map(function(t){return H1(t)}),a):(a.coordinates=j1(l.coordinates),a)}function j1(l){var a=l;return typeof a[0]!="object"?a.slice():a.map(function(t){return j1(t)})}function C1(l,a,t,s){s===void 0&&(s={});var n=r4(l),i=L1(n[0]),c=L1(n[1]),m=L1(t),d=s4(a,s.units),p=Math.asin(Math.sin(c)*Math.cos(d)+Math.cos(c)*Math.sin(d)*Math.cos(m)),u=i+Math.atan2(Math.sin(m)*Math.sin(d)*Math.cos(c),Math.cos(d)-Math.sin(c)*Math.sin(p)),b=W1(u),f=W1(p);return o4([b,f],s.properties)}function m4(l,a,t){t===void 0&&(t={});for(var s=t.steps||64,n=t.properties?t.properties:!Array.isArray(l)&&l.type==="Feature"&&l.properties?l.properties:{},i=[],c=0;c<s;c++)i.push(C1(l,a,c*-360/s,t).geometry.coordinates);return i.push(i[0]),E1([i],n)}function _1(l,a,t,s,n){n===void 0&&(n={});var i=n.steps||64,c=U1(t),m=U1(s),d=!Array.isArray(l)&&l.type==="Feature"?l.properties:{};if(c===m)return M1(m4(l,a,n).geometry.coordinates[0],d);for(var p=c,u=c<m?m:m+360,b=p,f=[],v=0;b<u;)f.push(C1(l,a,b,n).geometry.coordinates),v++,b=p+v*360/i;return b>u&&f.push(C1(l,a,u,n).geometry.coordinates),M1(f,d)}function U1(l){var a=l%360;return a<0&&(a+=360),a}function p4(l,a){a===void 0&&(a={});var t,s,n,i=a.properties,c=(t=a.autoComplete)!==null&&t!==void 0?t:!0,m=(s=a.orderCoords)!==null&&s!==void 0?s:!0,d=(n=a.mutate)!==null&&n!==void 0?n:!1;switch(d||(l=d4(l)),l.type){case"FeatureCollection":var p=[];return l.features.forEach(function(u){p.push(n4(Y1(u,{},c,m)))}),i4(p,i);default:return Y1(l,i,c,m)}}function Y1(l,a,t,s){a=a||(l.type==="Feature"?l.properties:{});var n=c4(l),i=n.coordinates,c=n.type;if(!i.length)throw new Error("line must contain coordinates");switch(c){case"LineString":return t&&(i=Z1(i)),E1([i],a);case"MultiLineString":var m=[],d=0;return i.forEach(function(p){if(t&&(p=Z1(p)),s){var u=g4(V1(M1(p)));u>d?(m.unshift(p),d=u):m.push(p)}else m.push(p)}),E1(m,a);default:throw new Error("geometry type "+c+" is not supported")}}function Z1(l){var a=l[0],t=a[0],s=a[1],n=l[l.length-1],i=n[0],c=n[1];return(t!==i||s!==c)&&l.push(a),l}function g4(l){var a=l[0],t=l[1],s=l[2],n=l[3];return Math.abs(a-s)*Math.abs(t-n)}const K4="",y4={name:"TropicalMapbox",props:{token:{type:String,default:()=>""},tropicals:{type:Object,default:()=>({})},ts:{type:String,default:()=>""},container:{type:String,default:()=>""},zoom:{type:Number,default:()=>1}},data(){return{map:void 0,source:"tropicals-source",clusterSource:"tropicals-cluster-source",historyLayer:"tropicals-history-layer",forecastLayer:"tropicals-forecast-layer",forecastModelLayer:"tropicals-forecast-model-layer",forecastNameLayer:"tropicals-forecast-name-layer",pointCircleLayer:"tropicals-point-circle-layer",pointLabelLayer:"tropicals-point-label-layer",historyPointCircleLayer:"history-tropicals-point-circle-layer",historyPointLabelLayer:"history-tropicals-point-label-layer",interpolateData:[],interpolateMarkers:[],interpolateSource:"tropicals-interpolate-source",interpolateLineLayer:"tropicals-interpolate-line-layer",showTropicals:!1,activeTropicals:void 0,activeTropicalsMarker:void 0,empty:v1([]),circleSource:"circle-source",circleSourceData:v1([]),circleLayer:"tropical-circle-layer",labelMarkers:[],fromTropicalReport:!0}},mounted(){this.initMap()},methods:{async initMap(){var s,n,i,c;let l,a=[120,30];if((s=this.tropicals)!=null&&s.data){const m=[];(c=(i=(n=this.tropicals)==null?void 0:n.data)==null?void 0:i.features)==null||c.forEach(d=>{var p,u,b;((p=d==null?void 0:d.properties)==null?void 0:p.type)==="forecast"&&!d.properties.disabled&&((u=d==null?void 0:d.geometry)==null?void 0:u.type)==="Point"&&M(d.properties.date).diff(M(),"hour")<=123&&m.push((b=d==null?void 0:d.geometry)==null?void 0:b.coordinates)}),l=re.LaneHelper.calculateBBox([m]),a=re.LaneHelper.calculateCenter([m])}i1.accessToken="pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";const t=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:a||this.tropicals.center||[120,30],preserveDrawingBuffer:!0,projection:"mercator",attributionControl:!1});t.on("load",()=>{this.map=t,l!=null&&l.length&&this.map.fitScreenCoordinates(this.map.project([l[0]-1,l[1]-1]),this.map.project([l[2]+1,l[3]+1]),this.map.getBearing()),this.handleRender()})},handleRender(){var l,a,t,s,n,i,c,m,d,p,u,b,f;if(!this.map)setTimeout(()=>{this.handleRender()},500);else{if(this.tropicals){const E=new Date().valueOf();let _=0,N=0;if((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),N=new Date().valueOf()-(E+_),console.log("[tropicals] update elapsed: ",N,", total: ",_+=N)):(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":.9,"line-dasharray":[1,2]}}),this.map.addLayer({id:this.forecastModelLayer,type:"symbol",source:this.source,filter:["all",["==","$type","LineString"],["==","type","forecast"],["!=","disabled",!0]],layout:{"symbol-placement":"line","text-field":"{model}","text-rotation-alignment":"viewport","text-size":13},paint:{"text-color":["match",["get","model"],"cma","#000","jma","#000","ecmwf","#fff","ukm","#fff","noaa-at","#fff","noaa-ep","#fff","#000"],"text-opacity":1,"text-halo-color":["match",["get","model"],"cma","#e2ea03","jma","#01d2b7","ecmwf","#f582f2","ukm","#f5bb47","noaa-at","#9758fb","noaa-ep","#9758fb","#f2a0a0"],"text-halo-width":4}}),N=new Date().valueOf()-(E+_),console.log("[tropical] add elapsed: ",N,", total: ",_+=N)),(i=this.map)!=null&&i.getSource(this.clusterSource))(m=this.map)==null||m.getSource(this.clusterSource).setData((c=this.tropicals)!=null&&c.active?this.tropicals.data:this.empty),N=new Date().valueOf()-(E+_),console.log("[tropical] update elapsed: ",N,", total: ",_+=N);else{if(this.map.addSource(this.clusterSource,{type:"geojson",data:(d=this.tropicals)!=null&&d.active?(p=this.tropicals)==null?void 0:p.data:this.empty}),this.map.addLayer({id:this.pointCircleLayer+"-border",type:"circle",source:this.clusterSource,filter:["all",["==","$type","Point"],["==","type","forecast"],["!=","disabled",!0]],paint:{"circle-radius":6,"circle-color":"#fff"}}),this.map.addLayer({id:this.pointCircleLayer,type:"circle",source:this.clusterSource,filter:["all",["==","$type","Point"],["==","type","forecast"],["!=","disabled",!0]],paint:{"circle-radius":4,"circle-color":["case",["boolean",["==",["get","kts",["get","wind"]],null]],"#03f869",["boolean",["<",["get","kts",["get","wind"]],32]],"#03f869",["boolean",["<",["get","kts",["get","wind"]],47]],"#f2f202",["boolean",["<",["get","kts",["get","wind"]],63]],"#ff9100",["boolean",["<",["get","kts",["get","wind"]],79]],"#f44336",["boolean",["<",["get","kts",["get","wind"]],94]],"#f903d0",["boolean",[">=",["get","kts",["get","wind"]],94]],"#8702f9","#fff"]}}),this.fromTropicalReport){const k=(u=this.tropicals.data.features)==null?void 0:u.filter(S=>S.geometry.type==="Point"&&S.properties.type==="forecast");let D=0,x=0,L=(f=(b=this.findClosestToNumber(k,"hour",12))==null?void 0:b.properties)==null?void 0:f.hour;k.forEach((S,R)=>{var I,T,y,F,V,o,W,h,j,U,O,K,q,J,B,$,Z,X,ee,te,H,A,ce,de,he,ie,se;let C;const z=this.findClosestToNumber(k,"hour",L+D*24);if(z&&((I=z==null?void 0:z.properties)==null?void 0:I.hour)===((T=S.properties)==null?void 0:T.hour)&&(C=z),C){let r=0,le="tropical-marker-box",ne="tropical-marker-line";le=((V=(F=(y=C.properties)==null?void 0:y.wind)==null?void 0:F.en)==null?void 0:V.toUpperCase())==="SUPER TY"?le+" supper":le+" normal",ne=((h=(W=(o=C.properties)==null?void 0:o.wind)==null?void 0:W.en)==null?void 0:h.toUpperCase())==="SUPER TY"?ne+" supper":ne+" normal",((U=(j=C.properties)==null?void 0:j.movement)==null?void 0:U.deg)>=0&&((K=(O=C.properties)==null?void 0:O.movement)==null?void 0:K.deg)<=60||((J=(q=C.properties)==null?void 0:q.movement)==null?void 0:J.deg)>=120&&(($=(B=C.properties)==null?void 0:B.movement)==null?void 0:$.deg)<=240||((X=(Z=C.properties)==null?void 0:Z.movement)==null?void 0:X.deg)>=300&&((te=(ee=C.properties)==null?void 0:ee.movement)==null?void 0:te.deg)<=360?(r=D%2===0?[84,0]:[-84,0],le=D%2===0?le+" right":le+" left",ne=D%2===0?ne+" vertical right":ne+" vertical left"):(r=x%2===0?[60,-40]:[60,40],le=x%2===0?le+" top":le+" bottom",ne=x%2===0?ne+" align top":ne+" align bottom",x=x+1);const fe=document.createElement("div");fe.className=le,fe.innerHTML=`
207
+ </svg>`,W=document.createElement("div");W.className="hurricane-hourly-marker-simple",W.innerHTML=`<div class="${F.geometry.coordinates[1]>=0?"center north":"center south"}">${o}</div>`;const h=new i1.Marker(W).setLngLat(F.geometry.coordinates).addTo(this.map);this.interpolateMarkers.push(h)}}}}};function t4(l,a,t,s,n,i){return null}const a4=Ie(e4,[["render",t4]]);var Fe=63710088e-1,l4={centimeters:Fe*100,centimetres:Fe*100,degrees:Fe/111325,feet:Fe*3.28084,inches:Fe*39.37,kilometers:Fe/1e3,kilometres:Fe/1e3,meters:Fe,metres:Fe,miles:Fe/1609.344,millimeters:Fe*1e3,millimetres:Fe*1e3,nauticalmiles:Fe/1852,radians:1,yards:Fe*1.0936};function S1(l,a,t){t===void 0&&(t={});var s={type:"Feature"};return(t.id===0||t.id)&&(s.id=t.id),t.bbox&&(s.bbox=t.bbox),s.properties=a||{},s.geometry=l,s}function o4(l,a,t){if(t===void 0&&(t={}),!l)throw new Error("coordinates is required");if(!Array.isArray(l))throw new Error("coordinates must be an Array");if(l.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!O1(l[0])||!O1(l[1]))throw new Error("coordinates must contain numbers");var s={type:"Point",coordinates:l};return S1(s,a,t)}function E1(l,a,t){t===void 0&&(t={});for(var s=0,n=l;s<n.length;s++){var i=n[s];if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var c=0;c<i[i.length-1].length;c++)if(i[i.length-1][c]!==i[0][c])throw new Error("First and last Position are not equivalent.")}var m={type:"Polygon",coordinates:l};return S1(m,a,t)}function M1(l,a,t){if(t===void 0&&(t={}),l.length<2)throw new Error("coordinates must be an array of two or more positions");var s={type:"LineString",coordinates:l};return S1(s,a,t)}function v1(l,a){a===void 0&&(a={});var t={type:"FeatureCollection"};return a.id&&(t.id=a.id),a.bbox&&(t.bbox=a.bbox),t.features=l,t}function i4(l,a,t){t===void 0&&(t={});var s={type:"MultiPolygon",coordinates:l};return S1(s,a,t)}function s4(l,a){a===void 0&&(a="kilometers");var t=l4[a];if(!t)throw new Error(a+" units is invalid");return l/t}function W1(l){var a=l%(2*Math.PI);return a*180/Math.PI}function L1(l){var a=l%360;return a*Math.PI/180}function O1(l){return!isNaN(l)&&l!==null&&!Array.isArray(l)}function R1(l,a,t){if(l!==null)for(var s,n,i,c,m,d,p,u=0,b=0,f,v=l.type,E=v==="FeatureCollection",_=v==="Feature",N=E?l.features.length:1,k=0;k<N;k++){p=E?l.features[k].geometry:_?l.geometry:l,f=p?p.type==="GeometryCollection":!1,m=f?p.geometries.length:1;for(var D=0;D<m;D++){var x=0,L=0;if(c=f?p.geometries[D]:p,c!==null){d=c.coordinates;var S=c.type;switch(u=t&&(S==="Polygon"||S==="MultiPolygon")?1:0,S){case null:break;case"Point":if(a(d,b,k,x,L)===!1)return!1;b++,x++;break;case"LineString":case"MultiPoint":for(s=0;s<d.length;s++){if(a(d[s],b,k,x,L)===!1)return!1;b++,S==="MultiPoint"&&x++}S==="LineString"&&x++;break;case"Polygon":case"MultiLineString":for(s=0;s<d.length;s++){for(n=0;n<d[s].length-u;n++){if(a(d[s][n],b,k,x,L)===!1)return!1;b++}S==="MultiLineString"&&x++,S==="Polygon"&&L++}S==="Polygon"&&x++;break;case"MultiPolygon":for(s=0;s<d.length;s++){for(L=0,n=0;n<d[s].length;n++){for(i=0;i<d[s][n].length-u;i++){if(a(d[s][n][i],b,k,x,L)===!1)return!1;b++}L++}x++}break;case"GeometryCollection":for(s=0;s<c.geometries.length;s++)if(R1(c.geometries[s],a,t)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function V1(l){var a=[1/0,1/0,-1/0,-1/0];return R1(l,function(t){a[0]>t[0]&&(a[0]=t[0]),a[1]>t[1]&&(a[1]=t[1]),a[2]<t[0]&&(a[2]=t[0]),a[3]<t[1]&&(a[3]=t[1])}),a}V1.default=V1;function r4(l){if(!l)throw new Error("coord is required");if(!Array.isArray(l)){if(l.type==="Feature"&&l.geometry!==null&&l.geometry.type==="Point")return l.geometry.coordinates;if(l.type==="Point")return l.coordinates}if(Array.isArray(l)&&l.length>=2&&!Array.isArray(l[0])&&!Array.isArray(l[1]))return l;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function n4(l){if(Array.isArray(l))return l;if(l.type==="Feature"){if(l.geometry!==null)return l.geometry.coordinates}else if(l.coordinates)return l.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function c4(l){return l.type==="Feature"?l.geometry:l}function d4(l){if(!l)throw new Error("geojson is required");switch(l.type){case"Feature":return G1(l);case"FeatureCollection":return h4(l);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return H1(l);default:throw new Error("unknown GeoJSON type")}}function G1(l){var a={type:"Feature"};return Object.keys(l).forEach(function(t){switch(t){case"type":case"properties":case"geometry":return;default:a[t]=l[t]}}),a.properties=$1(l.properties),a.geometry=H1(l.geometry),a}function $1(l){var a={};return l&&Object.keys(l).forEach(function(t){var s=l[t];typeof s=="object"?s===null?a[t]=null:Array.isArray(s)?a[t]=s.map(function(n){return n}):a[t]=$1(s):a[t]=s}),a}function h4(l){var a={type:"FeatureCollection"};return Object.keys(l).forEach(function(t){switch(t){case"type":case"features":return;default:a[t]=l[t]}}),a.features=l.features.map(function(t){return G1(t)}),a}function H1(l){var a={type:l.type};return l.bbox&&(a.bbox=l.bbox),l.type==="GeometryCollection"?(a.geometries=l.geometries.map(function(t){return H1(t)}),a):(a.coordinates=j1(l.coordinates),a)}function j1(l){var a=l;return typeof a[0]!="object"?a.slice():a.map(function(t){return j1(t)})}function C1(l,a,t,s){s===void 0&&(s={});var n=r4(l),i=L1(n[0]),c=L1(n[1]),m=L1(t),d=s4(a,s.units),p=Math.asin(Math.sin(c)*Math.cos(d)+Math.cos(c)*Math.sin(d)*Math.cos(m)),u=i+Math.atan2(Math.sin(m)*Math.sin(d)*Math.cos(c),Math.cos(d)-Math.sin(c)*Math.sin(p)),b=W1(u),f=W1(p);return o4([b,f],s.properties)}function m4(l,a,t){t===void 0&&(t={});for(var s=t.steps||64,n=t.properties?t.properties:!Array.isArray(l)&&l.type==="Feature"&&l.properties?l.properties:{},i=[],c=0;c<s;c++)i.push(C1(l,a,c*-360/s,t).geometry.coordinates);return i.push(i[0]),E1([i],n)}function _1(l,a,t,s,n){n===void 0&&(n={});var i=n.steps||64,c=U1(t),m=U1(s),d=!Array.isArray(l)&&l.type==="Feature"?l.properties:{};if(c===m)return M1(m4(l,a,n).geometry.coordinates[0],d);for(var p=c,u=c<m?m:m+360,b=p,f=[],v=0;b<u;)f.push(C1(l,a,b,n).geometry.coordinates),v++,b=p+v*360/i;return b>u&&f.push(C1(l,a,u,n).geometry.coordinates),M1(f,d)}function U1(l){var a=l%360;return a<0&&(a+=360),a}function p4(l,a){a===void 0&&(a={});var t,s,n,i=a.properties,c=(t=a.autoComplete)!==null&&t!==void 0?t:!0,m=(s=a.orderCoords)!==null&&s!==void 0?s:!0,d=(n=a.mutate)!==null&&n!==void 0?n:!1;switch(d||(l=d4(l)),l.type){case"FeatureCollection":var p=[];return l.features.forEach(function(u){p.push(n4(Y1(u,{},c,m)))}),i4(p,i);default:return Y1(l,i,c,m)}}function Y1(l,a,t,s){a=a||(l.type==="Feature"?l.properties:{});var n=c4(l),i=n.coordinates,c=n.type;if(!i.length)throw new Error("line must contain coordinates");switch(c){case"LineString":return t&&(i=Z1(i)),E1([i],a);case"MultiLineString":var m=[],d=0;return i.forEach(function(p){if(t&&(p=Z1(p)),s){var u=g4(V1(M1(p)));u>d?(m.unshift(p),d=u):m.push(p)}else m.push(p)}),E1(m,a);default:throw new Error("geometry type "+c+" is not supported")}}function Z1(l){var a=l[0],t=a[0],s=a[1],n=l[l.length-1],i=n[0],c=n[1];return(t!==i||s!==c)&&l.push(a),l}function g4(l){var a=l[0],t=l[1],s=l[2],n=l[3];return Math.abs(a-s)*Math.abs(t-n)}const K4="",y4={name:"TropicalMapbox",props:{token:{type:String,default:()=>""},tropicals:{type:Object,default:()=>({})},ts:{type:String,default:()=>""},container:{type:String,default:()=>""},zoom:{type:Number,default:()=>1}},data(){return{map:void 0,source:"tropicals-source",clusterSource:"tropicals-cluster-source",historyLayer:"tropicals-history-layer",forecastLayer:"tropicals-forecast-layer",forecastModelLayer:"tropicals-forecast-model-layer",forecastNameLayer:"tropicals-forecast-name-layer",pointCircleLayer:"tropicals-point-circle-layer",pointLabelLayer:"tropicals-point-label-layer",historyPointCircleLayer:"history-tropicals-point-circle-layer",historyPointLabelLayer:"history-tropicals-point-label-layer",interpolateData:[],interpolateMarkers:[],interpolateSource:"tropicals-interpolate-source",interpolateLineLayer:"tropicals-interpolate-line-layer",showTropicals:!1,activeTropicals:void 0,activeTropicalsMarker:void 0,empty:v1([]),circleSource:"circle-source",circleSourceData:v1([]),circleLayer:"tropical-circle-layer",labelMarkers:[],fromTropicalReport:!0}},mounted(){this.initMap()},methods:{async initMap(){var s,n,i,c;let l,a=[120,30];if((s=this.tropicals)!=null&&s.data){const m=[];(c=(i=(n=this.tropicals)==null?void 0:n.data)==null?void 0:i.features)==null||c.forEach(d=>{var p,u,b;((p=d==null?void 0:d.properties)==null?void 0:p.type)==="forecast"&&!d.properties.disabled&&((u=d==null?void 0:d.geometry)==null?void 0:u.type)==="Point"&&M(d.properties.date).diff(M(),"hour")<=123&&m.push((b=d==null?void 0:d.geometry)==null?void 0:b.coordinates)}),l=re.LaneHelper.calculateBBox([m]),a=re.LaneHelper.calculateCenter([m])}i1.accessToken="pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";const t=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:a||this.tropicals.center||[120,30],preserveDrawingBuffer:!0,projection:"mercator",attributionControl:!1});t.on("load",()=>{this.map=t,l!=null&&l.length&&this.map.fitScreenCoordinates(this.map.project([l[0]-1,l[1]-1]),this.map.project([l[2]+1,l[3]+1]),this.map.getBearing()),this.handleRender()})},handleRender(){var l,a,t,s,n,i,c,m,d,p,u,b,f;if(!this.map)setTimeout(()=>{this.handleRender()},500);else{if(this.tropicals){const E=new Date().valueOf();let _=0,N=0;if((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),N=new Date().valueOf()-(E+_),console.log("[tropicals] update elapsed: ",N,", total: ",_+=N)):(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":.9,"line-dasharray":[1,2]}}),this.map.addLayer({id:this.forecastModelLayer,type:"symbol",source:this.source,filter:["all",["==","$type","LineString"],["==","type","forecast"],["!=","disabled",!0]],layout:{"symbol-placement":"line","text-field":"{model}","text-rotation-alignment":"viewport","text-size":13},paint:{"text-color":["match",["get","model"],"cma","#000","jma","#000","ecmwf","#fff","ukm","#fff","noaa-at","#fff","noaa-ep","#fff","#000"],"text-opacity":1,"text-halo-color":["match",["get","model"],"cma","#e2ea03","jma","#01d2b7","ecmwf","#f582f2","ukm","#f5bb47","noaa-at","#9758fb","noaa-ep","#9758fb","#f2a0a0"],"text-halo-width":4}}),N=new Date().valueOf()-(E+_),console.log("[tropical] add elapsed: ",N,", total: ",_+=N)),(i=this.map)!=null&&i.getSource(this.clusterSource))(m=this.map)==null||m.getSource(this.clusterSource).setData((c=this.tropicals)!=null&&c.active?this.tropicals.data:this.empty),N=new Date().valueOf()-(E+_),console.log("[tropical] update elapsed: ",N,", total: ",_+=N);else{if(this.map.addSource(this.clusterSource,{type:"geojson",data:(d=this.tropicals)!=null&&d.active?(p=this.tropicals)==null?void 0:p.data:this.empty}),this.map.addLayer({id:this.pointCircleLayer+"-border",type:"circle",source:this.clusterSource,filter:["all",["==","$type","Point"],["==","type","forecast"],["!=","disabled",!0]],paint:{"circle-radius":6,"circle-color":"#fff"}}),this.map.addLayer({id:this.pointCircleLayer,type:"circle",source:this.clusterSource,filter:["all",["==","$type","Point"],["==","type","forecast"],["!=","disabled",!0]],paint:{"circle-radius":4,"circle-color":["case",["boolean",["==",["get","kts",["get","wind"]],null]],"#03f869",["boolean",["<",["get","kts",["get","wind"]],32]],"#03f869",["boolean",["<",["get","kts",["get","wind"]],47]],"#f2f202",["boolean",["<",["get","kts",["get","wind"]],63]],"#ff9100",["boolean",["<",["get","kts",["get","wind"]],79]],"#f44336",["boolean",["<",["get","kts",["get","wind"]],94]],"#f903d0",["boolean",[">=",["get","kts",["get","wind"]],94]],"#8702f9","#fff"]}}),this.fromTropicalReport){const k=(u=this.tropicals.data.features)==null?void 0:u.filter(S=>S.geometry.type==="Point"&&S.properties.type==="forecast");let D=0,x=0,L=(f=(b=this.findClosestToNumber(k,"hour",12))==null?void 0:b.properties)==null?void 0:f.hour;k.forEach((S,R)=>{var I,T,y,F,V,o,W,h,j,U,O,K,q,J,B,$,Z,X,ee,te,H,A,ce,de,he,ie,se;let C;const z=this.findClosestToNumber(k,"hour",L+D*24);if(z&&((I=z==null?void 0:z.properties)==null?void 0:I.hour)===((T=S.properties)==null?void 0:T.hour)&&(C=z,D=D+1),C){let r=0,le="tropical-marker-box",ne="tropical-marker-line";le=((V=(F=(y=C.properties)==null?void 0:y.wind)==null?void 0:F.en)==null?void 0:V.toUpperCase())==="SUPER TY"?le+" supper":le+" normal",ne=((h=(W=(o=C.properties)==null?void 0:o.wind)==null?void 0:W.en)==null?void 0:h.toUpperCase())==="SUPER TY"?ne+" supper":ne+" normal",((U=(j=C.properties)==null?void 0:j.movement)==null?void 0:U.deg)>=0&&((K=(O=C.properties)==null?void 0:O.movement)==null?void 0:K.deg)<=60||((J=(q=C.properties)==null?void 0:q.movement)==null?void 0:J.deg)>=120&&(($=(B=C.properties)==null?void 0:B.movement)==null?void 0:$.deg)<=240||((X=(Z=C.properties)==null?void 0:Z.movement)==null?void 0:X.deg)>=300&&((te=(ee=C.properties)==null?void 0:ee.movement)==null?void 0:te.deg)<=360?(r=D%2===0?[84,0]:[-84,0],le=D%2===0?le+" right":le+" left",ne=D%2===0?ne+" vertical right":ne+" vertical left"):(r=x%2===0?[60,-40]:[60,40],le=x%2===0?le+" top":le+" bottom",ne=x%2===0?ne+" align top":ne+" align bottom",x=x+1);const fe=document.createElement("div");fe.className=le,fe.innerHTML=`
208
208
  <div style="">
209
209
  <span>${((H=S.properties)==null?void 0:H.format)||"-"}</span>
210
210
  <span> [${((de=(ce=(A=S.properties)==null?void 0:A.wind)==null?void 0:ce.en)==null?void 0:de.toUpperCase())||"-"}]</span>
@@ -214,7 +214,7 @@
214
214
  <span>${((se=S.properties)==null?void 0:se.pressure)||"-"} hPa</span>
215
215
  </div>
216
216
  <div class="${ne}"></div>
217
- `,this.labelMarkers.push(new i1.Marker(fe).setLngLat(S.geometry.coordinates).setOffset(r).addTo(this.map))}D=D+1})}this.map.addLayer({id:this.historyPointCircleLayer+"-border",type:"circle",source:this.clusterSource,filter:["all",["==","$type","Point"],["==","type","history"],["==","important",!0],["!=","disabled",!0]],paint:{"circle-radius":7,"circle-color":"#fff"}}),this.map.addLayer({id:this.historyPointCircleLayer,type:"circle",source:this.clusterSource,filter:["all",["==","$type","Point"],["==","type","history"],["==","important",!0],["!=","disabled",!0]],paint:{"circle-radius":5,"circle-color":"rgba(0,0,0,0.7)"}}),this.map.addLayer({id:this.historyPointCircleLayer+"-inner",type:"circle",source:this.clusterSource,filter:["all",["==","$type","Point"],["==","type","history"],["==","important",!0],["!=","disabled",!0]],paint:{"circle-radius":3,"circle-color":"#fff"}}),this.map.addLayer({id:this.historyPointLabelLayer,type:"symbol",source:this.clusterSource,filter:["all",["==","$type","Point"],["==","type","history"],["==","important",!0],["!=","disabled",!0]],layout:{"text-field":["get","format"],"text-offset":[0,-.5],"text-anchor":"bottom-left","text-size":14},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-color":"#fff","text-halo-width":1}}),this.map.addLayer({id:this.forecastNameLayer,type:"symbol",source:this.clusterSource,filter:["all",["==","$type","Point"],["==","type","forecast"],["==","important",!0]],layout:{"text-field":["get","name"],"text-offset":[0,1.5],"text-anchor":"bottom","text-size":16,"text-allow-overlap":!0,"text-ignore-placement":!0},paint:{"text-color":"#fff","text-halo-color":"#0033ff","text-halo-width":4}}),N=new Date().valueOf()-(E+_),console.log("[tropical] add elapsed: ",N,", total: ",_+=N)}}this.handleDrawCircle();const v=re.TropicalHelper.interpolate(this.tropicals,1);this.interpolateData=JSON.parse(JSON.stringify(v)),this.handleDateChange()}},handleDateChange(){var l,a,t,s,n,i,c,m,d,p,u,b,f,v,E,_,N,k,D,x,L,S,R,C,z,I,T,y,F,V,o,W;if((l=this.interpolateMarkers)==null||l.forEach(h=>h==null?void 0:h.remove()),this.circleSourceData.features=[],(a=this.interpolateData)!=null&&a.length&&this.tropicals.active){const h=M(this.ts).utc().set({minute:0,second:0,millisecond:0}),j=M.utc().add(1,"hour").set({minute:0,second:0,millisecond:0}),U=h.isBefore(j)&&j.diff(h,"h")<2?j.format():h.format(),O=this.interpolateData.filter(B=>B.properties.date===U&&!B.properties.disabled),K=this.handleComputePolygons(O),q=v1([...O]);K.forEach(B=>{q.features.push(B)}),(t=this.map)!=null&&t.getSource(this.interpolateSource)?(s=this.map)==null||s.getSource(this.interpolateSource).setData(q):((n=this.map)==null||n.addSource(this.interpolateSource,{type:"geojson",data:q}),(i=this.map)==null||i.addLayer({id:this.interpolateLineLayer,type:"line",source:this.interpolateSource,filter:["all",["==","$type","Polygon"],["!=","disabled",!0]],paint:{"line-opacity":1,"line-color":["match",["get","level"],7,"#ff9100",10,"#f44336","#ffffff"],"line-width":1}})),this.interpolateMarkers=[];const J=[];for(const B of O)if(J.some($=>{var Z;return $.properties.name===((Z=B.properties)==null?void 0:Z.name)})||J.push(B),!B.properties.disabled){let $="#f44336";((m=(c=B.properties)==null?void 0:c.wind)==null?void 0:m.kts)<32||!((p=(d=B.properties)==null?void 0:d.wind)!=null&&p.kts)?$="#03f869":((b=(u=B.properties)==null?void 0:u.wind)==null?void 0:b.kts)>=32&&((v=(f=B.properties)==null?void 0:f.wind)==null?void 0:v.kts)<47?$="#f2f202":((_=(E=B.properties)==null?void 0:E.wind)==null?void 0:_.kts)>=47&&((k=(N=B.properties)==null?void 0:N.wind)==null?void 0:k.kts)<63?$="#ff9100":((x=(D=B.properties)==null?void 0:D.wind)==null?void 0:x.kts)>=63&&((S=(L=B.properties)==null?void 0:L.wind)==null?void 0:S.kts)<79?$="#f44336":((C=(R=B.properties)==null?void 0:R.wind)==null?void 0:C.kts)>=79&&((I=(z=B.properties)==null?void 0:z.wind)==null?void 0:I.kts)<94?$="#f903d0":((y=(T=B.properties)==null?void 0:T.wind)==null?void 0:y.kts)>=94?$="#8702f9":$="#f44336";const Z=`<svg t="1719918955501"
217
+ `,this.labelMarkers.push(new i1.Marker(fe).setLngLat(S.geometry.coordinates).setOffset(r).addTo(this.map))}})}this.map.addLayer({id:this.historyPointCircleLayer+"-border",type:"circle",source:this.clusterSource,filter:["all",["==","$type","Point"],["==","type","history"],["==","important",!0],["!=","disabled",!0]],paint:{"circle-radius":7,"circle-color":"#fff"}}),this.map.addLayer({id:this.historyPointCircleLayer,type:"circle",source:this.clusterSource,filter:["all",["==","$type","Point"],["==","type","history"],["==","important",!0],["!=","disabled",!0]],paint:{"circle-radius":5,"circle-color":"rgba(0,0,0,0.7)"}}),this.map.addLayer({id:this.historyPointCircleLayer+"-inner",type:"circle",source:this.clusterSource,filter:["all",["==","$type","Point"],["==","type","history"],["==","important",!0],["!=","disabled",!0]],paint:{"circle-radius":3,"circle-color":"#fff"}}),this.map.addLayer({id:this.historyPointLabelLayer,type:"symbol",source:this.clusterSource,filter:["all",["==","$type","Point"],["==","type","history"],["==","important",!0],["!=","disabled",!0]],layout:{"text-field":["get","format"],"text-offset":[0,-.5],"text-anchor":"bottom-left","text-size":14},paint:{"text-color":"rgba(0, 0, 0, 1)","text-halo-color":"#fff","text-halo-width":1}}),this.map.addLayer({id:this.forecastNameLayer,type:"symbol",source:this.clusterSource,filter:["all",["==","$type","Point"],["==","type","forecast"],["==","important",!0]],layout:{"text-field":["get","name"],"text-offset":[0,1.5],"text-anchor":"bottom","text-size":16,"text-allow-overlap":!0,"text-ignore-placement":!0},paint:{"text-color":"#fff","text-halo-color":"#0033ff","text-halo-width":4}}),N=new Date().valueOf()-(E+_),console.log("[tropical] add elapsed: ",N,", total: ",_+=N)}}this.handleDrawCircle();const v=re.TropicalHelper.interpolate(this.tropicals,1);this.interpolateData=JSON.parse(JSON.stringify(v)),this.handleDateChange()}},handleDateChange(){var l,a,t,s,n,i,c,m,d,p,u,b,f,v,E,_,N,k,D,x,L,S,R,C,z,I,T,y,F,V,o,W;if((l=this.interpolateMarkers)==null||l.forEach(h=>h==null?void 0:h.remove()),this.circleSourceData.features=[],(a=this.interpolateData)!=null&&a.length&&this.tropicals.active){const h=M(this.ts).utc().set({minute:0,second:0,millisecond:0}),j=M.utc().add(1,"hour").set({minute:0,second:0,millisecond:0}),U=h.isBefore(j)&&j.diff(h,"h")<2?j.format():h.format(),O=this.interpolateData.filter(B=>B.properties.date===U&&!B.properties.disabled),K=this.handleComputePolygons(O),q=v1([...O]);K.forEach(B=>{q.features.push(B)}),(t=this.map)!=null&&t.getSource(this.interpolateSource)?(s=this.map)==null||s.getSource(this.interpolateSource).setData(q):((n=this.map)==null||n.addSource(this.interpolateSource,{type:"geojson",data:q}),(i=this.map)==null||i.addLayer({id:this.interpolateLineLayer,type:"line",source:this.interpolateSource,filter:["all",["==","$type","Polygon"],["!=","disabled",!0]],paint:{"line-opacity":1,"line-color":["match",["get","level"],7,"#ff9100",10,"#f44336","#ffffff"],"line-width":1}})),this.interpolateMarkers=[];const J=[];for(const B of O)if(J.some($=>{var Z;return $.properties.name===((Z=B.properties)==null?void 0:Z.name)})||J.push(B),!B.properties.disabled){let $="#f44336";((m=(c=B.properties)==null?void 0:c.wind)==null?void 0:m.kts)<32||!((p=(d=B.properties)==null?void 0:d.wind)!=null&&p.kts)?$="#03f869":((b=(u=B.properties)==null?void 0:u.wind)==null?void 0:b.kts)>=32&&((v=(f=B.properties)==null?void 0:f.wind)==null?void 0:v.kts)<47?$="#f2f202":((_=(E=B.properties)==null?void 0:E.wind)==null?void 0:_.kts)>=47&&((k=(N=B.properties)==null?void 0:N.wind)==null?void 0:k.kts)<63?$="#ff9100":((x=(D=B.properties)==null?void 0:D.wind)==null?void 0:x.kts)>=63&&((S=(L=B.properties)==null?void 0:L.wind)==null?void 0:S.kts)<79?$="#f44336":((C=(R=B.properties)==null?void 0:R.wind)==null?void 0:C.kts)>=79&&((I=(z=B.properties)==null?void 0:z.wind)==null?void 0:I.kts)<94?$="#f903d0":((y=(T=B.properties)==null?void 0:T.wind)==null?void 0:y.kts)>=94?$="#8702f9":$="#f44336";const Z=`<svg t="1719918955501"
218
218
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
219
219
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
220
220
  <path