@idmwx/idmui-gl4 2.0.7 → 2.0.8

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.
package/dist/index.js CHANGED
@@ -1591,8 +1591,8 @@ const yi = {
1591
1591
  },
1592
1592
  grid: {
1593
1593
  top: 40,
1594
- left: 30,
1595
- right: 20,
1594
+ left: 10,
1595
+ right: 10,
1596
1596
  bottom: 30,
1597
1597
  containLabel: !0
1598
1598
  },
@@ -2038,7 +2038,7 @@ function wr(t, e, o, i, a, r) {
2038
2038
  _: 1
2039
2039
  }, 8, ["class"]);
2040
2040
  }
2041
- const Do = /* @__PURE__ */ Z(yi, [["render", wr], ["__scopeId", "data-v-d2a8c4e9"]]);
2041
+ const Do = /* @__PURE__ */ Z(yi, [["render", wr], ["__scopeId", "data-v-6517c4e5"]]);
2042
2042
  const xr = {
2043
2043
  name: "IdmPort",
2044
2044
  components: {
@@ -2994,8 +2994,8 @@ const Kr = {
2994
2994
  },
2995
2995
  grid: {
2996
2996
  top: 40,
2997
- left: 30,
2998
- right: 20,
2997
+ left: 10,
2998
+ right: 10,
2999
2999
  bottom: 30,
3000
3000
  containLabel: !0
3001
3001
  },
@@ -3235,7 +3235,7 @@ function Cs(t, e, o, i, a, r) {
3235
3235
  _: 1
3236
3236
  }, 8, ["class"]);
3237
3237
  }
3238
- const Ss = /* @__PURE__ */ Z(Kr, [["render", Cs], ["__scopeId", "data-v-6361862a"]]);
3238
+ const Ss = /* @__PURE__ */ Z(Kr, [["render", Cs], ["__scopeId", "data-v-b4cdca6c"]]);
3239
3239
  const Ms = {
3240
3240
  name: "IdmTideStations",
3241
3241
  components: {
@@ -5950,11 +5950,9 @@ function dl(t, e, o, i, a, r) {
5950
5950
  gateway: o.gateway,
5951
5951
  token: o.token,
5952
5952
  "forecast-model": o.forecastModel,
5953
- realTime: o.realTime
5954
- }, t.$attrs, {
5955
- "before-layer": "empty-layer-3",
5953
+ realTime: o.realTime,
5956
5954
  theme: o.theme
5957
- }), null, 16, ["simple", "map", "ports", "gateway", "token", "forecast-model", "realTime", "theme"])) : I("", !0),
5955
+ }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "ports", "gateway", "token", "forecast-model", "realTime", "theme"])) : I("", !0),
5958
5956
  o.map ? (g(), A(B, j({
5959
5957
  key: 4,
5960
5958
  map: o.map,
@@ -2,12 +2,12 @@
2
2
  <span style="display:inline-block; height: 8px;width: 8px;border-radius: 50%;background-color: ${l.color}"></span>
3
3
  <span>${l.seriesName} : </span>
4
4
  <strong>${l.value[1]}m</strong>
5
- </div>`)}),r}},legend:{show:!0,right:20,top:0,itemWidth:30,data:["Height"],selected:{Speed:!0,Draught:!1},textStyle:{color:this.Theme.current.value.colors["on-surface"]}},grid:{top:40,left:30,right:20,bottom:30,containLabel:!0},xAxis:[{type:"category",data:this.xDate,boundaryGap:!0,axisTick:{alignWithLabel:!0,lineStyle:{color:this.Theme.current.value.colors["surface-bright"]}},axisLine:{show:!0,lineStyle:{color:this.Theme.current.value.colors["surface-bright"]}},axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:12,color:this.Theme.current.value.colors["surface-bright"]}}}],yAxis:[{name:"(m)",show:!0,nameLocation:"end",position:"left",nameGap:15,splitNumber:5,splitLine:{show:!0,lineStyle:{color:this.Theme.current.value.colors["surface-bright"]}},alignTicks:!0,axisLine:{show:!0,lineStyle:{color:this.Theme.current.value.colors["surface-bright"]}},axisLabel:{textStyle:{fontSize:12,color:this.Theme.current.value.colors["surface-bright"]}}}],series:[{name:"Height",type:"line",showSymbol:!0,yAxisIndex:0,lineStyle:{color:this.Theme.current.value.colors["map-perple"]},itemStyle:{color:this.Theme.current.value.colors["map-perple"]},data:this.echartData.height}]};o==null||o.setOption(t)}}},ti={class:"d-flex justify-space-between align-center"},oi={class:"d-flex justify-start text-h5 my-2"},ai={key:0,class:"d-flex justify-end align-center"},ii={key:1,class:"d-flex justify-end align-center"},ri={class:"d-flex justify-start align-center text-body-1 text-label ga-3"},li={key:0,class:"btns-box w-100 d-flex justify-center align-center ga-2 mt-2 px-5",style:{height:"48px"}},si={class:"summary-box"},ni={class:"d-flex justify-space-between align-center py-2"},ci={class:"d-flex justify-center align-center text-h6 ga-2"},mi={class:"multi-color-icon","aria-hidden":"true"},di=["xlink:href"],hi={class:"gray-bg-2 rounded d-flex flex-column ga-4 pa-4"},pi={class:"w-100 d-flex justify-start align-center"},gi={class:"w-30 text-label font-weight-400"},ui={class:"flex-1-1-0"},fi={class:"w-100 d-flex justify-start align-center"},yi={class:"w-30 text-label font-weight-400"},bi={class:"flex-1-1-0"},wi={class:"w-100 d-flex justify-start align-center"},xi={class:"w-30 text-label font-weight-400"},_i={class:"flex-1-1-0"},ki={class:"table-box w-100 mt-2"},zi={class:"w-100 d-flex justify-space-between align-center py-2"},vi={class:"d-flex justify-center align-center text-h6 ga-2"},Li={class:"multi-color-icon","aria-hidden":"true"},Ci=["xlink:href"],Pi={"fixed-header":"",density:"compact",class:"w-100 forecast-table bg-none"},Si={class:"px-1 text-left text-label font-weight-400",width:"120"},Ni={key:0,class:""},Ti={class:"px-1 text-center"},Di=["src"],Ei={key:1},Mi={class:"px-1 text-center"},Vi=["src"],Bi={key:1},Ii={class:"px-1 text-center"},Ri=["src"],Ai={key:1},Oi={class:"px-1 text-center"},ji=["src"],Hi={key:1},Fi={class:"table-box w-100 mt-2 d-flex flex-column justify-start align-center"},Gi={class:"w-100 d-flex justify-space-between align-center py-2"},Wi={class:"d-flex justify-center align-center text-h6 ga-2"},Ui={class:"multi-color-icon","aria-hidden":"true"},Yi=["xlink:href"],Zi={class:"text-body-2 ga-2"},qi={ref:"tideEchart",class:"w-100",style:{height:"200px"}},Xi={"fixed-header":"",density:"compact",class:"w-100 tide-table bg-none"},Ki={class:"px-1 text-center text-label font-weight-400",width:"120"},Ji={class:"px-1 text-center text-label font-weight-400",width:"120"},Qi={class:"px-1 text-center text-label font-weight-400",width:"120"},$i={class:"px-1 text-center"},er={class:"px-1 text-center"},tr={class:"px-1 text-center"};function or(o,t,a,r,i,l){const s=e.resolveComponent("VIcon"),c=e.resolveComponent("VBtn"),n=e.resolveComponent("v-icon"),h=e.resolveComponent("VCardTitle"),d=e.resolveComponent("VDivider"),g=e.resolveComponent("VBtnToggle"),u=e.resolveComponent("VCard");return e.openBlock(),e.createBlock(u,{class:e.normalizeClass(["port-detail-container d-flex flex-column justify-start align-center",a.simple?"page":"dialog"])},{default:e.withCtx(()=>{var x,y,_;return[e.createVNode(h,{class:"w-100"},{default:e.withCtx(()=>{var p,S,L,k,f,w;return[e.createElementVNode("div",ti,[e.createElementVNode("div",oi,[e.createElementVNode("div",{class:e.normalizeClass(["fi mr-2 rounded elevation-4",`fi-${(p=a.port)!=null&&p.cntLoCode?(L=(S=a.port)==null?void 0:S.cntLoCode)==null?void 0:L.toLowerCase():"xx"}`]),style:{width:"36px",height:"24px"}},null,2),e.createElementVNode("div",null,e.toDisplayString((k=a.port)==null?void 0:k.name),1)]),a.simple?(e.openBlock(),e.createElementBlock("div",ai,[(f=a.followList)!=null&&f.some(z=>{var b;return((b=z.port)==null?void 0:b.id)===a.portId})?(e.openBlock(),e.createBlock(c,{key:0,class:"text-none rounded-circle",variant:"text",density:"compact",height:"32",width:"28","min-width":"28",onClick:l.handleCancelFollow},{default:e.withCtx(()=>[e.createVNode(s,{icon:"mdi-star",color:"warning",size:"20"})]),_:1},8,["onClick"])):(e.openBlock(),e.createBlock(c,{key:1,class:"text-none rounded-circle",variant:"text",density:"compact",height:"32",width:"28","min-width":"28",onClick:l.handleFollow},{default:e.withCtx(()=>[e.createVNode(n,{icon:"mdi-star-outline",size:"20"})]),_:1},8,["onClick"])),e.createVNode(c,{icon:"",density:"compact",variant:"plain",class:"mr-n2",onClick:l.handleClose},{default:e.withCtx(()=>t[2]||(t[2]=[e.createElementVNode("i",{class:"iconfont icon-close text-label text-h4"},null,-1)])),_:1,__:[2]},8,["onClick"])])):(e.openBlock(),e.createElementBlock("div",ii,[e.createVNode(c,{icon:"",density:"compact",variant:"plain",class:"mr-n2",onClick:l.handleClose},{default:e.withCtx(()=>t[3]||(t[3]=[e.createElementVNode("i",{class:"iconfont icon-close text-label text-h4"},null,-1)])),_:1,__:[3]},8,["onClick"])]))]),e.createElementVNode("div",ri,[e.createElementVNode("div",null,e.toDisplayString(o.$t("port.port")),1),e.createElementVNode("div",null,[t[4]||(t[4]=e.createElementVNode("label",null,"UN/LOCODE: ",-1)),e.createElementVNode("span",null,e.toDisplayString((w=a.port)==null?void 0:w.cntLoCode),1)])])]}),_:1}),e.createVNode(d,{class:"w-100"}),a.simple?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",li,[(x=a.followList)!=null&&x.some(p=>{var S;return((S=p.port)==null?void 0:S.id)===a.portId})?(e.openBlock(),e.createBlock(c,{key:0,class:"text-none text-body-1 rounded flex-1-1-0 btn-bg-3",variant:"tonal",density:"compact",height:"32","prepend-icon":"mdi-star",onClick:l.handleCancelFollow},{prepend:e.withCtx(()=>[e.createVNode(s,{color:"warning"})]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(o.$t("actions.unfollow")),1)]),_:1},8,["onClick"])):(e.openBlock(),e.createBlock(c,{key:1,class:"text-none text-body-1 rounded flex-1-1-0 btn-bg-3",variant:"tonal",density:"compact",height:"32","prepend-icon":"mdi-star-outline",onClick:l.handleFollow},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("actions.follow")),1)]),_:1},8,["onClick"])),e.createVNode(c,{class:"text-none text-body-1 rounded flex-1-1-0 btn-bg-3",variant:"tonal",density:"compact",height:"32",onClick:l.handleMeteoMore},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("actions.7dayForcast")),1)]),_:1},8,["onClick"])])),e.createElementVNode("div",{ref:"scrollDom",class:e.normalizeClass(["w-100 pt-0 flex-1-1-0 overflow-y-auto scroll mb-4",a.simple?"px-3":"px-5"])},[e.createElementVNode("div",si,[e.createElementVNode("div",ni,[e.createElementVNode("div",ci,[(e.openBlock(),e.createElementBlock("svg",mi,[e.createElementVNode("use",{"xlink:href":`#icon-title-${a.theme}`},null,8,di)])),e.createElementVNode("div",null,e.toDisplayString(o.$t("detail.summary")),1)]),t[5]||(t[5]=e.createElementVNode("div",{class:"text-body-2 text-success ga-2"},null,-1))]),e.createElementVNode("div",hi,[e.createElementVNode("div",pi,[e.createElementVNode("div",gi,e.toDisplayString(o.$t("port.region")),1),e.createElementVNode("div",ui,e.toDisplayString(((y=a.port)==null?void 0:y.region)??((_=a.port)==null?void 0:_.city)??"-"),1)]),e.createElementVNode("div",fi,[e.createElementVNode("div",yi,e.toDisplayString(o.$t("port.position")),1),e.createElementVNode("div",bi,e.toDisplayString(l.computePosition(a.port)),1)]),e.createElementVNode("div",wi,[e.createElementVNode("div",xi,e.toDisplayString(o.$t("time.localTime")),1),e.createElementVNode("div",_i,e.toDisplayString(l.computeLocalTime(a.realTime,a.port))+" "+e.toDisplayString(l.computeTimeOffset(a.port)),1)])])]),e.createElementVNode("div",ki,[e.createElementVNode("div",zi,[e.createElementVNode("div",vi,[(e.openBlock(),e.createElementBlock("svg",Li,[e.createElementVNode("use",{"xlink:href":`#icon-title-${a.theme}`},null,8,Ci)])),e.createElementVNode("div",null,e.toDisplayString(o.$t("weather.weather")),1)]),t[6]||(t[6]=e.createElementVNode("div",{class:"text-body-2 text-success ga-2"},null,-1))]),e.createElementVNode("div",{class:e.normalizeClass(["w-100 gray-bg-2 rounded",a.simple?"pa-2":"pa-4"])},[e.createVNode(g,{modelValue:i.currentIndex,"onUpdate:modelValue":t[0]||(t[0]=p=>i.currentIndex=p),class:"w-100 gray-bg-1 rounded d-flex justify-space-around align-center ga-0 px-1 mb-2",density:"compact",group:"",height:"26","min-height":"26",rounded:"1"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.dateList,p=>(e.openBlock(),e.createBlock(c,{class:"text-none text-body-1 rounded bg-none flex-1-1-0",density:"compact",color:"primary",height:"26",value:p.index},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.label),1)]),_:2},1032,["value"]))),256))]),_:1},8,["modelValue"]),e.createElementVNode("table",Pi,[e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tableData,p=>(e.openBlock(),e.createElementBlock("tr",{key:p.id},[e.createElementVNode("th",Si,[e.createTextVNode(e.toDisplayString(o.$t(`${p.key}`))+" ",1),p.unit?(e.openBlock(),e.createElementBlock("span",Ni," ( "+e.toDisplayString(p.unit)+" )",1)):e.createCommentVNode("",!0)]),e.createElementVNode("td",Ti,[p.img?(e.openBlock(),e.createElementBlock("img",{key:0,src:p==null?void 0:p.value0,style:{height:"30px"}},null,8,Di)):(e.openBlock(),e.createElementBlock("span",Ei,e.toDisplayString((p==null?void 0:p.value0)??"-"),1))]),e.createElementVNode("td",Mi,[p.img?(e.openBlock(),e.createElementBlock("img",{key:0,src:p==null?void 0:p.value1,style:{height:"30px"}},null,8,Vi)):(e.openBlock(),e.createElementBlock("span",Bi,e.toDisplayString((p==null?void 0:p.value1)??"-"),1))]),e.createElementVNode("td",Ii,[p.img?(e.openBlock(),e.createElementBlock("img",{key:0,src:p==null?void 0:p.value2,style:{height:"30px"}},null,8,Ri)):(e.openBlock(),e.createElementBlock("span",Ai,e.toDisplayString((p==null?void 0:p.value2)??"-"),1))]),e.createElementVNode("td",Oi,[p.img?(e.openBlock(),e.createElementBlock("img",{key:0,src:p==null?void 0:p.value3,style:{height:"30px"}},null,8,ji)):(e.openBlock(),e.createElementBlock("span",Hi,e.toDisplayString((p==null?void 0:p.value3)??"-"),1))])]))),128))])])],2)]),e.createElementVNode("div",Fi,[e.createElementVNode("div",Gi,[e.createElementVNode("div",Wi,[(e.openBlock(),e.createElementBlock("svg",Ui,[e.createElementVNode("use",{"xlink:href":`#icon-title-${a.theme}`},null,8,Yi)])),e.createElementVNode("div",null,e.toDisplayString(o.$t("tide.tideTimes")),1)]),e.createElementVNode("div",Zi,[i.showTideDetail?(e.openBlock(),e.createBlock(c,{key:0,icon:"mdi-eye-off-outline",density:"compact",variant:"plain",size:"small",onClick:t[1]||(t[1]=p=>i.showTideDetail=!1)})):(e.openBlock(),e.createBlock(c,{key:1,icon:"mdi-eye-outline",density:"compact",variant:"plain",size:"small",onClick:l.handleTide},null,8,["onClick"]))])]),i.showTideDetail?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["w-100 gray-bg-2 rounded",a.simple?"pa-2":"pa-4"])},[e.createElementVNode("div",qi,null,512),e.createElementVNode("table",Xi,[e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",Ki,e.toDisplayString(o.$t("tide.tide")),1),e.createElementVNode("th",Ji,e.toDisplayString(o.$t("time.time"))+" ( LT ) ",1),e.createElementVNode("th",Qi,e.toDisplayString(o.$t("tide.height"))+" ( m )",1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tideTableData,(p,S)=>{var L;return e.openBlock(),e.createElementBlock("tr",{key:S},[e.createElementVNode("td",$i,e.toDisplayString(o.$t(`tide.${(L=p==null?void 0:p.type)==null?void 0:L.toLowerCase()}`))+" "+e.toDisplayString(o.$t("tide.tide")),1),e.createElementVNode("td",er,e.toDisplayString(l.computeLocalTime(p==null?void 0:p.date,a.port,"MM-DD HH:mm")),1),e.createElementVNode("td",tr,e.toDisplayString((p==null?void 0:p.height)??"-")+" m",1)])}),128))])])],2)):e.createCommentVNode("",!0)])],2)]}),_:1},8,["class"])}const go=O(ei,[["render",or],["__scopeId","data-v-d2a8c4e9"]]),Ad="",ar={name:"IdmPort",components:{PortDetail:go},props:{map:{type:Object},ports:{type:Object},beforeLayer:{type:String},forecastModel:{type:String}},setup(){return{Theme:le.useTheme()}},emits:["closeAllDetail"],data(){return{source:"port-source",layer:"port-layer",showInfo:!1,showDetail:!1,portId:void 0,port:{},hoverPort:{},marker:void 0}},watch:{ports:{handler(){var o,t,a,r,i,l;this.ports?(this.handleRender(),(o=this.map)==null||o.on("click",[this.layer],this.handleClick),(t=this.map)==null||t.on("mousemove",[this.layer],this.handleHover),(a=this.map)==null||a.on("mouseleave",[this.layer],this.handleLeave)):(this.handleClear(),(r=this.map)==null||r.off("click",[this.layer],this.handleClick),(i=this.map)==null||i.off("mousemove",[this.layer],this.handleHover),(l=this.map)==null||l.off("mouseleave",[this.layer],this.handleLeave))},immediate:!0}},methods:{handleRender(){var o;this.ports&&(this.map.getSource(this.source)?(o=this.map)==null||o.getSource(this.source).setData(this.ports):(this.map.addSource(this.source,{type:"geojson",data:this.ports}),this.map.addLayer({id:this.layer,type:"symbol",source:this.source,filter:["all",["==","$type","Point"],["!=","disabled",!0]],layout:{"symbol-placement":"point","icon-size":1,"icon-image":"port","icon-offset":[0,-13],"icon-allow-overlap":!1,"icon-ignore-placement":!1,"icon-padding":4,"text-anchor":"bottom","text-field":"{name}","text-rotation-alignment":"viewport","text-size":10,"text-offset":[0,1.6]},paint:{"text-color":this.Theme.current.value.colors["on-surface"]}},this.beforeLayer)))},handleClear(){this.showInfo=!1,this.showDetail=!1,this.map.getLayer(this.layer)&&this.map.removeLayer(this.layer),this.map.getSource(this.source)&&this.map.removeSource(this.source)},handleClick(o){const t=o.features[0];this.portId=t.properties.id,t.properties.id&&(this.port=t.properties,this.port.lng=t.geometry.coordinates[0],this.port.lat=t.geometry.coordinates[1],this.port.forecastModel=this.forecastModel,this.showDetail=!0)},handleHover(o){var r,i;this.map.getCanvas().style.cursor="pointer";const t=o.features[0];if(t.properties.id){this.showInfo=!0,this.hoverPort=t.properties,(r=this.marker)==null||r.remove();const l=(i=document.getElementById("idmPortInfo"))==null?void 0:i.cloneNode(!0);this.marker=new de.Marker(l).setLngLat([o.lngLat.lng,o.lngLat.lat]).setOffset([0,-70]).addTo(this.map)}},handleLeave(){var o;this.showInfo=!1,this.hoverPort={},(o=this.marker)==null||o.remove(),this.map.getCanvas().style.cursor="grab"},handleCloseDetail(){this.showDetail=!1}}},ir={class:"port-box d-flex flex-column justify-center align-start ga-1"},rr={class:"d-flex justify-start align-center text-label"},lr={class:"d-flex justify-start align-center text-label"};function sr(o,t,a,r,i,l){const s=e.resolveComponent("VCardText"),c=e.resolveComponent("VCard"),n=e.resolveComponent("PortDetail");return e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createVNode(c,{id:"idmPortInfo",ref:"idmPortInfo"},{default:e.withCtx(()=>[e.createVNode(s,{class:"text-body-1 pr-8"},{default:e.withCtx(()=>[e.createElementVNode("div",ir,[e.createElementVNode("div",null,e.toDisplayString(o.$t("port.port")),1),e.createElementVNode("div",rr,[e.createElementVNode("span",null,e.toDisplayString(i.hoverPort.name??"-"),1)]),e.createElementVNode("div",lr,[t[1]||(t[1]=e.createElementVNode("label",{class:"pr-1"},"LoCode : ",-1)),e.createElementVNode("span",null,e.toDisplayString(i.hoverPort.loCode??"-"),1)])])]),_:1})]),_:1},512),[[e.vShow,i.showInfo]]),i.showDetail?(e.openBlock(),e.createBlock(n,e.mergeProps({key:0,portId:i.portId,port:i.port,forecastModel:a.forecastModel,onClose:l.handleCloseDetail,onCloseAllDetail:t[0]||(t[0]=h=>o.$emit("closeAllDetail",{ports:!0}))},o.$attrs),null,16,["portId","port","forecastModel","onClose"])):e.createCommentVNode("",!0)])}const nr=O(ar,[["render",sr],["__scopeId","data-v-0c0f27d3"]]),cr={name:"IdmLoadLine",props:{map:{type:Object},show:{type:Boolean},beforeLayer:{type:String}},setup(){return{Theme:le.useTheme()}},data(){return{layer:"loadlines-fill",labelLayer:"loadlines-label"}},watch:{show:{handler(){this.show?this.handleRender():this.handleClear()},immediate:!0}},methods:{handleRender(){var o,t;(o=this.map)!=null&&o.getLayer(this.layer)&&this.map.setLayoutProperty(this.layer,"visibility","visible"),(t=this.map)!=null&&t.getLayer(this.labelLayer)&&this.map.setLayoutProperty(this.labelLayer,"visibility","visible")},handleClear(){var o,t;(o=this.map)!=null&&o.getLayer(this.layer)&&this.map.setLayoutProperty(this.layer,"visibility","none"),(t=this.map)!=null&&t.getLayer(this.labelLayer)&&this.map.setLayoutProperty(this.labelLayer,"visibility","none")}}};function mr(o,t,a,r,i,l){return e.openBlock(),e.createElementBlock("div")}const dr=O(cr,[["render",mr]]),hr={name:"IdmTimezone",props:{map:{type:Object},zone:{type:Object},beforeLayer:{type:String}},setup(){return{Theme:le.useTheme()}},data(){return{source:"time-zone-source",zoneLayer:"time-zone-layer",zoneBorderLayer:"time-zone-border-layer",zoneLabelLayer:"time-zone-label-layer",marker:null}},computed:{timeZoneName(){return o=>{var a;return(a=v.tz.names().filter(r=>v.tz(v(),r).utcOffset()===o*60))==null?void 0:a[0]}}},watch:{zone:{handler(){var o,t,a,r;this.zone?(this.handleRender(),(o=this.map)==null||o.on("mousemove",[this.zoneLayer],this.handleHover),(t=this.map)==null||t.on("click",[this.zoneLayer],this.handleHover)):(this.handleClear(),(a=this.map)==null||a.off("mousemove",[this.zoneLayer],this.handleHover),(r=this.map)==null||r.off("click",[this.zoneLayer],this.handleHover))},immediate:!0}},methods:{handleRender(){var t;this.handleClear();let o={features:[],type:"FeatureCollection"};o.features=(t=this.zone.features)==null?void 0:t.map(a=>(a.properties.opacity=0,a.properties.lineOpacity=.2,a.properties.width=1,a)),this.zone&&(this.map.addSource(this.source,{type:"geojson",data:o}),this.map.addLayer({id:this.zoneLayer,type:"fill",source:this.source,filter:["all",["==","$type","Polygon"]],paint:{"fill-opacity":["get","opacity"],"fill-color":["match",["get","offSet"],"-11.5","rgba(255, 92, 88, 1)","-11","rgba(39, 195, 70, 1)","-10.5","rgba(39, 195, 70, 1)","-10","rgba(40, 106, 255, 1)","-9.5","rgba(40, 106, 255, 1)","-9","rgba(255, 92, 88, 1)","-8.5","rgba(255, 92, 88, 1)","-8","rgba(39, 195, 70, 1)","-7.5","rgba(39, 195, 70, 1)","-7","rgba(40, 106, 255, 1)","-6.5","rgba(40, 106, 255, 1)","-6","rgba(255, 92, 88, 1)","-5.5","rgba(255, 92, 88, 1)","-5","rgba(39, 195, 70, 1)","-4.5","rgba(39, 195, 70, 1)","-4","rgba(40, 106, 255, 1)","-3.5","rgba(40, 106, 255, 1)","-3","rgba(255, 92, 88, 1)","-2.5","rgba(255, 92, 88, 1)","-2","rgba(39, 195, 70, 1)","-1.5","rgba(39, 195, 70, 1)","-1","rgba(40, 106, 255, 1)","-0.5","rgba(40, 106, 255, 1)","+0","rgba(255, 92, 88, 1)","+0.5","rgba(255, 92, 88, 1)","+1","rgba(39, 195, 70, 1)","+1.5","rgba(39, 195, 70, 1)","+2","rgba(40, 106, 255, 1)","+2.5","rgba(40, 106, 255, 1)","+3","rgba(255, 92, 88, 1)","+3.5","rgba(255, 92, 88, 1)","+4","rgba(39, 195, 70, 1)","+4.5","rgba(39, 195, 70, 1)","+5","rgba(40, 106, 255, 1)","+5.5","rgba(40, 106, 255, 1)","+6","rgba(255, 92, 88, 1)","+6.5","rgba(255, 92, 88, 1)","+7","rgba(39, 195, 70, 1)","+7.5","rgba(39, 195, 70, 1)","+8","rgba(40, 106, 255, 1)","+8.5","rgba(40, 106, 255, 1)","+9","rgba(255, 92, 88, 1)","+9.5","rgba(255, 92, 88, 1)","+10","rgba(39, 195, 70, 1)","+10.5","rgba(39, 195, 70, 1)","+11","rgba(40, 106, 255, 1)","+11.5","rgba(40, 106, 255, 1)","rgba(255, 92, 88, 1)"]}},this.beforeLayer),this.map.addLayer({id:this.zoneBorderLayer,type:"line",source:this.source,filter:["==","$type","Polygon"],paint:{"line-color":this.Theme.current.value.colors["on-surface"],"line-opacity":["get","lineOpacity"],"line-width":["get","width"]}},this.beforeLayer))},handleClear(){var o;this.map.getLayer(this.zoneLayer)&&this.map.removeLayer(this.zoneLayer),this.map.getLayer(this.zoneBorderLayer)&&this.map.removeLayer(this.zoneBorderLayer),this.map.getLayer(this.zoneLabelLayer)&&this.map.removeLayer(this.zoneLabelLayer),this.map.getSource(this.source)&&this.map.removeSource(this.source),(o=this.marker)==null||o.remove()},handleHover(o){var t,a,r;if(o.features.length){(t=this.marker)==null||t.remove();let i={features:[],type:"FeatureCollection"};i.features=(a=this.zone.features)==null?void 0:a.map(s=>{const c=JSON.parse(JSON.stringify(s));return c.properties.offSet===o.features[0].properties.offSet?(c.properties.opacity=.25,c.properties.lineOpacity=.7,c.properties.width=2):(c.properties.opacity=0,c.properties.lineOpacity=.2,c.properties.width=1),c}),(r=this.map.getSource(this.source))==null||r.setData(i);const l=document.createElement("div");l.className="v-card--variant-elevated rounded px-2 py-1 text-body-1",l.innerHTML=`<div>UTC ${o.features[0].properties.offSet}:00</div>
5
+ </div>`)}),r}},legend:{show:!0,right:20,top:0,itemWidth:30,data:["Height"],selected:{Speed:!0,Draught:!1},textStyle:{color:this.Theme.current.value.colors["on-surface"]}},grid:{top:40,left:10,right:10,bottom:30,containLabel:!0},xAxis:[{type:"category",data:this.xDate,boundaryGap:!0,axisTick:{alignWithLabel:!0,lineStyle:{color:this.Theme.current.value.colors["surface-bright"]}},axisLine:{show:!0,lineStyle:{color:this.Theme.current.value.colors["surface-bright"]}},axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:12,color:this.Theme.current.value.colors["surface-bright"]}}}],yAxis:[{name:"(m)",show:!0,nameLocation:"end",position:"left",nameGap:15,splitNumber:5,splitLine:{show:!0,lineStyle:{color:this.Theme.current.value.colors["surface-bright"]}},alignTicks:!0,axisLine:{show:!0,lineStyle:{color:this.Theme.current.value.colors["surface-bright"]}},axisLabel:{textStyle:{fontSize:12,color:this.Theme.current.value.colors["surface-bright"]}}}],series:[{name:"Height",type:"line",showSymbol:!0,yAxisIndex:0,lineStyle:{color:this.Theme.current.value.colors["map-perple"]},itemStyle:{color:this.Theme.current.value.colors["map-perple"]},data:this.echartData.height}]};o==null||o.setOption(t)}}},ti={class:"d-flex justify-space-between align-center"},oi={class:"d-flex justify-start text-h5 my-2"},ai={key:0,class:"d-flex justify-end align-center"},ii={key:1,class:"d-flex justify-end align-center"},ri={class:"d-flex justify-start align-center text-body-1 text-label ga-3"},li={key:0,class:"btns-box w-100 d-flex justify-center align-center ga-2 mt-2 px-5",style:{height:"48px"}},si={class:"summary-box"},ni={class:"d-flex justify-space-between align-center py-2"},ci={class:"d-flex justify-center align-center text-h6 ga-2"},mi={class:"multi-color-icon","aria-hidden":"true"},di=["xlink:href"],hi={class:"gray-bg-2 rounded d-flex flex-column ga-4 pa-4"},pi={class:"w-100 d-flex justify-start align-center"},gi={class:"w-30 text-label font-weight-400"},ui={class:"flex-1-1-0"},fi={class:"w-100 d-flex justify-start align-center"},yi={class:"w-30 text-label font-weight-400"},bi={class:"flex-1-1-0"},wi={class:"w-100 d-flex justify-start align-center"},xi={class:"w-30 text-label font-weight-400"},_i={class:"flex-1-1-0"},ki={class:"table-box w-100 mt-2"},zi={class:"w-100 d-flex justify-space-between align-center py-2"},vi={class:"d-flex justify-center align-center text-h6 ga-2"},Li={class:"multi-color-icon","aria-hidden":"true"},Ci=["xlink:href"],Pi={"fixed-header":"",density:"compact",class:"w-100 forecast-table bg-none"},Si={class:"px-1 text-left text-label font-weight-400",width:"120"},Ni={key:0,class:""},Ti={class:"px-1 text-center"},Di=["src"],Ei={key:1},Mi={class:"px-1 text-center"},Vi=["src"],Bi={key:1},Ii={class:"px-1 text-center"},Ri=["src"],Ai={key:1},Oi={class:"px-1 text-center"},ji=["src"],Hi={key:1},Fi={class:"table-box w-100 mt-2 d-flex flex-column justify-start align-center"},Gi={class:"w-100 d-flex justify-space-between align-center py-2"},Wi={class:"d-flex justify-center align-center text-h6 ga-2"},Ui={class:"multi-color-icon","aria-hidden":"true"},Yi=["xlink:href"],Zi={class:"text-body-2 ga-2"},qi={ref:"tideEchart",class:"w-100",style:{height:"200px"}},Xi={"fixed-header":"",density:"compact",class:"w-100 tide-table bg-none"},Ki={class:"px-1 text-center text-label font-weight-400",width:"120"},Ji={class:"px-1 text-center text-label font-weight-400",width:"120"},Qi={class:"px-1 text-center text-label font-weight-400",width:"120"},$i={class:"px-1 text-center"},er={class:"px-1 text-center"},tr={class:"px-1 text-center"};function or(o,t,a,r,i,l){const s=e.resolveComponent("VIcon"),c=e.resolveComponent("VBtn"),n=e.resolveComponent("v-icon"),h=e.resolveComponent("VCardTitle"),d=e.resolveComponent("VDivider"),g=e.resolveComponent("VBtnToggle"),u=e.resolveComponent("VCard");return e.openBlock(),e.createBlock(u,{class:e.normalizeClass(["port-detail-container d-flex flex-column justify-start align-center",a.simple?"page":"dialog"])},{default:e.withCtx(()=>{var x,y,_;return[e.createVNode(h,{class:"w-100"},{default:e.withCtx(()=>{var p,S,L,k,f,w;return[e.createElementVNode("div",ti,[e.createElementVNode("div",oi,[e.createElementVNode("div",{class:e.normalizeClass(["fi mr-2 rounded elevation-4",`fi-${(p=a.port)!=null&&p.cntLoCode?(L=(S=a.port)==null?void 0:S.cntLoCode)==null?void 0:L.toLowerCase():"xx"}`]),style:{width:"36px",height:"24px"}},null,2),e.createElementVNode("div",null,e.toDisplayString((k=a.port)==null?void 0:k.name),1)]),a.simple?(e.openBlock(),e.createElementBlock("div",ai,[(f=a.followList)!=null&&f.some(z=>{var b;return((b=z.port)==null?void 0:b.id)===a.portId})?(e.openBlock(),e.createBlock(c,{key:0,class:"text-none rounded-circle",variant:"text",density:"compact",height:"32",width:"28","min-width":"28",onClick:l.handleCancelFollow},{default:e.withCtx(()=>[e.createVNode(s,{icon:"mdi-star",color:"warning",size:"20"})]),_:1},8,["onClick"])):(e.openBlock(),e.createBlock(c,{key:1,class:"text-none rounded-circle",variant:"text",density:"compact",height:"32",width:"28","min-width":"28",onClick:l.handleFollow},{default:e.withCtx(()=>[e.createVNode(n,{icon:"mdi-star-outline",size:"20"})]),_:1},8,["onClick"])),e.createVNode(c,{icon:"",density:"compact",variant:"plain",class:"mr-n2",onClick:l.handleClose},{default:e.withCtx(()=>t[2]||(t[2]=[e.createElementVNode("i",{class:"iconfont icon-close text-label text-h4"},null,-1)])),_:1,__:[2]},8,["onClick"])])):(e.openBlock(),e.createElementBlock("div",ii,[e.createVNode(c,{icon:"",density:"compact",variant:"plain",class:"mr-n2",onClick:l.handleClose},{default:e.withCtx(()=>t[3]||(t[3]=[e.createElementVNode("i",{class:"iconfont icon-close text-label text-h4"},null,-1)])),_:1,__:[3]},8,["onClick"])]))]),e.createElementVNode("div",ri,[e.createElementVNode("div",null,e.toDisplayString(o.$t("port.port")),1),e.createElementVNode("div",null,[t[4]||(t[4]=e.createElementVNode("label",null,"UN/LOCODE: ",-1)),e.createElementVNode("span",null,e.toDisplayString((w=a.port)==null?void 0:w.cntLoCode),1)])])]}),_:1}),e.createVNode(d,{class:"w-100"}),a.simple?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",li,[(x=a.followList)!=null&&x.some(p=>{var S;return((S=p.port)==null?void 0:S.id)===a.portId})?(e.openBlock(),e.createBlock(c,{key:0,class:"text-none text-body-1 rounded flex-1-1-0 btn-bg-3",variant:"tonal",density:"compact",height:"32","prepend-icon":"mdi-star",onClick:l.handleCancelFollow},{prepend:e.withCtx(()=>[e.createVNode(s,{color:"warning"})]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(o.$t("actions.unfollow")),1)]),_:1},8,["onClick"])):(e.openBlock(),e.createBlock(c,{key:1,class:"text-none text-body-1 rounded flex-1-1-0 btn-bg-3",variant:"tonal",density:"compact",height:"32","prepend-icon":"mdi-star-outline",onClick:l.handleFollow},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("actions.follow")),1)]),_:1},8,["onClick"])),e.createVNode(c,{class:"text-none text-body-1 rounded flex-1-1-0 btn-bg-3",variant:"tonal",density:"compact",height:"32",onClick:l.handleMeteoMore},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("actions.7dayForcast")),1)]),_:1},8,["onClick"])])),e.createElementVNode("div",{ref:"scrollDom",class:e.normalizeClass(["w-100 pt-0 flex-1-1-0 overflow-y-auto scroll mb-4",a.simple?"px-3":"px-5"])},[e.createElementVNode("div",si,[e.createElementVNode("div",ni,[e.createElementVNode("div",ci,[(e.openBlock(),e.createElementBlock("svg",mi,[e.createElementVNode("use",{"xlink:href":`#icon-title-${a.theme}`},null,8,di)])),e.createElementVNode("div",null,e.toDisplayString(o.$t("detail.summary")),1)]),t[5]||(t[5]=e.createElementVNode("div",{class:"text-body-2 text-success ga-2"},null,-1))]),e.createElementVNode("div",hi,[e.createElementVNode("div",pi,[e.createElementVNode("div",gi,e.toDisplayString(o.$t("port.region")),1),e.createElementVNode("div",ui,e.toDisplayString(((y=a.port)==null?void 0:y.region)??((_=a.port)==null?void 0:_.city)??"-"),1)]),e.createElementVNode("div",fi,[e.createElementVNode("div",yi,e.toDisplayString(o.$t("port.position")),1),e.createElementVNode("div",bi,e.toDisplayString(l.computePosition(a.port)),1)]),e.createElementVNode("div",wi,[e.createElementVNode("div",xi,e.toDisplayString(o.$t("time.localTime")),1),e.createElementVNode("div",_i,e.toDisplayString(l.computeLocalTime(a.realTime,a.port))+" "+e.toDisplayString(l.computeTimeOffset(a.port)),1)])])]),e.createElementVNode("div",ki,[e.createElementVNode("div",zi,[e.createElementVNode("div",vi,[(e.openBlock(),e.createElementBlock("svg",Li,[e.createElementVNode("use",{"xlink:href":`#icon-title-${a.theme}`},null,8,Ci)])),e.createElementVNode("div",null,e.toDisplayString(o.$t("weather.weather")),1)]),t[6]||(t[6]=e.createElementVNode("div",{class:"text-body-2 text-success ga-2"},null,-1))]),e.createElementVNode("div",{class:e.normalizeClass(["w-100 gray-bg-2 rounded",a.simple?"pa-2":"pa-4"])},[e.createVNode(g,{modelValue:i.currentIndex,"onUpdate:modelValue":t[0]||(t[0]=p=>i.currentIndex=p),class:"w-100 gray-bg-1 rounded d-flex justify-space-around align-center ga-0 px-1 mb-2",density:"compact",group:"",height:"26","min-height":"26",rounded:"1"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.dateList,p=>(e.openBlock(),e.createBlock(c,{class:"text-none text-body-1 rounded bg-none flex-1-1-0",density:"compact",color:"primary",height:"26",value:p.index},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(p.label),1)]),_:2},1032,["value"]))),256))]),_:1},8,["modelValue"]),e.createElementVNode("table",Pi,[e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tableData,p=>(e.openBlock(),e.createElementBlock("tr",{key:p.id},[e.createElementVNode("th",Si,[e.createTextVNode(e.toDisplayString(o.$t(`${p.key}`))+" ",1),p.unit?(e.openBlock(),e.createElementBlock("span",Ni," ( "+e.toDisplayString(p.unit)+" )",1)):e.createCommentVNode("",!0)]),e.createElementVNode("td",Ti,[p.img?(e.openBlock(),e.createElementBlock("img",{key:0,src:p==null?void 0:p.value0,style:{height:"30px"}},null,8,Di)):(e.openBlock(),e.createElementBlock("span",Ei,e.toDisplayString((p==null?void 0:p.value0)??"-"),1))]),e.createElementVNode("td",Mi,[p.img?(e.openBlock(),e.createElementBlock("img",{key:0,src:p==null?void 0:p.value1,style:{height:"30px"}},null,8,Vi)):(e.openBlock(),e.createElementBlock("span",Bi,e.toDisplayString((p==null?void 0:p.value1)??"-"),1))]),e.createElementVNode("td",Ii,[p.img?(e.openBlock(),e.createElementBlock("img",{key:0,src:p==null?void 0:p.value2,style:{height:"30px"}},null,8,Ri)):(e.openBlock(),e.createElementBlock("span",Ai,e.toDisplayString((p==null?void 0:p.value2)??"-"),1))]),e.createElementVNode("td",Oi,[p.img?(e.openBlock(),e.createElementBlock("img",{key:0,src:p==null?void 0:p.value3,style:{height:"30px"}},null,8,ji)):(e.openBlock(),e.createElementBlock("span",Hi,e.toDisplayString((p==null?void 0:p.value3)??"-"),1))])]))),128))])])],2)]),e.createElementVNode("div",Fi,[e.createElementVNode("div",Gi,[e.createElementVNode("div",Wi,[(e.openBlock(),e.createElementBlock("svg",Ui,[e.createElementVNode("use",{"xlink:href":`#icon-title-${a.theme}`},null,8,Yi)])),e.createElementVNode("div",null,e.toDisplayString(o.$t("tide.tideTimes")),1)]),e.createElementVNode("div",Zi,[i.showTideDetail?(e.openBlock(),e.createBlock(c,{key:0,icon:"mdi-eye-off-outline",density:"compact",variant:"plain",size:"small",onClick:t[1]||(t[1]=p=>i.showTideDetail=!1)})):(e.openBlock(),e.createBlock(c,{key:1,icon:"mdi-eye-outline",density:"compact",variant:"plain",size:"small",onClick:l.handleTide},null,8,["onClick"]))])]),i.showTideDetail?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["w-100 gray-bg-2 rounded",a.simple?"pa-2":"pa-4"])},[e.createElementVNode("div",qi,null,512),e.createElementVNode("table",Xi,[e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",Ki,e.toDisplayString(o.$t("tide.tide")),1),e.createElementVNode("th",Ji,e.toDisplayString(o.$t("time.time"))+" ( LT ) ",1),e.createElementVNode("th",Qi,e.toDisplayString(o.$t("tide.height"))+" ( m )",1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tideTableData,(p,S)=>{var L;return e.openBlock(),e.createElementBlock("tr",{key:S},[e.createElementVNode("td",$i,e.toDisplayString(o.$t(`tide.${(L=p==null?void 0:p.type)==null?void 0:L.toLowerCase()}`))+" "+e.toDisplayString(o.$t("tide.tide")),1),e.createElementVNode("td",er,e.toDisplayString(l.computeLocalTime(p==null?void 0:p.date,a.port,"MM-DD HH:mm")),1),e.createElementVNode("td",tr,e.toDisplayString((p==null?void 0:p.height)??"-")+" m",1)])}),128))])])],2)):e.createCommentVNode("",!0)])],2)]}),_:1},8,["class"])}const go=O(ei,[["render",or],["__scopeId","data-v-6517c4e5"]]),Ad="",ar={name:"IdmPort",components:{PortDetail:go},props:{map:{type:Object},ports:{type:Object},beforeLayer:{type:String},forecastModel:{type:String}},setup(){return{Theme:le.useTheme()}},emits:["closeAllDetail"],data(){return{source:"port-source",layer:"port-layer",showInfo:!1,showDetail:!1,portId:void 0,port:{},hoverPort:{},marker:void 0}},watch:{ports:{handler(){var o,t,a,r,i,l;this.ports?(this.handleRender(),(o=this.map)==null||o.on("click",[this.layer],this.handleClick),(t=this.map)==null||t.on("mousemove",[this.layer],this.handleHover),(a=this.map)==null||a.on("mouseleave",[this.layer],this.handleLeave)):(this.handleClear(),(r=this.map)==null||r.off("click",[this.layer],this.handleClick),(i=this.map)==null||i.off("mousemove",[this.layer],this.handleHover),(l=this.map)==null||l.off("mouseleave",[this.layer],this.handleLeave))},immediate:!0}},methods:{handleRender(){var o;this.ports&&(this.map.getSource(this.source)?(o=this.map)==null||o.getSource(this.source).setData(this.ports):(this.map.addSource(this.source,{type:"geojson",data:this.ports}),this.map.addLayer({id:this.layer,type:"symbol",source:this.source,filter:["all",["==","$type","Point"],["!=","disabled",!0]],layout:{"symbol-placement":"point","icon-size":1,"icon-image":"port","icon-offset":[0,-13],"icon-allow-overlap":!1,"icon-ignore-placement":!1,"icon-padding":4,"text-anchor":"bottom","text-field":"{name}","text-rotation-alignment":"viewport","text-size":10,"text-offset":[0,1.6]},paint:{"text-color":this.Theme.current.value.colors["on-surface"]}},this.beforeLayer)))},handleClear(){this.showInfo=!1,this.showDetail=!1,this.map.getLayer(this.layer)&&this.map.removeLayer(this.layer),this.map.getSource(this.source)&&this.map.removeSource(this.source)},handleClick(o){const t=o.features[0];this.portId=t.properties.id,t.properties.id&&(this.port=t.properties,this.port.lng=t.geometry.coordinates[0],this.port.lat=t.geometry.coordinates[1],this.port.forecastModel=this.forecastModel,this.showDetail=!0)},handleHover(o){var r,i;this.map.getCanvas().style.cursor="pointer";const t=o.features[0];if(t.properties.id){this.showInfo=!0,this.hoverPort=t.properties,(r=this.marker)==null||r.remove();const l=(i=document.getElementById("idmPortInfo"))==null?void 0:i.cloneNode(!0);this.marker=new de.Marker(l).setLngLat([o.lngLat.lng,o.lngLat.lat]).setOffset([0,-70]).addTo(this.map)}},handleLeave(){var o;this.showInfo=!1,this.hoverPort={},(o=this.marker)==null||o.remove(),this.map.getCanvas().style.cursor="grab"},handleCloseDetail(){this.showDetail=!1}}},ir={class:"port-box d-flex flex-column justify-center align-start ga-1"},rr={class:"d-flex justify-start align-center text-label"},lr={class:"d-flex justify-start align-center text-label"};function sr(o,t,a,r,i,l){const s=e.resolveComponent("VCardText"),c=e.resolveComponent("VCard"),n=e.resolveComponent("PortDetail");return e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createVNode(c,{id:"idmPortInfo",ref:"idmPortInfo"},{default:e.withCtx(()=>[e.createVNode(s,{class:"text-body-1 pr-8"},{default:e.withCtx(()=>[e.createElementVNode("div",ir,[e.createElementVNode("div",null,e.toDisplayString(o.$t("port.port")),1),e.createElementVNode("div",rr,[e.createElementVNode("span",null,e.toDisplayString(i.hoverPort.name??"-"),1)]),e.createElementVNode("div",lr,[t[1]||(t[1]=e.createElementVNode("label",{class:"pr-1"},"LoCode : ",-1)),e.createElementVNode("span",null,e.toDisplayString(i.hoverPort.loCode??"-"),1)])])]),_:1})]),_:1},512),[[e.vShow,i.showInfo]]),i.showDetail?(e.openBlock(),e.createBlock(n,e.mergeProps({key:0,portId:i.portId,port:i.port,forecastModel:a.forecastModel,onClose:l.handleCloseDetail,onCloseAllDetail:t[0]||(t[0]=h=>o.$emit("closeAllDetail",{ports:!0}))},o.$attrs),null,16,["portId","port","forecastModel","onClose"])):e.createCommentVNode("",!0)])}const nr=O(ar,[["render",sr],["__scopeId","data-v-0c0f27d3"]]),cr={name:"IdmLoadLine",props:{map:{type:Object},show:{type:Boolean},beforeLayer:{type:String}},setup(){return{Theme:le.useTheme()}},data(){return{layer:"loadlines-fill",labelLayer:"loadlines-label"}},watch:{show:{handler(){this.show?this.handleRender():this.handleClear()},immediate:!0}},methods:{handleRender(){var o,t;(o=this.map)!=null&&o.getLayer(this.layer)&&this.map.setLayoutProperty(this.layer,"visibility","visible"),(t=this.map)!=null&&t.getLayer(this.labelLayer)&&this.map.setLayoutProperty(this.labelLayer,"visibility","visible")},handleClear(){var o,t;(o=this.map)!=null&&o.getLayer(this.layer)&&this.map.setLayoutProperty(this.layer,"visibility","none"),(t=this.map)!=null&&t.getLayer(this.labelLayer)&&this.map.setLayoutProperty(this.labelLayer,"visibility","none")}}};function mr(o,t,a,r,i,l){return e.openBlock(),e.createElementBlock("div")}const dr=O(cr,[["render",mr]]),hr={name:"IdmTimezone",props:{map:{type:Object},zone:{type:Object},beforeLayer:{type:String}},setup(){return{Theme:le.useTheme()}},data(){return{source:"time-zone-source",zoneLayer:"time-zone-layer",zoneBorderLayer:"time-zone-border-layer",zoneLabelLayer:"time-zone-label-layer",marker:null}},computed:{timeZoneName(){return o=>{var a;return(a=v.tz.names().filter(r=>v.tz(v(),r).utcOffset()===o*60))==null?void 0:a[0]}}},watch:{zone:{handler(){var o,t,a,r;this.zone?(this.handleRender(),(o=this.map)==null||o.on("mousemove",[this.zoneLayer],this.handleHover),(t=this.map)==null||t.on("click",[this.zoneLayer],this.handleHover)):(this.handleClear(),(a=this.map)==null||a.off("mousemove",[this.zoneLayer],this.handleHover),(r=this.map)==null||r.off("click",[this.zoneLayer],this.handleHover))},immediate:!0}},methods:{handleRender(){var t;this.handleClear();let o={features:[],type:"FeatureCollection"};o.features=(t=this.zone.features)==null?void 0:t.map(a=>(a.properties.opacity=0,a.properties.lineOpacity=.2,a.properties.width=1,a)),this.zone&&(this.map.addSource(this.source,{type:"geojson",data:o}),this.map.addLayer({id:this.zoneLayer,type:"fill",source:this.source,filter:["all",["==","$type","Polygon"]],paint:{"fill-opacity":["get","opacity"],"fill-color":["match",["get","offSet"],"-11.5","rgba(255, 92, 88, 1)","-11","rgba(39, 195, 70, 1)","-10.5","rgba(39, 195, 70, 1)","-10","rgba(40, 106, 255, 1)","-9.5","rgba(40, 106, 255, 1)","-9","rgba(255, 92, 88, 1)","-8.5","rgba(255, 92, 88, 1)","-8","rgba(39, 195, 70, 1)","-7.5","rgba(39, 195, 70, 1)","-7","rgba(40, 106, 255, 1)","-6.5","rgba(40, 106, 255, 1)","-6","rgba(255, 92, 88, 1)","-5.5","rgba(255, 92, 88, 1)","-5","rgba(39, 195, 70, 1)","-4.5","rgba(39, 195, 70, 1)","-4","rgba(40, 106, 255, 1)","-3.5","rgba(40, 106, 255, 1)","-3","rgba(255, 92, 88, 1)","-2.5","rgba(255, 92, 88, 1)","-2","rgba(39, 195, 70, 1)","-1.5","rgba(39, 195, 70, 1)","-1","rgba(40, 106, 255, 1)","-0.5","rgba(40, 106, 255, 1)","+0","rgba(255, 92, 88, 1)","+0.5","rgba(255, 92, 88, 1)","+1","rgba(39, 195, 70, 1)","+1.5","rgba(39, 195, 70, 1)","+2","rgba(40, 106, 255, 1)","+2.5","rgba(40, 106, 255, 1)","+3","rgba(255, 92, 88, 1)","+3.5","rgba(255, 92, 88, 1)","+4","rgba(39, 195, 70, 1)","+4.5","rgba(39, 195, 70, 1)","+5","rgba(40, 106, 255, 1)","+5.5","rgba(40, 106, 255, 1)","+6","rgba(255, 92, 88, 1)","+6.5","rgba(255, 92, 88, 1)","+7","rgba(39, 195, 70, 1)","+7.5","rgba(39, 195, 70, 1)","+8","rgba(40, 106, 255, 1)","+8.5","rgba(40, 106, 255, 1)","+9","rgba(255, 92, 88, 1)","+9.5","rgba(255, 92, 88, 1)","+10","rgba(39, 195, 70, 1)","+10.5","rgba(39, 195, 70, 1)","+11","rgba(40, 106, 255, 1)","+11.5","rgba(40, 106, 255, 1)","rgba(255, 92, 88, 1)"]}},this.beforeLayer),this.map.addLayer({id:this.zoneBorderLayer,type:"line",source:this.source,filter:["==","$type","Polygon"],paint:{"line-color":this.Theme.current.value.colors["on-surface"],"line-opacity":["get","lineOpacity"],"line-width":["get","width"]}},this.beforeLayer))},handleClear(){var o;this.map.getLayer(this.zoneLayer)&&this.map.removeLayer(this.zoneLayer),this.map.getLayer(this.zoneBorderLayer)&&this.map.removeLayer(this.zoneBorderLayer),this.map.getLayer(this.zoneLabelLayer)&&this.map.removeLayer(this.zoneLabelLayer),this.map.getSource(this.source)&&this.map.removeSource(this.source),(o=this.marker)==null||o.remove()},handleHover(o){var t,a,r;if(o.features.length){(t=this.marker)==null||t.remove();let i={features:[],type:"FeatureCollection"};i.features=(a=this.zone.features)==null?void 0:a.map(s=>{const c=JSON.parse(JSON.stringify(s));return c.properties.offSet===o.features[0].properties.offSet?(c.properties.opacity=.25,c.properties.lineOpacity=.7,c.properties.width=2):(c.properties.opacity=0,c.properties.lineOpacity=.2,c.properties.width=1),c}),(r=this.map.getSource(this.source))==null||r.setData(i);const l=document.createElement("div");l.className="v-card--variant-elevated rounded px-2 py-1 text-body-1",l.innerHTML=`<div>UTC ${o.features[0].properties.offSet}:00</div>
6
6
  <div>${v.tz(v().format(),this.timeZoneName(o.features[0].properties.offSet)).format("MM-DD HH:mm")}`,this.marker=new de.Marker(l).setLngLat([o.lngLat.lng,o.lngLat.lat]).setOffset([0,-30]).addTo(this.map)}},handleLeave(){}}};function pr(o,t,a,r,i,l){return e.openBlock(),e.createElementBlock("div")}const gr=O(hr,[["render",pr]]),ur={name:"IdmVoluntaryReportingArea",props:{map:{type:Object},area:{type:Object},beforeLayer:{type:String}},setup(){return{Theme:le.useTheme()}},data(){return{source:"vra-source",areaLayer:"vra-layer",areaLabelLayer:"vra-label-layer"}},watch:{area:{handler(){this.area?this.handleRender():this.handleClear()},immediate:!0}},methods:{handleRender(){this.handleClear(),this.area&&(this.map.addSource(this.source,{type:"geojson",data:this.area}),this.map.addLayer({id:this.areaLayer,type:"fill",source:this.source,filter:["==","$type","Polygon"],paint:{"fill-opacity":.3,"fill-color":"rgba(144, 96, 217, 1)"}},this.beforeLayer),this.map.addLayer({id:this.areaLayer+"-border",type:"line",source:this.source,filter:["==","$type","Polygon"],paint:{"line-width":1,"line-opacity":1,"line-color":"rgba(164, 125, 222, 1)"}},this.beforeLayer),this.map.addLayer({id:this.areaLabelLayer,type:"symbol",source:this.source,filter:["==","$type","Point"],layout:{"symbol-placement":"point","icon-size":.1,"icon-image":"identify","text-anchor":"top","text-field":"{lbl}","text-rotation-alignment":"viewport","text-size":10,"text-offset":[0,1],"text-font":["DIN Pro Regular","Arial Unicode MS Regular"]},paint:{"text-color":this.Theme.current.value.colors["on-surface"]}},this.beforeLayer))},handleClear(){this.map.getLayer(this.areaLayer)&&this.map.removeLayer(this.areaLayer),this.map.getLayer(this.areaLayer+"-border")&&this.map.removeLayer(this.areaLayer+"-border"),this.map.getLayer(this.areaLabelLayer)&&this.map.removeLayer(this.areaLabelLayer),this.map.getSource(this.source)&&this.map.removeSource(this.source)}}};function fr(o,t,a,r,i,l){return e.openBlock(),e.createElementBlock("div")}const yr=O(ur,[["render",fr]]),br={name:"IdmSpecialArea",props:{map:{type:Object},area:{type:Object},beforeLayer:{type:String}},setup(){return{Theme:le.useTheme()}},data(){return{source:"special-area-source",areaLayer:"special-area-layer",areaLabelLayer:"special-area-label-layer"}},watch:{area:{handler(){this.handleRender()},immediate:!0}},methods:{handleRender(){this.handleClear(),this.area&&(this.area.features.forEach(o=>{o.geometry.type==="Polygon"&&o.geometry.coordinates.forEach(t=>T.LngLatHelper.convertToMonotonicLng2(t))}),this.map.addSource(this.source,{type:"geojson",data:this.area}),this.map.addLayer({id:this.areaLayer,type:"fill",source:this.source,filter:["==","$type","Polygon"],paint:{"fill-opacity":.25,"fill-color":this.Theme.current.value.colors["on-surface"]}},this.beforeLayer),this.map.addLayer({id:this.areaLayer+"-border",type:"line",source:this.source,filter:["==","$type","Polygon"],paint:{"line-width":1,"line-opacity":.7,"line-color":this.Theme.current.value.colors["on-surface"]}},this.beforeLayer),this.map.addLayer({id:this.areaLabelLayer,type:"symbol",source:this.source,filter:["==","$type","Point"],layout:{"symbol-placement":"point","icon-size":.7,"icon-image":"identify","text-anchor":"top","text-field":"{lbl}","text-rotation-alignment":"viewport","text-size":10,"text-offset":[0,1],"text-font":["DIN Pro Regular","Arial Unicode MS Regular"]},paint:{"text-color":this.Theme.current.value.colors["on-surface"]}},this.beforeLayer))},handleClear(){this.map.getLayer(this.areaLayer)&&this.map.removeLayer(this.areaLayer),this.map.getLayer(this.areaLayer+"-border")&&this.map.removeLayer(this.areaLayer+"-border"),this.map.getLayer(this.areaLabelLayer)&&this.map.removeLayer(this.areaLabelLayer),this.map.getSource(this.source)&&this.map.removeSource(this.source)}}};function wr(o,t,a,r,i,l){return e.openBlock(),e.createElementBlock("div")}const xr=O(br,[["render",wr]]),_r={name:"IdmTerminator",props:{map:{type:Object},area:{type:Object},beforeLayer:{type:String}},data(){return{source:"terminator-source",layer:"terminator-layer"}},watch:{area:{handler(){this.handleRender()},immediate:!0}},methods:{handleRender(){this.handleClear(),this.area&&(this.map.addSource(this.source,{type:"geojson",data:this.area}),this.map.addLayer({id:this.layer,type:"fill",source:this.source,filter:["==","$type","Polygon"],paint:{"fill-outline-color":"rgba(255,255,255,0.3)","fill-color":"rgba(0, 0, 0, 0.3)"}},this.beforeLayer))},handleClear(){this.map.getLayer(this.layer)&&this.map.removeLayer(this.layer),this.map.getSource(this.source)&&this.map.removeSource(this.source)}}};function kr(o,t,a,r,i,l){return e.openBlock(),e.createElementBlock("div")}const zr=O(_r,[["render",kr]]),vr={name:"IdmWorld12nm",props:{map:{type:Object},show:{type:Boolean},weatherLayers:{type:Object,default:()=>({})},zoom:{type:Number,default:3},left:{type:String,default:"10px"},bottom:{type:String,default:"64px"},token:{type:String,default:""}},data(){return{layer:"world-12nm-v4-20231025"}},watch:{show:{handler(){this.show?this.handleRender():this.handleClear()},immediate:!0}},methods:{handleRender(){var o;(o=this.map)!=null&&o.getLayer(this.layer)&&(this.map.setLayoutProperty(this.layer,"visibility","visible"),this.map.setPaintProperty(this.layer,"line-color","rgb(210,54,83)"),this.map.setPaintProperty(this.layer,"line-width",2))},handleClear(){var o;(o=this.map)!=null&&o.getLayer(this.layer)&&this.map.setLayoutProperty(this.layer,"visibility","none")}}};function Lr(o,t,a,r,i,l){return null}const Cr=O(vr,[["render",Lr]]),Od="",Pr={name:"IdmWorldMarine",props:{map:{type:Object},show:{type:Boolean}},data(){return{labelLayer:"ne-10m-label",lineLayer:"ne-10m-outline"}},watch:{show:{handler(){this.show?this.handleRender():this.handleClear()},immediate:!0}},methods:{handleRender(){var o,t;(o=this.map)!=null&&o.getLayer(this.lineLayer)&&(this.map.setLayoutProperty(this.lineLayer,"visibility","visible"),this.map.setPaintProperty(this.lineLayer,"line-width",1)),(t=this.map)!=null&&t.getLayer(this.labelLayer)&&this.map.setLayoutProperty(this.labelLayer,"visibility","visible")},handleClear(){var o,t;(o=this.map)!=null&&o.getLayer(this.lineLayer)&&this.map.setLayoutProperty(this.lineLayer,"visibility","none"),(t=this.map)!=null&&t.getLayer(this.labelLayer)&&this.map.setLayoutProperty(this.labelLayer,"visibility","none")}}};function Sr(o,t,a,r,i,l){return null}const Nr=O(Pr,[["render",Sr]]),Tr={name:"IdmChinaRoute",props:{map:{type:Object},show:{type:Boolean}},data(){return{labelLayer:"china-route-label",lineLayer:"china-route-line",fillLayer:"china-route-fill"}},watch:{show:{handler(){this.show?this.handleRender():this.handleClear()},immediate:!0}},methods:{handleRender(){var o,t,a;(o=this.map)!=null&&o.getLayer(this.lineLayer)&&this.map.setLayoutProperty(this.lineLayer,"visibility","visible"),(t=this.map)!=null&&t.getLayer(this.fillLayer)&&this.map.setLayoutProperty(this.fillLayer,"visibility","visible"),(a=this.map)!=null&&a.getLayer(this.labelLayer)&&this.map.setLayoutProperty(this.labelLayer,"visibility","visible")},handleClear(){var o,t,a;(o=this.map)!=null&&o.getLayer(this.lineLayer)&&this.map.setLayoutProperty(this.lineLayer,"visibility","none"),(t=this.map)!=null&&t.getLayer(this.fillLayer)&&this.map.setLayoutProperty(this.fillLayer,"visibility","none"),(a=this.map)!=null&&a.getLayer(this.labelLayer)&&this.map.setLayoutProperty(this.labelLayer,"visibility","none")}}};function Dr(o,t,a,r,i,l){return null}const Er=O(Tr,[["render",Dr]]),jd="",Hd="",Mr={name:"IdmTideStations",props:{simple:{type:Boolean,default:!1},map:{type:Object},gateway:{type:String},token:{type:String},defaultMeteoToken:{type:String},theme:{type:String},locale:{type:String},realTime:{type:String},timeZone:{type:Number},forecastModel:{type:String},station:{type:Object}},setup(){return{Theme:le.useTheme()}},emits:["close","closeAllDetail"],data(){return{tideData:{},tideTableData:[],currentIndex:0,xDate:[],echartData:{}}},computed:{dateList(){var a,r,i,l;const o=[],t=(a=this.station)!=null&&a.lng&&((r=this.station)!=null&&r.lat)?T.LngLatHelper.guessTimeZoneOffset((i=this.station)==null?void 0:i.lng,(l=this.station)==null?void 0:l.lat):0;for(let s=0;s<4;s++){let c={index:s,dateTimeList:[],label:v().utcOffset(t).add(s,"days").format("MM-DD ddd"),startTime:v().utcOffset(t).add(s,"days").set({hour:0,minute:0,second:0,millisecond:0}).format(),dateTime:v().utcOffset(t).add(s,"days").format()};for(let n=0;n<4;n++)c.dateTimeList.push(v(c.startTime).utcOffset(t).add(n*3,"hours").utc().format());o.push(c)}return o},computeLocalTime(){return function(o,t,a="yyyy-MM-DD HH:mm"){if(!o||!t||t.lng===null||t.lng===void 0||isNaN(t.lng)||t.lat===null||t.lat===void 0||isNaN(t.lat))return"-";const r=t!=null&&t.lng&&(t!=null&&t.lat)?T.LngLatHelper.guessTimeZoneOffset(t==null?void 0:t.lng,t==null?void 0:t.lat):0;return v(o).utcOffset(r).format(a)}},computeTimeOffset(){return function(o){if(!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat))return"-";const t=T.LngLatHelper.guessTimeZoneOffset(o==null?void 0:o.lng,o==null?void 0:o.lat);return"( UTC "+(t>=0?"+":"")+t+" )"}},computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":T.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+" / "+T.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}},computeRoundPrecision(){return function(o,t=4){return o==null||isNaN(o)||isNaN(t)?"-":T.LngLatHelper.roundPrecision(o,t)}}},watch:{theme:{handler(){this.$nextTick(()=>{this.initEchart()})}},currentIndex:{handler(){this.initTideTableData(this.tideData)}},station:{handler(){this.$emit("closeAllDetail",{tide:!0}),this.fetchTidesData()},immediate:!0}},methods:{async fetchTidesData(){var a,r,i,l;this.tideLoading=!0,this.tideData={};let o={lat:this.station.lat,lng:this.station.lng,date:(r=(a=this.dateList)==null?void 0:a[this.currentIndex])==null?void 0:r.dateTime,pastDays:1,forecastDays:5,extremes:!0,heights:!0},t=await J.post(`${this.gateway}/api/arc/meteo2/spot/tides/forecast`,o,{headers:{Authorization:this.token||this.defaultMeteoToken}});((i=t==null?void 0:t.data)==null?void 0:i.code)===0&&(this.tideData=((l=t==null?void 0:t.data)==null?void 0:l.data)||{},this.tideLoading=!1,this.initTideTableData(this.tideData))},initTideTableData(o){var t,a;this.tideTableData=De.TidesAssist.pickDailyExtremes(o,(a=(t=this.dateList)==null?void 0:t[this.currentIndex])==null?void 0:a.dateTime),this.initEchartData()},initEchartData(){var o;this.xDate=[],this.echartData={height:[]},(o=this.tideTableData)==null||o.forEach(t=>{this.xDate.push(this.computeLocalTime(t.date,this.station,"MM-DD HH:mm")),this.echartData.height.push([this.computeLocalTime(t.date,this.station,"MM-DD HH:mm"),t.height??void 0,"m"])}),this.initEchart()},initEchart(){po.dispose(this.$refs.tideEchart.style);const o=po.init(this.$refs.tideEchart),t={animation:!1,tooltip:{trigger:"axis",formatter:function(a){var i;let r=`<div style="font-size: 13px;">${(i=a[0])==null?void 0:i.value[0]}</div>`;return a.forEach(l=>{l.seriesName.indexOf("Min")<=-1&&l.seriesName.indexOf("Max")<=-1&&(r+=`<div style="font-size: 13px;">
7
7
  <span style="display:inline-block; height: 8px;width: 8px;border-radius: 50%;background-color: ${l.color}"></span>
8
8
  <span>${l.seriesName} : </span>
9
9
  <strong>${l.value[1]}m</strong>
10
- </div>`)}),r}},legend:{show:!0,right:20,top:0,itemWidth:30,data:["Height"],textStyle:{color:this.Theme.current.value.colors["on-surface"]}},grid:{top:40,left:30,right:20,bottom:30,containLabel:!0},xAxis:[{type:"category",data:this.xDate,boundaryGap:!0,axisTick:{alignWithLabel:!0,lineStyle:{color:this.Theme.current.value.colors["surface-bright"]}},axisLine:{show:!0,lineStyle:{color:this.Theme.current.value.colors["surface-bright"]}},axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:12,color:this.Theme.current.value.colors["surface-bright"]}}}],yAxis:[{name:"(m)",show:!0,nameLocation:"end",position:"left",nameGap:15,splitNumber:5,splitLine:{show:!0,lineStyle:{color:this.Theme.current.value.colors["surface-bright"]}},alignTicks:!0,axisLine:{show:!0,lineStyle:{color:this.Theme.current.value.colors["surface-bright"]}},axisLabel:{textStyle:{fontSize:12,color:this.Theme.current.value.colors["surface-bright"]}}}],series:[{name:"Height",type:"line",showSymbol:!0,yAxisIndex:0,lineStyle:{color:this.Theme.current.value.colors["map-perple"]},itemStyle:{color:this.Theme.current.value.colors["map-perple"]},data:this.echartData.height}]};o==null||o.setOption(t)},handleClose(){this.$emit("close")}}},Vr={class:"d-flex justify-space-between align-center"},Br={class:"d-flex justify-start text-h5 my-2"},Ir={class:"d-flex justify-start align-center text-body-1 text-label ga-3"},Rr={class:"summary-box w-100"},Ar={class:"d-flex justify-space-between align-center py-2"},Or={class:"d-flex justify-center align-center text-h6 ga-2"},jr={class:"multi-color-icon","aria-hidden":"true"},Hr=["xlink:href"],Fr={class:"gray-bg-2 rounded d-flex flex-column ga-4 pa-4"},Gr={class:"w-100 d-flex justify-start align-center"},Wr={class:"w-30 text-label font-weight-400"},Ur={class:"flex-1-1-0"},Yr={class:"w-100 d-flex justify-start align-center"},Zr={class:"w-30 text-label font-weight-400"},qr={class:"flex-1-1-0"},Xr={class:"w-100 d-flex justify-start align-center"},Kr={class:"w-30 text-label font-weight-400"},Jr={class:"flex-1-1-0"},Qr={class:"table-box w-100 mt-2 mb-4 d-flex flex-column justify-start align-center"},$r={class:"w-100 d-flex justify-space-between align-center py-2"},el={class:"d-flex justify-center align-center text-h6 ga-2"},tl={class:"multi-color-icon","aria-hidden":"true"},ol=["xlink:href"],al={class:"w-100",style:{height:"244px"},ref:"tideEchart"},il={"fixed-header":"",density:"compact",class:"w-100 tide-table bg-none"},rl={class:"px-1 text-center text-label font-weight-400",width:"120"},ll={class:"px-1 text-center text-label font-weight-400",width:"120"},sl={class:"px-1 text-center text-label font-weight-400",width:"120"},nl={class:"px-1 text-center"},cl={class:"px-1 text-center"},ml={class:"px-1 text-center"};function dl(o,t,a,r,i,l){const s=e.resolveComponent("VBtn"),c=e.resolveComponent("v-card-title"),n=e.resolveComponent("v-divider"),h=e.resolveComponent("VBtnToggle"),d=e.resolveComponent("v-card");return e.openBlock(),e.createBlock(d,{class:e.normalizeClass(["tide-detail-container d-flex flex-column justify-start align-center",a.simple?"page":"dialog"])},{default:e.withCtx(()=>{var g,u;return[e.createVNode(c,{class:"w-100"},{default:e.withCtx(()=>{var x;return[e.createElementVNode("div",Vr,[e.createElementVNode("div",Br,[e.createElementVNode("div",null,e.toDisplayString((x=a.station)==null?void 0:x.name),1)]),e.createVNode(s,{icon:"",density:"compact",variant:"plain",class:"mr-n2",onClick:l.handleClose},{default:e.withCtx(()=>t[1]||(t[1]=[e.createElementVNode("i",{class:"iconfont icon-close text-label text-h4"},null,-1)])),_:1,__:[1]},8,["onClick"])]),e.createElementVNode("div",Ir,[e.createElementVNode("div",null,e.toDisplayString(o.$t("tide.tideStation")),1)])]}),_:1}),e.createVNode(n,{class:"w-100"}),e.createElementVNode("div",{class:e.normalizeClass(["w-100 pt-0 pb-0 overflow-y-auto scroll",a.simple?"px-3":"px-5"])},[e.createElementVNode("div",Rr,[e.createElementVNode("div",Ar,[e.createElementVNode("div",Or,[(e.openBlock(),e.createElementBlock("svg",jr,[e.createElementVNode("use",{"xlink:href":`#icon-title-${a.theme}`},null,8,Hr)])),e.createElementVNode("div",null,e.toDisplayString(o.$t("detail.summary")),1)])]),e.createElementVNode("div",Fr,[e.createElementVNode("div",Gr,[e.createElementVNode("div",Wr,e.toDisplayString(o.$t("tide.region")),1),e.createElementVNode("div",Ur,e.toDisplayString(((g=a.station)==null?void 0:g.Country)??((u=a.station)==null?void 0:u.city)??"-"),1)]),e.createElementVNode("div",Yr,[e.createElementVNode("div",Zr,e.toDisplayString(o.$t("tide.position")),1),e.createElementVNode("div",qr,e.toDisplayString(l.computePosition(a.station)),1)]),e.createElementVNode("div",Xr,[e.createElementVNode("div",Kr,e.toDisplayString(o.$t("time.localTime")),1),e.createElementVNode("div",Jr,e.toDisplayString(l.computeLocalTime(a.realTime,a.station))+" "+e.toDisplayString(l.computeTimeOffset(a.station)),1)])])]),e.createElementVNode("div",Qr,[e.createElementVNode("div",$r,[e.createElementVNode("div",el,[(e.openBlock(),e.createElementBlock("svg",tl,[e.createElementVNode("use",{"xlink:href":`#icon-title-${a.theme}`},null,8,ol)])),e.createElementVNode("div",null,e.toDisplayString(o.$t("tide.tideTimes")),1)]),t[2]||(t[2]=e.createElementVNode("div",{class:"text-body-2 text-success ga-2"},null,-1))]),e.createElementVNode("div",{class:e.normalizeClass(["w-100 gray-bg-2 rounded",a.simple?"pa-2":"pa-4"])},[e.createVNode(h,{modelValue:i.currentIndex,"onUpdate:modelValue":t[0]||(t[0]=x=>i.currentIndex=x),class:"w-100 gray-bg-2 rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",density:"compact",group:"",height:"26","min-height":"26",rounded:"1"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.dateList,x=>(e.openBlock(),e.createBlock(s,{class:"text-none text-body-1 rounded bg-none flex-1-1-0",density:"compact",color:"primary",height:"26",value:x.index},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.label),1)]),_:2},1032,["value"]))),256))]),_:1},8,["modelValue"]),e.createElementVNode("div",al,null,512),e.createElementVNode("table",il,[e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",rl,e.toDisplayString(o.$t("tide.tide")),1),e.createElementVNode("th",ll,e.toDisplayString(o.$t("time.time"))+" ( LT ) ",1),e.createElementVNode("th",sl,e.toDisplayString(o.$t("tide.height"))+" ( m )",1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tideTableData,(x,y)=>{var _;return e.openBlock(),e.createElementBlock("tr",{key:y},[e.createElementVNode("td",nl,e.toDisplayString(o.$t(`tide.${(_=x==null?void 0:x.type)==null?void 0:_.toLowerCase()}`))+" "+e.toDisplayString(o.$t("tide.tide")),1),e.createElementVNode("td",cl,e.toDisplayString(l.computeLocalTime(x==null?void 0:x.date,a.station,"MM-DD HH:mm")),1),e.createElementVNode("td",ml,e.toDisplayString((x==null?void 0:x.height)??"-")+" m",1)])}),128))])])],2)])],2)]}),_:1},8,["class"])}const hl=O(Mr,[["render",dl],["__scopeId","data-v-6361862a"]]),Fd="",pl={name:"IdmTideStations",components:{TideDetail:hl},props:{map:{type:Object},show:{type:Boolean},locale:{type:String},beforeLayer:{type:String}},data(){return{layer:"tide-stations",showInfo:!1,hoverStation:void 0,marker:null,showDetail:!1,station:void 0}},watch:{show:{handler(){var o,t,a,r,i,l;this.show?(this.handleRender(),(o=this.map)==null||o.on("click",[this.layer],this.handleClick),(t=this.map)==null||t.on("mousemove",[this.layer],this.handleHover),(a=this.map)==null||a.on("mouseleave",[this.layer],this.handleLeave)):(this.handleClear(),(r=this.map)==null||r.off("click",[this.layer],this.handleClick),(i=this.map)==null||i.off("mousemove",[this.layer],this.handleHover),(l=this.map)==null||l.off("mouseleave",[this.layer],this.handleLeave))},immediate:!0},locale:{handler(){this.show&&this.handleRender()},immediate:!0}},methods:{handleRender(){var o;(o=this.map)!=null&&o.getLayer(this.layer)&&(this.map.setLayoutProperty(this.layer,"visibility","visible"),this.map.setLayoutProperty(this.layer,"text-field",this.locale==="en"?"{Location_EN}":"{Location_CN}"))},handleClear(){var o;this.showInfo=!1,(o=this.map)!=null&&o.getLayer(this.layer)&&this.map.setLayoutProperty(this.layer,"visibility","none")},handleClick(o){const t=o.features[0];t.properties&&(this.station=t.properties,this.station.name=this.locale==="en"?t.properties.Location_EN:t.properties.Location_CN,this.station.lng=t.geometry.coordinates[0],this.station.lat=t.geometry.coordinates[1],this.showDetail=!0)},handleHover(o){var a,r;this.map.getCanvas().style.cursor="pointer";const t=o.features[0];if(t.properties){this.showInfo=!0,this.hoverStation=t.properties,this.hoverStation.name=this.locale==="en"?t.properties.Location_EN:t.properties.Location_CN,this.hoverStation.lng=t.geometry.coordinates[0],this.hoverStation.lat=t.geometry.coordinates[1],(a=this.marker)==null||a.remove();const i=(r=document.getElementById("idmTidalInfo"))==null?void 0:r.cloneNode(!0);this.marker=new de.Marker(i).setLngLat([o.lngLat.lng,o.lngLat.lat]).setOffset([0,-60]).addTo(this.map)}},handleLeave(){var o;this.showInfo=!1,this.hoverStation={},(o=this.marker)==null||o.remove(),this.map.getCanvas().style.cursor="grab"},handleCloseDetail(){this.showDetail=!1}}},gl={class:"station-box d-flex flex-column justify-center align-start ga-1"},ul={class:"d-flex justify-start align-center"},fl={class:"d-flex justify-start align-center"},yl={class:"text-label"};function bl(o,t,a,r,i,l){const s=e.resolveComponent("v-card-text"),c=e.resolveComponent("v-card"),n=e.resolveComponent("TideDetail");return e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createVNode(c,{id:"idmTidalInfo"},{default:e.withCtx(()=>[e.createVNode(s,{class:"pr-8 text-body-1"},{default:e.withCtx(()=>{var h,d;return[e.createElementVNode("div",gl,[e.createElementVNode("div",ul,e.toDisplayString(o.$t("tide.tideStation")),1),e.createElementVNode("div",fl,[e.createElementVNode("label",yl,e.toDisplayString((h=i.hoverStation)==null?void 0:h.name)+" , "+e.toDisplayString(((d=i.hoverStation)==null?void 0:d.Country)||"-"),1)])])]}),_:1})]),_:1},512),[[e.vShow,i.showInfo]]),i.showDetail?(e.openBlock(),e.createBlock(n,e.mergeProps({key:0,station:i.station,onClose:l.handleCloseDetail},o.$attrs),null,16,["station","onClose"])):e.createCommentVNode("",!0)])}const wl=O(pl,[["render",bl],["__scopeId","data-v-7f9e02c0"]]),xl={name:"IdmIceAreas",props:{map:{type:Object},show:{type:Boolean}},data(){return{lineLayer:"ice-area-line",fillLayer:"ice-area-fill"}},watch:{show:{handler(){this.show?this.handleRender():this.handleClear()},immediate:!0}},methods:{handleRender(){var o,t;(o=this.map)!=null&&o.getLayer(this.lineLayer)&&this.map.setLayoutProperty(this.lineLayer,"visibility","visible"),(t=this.map)!=null&&t.getLayer(this.fillLayer)&&this.map.setLayoutProperty(this.fillLayer,"visibility","visible")},handleClear(){var o,t;(o=this.map)!=null&&o.getLayer(this.lineLayer)&&this.map.setLayoutProperty(this.lineLayer,"visibility","none"),(t=this.map)!=null&&t.getLayer(this.fillLayer)&&this.map.setLayoutProperty(this.fillLayer,"visibility","none")}}};function _l(o,t,a,r,i,l){return null}const kl=O(xl,[["render",_l]]),Gd="",zl={name:"IdmLatLng",props:{simple:{type:Boolean,default:!1},map:{type:Object},show:{type:Boolean},mapFeather:{type:String},beforeLayer:{type:String},menuToggle:{type:Object}},data(){return{lngLat:{e:{lng:0,lat:0},lng:0,lat:0,str:""},source:"idm-lat-lng-source",layer:"idm-lat-lng-layer",labelLayer:"idm-lat-lng-label-layer",right:10}},computed:{lineColor(){return["satellite","dark"].includes(this.mapFeather)?"rgba(255, 255, 255, 0.3)":"rgba(0, 0, 0, 0.3)"}},watch:{show:{handler(){this.handleBind()},immediate:!0},map:{handler(){var o;this.map&&((o=this.map)==null||o.on("mousemove",this.handleMouseMove))},immediate:!0},"menuToggle.v":{handler(){var o;this.right=(((o=document.getElementsByClassName("right-bar")[0])==null?void 0:o.clientWidth)||0)+10},immediate:!0},"lngLat.e":{handler(o){this.lngLat.lng=T.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty,this.lngLat.lat=T.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty,this.lngLat.str=`[${T.LngLatHelper.str2Lng(o==null?void 0:o.lng,4)}, ${T.LngLatHelper.str2Lat(o==null?void 0:o.lat,4)}]`},immediate:!0}},methods:{handleBind(){var o,t;this.show?((o=this.map)==null||o.on("zoomend",this.handleZoomEnd),this.handleRender()):(this.handleClear(),(t=this.map)==null||t.off("zoomend",this.handleZoomEnd))},handleMouseMove(o){this.lngLat.e=o.lngLat},handleComputeLatLngs(){var r;const o=(r=this.map)==null?void 0:r.getZoom();let t=30;o>4?t=10:o>3&&(t=15);const a=[];for(let i=-60;i<90;i+=t)a.push({type:"Feature",geometry:{type:"LineString",coordinates:[[-180,i],[180,i]]}});for(let i=-180;i<180;i+=t)a.push({type:"Feature",geometry:{type:"LineString",coordinates:[[i,-90],[i,90]]}});for(let i=180;i>-180;i-=t)for(let l=-60;l<90;l+=t)a.push({type:"Feature",geometry:{type:"Point",coordinates:[i,l]},properties:{val:`${l>0?l+" N":l===0?l:l*-1+" S"}, ${i>0?i+" E":i*-1+" W"}`}});return a},handleZoomEnd(){var t;const o=this.handleComputeLatLngs();(t=this.map)==null||t.getSource(this.source).setData(V.featureCollection(o))},handleRender(){if(this.handleClear(),this.map){const o=this.handleComputeLatLngs();this.map.addSource(this.source,{type:"geojson",data:{type:"FeatureCollection",features:o}}),this.map.addLayer({id:this.layer,type:"line",source:this.source,filter:["==","$type","LineString"],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":this.lineColor,"line-width":1}},this.beforeLayer),this.map.addLayer({id:this.labelLayer,type:"symbol",source:this.source,filter:["==","$type","Point"],layout:{"symbol-placement":"point","text-field":"{val}","text-rotation-alignment":"viewport","text-offset":[0,1],"text-size":10,"text-allow-overlap":!0},paint:{"text-opacity":.8,"text-color":this.lineColor}},this.beforeLayer)}},handleClear(){var o,t,a,r,i,l;(o=this.map)!=null&&o.getLayer(this.layer)&&((t=this.map)==null||t.removeLayer(this.layer)),(a=this.map)!=null&&a.getLayer(this.labelLayer)&&((r=this.map)==null||r.removeLayer(this.labelLayer)),(i=this.map)!=null&&i.getSource(this.source)&&((l=this.map)==null||l.removeSource(this.source))}}};function vl(o,t,a,r,i,l){var s,c,n;return a.simple?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",style:e.normalizeStyle({right:i.right+"px"})},[e.createElementVNode("div",null,e.toDisplayString((s=i.lngLat)==null?void 0:s.lat),1),e.createElementVNode("div",null,e.toDisplayString((c=i.lngLat)==null?void 0:c.lng),1),e.createElementVNode("div",null,e.toDisplayString((n=i.lngLat)==null?void 0:n.str),1)],4))}const fo=O(zl,[["render",vl]]),Wd="",Ll={name:"IdmFollowPort",components:{PortDetail:go},props:{map:{type:Object},beforeLayer:{type:String},forecastModel:{type:String},show:{type:Boolean},followList:{type:Array}},setup(){return{Theme:le.useTheme()}},emits:["closeAllDetail"],data(){return{source:"follow-port-source",layer:"follow-port-layer",showInfo:!1,portId:"",hoverPort:{},port:{},marker:void 0,showDetail:!1}},watch:{show:{handler(){var o,t,a;this.show?(this.handleRender(),(o=this.map)==null||o.on("click",[this.layer],this.handleClick),(t=this.map)==null||t.on("mousemove",[this.layer],this.handleHover),(a=this.map)==null||a.on("mouseleave",[this.layer],this.handleLeave)):this.handleClear()},immediate:!0},followList:{handler(){var o,t,a;this.followList&&this.show?(this.handleClear(),this.handleRender(),(o=this.map)==null||o.on("click",[this.layer],this.handleClick),(t=this.map)==null||t.on("mousemove",[this.layer],this.handleHover),(a=this.map)==null||a.on("mouseleave",[this.layer],this.handleLeave)):this.handleClear()}}},methods:{handleRender(){var t,a;const o={features:[],type:"FeatureCollection"};(t=this.followList)==null||t.forEach(r=>{var i;if((i=r.port)!=null&&i.id){const l=r.port,s={type:"Feature",properties:l,geometry:{type:"Point",coordinates:[l.lng,l.lat]}};o.features.push(s)}}),this.map.getSource(this.source)?(a=this.map)==null||a.getSource(this.source).setData(o):(this.map.addSource(this.source,{type:"geojson",data:o}),this.map.addLayer({id:this.layer,type:"symbol",source:this.source,filter:["all",["==","$type","Point"],["!=","disabled",!0]],layout:{"symbol-placement":"point","icon-size":1,"icon-image":"port","icon-offset":[0,-13],"text-anchor":"bottom","text-field":"{name}","text-rotation-alignment":"viewport","text-size":10,"text-offset":[0,1.6]},paint:{"text-color":this.Theme.current.value.colors["on-surface"],"text-halo-width":1}},this.beforeLayer))},handleClear(){var o,t,a;this.showInfo=!1,this.map.getLayer(this.layer)&&this.map.removeLayer(this.layer),this.map.getSource(this.source)&&this.map.removeSource(this.source),(o=this.map)==null||o.on("click",[this.layer],this.handleClick),(t=this.map)==null||t.on("mousemove",[this.layer],this.handleHover),(a=this.map)==null||a.on("mouseleave",[this.layer],this.handleLeave)},handleClick(o){const t=o.features[0];this.portId=t.properties.id,t.properties.id&&(this.port=t.properties,this.port.lng=t.geometry.coordinates[0],this.port.lat=t.geometry.coordinates[1],this.port.forecastModel=this.forecastModel,this.showDetail=!0)},handleHover(o){var r,i;this.map.getCanvas().style.cursor="pointer";const t=o.features[0];if(t.properties.id){this.showInfo=!0,this.hoverPort=t.properties,(r=this.marker)==null||r.remove();const l=(i=document.getElementById("idmFollowPortInfo"))==null?void 0:i.cloneNode(!0);this.marker=new de.Marker(l).setLngLat([o.lngLat.lng,o.lngLat.lat]).setOffset([0,-70]).addTo(this.map)}},handleLeave(){var o;this.showInfo=!1,this.hoverPort={},(o=this.marker)==null||o.remove(),this.map.getCanvas().style.cursor="grab"},handleCloseDetail(){this.showDetail=!1}}},Cl={class:"port-box d-flex flex-column justify-center align-start ga-1"},Pl={class:"d-flex justify-start align-center text-label"},Sl={class:"d-flex justify-start align-center text-label"};function Nl(o,t,a,r,i,l){const s=e.resolveComponent("v-card-text"),c=e.resolveComponent("v-card"),n=e.resolveComponent("PortDetail");return e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createVNode(c,{id:"idmFollowPortInfo",ref:"idmFollowPortInfo"},{default:e.withCtx(()=>[e.createVNode(s,{class:"text-body-1 pr-8"},{default:e.withCtx(()=>[e.createElementVNode("div",Cl,[e.createElementVNode("div",null,e.toDisplayString(o.$t("port.port")),1),e.createElementVNode("div",Pl,[e.createElementVNode("span",null,e.toDisplayString(i.hoverPort.name??"-"),1)]),e.createElementVNode("div",Sl,[t[1]||(t[1]=e.createElementVNode("label",{class:"pr-1"},"LoCode : ",-1)),e.createElementVNode("span",null,e.toDisplayString(i.hoverPort.loCode??"-"),1)])])]),_:1})]),_:1},512),[[e.vShow,i.showInfo]]),i.showDetail?(e.openBlock(),e.createBlock(n,e.mergeProps({key:0,portId:i.portId,port:i.port,forecastModel:a.forecastModel,followList:a.followList,onClose:l.handleCloseDetail,onCloseAllDetail:t[0]||(t[0]=h=>o.$emit("closeAllDetail",{followPort:!0}))},o.$attrs),null,16,["portId","port","forecastModel","followList","onClose"])):e.createCommentVNode("",!0)])}const Tl=O(Ll,[["render",Nl],["__scopeId","data-v-95e70a1f"]]),Ud="",Dl={name:"IdmFollowPosition",props:{map:{type:Object},beforeLayer:{type:String},forecastModel:{type:String},show:{type:Boolean},followList:{type:Array},realTime:{type:String}},setup(){return{Theme:le.useTheme()}},data(){return{source:"follow-coordinate-source",layer:"follow-coordinate-layer",position:{},showInfo:!1,marker:null}},computed:{computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":T.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+" / "+T.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}},watch:{show:{handler(){var o,t,a;this.show?(this.handleClear(),this.handleRender(),(o=this.map)==null||o.on("click",[this.layer],this.handleClick),(t=this.map)==null||t.on("mousemove",[this.layer],this.handleHover),(a=this.map)==null||a.on("mouseleave",[this.layer],this.handleLeave)):this.handleClear()},immediate:!0},followList:{handler(){var o,t,a;this.followList&&this.show?(this.handleClear(),this.handleRender(),(o=this.map)==null||o.on("click",[this.layer],this.handleClick),(t=this.map)==null||t.on("mousemove",[this.layer],this.handleHover),(a=this.map)==null||a.on("mouseleave",[this.layer],this.handleLeave)):this.handleClear()}}},methods:{handleRender(){var t,a;const o={features:[],type:"FeatureCollection"};(t=this.followList)==null||t.forEach(r=>{if(r.coordinate){const i=r.coordinate,l={type:"Feature",properties:{id:r.id,remark:r.remark,...r.coordinate},geometry:{type:"Point",coordinates:[i.lng,i.lat]}};o.features.push(l)}}),this.map.getSource(this.source)?(a=this.map)==null||a.getSource(this.source).setData(o):(this.map.addSource(this.source,{type:"geojson",data:o}),this.map.addLayer({id:this.layer,type:"symbol",source:this.source,filter:["all",["==","$type","Point"],["!=","disabled",!0]],layout:{"symbol-placement":"point","icon-size":1.1,"icon-image":"location","icon-offset":[0,-16]},paint:{"text-color":this.Theme.current.value.colors["on-surface"],"text-halo-width":1}},this.beforeLayer))},handleClear(){var o,t,a;this.map.getLayer(this.layer)&&this.map.removeLayer(this.layer),this.map.getSource(this.source)&&this.map.removeSource(this.source),(o=this.map)==null||o.off("click",[this.layer],this.handleClick),(t=this.map)==null||t.off("mousemove",[this.layer],this.handleHover),(a=this.map)==null||a.off("mouseleave",[this.layer],this.handleLeave)},handleClick(o){var a,r,i,l,s,c,n,h,d;const t=o.features[0];if(t.properties){const g=t.properties;g.lng=t.geometry.coordinates[0],g.lat=t.geometry.coordinates[1];const u=v(),x=(a=v(this.realTime))==null?void 0:a.diff(u,"d",!0),y={lat:g.lat,lng:g.lng,datetime:this.realTime,forecastModel:this.forecastModel};x>=0?(s=(l=(i=(r=this.$parent)==null?void 0:r.$parent)==null?void 0:i.$refs)==null?void 0:l.idmSpot)==null||s.fetchMeteoData(y):(d=(h=(n=(c=this.$parent)==null?void 0:c.$parent)==null?void 0:n.$refs)==null?void 0:h.idmSpot)==null||d.fetchHistoryData(y)}},handleHover(o){var a;this.map.getCanvas().style.cursor="pointer";const t=o.features[0];if(t.properties.id){this.showInfo=!0,this.position=t.properties,(a=this.marker)==null||a.remove();const r=document.getElementById("idmFollowPositionInfo").cloneNode(!0);this.marker=new de.Marker(r).setLngLat([o.lngLat.lng,o.lngLat.lat]).setOffset([0,-70]).addTo(this.map)}},handleLeave(){var o;this.showInfo=!1,(o=this.marker)==null||o.remove(),this.map.getCanvas().style.cursor="grab"}}},El={class:"position-box d-flex flex-column justify-center align-start ga-1"},Ml={class:"d-flex justify-start align-center text-label"},Vl={key:0,class:"d-flex justify-start align-center text-label"};function Bl(o,t,a,r,i,l){const s=e.resolveComponent("v-card-text"),c=e.resolveComponent("v-card");return e.withDirectives((e.openBlock(),e.createBlock(c,{id:"idmFollowPositionInfo",ref:"idmFollowPositionInfo"},{default:e.withCtx(()=>[e.createVNode(s,{class:"text-body-1 pr-8"},{default:e.withCtx(()=>[e.createElementVNode("div",El,[t[0]||(t[0]=e.createElementVNode("div",null,"Location",-1)),e.createElementVNode("div",Ml,[e.createElementVNode("span",null,e.toDisplayString(l.computePosition(i.position)),1)]),i.position.remark?(e.openBlock(),e.createElementBlock("div",Vl,[e.createElementVNode("span",null,e.toDisplayString(i.position.remark??"-"),1)])):e.createCommentVNode("",!0)])]),_:1})]),_:1},512)),[[e.vShow,i.showInfo]])}const Il=O(Dl,[["render",Bl],["__scopeId","data-v-da5b3529"]]),Yd="",Rl={name:"IdmOtherLayerr",components:{IdmWarZone:Ga,IdmGmdssArea:Ya,IdmEcaZone:Xa,IdmAlertZone:$a,IdmPort:nr,IdmLoadLine:dr,IdmTimezone:gr,IdmVRA:yr,IdmSpecialArea:xr,IdmTerminator:zr,IdmWorld12nm:Cr,IdmWorldMarine:Nr,IdmChinaRoute:Er,IdmTideStations:wl,IdmIceAreas:kl,IdmLatLng:fo,IdmFollowPort:Tl,IdmFollowPosition:Il},props:{simple:{type:Boolean,default:!1},map:{type:Object},theme:{type:String},token:{type:String},isLogin:{type:Boolean,default:!1},defaultMeteoToken:{type:String},gateway:{type:String},assistGateway:{type:Array,default:[]},top:{type:Number,default:60},paddingTop:{type:Number,default:48},menuHeight:{type:Number,default:248},menuToggle:{type:Object,default:{}},ts:{type:String},forecastModel:{type:String},realTime:{type:String}},emits:["map","other","menuToggle","mapFeather","theme","followLayerList","otherCheckList"],data(){return{right:10,toggle:!1,mapFeather:localStorage.getItem("mapFeathersCacheGL4")||"light",tagLayers:[...Be.LayerHelper.OTHER_LAYERS.filter(o=>o.enabled)],layerWeight:0,otherLayers:{},activeOtherLayers:[],cache:{v:"0.0.2",versionKey:"otherLayerCacheVersionGL4",checkListKey:"otherChecklistCacheGL4",followListKey:"otherFollowListCacheGL4",mapFeatherKey:"mapFeathersCacheGL4"},mapFeathers:[{name:"Light Map",value:"light",locale:"lightMap"},{name:"Dark Map",value:"dark",locale:"darkMap"},{name:"Satelite Map",value:"satellite",locale:"satelliteMap"},{name:"Nautical Map",value:"nautical",locale:"nauticalMap"}],checkList:[]}},computed:{listStyle(){return this.simple?{top:this.top+"px",left:this.toggle?"0px":"-280px"}:{top:this.top+"px",right:this.toggle?"0px":"-280px"}}},watch:{"menuToggle.v":{handler(){this.toggle=this.menuToggle.otherLayers,this.$nextTick(()=>{var o;this.simple||(this.right=(((o=document.getElementsByClassName("right-bar")[0])==null?void 0:o.clientWidth)||0)+10)})},immediate:!0},realTime:{handler(o,t){o&&t&&o!==t&&this.checkList.includes("day-night")&&this.fetchDayNightLayer()}},theme:{handler(){this.theme==="light"?this.mapFeather=["light","nautical"].includes(this.mapFeather)?this.mapFeather:"light":this.mapFeather=["dark","satellite"].includes(this.mapFeather)?this.mapFeather:"dark"},immediate:!0},mapFeather:{handler(){localStorage.setItem(this.cache.mapFeatherKey,this.mapFeather),this.$emit("mapFeather",this.mapFeather),this.$emit("theme",["light","nautical"].includes(this.mapFeather)?"light":"dark")},immediate:!0},checkList:{handler(o,t){localStorage.setItem(this.cache.checkListKey,JSON.stringify(this.checkList)),this.activeOtherLayers=this.tagLayers.filter(l=>this.checkList.includes(l.key))||[];const a=o==null?void 0:o.filter(l=>!(t!=null&&t.includes(l))),r=t==null?void 0:t.filter(l=>!(o!=null&&o.includes(l))),i=o==null?void 0:o.filter(l=>t==null?void 0:t.includes(l));if((r==null?void 0:r.length)>0&&r.forEach(l=>{this.otherLayers[l]=void 0,delete this.otherLayers[l]}),(a==null?void 0:a.length)>0){const l=this.tagLayers.filter(s=>this.checkList.includes(s.key)&&!i.includes(s.key))||[];this.handleLayersChange(l)}this.$emit("otherCheckList",this.checkList)}}},async mounted(){this.fetchCache()},methods:{fetchCache(){const o=localStorage.getItem(this.cache.versionKey);this.cache.v!==o&&(localStorage.removeItem(this.cache.checkListKey),localStorage.removeItem(this.cache.followListKey),localStorage.removeItem(this.cache.mapFeatherKey),localStorage.setItem(this.cache.versionKey,this.cache.v));let t=localStorage.getItem(this.cache.checkListKey);this.checkList=JSON.parse(t||'["eca-zones"]'),localStorage.setItem(this.cache.checkListKey,JSON.stringify(this.checkList)),t=localStorage.getItem(this.cache.mapFeatherKey);const a=t||"light";this.$emit("mapFeather",a),localStorage.setItem(this.cache.mapFeatherKey,a)},handleMenuToggle(){this.$emit("menuToggle","otherLayers")},handleToggleMapFeather(o){this.$emit("map",void 0),this.mapFeather=o.value},async fetchOtherLayers(){var t,a;let o=this.layerWeight;if(o){const r=this.assistGateway[Math.round(Math.random()*(this.assistGateway.length-1))],i=await J.get(`${r}/api/arc/other/layers/links?l=${o}&t=${this.realTime}`,{headers:{Authorization:this.defaultMeteoToken}});if(((t=i==null?void 0:i.data)==null?void 0:t.code)===0){const l=(a=i==null?void 0:i.data)==null?void 0:a.data,s=[];for(const n in l)s.push(J.get(l[n],{headers:{Authorization:this.defaultMeteoToken,key:n}}));(await Promise.all(s)).map(n=>{var g,u,x;const h=((g=n==null?void 0:n.data)==null?void 0:g.data)||(n==null?void 0:n.data),d=(x=(u=n==null?void 0:n.config)==null?void 0:u.headers)==null?void 0:x.key;this.otherLayers[d]=h})}}},async fetchDayNightLayer(){var a,r;const o=this.assistGateway[Math.round(Math.random()*(this.assistGateway.length-1))],t=await J.get(`${o}/api/arc/other/layers/links?l=1024&t=${this.realTime}`,{headers:{Authorization:this.defaultMeteoToken}});((a=t==null?void 0:t.data)==null?void 0:a.code)===0&&(this.otherLayers["day-night"]=((r=t==null?void 0:t.data)==null?void 0:r.data)||(t==null?void 0:t.data))},handleLayersChange(o){const t=o==null?void 0:o.reduce((a,r)=>a+(r==null?void 0:r.weight),0);this.layerWeight=t,this.fetchOtherLayers()}}},Al={class:"idm-gl4-other-layer"},Ol={class:"header-box d-flex justify-space-between align-center px-4"},jl={class:"text-h5 font-weight-medium"},Hl={class:"list-box scroll pl-4 pr-2 overflow-y-auto"},Fl={class:"layers-body mt-4 d-flex justify-start align-center flex-wrap"},Gl=["onClick"],Wl={key:0,src:"https://osshz.idmwx.com/asset/dark-map.png",class:"border rounded-sm"},Ul={key:1,src:"https://osshz.idmwx.com/asset/nautical-map.png",class:"border rounded-sm"},Yl={key:2,src:"https://osshz.idmwx.com/asset/satellite-map.png",class:"border rounded-sm"},Zl={key:3,src:"https://osshz.idmwx.com/asset/light-map.png",class:"border rounded-sm"},ql={class:"text-body-2 text-center pt-1"};function Xl(o,t,a,r,i,l){var H,Q,$,ie,q,ee,re,te,oe;const s=e.resolveComponent("VBtn"),c=e.resolveComponent("VTooltip"),n=e.resolveComponent("VCardTitle"),h=e.resolveComponent("VCardItem"),d=e.resolveComponent("VCheckbox"),g=e.resolveComponent("VCardText"),u=e.resolveComponent("VCard"),x=e.resolveComponent("IdmLatLng"),y=e.resolveComponent("IdmTerminator"),_=e.resolveComponent("IdmTimezone"),p=e.resolveComponent("IdmPort"),S=e.resolveComponent("IdmAlertZone"),L=e.resolveComponent("IdmTideStations"),k=e.resolveComponent("IdmEcaZone"),f=e.resolveComponent("IdmWarZone"),w=e.resolveComponent("IdmGmdssArea"),z=e.resolveComponent("IdmLoadLine"),b=e.resolveComponent("IdmWorldMarine"),C=e.resolveComponent("IdmVRA"),E=e.resolveComponent("IdmSpecialArea"),R=e.resolveComponent("IdmWorld12nm"),j=e.resolveComponent("IdmChinaRoute"),A=e.resolveComponent("IdmIceAreas"),G=e.resolveComponent("IdmFollowPort"),W=e.resolveComponent("IdmFollowPosition");return e.openBlock(),e.createElementBlock("div",Al,[e.createElementVNode("div",{class:"menu-bar-box transition px-1 rounded",style:e.normalizeStyle({top:a.top+10+"px",right:i.right+"px",paddingTop:a.paddingTop+"px",height:a.menuHeight+"px"})},[e.createVNode(c,{text:o.$t("layer.mapLayers"),location:"left"},{activator:e.withCtx(({props:P})=>[e.createVNode(s,e.mergeProps(P,{"min-width":"32",width:"32",height:"32",class:["text-none pa-0",i.toggle?"bg-primary active-border":""],onClick:l.handleMenuToggle}),{default:e.withCtx(()=>t[5]||(t[5]=[e.createElementVNode("i",{class:"iconfont icon-Layer text-h4"},null,-1)])),_:2,__:[5]},1040,["class","onClick"])]),_:1},8,["text"])],4),e.createElementVNode("div",{class:e.normalizeClass(["available-layers transition",i.toggle?"right-bar":""]),style:e.normalizeStyle(l.listStyle)},[e.createElementVNode("div",Ol,[e.createElementVNode("div",jl,e.toDisplayString(o.$t("layer.layers")),1),e.createVNode(s,{icon:"",density:"compact",variant:"plain",class:"mr-n2",onClick:l.handleMenuToggle},{default:e.withCtx(()=>t[6]||(t[6]=[e.createElementVNode("i",{class:"iconfont icon-close text-label text-h4"},null,-1)])),_:1,__:[6]},8,["onClick"])]),e.createElementVNode("div",Hl,[e.createVNode(u,{class:"block-bg mx-auto mb-3",elevation:"0"},{default:e.withCtx(()=>[e.createVNode(h,{class:"border-b-thin"},{default:e.withCtx(()=>[e.createVNode(n,{class:"text-subtitle-1 font-weight-medium",style:{"font-size":"16px !important"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("layer.mapFeathers")),1)]),_:1})]),_:1}),e.createVNode(g,{class:"pb-2"},{default:e.withCtx(()=>[e.createElementVNode("div",Fl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.mapFeathers,P=>(e.openBlock(),e.createElementBlock("div",{key:P.value,class:"mb-2 feather-item",onClick:U=>l.handleToggleMapFeather(P)},[e.createElementVNode("div",{class:e.normalizeClass([i.mapFeather===P.value?"active":"","img-box"])},[P.value==="dark"?(e.openBlock(),e.createElementBlock("img",Wl)):P.value==="nautical"?(e.openBlock(),e.createElementBlock("img",Ul)):P.value==="satellite"?(e.openBlock(),e.createElementBlock("img",Yl)):(e.openBlock(),e.createElementBlock("img",Zl))],2),e.createElementVNode("div",ql,e.toDisplayString(o.$t(`layer.${P.locale}`)),1)],8,Gl))),128))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tagLayers.filter(P=>["graticule","day-night","time-zones"].includes(P.key)),P=>(e.openBlock(),e.createBlock(d,{key:P.key,modelValue:i.checkList,"onUpdate:modelValue":t[0]||(t[0]=U=>i.checkList=U),value:P.key,label:o.$t(`layer.${P.locale}`),color:"primary",density:"compact",style:{height:"36px"},class:"flex-1-0-100 text-body-2","hide-details":""},null,8,["modelValue","value","label"]))),128))]),_:1})]),_:1}),e.createVNode(u,{class:"block-bg mx-auto mb-3",elevation:"0"},{default:e.withCtx(()=>[e.createVNode(h,{class:"border-b-thin"},{default:e.withCtx(()=>[e.createVNode(n,{class:"text-subtitle-1 font-weight-medium",style:{"font-size":"16px !important"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("layer.pointsOfInteresting")),1)]),_:1})]),_:1}),e.createVNode(g,{class:"py-2"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tagLayers.filter(P=>["ports","alert-zones","tidal-stations"].includes(P.key)),P=>(e.openBlock(),e.createBlock(d,{key:P.key,modelValue:i.checkList,"onUpdate:modelValue":t[1]||(t[1]=U=>i.checkList=U),value:P.key,label:o.$t(`layer.${P.locale}`),color:"primary",density:"compact",style:{height:"36px"},class:"flex-1-0-100 text-body-2","hide-details":""},null,8,["modelValue","value","label"]))),128))]),_:1})]),_:1}),e.createVNode(u,{class:"block-bg mx-auto mb-3",elevation:"0"},{default:e.withCtx(()=>[e.createVNode(h,{class:"border-b-thin"},{default:e.withCtx(()=>[e.createVNode(n,{class:"text-subtitle-1 font-weight-medium",style:{"font-size":"16px !important"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("layer.otherLayers")),1)]),_:1})]),_:1}),e.createVNode(g,{class:"py-2"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tagLayers.filter(P=>!["graticule","day-night","time-zones","ports","alert-zones","tidal-stations"].includes(P.key)),P=>(e.openBlock(),e.createBlock(d,{key:P.key,modelValue:i.checkList,"onUpdate:modelValue":t[2]||(t[2]=U=>i.checkList=U),value:P.key,label:o.$t(`layer.${P.locale}`),color:"primary",density:"compact",style:{height:"36px"},class:"flex-1-0-100 text-body-2","hide-details":""},null,8,["modelValue","value","label"]))),128))]),_:1})]),_:1}),e.createVNode(u,{class:"block-bg mx-auto mb-3",elevation:"0"},{default:e.withCtx(()=>[e.createVNode(h,{class:"border-b-thin"},{default:e.withCtx(()=>[e.createVNode(n,{class:"text-subtitle-1 font-weight-medium",style:{"font-size":"16px !important"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("layer.myFollows")),1)]),_:1})]),_:1}),e.createVNode(g,{class:"py-2"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:i.checkList,"onUpdate:modelValue":t[3]||(t[3]=P=>i.checkList=P),value:"follow-ports",label:o.$t("layer.ports"),color:"primary",density:"compact",style:{height:"36px"},class:"flex-1-0-100 text-body-2","hide-details":""},null,8,["modelValue","label"]),e.createVNode(d,{modelValue:i.checkList,"onUpdate:modelValue":t[4]||(t[4]=P=>i.checkList=P),value:"follow-positions",label:o.$t("layer.locations"),color:"primary",density:"compact",style:{height:"36px"},class:"flex-1-0-100 text-body-2","hide-details":""},null,8,["modelValue","label"])]),_:1})]),_:1})])],6),a.map?(e.openBlock(),e.createBlock(x,e.mergeProps({key:0,simple:a.simple,map:a.map,"menu-toggle":a.menuToggle,show:i.checkList.includes("graticule")},o.$attrs),null,16,["simple","map","menu-toggle","show"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(y,e.mergeProps({key:1,map:a.map,area:(H=i.otherLayers)==null?void 0:H["day-night"]},o.$attrs,{"before-layer":"empty-layer-2"}),null,16,["map","area"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(_,e.mergeProps({key:2,map:a.map,zone:(Q=i.otherLayers)==null?void 0:Q["time-zones"],realTime:a.realTime},o.$attrs,{beforeLayer:"empty-layer-3"}),null,16,["map","zone","realTime"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(p,e.mergeProps({key:3,ref:"idmPorts",simple:a.simple,map:a.map,ports:($=i.otherLayers)==null?void 0:$.ports,gateway:a.gateway,token:a.token,"forecast-model":a.forecastModel,realTime:a.realTime},o.$attrs,{"before-layer":"empty-layer-3",theme:a.theme}),null,16,["simple","map","ports","gateway","token","forecast-model","realTime","theme"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(S,e.mergeProps({key:4,map:a.map,simple:a.simple,zone:(ie=i.otherLayers)==null?void 0:ie["alert-zones"]},o.$attrs,{"before-layer":"empty-layer-3",theme:a.theme}),null,16,["map","simple","zone","theme"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(L,e.mergeProps({key:5,ref:"idmIideStation",simple:a.simple,map:a.map,gateway:a.gateway,token:a.token,defaultMeteoToken:a.defaultMeteoToken,show:i.checkList.includes("tidal-stations"),theme:a.theme,realTime:a.realTime,forecastModel:a.forecastModel,"before-layer":"empty-layer-3"},o.$attrs),null,16,["simple","map","gateway","token","defaultMeteoToken","show","theme","realTime","forecastModel"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(k,e.mergeProps({key:6,map:a.map,zone:(q=i.otherLayers)==null?void 0:q["eca-zones"]},o.$attrs),null,16,["map","zone"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(f,e.mergeProps({key:7,map:a.map,zone:(ee=i.otherLayers)==null?void 0:ee["war-zones"]},o.$attrs),null,16,["map","zone"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(w,e.mergeProps({key:8,map:a.map,area:(re=i.otherLayers)==null?void 0:re["gmdss-areas"]},o.$attrs),null,16,["map","area"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(z,e.mergeProps({key:9,map:a.map,show:i.checkList.includes("load-lines")},o.$attrs),null,16,["map","show"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(b,e.mergeProps({key:10,map:a.map,token:a.token,show:i.checkList.includes("worldMarine")},o.$attrs),null,16,["map","token","show"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(C,e.mergeProps({key:11,map:a.map,area:(te=i.otherLayers)==null?void 0:te["voluntary-reporting-area"]},o.$attrs),null,16,["map","area"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(E,e.mergeProps({key:12,map:a.map,area:(oe=i.otherLayers)==null?void 0:oe["special-area"]},o.$attrs),null,16,["map","area"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(R,e.mergeProps({key:13,map:a.map,token:a.token,show:i.checkList.includes("world12nm")},o.$attrs),null,16,["map","token","show"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(j,e.mergeProps({key:14,map:a.map,token:a.token,show:i.checkList.includes("chinaRoute")},o.$attrs),null,16,["map","token","show"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(A,e.mergeProps({key:15,map:a.map,show:i.checkList.includes("ice-areas")},o.$attrs),null,16,["map","show"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(G,e.mergeProps({key:16,ref:"idmFollowPort",map:a.map,show:i.checkList.includes("follow-ports"),gateway:a.gateway,token:a.token,"forecast-model":a.forecastModel,realTime:a.realTime},o.$attrs,{"before-layer":"empty-layer-3"}),null,16,["map","show","gateway","token","forecast-model","realTime"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(W,e.mergeProps({key:17,ref:"idmFollowPosition",map:a.map,show:i.checkList.includes("follow-positions"),"forecast-model":a.forecastModel,realTime:a.realTime},o.$attrs),null,16,["map","show","forecast-model","realTime"])):e.createCommentVNode("",!0)])}const Kl=O(Rl,[["render",Xl]]);class uo{constructor(t){ae(this,"map");ae(this,"mercator");ae(this,"rampColorLayer");ae(this,"rampColorSource");ae(this,"particleLayer");ae(this,"particleSource");ae(this,"rampColorCanvas");ae(this,"particleCanvas");ae(this,"ratio");this.map=t,this.mercator=new Oa,this.rampColorLayer="ramp-color-layer",this.rampColorSource="ramp-color-source",this.particleLayer="particle-layer",this.particleSource="particle-source",this.rampColorCanvas=document.createElement("canvas"),this.particleCanvas=document.createElement("canvas"),this.ratio=window.devicePixelRatio}convertNLng(t,a=0){return t>180?this.convertNLng(t-360,a+1):t<-180?this.convertNLng(t+360,a+1):[t,a]}getBoundLngLat(){var a;const t=(a=this.map)==null?void 0:a.getBounds();return t?[[t._sw.lng,t._ne.lat],[t._ne.lng,t._ne.lat],[t._ne.lng,t._sw.lat],[t._sw.lng,t._sw.lat]]:[]}getBoundPixel(){var y,_;const t=(y=this.map)==null?void 0:y.getBounds();if(!t)return[];const a=((_=this.map)==null?void 0:_.getZoom())+1,r=[t._ne.lng,t._ne.lat],i=[t._sw.lng,t._sw.lat],[l,s]=this.convertNLng(r[0]),[c,n]=this.convertNLng(i[0]),[h,d]=this.mercator.px([l,r[1]],a),[g,u]=this.mercator.px([c,i[1]],a),x=Math.round(this.mercator.size*Math.pow(2,a)*(s+n));return[g,u,h+x,d]}getBoundRange(){const t=this.map.getZoom()+1,a=this.mercator.size*Math.pow(2,t),r=this.getBoundPixel();return[r[0]/a,r[2]/a,r[3]/a,r[1]/a]}getWorldCopy(t,a){const r=2**a,[i,l,s,c]=t.map(d=>~~(d/(r*256))),n=[];for(let d=c;d<=l;d++)for(let g=i;g<=s;g++)n.push([g,d]);return n.map(d=>{const g=2**a*256;return[d[0]*g,d[1]*g,g]})}resize(){let t=this.map.getSource(this.rampColorSource);t.setCoordinates(this.getBoundLngLat()),t=this.map.getSource(this.particleSource),t.setCoordinates(this.getBoundLngLat()),this.rampColorCanvas.width=this.map._canvas.clientWidth,this.rampColorCanvas.height=this.map._canvas.clientHeight,this.particleCanvas.width=this.map._canvas.clientWidth,this.particleCanvas.height=this.map._canvas.clientHeight}toggle(t){var i;const a=(i=this.map)==null?void 0:i.getLayoutProperty(this.rampColorLayer,"visibility"),r=t?"visible":"none";a!==r&&this.map.setLayoutProperty(this.rampColorLayer,"visibility",r)}toggleParticle(t){var i;const a=(i=this.map)==null?void 0:i.getLayoutProperty(this.particleLayer,"visibility"),r=t?"visible":"none";a!==r&&this.map.setLayoutProperty(this.particleLayer,"visibility",r)}}class _e{createShader(t,a,r){const i=t.createShader(a);if(i&&(t.shaderSource(i,r),t.compileShader(i),!t.getShaderParameter(i,t.COMPILE_STATUS)))throw new Error(t.getShaderInfoLog(i)||"error happened while create shader...");return i}createTexture(t,a,r,i,l,s,c){const n=t.createTexture();return t.bindTexture(t.TEXTURE_2D,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,a),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,i),l instanceof Uint8Array?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,s,c,0,t.RGBA,t.UNSIGNED_BYTE,l):t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,l),t.bindTexture(t.TEXTURE_2D,null),n}createDataBuffer(t,a,r){if(t){const i=t.createBuffer();return a==="array"?(t.bindBuffer(t.ARRAY_BUFFER,i),r&&t.bufferData(t.ARRAY_BUFFER,r,t.STATIC_DRAW)):a==="element"&&(t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,i),r&&t.bufferData(t.ELEMENT_ARRAY_BUFFER,r,t.STATIC_DRAW)),i}return null}createProgram(t,a,r){const i=t.createProgram(),l=this.createShader(t,t.VERTEX_SHADER,a),s=this.createShader(t,t.FRAGMENT_SHADER,r);if(i&&l&&s&&(t.attachShader(i,l),t.attachShader(i,s),t.linkProgram(i),!t.getProgramParameter(i,t.LINK_STATUS)))throw new Error(t.getProgramInfoLog(i)||"error happened while creating ramp color program");return i}createProgramWrapper(t,a,r){const i=this.createProgram(t,a,r);if(i){const l={program:i},s=t.getProgramParameter(i,t.ACTIVE_ATTRIBUTES);for(let n=0;n<s;n++){const h=t.getActiveAttrib(i,n);l[h.name]=t.getAttribLocation(i,h.name)}const c=t.getProgramParameter(i,t.ACTIVE_UNIFORMS);for(let n=0;n<c;n++){const h=t.getActiveUniform(i,n);l[h.name]=t.getUniformLocation(i,h.name)}return l}}setup(t,a,r=!1,i,l){const s=document.createElement("canvas");s.width=256,s.height=1;const c=s.getContext("2d");if(c&&t){const n=c==null?void 0:c.createLinearGradient(0,0,256,0);return a.forEach(([h,d])=>{n.addColorStop(h,d)}),c.fillStyle=n,c.fillRect(0,0,256,1),{canvas:s,texture:this.createTexture(t,t.LINEAR,t.LINEAR,t.CLAMP_TO_EDGE,r?new Uint8Array(c.getImageData(0,0,256,1).data):s,i,l)}}}setupParticle(t,a=1e3){const r=Math.ceil(Math.sqrt(a)),i=r*r,l=new Uint8Array(i*4);for(let d=0;d<l.length;d++)l[d]=Math.floor(Math.random()*256);const s=this.createTexture(t,t.NEAREST,t.NEAREST,t.CLAMP_TO_EDGE,l,r,r),c=this.createTexture(t,t.NEAREST,t.NEAREST,t.CLAMP_TO_EDGE,l,r,r),n=new Float32Array(i);for(let d=0;d<i;d++)n[d]=d;const h=this.createDataBuffer(t,"array",n);return{resolution:r,total:i,texture0:s,texture1:c,indexBuffer:h}}bind(t,a,r){const i=this.createProgram(t,a,r);if(i){const l=this.createDataBuffer(t,"array",void 0),s=t.getAttribLocation(i,"a_position");t.enableVertexAttribArray(s),t.vertexAttribPointer(s,2,t.FLOAT,!1,0,0);const c=new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]);this.createDataBuffer(t,"array",c);const n=t.getAttribLocation(i,"a_texCoord");return t.enableVertexAttribArray(n),t.vertexAttribPointer(n,2,t.FLOAT,!1,0,0),{program:i,aPositionBuffer:l}}return{}}bindParticle(t,a,r,i,l,s){const c=this.createProgramWrapper(t,a,r),n=this.createProgramWrapper(t,i,l),h=this.createProgramWrapper(t,i,s),d=this.createDataBuffer(t,"array",new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1])),g=t.createFramebuffer();return{particle:c,screen:n,update:h,quadBuffer:d,frameBuffer:g}}draw(t,a,r,i,l,s,c){var n,h;if(a&&r){t.resize(),a==null||a.viewport(0,0,(n=a==null?void 0:a.canvas)==null?void 0:n.width,(h=a==null?void 0:a.canvas)==null?void 0:h.height),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT);try{a.useProgram(r);const d={resolution:a.getUniformLocation(r,"u_resolution"),image:a.getUniformLocation(r,"u_image"),color:a.getUniformLocation(r,"u_color"),scale:a.getUniformLocation(r,"u_scale"),uvRange:a.getUniformLocation(r,"u_range_u_v"),sRange:a.getUniformLocation(r,"u_range_s")};d.resolution&&a.uniform2f(d.resolution,a.canvas.width*t.ratio,a.canvas.height*t.ratio),a.activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,i),d.image&&a.uniform1i(d.image,0),a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,l),d.color&&a.uniform1i(d.color,1),c!=null&&c.uvRange&&(c!=null&&c.sRange)&&(d.uvRange&&a.uniform2f(d.uvRange,c.uvRange[0],c.uvRange[1]),d.sRange&&a.uniform2f(d.sRange,c.sRange[0],c.sRange[1])),d.scale&&a.uniform1f(d.scale,(c==null?void 0:c.scale)||1);const g=t.getBoundPixel(),u=t.map.getZoom()+1,x=t.getWorldCopy(g,u);for(const y of x){const _=(y[0]-g[0])*t.ratio,p=(y[1]-g[3])*t.ratio,S=y[2]*t.ratio,[L,k,f,w]=[_,S+_,p,S+p],z=new Float32Array([L,f,k,f,L,w,L,w,k,f,k,w]);a.bindBuffer(a.ARRAY_BUFFER,s),a.bufferData(a.ARRAY_BUFFER,z,a.STATIC_DRAW),a.drawArrays(a.TRIANGLES,0,6)}}catch(d){console.log(`render failed...${d}`)}}}drawParticle(t,a,r,i,l){var s,c;a&&(a==null||a.viewport(0,0,(s=a==null?void 0:a.canvas)==null?void 0:s.width,(c=a==null?void 0:a.canvas)==null?void 0:c.height),a.disable(a.DEPTH_TEST),a.disable(a.STENCIL_TEST),a.activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,r),a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,i.texture0),this.renderScreen(t,a,i,l),this.updateParticles(t,a,i,l))}renderScreen(t,a,r,i){a.bindFramebuffer(a.FRAMEBUFFER,r.frameBuffer),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,r.screenTexture,0),a.viewport(0,0,a.canvas.width,a.canvas.height),this.renderScreenTexture(a,r.backgroundTexture,r.screen,r.quadBuffer,.95),this.renderParticles(t,a,r,i),a.bindFramebuffer(a.FRAMEBUFFER,null),this.renderScreenTexture(a,r.screenTexture,r.screen,r.quadBuffer,1);const l=r.backgroundTexture;r.backgroundTexture=r.screenTexture,r.screenTexture=l}renderScreenTexture(t,a,r,i,l){t&&(t.useProgram(r.program),t.bindBuffer(t.ARRAY_BUFFER,i),t.enableVertexAttribArray(r.a_pos),t.vertexAttribPointer(r.a_pos,2,t.FLOAT,!1,0,0),t.activeTexture(t.TEXTURE2),t.bindTexture(t.TEXTURE_2D,a),t.uniform1i(r.u_screen,2),t.uniform1f(r.u_opacity,l),t.drawArrays(t.TRIANGLES,0,6))}renderParticles(t,a,r,i){if(a){a.useProgram(r.particle.program),a.bindBuffer(a.ARRAY_BUFFER,r.indexBuffer),a.enableVertexAttribArray(r.particle.a_index),a.vertexAttribPointer(r.particle.a_index,1,a.FLOAT,!1,0,0),a.activeTexture(a.TEXTURE2),a.bindTexture(a.TEXTURE_2D,r.color.texture),a.uniform1i(r.particle.u_factor,0),a.uniform1i(r.particle.u_particles,1),a.uniform1i(r.particle.u_color_ramp,2),a.uniform1f(r.particle.u_particles_resolution,r.resolution*t.ratio),a.uniform1f(r.particle.u_point,t.ratio);const l=t.getBoundRange();a.uniform4f(r.particle.u_viewport,l[0],l[1],l[2],l[3]),a.uniform2f(r.particle.u_factor_min,i.uvRange[0],i.uvRange[0]),a.uniform2f(r.particle.u_factor_max,i.uvRange[1],i.uvRange[1]),a.drawArrays(a.POINTS,0,r.total)}}updateParticles(t,a,r,i){var s,c;if(a){a.bindFramebuffer(a.FRAMEBUFFER,r.frameBuffer),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,r.texture1,0),a.viewport(0,0,r.resolution,r.resolution),a.useProgram(r.update.program),a.bindBuffer(a.ARRAY_BUFFER,r.quadBuffer),a.enableVertexAttribArray(r.update.a_pos),a.vertexAttribPointer(r.update.a_pos,2,a.FLOAT,!1,0,0),a.uniform1i(r.update.u_factor,0),a.uniform1i(r.update.u_particles,1);const n=t.getBoundRange();a.uniform4f(r.update.u_viewport,n[0],n[1],n[2],n[3]),a.uniform1f(r.update.u_rand_seed,Math.random()),a.uniform2f(r.update.u_factor_res,(s=r==null?void 0:r.image)==null?void 0:s.width,(c=r==null?void 0:r.image)==null?void 0:c.height),a.uniform2f(r.update.u_factor_min,i.uvRange[0],i.uvRange[0]),a.uniform2f(r.update.u_factor_max,i.uvRange[1],i.uvRange[1]),a.uniform1f(r.update.u_speed_factor,i.speedFactor*t.ratio),a.uniform1f(r.update.u_drop_rate,i.dropRate),a.uniform1f(r.update.u_drop_rate_bump,i.dropRateBump),a.drawArrays(a.TRIANGLES,0,6)}const l=r.texture0;r.texture0=r.texture1,r.texture1=l}resize(t,a){t.resize();const r=new Uint8Array(a.canvas.width*a.canvas.height*4).fill(0,0,a.canvas.width*a.canvas.height*4),i=this.createTexture(a,a.NEAREST,a.NEAREST,a.CLAMP_TO_EDGE,r,a.canvas.width,a.canvas.height),l=this.createTexture(a,a.NEAREST,a.NEAREST,a.CLAMP_TO_EDGE,r,a.canvas.width,a.canvas.height);return{screenTexture:i,backgroundTexture:l}}async loadImg(t){return new Promise(a=>{const r=new Blob([t],{type:t.type}),i=URL.createObjectURL(r),l=new Image;l.crossOrigin="anonymous",l.src=i,l.onload=()=>a(l)})}}class K{}ae(K,"vertexSchema",`
10
+ </div>`)}),r}},legend:{show:!0,right:20,top:0,itemWidth:30,data:["Height"],textStyle:{color:this.Theme.current.value.colors["on-surface"]}},grid:{top:40,left:10,right:10,bottom:30,containLabel:!0},xAxis:[{type:"category",data:this.xDate,boundaryGap:!0,axisTick:{alignWithLabel:!0,lineStyle:{color:this.Theme.current.value.colors["surface-bright"]}},axisLine:{show:!0,lineStyle:{color:this.Theme.current.value.colors["surface-bright"]}},axisLabel:{interval:"auto",margin:15,textStyle:{fontSize:12,color:this.Theme.current.value.colors["surface-bright"]}}}],yAxis:[{name:"(m)",show:!0,nameLocation:"end",position:"left",nameGap:15,splitNumber:5,splitLine:{show:!0,lineStyle:{color:this.Theme.current.value.colors["surface-bright"]}},alignTicks:!0,axisLine:{show:!0,lineStyle:{color:this.Theme.current.value.colors["surface-bright"]}},axisLabel:{textStyle:{fontSize:12,color:this.Theme.current.value.colors["surface-bright"]}}}],series:[{name:"Height",type:"line",showSymbol:!0,yAxisIndex:0,lineStyle:{color:this.Theme.current.value.colors["map-perple"]},itemStyle:{color:this.Theme.current.value.colors["map-perple"]},data:this.echartData.height}]};o==null||o.setOption(t)},handleClose(){this.$emit("close")}}},Vr={class:"d-flex justify-space-between align-center"},Br={class:"d-flex justify-start text-h5 my-2"},Ir={class:"d-flex justify-start align-center text-body-1 text-label ga-3"},Rr={class:"summary-box w-100"},Ar={class:"d-flex justify-space-between align-center py-2"},Or={class:"d-flex justify-center align-center text-h6 ga-2"},jr={class:"multi-color-icon","aria-hidden":"true"},Hr=["xlink:href"],Fr={class:"gray-bg-2 rounded d-flex flex-column ga-4 pa-4"},Gr={class:"w-100 d-flex justify-start align-center"},Wr={class:"w-30 text-label font-weight-400"},Ur={class:"flex-1-1-0"},Yr={class:"w-100 d-flex justify-start align-center"},Zr={class:"w-30 text-label font-weight-400"},qr={class:"flex-1-1-0"},Xr={class:"w-100 d-flex justify-start align-center"},Kr={class:"w-30 text-label font-weight-400"},Jr={class:"flex-1-1-0"},Qr={class:"table-box w-100 mt-2 mb-4 d-flex flex-column justify-start align-center"},$r={class:"w-100 d-flex justify-space-between align-center py-2"},el={class:"d-flex justify-center align-center text-h6 ga-2"},tl={class:"multi-color-icon","aria-hidden":"true"},ol=["xlink:href"],al={class:"w-100",style:{height:"244px"},ref:"tideEchart"},il={"fixed-header":"",density:"compact",class:"w-100 tide-table bg-none"},rl={class:"px-1 text-center text-label font-weight-400",width:"120"},ll={class:"px-1 text-center text-label font-weight-400",width:"120"},sl={class:"px-1 text-center text-label font-weight-400",width:"120"},nl={class:"px-1 text-center"},cl={class:"px-1 text-center"},ml={class:"px-1 text-center"};function dl(o,t,a,r,i,l){const s=e.resolveComponent("VBtn"),c=e.resolveComponent("v-card-title"),n=e.resolveComponent("v-divider"),h=e.resolveComponent("VBtnToggle"),d=e.resolveComponent("v-card");return e.openBlock(),e.createBlock(d,{class:e.normalizeClass(["tide-detail-container d-flex flex-column justify-start align-center",a.simple?"page":"dialog"])},{default:e.withCtx(()=>{var g,u;return[e.createVNode(c,{class:"w-100"},{default:e.withCtx(()=>{var x;return[e.createElementVNode("div",Vr,[e.createElementVNode("div",Br,[e.createElementVNode("div",null,e.toDisplayString((x=a.station)==null?void 0:x.name),1)]),e.createVNode(s,{icon:"",density:"compact",variant:"plain",class:"mr-n2",onClick:l.handleClose},{default:e.withCtx(()=>t[1]||(t[1]=[e.createElementVNode("i",{class:"iconfont icon-close text-label text-h4"},null,-1)])),_:1,__:[1]},8,["onClick"])]),e.createElementVNode("div",Ir,[e.createElementVNode("div",null,e.toDisplayString(o.$t("tide.tideStation")),1)])]}),_:1}),e.createVNode(n,{class:"w-100"}),e.createElementVNode("div",{class:e.normalizeClass(["w-100 pt-0 pb-0 overflow-y-auto scroll",a.simple?"px-3":"px-5"])},[e.createElementVNode("div",Rr,[e.createElementVNode("div",Ar,[e.createElementVNode("div",Or,[(e.openBlock(),e.createElementBlock("svg",jr,[e.createElementVNode("use",{"xlink:href":`#icon-title-${a.theme}`},null,8,Hr)])),e.createElementVNode("div",null,e.toDisplayString(o.$t("detail.summary")),1)])]),e.createElementVNode("div",Fr,[e.createElementVNode("div",Gr,[e.createElementVNode("div",Wr,e.toDisplayString(o.$t("tide.region")),1),e.createElementVNode("div",Ur,e.toDisplayString(((g=a.station)==null?void 0:g.Country)??((u=a.station)==null?void 0:u.city)??"-"),1)]),e.createElementVNode("div",Yr,[e.createElementVNode("div",Zr,e.toDisplayString(o.$t("tide.position")),1),e.createElementVNode("div",qr,e.toDisplayString(l.computePosition(a.station)),1)]),e.createElementVNode("div",Xr,[e.createElementVNode("div",Kr,e.toDisplayString(o.$t("time.localTime")),1),e.createElementVNode("div",Jr,e.toDisplayString(l.computeLocalTime(a.realTime,a.station))+" "+e.toDisplayString(l.computeTimeOffset(a.station)),1)])])]),e.createElementVNode("div",Qr,[e.createElementVNode("div",$r,[e.createElementVNode("div",el,[(e.openBlock(),e.createElementBlock("svg",tl,[e.createElementVNode("use",{"xlink:href":`#icon-title-${a.theme}`},null,8,ol)])),e.createElementVNode("div",null,e.toDisplayString(o.$t("tide.tideTimes")),1)]),t[2]||(t[2]=e.createElementVNode("div",{class:"text-body-2 text-success ga-2"},null,-1))]),e.createElementVNode("div",{class:e.normalizeClass(["w-100 gray-bg-2 rounded",a.simple?"pa-2":"pa-4"])},[e.createVNode(h,{modelValue:i.currentIndex,"onUpdate:modelValue":t[0]||(t[0]=x=>i.currentIndex=x),class:"w-100 gray-bg-2 rounded d-flex justify-space-around align-center ga-0 px-1 mb-4",density:"compact",group:"",height:"26","min-height":"26",rounded:"1"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.dateList,x=>(e.openBlock(),e.createBlock(s,{class:"text-none text-body-1 rounded bg-none flex-1-1-0",density:"compact",color:"primary",height:"26",value:x.index},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(x.label),1)]),_:2},1032,["value"]))),256))]),_:1},8,["modelValue"]),e.createElementVNode("div",al,null,512),e.createElementVNode("table",il,[e.createElementVNode("tbody",null,[e.createElementVNode("tr",null,[e.createElementVNode("th",rl,e.toDisplayString(o.$t("tide.tide")),1),e.createElementVNode("th",ll,e.toDisplayString(o.$t("time.time"))+" ( LT ) ",1),e.createElementVNode("th",sl,e.toDisplayString(o.$t("tide.height"))+" ( m )",1)]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tideTableData,(x,y)=>{var _;return e.openBlock(),e.createElementBlock("tr",{key:y},[e.createElementVNode("td",nl,e.toDisplayString(o.$t(`tide.${(_=x==null?void 0:x.type)==null?void 0:_.toLowerCase()}`))+" "+e.toDisplayString(o.$t("tide.tide")),1),e.createElementVNode("td",cl,e.toDisplayString(l.computeLocalTime(x==null?void 0:x.date,a.station,"MM-DD HH:mm")),1),e.createElementVNode("td",ml,e.toDisplayString((x==null?void 0:x.height)??"-")+" m",1)])}),128))])])],2)])],2)]}),_:1},8,["class"])}const hl=O(Mr,[["render",dl],["__scopeId","data-v-b4cdca6c"]]),Fd="",pl={name:"IdmTideStations",components:{TideDetail:hl},props:{map:{type:Object},show:{type:Boolean},locale:{type:String},beforeLayer:{type:String}},data(){return{layer:"tide-stations",showInfo:!1,hoverStation:void 0,marker:null,showDetail:!1,station:void 0}},watch:{show:{handler(){var o,t,a,r,i,l;this.show?(this.handleRender(),(o=this.map)==null||o.on("click",[this.layer],this.handleClick),(t=this.map)==null||t.on("mousemove",[this.layer],this.handleHover),(a=this.map)==null||a.on("mouseleave",[this.layer],this.handleLeave)):(this.handleClear(),(r=this.map)==null||r.off("click",[this.layer],this.handleClick),(i=this.map)==null||i.off("mousemove",[this.layer],this.handleHover),(l=this.map)==null||l.off("mouseleave",[this.layer],this.handleLeave))},immediate:!0},locale:{handler(){this.show&&this.handleRender()},immediate:!0}},methods:{handleRender(){var o;(o=this.map)!=null&&o.getLayer(this.layer)&&(this.map.setLayoutProperty(this.layer,"visibility","visible"),this.map.setLayoutProperty(this.layer,"text-field",this.locale==="en"?"{Location_EN}":"{Location_CN}"))},handleClear(){var o;this.showInfo=!1,(o=this.map)!=null&&o.getLayer(this.layer)&&this.map.setLayoutProperty(this.layer,"visibility","none")},handleClick(o){const t=o.features[0];t.properties&&(this.station=t.properties,this.station.name=this.locale==="en"?t.properties.Location_EN:t.properties.Location_CN,this.station.lng=t.geometry.coordinates[0],this.station.lat=t.geometry.coordinates[1],this.showDetail=!0)},handleHover(o){var a,r;this.map.getCanvas().style.cursor="pointer";const t=o.features[0];if(t.properties){this.showInfo=!0,this.hoverStation=t.properties,this.hoverStation.name=this.locale==="en"?t.properties.Location_EN:t.properties.Location_CN,this.hoverStation.lng=t.geometry.coordinates[0],this.hoverStation.lat=t.geometry.coordinates[1],(a=this.marker)==null||a.remove();const i=(r=document.getElementById("idmTidalInfo"))==null?void 0:r.cloneNode(!0);this.marker=new de.Marker(i).setLngLat([o.lngLat.lng,o.lngLat.lat]).setOffset([0,-60]).addTo(this.map)}},handleLeave(){var o;this.showInfo=!1,this.hoverStation={},(o=this.marker)==null||o.remove(),this.map.getCanvas().style.cursor="grab"},handleCloseDetail(){this.showDetail=!1}}},gl={class:"station-box d-flex flex-column justify-center align-start ga-1"},ul={class:"d-flex justify-start align-center"},fl={class:"d-flex justify-start align-center"},yl={class:"text-label"};function bl(o,t,a,r,i,l){const s=e.resolveComponent("v-card-text"),c=e.resolveComponent("v-card"),n=e.resolveComponent("TideDetail");return e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createVNode(c,{id:"idmTidalInfo"},{default:e.withCtx(()=>[e.createVNode(s,{class:"pr-8 text-body-1"},{default:e.withCtx(()=>{var h,d;return[e.createElementVNode("div",gl,[e.createElementVNode("div",ul,e.toDisplayString(o.$t("tide.tideStation")),1),e.createElementVNode("div",fl,[e.createElementVNode("label",yl,e.toDisplayString((h=i.hoverStation)==null?void 0:h.name)+" , "+e.toDisplayString(((d=i.hoverStation)==null?void 0:d.Country)||"-"),1)])])]}),_:1})]),_:1},512),[[e.vShow,i.showInfo]]),i.showDetail?(e.openBlock(),e.createBlock(n,e.mergeProps({key:0,station:i.station,onClose:l.handleCloseDetail},o.$attrs),null,16,["station","onClose"])):e.createCommentVNode("",!0)])}const wl=O(pl,[["render",bl],["__scopeId","data-v-7f9e02c0"]]),xl={name:"IdmIceAreas",props:{map:{type:Object},show:{type:Boolean}},data(){return{lineLayer:"ice-area-line",fillLayer:"ice-area-fill"}},watch:{show:{handler(){this.show?this.handleRender():this.handleClear()},immediate:!0}},methods:{handleRender(){var o,t;(o=this.map)!=null&&o.getLayer(this.lineLayer)&&this.map.setLayoutProperty(this.lineLayer,"visibility","visible"),(t=this.map)!=null&&t.getLayer(this.fillLayer)&&this.map.setLayoutProperty(this.fillLayer,"visibility","visible")},handleClear(){var o,t;(o=this.map)!=null&&o.getLayer(this.lineLayer)&&this.map.setLayoutProperty(this.lineLayer,"visibility","none"),(t=this.map)!=null&&t.getLayer(this.fillLayer)&&this.map.setLayoutProperty(this.fillLayer,"visibility","none")}}};function _l(o,t,a,r,i,l){return null}const kl=O(xl,[["render",_l]]),Gd="",zl={name:"IdmLatLng",props:{simple:{type:Boolean,default:!1},map:{type:Object},show:{type:Boolean},mapFeather:{type:String},beforeLayer:{type:String},menuToggle:{type:Object}},data(){return{lngLat:{e:{lng:0,lat:0},lng:0,lat:0,str:""},source:"idm-lat-lng-source",layer:"idm-lat-lng-layer",labelLayer:"idm-lat-lng-label-layer",right:10}},computed:{lineColor(){return["satellite","dark"].includes(this.mapFeather)?"rgba(255, 255, 255, 0.3)":"rgba(0, 0, 0, 0.3)"}},watch:{show:{handler(){this.handleBind()},immediate:!0},map:{handler(){var o;this.map&&((o=this.map)==null||o.on("mousemove",this.handleMouseMove))},immediate:!0},"menuToggle.v":{handler(){var o;this.right=(((o=document.getElementsByClassName("right-bar")[0])==null?void 0:o.clientWidth)||0)+10},immediate:!0},"lngLat.e":{handler(o){this.lngLat.lng=T.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty,this.lngLat.lat=T.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty,this.lngLat.str=`[${T.LngLatHelper.str2Lng(o==null?void 0:o.lng,4)}, ${T.LngLatHelper.str2Lat(o==null?void 0:o.lat,4)}]`},immediate:!0}},methods:{handleBind(){var o,t;this.show?((o=this.map)==null||o.on("zoomend",this.handleZoomEnd),this.handleRender()):(this.handleClear(),(t=this.map)==null||t.off("zoomend",this.handleZoomEnd))},handleMouseMove(o){this.lngLat.e=o.lngLat},handleComputeLatLngs(){var r;const o=(r=this.map)==null?void 0:r.getZoom();let t=30;o>4?t=10:o>3&&(t=15);const a=[];for(let i=-60;i<90;i+=t)a.push({type:"Feature",geometry:{type:"LineString",coordinates:[[-180,i],[180,i]]}});for(let i=-180;i<180;i+=t)a.push({type:"Feature",geometry:{type:"LineString",coordinates:[[i,-90],[i,90]]}});for(let i=180;i>-180;i-=t)for(let l=-60;l<90;l+=t)a.push({type:"Feature",geometry:{type:"Point",coordinates:[i,l]},properties:{val:`${l>0?l+" N":l===0?l:l*-1+" S"}, ${i>0?i+" E":i*-1+" W"}`}});return a},handleZoomEnd(){var t;const o=this.handleComputeLatLngs();(t=this.map)==null||t.getSource(this.source).setData(V.featureCollection(o))},handleRender(){if(this.handleClear(),this.map){const o=this.handleComputeLatLngs();this.map.addSource(this.source,{type:"geojson",data:{type:"FeatureCollection",features:o}}),this.map.addLayer({id:this.layer,type:"line",source:this.source,filter:["==","$type","LineString"],layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":this.lineColor,"line-width":1}},this.beforeLayer),this.map.addLayer({id:this.labelLayer,type:"symbol",source:this.source,filter:["==","$type","Point"],layout:{"symbol-placement":"point","text-field":"{val}","text-rotation-alignment":"viewport","text-offset":[0,1],"text-size":10,"text-allow-overlap":!0},paint:{"text-opacity":.8,"text-color":this.lineColor}},this.beforeLayer)}},handleClear(){var o,t,a,r,i,l;(o=this.map)!=null&&o.getLayer(this.layer)&&((t=this.map)==null||t.removeLayer(this.layer)),(a=this.map)!=null&&a.getLayer(this.labelLayer)&&((r=this.map)==null||r.removeLayer(this.labelLayer)),(i=this.map)!=null&&i.getSource(this.source)&&((l=this.map)==null||l.removeSource(this.source))}}};function vl(o,t,a,r,i,l){var s,c,n;return a.simple?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",style:e.normalizeStyle({right:i.right+"px"})},[e.createElementVNode("div",null,e.toDisplayString((s=i.lngLat)==null?void 0:s.lat),1),e.createElementVNode("div",null,e.toDisplayString((c=i.lngLat)==null?void 0:c.lng),1),e.createElementVNode("div",null,e.toDisplayString((n=i.lngLat)==null?void 0:n.str),1)],4))}const fo=O(zl,[["render",vl]]),Wd="",Ll={name:"IdmFollowPort",components:{PortDetail:go},props:{map:{type:Object},beforeLayer:{type:String},forecastModel:{type:String},show:{type:Boolean},followList:{type:Array}},setup(){return{Theme:le.useTheme()}},emits:["closeAllDetail"],data(){return{source:"follow-port-source",layer:"follow-port-layer",showInfo:!1,portId:"",hoverPort:{},port:{},marker:void 0,showDetail:!1}},watch:{show:{handler(){var o,t,a;this.show?(this.handleRender(),(o=this.map)==null||o.on("click",[this.layer],this.handleClick),(t=this.map)==null||t.on("mousemove",[this.layer],this.handleHover),(a=this.map)==null||a.on("mouseleave",[this.layer],this.handleLeave)):this.handleClear()},immediate:!0},followList:{handler(){var o,t,a;this.followList&&this.show?(this.handleClear(),this.handleRender(),(o=this.map)==null||o.on("click",[this.layer],this.handleClick),(t=this.map)==null||t.on("mousemove",[this.layer],this.handleHover),(a=this.map)==null||a.on("mouseleave",[this.layer],this.handleLeave)):this.handleClear()}}},methods:{handleRender(){var t,a;const o={features:[],type:"FeatureCollection"};(t=this.followList)==null||t.forEach(r=>{var i;if((i=r.port)!=null&&i.id){const l=r.port,s={type:"Feature",properties:l,geometry:{type:"Point",coordinates:[l.lng,l.lat]}};o.features.push(s)}}),this.map.getSource(this.source)?(a=this.map)==null||a.getSource(this.source).setData(o):(this.map.addSource(this.source,{type:"geojson",data:o}),this.map.addLayer({id:this.layer,type:"symbol",source:this.source,filter:["all",["==","$type","Point"],["!=","disabled",!0]],layout:{"symbol-placement":"point","icon-size":1,"icon-image":"port","icon-offset":[0,-13],"text-anchor":"bottom","text-field":"{name}","text-rotation-alignment":"viewport","text-size":10,"text-offset":[0,1.6]},paint:{"text-color":this.Theme.current.value.colors["on-surface"],"text-halo-width":1}},this.beforeLayer))},handleClear(){var o,t,a;this.showInfo=!1,this.map.getLayer(this.layer)&&this.map.removeLayer(this.layer),this.map.getSource(this.source)&&this.map.removeSource(this.source),(o=this.map)==null||o.on("click",[this.layer],this.handleClick),(t=this.map)==null||t.on("mousemove",[this.layer],this.handleHover),(a=this.map)==null||a.on("mouseleave",[this.layer],this.handleLeave)},handleClick(o){const t=o.features[0];this.portId=t.properties.id,t.properties.id&&(this.port=t.properties,this.port.lng=t.geometry.coordinates[0],this.port.lat=t.geometry.coordinates[1],this.port.forecastModel=this.forecastModel,this.showDetail=!0)},handleHover(o){var r,i;this.map.getCanvas().style.cursor="pointer";const t=o.features[0];if(t.properties.id){this.showInfo=!0,this.hoverPort=t.properties,(r=this.marker)==null||r.remove();const l=(i=document.getElementById("idmFollowPortInfo"))==null?void 0:i.cloneNode(!0);this.marker=new de.Marker(l).setLngLat([o.lngLat.lng,o.lngLat.lat]).setOffset([0,-70]).addTo(this.map)}},handleLeave(){var o;this.showInfo=!1,this.hoverPort={},(o=this.marker)==null||o.remove(),this.map.getCanvas().style.cursor="grab"},handleCloseDetail(){this.showDetail=!1}}},Cl={class:"port-box d-flex flex-column justify-center align-start ga-1"},Pl={class:"d-flex justify-start align-center text-label"},Sl={class:"d-flex justify-start align-center text-label"};function Nl(o,t,a,r,i,l){const s=e.resolveComponent("v-card-text"),c=e.resolveComponent("v-card"),n=e.resolveComponent("PortDetail");return e.openBlock(),e.createElementBlock("div",null,[e.withDirectives(e.createVNode(c,{id:"idmFollowPortInfo",ref:"idmFollowPortInfo"},{default:e.withCtx(()=>[e.createVNode(s,{class:"text-body-1 pr-8"},{default:e.withCtx(()=>[e.createElementVNode("div",Cl,[e.createElementVNode("div",null,e.toDisplayString(o.$t("port.port")),1),e.createElementVNode("div",Pl,[e.createElementVNode("span",null,e.toDisplayString(i.hoverPort.name??"-"),1)]),e.createElementVNode("div",Sl,[t[1]||(t[1]=e.createElementVNode("label",{class:"pr-1"},"LoCode : ",-1)),e.createElementVNode("span",null,e.toDisplayString(i.hoverPort.loCode??"-"),1)])])]),_:1})]),_:1},512),[[e.vShow,i.showInfo]]),i.showDetail?(e.openBlock(),e.createBlock(n,e.mergeProps({key:0,portId:i.portId,port:i.port,forecastModel:a.forecastModel,followList:a.followList,onClose:l.handleCloseDetail,onCloseAllDetail:t[0]||(t[0]=h=>o.$emit("closeAllDetail",{followPort:!0}))},o.$attrs),null,16,["portId","port","forecastModel","followList","onClose"])):e.createCommentVNode("",!0)])}const Tl=O(Ll,[["render",Nl],["__scopeId","data-v-95e70a1f"]]),Ud="",Dl={name:"IdmFollowPosition",props:{map:{type:Object},beforeLayer:{type:String},forecastModel:{type:String},show:{type:Boolean},followList:{type:Array},realTime:{type:String}},setup(){return{Theme:le.useTheme()}},data(){return{source:"follow-coordinate-source",layer:"follow-coordinate-layer",position:{},showInfo:!1,marker:null}},computed:{computePosition(){return function(o){return!o||o.lng===null||o.lng===void 0||isNaN(o.lng)||o.lat===null||o.lat===void 0||isNaN(o.lat)?"-":T.LngLatHelper.lat2pretty(o==null?void 0:o.lat,2).pretty+" / "+T.LngLatHelper.lng2pretty(o==null?void 0:o.lng,2).pretty}}},watch:{show:{handler(){var o,t,a;this.show?(this.handleClear(),this.handleRender(),(o=this.map)==null||o.on("click",[this.layer],this.handleClick),(t=this.map)==null||t.on("mousemove",[this.layer],this.handleHover),(a=this.map)==null||a.on("mouseleave",[this.layer],this.handleLeave)):this.handleClear()},immediate:!0},followList:{handler(){var o,t,a;this.followList&&this.show?(this.handleClear(),this.handleRender(),(o=this.map)==null||o.on("click",[this.layer],this.handleClick),(t=this.map)==null||t.on("mousemove",[this.layer],this.handleHover),(a=this.map)==null||a.on("mouseleave",[this.layer],this.handleLeave)):this.handleClear()}}},methods:{handleRender(){var t,a;const o={features:[],type:"FeatureCollection"};(t=this.followList)==null||t.forEach(r=>{if(r.coordinate){const i=r.coordinate,l={type:"Feature",properties:{id:r.id,remark:r.remark,...r.coordinate},geometry:{type:"Point",coordinates:[i.lng,i.lat]}};o.features.push(l)}}),this.map.getSource(this.source)?(a=this.map)==null||a.getSource(this.source).setData(o):(this.map.addSource(this.source,{type:"geojson",data:o}),this.map.addLayer({id:this.layer,type:"symbol",source:this.source,filter:["all",["==","$type","Point"],["!=","disabled",!0]],layout:{"symbol-placement":"point","icon-size":1.1,"icon-image":"location","icon-offset":[0,-16]},paint:{"text-color":this.Theme.current.value.colors["on-surface"],"text-halo-width":1}},this.beforeLayer))},handleClear(){var o,t,a;this.map.getLayer(this.layer)&&this.map.removeLayer(this.layer),this.map.getSource(this.source)&&this.map.removeSource(this.source),(o=this.map)==null||o.off("click",[this.layer],this.handleClick),(t=this.map)==null||t.off("mousemove",[this.layer],this.handleHover),(a=this.map)==null||a.off("mouseleave",[this.layer],this.handleLeave)},handleClick(o){var a,r,i,l,s,c,n,h,d;const t=o.features[0];if(t.properties){const g=t.properties;g.lng=t.geometry.coordinates[0],g.lat=t.geometry.coordinates[1];const u=v(),x=(a=v(this.realTime))==null?void 0:a.diff(u,"d",!0),y={lat:g.lat,lng:g.lng,datetime:this.realTime,forecastModel:this.forecastModel};x>=0?(s=(l=(i=(r=this.$parent)==null?void 0:r.$parent)==null?void 0:i.$refs)==null?void 0:l.idmSpot)==null||s.fetchMeteoData(y):(d=(h=(n=(c=this.$parent)==null?void 0:c.$parent)==null?void 0:n.$refs)==null?void 0:h.idmSpot)==null||d.fetchHistoryData(y)}},handleHover(o){var a;this.map.getCanvas().style.cursor="pointer";const t=o.features[0];if(t.properties.id){this.showInfo=!0,this.position=t.properties,(a=this.marker)==null||a.remove();const r=document.getElementById("idmFollowPositionInfo").cloneNode(!0);this.marker=new de.Marker(r).setLngLat([o.lngLat.lng,o.lngLat.lat]).setOffset([0,-70]).addTo(this.map)}},handleLeave(){var o;this.showInfo=!1,(o=this.marker)==null||o.remove(),this.map.getCanvas().style.cursor="grab"}}},El={class:"position-box d-flex flex-column justify-center align-start ga-1"},Ml={class:"d-flex justify-start align-center text-label"},Vl={key:0,class:"d-flex justify-start align-center text-label"};function Bl(o,t,a,r,i,l){const s=e.resolveComponent("v-card-text"),c=e.resolveComponent("v-card");return e.withDirectives((e.openBlock(),e.createBlock(c,{id:"idmFollowPositionInfo",ref:"idmFollowPositionInfo"},{default:e.withCtx(()=>[e.createVNode(s,{class:"text-body-1 pr-8"},{default:e.withCtx(()=>[e.createElementVNode("div",El,[t[0]||(t[0]=e.createElementVNode("div",null,"Location",-1)),e.createElementVNode("div",Ml,[e.createElementVNode("span",null,e.toDisplayString(l.computePosition(i.position)),1)]),i.position.remark?(e.openBlock(),e.createElementBlock("div",Vl,[e.createElementVNode("span",null,e.toDisplayString(i.position.remark??"-"),1)])):e.createCommentVNode("",!0)])]),_:1})]),_:1},512)),[[e.vShow,i.showInfo]])}const Il=O(Dl,[["render",Bl],["__scopeId","data-v-da5b3529"]]),Yd="",Rl={name:"IdmOtherLayerr",components:{IdmWarZone:Ga,IdmGmdssArea:Ya,IdmEcaZone:Xa,IdmAlertZone:$a,IdmPort:nr,IdmLoadLine:dr,IdmTimezone:gr,IdmVRA:yr,IdmSpecialArea:xr,IdmTerminator:zr,IdmWorld12nm:Cr,IdmWorldMarine:Nr,IdmChinaRoute:Er,IdmTideStations:wl,IdmIceAreas:kl,IdmLatLng:fo,IdmFollowPort:Tl,IdmFollowPosition:Il},props:{simple:{type:Boolean,default:!1},map:{type:Object},theme:{type:String},token:{type:String},isLogin:{type:Boolean,default:!1},defaultMeteoToken:{type:String},gateway:{type:String},assistGateway:{type:Array,default:[]},top:{type:Number,default:60},paddingTop:{type:Number,default:48},menuHeight:{type:Number,default:248},menuToggle:{type:Object,default:{}},ts:{type:String},forecastModel:{type:String},realTime:{type:String}},emits:["map","other","menuToggle","mapFeather","theme","followLayerList","otherCheckList"],data(){return{right:10,toggle:!1,mapFeather:localStorage.getItem("mapFeathersCacheGL4")||"light",tagLayers:[...Be.LayerHelper.OTHER_LAYERS.filter(o=>o.enabled)],layerWeight:0,otherLayers:{},activeOtherLayers:[],cache:{v:"0.0.2",versionKey:"otherLayerCacheVersionGL4",checkListKey:"otherChecklistCacheGL4",followListKey:"otherFollowListCacheGL4",mapFeatherKey:"mapFeathersCacheGL4"},mapFeathers:[{name:"Light Map",value:"light",locale:"lightMap"},{name:"Dark Map",value:"dark",locale:"darkMap"},{name:"Satelite Map",value:"satellite",locale:"satelliteMap"},{name:"Nautical Map",value:"nautical",locale:"nauticalMap"}],checkList:[]}},computed:{listStyle(){return this.simple?{top:this.top+"px",left:this.toggle?"0px":"-280px"}:{top:this.top+"px",right:this.toggle?"0px":"-280px"}}},watch:{"menuToggle.v":{handler(){this.toggle=this.menuToggle.otherLayers,this.$nextTick(()=>{var o;this.simple||(this.right=(((o=document.getElementsByClassName("right-bar")[0])==null?void 0:o.clientWidth)||0)+10)})},immediate:!0},realTime:{handler(o,t){o&&t&&o!==t&&this.checkList.includes("day-night")&&this.fetchDayNightLayer()}},theme:{handler(){this.theme==="light"?this.mapFeather=["light","nautical"].includes(this.mapFeather)?this.mapFeather:"light":this.mapFeather=["dark","satellite"].includes(this.mapFeather)?this.mapFeather:"dark"},immediate:!0},mapFeather:{handler(){localStorage.setItem(this.cache.mapFeatherKey,this.mapFeather),this.$emit("mapFeather",this.mapFeather),this.$emit("theme",["light","nautical"].includes(this.mapFeather)?"light":"dark")},immediate:!0},checkList:{handler(o,t){localStorage.setItem(this.cache.checkListKey,JSON.stringify(this.checkList)),this.activeOtherLayers=this.tagLayers.filter(l=>this.checkList.includes(l.key))||[];const a=o==null?void 0:o.filter(l=>!(t!=null&&t.includes(l))),r=t==null?void 0:t.filter(l=>!(o!=null&&o.includes(l))),i=o==null?void 0:o.filter(l=>t==null?void 0:t.includes(l));if((r==null?void 0:r.length)>0&&r.forEach(l=>{this.otherLayers[l]=void 0,delete this.otherLayers[l]}),(a==null?void 0:a.length)>0){const l=this.tagLayers.filter(s=>this.checkList.includes(s.key)&&!i.includes(s.key))||[];this.handleLayersChange(l)}this.$emit("otherCheckList",this.checkList)}}},async mounted(){this.fetchCache()},methods:{fetchCache(){const o=localStorage.getItem(this.cache.versionKey);this.cache.v!==o&&(localStorage.removeItem(this.cache.checkListKey),localStorage.removeItem(this.cache.followListKey),localStorage.removeItem(this.cache.mapFeatherKey),localStorage.setItem(this.cache.versionKey,this.cache.v));let t=localStorage.getItem(this.cache.checkListKey);this.checkList=JSON.parse(t||'["eca-zones"]'),localStorage.setItem(this.cache.checkListKey,JSON.stringify(this.checkList)),t=localStorage.getItem(this.cache.mapFeatherKey);const a=t||"light";this.$emit("mapFeather",a),localStorage.setItem(this.cache.mapFeatherKey,a)},handleMenuToggle(){this.$emit("menuToggle","otherLayers")},handleToggleMapFeather(o){this.$emit("map",void 0),this.mapFeather=o.value},async fetchOtherLayers(){var t,a;let o=this.layerWeight;if(o){const r=this.assistGateway[Math.round(Math.random()*(this.assistGateway.length-1))],i=await J.get(`${r}/api/arc/other/layers/links?l=${o}&t=${this.realTime}`,{headers:{Authorization:this.defaultMeteoToken}});if(((t=i==null?void 0:i.data)==null?void 0:t.code)===0){const l=(a=i==null?void 0:i.data)==null?void 0:a.data,s=[];for(const n in l)s.push(J.get(l[n],{headers:{Authorization:this.defaultMeteoToken,key:n}}));(await Promise.all(s)).map(n=>{var g,u,x;const h=((g=n==null?void 0:n.data)==null?void 0:g.data)||(n==null?void 0:n.data),d=(x=(u=n==null?void 0:n.config)==null?void 0:u.headers)==null?void 0:x.key;this.otherLayers[d]=h})}}},async fetchDayNightLayer(){var a,r;const o=this.assistGateway[Math.round(Math.random()*(this.assistGateway.length-1))],t=await J.get(`${o}/api/arc/other/layers/links?l=1024&t=${this.realTime}`,{headers:{Authorization:this.defaultMeteoToken}});((a=t==null?void 0:t.data)==null?void 0:a.code)===0&&(this.otherLayers["day-night"]=((r=t==null?void 0:t.data)==null?void 0:r.data)||(t==null?void 0:t.data))},handleLayersChange(o){const t=o==null?void 0:o.reduce((a,r)=>a+(r==null?void 0:r.weight),0);this.layerWeight=t,this.fetchOtherLayers()}}},Al={class:"idm-gl4-other-layer"},Ol={class:"header-box d-flex justify-space-between align-center px-4"},jl={class:"text-h5 font-weight-medium"},Hl={class:"list-box scroll pl-4 pr-2 overflow-y-auto"},Fl={class:"layers-body mt-4 d-flex justify-start align-center flex-wrap"},Gl=["onClick"],Wl={key:0,src:"https://osshz.idmwx.com/asset/dark-map.png",class:"border rounded-sm"},Ul={key:1,src:"https://osshz.idmwx.com/asset/nautical-map.png",class:"border rounded-sm"},Yl={key:2,src:"https://osshz.idmwx.com/asset/satellite-map.png",class:"border rounded-sm"},Zl={key:3,src:"https://osshz.idmwx.com/asset/light-map.png",class:"border rounded-sm"},ql={class:"text-body-2 text-center pt-1"};function Xl(o,t,a,r,i,l){var H,Q,$,ie,q,ee,re,te,oe;const s=e.resolveComponent("VBtn"),c=e.resolveComponent("VTooltip"),n=e.resolveComponent("VCardTitle"),h=e.resolveComponent("VCardItem"),d=e.resolveComponent("VCheckbox"),g=e.resolveComponent("VCardText"),u=e.resolveComponent("VCard"),x=e.resolveComponent("IdmLatLng"),y=e.resolveComponent("IdmTerminator"),_=e.resolveComponent("IdmTimezone"),p=e.resolveComponent("IdmPort"),S=e.resolveComponent("IdmAlertZone"),L=e.resolveComponent("IdmTideStations"),k=e.resolveComponent("IdmEcaZone"),f=e.resolveComponent("IdmWarZone"),w=e.resolveComponent("IdmGmdssArea"),z=e.resolveComponent("IdmLoadLine"),b=e.resolveComponent("IdmWorldMarine"),C=e.resolveComponent("IdmVRA"),E=e.resolveComponent("IdmSpecialArea"),R=e.resolveComponent("IdmWorld12nm"),j=e.resolveComponent("IdmChinaRoute"),A=e.resolveComponent("IdmIceAreas"),G=e.resolveComponent("IdmFollowPort"),W=e.resolveComponent("IdmFollowPosition");return e.openBlock(),e.createElementBlock("div",Al,[e.createElementVNode("div",{class:"menu-bar-box transition px-1 rounded",style:e.normalizeStyle({top:a.top+10+"px",right:i.right+"px",paddingTop:a.paddingTop+"px",height:a.menuHeight+"px"})},[e.createVNode(c,{text:o.$t("layer.mapLayers"),location:"left"},{activator:e.withCtx(({props:P})=>[e.createVNode(s,e.mergeProps(P,{"min-width":"32",width:"32",height:"32",class:["text-none pa-0",i.toggle?"bg-primary active-border":""],onClick:l.handleMenuToggle}),{default:e.withCtx(()=>t[5]||(t[5]=[e.createElementVNode("i",{class:"iconfont icon-Layer text-h4"},null,-1)])),_:2,__:[5]},1040,["class","onClick"])]),_:1},8,["text"])],4),e.createElementVNode("div",{class:e.normalizeClass(["available-layers transition",i.toggle?"right-bar":""]),style:e.normalizeStyle(l.listStyle)},[e.createElementVNode("div",Ol,[e.createElementVNode("div",jl,e.toDisplayString(o.$t("layer.layers")),1),e.createVNode(s,{icon:"",density:"compact",variant:"plain",class:"mr-n2",onClick:l.handleMenuToggle},{default:e.withCtx(()=>t[6]||(t[6]=[e.createElementVNode("i",{class:"iconfont icon-close text-label text-h4"},null,-1)])),_:1,__:[6]},8,["onClick"])]),e.createElementVNode("div",Hl,[e.createVNode(u,{class:"block-bg mx-auto mb-3",elevation:"0"},{default:e.withCtx(()=>[e.createVNode(h,{class:"border-b-thin"},{default:e.withCtx(()=>[e.createVNode(n,{class:"text-subtitle-1 font-weight-medium",style:{"font-size":"16px !important"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("layer.mapFeathers")),1)]),_:1})]),_:1}),e.createVNode(g,{class:"pb-2"},{default:e.withCtx(()=>[e.createElementVNode("div",Fl,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.mapFeathers,P=>(e.openBlock(),e.createElementBlock("div",{key:P.value,class:"mb-2 feather-item",onClick:U=>l.handleToggleMapFeather(P)},[e.createElementVNode("div",{class:e.normalizeClass([i.mapFeather===P.value?"active":"","img-box"])},[P.value==="dark"?(e.openBlock(),e.createElementBlock("img",Wl)):P.value==="nautical"?(e.openBlock(),e.createElementBlock("img",Ul)):P.value==="satellite"?(e.openBlock(),e.createElementBlock("img",Yl)):(e.openBlock(),e.createElementBlock("img",Zl))],2),e.createElementVNode("div",ql,e.toDisplayString(o.$t(`layer.${P.locale}`)),1)],8,Gl))),128))]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tagLayers.filter(P=>["graticule","day-night","time-zones"].includes(P.key)),P=>(e.openBlock(),e.createBlock(d,{key:P.key,modelValue:i.checkList,"onUpdate:modelValue":t[0]||(t[0]=U=>i.checkList=U),value:P.key,label:o.$t(`layer.${P.locale}`),color:"primary",density:"compact",style:{height:"36px"},class:"flex-1-0-100 text-body-2","hide-details":""},null,8,["modelValue","value","label"]))),128))]),_:1})]),_:1}),e.createVNode(u,{class:"block-bg mx-auto mb-3",elevation:"0"},{default:e.withCtx(()=>[e.createVNode(h,{class:"border-b-thin"},{default:e.withCtx(()=>[e.createVNode(n,{class:"text-subtitle-1 font-weight-medium",style:{"font-size":"16px !important"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("layer.pointsOfInteresting")),1)]),_:1})]),_:1}),e.createVNode(g,{class:"py-2"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tagLayers.filter(P=>["ports","alert-zones","tidal-stations"].includes(P.key)),P=>(e.openBlock(),e.createBlock(d,{key:P.key,modelValue:i.checkList,"onUpdate:modelValue":t[1]||(t[1]=U=>i.checkList=U),value:P.key,label:o.$t(`layer.${P.locale}`),color:"primary",density:"compact",style:{height:"36px"},class:"flex-1-0-100 text-body-2","hide-details":""},null,8,["modelValue","value","label"]))),128))]),_:1})]),_:1}),e.createVNode(u,{class:"block-bg mx-auto mb-3",elevation:"0"},{default:e.withCtx(()=>[e.createVNode(h,{class:"border-b-thin"},{default:e.withCtx(()=>[e.createVNode(n,{class:"text-subtitle-1 font-weight-medium",style:{"font-size":"16px !important"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("layer.otherLayers")),1)]),_:1})]),_:1}),e.createVNode(g,{class:"py-2"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tagLayers.filter(P=>!["graticule","day-night","time-zones","ports","alert-zones","tidal-stations"].includes(P.key)),P=>(e.openBlock(),e.createBlock(d,{key:P.key,modelValue:i.checkList,"onUpdate:modelValue":t[2]||(t[2]=U=>i.checkList=U),value:P.key,label:o.$t(`layer.${P.locale}`),color:"primary",density:"compact",style:{height:"36px"},class:"flex-1-0-100 text-body-2","hide-details":""},null,8,["modelValue","value","label"]))),128))]),_:1})]),_:1}),e.createVNode(u,{class:"block-bg mx-auto mb-3",elevation:"0"},{default:e.withCtx(()=>[e.createVNode(h,{class:"border-b-thin"},{default:e.withCtx(()=>[e.createVNode(n,{class:"text-subtitle-1 font-weight-medium",style:{"font-size":"16px !important"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$t("layer.myFollows")),1)]),_:1})]),_:1}),e.createVNode(g,{class:"py-2"},{default:e.withCtx(()=>[e.createVNode(d,{modelValue:i.checkList,"onUpdate:modelValue":t[3]||(t[3]=P=>i.checkList=P),value:"follow-ports",label:o.$t("layer.ports"),color:"primary",density:"compact",style:{height:"36px"},class:"flex-1-0-100 text-body-2","hide-details":""},null,8,["modelValue","label"]),e.createVNode(d,{modelValue:i.checkList,"onUpdate:modelValue":t[4]||(t[4]=P=>i.checkList=P),value:"follow-positions",label:o.$t("layer.locations"),color:"primary",density:"compact",style:{height:"36px"},class:"flex-1-0-100 text-body-2","hide-details":""},null,8,["modelValue","label"])]),_:1})]),_:1})])],6),a.map?(e.openBlock(),e.createBlock(x,e.mergeProps({key:0,simple:a.simple,map:a.map,"menu-toggle":a.menuToggle,show:i.checkList.includes("graticule")},o.$attrs),null,16,["simple","map","menu-toggle","show"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(y,e.mergeProps({key:1,map:a.map,area:(H=i.otherLayers)==null?void 0:H["day-night"]},o.$attrs,{"before-layer":"empty-layer-2"}),null,16,["map","area"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(_,e.mergeProps({key:2,map:a.map,zone:(Q=i.otherLayers)==null?void 0:Q["time-zones"],realTime:a.realTime},o.$attrs,{beforeLayer:"empty-layer-3"}),null,16,["map","zone","realTime"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(p,e.mergeProps({key:3,ref:"idmPorts",simple:a.simple,map:a.map,ports:($=i.otherLayers)==null?void 0:$.ports,gateway:a.gateway,token:a.token,"forecast-model":a.forecastModel,realTime:a.realTime,theme:a.theme},o.$attrs,{"before-layer":"empty-layer-3"}),null,16,["simple","map","ports","gateway","token","forecast-model","realTime","theme"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(S,e.mergeProps({key:4,map:a.map,simple:a.simple,zone:(ie=i.otherLayers)==null?void 0:ie["alert-zones"]},o.$attrs,{"before-layer":"empty-layer-3",theme:a.theme}),null,16,["map","simple","zone","theme"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(L,e.mergeProps({key:5,ref:"idmIideStation",simple:a.simple,map:a.map,gateway:a.gateway,token:a.token,defaultMeteoToken:a.defaultMeteoToken,show:i.checkList.includes("tidal-stations"),theme:a.theme,realTime:a.realTime,forecastModel:a.forecastModel,"before-layer":"empty-layer-3"},o.$attrs),null,16,["simple","map","gateway","token","defaultMeteoToken","show","theme","realTime","forecastModel"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(k,e.mergeProps({key:6,map:a.map,zone:(q=i.otherLayers)==null?void 0:q["eca-zones"]},o.$attrs),null,16,["map","zone"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(f,e.mergeProps({key:7,map:a.map,zone:(ee=i.otherLayers)==null?void 0:ee["war-zones"]},o.$attrs),null,16,["map","zone"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(w,e.mergeProps({key:8,map:a.map,area:(re=i.otherLayers)==null?void 0:re["gmdss-areas"]},o.$attrs),null,16,["map","area"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(z,e.mergeProps({key:9,map:a.map,show:i.checkList.includes("load-lines")},o.$attrs),null,16,["map","show"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(b,e.mergeProps({key:10,map:a.map,token:a.token,show:i.checkList.includes("worldMarine")},o.$attrs),null,16,["map","token","show"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(C,e.mergeProps({key:11,map:a.map,area:(te=i.otherLayers)==null?void 0:te["voluntary-reporting-area"]},o.$attrs),null,16,["map","area"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(E,e.mergeProps({key:12,map:a.map,area:(oe=i.otherLayers)==null?void 0:oe["special-area"]},o.$attrs),null,16,["map","area"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(R,e.mergeProps({key:13,map:a.map,token:a.token,show:i.checkList.includes("world12nm")},o.$attrs),null,16,["map","token","show"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(j,e.mergeProps({key:14,map:a.map,token:a.token,show:i.checkList.includes("chinaRoute")},o.$attrs),null,16,["map","token","show"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(A,e.mergeProps({key:15,map:a.map,show:i.checkList.includes("ice-areas")},o.$attrs),null,16,["map","show"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(G,e.mergeProps({key:16,ref:"idmFollowPort",map:a.map,show:i.checkList.includes("follow-ports"),gateway:a.gateway,token:a.token,"forecast-model":a.forecastModel,realTime:a.realTime},o.$attrs,{"before-layer":"empty-layer-3"}),null,16,["map","show","gateway","token","forecast-model","realTime"])):e.createCommentVNode("",!0),a.map?(e.openBlock(),e.createBlock(W,e.mergeProps({key:17,ref:"idmFollowPosition",map:a.map,show:i.checkList.includes("follow-positions"),"forecast-model":a.forecastModel,realTime:a.realTime},o.$attrs),null,16,["map","show","forecast-model","realTime"])):e.createCommentVNode("",!0)])}const Kl=O(Rl,[["render",Xl]]);class uo{constructor(t){ae(this,"map");ae(this,"mercator");ae(this,"rampColorLayer");ae(this,"rampColorSource");ae(this,"particleLayer");ae(this,"particleSource");ae(this,"rampColorCanvas");ae(this,"particleCanvas");ae(this,"ratio");this.map=t,this.mercator=new Oa,this.rampColorLayer="ramp-color-layer",this.rampColorSource="ramp-color-source",this.particleLayer="particle-layer",this.particleSource="particle-source",this.rampColorCanvas=document.createElement("canvas"),this.particleCanvas=document.createElement("canvas"),this.ratio=window.devicePixelRatio}convertNLng(t,a=0){return t>180?this.convertNLng(t-360,a+1):t<-180?this.convertNLng(t+360,a+1):[t,a]}getBoundLngLat(){var a;const t=(a=this.map)==null?void 0:a.getBounds();return t?[[t._sw.lng,t._ne.lat],[t._ne.lng,t._ne.lat],[t._ne.lng,t._sw.lat],[t._sw.lng,t._sw.lat]]:[]}getBoundPixel(){var y,_;const t=(y=this.map)==null?void 0:y.getBounds();if(!t)return[];const a=((_=this.map)==null?void 0:_.getZoom())+1,r=[t._ne.lng,t._ne.lat],i=[t._sw.lng,t._sw.lat],[l,s]=this.convertNLng(r[0]),[c,n]=this.convertNLng(i[0]),[h,d]=this.mercator.px([l,r[1]],a),[g,u]=this.mercator.px([c,i[1]],a),x=Math.round(this.mercator.size*Math.pow(2,a)*(s+n));return[g,u,h+x,d]}getBoundRange(){const t=this.map.getZoom()+1,a=this.mercator.size*Math.pow(2,t),r=this.getBoundPixel();return[r[0]/a,r[2]/a,r[3]/a,r[1]/a]}getWorldCopy(t,a){const r=2**a,[i,l,s,c]=t.map(d=>~~(d/(r*256))),n=[];for(let d=c;d<=l;d++)for(let g=i;g<=s;g++)n.push([g,d]);return n.map(d=>{const g=2**a*256;return[d[0]*g,d[1]*g,g]})}resize(){let t=this.map.getSource(this.rampColorSource);t.setCoordinates(this.getBoundLngLat()),t=this.map.getSource(this.particleSource),t.setCoordinates(this.getBoundLngLat()),this.rampColorCanvas.width=this.map._canvas.clientWidth,this.rampColorCanvas.height=this.map._canvas.clientHeight,this.particleCanvas.width=this.map._canvas.clientWidth,this.particleCanvas.height=this.map._canvas.clientHeight}toggle(t){var i;const a=(i=this.map)==null?void 0:i.getLayoutProperty(this.rampColorLayer,"visibility"),r=t?"visible":"none";a!==r&&this.map.setLayoutProperty(this.rampColorLayer,"visibility",r)}toggleParticle(t){var i;const a=(i=this.map)==null?void 0:i.getLayoutProperty(this.particleLayer,"visibility"),r=t?"visible":"none";a!==r&&this.map.setLayoutProperty(this.particleLayer,"visibility",r)}}class _e{createShader(t,a,r){const i=t.createShader(a);if(i&&(t.shaderSource(i,r),t.compileShader(i),!t.getShaderParameter(i,t.COMPILE_STATUS)))throw new Error(t.getShaderInfoLog(i)||"error happened while create shader...");return i}createTexture(t,a,r,i,l,s,c){const n=t.createTexture();return t.bindTexture(t.TEXTURE_2D,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,a),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,r),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,i),l instanceof Uint8Array?t.texImage2D(t.TEXTURE_2D,0,t.RGBA,s,c,0,t.RGBA,t.UNSIGNED_BYTE,l):t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,l),t.bindTexture(t.TEXTURE_2D,null),n}createDataBuffer(t,a,r){if(t){const i=t.createBuffer();return a==="array"?(t.bindBuffer(t.ARRAY_BUFFER,i),r&&t.bufferData(t.ARRAY_BUFFER,r,t.STATIC_DRAW)):a==="element"&&(t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,i),r&&t.bufferData(t.ELEMENT_ARRAY_BUFFER,r,t.STATIC_DRAW)),i}return null}createProgram(t,a,r){const i=t.createProgram(),l=this.createShader(t,t.VERTEX_SHADER,a),s=this.createShader(t,t.FRAGMENT_SHADER,r);if(i&&l&&s&&(t.attachShader(i,l),t.attachShader(i,s),t.linkProgram(i),!t.getProgramParameter(i,t.LINK_STATUS)))throw new Error(t.getProgramInfoLog(i)||"error happened while creating ramp color program");return i}createProgramWrapper(t,a,r){const i=this.createProgram(t,a,r);if(i){const l={program:i},s=t.getProgramParameter(i,t.ACTIVE_ATTRIBUTES);for(let n=0;n<s;n++){const h=t.getActiveAttrib(i,n);l[h.name]=t.getAttribLocation(i,h.name)}const c=t.getProgramParameter(i,t.ACTIVE_UNIFORMS);for(let n=0;n<c;n++){const h=t.getActiveUniform(i,n);l[h.name]=t.getUniformLocation(i,h.name)}return l}}setup(t,a,r=!1,i,l){const s=document.createElement("canvas");s.width=256,s.height=1;const c=s.getContext("2d");if(c&&t){const n=c==null?void 0:c.createLinearGradient(0,0,256,0);return a.forEach(([h,d])=>{n.addColorStop(h,d)}),c.fillStyle=n,c.fillRect(0,0,256,1),{canvas:s,texture:this.createTexture(t,t.LINEAR,t.LINEAR,t.CLAMP_TO_EDGE,r?new Uint8Array(c.getImageData(0,0,256,1).data):s,i,l)}}}setupParticle(t,a=1e3){const r=Math.ceil(Math.sqrt(a)),i=r*r,l=new Uint8Array(i*4);for(let d=0;d<l.length;d++)l[d]=Math.floor(Math.random()*256);const s=this.createTexture(t,t.NEAREST,t.NEAREST,t.CLAMP_TO_EDGE,l,r,r),c=this.createTexture(t,t.NEAREST,t.NEAREST,t.CLAMP_TO_EDGE,l,r,r),n=new Float32Array(i);for(let d=0;d<i;d++)n[d]=d;const h=this.createDataBuffer(t,"array",n);return{resolution:r,total:i,texture0:s,texture1:c,indexBuffer:h}}bind(t,a,r){const i=this.createProgram(t,a,r);if(i){const l=this.createDataBuffer(t,"array",void 0),s=t.getAttribLocation(i,"a_position");t.enableVertexAttribArray(s),t.vertexAttribPointer(s,2,t.FLOAT,!1,0,0);const c=new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]);this.createDataBuffer(t,"array",c);const n=t.getAttribLocation(i,"a_texCoord");return t.enableVertexAttribArray(n),t.vertexAttribPointer(n,2,t.FLOAT,!1,0,0),{program:i,aPositionBuffer:l}}return{}}bindParticle(t,a,r,i,l,s){const c=this.createProgramWrapper(t,a,r),n=this.createProgramWrapper(t,i,l),h=this.createProgramWrapper(t,i,s),d=this.createDataBuffer(t,"array",new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1])),g=t.createFramebuffer();return{particle:c,screen:n,update:h,quadBuffer:d,frameBuffer:g}}draw(t,a,r,i,l,s,c){var n,h;if(a&&r){t.resize(),a==null||a.viewport(0,0,(n=a==null?void 0:a.canvas)==null?void 0:n.width,(h=a==null?void 0:a.canvas)==null?void 0:h.height),a.clearColor(0,0,0,0),a.clear(a.COLOR_BUFFER_BIT|a.DEPTH_BUFFER_BIT);try{a.useProgram(r);const d={resolution:a.getUniformLocation(r,"u_resolution"),image:a.getUniformLocation(r,"u_image"),color:a.getUniformLocation(r,"u_color"),scale:a.getUniformLocation(r,"u_scale"),uvRange:a.getUniformLocation(r,"u_range_u_v"),sRange:a.getUniformLocation(r,"u_range_s")};d.resolution&&a.uniform2f(d.resolution,a.canvas.width*t.ratio,a.canvas.height*t.ratio),a.activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,i),d.image&&a.uniform1i(d.image,0),a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,l),d.color&&a.uniform1i(d.color,1),c!=null&&c.uvRange&&(c!=null&&c.sRange)&&(d.uvRange&&a.uniform2f(d.uvRange,c.uvRange[0],c.uvRange[1]),d.sRange&&a.uniform2f(d.sRange,c.sRange[0],c.sRange[1])),d.scale&&a.uniform1f(d.scale,(c==null?void 0:c.scale)||1);const g=t.getBoundPixel(),u=t.map.getZoom()+1,x=t.getWorldCopy(g,u);for(const y of x){const _=(y[0]-g[0])*t.ratio,p=(y[1]-g[3])*t.ratio,S=y[2]*t.ratio,[L,k,f,w]=[_,S+_,p,S+p],z=new Float32Array([L,f,k,f,L,w,L,w,k,f,k,w]);a.bindBuffer(a.ARRAY_BUFFER,s),a.bufferData(a.ARRAY_BUFFER,z,a.STATIC_DRAW),a.drawArrays(a.TRIANGLES,0,6)}}catch(d){console.log(`render failed...${d}`)}}}drawParticle(t,a,r,i,l){var s,c;a&&(a==null||a.viewport(0,0,(s=a==null?void 0:a.canvas)==null?void 0:s.width,(c=a==null?void 0:a.canvas)==null?void 0:c.height),a.disable(a.DEPTH_TEST),a.disable(a.STENCIL_TEST),a.activeTexture(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,r),a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,i.texture0),this.renderScreen(t,a,i,l),this.updateParticles(t,a,i,l))}renderScreen(t,a,r,i){a.bindFramebuffer(a.FRAMEBUFFER,r.frameBuffer),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,r.screenTexture,0),a.viewport(0,0,a.canvas.width,a.canvas.height),this.renderScreenTexture(a,r.backgroundTexture,r.screen,r.quadBuffer,.95),this.renderParticles(t,a,r,i),a.bindFramebuffer(a.FRAMEBUFFER,null),this.renderScreenTexture(a,r.screenTexture,r.screen,r.quadBuffer,1);const l=r.backgroundTexture;r.backgroundTexture=r.screenTexture,r.screenTexture=l}renderScreenTexture(t,a,r,i,l){t&&(t.useProgram(r.program),t.bindBuffer(t.ARRAY_BUFFER,i),t.enableVertexAttribArray(r.a_pos),t.vertexAttribPointer(r.a_pos,2,t.FLOAT,!1,0,0),t.activeTexture(t.TEXTURE2),t.bindTexture(t.TEXTURE_2D,a),t.uniform1i(r.u_screen,2),t.uniform1f(r.u_opacity,l),t.drawArrays(t.TRIANGLES,0,6))}renderParticles(t,a,r,i){if(a){a.useProgram(r.particle.program),a.bindBuffer(a.ARRAY_BUFFER,r.indexBuffer),a.enableVertexAttribArray(r.particle.a_index),a.vertexAttribPointer(r.particle.a_index,1,a.FLOAT,!1,0,0),a.activeTexture(a.TEXTURE2),a.bindTexture(a.TEXTURE_2D,r.color.texture),a.uniform1i(r.particle.u_factor,0),a.uniform1i(r.particle.u_particles,1),a.uniform1i(r.particle.u_color_ramp,2),a.uniform1f(r.particle.u_particles_resolution,r.resolution*t.ratio),a.uniform1f(r.particle.u_point,t.ratio);const l=t.getBoundRange();a.uniform4f(r.particle.u_viewport,l[0],l[1],l[2],l[3]),a.uniform2f(r.particle.u_factor_min,i.uvRange[0],i.uvRange[0]),a.uniform2f(r.particle.u_factor_max,i.uvRange[1],i.uvRange[1]),a.drawArrays(a.POINTS,0,r.total)}}updateParticles(t,a,r,i){var s,c;if(a){a.bindFramebuffer(a.FRAMEBUFFER,r.frameBuffer),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,r.texture1,0),a.viewport(0,0,r.resolution,r.resolution),a.useProgram(r.update.program),a.bindBuffer(a.ARRAY_BUFFER,r.quadBuffer),a.enableVertexAttribArray(r.update.a_pos),a.vertexAttribPointer(r.update.a_pos,2,a.FLOAT,!1,0,0),a.uniform1i(r.update.u_factor,0),a.uniform1i(r.update.u_particles,1);const n=t.getBoundRange();a.uniform4f(r.update.u_viewport,n[0],n[1],n[2],n[3]),a.uniform1f(r.update.u_rand_seed,Math.random()),a.uniform2f(r.update.u_factor_res,(s=r==null?void 0:r.image)==null?void 0:s.width,(c=r==null?void 0:r.image)==null?void 0:c.height),a.uniform2f(r.update.u_factor_min,i.uvRange[0],i.uvRange[0]),a.uniform2f(r.update.u_factor_max,i.uvRange[1],i.uvRange[1]),a.uniform1f(r.update.u_speed_factor,i.speedFactor*t.ratio),a.uniform1f(r.update.u_drop_rate,i.dropRate),a.uniform1f(r.update.u_drop_rate_bump,i.dropRateBump),a.drawArrays(a.TRIANGLES,0,6)}const l=r.texture0;r.texture0=r.texture1,r.texture1=l}resize(t,a){t.resize();const r=new Uint8Array(a.canvas.width*a.canvas.height*4).fill(0,0,a.canvas.width*a.canvas.height*4),i=this.createTexture(a,a.NEAREST,a.NEAREST,a.CLAMP_TO_EDGE,r,a.canvas.width,a.canvas.height),l=this.createTexture(a,a.NEAREST,a.NEAREST,a.CLAMP_TO_EDGE,r,a.canvas.width,a.canvas.height);return{screenTexture:i,backgroundTexture:l}}async loadImg(t){return new Promise(a=>{const r=new Blob([t],{type:t.type}),i=URL.createObjectURL(r),l=new Image;l.crossOrigin="anonymous",l.src=i,l.onload=()=>a(l)})}}class K{}ae(K,"vertexSchema",`
11
11
  //canvas 坐标系上的坐标 (x, y)
12
12
  attribute vec2 a_position; //像素坐标
13
13
  attribute vec2 a_texCoord; //纹理坐标
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- @charset "UTF-8";.idm-gl4-zone-info.page{position:absolute;bottom:0;left:0;width:100vw;height:100vh;z-index:1001}.idm-gl4-zone-info.dialog{min-width:300px;max-width:400px;max-height:500px;z-index:9}.idm-gl4-zone-info .rich-context span{font-size:12px!important;color:rgba(var(--v-theme-on-surface),.8)!important}.idm-gl4-zone-info .rich-context hr{border:none;border-top:1px solid rgba(var(--v-theme-on-surface),.2)!important;margin:5px 0}.idm-gl4-zone-info .close{position:absolute;top:4px;right:10px;color:rgba(var(--v-theme-on-surface),1)!important}.port-detail-container[data-v-d2a8c4e9]{transition:all .4s ease-in-out;z-index:1001}.port-detail-container.page[data-v-d2a8c4e9]{position:absolute;left:0;top:0;height:100vh;width:100vw}.port-detail-container.dialog[data-v-d2a8c4e9]{height:calc(100% - 100px);max-height:750px;width:480px;position:absolute;left:10px;top:80px}.forecast-table{border:thin solid rgba(var(--v-border-color),var(--v-border-opacity));border-collapse:collapse}.forecast-table th,.forecast-table td{height:28px;border:thin solid rgba(var(--v-border-color),var(--v-border-opacity));border-collapse:collapse;text-overflow:ellipsis}#idmPortInfo[data-v-0c0f27d3]{width:max-content;max-width:300px;height:max-content}.idm-gl2-enc-legend-bars-gl4-gl4{margin-bottom:150px;border-radius:5px;background:var(--idm-background-linear-gradient-top)}.idm-gl2-enc-legend-bars-gl4-gl4 div{padding:4px 8px;cursor:pointer;color:rgba(var(--v-theme-white),.9)}.idm-gl2-enc-legend-bars-gl4-gl4 div.active{color:var(--idm-success-color)}.tide-detail-container[data-v-6361862a]{transition:all .4s ease-in-out;z-index:1001}.tide-detail-container.page[data-v-6361862a]{position:absolute;left:0;top:0;height:100vh;width:100vw}.tide-detail-container.dialog[data-v-6361862a]{max-height:800px;width:480px;position:absolute;left:10px;top:80px}.tide-table{border:thin solid rgba(var(--v-border-color),var(--v-border-opacity));border-collapse:collapse}.tide-table th,.tide-table td{height:30px;border:thin solid rgba(var(--v-border-color),var(--v-border-opacity));border-collapse:collapse;text-overflow:ellipsis}#idmTidalInfo[data-v-7f9e02c0]{width:max-content;max-width:300px;height:max-content;z-index:9}.idm-lat-lng-tip-gl4{position:absolute;bottom:10px;min-width:134px;height:68px;background:rgba(var(--v-theme-background),var(--v-background-opacity));-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);box-shadow:var(--v-box-shadow-light);transition:all .4s ease-in-out;z-index:2}#idmFollowPortInfo[data-v-95e70a1f],#idmFollowPositionInfo[data-v-da5b3529]{width:max-content;max-width:300px;height:max-content;z-index:9}.idm-gl4-other-layer .menu-bar-box{position:absolute;overflow-y:hidden;box-sizing:border-box;background:var(--v-icon-bg);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);box-shadow:var(--v-box-shadow-light);z-index:2}.idm-gl4-other-layer .available-layers{position:absolute;top:60px;width:280px;height:calc(100vh - 60px);box-sizing:border-box;background:var(--v-drawer-bg);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);box-shadow:var(--v-box-shadow-light);z-index:101}.idm-gl4-other-layer .available-layers .header-box{height:56px}.idm-gl4-other-layer .available-layers .list-box{height:calc(100% - 56px)}.idm-gl4-other-layer .available-layers .list-box .layers-body .feather-item{width:47%;border-radius:4px;box-sizing:border-box;cursor:pointer}.idm-gl4-other-layer .available-layers .list-box .layers-body .feather-item:nth-child(odd){margin-right:6%}.idm-gl4-other-layer .available-layers .list-box .layers-body .feather-item .img-box{width:100%;height:60px;padding:2px;border-radius:4px;border:var(--v-layer-img-border)}.idm-gl4-other-layer .available-layers .list-box .layers-body .feather-item .img-box.active{border:2px solid rgba(var(--v-theme-primary),1)!important}.idm-gl4-other-layer .available-layers .list-box .layers-body .feather-item .img-box img{width:100%;height:100%;border-radius:4dvh}.legend-bars-gl4.wind{background:linear-gradient(to bottom,rgb(98,113,184),rgb(98,113,184),rgb(98,113,184),rgb(98,113,184),rgb(61,110,163),rgb(74,148,170),rgb(74,146,148),rgb(77,142,124),rgb(76,164,76),rgb(103,164,54),rgb(162,135,64),rgb(162,109,92),rgb(141,63,92),rgb(151,75,145),rgb(95,100,160),rgb(91,136,161),rgb(91,136,161))}.legend-bars-gl4.current{background:linear-gradient(to bottom,rgb(84,170,230),rgb(84,170,230),rgb(84,170,230),rgb(84,170,230),rgb(64,127,115),rgb(58,164,58),rgb(191,182,67),rgb(197,154,68),rgb(160,70,94),rgb(138,84,166),rgb(82,113,165),rgb(84,142,152),rgb(150,181,184),rgb(195,194,194),rgb(195,194,194))}.legend-bars-gl4.sig-wave[data-v-c6137292],.legend-bars-gl4.swell[data-v-3c94b068]{background:linear-gradient(to bottom,rgb(50,158,186),rgb(50,158,186),rgb(50,158,186),rgb(50,158,186),rgb(48,128,164),rgb(48,99,142),rgb(52,101,166),rgb(56,104,192),rgb(56,82,169),rgb(57,61,143),rgb(134,48,48),rgb(194,77,91),rgb(192,118,105),rgb(192,163,157),rgb(192,163,157))}.legend-bars-gl4.ice-edge{background:linear-gradient(to bottom,rgb(220,243,252),rgb(220,243,252),rgb(86,169,230),rgb(47,226,155),rgb(47,226,155),rgb(47,226,155),rgb(213,253,37),rgb(213,253,37),rgb(213,253,37),rgb(230,176,39),rgb(230,176,39),rgb(230,84,39),rgb(230,84,39))}.legend-bars-gl4.ice-cover[data-v-916b01eb]{background:linear-gradient(to bottom,rgb(255,255,255),rgb(53,125,177),rgb(33,145,140),rgb(45,178,125),rgb(112,207,87),rgb(253,231,37))}.legend-bars-gl4.ice-thickness{background:linear-gradient(to bottom,rgb(4,6,19),rgb(51,50,102),rgb(51,50,102),rgb(63,82,158),rgb(63,82,158),rgb(66,123,183),rgb(66,123,183),rgb(92,161,197),rgb(92,161,197),rgb(134,199,212),rgb(134,199,212),rgb(234,253,253))}.legend-bars-gl4.precip3h{background:linear-gradient(to bottom,rgba(59,126,162,0),rgb(172,210,255),rgb(172,210,255),rgb(3,248,103),rgb(14,201,3),rgb(190,226,2),rgb(248,1,1),rgb(197,5,58),rgb(197,5,58))}.legend-bars-gl4.visibility{background:linear-gradient(to bottom,rgb(189,50,160),rgb(189,50,160),rgb(189,50,160),rgb(189,50,160),rgb(208,56,56),rgb(208,56,56),rgb(190,226,2),rgb(190,226,2),rgb(4,210,64),rgb(4,210,64),rgb(172,210,255),rgb(172,210,255))}.legend-bars-gl4.water-temp{background:linear-gradient(to bottom,rgb(95,143,197),rgb(95,143,197),rgb(95,143,197),rgb(95,143,197),rgb(80,140,62),rgb(121,146,28),rgb(171,161,14),rgb(223,177,6),rgb(243,150,6),rgb(236,95,21),rgb(190,65,18),rgb(138,43,10),rgb(138,43,10))}.legend-bars-gl4.temp{background:linear-gradient(to bottom,rgb(149,137,211),rgb(149,137,211),rgb(149,137,211),rgb(149,137,211),rgb(150,209,216),rgb(129,204,197),rgb(103,180,186),rgb(95,143,197),rgb(80,140,62),rgb(121,146,28),rgb(171,161,14),rgb(223,177,6),rgb(243,150,6),rgb(236,95,21),rgb(190,65,18),rgb(138,43,10),rgb(138,43,10))}.idm-gl4-meteo-layers .menu-bar-box{position:absolute;box-sizing:border-box;z-index:2}.idm-gl4-meteo-layers .available-layers{position:absolute;top:60px;width:280px;height:calc(100vh - 60px);box-sizing:border-box;background:var(--v-drawer-bg);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);box-shadow:var(--v-box-shadow-light);z-index:101}.idm-gl4-meteo-layers .available-layers .header-box{height:56px}.idm-gl4-meteo-layers .available-layers .list-box{height:calc(100% - 56px)}.idm-tropical-gl4 .menu-bar-box{position:absolute;box-sizing:border-box;z-index:2}.idm-tropical-gl4-info.page{position:absolute;bottom:0;left:0;width:100vw;z-index:1001;border-radius:16px 16px 0 0;background:rgb(var(--v-theme-surface))!important}.idm-tropical-gl4-info.dialog{z-index:10;width:400px}.idm-tropical-gl4-info .close{position:absolute;font-size:12px;right:10px;top:10px;color:rgba(var(--v-theme-on-surface),.8)!important}.idm-tropical-gl4-info .model-box{background:var(--v-gray-bg-2);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);box-shadow:var(--v-box-shadow-light)}.idm-tropical-gl4-info .model-box .model{font-size:12px}.idm-tropical-gl4-info .legend .icon{height:10px;width:10px;border-radius:50%;border:1px solid rgba(var(--v-theme-on-surface),1);margin-right:4px;box-sizing:border-box}.idm-tropical-gl4-info .legend .icon.td{background-color:rgba(var(--v-theme-tropicals-td),1)}.idm-tropical-gl4-info .legend .icon.ts{background-color:rgba(var(--v-theme-tropicals-ts),1)}.idm-tropical-gl4-info .legend .icon.sts{background-color:rgba(var(--v-theme-tropicals-sts),1)}.idm-tropical-gl4-info .legend .icon.ty{background-color:rgba(var(--v-theme-tropicals-ty),1)}.idm-tropical-gl4-info .legend .icon.sty{background-color:rgba(var(--v-theme-tropicals-sty),1)}.idm-tropical-gl4-info .legend .icon.supper-ty{background-color:rgba(var(--v-theme-tropicals-super-ty),1)}.idm-tropical-gl4-info .legend .icon.r7{height:14px;width:14px;border:2px solid rgba(var(--v-theme-tropicals-r7),1)}.idm-tropical-gl4-info .legend .icon.r10{height:14px;width:14px;border:2px solid rgba(var(--v-theme-tropicals-r10),1)}.idm-tropical-gl4-info .legend .icon.history{border:1px solid rgba(var(--v-theme-on-surface),.7);border-radius:0;width:16px;height:2px}.idm-tropical-gl4-info .legend .icon.forecast{border:1px dashed rgba(var(--v-theme-on-surface),.7);border-radius:0;width:16px;height:2px}.idm-tropical-gl4-info .legend .button{cursor:pointer;padding:0 4px;border-radius:4px;border:1px solid rgba(var(--v-theme-primary));color:rgba(var(--v-theme-primary))}.idm-tropical-gl4-hourly-marker .iconfont{font-size:34px!important;color:rgba(var(--v-theme-error))}.idm-tropical-gl4-hourly-marker svg{height:34px;width:34px}.idm-tropical-gl4-hourly-marker .center{box-sizing:border-box;display:flex;align-items:center;justify-content:center}.idm-tropical-gl4-hourly-marker .center.north{animation:anticlockwise 2s linear infinite}.idm-tropical-gl4-hourly-marker .center.south{animation:clockwise 2s linear infinite}.idm-gl4-time-picker{position:relative}.idm-gl4-time-picker .card-box{position:absolute;width:350px;height:320px;z-index:10}.idm-gl4-date-picker{position:relative}.idm-gl4-date-picker .card-box{position:absolute;width:260px;height:320px;z-index:10}.v-date-picker .v-picker-title{display:none}.v-date-picker .v-date-picker-controls{padding:0 8px}.v-date-picker .v-date-picker-controls .v-date-picker-controls__month-btn{padding:0 8px;border-radius:4px!important;font-weight:500!important;border:thin solid rgba(var(--v-theme-on-surface),.12);margin-right:8px}.v-date-picker .v-date-picker-controls .v-date-picker-controls__month-btn:hover{background-color:rgba(var(--v-theme-on-background),var(--v-hover-opacity))!important;border-radius:inherit}.v-date-picker .v-date-picker-controls .v-date-picker-controls__mode-btn{width:52px!important;border-radius:4px!important;transform:rotate(0)!important;border:thin solid rgba(var(--v-theme-on-surface),.12)}.v-date-picker .v-date-picker-controls .v-date-picker-controls__mode-btn i{font-size:12px!important;font-style:normal!important}.v-date-picker .v-date-picker-month{padding:0!important}.v-date-picker .v-date-picker-month__day{height:30px!important;width:30px!important}.v-date-picker .v-date-picker-month__day .v-date-picker-month__day-btn{--v-btn-height: 18px !important;border-radius:4px!important;border:none!important}.v-date-picker .v-date-picker-months{height:200px!important}.v-date-picker .v-date-picker-months .v-date-picker-months__content{grid-template-columns:repeat(3,1fr)!important}.v-date-picker .v-date-picker-months .v-date-picker-months__content .v-btn--rounded{border-radius:4px!important}.v-date-picker .v-date-picker-years{height:200px!important;overflow:hidden}.v-date-picker .v-date-picker-years .v-date-picker-years__content{grid-template-columns:repeat(2,1fr)!important}.v-date-picker .v-date-picker-years .v-date-picker-years__content .v-btn--rounded{border-radius:4px!important}.idm-gl4-spot .menu-bar-box{position:absolute;box-sizing:border-box;z-index:2}.idm-gl4-spot .spot-form-card{position:absolute;width:254px;overflow:visible;z-index:5;transition:all .4s ease-in-out}.idm-gl4-spot .spot-form-card .v-field,.idm-gl4-spot .spot-form-card .v-field__field,.idm-gl4-spot .spot-form-card .v-field__input{height:32px!important;min-height:32px!important;line-height:32px!important;padding:0 4px!important;font-size:14px!important}.idm-gl4-spot .spot-form-card .v-input__details{padding:0!important;height:14px!important;min-height:14px!important;line-height:14px!important;font-size:12px!important}.idm-gl4-measure .menu-bar-box{position:absolute;box-sizing:border-box;z-index:2}.idm-gl4-measure-marker{pointer-events:none!important}.idm-gl4-measure-marker .marker-circle{pointer-events:inherit;width:10px;height:10px;border-radius:50%;border:2px solid rgba(var(--v-theme-map-orange));background:#fff}.idm-gl4-measure-marker .marker-circle:hover{cursor:pointer}.idm-gl4-measure-marker.closed{pointer-events:auto!important}.idm-gl4-measure-summary-marker{color:#fff;font-size:12px;background:rgba(var(--v-theme-map-orange));border:2px solid #fff;padding:0 30px 0 5px;border-radius:4px;cursor:pointer}.idm-gl4-measure-summary-marker .marker-close{pointer-events:auto;position:absolute;background:rgba(var(--v-theme-map-orange));border-left:2px solid #fff;display:flex;align-items:center;justify-content:center;width:20px;height:100%;right:0;cursor:pointer;font-size:20px}.idm-gl4-measure-contextmenu-marker{color:#fff;font-size:12px;background:rgba(var(--v-theme-map-orange));border:2px solid #fff;padding:2px 5px;border-radius:5px;cursor:pointer}.idm-gl4-measure-tip-marker{font-size:12px;padding:2px 5px;border-radius:5px;background-color:rgba(var(--v-theme-surface),.7);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);box-shadow:var(--v-box-shadow-light);cursor:pointer}.idm-gl4-measure-tip-marker .marker-label{border-bottom:var(--idm-dashed-border)}.idm-gl4-measure-tip-marker .marker-label:last-child{border-bottom:none}.idm-gl4-measure-tip-marker .marker-label b{font-weight:600;color:rgba(var(--v-theme-map-orange))}.idm-bottom-bar-gl4 .timeline-box{position:absolute;height:40px;box-sizing:border-box;background:rgba(var(--v-theme-background),var(--v-background-opacity));-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);box-shadow:var(--v-box-shadow-light);transition:all .4s ease-in-out;z-index:12}.idm-bottom-bar-gl4 .timeline-box i{font-size:20px}.idm-bottom-bar-gl4 .timezone-box{position:absolute;bottom:88px;transition:all .4s ease-in-out}.idm-bottom-bar-gl4 .timezone-box .btn-box{width:134px;background:rgba(var(--v-theme-background),var(--v-background-opacity))}.idm-bottom-bar-gl4 .timezone-box .list{width:288px;height:180px;margin-bottom:10px;box-shadow:var(--v-box-shadow-light);background:rgba(var(--v-theme-background),1);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);z-index:3}.idm-bottom-bar-gl4 .timezone-box .list .item{width:48px;height:24px;line-height:24px;text-align:center;border:1px solid rgba(var(--v-theme-on-surface),.3);cursor:pointer}.idm-time-player-gl4{position:absolute;width:100%}.idm-time-player-gl4 .timeline-box{box-sizing:border-box;transition:all .4s ease-in-out;z-index:12}.idm-time-player-gl4 .timeline-box i{font-size:20px}.idm-time-player-gl4 .timezone-box{position:absolute;bottom:88px;transition:all .4s ease-in-out}.idm-time-player-gl4 .timezone-box .btn-box{width:134px;background:rgba(var(--v-theme-background),var(--v-background-opacity))}.idm-time-player-gl4 .timezone-box .list{width:288px;height:180px;margin-bottom:10px;box-shadow:var(--v-box-shadow-light);background:rgba(var(--v-theme-background),1);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);z-index:3}.idm-time-player-gl4 .timezone-box .list .item{width:48px;height:24px;line-height:24px;text-align:center;border:1px solid rgba(var(--v-theme-on-surface),.3);cursor:pointer}.mapboxgl-map{-webkit-tap-highlight-color:rgb(0 0 0/0);font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative}.mapboxgl-canvas{left:0;position:absolute;top:0}.mapboxgl-map:-webkit-full-screen{height:100%;width:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.mapboxgl-ctrl-top-left{left:0;top:0}.mapboxgl-ctrl-top-right{right:0;top:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{bottom:0;right:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{float:left;margin:10px 0 0 10px}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{float:right;margin:10px 10px 0 0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{float:left;margin:0 0 10px 10px}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{float:right;margin:0 10px 10px 0}.mapboxgl-ctrl-group{background:#fff;border-radius:4px}.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;overflow:hidden;padding:0;width:29px}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl-group button:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:only-child{border-radius:inherit}.mapboxgl-ctrl button:not(:disabled):hover{background-color:#0000000d}.mapboxgl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23000'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}}@keyframes mapboxgl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='0.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='0.9' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23000'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{background-color:#fff;border-radius:12px;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:#0000000d}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0;top:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0;top:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:#000000bf;text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.mapboxgl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{flex-direction:column-reverse}.mapboxgl-popup-anchor-left{flex-direction:row}.mapboxgl-popup-anchor-right{flex-direction:row-reverse}.mapboxgl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.mapboxgl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.mapboxgl-popup-close-button:hover{background-color:#0000000d}.mapboxgl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:10px 10px 15px;pointer-events:auto;position:relative}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{left:0;opacity:1;position:absolute;top:0;transition:opacity .2s;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.mapboxgl-user-location-dot:before{animation:mapboxgl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.mapboxgl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading{height:0;width:0}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after,.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-bottom:7.5px solid #4aa1eb;content:"";position:absolute}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-left:7.5px solid transparent;transform:translateY(-28px) skewY(-20deg)}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after{border-right:7.5px solid transparent;transform:translate(7.5px,-28px) skewY(20deg)}@keyframes mapboxgl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}@media print{.mapbox-improve-map{display:none}}.mapboxgl-scroll-zoom-blocker,.mapboxgl-touch-pan-blocker{align-items:center;background:rgba(0,0,0,.7);color:#fff;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;text-align:center;top:0;transition:opacity .75s ease-in-out;transition-delay:1s;width:100%}.mapboxgl-scroll-zoom-blocker-show,.mapboxgl-touch-pan-blocker-show{opacity:1;transition:opacity .1s ease-in-out}.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page,.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page .mapboxgl-canvas{touch-action:pan-x pan-y}.mapbox-initial-gl4{box-sizing:border-box;overflow:hidden}.mapbox-initial-gl4 #map{width:100%;height:100%;cursor:pointer}.mapbox-initial-gl4 .menu-bar-box{position:absolute;overflow-y:hidden;box-sizing:border-box;height:112px;padding-top:8px;background:var(--v-icon-bg);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);box-shadow:var(--v-box-shadow-light);z-index:2}.mapbox-initial-gl4 .menu-bar-box .zoom{width:32px;height:32px;line-height:32px;text-align:center;font-size:14px;font-weight:500;border-top:1px solid rgba(var(--v-border-color),var(--v-border-opacity));border-bottom:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.mapbox-initial-gl4 .mapboxgl-ctrl-top-right,.mapbox-initial-gl4 .mapboxgl-ctrl-bottom-right{display:none}.mapbox-initial-gl4 .mapboxgl-ctrl-bottom-left{bottom:20px}.mapbox-initial-gl4 .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl,.mapbox-initial-gl4 .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-logo{display:none}.mapbox-initial-gl4 .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-scale{border:none;box-sizing:border-box;font-size:10px;padding:0 5px;margin-left:10px;white-space:nowrap;text-align:center;color:rgba(var(--v-theme-on-surface),1);background:rgba(var(--v-theme-background),.3);border-bottom:2px solid rgba(var(--v-theme-on-surface),.7);box-shadow:var(--v-box-shadow-light);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter)}.mapbox-initial-gl4 .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-scale:before{content:"";position:absolute;top:60%;left:0;width:2px;height:40%;background:rgba(var(--v-theme-on-surface),.7)}.mapbox-initial-gl4 .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-scale:after{content:"";position:absolute;top:60%;right:0;width:2px;height:40%;background:rgba(var(--v-theme-on-surface),.7)}
1
+ @charset "UTF-8";.idm-gl4-zone-info.page{position:absolute;bottom:0;left:0;width:100vw;height:100vh;z-index:1001}.idm-gl4-zone-info.dialog{min-width:300px;max-width:400px;max-height:500px;z-index:9}.idm-gl4-zone-info .rich-context span{font-size:12px!important;color:rgba(var(--v-theme-on-surface),.8)!important}.idm-gl4-zone-info .rich-context hr{border:none;border-top:1px solid rgba(var(--v-theme-on-surface),.2)!important;margin:5px 0}.idm-gl4-zone-info .close{position:absolute;top:4px;right:10px;color:rgba(var(--v-theme-on-surface),1)!important}.port-detail-container[data-v-6517c4e5]{transition:all .4s ease-in-out;z-index:1001}.port-detail-container.page[data-v-6517c4e5]{position:absolute;left:0;top:0;height:100vh;width:100vw}.port-detail-container.dialog[data-v-6517c4e5]{height:calc(100% - 100px);max-height:750px;width:480px;position:absolute;left:10px;top:80px}.forecast-table{border:thin solid rgba(var(--v-border-color),var(--v-border-opacity));border-collapse:collapse}.forecast-table th,.forecast-table td{height:28px;border:thin solid rgba(var(--v-border-color),var(--v-border-opacity));border-collapse:collapse;text-overflow:ellipsis}#idmPortInfo[data-v-0c0f27d3]{width:max-content;max-width:300px;height:max-content}.idm-gl2-enc-legend-bars-gl4-gl4{margin-bottom:150px;border-radius:5px;background:var(--idm-background-linear-gradient-top)}.idm-gl2-enc-legend-bars-gl4-gl4 div{padding:4px 8px;cursor:pointer;color:rgba(var(--v-theme-white),.9)}.idm-gl2-enc-legend-bars-gl4-gl4 div.active{color:var(--idm-success-color)}.tide-detail-container[data-v-b4cdca6c]{transition:all .4s ease-in-out;z-index:1001}.tide-detail-container.page[data-v-b4cdca6c]{position:absolute;left:0;top:0;height:100vh;width:100vw}.tide-detail-container.dialog[data-v-b4cdca6c]{max-height:800px;width:480px;position:absolute;left:10px;top:80px}.tide-table{border:thin solid rgba(var(--v-border-color),var(--v-border-opacity));border-collapse:collapse}.tide-table th,.tide-table td{height:30px;border:thin solid rgba(var(--v-border-color),var(--v-border-opacity));border-collapse:collapse;text-overflow:ellipsis}#idmTidalInfo[data-v-7f9e02c0]{width:max-content;max-width:300px;height:max-content;z-index:9}.idm-lat-lng-tip-gl4{position:absolute;bottom:10px;min-width:134px;height:68px;background:rgba(var(--v-theme-background),var(--v-background-opacity));-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);box-shadow:var(--v-box-shadow-light);transition:all .4s ease-in-out;z-index:2}#idmFollowPortInfo[data-v-95e70a1f],#idmFollowPositionInfo[data-v-da5b3529]{width:max-content;max-width:300px;height:max-content;z-index:9}.idm-gl4-other-layer .menu-bar-box{position:absolute;overflow-y:hidden;box-sizing:border-box;background:var(--v-icon-bg);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);box-shadow:var(--v-box-shadow-light);z-index:2}.idm-gl4-other-layer .available-layers{position:absolute;top:60px;width:280px;height:calc(100vh - 60px);box-sizing:border-box;background:var(--v-drawer-bg);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);box-shadow:var(--v-box-shadow-light);z-index:101}.idm-gl4-other-layer .available-layers .header-box{height:56px}.idm-gl4-other-layer .available-layers .list-box{height:calc(100% - 56px)}.idm-gl4-other-layer .available-layers .list-box .layers-body .feather-item{width:47%;border-radius:4px;box-sizing:border-box;cursor:pointer}.idm-gl4-other-layer .available-layers .list-box .layers-body .feather-item:nth-child(odd){margin-right:6%}.idm-gl4-other-layer .available-layers .list-box .layers-body .feather-item .img-box{width:100%;height:60px;padding:2px;border-radius:4px;border:var(--v-layer-img-border)}.idm-gl4-other-layer .available-layers .list-box .layers-body .feather-item .img-box.active{border:2px solid rgba(var(--v-theme-primary),1)!important}.idm-gl4-other-layer .available-layers .list-box .layers-body .feather-item .img-box img{width:100%;height:100%;border-radius:4dvh}.legend-bars-gl4.wind{background:linear-gradient(to bottom,rgb(98,113,184),rgb(98,113,184),rgb(98,113,184),rgb(98,113,184),rgb(61,110,163),rgb(74,148,170),rgb(74,146,148),rgb(77,142,124),rgb(76,164,76),rgb(103,164,54),rgb(162,135,64),rgb(162,109,92),rgb(141,63,92),rgb(151,75,145),rgb(95,100,160),rgb(91,136,161),rgb(91,136,161))}.legend-bars-gl4.current{background:linear-gradient(to bottom,rgb(84,170,230),rgb(84,170,230),rgb(84,170,230),rgb(84,170,230),rgb(64,127,115),rgb(58,164,58),rgb(191,182,67),rgb(197,154,68),rgb(160,70,94),rgb(138,84,166),rgb(82,113,165),rgb(84,142,152),rgb(150,181,184),rgb(195,194,194),rgb(195,194,194))}.legend-bars-gl4.sig-wave[data-v-c6137292],.legend-bars-gl4.swell[data-v-3c94b068]{background:linear-gradient(to bottom,rgb(50,158,186),rgb(50,158,186),rgb(50,158,186),rgb(50,158,186),rgb(48,128,164),rgb(48,99,142),rgb(52,101,166),rgb(56,104,192),rgb(56,82,169),rgb(57,61,143),rgb(134,48,48),rgb(194,77,91),rgb(192,118,105),rgb(192,163,157),rgb(192,163,157))}.legend-bars-gl4.ice-edge{background:linear-gradient(to bottom,rgb(220,243,252),rgb(220,243,252),rgb(86,169,230),rgb(47,226,155),rgb(47,226,155),rgb(47,226,155),rgb(213,253,37),rgb(213,253,37),rgb(213,253,37),rgb(230,176,39),rgb(230,176,39),rgb(230,84,39),rgb(230,84,39))}.legend-bars-gl4.ice-cover[data-v-916b01eb]{background:linear-gradient(to bottom,rgb(255,255,255),rgb(53,125,177),rgb(33,145,140),rgb(45,178,125),rgb(112,207,87),rgb(253,231,37))}.legend-bars-gl4.ice-thickness{background:linear-gradient(to bottom,rgb(4,6,19),rgb(51,50,102),rgb(51,50,102),rgb(63,82,158),rgb(63,82,158),rgb(66,123,183),rgb(66,123,183),rgb(92,161,197),rgb(92,161,197),rgb(134,199,212),rgb(134,199,212),rgb(234,253,253))}.legend-bars-gl4.precip3h{background:linear-gradient(to bottom,rgba(59,126,162,0),rgb(172,210,255),rgb(172,210,255),rgb(3,248,103),rgb(14,201,3),rgb(190,226,2),rgb(248,1,1),rgb(197,5,58),rgb(197,5,58))}.legend-bars-gl4.visibility{background:linear-gradient(to bottom,rgb(189,50,160),rgb(189,50,160),rgb(189,50,160),rgb(189,50,160),rgb(208,56,56),rgb(208,56,56),rgb(190,226,2),rgb(190,226,2),rgb(4,210,64),rgb(4,210,64),rgb(172,210,255),rgb(172,210,255))}.legend-bars-gl4.water-temp{background:linear-gradient(to bottom,rgb(95,143,197),rgb(95,143,197),rgb(95,143,197),rgb(95,143,197),rgb(80,140,62),rgb(121,146,28),rgb(171,161,14),rgb(223,177,6),rgb(243,150,6),rgb(236,95,21),rgb(190,65,18),rgb(138,43,10),rgb(138,43,10))}.legend-bars-gl4.temp{background:linear-gradient(to bottom,rgb(149,137,211),rgb(149,137,211),rgb(149,137,211),rgb(149,137,211),rgb(150,209,216),rgb(129,204,197),rgb(103,180,186),rgb(95,143,197),rgb(80,140,62),rgb(121,146,28),rgb(171,161,14),rgb(223,177,6),rgb(243,150,6),rgb(236,95,21),rgb(190,65,18),rgb(138,43,10),rgb(138,43,10))}.idm-gl4-meteo-layers .menu-bar-box{position:absolute;box-sizing:border-box;z-index:2}.idm-gl4-meteo-layers .available-layers{position:absolute;top:60px;width:280px;height:calc(100vh - 60px);box-sizing:border-box;background:var(--v-drawer-bg);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);box-shadow:var(--v-box-shadow-light);z-index:101}.idm-gl4-meteo-layers .available-layers .header-box{height:56px}.idm-gl4-meteo-layers .available-layers .list-box{height:calc(100% - 56px)}.idm-tropical-gl4 .menu-bar-box{position:absolute;box-sizing:border-box;z-index:2}.idm-tropical-gl4-info.page{position:absolute;bottom:0;left:0;width:100vw;z-index:1001;border-radius:16px 16px 0 0;background:rgb(var(--v-theme-surface))!important}.idm-tropical-gl4-info.dialog{z-index:10;width:400px}.idm-tropical-gl4-info .close{position:absolute;font-size:12px;right:10px;top:10px;color:rgba(var(--v-theme-on-surface),.8)!important}.idm-tropical-gl4-info .model-box{background:var(--v-gray-bg-2);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);box-shadow:var(--v-box-shadow-light)}.idm-tropical-gl4-info .model-box .model{font-size:12px}.idm-tropical-gl4-info .legend .icon{height:10px;width:10px;border-radius:50%;border:1px solid rgba(var(--v-theme-on-surface),1);margin-right:4px;box-sizing:border-box}.idm-tropical-gl4-info .legend .icon.td{background-color:rgba(var(--v-theme-tropicals-td),1)}.idm-tropical-gl4-info .legend .icon.ts{background-color:rgba(var(--v-theme-tropicals-ts),1)}.idm-tropical-gl4-info .legend .icon.sts{background-color:rgba(var(--v-theme-tropicals-sts),1)}.idm-tropical-gl4-info .legend .icon.ty{background-color:rgba(var(--v-theme-tropicals-ty),1)}.idm-tropical-gl4-info .legend .icon.sty{background-color:rgba(var(--v-theme-tropicals-sty),1)}.idm-tropical-gl4-info .legend .icon.supper-ty{background-color:rgba(var(--v-theme-tropicals-super-ty),1)}.idm-tropical-gl4-info .legend .icon.r7{height:14px;width:14px;border:2px solid rgba(var(--v-theme-tropicals-r7),1)}.idm-tropical-gl4-info .legend .icon.r10{height:14px;width:14px;border:2px solid rgba(var(--v-theme-tropicals-r10),1)}.idm-tropical-gl4-info .legend .icon.history{border:1px solid rgba(var(--v-theme-on-surface),.7);border-radius:0;width:16px;height:2px}.idm-tropical-gl4-info .legend .icon.forecast{border:1px dashed rgba(var(--v-theme-on-surface),.7);border-radius:0;width:16px;height:2px}.idm-tropical-gl4-info .legend .button{cursor:pointer;padding:0 4px;border-radius:4px;border:1px solid rgba(var(--v-theme-primary));color:rgba(var(--v-theme-primary))}.idm-tropical-gl4-hourly-marker .iconfont{font-size:34px!important;color:rgba(var(--v-theme-error))}.idm-tropical-gl4-hourly-marker svg{height:34px;width:34px}.idm-tropical-gl4-hourly-marker .center{box-sizing:border-box;display:flex;align-items:center;justify-content:center}.idm-tropical-gl4-hourly-marker .center.north{animation:anticlockwise 2s linear infinite}.idm-tropical-gl4-hourly-marker .center.south{animation:clockwise 2s linear infinite}.idm-gl4-time-picker{position:relative}.idm-gl4-time-picker .card-box{position:absolute;width:350px;height:320px;z-index:10}.idm-gl4-date-picker{position:relative}.idm-gl4-date-picker .card-box{position:absolute;width:260px;height:320px;z-index:10}.v-date-picker .v-picker-title{display:none}.v-date-picker .v-date-picker-controls{padding:0 8px}.v-date-picker .v-date-picker-controls .v-date-picker-controls__month-btn{padding:0 8px;border-radius:4px!important;font-weight:500!important;border:thin solid rgba(var(--v-theme-on-surface),.12);margin-right:8px}.v-date-picker .v-date-picker-controls .v-date-picker-controls__month-btn:hover{background-color:rgba(var(--v-theme-on-background),var(--v-hover-opacity))!important;border-radius:inherit}.v-date-picker .v-date-picker-controls .v-date-picker-controls__mode-btn{width:52px!important;border-radius:4px!important;transform:rotate(0)!important;border:thin solid rgba(var(--v-theme-on-surface),.12)}.v-date-picker .v-date-picker-controls .v-date-picker-controls__mode-btn i{font-size:12px!important;font-style:normal!important}.v-date-picker .v-date-picker-month{padding:0!important}.v-date-picker .v-date-picker-month__day{height:30px!important;width:30px!important}.v-date-picker .v-date-picker-month__day .v-date-picker-month__day-btn{--v-btn-height: 18px !important;border-radius:4px!important;border:none!important}.v-date-picker .v-date-picker-months{height:200px!important}.v-date-picker .v-date-picker-months .v-date-picker-months__content{grid-template-columns:repeat(3,1fr)!important}.v-date-picker .v-date-picker-months .v-date-picker-months__content .v-btn--rounded{border-radius:4px!important}.v-date-picker .v-date-picker-years{height:200px!important;overflow:hidden}.v-date-picker .v-date-picker-years .v-date-picker-years__content{grid-template-columns:repeat(2,1fr)!important}.v-date-picker .v-date-picker-years .v-date-picker-years__content .v-btn--rounded{border-radius:4px!important}.idm-gl4-spot .menu-bar-box{position:absolute;box-sizing:border-box;z-index:2}.idm-gl4-spot .spot-form-card{position:absolute;width:254px;overflow:visible;z-index:5;transition:all .4s ease-in-out}.idm-gl4-spot .spot-form-card .v-field,.idm-gl4-spot .spot-form-card .v-field__field,.idm-gl4-spot .spot-form-card .v-field__input{height:32px!important;min-height:32px!important;line-height:32px!important;padding:0 4px!important;font-size:14px!important}.idm-gl4-spot .spot-form-card .v-input__details{padding:0!important;height:14px!important;min-height:14px!important;line-height:14px!important;font-size:12px!important}.idm-gl4-measure .menu-bar-box{position:absolute;box-sizing:border-box;z-index:2}.idm-gl4-measure-marker{pointer-events:none!important}.idm-gl4-measure-marker .marker-circle{pointer-events:inherit;width:10px;height:10px;border-radius:50%;border:2px solid rgba(var(--v-theme-map-orange));background:#fff}.idm-gl4-measure-marker .marker-circle:hover{cursor:pointer}.idm-gl4-measure-marker.closed{pointer-events:auto!important}.idm-gl4-measure-summary-marker{color:#fff;font-size:12px;background:rgba(var(--v-theme-map-orange));border:2px solid #fff;padding:0 30px 0 5px;border-radius:4px;cursor:pointer}.idm-gl4-measure-summary-marker .marker-close{pointer-events:auto;position:absolute;background:rgba(var(--v-theme-map-orange));border-left:2px solid #fff;display:flex;align-items:center;justify-content:center;width:20px;height:100%;right:0;cursor:pointer;font-size:20px}.idm-gl4-measure-contextmenu-marker{color:#fff;font-size:12px;background:rgba(var(--v-theme-map-orange));border:2px solid #fff;padding:2px 5px;border-radius:5px;cursor:pointer}.idm-gl4-measure-tip-marker{font-size:12px;padding:2px 5px;border-radius:5px;background-color:rgba(var(--v-theme-surface),.7);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);box-shadow:var(--v-box-shadow-light);cursor:pointer}.idm-gl4-measure-tip-marker .marker-label{border-bottom:var(--idm-dashed-border)}.idm-gl4-measure-tip-marker .marker-label:last-child{border-bottom:none}.idm-gl4-measure-tip-marker .marker-label b{font-weight:600;color:rgba(var(--v-theme-map-orange))}.idm-bottom-bar-gl4 .timeline-box{position:absolute;height:40px;box-sizing:border-box;background:rgba(var(--v-theme-background),var(--v-background-opacity));-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);box-shadow:var(--v-box-shadow-light);transition:all .4s ease-in-out;z-index:12}.idm-bottom-bar-gl4 .timeline-box i{font-size:20px}.idm-bottom-bar-gl4 .timezone-box{position:absolute;bottom:88px;transition:all .4s ease-in-out}.idm-bottom-bar-gl4 .timezone-box .btn-box{width:134px;background:rgba(var(--v-theme-background),var(--v-background-opacity))}.idm-bottom-bar-gl4 .timezone-box .list{width:288px;height:180px;margin-bottom:10px;box-shadow:var(--v-box-shadow-light);background:rgba(var(--v-theme-background),1);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);z-index:3}.idm-bottom-bar-gl4 .timezone-box .list .item{width:48px;height:24px;line-height:24px;text-align:center;border:1px solid rgba(var(--v-theme-on-surface),.3);cursor:pointer}.idm-time-player-gl4{position:absolute;width:100%}.idm-time-player-gl4 .timeline-box{box-sizing:border-box;transition:all .4s ease-in-out;z-index:12}.idm-time-player-gl4 .timeline-box i{font-size:20px}.idm-time-player-gl4 .timezone-box{position:absolute;bottom:88px;transition:all .4s ease-in-out}.idm-time-player-gl4 .timezone-box .btn-box{width:134px;background:rgba(var(--v-theme-background),var(--v-background-opacity))}.idm-time-player-gl4 .timezone-box .list{width:288px;height:180px;margin-bottom:10px;box-shadow:var(--v-box-shadow-light);background:rgba(var(--v-theme-background),1);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);z-index:3}.idm-time-player-gl4 .timezone-box .list .item{width:48px;height:24px;line-height:24px;text-align:center;border:1px solid rgba(var(--v-theme-on-surface),.3);cursor:pointer}.mapboxgl-map{-webkit-tap-highlight-color:rgb(0 0 0/0);font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative}.mapboxgl-canvas{left:0;position:absolute;top:0}.mapboxgl-map:-webkit-full-screen{height:100%;width:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.mapboxgl-ctrl-top-left{left:0;top:0}.mapboxgl-ctrl-top-right{right:0;top:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{bottom:0;right:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{float:left;margin:10px 0 0 10px}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{float:right;margin:10px 10px 0 0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{float:left;margin:0 0 10px 10px}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{float:right;margin:0 10px 10px 0}.mapboxgl-ctrl-group{background:#fff;border-radius:4px}.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;overflow:hidden;padding:0;width:29px}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl-group button:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:only-child{border-radius:inherit}.mapboxgl-ctrl button:not(:disabled):hover{background-color:#0000000d}.mapboxgl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23000'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}}@keyframes mapboxgl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='0.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='0.9' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23000'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{background-color:#fff;border-radius:12px;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:#0000000d}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0;top:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0;top:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:#000000bf;text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.mapboxgl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{flex-direction:column-reverse}.mapboxgl-popup-anchor-left{flex-direction:row}.mapboxgl-popup-anchor-right{flex-direction:row-reverse}.mapboxgl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.mapboxgl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.mapboxgl-popup-close-button:hover{background-color:#0000000d}.mapboxgl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:10px 10px 15px;pointer-events:auto;position:relative}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{left:0;opacity:1;position:absolute;top:0;transition:opacity .2s;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.mapboxgl-user-location-dot:before{animation:mapboxgl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.mapboxgl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading{height:0;width:0}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after,.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-bottom:7.5px solid #4aa1eb;content:"";position:absolute}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-left:7.5px solid transparent;transform:translateY(-28px) skewY(-20deg)}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after{border-right:7.5px solid transparent;transform:translate(7.5px,-28px) skewY(20deg)}@keyframes mapboxgl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}@media print{.mapbox-improve-map{display:none}}.mapboxgl-scroll-zoom-blocker,.mapboxgl-touch-pan-blocker{align-items:center;background:rgba(0,0,0,.7);color:#fff;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;text-align:center;top:0;transition:opacity .75s ease-in-out;transition-delay:1s;width:100%}.mapboxgl-scroll-zoom-blocker-show,.mapboxgl-touch-pan-blocker-show{opacity:1;transition:opacity .1s ease-in-out}.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page,.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page .mapboxgl-canvas{touch-action:pan-x pan-y}.mapbox-initial-gl4{box-sizing:border-box;overflow:hidden}.mapbox-initial-gl4 #map{width:100%;height:100%;cursor:pointer}.mapbox-initial-gl4 .menu-bar-box{position:absolute;overflow-y:hidden;box-sizing:border-box;height:112px;padding-top:8px;background:var(--v-icon-bg);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter);box-shadow:var(--v-box-shadow-light);z-index:2}.mapbox-initial-gl4 .menu-bar-box .zoom{width:32px;height:32px;line-height:32px;text-align:center;font-size:14px;font-weight:500;border-top:1px solid rgba(var(--v-border-color),var(--v-border-opacity));border-bottom:1px solid rgba(var(--v-border-color),var(--v-border-opacity))}.mapbox-initial-gl4 .mapboxgl-ctrl-top-right,.mapbox-initial-gl4 .mapboxgl-ctrl-bottom-right{display:none}.mapbox-initial-gl4 .mapboxgl-ctrl-bottom-left{bottom:20px}.mapbox-initial-gl4 .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl,.mapbox-initial-gl4 .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-logo{display:none}.mapbox-initial-gl4 .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-scale{border:none;box-sizing:border-box;font-size:10px;padding:0 5px;margin-left:10px;white-space:nowrap;text-align:center;color:rgba(var(--v-theme-on-surface),1);background:rgba(var(--v-theme-background),.3);border-bottom:2px solid rgba(var(--v-theme-on-surface),.7);box-shadow:var(--v-box-shadow-light);-webkit-backdrop-filter:var(--v-backdrop-filter);backdrop-filter:var(--v-backdrop-filter)}.mapbox-initial-gl4 .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-scale:before{content:"";position:absolute;top:60%;left:0;width:2px;height:40%;background:rgba(var(--v-theme-on-surface),.7)}.mapbox-initial-gl4 .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-scale:after{content:"";position:absolute;top:60%;right:0;width:2px;height:40%;background:rgba(var(--v-theme-on-surface),.7)}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@idmwx/idmui-gl4",
3
3
  "private": false,
4
- "version": "2.0.7",
4
+ "version": "2.0.8",
5
5
  "description": "idm webgl4",
6
6
  "type": "module",
7
7
  "keywords": [