PageSourceSearch

https://visitabudhabi.ae/dist/vad/static/js/ExploreMap.c16cb6a9.chunk.js

js visitabudhabi.ae collected 2026-09-24 15:25:05 UTC 1,915,560 bytes, 2 lines download raw bytes

1/*! For license information please see ExploreMap.c16cb6a9.chunk.js.LICENSE.txt */
2(this.webpackJsonpvad=this.webpackJsonpvad||[]).push([[84,4,7,10,11,12,16,32,118,218],{1297:function(e,t,n){"use strict";n.r(t);var i=n(2),r=n(3),a=n(19),o=n(9),s=n(0),c=n.n(s),l=n(84),u=n(865),d=n(1),p=(n(4),Object(u.a)((function(e){var t,n,a,o,s,c,l,u,p,h,m,f,g,b,v,y,x,_,w,O;return{root:{"&.itineraryModal":(O={borderRadius:Object(d.p)(12),boxShadow:"0px 0px 50px 0px rgba(0, 0, 0, 0.30)",maxWidth:"600px",margin:"auto",height:"fit-content",zIndex:"1400 !important"},Object(i.a)(O,e.breakpoints.down("sm"),{maxWidth:"100%"}),Object(i.a)(O,"&.itineary-modal-mob",{zIndex:"999 !important"}),Object(i.a)(O,"&.addItenary",Object(i.a)({maxWidth:"500px",height:"fit-content","& > div":{"&:first-child":{backgroundColor:"#00000040 !important"}},"& .crossWraper":Object(r.a)(Object(r.a)({top:"17.33px"},e.mixins.right(Object(d.p)(17.33))),{},(t={},Object(i.a)(t,e.breakpoints.down("sm"),Object(r.a)({top:Object(d.p)(32)},e.mixins.right(Object(d.p)(24)))),Object(i.a)(t,"& span",{"& svg":{"& path":{stroke:"#898C8D"}}}),t)),"& h4":Object(i.a)({fontSize:Object(d.p)(32),lineHeight:Object(d.p)(40)},e.breakpoints.down("sm"),{fontSize:Object(d.p)(24),lineHeight:Object(d.p)(32)}),"& svg":{width:"16px",height:"16px"}},e.breakpoints.down("sm"),{marginBottom:"0",maxWidth:"100%"})),Object(i.a)(O,"&.mapCreateIteneraryPopup",Object(i.a)({},e.breakpoints.down("sm"),{height:"100%"})),Object(i.a)(O,"&.createItinerary",(u={maxWidth:"632px","& > div":{"&:first-child":Object(i.a)({},e.breakpoints.down("sm"),{backgroundColor:"transparent !important"})}},Object(i.a)(u,e.breakpoints.up("md"),{width:"fit-content"}),Object(i.a)(u,e.breakpoints.down("md"),{maxWidth:"100%"}),Object(i.a)(u,e.breakpoints.down("sm"),{maxWidth:"100%",boxShadow:"none",height:"calc(100% - var(--headerHeight) - var(--notificationBar)) ",marginTop:"auto",margin:"0","& > div":{"&:first-child":{backgroundColor:"transparent !important"}}}),Object(i.a)(u,"& .boxWrapper",(l={padding:"48px"},Object(i.a)(l,e.breakpoints.up("md"),{padding:"24px 48px 48px 48px"}),Object(i.a)(l,e.breakpoints.down("sm"),{borderRadius:0,overflow:"scroll",height:"100%",padding:"0px 24px 16px 24px"}),Object(i.a)(l,"& .crossWraper",(n={width:"100%",position:"unset",top:"unset",minHeight:Object(d.p)(40),display:"flex",alignItems:"center"},Object(i.a)(n,e.breakpoints.down("sm"),{marginTop:"16px",marginBottom:"16px"}),Object(i.a)(n,"& span",{cursor:"pointer",width:"fit-content",textAlign:"unset",display:"flex",alignItems:"center",'[dir="rtl"] &':{"& svg":{marginLeft:Object(d.p)(12),transform:"rotate(180Deg)"}}}),Object(i.a)(n,"& .text",{fontSize:"16px",lineHeight:"24px",textTransform:"uppercase",fontWeight:"400",color:"#898C8D",padding:"8px 0",marginLeft:"12px"}),n)),Object(i.a)(l,"& .formWrapper",{"& .MuiTypography-h4":(a={},Object(i.a)(a,e.breakpoints.up("md"),{lineHeight:"40px",fontSize:"32px",marginBottom:"24px",marginTop:"8px"}),Object(i.a)(a,e.breakpoints.down("sm"),{marginTop:"0"}),a),"&.itinerary-alignment":Object(i.a)({},e.breakpoints.up("md"),{"& .MuiButtonBase-root":{marginTop:Object(d.p)(41)}}),"& .MuiGrid-root":{"&:first-child":Object(i.a)({},e.breakpoints.up("md"),{display:"flex",justifyContent:"space-between","& .MuiFormControl-root":{maxWidth:"unset"}}),"& .MuiFormControl-root":(o={},Object(i.a)(o,e.breakpoints.up("md"),{"& .makeStyles-rangeCalendar-707":{},"& .MuiInputBase-root":{height:"51px",padding:"0  16px",borderRadius:"3px","& input":{padding:"unset","&:-webkit-autofill":{boxShadow:"inset 0 0 0 1000px #fff","-webkit-text-fill-color":"#565A5C"},"&:-webkit-autofill:focus ":{boxShadow:"inset 0 0 0 1000px #fff","-webkit-text-fill-color":"#565A5C"}}},"& .rangeCalendarPicker":{padding:"13px 16px",height:"51px"}}),Object(i.a)(o,"& .rangeCalendarPicker",{"@media (max-width: 1439px)":Object(i.a)({padding:"0 16px",display:"flex",alignItems:"center","& .calendarIcon":{top:Object(d.p)(22)}},e.breakpoints.down("md"),{padding:"13px 16px","& .calendarIcon":{top:Object(d.p)(16)}})}),o),"& .customRadio":Object(i.a)({},e.breakpoints.up("md"),{marginTop:"unset","& .MuiFormLabel-root":{marginBottom:"12px"}
2,"& .MuiFormGroup-root":{"& .MuiFormControlLabel-root":Object(r.a)(Object(r.a)({width:"125px",height:"40px"},e.mixins.marginRight(Object(d.p)(12))),{},{"& .MuiButtonBase-root":{width:"125px",height:"40px",borderRadius:"72px"}})}}),"& .counterBox":(s={},Object(i.a)(s,e.breakpoints.up("md"),{"& .counterWrapper":{"& .MuiButtonBase-root":{borderRadius:"70%"}}}),Object(i.a)(s,e.breakpoints.down("sm"),{marginBottom:Object(d.p)(20)}),s),"& .MuiButtonBase-root":Object(i.a)({},e.breakpoints.up("md"),{"&.MuiButton-sizeSmall":{marginTop:Object(d.p)(32),padding:"12px 24px"}})},"& form":{position:"relative","& .deleteBtn":Object(r.a)(Object(r.a)(Object(r.a)({position:"absolute",fontSize:"16px",fontWeight:"700",lineHeight:"24px",bottom:"9px",cursor:"pointer",color:"#FF8707"},e.mixins.marginLeft(24)),e.mixins.left(192)),{},(c={},Object(i.a)(c,e.breakpoints.up("lg"),Object(r.a)(Object(r.a)(Object(r.a)({},e.mixins.marginLeft(24)),e.mixins.left(175)),{},{bottom:"4px"})),Object(i.a)(c,e.breakpoints.up("xxl"),Object(r.a)(Object(r.a)({bottom:"9px"},e.mixins.marginLeft(24)),e.mixins.left(192))),c))},"& .formHeading":Object(i.a)({},e.breakpoints.down("sm"),{marginTop:"40px",marginBottom:"24px",maxWidth:"211px",width:"100%"})}),l)),u)),Object(i.a)(O,"& .boxWrapper",(w={borderRadius:Object(d.p)(12),position:"relative",padding:"32px","&.disable-cta":{"& .deleteCta":{pointerEvents:"none",opacity:.5}},"&.sty2":{"& .radioGroup":{"& .MuiButtonBase-root":Object(i.a)({borderRadius:Object(d.p)(8)},e.breakpoints.down("sm"),{borderRadius:Object(d.p)(4)})}}},Object(i.a)(w,e.breakpoints.down("sm"),{padding:Object(d.p)(24),borderRadius:"0px",borderTopLeftRadius:Object(d.p)(16),borderTopRightRadius:Object(d.p)(16)}),Object(i.a)(w,"backgroundColor","#fff"),Object(i.a)(w,"& .crossWraper",Object(r.a)(Object(r.a)({position:"absolute",top:"24px"},e.mixins.right(Object(d.p)(24))),{},{width:"24px","& svg":Object(i.a)({},e.breakpoints.down("sm"),Object(r.a)({width:"16px",top:"16px"},e.mixins.right(Object(d.p)(20)))),"& span":{cursor:"pointer",width:"100%",display:"block",textAlign:"center"}})),Object(i.a)(w,"& .btnWrapper",{display:"flex",alignItems:"center","& .viewAllBtn":Object(r.a)(Object(r.a)({color:"#000000"},e.mixins.marginLeft(Object(d.p)(24))),{},Object(i.a)({},e.breakpoints.down("sm"),{color:"#FF8707"})),"&.btn-add-itinerary":{"& .MuiIcon-root":{width:"unset",height:"unset"},"& svg":{width:"unset",height:"unset",'[dir="rtl"] &':{transform:"rotate(180Deg)"}}}}),Object(i.a)(w,"& .formWrapper",{"& .MuiTypography-h4":Object(i.a)({display:"block",margin:0,fontWeight:"700",marginBottom:"40px",maxWidth:"100%"},e.breakpoints.down("sm"),{fontSize:Object(d.p)(24),lineHeight:Object(d.p)(32),maxWidth:"80%",marginTop:"56px",marginBottom:"16px"}),"&.itinerary-alignment":{"& .MuiButtonBase-root":(p={marginTop:Object(d.p)(24)},Object(i.a)(p,e.breakpoints.down("sm"),{marginTop:Object(d.p)(32)}),Object(i.a)(p,"& .MuiButton-label",{"& .btn-txt":{fontWeight:"700",fontSize:"16px"}}),p)},"&.labelAlingment":{"& .customRadio":{"& .MuiFormControlLabel-root":{width:"153.5px !important","& .radio-btn":{width:"153.5px !important"}}}},"& .MuiGrid-root":{"& .MuiFormControl-root":(g={maxWidth:"244px",width:"100%",margin:0,"& .react-datepicker__day":{"&:focus-visible":{outline:"2px solid #000",borderRadius:"2px"}},"& .react-datepicker__navigation":{borderColor:"#000"},"&.customInput":Object(r.a)(Object(r.a)({},e.mixins.marginRight(Object(d.p)(16))),{},(h={},Object(i.a)(h,e.breakpoints.down("md"),{minHeight:"78px",marginBottom:"16px",justifyContent:"flex-end"}
2),Object(i.a)(h,e.breakpoints.down("sm"),{minHeight:"auto"}),Object(i.a)(h,"& .MuiFormLabel-root",Object(i.a)({lineHeight:"16px",marginBottom:"8px",fontSize:"14px"},e.breakpoints.down("sm"),{transform:"translate(0, 0px) scale(1)"})),h))},Object(i.a)(g,e.breakpoints.down("sm"),{maxWidth:"100%"}),Object(i.a)(g,"& .MuiInputBase-root",(m={borderColor:"#DDDEDE"},Object(i.a)(m,e.breakpoints.down("sm"),{borderRadius:"3px"}),Object(i.a)(m,"&.Mui-focused",{borderColor:"#FF8707"}),Object(i.a)(m,"& input",{color:"#565A5C",fontSize:"14px"}),m)),Object(i.a)(g,"& .calendarWrapper",{marginTop:Object(d.p)(24)}),Object(i.a)(g,"& .rangeCalendarPicker",(f={"&.singleCalendarfocused":{borderColor:"#FF8707"},borderColor:"#DDDEDE",top:Object(d.p)(24)},Object(i.a)(f,e.breakpoints.up("md"),{top:Object(d.p)(27.4)}),Object(i.a)(f,e.breakpoints.up("lg"),{top:"24px"}),Object(i.a)(f,e.breakpoints.up("xl"),{top:Object(d.p)(30)}),Object(i.a)(f,e.breakpoints.up("xxl"),{top:Object(d.p)(24)}),Object(i.a)(f,"& div",{fontSize:"14px","&.sty1":{'[dir="rtl"] &':Object(r.a)({},e.mixins.paddingLeft(0))}}),Object(i.a)(f,"& label",{"@media (max-width: 1439px)":{transform:"translate(0, -3.4rem) scale(0.9)"},"@media (max-width: 1023px)":{transform:"translate(0, -3.1rem) scale(0.9)"},"@media (max-width: 767px)":{transform:"translate(0, -2.59375rem) scale(0.9)"},"& .MuiTypography-root":{lineHeight:"16px",color:"#000000"}}),Object(i.a)(f,"& .MuiTypography-root",{fontSize:"14px",color:"#565A5C"}),f)),g),"& .customRadio":(x={marginTop:Object(d.p)(16),width:"100%",maxWidth:"100%"},Object(i.a)(x,e.breakpoints.down("md"),{marginTop:Object(d.p)(0)}),Object(i.a)(x,"& .MuiFormLabel-root",{fontSize:"14px",fontWeight:"400",marginBottom:"16px",fontFamily:"BasicAbuDhabi-Regular, Arial, sans-serif",lineHeight:"16px"}),Object(i.a)(x,"margin",0),Object(i.a)(x,"& .MuiFormGroup-root",(y={width:"calc(100% + 12px)"},Object(i.a)(y,e.breakpoints.down("md"),{width:"100%"}),Object(i.a)(y,e.breakpoints.down("sm"),{justifyContent:"space-between"}),Object(i.a)(y,"& .MuiFormControlLabel-root",Object(r.a)(Object(r.a)(Object(r.a)({width:"114px",height:"114px"},e.mixins.marginLeft(Object(d.p)(0))),e.mixins.marginRight(Object(d.p)(16))),{},(v={},Object(i.a)(v,e.breakpoints.down("sm"),Object(r.a)(Object(r.a)({width:"155.5px",height:"48px"},e.mixins.marginRight(Object(d.p)(0))),{},{marginBottom:"16px"})),Object(i.a)(v,"&:last-child",Object(r.a)({},e.mixins.marginRight(Object(d.p)(0)))),Object(i.a)(v,"& .MuiButtonBase-root",(b={border:"1px solid #DDDEDE",position:"absolute",width:"114px",height:"114px","&.radio-btn":{marginTop:0}},Object(i.a)(b,e.breakpoints.down("sm"),{width:"155.5px",height:"48px",borderRadius:"72px"}),Object(i.a)(b,"&.Mui-checked",{border:"1px solid #FF8707"}),Object(i.a)(b,"&.Mui-checked + span",{color:"#FF8707"}),Object(i.a)(b,"& .MuiIconButton-label",{display:"none"}),b)),Object(i.a)(v,"& .MuiFormControlLabel-label",{width:"100%",height:"100%",position:"relative",color:"#565A5C","& .MuiTypography-root":{fontSize:Object(d.p)(14),fontWeight:"700",position:"absolute",lineHeight:Object(d.p)(16),top:"50%",left:"50%",width:"100%",textAlign:"center",transform:"translate(-50% , -50%)"}}),v))),y)),x),"& .counterBox":{"& .MuiTypography-root":Object(i.a)({margin:"16px 0",fontSize:"14px",lineHeight:"16px"},e.breakpoints.down("sm"),{marginTop:Object(d.p)(0)}),"& .errortext":Object(i.a)({marginTop:"20px",margin:0,display:"block"},e.breakpoints.down("sm"),{marginTop:"20px !important"}),"& .counterWrapper":{display:"flex",alignItems:"center","& .MuiButtonBase-root":{marginTop:0,minHeight:Object(d.p)(48),minWidth:Object(d.p)(48),border:"1px solid #FF8707",backgroundColor:"#FF8707",borderRadius:"50%",touchAction:"manipulation","&.Mui-disabled":{backgroundColor:"transparent",opacity:1,borderColor:"#DDDEDE",color:"#D9D9D9"},"& .MuiButton-label":{width:"100%",height:"100%"}},"& .valueWrapper":(_={maxWidth:Object(d.p)(162),width:"100%",minHeight:Object(d.p)(48),display:"flex",alignItems:"center",border:"1px solid #FF8707",borderRadius:"72px",justifyContent:"center",margin:"0 16px"},Object(i.a)(_,e.breakpoints.down("sm"),{maxWidth:Object(d.p)(215)}),Object(i.a)(_,"& .MuiTypography-root",{color:"#565A5C",margin:"auto"}),_)}},"& .formCustomBtn":{fontSize:"16px",lineHeight:"22px",color:"#FF8707",marginTop:Object(d.p)(24)},"& .MuiButtonBase-root":Object(i.a)({marginTop:Object(d.p)(24),margin:0,"&.create-itinerary-submit-btn-alignment":Object(i.a)({},e.breakpoints.down("sm"),{marginTop:Object(d.p)(8),width:"100%"}),"&.MuiButton-sizeSmall":Object(r.a)({},e.mixins.marginRight(20))},e.breakpoints.down("sm"),{marginTop:Object(d.p)(24)})}}),w)),O)}}}))),h=n(209),m=n(238),f=n(1292),g=n(5),b=n(31),v=n(1556),y=n(76),x=n(12),_=n(1511),w=(n(352),n(528)),O=n(2538),j=n(2529),C=n(2231),E=n(1523),T=function(e){var t,n,r;return{root:(r={margin:"var(--mfd-spacing-m) 0"},Object(i.a)(r,e.breakpoints.down("sm"),{margin:"var(--mfd-spacing-s) 0 var(--mfd-spacing-m) 0"}),Object(i.a)(r,"& .MuiFormControl-root",{width:"100%","& .MuiFormGroup-root":{"& .MuiFormControl
2Label-root":(n={marginLeft:0,marginBottom:"var(--mfd-spacing-xxs)",minHeight:Object(d.p)(56),"&:last-child":{marginBottom:"0px"}},Object(i.a)(n,e.breakpoints.down("md"),{minHeight:Object(d.q)(48)}),Object(i.a)(n,"& .MuiButtonBase-root",(t={border:"1px solid #DDDEDE",borderRadius:"var(--mfd-rounding-xs)",marginBottom:"var(--mfd-spacing-xxs)",padding:Object(d.p)(15),minHeight:Object(d.p)(56)},Object(i.a)(t,e.breakpoints.down("md"),{minHeight:Object(d.q)(48),padding:Object(d.q)(10)}),Object(i.a)(t,"&.Mui-checked",{backgroundColor:"rgba(252, 239, 222, 0.2)",border:"1px solid ".concat(e.palette.common.Sunset()),"& .MuiIconButton-label":{"& .radio-btn-Chekedicon":Object(i.a)({width:Object(d.p)(24),height:Object(d.p)(24),border:"1px solid ".concat(e.palette.common.Sunset()),borderRadius:"50%",backgroundColor:e.palette.common.WhiteUpd(),position:"relative","&:before":{width:Object(d.p)(16),height:Object(d.p)(16),position:"absolute",content:'""',top:"50%",left:"50%",transform:"translate(-50% , -50%)",background:e.palette.common.Sunset(),borderRadius:"50%"}},e.breakpoints.down("md"),{width:Object(d.q)(24),height:Object(d.q)(24),"&:before":{width:Object(d.q)(16),height:Object(d.q)(16)}})}}),Object(i.a)(t,"position","absolute"),Object(i.a)(t,"left",0),Object(i.a)(t,"width","100%"),Object(i.a)(t,"& .MuiIconButton-label",{justifyContent:"flex-start",'[dir="rtl"] &':{},"& .radio-btn-icon":Object(i.a)({width:Object(d.p)(24),height:Object(d.p)(24),border:"1px solid #565A5C",borderRadius:"50%"},e.breakpoints.down("md"),{width:Object(d.q)(24),height:Object(d.q)(24)})}),t)),n)},"& .MuiTypography-body1":{zIndex:"9",width:"100%"},"& .MuiTypography-body2":Object(i.a)({paddingLeft:Object(d.p)(51),'[dir="rtl"] &':{paddingLeft:"0",paddingRight:Object(d.p)(36)},fontSize:Object(d.p)(16),display:"block",marginBottom:Object(d.p)(7)},e.breakpoints.down("md"),{paddingLeft:Object(d.q)(51),'[dir="rtl"] &':{paddingRight:Object(d.q)(36)},fontSize:Object(d.q)(16),marginBottom:Object(d.q)(7)})}),r)}},k=(n(199),function(e){var t,n,r,a=e.mixins;a.left,a.right;return{root:(r={margin:"24px 0"},Object(i.a)(r,e.breakpoints.down("sm"),{margin:"16px 0 24px 0"}),Object(i.a)(r,"& .MuiFormControl-root",{width:"100%","& .MuiFormGroup-root":{"& .MuiFormControlLabel-root":(n={marginLeft:0,marginBottom:"8px",minHeight:"56px","&:last-child":{marginBottom:"0px"}},Object(i.a)(n,e.breakpoints.down("sm"),{minHeight:"48px"}),Object(i.a)(n,"& .MuiButtonBase-root",(t={border:"1px solid #DDDEDE",borderRadius:"4px",marginBottom:"8px",padding:"15px",minHeight:"56px"},Object(i.a)(t,e.breakpoints.down("sm"),{minHeight:"48px",padding:"10px"}),Object(i.a)(t,"&.Mui-checked",{backgroundColor:"rgba(252, 239, 222, 0.2)",border:"1px solid #FF8707","& .MuiIconButton-label":{"& .radio-btn-Chekedicon":{width:"24px",height:"24px",border:"1px solid #FF8707",borderRadius:"50%",backgroundColor:"#fff",position:"relative","&:before":{width:"16px",height:"16px",position:"absolute",content:'""',top:"50%",left:"50%",transform:"translate(-50% , -50%)",background:"#FF8707",borderRadius:"50%"}}}}),Object(i.a)(t,"position","absolute"),Object(i.a)(t,"left",0),Object(i.a)(t,"width","100%"),Object(i.a)(t,"& .MuiIconButton-label",{justifyContent:"flex-start",'[dir="rtl"] &':{},"& .radio-btn-icon":{width:"24px",height:"24px",border:"1px solid #565A5C",borderRadius:"50%"}}),t)),n)},"& .MuiTypography-body1":{zIndex:"9",width:"100%"},"& .MuiTypography-body2":{paddingLeft:"51px",'[dir="rtl"] &':{paddingLeft:"0",paddingRight:"36px"},fontSize:"16px",display:"block",marginBottom:"7px"}}),r)}}),S=n(27),A=Object(u.a)((function(e){return Object(S.c)(e)?T(e):k(e)})),I=n(49),M=function(e){var t=e.list,n=!Object(I.isEmpty)(t)&&t[(null===t||void 0===t?void 0:t.length)-1],i=n.trip_name,r=n.id,a=Object(s.useState)(null),l=Object(o.a)(a,2),u=l[0],d=l[1],p=A(),h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return c.a.createElement(C.a,{value:t,control:c.a.createElement(O.a,{checkedIcon:c.a.createElement("span",{className:"radio-btn-Chekedicon"}),icon:c.a.createElement("span",{className:"radio-btn-icon"}),disableRipple:!0}),label:e})},m=function(e){return c.a.createElement(b.a,{variant:"body2",component:"span",gutterBottom:!1},Object(x.a)(e))},f=m("CreateNew"),g=m("".concat(Object(x.a)("AddPlaceTo"),' "').concat(i,'"'));return c.a.createElement("div",{className:p.root},"  ",c.a.createElement(E.a,null,c.a.createElement(j.a,{className:"radioGroup",value:u,onChange:function(t){var i=t.target.value;d(i),e.selectedVal(i?n:null)},defaultValue:null},n&&h(f),n&&h(g,r))))},L=n(57),B=n(1543),R=n(130),D=n(104),P=n(33),z=n(300),F=function(e){var t=e.itemUniqueKey,n=Object(s.useState)(""),l=Object(o.a)(n,2),u=l[0],d=l[1],p=Object(_.a)("(max-width:".concat(1023,"px)")),h=Object(D.c)(),m=JSON.parse(Object(y.a)("itineraryList")||"[]"),f=(Object(D.d)((function(e){return e.FilteredDataReducer})).CTALink,function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(e){case"arrowIcon":return c.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"12",viewBox:"0 0 15 12",fill:"none"},c.a.createElement("path",{d:"M8.64 0L14.4 6L8.64 12L7.82784 11.154L12.1939 6.6H0V5.4H12.1939L7.82784 0.846L8.64 0Z",fill:"white"}));default:return c.a.createElement(c.a.Fragment,null)}}),v=t,O=Object(R.a)(),j=O&&"rtl"===O.direction,C=function(){h(Object(z.e)(!1));var t=u,n="",o=!1;if(t){var s=m[m.length-1].newdays,l=Object.keys(s||{});s[l=l[l.length-1]].length>=10?(n=Object(x.a)("10DaysLimit"),o=!0):(s[l].push(v),s[l]=Array.from(new Set(s[l])),Object(y.c)("itineraryList",JSON.stringify(m)),n=Object(x.a)("SavedTo"),o=!1)}e.setIsOpen(!1),e.createNewItinerary(!1);Object(L.a)(c.a.createElement(B.a,{truncateLimit:j&&p?15:70,textTitle:"".concat(n," ").concat(o?"":u.trip_name),showLinkLabel:!o,linkLabel:Object(x.a)("Undo"),onClick:function(){h(Object(z.e)(!1));
2var e=t.id,n=Object(a.a)(m),o=n.find((function(t){return t.id===e})),s=n.findIndex((function(t){return t.id===e})),c=Object.keys(o.newdays),l=c[c.length-1],u=o.newdays[l].length-1,d=Object(r.a)(Object(r.a)({},o),{},{newdays:Object(r.a)(Object(r.a)({},o.newdays),{},Object(i.a)({},l,o.newdays[l].slice(0,u)))});o=Object(r.a)(Object(r.a)({},o),{},{newdays:d.newdays}),n.splice(s,1,o),Object(y.c)("itineraryList",JSON.stringify(n)),P.b.dismiss()},handleClose:function(){P.b.dismiss()}}),j)};return c.a.createElement(c.a.Fragment,null,c.a.createElement(c.a.Fragment,null,c.a.createElement(b.a,{variant:"h4"},Object(x.a)("AddToItinerary")),c.a.createElement(M,{list:m,selectedVal:function(n){d(n),n||(setTimeout((function(){e.setIsOpen(!1)}),200),setTimeout((function(){e.createNewItinerary(!0,t)}),200))}}),c.a.createElement(g.a,{className:"btnWrapper btn-add-itinerary"},c.a.createElement(w.a,{type:"button",buttonType:"form",size:"small",hasBorder:!1,onClick:C,disabled:!u,endIconSvg:f("arrowIcon","#FFFF","")},Object(x.a)("addPlaceItinerary")))))},N=n(150),U=n(45),V=n.n(U),W=n(108),q=n(15),G=n(16),Z=n.n(G),H=n(47),X=n(105),K=n(119);t.default=Object(h.a)(Object(l.withSitecoreContext)()(Object(m.b)()((function(e){var t=e.open,n=e.customClass,u=e.handleExit,d=e.itineraryExist,h=void 0!==d&&d,m=e.isCreateItinerary,w=void 0!==m&&m,O=e.itemUniqueKey,j=void 0===O?{itemUniqueKey:j}:O,C=e.prefilledFields,E=void 0===C?null:C,T=e.navigateOnSubmit,k=void 0!==T&&T,S=e.sitecoreContext,A=e.handleSubmitBtn,M=void 0===A?function(){}:A,U=Z()(S,"route.templateId","")===H.W,G="Itinerary Map"===Z()(S,"route.templateName",""),Y=p(),J=Object(R.a)(),Q=J&&"rtl"===J.direction,$=Object(s.useRef)(null),ee=(Object(W.f)(),JSON.parse(Object(y.a)("itineraryList")||"[]")),te=Object(s.useState)(!1),ne=Object(o.a)(te,2),ie=ne[0],re=ne[1],ae=Object(s.useState)(!1),oe=Object(o.a)(ae,2),se=oe[0],ce=oe[1],le=Object(s.useState)(null),ue=Object(o.a)(le,2),de=ue[0],pe=ue[1],he=Object(D.c)(),me=Object(_.a)("(max-width:".concat(1023,"px)")),fe=Object(s.useRef)(null),ge=Object(D.d)((function(e){return e.FilteredDataReducer})),be=ge.CTALink,ve=ge.itineraryMapCTA;Object(s.useEffect)((function(){fe.current={itineraryList:ee,prefilledFields:E}}),[ee,E]);var ye={id:"3",fields:{fieldLabel:{value:Object(x.a)("LongStayDuration")},customStyle:"hide-counter",incrementorBtnDisable:21,decrementorBtnDisable:4,validationMessage:{value:Object(x.a)("MaxDaysLimit")},fieldType:{value:"Counter"},fieldName:{value:"long-stay-duration"}}},xe=Object(s.useMemo)((function(){return{fields:[{id:"1",fields:{fieldGroup:[{id:"b5ecf150-ea73-4f32-81ed-9e222bd86846",fields:{fieldLabel:{value:Object(x.a)("NameFieldLabel")},customStyle:"customInput",fieldType:{value:"SingleLineText"},placeholderText:{value:Object(x.a)("NameFieldPlaceholder")},fieldName:{value:"trip_name"},extraProps:{inputProps:{maxLength:50}}}},{id:"36c5db2d-296e-4f23-b9d8-00055b58e230",fields:{fieldLabel:{value:Object(x.a)("DateFieldLabel")},fieldType:{value:"Date"},placeholderText:{value:Object(x.a)("DateFieldPlaceholder")},fieldName:{value:"trip_date"}}}]}},{id:"2",fields:{fieldLabel:{value:Object(x.a)("TripDuration")},customStyle:"customRadio",listItems:[{id:"7426d374-3c28-4be6-8749-2eb870c0bf11",fields:{displayText:{value:Object(x.a)("DurationOption1")},key:{value:"1"}}},{id:"4a631c33-7114-4916-8339-6c7fad583702",fields:{displayText:{value:Object(x.a)("DurationOption2")},key:{value:"2"}}},{id:"4a631c33-7114-4916-8339-6c7fad583552",fields:{displayText:{value:Object(x.a)("DurationOption3")},key:{value:"3"}}},{id:"4a631c33-7114-4916-8339-6c7fad566702",fields:{displayText:{value:Object(x.a)("DurationOption4")},key:{value:"4"}}}],fieldType:{value:"RadioButtonList"},isRequired:{value:!1},validationMessage:null,fieldName:{value:"trip_days"}}}].concat(Object(a.a)(E&&E.trip_days>3?[ye]:[]),[{id:"4",fields:{fieldGroup:[{id:"1",fields:{fieldType:{value:"Submit"},fieldLabel:{value:E?Object(x.a)("SaveUpdates"):Object(x.a)("BuildItinerary")},customStyle:me&&!E?"create-itinerary-submit-btn-alignment":"",size:"small"}}].concat(Object(a.a)(E?[{id:"2",fields:{fieldType:{value:"CustomButton"},fieldLabel:{value:Object(x.a)("DeleteItinerary")},customStyle:"deleteCta",size:"small",btnType:"button",onClick:function(){Pe()}}}]:[]))}}])}}),[E,me]),_e=Object(s.useState)({"long-stay-duration":4,trip_days:"1",trip_name:"",trip_date:""}),we=Object(o.a)(_e,2),Oe=we[0],je=we[1],Ce=Object(_.a)("(max-width: ".concat(374,"px)")),Ee=Oe.trip_days<4;Object(s.useEffect)((function(){if(E){var e=E.trip_name,t=E.trip_days,n=E.trip_date,i=t<4?4:t;je({trip_name:e,trip_days:(t>3?4:t).toString(),trip_date:n&&V()(n)||"","long-stay-duration":i})}}),[E]);var Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(e){case"crossBtn":return c.a.createElement("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.a.createElement("path",{d:"M1 1L21 21M1 21L21 1",stroke:"black",strokeWidth:"2",strokeLinecap:"round"}));case"leftArrow":return c.a.createElement("svg",{width:"15",height:"12",viewBox:"0 0 15 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.a.createElement("path",{d:"M5.7599 0L-9.82285e-05 6L5.7599 12L6.57206 11.154L2.20598 6.6H14.3999V5.4H2.20598L6.57206 0.846L5.7599 0Z",fill:"#898C8D"}));default:return c.a.createElement(c.a.Fragment,null)}},ke=function(){if(E){if(E){var e=E.trip_name,t=E.trip_days,n=E.trip_date,i=t>3?4:t,r=t<4?4:t,a=xe.fields.find((function(e){var t,n;return"long-stay-duration"===(null===(t=e.fields)||void 0===t||null===(n=t.fieldName)||void 0===n?void 0:n.value)}));t>3?Se("add"):t<4&&a&&Se("remove"),je({trip_name:e,trip_days:i.toString(),trip_date:n&&V()(n)||"","long-stay-duration":r})}}else je({"long-stay-duration":4,trip_days:"1",trip_name:"",trip_date:""}),4===Number(Oe.trip_days)&&Se("remove")},Se=function(e){var t=!1;if("add"===e&&xe.fields.forEach((function(e){var n,i;"Counter"===(null===(n=e.fields)||void 0===n||null===(i=n.fieldType)||void 0===i?void 0:i.value)&&(t=!0)})),!t){var n=xe.fields.length;"add"===e?xe.fields.splice(n-1,0,ye):xe.fields.splice(n-2,1)}},Ae=function(e){var t=e.target,n=t.name,a=t.value;"trip_days"===n&&(4===Number(a)&&Oe.trip_days<4?Se("add"):Number(a)<4&&4===Number(Oe.trip_days)&&Se("remove")),je(Object(r.a)(Object(r.a)({},Oe),{},Object(i.a)({},n,a)))},Ie=function(e,t){var n="increment"===e?t+1:t-1;je((function(e){return Object(r.a)(Object(r.a)({},e),{},{"long-stay-duration":n})}
2))};var Me=Object(s.useMemo)((function(){if(!ee)return null;var e=ee.filter((function(e){return e.trip_name.includes("My Trip")}))||[];if(e.length){var t=e[e.length-1].trip_name.split(" ");return 4===t.length?parseInt(t[3])+1:1}}),[ee]),Le=function(e){var t,n;e.preventDefault(),he(Object(z.e)(!1));var o,s={id:(Math.floor(1e6*Math.random())+1).toString(),trip_days:1,trip_name:"My Trip".concat(Me?" ":"").concat((o=Me,o?o<=9?"- 0".concat(o.toString()):"- ".concat(o.toString()):"")),trip_date:""};Array.from($.current.elements).forEach((function(e){var t=e.name,n=e.value,i=e.checked;if(!Object(I.isEmpty)(n))if("trip_days"===t){if(!i)return;var r=4===Number(n)?Oe["long-stay-duration"]:Number(n);s[t]=r}else t&&(s[t]=n)}));for(var c=Number(s.trip_days),l={},d=0;d<c;d++)l=Object(r.a)(Object(r.a)({},l),{},Object(i.a)({},d+1,[]));for(var p=null===(t=s)||void 0===t?void 0:t.trip_date,h=null===(n=s)||void 0===n?void 0:n.trip_days,m=Object(I.isEmpty)(p)?null:V()(p),f={},g=0;g<h;g++){var b=m?m.clone().add(g,"days").format("YYYY-MM-DD"):"Day-".concat(g+1);f=Object(r.a)(Object(r.a)({},f),{},Object(i.a)({},b,de&&0===g?[de]:[]))}s=Object(r.a)(Object(r.a)({},s),{},{newdays:f});var v=[];if(Object(I.isEmpty)(E))v=[].concat(Object(a.a)(ee),[s]);else{var x=E.id,_=ee.findIndex((function(e){return e.id===x}));v=Object(a.a)(ee);var w=De(s);v.splice(_,1,w.formData);var O=Object(a.a)(ee);O.splice(_,1,w.rawformData),he(Object(z.l)(O))}if(pe(null),Object(y.c)("itineraryList",JSON.stringify(v)),he(Object(N.a)(v)),u(),re(!1),s.trip_days>3){var j=xe.fields.length;xe.fields.splice(j-2,1)}if(k&&q.a&&!G&&!U){var C,T,A="".concat(q.a?window.location.origin:"").concat(null===ve||void 0===ve||null===(C=ve.value)||void 0===C?void 0:C.href,"?itineraryId=").concat(null===(T=s)||void 0===T?void 0:T.id);q.a&&(window.location.href=A)}else if(U){var L;q.a&&window.open(function(e){var t,n,i,r=Z()(S,"VADStaticRoute",""),a=Z()(r,"sitecore.route.placeholders",""),o=Z()(a,"vad-header",[]).find((function(e){return"FavoriteBasket"===e.componentName}));return"".concat(q.a?window.location.origin:"").concat(null===o||void 0===o||null===(t=o.fields)||void 0===t||null===(n=t.itineraryMapCTA)||void 0===n||null===(i=n.value)||void 0===i?void 0:i.href,"?itineraryId=").concat(e)}(null===(L=s)||void 0===L?void 0:L.id),"_blank")}he(Object(z.k)(!1)),M(s),Object(X.b)(Object(r.a)(Object(r.a)({},K.a.pageBodyInteraction.itinerary_interaction),{},{trip_date:Object(I.isEmpty)(p)?V()().format("YYYY-MM-DD"):p,trip_duration:"".concat(h," day").concat(h>1?"s":"")}))},Be={backdrop:{backgroundColor:me?"rgba(255, 255, 255 , 1)":"rgba(0, 0, 0, 0.4)",zIndex:-1,position:"fixed",inset:0}},Re=function(e,t){return c.a.createElement(g.a,{className:"crossWraper"},c.a.createElement("span",{onClick:function(){ie?t(!1):(he(Object(z.k)(!1)),he(Object(z.e)(!1)),e(),t(!1),ke())}},w||ie?c.a.createElement(c.a.Fragment,null,Te("leftArrow"),c.a.createElement("span",{className:"text"},Object(x.a)("ItineraryBack"))):Te("crossBtn")))},De=function(t){var n=E.newdays,i=E.trip_days,o=Object.keys(t.newdays),s=Object.keys(n),c=function(e){switch(e){case"1":for(var i=0;i<s.length;i++)o[i]?t.newdays[o[i]]=n[s[i]]:(t.newdays[o[o.length-1]]=[].concat(Object(a.a)(t.newdays[o[o.length-1]]),Object(a.a)(n[s[i]])),t.newdays[o[o.length-1]].length>10&&(t.newdays[o[o.length-1]]=t.newdays[o[o.length-1]].slice(0,10)));break;case"2":for(var r=0;r<s.length;r++)o[r]&&(t.newdays[o[r]]=n[s[r]])}};t.trip_days>i?c("2"):t.trip_days<=i&&c("1"),e.updateItineraryItems(t);var l=Object(r.a)(Object(r.a)({},t),{},{newdays:t.newdays,id:E.id}),u={};return Object.keys(t.newdays).map((function(e){var n;u[e]=(null===(n=t.newdays[e])||void 0===n?void 0:n.map((function(e){return e.itemUniqueKey})))||[]})),{formData:t=Object(r.a)(Object(r.a)({},t),{},{newdays:u,id:E.id}),rawformData:l}},Pe=function(){var e=fe.current||{},t=e.itineraryList,n=e.prefilledFields,i=Object(a.a)(t),r=t.filter((function(e){return e.id!==n.id}));ce(!0),he(Object(N.a)(r)),Object(y.c)("itineraryList",JSON.stringify(r));Object(L.a)(c.a.createElement(B.a,{truncateLimit:30,textTitle:Object(x.a)("ItineraryRemoved"),showLinkLabel:!0,linkLabel:Object(x.a)("Undo"),onClick:function(){return he(Object(N.a)(i)),Object(y.c)("itineraryList",JSON.stringify(i)),void P.b.dismiss()}}),Q,(function(){if(q.a){var e,t="".concat(window.location.origin).concat(null===be||void 0===be||null===(e=be.value)||void 0===e?void 0:e.href);window.location.href=t}}))};return c.a.createElement(f.a,{id:"ItineraryModal",BackdropProps:{style:Be.backdrop},className:"".concat(Y.root," itineraryModal ").concat(me?"itineary-modal-mob":""," ").concat(ie?"createItinerary ".concat(U?"mapCreateIteneraryPopup":""):"".concat(n," ").concat("createItinerary"===n?"mapCreateIteneraryPopup":"")),open:t,onClose:function(){he(Object(z.e)(!1)),ke(),u()},onClick:function(e){return e.stopPropagation()}},c.a.createElement(c.a.Fragment,null,c.a.createElement(g.a,{className:"boxWrapper sty2 ".concat(se?"disable-cta":"")},w||ie||!h?c.a.createElement(c.a.Fragment,null,Re(u,re),c.a.createElement(g.a,{className:"formWrapper ".concat(Ee?"itinerary-alignment":""," ").concat(Ce?"labelAlingment":"")},c.a.createElement("form",{onSubmit:Le,ref:$},c.a.createElement(b.a,{variant:"h4",component:"span"},c.a.createElement(l.Text,{field:{value:E?Object(x.a)("EditCustomItinerary"):Object(x.a)("Title")}})),c.a.createElement(v.a,{formData:xe,formDataList:Oe,onChange:Ae,onClick:Ie,isFormValid:!0})))):c.a.createElement(c.a.Fragment,null,Re(u,re),c.a.createElement(F,{itemUniqueKey:j,setIsOpen:function(t){return e.setIsOpen(t)},createNewItinerary:function(t,n){e.setIsOpen(t),re(t),pe(n)}})))))}))))},1310:function(e,t,n){"use strict";n.r(t),n.d(t,"mapDispatchToProps",(function(){return k})),n.d(t,"mapStateToProps",(function(){return S}));var i=n(2),r=n(0),a=n.n(r),o=n(84),s=n(239),c=n(303),l=n.n(c),u=n(104),d=n(16),p=n.n(d),h=n(1541),m=n(1690),f=n(1630),g=n(31),b=n(3),v=n(865),y=n(1),x=Object(v.a)((function(e){var t,n=e.mixins.paddingLR;return{title:{margin:0}
2,noSearchWrapper:Object(i.a)({paddingTop:Object(y.p)(32),paddingBottom:Object(y.p)(32)},e.breakpoints.up("lg"),{paddingTop:Object(y.p)(40),paddingBottom:Object(y.p)(72)}),wrapperWithLessPadding:Object(i.a)({width:Object(y.p)(327),paddingTop:Object(y.p)(8),paddingBottom:Object(y.p)(8),margin:0},e.breakpoints.down("md"),{width:"100%",paddingTop:Object(y.p)(24)}),contentPart:{paddingTop:Object(y.p)(32)},contentWithLessPadding:Object(i.a)({paddingTop:Object(y.p)(8)},e.breakpoints.down("md"),{display:"none"}),redText:{color:e.mixins.AbuDhabiOrange(),cursor:"pointer"},silverText:Object(i.a)({color:"#565A5C",width:Object(y.p)(244)},e.breakpoints.down("md"),{width:"90%"}),richTextSection:{"& p":Object(b.a)(Object(b.a)({},e.typography.h5Bold),{},Object(i.a)({},e.breakpoints.up("lg"),{marginTop:Object(y.p)(55),marginBottom:Object(y.p)(24)})),"& ul":Object(b.a)(Object(b.a)(Object(b.a)({},e.typography.body1),n(Object(y.p)(23),0)),{},(t={},Object(i.a)(t,e.breakpoints.up("lg"),Object(b.a)({},n(Object(y.p)(40),0))),Object(i.a)(t,"& li",Object(i.a)({marginBottom:Object(y.p)(16)},e.breakpoints.up("lg"),{marginBottom:Object(y.p)(32)})),t))},popularSearchSection:Object(i.a)({paddingTop:Object(y.p)(24)},e.breakpoints.up("lg"),{width:"40%"})}})),_=n(1542),w=n(1634),O=n(15),j=n(209),C=n(443),E=n(20),T=n(27),k=function(e){return{updateSearchTermData:function(t){return e(Object(f.a)(t))}}},S=Object(s.b)({searchTermData:w.a});t.default=Object(j.a)(Object(u.b)(S,k)((function(e){var t,n,r=x(),s=Object(C.b)(e),c=Object(C.a)(e),u=e.fields,d=u.heading,f=u.description,b=u.popularSearch,v=u.descriptionNoCategory,y=e.searchTermData,w=e.from,j=e.categoriesCount,k=e.noCategoryDescription,S=e.noCategoryHeading,A=e.isMobileDevice,I=e.customClass,M="",L=Object(T.B)(e);M=A?d&&d.value&&y&&y.data?{value:"".concat(d.value)}:{value:0===j?S.value:d&&d.value?"".concat(d.value," ").concat(j&&j>0?" ".concat(e.dictionary("InThisCategory")):""):""}:d&&d.value&&y&&y.data?{value:"".concat(d.value,' "').concat(y.data,'" ').concat(j&&j>0?" ".concat(e.dictionary("InThisCategory")):"")}:{value:0===j?S.value:d&&d.value?"".concat(d.value," ").concat(j&&j>0?" ".concat(e.dictionary("InThisCategory")):""):""};return a.a.createElement(h.a,{className:Object(E.a)((t={},Object(i.a)(t,r.noSearchWrapper,"MapFloatingBox"!==w),Object(i.a)(t,r.wrapperWithLessPadding,"MapFloatingBox"==w),t),I),"data-locator":"NoSearchResult",uid:L},!A&&M&&M.value&&a.a.createElement(g.a,{className:r.title,variant:"h2",component:"h1",gutterBottom:!0},a.a.createElement(o.Text,{field:M})),A&&M&&M.value&&a.a.createElement(a.a.Fragment,null,a.a.createElement(g.a,{className:r.title,variant:"h5",component:"span",gutterBottom:!0},a.a.createElement(o.Text,{field:M})),a.a.createElement(g.a,{className:r.title,variant:"h5Bold",component:"span",gutterBottom:!0}," ".concat(y.data))),a.a.createElement(h.a,{item:!0,className:Object(E.a)((n={},Object(i.a)(n,r.contentPart,"MapFloatingBox"!==w),Object(i.a)(n,r.contentWithLessPadding,"MapFloatingBox"==w),n))},a.a.createElement(h.a,{item:!0,className:r.richTextSection},f&&f.value&&a.a.createElement(_.a,{innerHTML:f})),b&&b.fields&&a.a.createElement(h.a,{item:!0,className:r.popularSearchSection},a.a.createElement(m.a,{popularSearch:b,onPopularSeachClick:function(t){if(O.a){var n=p()(t,"value.text",""),i=l.a.stringify({searchTerm:n});window.history.replaceState({turbolinks:{}},"","".concat(window.location.pathname,"?").concat(i)),e.updateSearchTermData(n)}},pageName:s,componentName:c}))),"MapFloatingBox"==w&&a.a.createElement(a.a.Fragment,null,j>0&&!A&&a.a.createElement(h.a,{item:!0},a.a.createElement(g.a,{variant:"body2",className:r.silverText},v.value)),0===j&&!A&&k&&k.value&&a.a.createElement(h.a,{item:!0},a.a.createElement(g.a,{variant:"body2",className:r.silverText},k.value)),e.backToList&&a.a.createElement(h.a,{item:!0},a.a.createElement(g.a,{variant:"body2Bold",className:r.redText,onClick:function(){e.backToList()}},e.dictionary("BackToList")))))})))},1338:function(e,t,n){"use strict";n.r(t),n.d(t,"mapDispatchToProps",(function(){return rn})),n.d(t,"mapStateToProps",(function(){return an}));var i=n(2),r=n(3),a=n(9),o=n(0),s=n.n(o),c=n(307),l=n(1630),u=n(1634),d=n(239),p=n(238),h=n(84),m=n(104),f=n(49),g=n(19),b=n(446),v=n(106),y=n(108),x=n(865),_=n(199),w=n(1),O=n(4),j=Object(x.a)((function(e){var t,n,a,o,s,c,l;return{floatingBarInnerWrap:{backgroundColor:e.mixins.White(),padding:"32px 24px",height:"100%",width:"100%",display:"flex",flexDirection:"column",boxShadow:"0px 4px 30px ".concat(e.mixins.Black(180)),"@media (min-width: 1536px) and (max-height: 746px)":{padding:"16px 24px"}},floatingBar:Object(r.a)(Object(r.a)({zIndex:2,position:"absolute",width:"437px",height:"calc(100% - 3.25rem)",bottom:"0px"},e.mixins.left(92)),{},Object(i.a)({overflowY:"hidden",overflowX:"hidden",marginTop:"calc(var(--notificationBar))",transition:"margin 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",pointerEvents:"none",visibility:"hidden"},e.breakpoints.down("md"),{display:"none"})),enableClick:{pointerEvents:"initial",visibility:"visible"}
2,isOpenDropdown:{width:"5px",height:"5px",borderRadius:_.a.circle,backgroundColor:e.mixins.AbuDhabiOrange(),marginTop:"5px",marginLeft:"-5px",display:"none"},showDotOpen:{display:"inline-block"},headingWrapper:{display:"flex",justifyContent:"space-between",alignItems:"baseline","& h5":Object(r.a)({},e.palette.common.ellipsis(1)),"& p":Object(r.a)({},e.palette.common.ellipsis(1))},categoriesList:Object(r.a)(Object(r.a)(Object(r.a)({display:"flex",flexWrap:"wrap"},e.mixins.marginRight("16px !important")),e.mixins.marginLeft("0 !important")),{},Object(i.a)({paddingBottom:"16px","-ms-overflow-style":"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.breakpoints.down("md"),{backgroundColor:e.mixins.White(),width:"100%",zIndex:2,"&.open":{transform:"translateY(0)"}})),imageHeight100:{height:"100%","& img":{objectFit:"fill"}},underlineText:{mixBlendMode:"normal",opacity:.71,textDecorationLine:"underline"},dscroll:Object(r.a)({"@media (min-width: 600px) and (max-height: 736px)":{width:"100% !important"},width:"calc(100% + 24px)"},e.mixins.left("0%")),ltGray:{color:e.palette.common.UnselectedColor},redText:{color:e.mixins.AbuDhabiOrange(),cursor:"pointer"},selectedCategoryChip:{"&.MuiChip-root":{color:e.mixins.White()}},activities:{"&.MuiChip-root":{color:e.mixins.White(),backgroundColor:"#879637"}},hotels:{"&.MuiChip-root":{color:e.mixins.White(),backgroundColor:"#7D9AAA"}},events:{"&.MuiChip-root":{color:e.mixins.White(),backgroundColor:"#690FA8"}},restaurants:{"&.MuiChip-root":{color:e.mixins.White(),backgroundColor:"#EFBD47"}},attractions:{"&.MuiChip-root":{color:e.mixins.White(),backgroundColor:"#8683A4"}},whiteIcon:Object(r.a)(Object(r.a)({color:e.mixins.White(),width:"16px",height:"16px"},e.mixins.marginLeft(5)),e.mixins.marginRight(-6)),unselctedCategory:{border:"1px solid ".concat(e.palette.border.mapCategory," !important"),color:e.palette.border.mapCategory},unselctedCategoryIcon:Object(r.a)(Object(r.a)(Object(r.a)({color:e.palette.border.mapCategory,width:"16px",height:"16px"},e.mixins.marginLeft(5)),e.mixins.marginRight(-6)),{},{"& svg":{"& path":{fill:e.palette.border.mapCategory}}}),mobileFloatingWrapper:Object(i.a)({position:"absolute",top:"100%",right:0,zIndex:5},e.breakpoints.up("lg"),{display:"none"}
2),floatingClearBtn:{position:"relative",right:"12px",top:"12px",height:"40px",padding:"8px",backgroundColor:e.mixins.White(),borderRadius:_.a.b8px,cursor:"pointer",textDecorationLine:"underline",textAlign:"center"},categoriesListWrap:{marginBottom:"16px","&:hover":{"& .categoryScrollTrack":{opacity:"1 !important"}}},destinationListWrapper:{"&:hover":{"& .destinationScrollTrack":{opacity:"1 !important"}},"@media (min-width: 600px) and (max-height: 1067px)":{height:"100%"}},mobileDestinationScroll:{height:"calc(100% + 16px) !important"},destinationList:(t={"@media (min-width: 600px) and (max-height: 736px)":{display:"flex"},"-ms-overflow-style":"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},Object(i.a)(t,e.breakpoints.down("md"),Object(r.a)({width:"100vw",display:"flex",height:"120px",scrollBehavior:"smooth",visibility:"hidden",marginTop:"12px"},e.mixins.marginLeft(-16))),Object(i.a)(t,"@media (min-width: 600px) and (max-width: 1024px)",{height:"175px"}),Object(i.a)(t,"@media (max-width: 1536px) and (max-height: 746px)",{height:"288px"}),Object(i.a)(t,"@media (max-width: 375px)",{height:"95px"}),t),enableClickMobile:{visibility:"visible !important"},destinationItem:(n={display:"flex",position:"relative",flexDirection:"row",justifyContent:"center",alignItems:"center",cursor:"pointer",padding:"64px 0px 64px 0px",width:"388px",height:"152px",background:"linear-gradient(0deg, ".concat(e.mixins.Black(400),", ").concat(e.mixins.Black(400),")"),marginBottom:"10px","@media (min-width: 1536px) and (max-height: 746px)":{height:"120px"}},Object(i.a)(n,e.breakpoints.down("md"),Object(r.a)(Object(r.a)({width:"calc(33.33vw - 17px)",height:"82px",padding:"35px 0px 36px 0px"},e.mixins.marginRight(8)),{},{"&:first-child ":Object(r.a)({},e.mixins.marginLeft(16)),"&:last-child ":Object(r.a)({},e.mixins.marginRight(16))})),Object(i.a)(n,"@media (max-width: 375px)",{width:"109px",height:"82px"}),Object(i.a)(n,"@media (min-width: 600px) and (max-width: 1024px)",{height:"175px",paddingTop:0}),Object(i.a)(n,"@media (min-width: 1024px) and (max-height: 736px)",{width:"30%",maxHeight:"160px",height:"100%",marginBottom:0,padding:0,marginRight:"10px"}),n),selectedDestBorder:{border:"4px solid #FF8707"},orangeText:{marginLeft:"4px",color:"#FF8707"},bottomPanelSlide:{position:"absolute",bottom:0,width:"100%",height:"64px",borderTop:"1px solid #E4E8EA",padding:"12px 16px",display:"flex",justifyContent:"space-between",alignItems:"center"},textUnderline:{textDecoration:"underline"},textDisabled:{color:"#9A9C9D"},destinationListFilterSlide:Object(i.a)({},e.breakpoints.down("md"),Object(r.a)({width:"100vw",display:"flex",scrollBehavior:"smooth",marginTop:"20px",marginBottom:"14px"},e.mixins.marginLeft(-16))),destinationScrollThumb:{backgroundColor:"#9A9C9D",cursor:"pointer"},destinationTitle:{color:e.mixins.White(),zIndex:1,fontWeight:"700"},destinationImageWrapper:{display:"block",position:"absolute",width:"100%",height:" 100%","@media (min-width: 600px) and (max-height: 736px)":{"& div > div:nth-child(2)":{padding:"8px"}}},selectedItemBar:Object(r.a)({width:"8px",height:"100%",backgroundColor:e.mixins.AbuDhabiOrange(),position:"absolute"},e.mixins.left(0)),positionRelative:{position:"relative"},mostViewedList:Object(r.a)(Object(r.a)({paddingTop:"16px"},e.mixins.paddingRight("16px")),{},Object(i.a)({"& li":(a={borderRadius:"4px"},Object(i.a)(a,e.breakpoints.down("md"),Object(r.a)({width:"100%"},e.mixins.marginRight("16px"))),Object(i.a)(a,"& .listItemContainer",Object(i.a)({},e.breakpoints.down("md"),{width:"85vw"})),a)},e.breakpoints.down("md"),{width:"100vw",display:"flex",overflowX:"auto",scrollBehavior:"smooth"})),mapCardHeading:Object(i.a)({},e.breakpoints.down("md"),{marginTop:"12px",fontSize:O.g.s16px}),noResultsWrapper:(s={},Object(i.a)(s,e.breakpoints.down("md"),{width:"100%",paddingRight:"24px"}),Object(i.a)(s,"div &",{"& h1":Object(i.a)({fontSize:O.g.s32Rem,lineHeight:"100%"},e.breakpoints.down("md"),{fontSize:O.g.s20Rem,lineHeight:"100%"}),"& p":{fontSize:O.g.s16Rem,lineHeight:O.g.s24Rem},"& ul":Object(r.a)(Object(r.a)({},e.mixins.paddingLeft(Object(w.p)(16))),{},(o={fontSize:O.g.s16Rem,lineHeight:O.g.s24Rem},Object(i.a)(o,e.breakpoints.down("md"),{display:"none"}),Object(i.a)(o,"& li",{marginBottom:0}),o))}),s),directionRtl:{direction:"rtl"},mobileSearchResultWrapper:{width:"100%",paddingBottom:"12px",marginBottom:"0px",borderBottom:"1px solid #E4E8EA"}
2,mobileMapControls:Object(i.a)({display:"block",transition:"500ms height ease-out"},e.breakpoints.up("lg"),{display:"none"}),topPanel:Object(i.a)({width:"100%",height:"56px",position:"absolute",backgroundColor:e.mixins.White(),boxSizing:"border-box",transition:"500ms height ease-out",zIndex:3},e.breakpoints.up("lg"),{display:"none"}),topPanelFirst:{width:"100%",height:"56px",boxSizing:"border-box",backgroundColor:e.mixins.White(),position:"relative",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",zIndex:10},topHeaderIcon:{width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center"},extendedHeight:{flexDirection:"column"},bottomPanel:Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({display:"flex",flexDirection:"column",alignItems:"flex-start",paddingTop:"0px",paddingBottom:"16px"},e.mixins.paddingLeft(16)),e.mixins.paddingRight(0)),{},{position:"fixed",width:"100%",height:"146px"},e.mixins.left(0)),{},Object(i.a)({bottom:"0px",zIndex:2,background:e.mixins.White(),borderRadius:_.a.b12px12px0p0px,"@media (max-width: 375px)":{height:"146px"},"@media (min-width: 600px) and (max-width: 1024px)":{height:"242px"}},e.breakpoints.up("lg"),{display:"none"})),hiddenPanel:{display:"none",visibility:"hidden"},itemListPanel:{height:"154px","@media (max-width: 375px)":{height:"154px"}},searchFieldWrapper:(c={},Object(i.a)(c,e.breakpoints.down("md"),{flexGrow:1,margin:"0 4px"}),Object(i.a)(c,"& .MuiAutocomplete-popper",Object(i.a)({marginTop:"-31px"},e.breakpoints.down("md"),Object(r.a)(Object(r.a)({marginTop:"-2px"},e.mixins.marginLeft("-20px")),{},{width:"calc(100vw)!important"}))),Object(i.a)(c,"& .MuiAutocomplete-listbox",Object(i.a)({},e.breakpoints.down("md"),Object(r.a)({height:"calc(100vh - 56px)",maxHeight:"calc(100vh - 56px)"},e.mixins.paddingLR(Object(w.p)(20),Object(w.p)(20))))),Object(i.a)(c,"& .MuiAutocomplete-option",Object(i.a)({},e.breakpoints.down("md"),Object(r.a)({fontSize:O.g.s14Rem,lineHeight:O.g.s24Rem,borderBottom:"1px solid #EEEFEF"},e.mixins.paddingLR(Object(w.p)(0),Object(w.p)(0))))),Object(i.a)(c,"& .MuiAutocomplete-noOptions",Object(i.a)({color:e.mixins.Black()},e.breakpoints.down("md"),Object(r.a)({height:"calc(100vh - 56px)",fontSize:O.g.s14Rem,lineHeight:O.g.s24Rem,borderBottom:"1px solid #EEEFEF"},e.mixins.paddingLR(Object(w.p)(20),Object(w.p)(20))))),c),fullWidthWrapper:{flexBasis:"100%"},inputEndAdorment:Object(r.a)({display:"flex",position:"relative"},e.mixins.marginLeft(16)),closeBtn:Object(i.a)({color:e.palette.common.SlateGray,cursor:"pointer","& svg":{width:"14px",height:"14px"}},e.breakpoints.down("md"),{display:"flex"}),searchIconWrapper:{display:"flex",color:e.palette.common.SlateGray,"& svg":{width:"16px",height:"16px"}},searchAdornment:{color:e.palette.common.SlateGray,"& svg":{width:"16px",height:"16px"}},filtersWrapper:Object(r.a)({flexBasis:"calc(30% - 8px)",display:"flex",flexDirection:"row",alignItems:"flex-start",padding:"8px 12px 8px 16px",height:"40px",background:e.mixins.White(),border:"1px solid ".concat(e.palette.common.DisabledGrey),borderRadius:_.a.b53px,justifyContent:"space-between",color:e.palette.common.UnselectedColor,cursor:"pointer"},e.mixins.marginLeft(8)),filterBtnIcon:{transform:"rotate(90deg)","& svg":{height:"14px",width:"12px"}},inverted:{transform:"rotate(270deg)"},filterSlideWrapper:{width:"100vw"},flexEnd:{justifyContent:"flex-end"},filterSlideContent:{padding:"0 ".concat(Object(w.p)(16)),"@media (max-width: 375px)":{padding:"0 ".concat(Object(w.p)(12))}},textFieldRoot:{"&.MuiTextField-root, & .MuiFormControl-root":Object(i.a)({marginTop:"12px",marginBottom:"28px",width:"100%",'& .MuiAutocomplete-inputRoot[class*="MuiInput-root"] input.MuiAutocomplete-input:first-child':Object(i.a)({paddingBottom:Object(w.p)(20),paddingTop:Object(w.p)(12),fontSize:O.g.s22Rem,lineHeight:O.g.s32Rem,"&::placeholder":{color:e.mixins.Black(),opacity:1}},e.breakpoints.down("md"),{padding:"0 ".concat(Object(w.p)(8)),fontSize:O.g.s14Rem,lineHeight:O.g.s24Rem,height:"100%",borderBottom:0,"&::placeholder":{color:e.palette.common.UnselectedColor,opacity:1}}),"& .MuiInputBase-formControl":{flexWrap:"nowrap","&:before":Object(i.a)({},e.breakpoints.up("lg"),{borderBottom:"1px solid #BFBFBF"})}},e.breakpoints.down("md"),{marginTop:"0px",marginBottom:"0px","& .MuiInputBase-formControl":Object(r.a)(Object(r.a)(Object(r.a)({border:"1px solid ".concat(e.palette.common.DisabledGrey),height:Object(w.p)(40),borderRadius:_.a.b53px,marginTop:0,lineHeight:O.g.s24Rem,fontSize:O.g.s14Rem,paddingTop:Object(w.p)(4)},e.mixins.paddingRight(12)),{},{paddingBottom:Object(w.p)(4)},e.mixins.paddingLeft(16)),{}
2,{"& input.MuiAutocomplete-input":{height:"100%",padding:"2px 4px","&::placeholder":{color:e.palette.common.UnselectedColor,opacity:1}},"&:before":{border:"0 !important"}}),"& .MuiInput-underline":{"&:after":{border:0}}})},"@global":{".MuiBadge-colorSecondary":{color:e.mixins.White(),backgroundColor:e.mixins.AbuDhabiOrange(),fontSize:"11px",marginTop:"-4px",marginRight:"-4px"},".destinationScrollTrack":Object(r.a)(Object(r.a)({},e.mixins.right(8)),{},{width:"4px !important",height:"100%",top:"0px"}),".destinationHorizontalScrollTrack":{width:"100%",height:"4px! important",bottom:"0px"},".destinationHorizontalThumb":{cursor:"pointer",backgroundColor:"#9A9C9D"},".categoryScrollTrack":Object(r.a)(Object(r.a)({},e.mixins.left(0)),{},{width:"100%",height:"4px! important",bottom:"0px"}),".mapboxgl-ctrl-bottom-right":{display:"none"},".mapboxgl-map-wrapper-wrapper":Object(i.a)({},e.breakpoints.down("md"),{"& .MuiChip-clickable:hover":{backgroundColor:"transparent"},"& .MuiChip-clickable:focus":{backgroundColor:"transparent"}}),"@media(hover: none), (pointer: coarse), (-moz-touch-enabled: 1)":{".scroll-horizontal":(l={overflow:"scroll!important"},Object(i.a)(l,"overflow","overlay!important"),Object(i.a)(l,"overflowX","scroll!important"),Object(i.a)(l,"overflowX","overlay!important"),Object(i.a)(l,"overflowY","hidden!important"),Object(i.a)(l,"-ms-overflow-style","none!important"),Object(i.a)(l,"scrollbarWidth","none!important"),Object(i.a)(l,"&> div",{transform:"none!important",position:"relative"}),Object(i.a)(l,"&:: -webkit - scrollbar",{display:"none!important"}),l)}}}})),C=n(31),E=n(1806),T=n(528),k=n(1511),S=n(1695),A=n(20),I=n(112),M=n(2026),L=n(105),B=n(119),R=n(1294),D=["allPlaces","searchPlacesForQuery","clearAll","onPopperOpen","searchPlaceholder","noResultText","tryDifferentText","setClearAll"],P=function(e){var t=e.allPlaces,n=e.searchPlacesForQuery,c=e.clearAll,l=e.onPopperOpen,u=e.searchPlaceholder,d=e.noResultText,p=void 0===d?{value:""}:d,h=e.tryDifferentText,f=void 0===h?"":h,g=e.setClearAll,b=(Object(v.a)(e,D),j()),y=Object(m.d)((function(e){return e.SearchTermDataReducer})).data||"",x=Object(o.useRef)(),_=Object(o.useState)(""),O=Object(a.a)(_,2),C=O[0],E=O[1],P=Object(o.useState)(""),z=Object(a.a)(P,2),F=z[0],N=z[1],U=Object(k.a)("(max-width:".concat(w.c.values.lg,"px)"));Object(o.useEffect)((function(){F||N(y)}),[y]);var V=function(e){var t=e.target.textContent;t&&n(t),l&&l(!1)},W=function(e){"Enter"===e.key&&(n(F),x.current&&x.current.blur())},q=function(){E(""),N(""),n(""),x.current&&setTimeout((function(){return x.current.blur()}),100)},G=function(e){l&&l(!0)};return Object(o.useEffect)((function(){c&&q()}),[c]),s.a.createElement(S.a,null,(function(e){var a=e.isInputFocus,o=e.onIsInputFocus;return s.a.createElement("div",{className:Object(A.a)(b.searchFieldWrapper,Object(i.a)({},b.fullWidthWrapper,a))},s.a.createElement(M.a,{options:t,blurOnSelect:!0,getOptionLabel:function(e){return e.name},id:"findActivityField",fullWidth:!0,open:a,freeSolo:!U,noOptionsText:U?s.a.createElement("span",null,p.value," ",s.a.createElement("strong",null," ",F),". ",f):"",disablePortal:!0,disableClearable:!0,clearOnBlur:!1,clearOnEscape:!0,inputValue:F,onInputChange:function(e,t){return function(e,t){g&&(t&&!F&&g(!1),!t&&F&&g(!0)),N(t)}(0,t)},onChange:function(e,t){E(e.target.value),Object(L.b)(Object(r.a)(Object(r.a)({},B.a.pageBodyInteraction.mapActivitySearch),{},{map_activity:"".concat(t.name)}))},onClose:V,onOpen:G,onKeyDown:W,renderInput:function(e){var t=U?{onFocus:function(){return o(!0)}}:{};return s.a.createElement(R.a,Object.assign({},e,t,{inputRef:x,value:C,variant:"standard",className:b.textFieldRoot,placeholder:u,InputProps:U?Object(r.a)(Object(r.a)({},e.InputProps),{},{startAdornment:s.a.createElement("div",{className:b.searchIconWrapper},s.a.createElement(I.a,{name:"SearchSharpIcon"})),endAdornment:s.a.createElement("div",{className:b.closeBtn,onClick:function(){return q()}},F&&s.a.createElement(I.a,{name:"RemoveIcon"}))}):Object(r.a)(Object(r.a)({},e.InputProps),{},{endAdornment:s.a.createElement("div",{className:b.inputEndAdorment},s.a.createElement("div",{className:b.closeBtn,onClick:function(){return q()}},F&&s.a.createElement(I.a,{name:"CloseIconNew"})),s.a.createElement(T.a,{size:"medium",hasBorder:!1,animateSettings:{},className:"no-shrink",onClick:function(){n(F),Object(L.b)(Object(r.a)(Object(r.a)({},B.a.pageBodyInteraction.mapActivitySearch),{},{map_activity:"".concat(F)}))}}))})}))}}))}))},z=n(1894),F=n(15),N=n(159),U=n(1700),V=function(e){var t=e.destinationsList,n=e.classes,r=e.onClickDestination,a=e.selectedDestination,o=void 0===a?null:a,c=e.customClass,l=void 0===c?"":c,u=Object(k.a)("(max-height: 736px)"),d=Object(k.a)("(min-width: 1024px)");return s.a.createElement(s.a.Fragment,null,t.map((function(e){var t,a=e.fields["Display Name"],c={value:{src:"".concat(null===(t=e.fields.Image.value)||void 0===t?void 0:t.src)}};e.fields.Image.value["1x3-large"]&&(c={value:{src:"".concat(e.fields.Image.value["1x3-large"].large)}}),F.a&&u&&d&&e.fields.Image&&e.fields.Image.value["2x3"]&&(c={value:{src:"".concat(e.fields.Image.value["2x3"].medium)}});var p=e.fields.List.fields.searchKey.value,h=e.fields.latlng.value,m=h.includes(",")?h.split(",").reverse():[];return s.a.createElement("div",{key:e.id,className:Object(A.a)(n.destinationItem,Object(i.a)({},n.selectedDestBorder,o&&o.searchKey===p),l),onClick:function(){return r(null===a||void 0===a?void 0:a.value,p,m)}},s.a.createElement("div",{className:n.destinationImageWrapper},s.a.createElement(U.a,{title:a,subTitle:"",titleClass:n.destinationTitle,titleVariant:"subTitle",background:"",strip:{},isPriceCard:!1,pictureClass:n.imageHeight100,media:{image:c,mobileImage:c,aspectRatio:N.a["3x2"]},disableHover:!0,animate:!1})))})))},W=n(1781),q=n(1651),G=function(e){var t=e.categoriesList,n=e.classes,i=e.selectedCategories,r
2=e.onClickCategory,a=e.isLangRussian;return s.a.createElement(s.a.Fragment,null,t.map((function(e){var t=e.fields.CategoryList.map((function(e){return e.fields.taxonomyKey.value})),o=i.filter((function(e){return t.includes(e.charAt(0).toUpperCase()+e.slice(1))})).length>0,c=e.fields.DisplayName.value,l=e.fields.ColorCode.value,u=e.fields.Icon.value.src;return s.a.createElement(W.a,{isLangRussian:a,key:e.id,icon:s.a.createElement("div",null,s.a.createElement(q.a,{url:u})),className:"".concat(o?n.selectedCategoryChip:n.unselctedCategory," mediaMonkSelected"),style:o?{backgroundColor:l}:{},iconClass:"".concat(o?n.whiteIcon:n.unselctedCategoryIcon," mediaMonkSelectedIcon"),text:c,onClick:function(){return r(t)}})})))},Z=function(e){var t=[];return e.map((function(e){var n=e.fields.CategoryList.map((function(e){return e.fields.taxonomyKey.value}));t.push.apply(t,Object(g.a)(n))})),t},H=["filterText","selectedCategories","onClickCloseFilterView","onClickClearAll","onClickDestination","destinationsList","categoriesList","selectTheseCategories","isLangRussian","selectedCity","setSelectedCategories","dictionary"],X=function(e){e.filterText;var t=e.selectedCategories,n=e.onClickCloseFilterView,r=e.onClickClearAll,c=e.onClickDestination,l=e.destinationsList,u=e.categoriesList,d=e.selectTheseCategories,p=e.isLangRussian,h=e.selectedCity,m=(e.setSelectedCategories,e.dictionary),f=(Object(v.a)(e,H),j()),b=Object(o.useState)(null),y=Object(a.a)(b,2),x=y[0],_=y[1],w=Object(o.useState)([]),O=Object(a.a)(w,2),E=O[0],k=O[1];Object(o.useEffect)((function(){h.searchKey&&_(h)}),[h]),Object(o.useEffect)((function(){t&&k(t)}),[t]);var M=function(e,t,n){E.length<1&&B(),_({name:e,searchKey:t,coordinates:n})},L=function(e){var t,n=E;n.filter((function(t){return e.includes(t)})).length>0?n=n.filter((function(t){return!e.includes(t)})):(t=n).push.apply(t,Object(g.a)(e));k(Object(g.a)(n))},B=function(){var e=Z(u);k(e)},R=function(){(x||E.length>0)&&(_(null),k([]),n(),r())},D=function(){x&&Object.keys(x).length>0&&c(x.name,x.searchKey,x.coordinates),d(E),n()},P=function(){n(),h.searchKey&&_(h)};return s.a.createElement(s.a.Fragment,null,s.a.createElement(S.a,null,(function(e){var t=e.isFilterOpen;e.onClickToggleBtn;return s.a.createElement(z.a,{open:t,onOpen:function(){},onClose:function(){return P()},className:f.filterMobileContainer,anchor:"right"},s.a.createElement("div",{className:f.filterSlideWrapper},s.a.createElement("div",{className:Object(A.a)(f.topPanelFirst,f.flexEnd)},s.a.createElement("div",{className:f.topHeaderIcon,onClick:P},s.a.createElement(I.a,{name:"CloseIcon"}))),s.a.createElement("div",{className:f.filterSlideContent},s.a.createElement(C.a,{variant:"h3"},m("FilterText")),s.a.createElement("div",{className:Object(A.a)(f.destinationListFilterSlide)},s.a.createElement(V,{destinationsList:l,classes:f,onClickDestination:M,selectedDestination:x})),s.a.createElement("div",{className:f.categoriesList},s.a.createElement(G,{categoriesList:u,classes:f,selectedCategories:E,onClickCategory:L,isLangRussian:p}))),s.a.createElement("div",{className:f.bottomPanelSlide},s.a.createElement(C.a,{variant:"body1Bold",classes:{root:Object(A.a)(f.textUnderline,Object(i.a)({},f.textDisabled,!(x||E.length>0)))},onClick:R},m("resetText")),s.a.createElement(T.a,{buttonType:"form",type:"submit",hasBorder:!1,size:"small",field:{value:{text:m("applyText")}},hideEndIcon:!0,disabled:!(x||E.length>0),onClick:D}))))})))},K=n(1712),Y=n(1310),J=n(242),Q=n.n(J),$=n(1713),ee=n(1756),te=n(1663),ne=n(47),ie=["className","selectedItem","setSelectedItem","googlePlacesAPI","lang","places","dictionary","categoriesList","destinationsList","changeDestination","setSelectedCategories","floatingBoxPlaceholders","updateSearchTermData","updateGeoJSONData","setReselectedStatus","defaultLatlng","loading","setMapStepValue","step","updatePlacesInView","handleShouldMapZoom","shouldMapZoom","setHardResizeMap","setFirstClick","
2setClearAllClick","setClearingAll","isMapPanning","setIsMapPanning","type"],re=["style"],ae=["style"],oe=["style"],se=["style"],ce=["style"],le=["style"],ue=["style"],de=["style"],pe=["style"],he=["style"],me=Object(d.b)({loading:$.g,step:$.h,places:$.c,shouldMapZoom:$.j,isMapPanning:$.f});var fe=Object(m.b)(me,(function(e){return{handleShouldMapZoom:function(t){return e(Object(c.e)(t))},setReselectedStatus:function(t){return e(Object(c.f)(t))},setSelectedCategories:function(t){return e(Object(c.l)(t))},updateGeoJSONData:function(t){return e(Object(c.j)(t))},updateSearchTermData:function(t){return e(Object(l.a)(t))},setMapStepValue:function(t){return e(Object(c.i)(t))},updatePlacesInView:function(t){return e(Object(c.k)(t))},setIsMapPanning:function(t){return e(Object(c.h)(t))},setClearingAll:function(t){return e(Object(c.g)(t))}}}))(s.a.memo((function(e){e.className;var t,n,c,l,u=e.selectedItem,d=e.setSelectedItem,p=e.googlePlacesAPI,h=void 0===p?"":p,f=e.lang,x=e.places,_=void 0===x?[]:x,w=e.dictionary,O=e.categoriesList,T=e.destinationsList,k=e.changeDestination,M=e.setSelectedCategories,R=e.floatingBoxPlaceholders,D=e.updateSearchTermData,z=e.updateGeoJSONData,N=e.setReselectedStatus,U=e.defaultLatlng,W=e.loading,q=e.setMapStepValue,H=e.step,Q=e.updatePlacesInView,$=e.handleShouldMapZoom,me=(e.shouldMapZoom,e.setHardResizeMap),fe=(e.setFirstClick,e.setClearAllClick,e.setClearingAll),ge=e.isMapPanning,be=e.setIsMapPanning,ve=e.type,ye=(Object(v.a)(e,ie),j()),xe=Object(o.useState)(!1),_e=Object(a.a)(xe,2),we=_e[0],Oe=_e[1],je=Object(o.useState)([]),Ce=Object(a.a)(je,2),Ee=Ce[0],Te=Ce[1],ke=Object(o.useState)({name:"",searchKey:"",coordinates:[]}),Se=Object(a.a)(ke,2),Ae=Se[0],Ie=Se[1],Me=Object(o.useState)(""),Le=Object(a.a)(Me,2),Be=Le[0],Re=Le[1],De=Object(o.useState)(!1),Pe=Object(a.a)(De,2),ze=Pe[0],Fe=Pe[1],Ne=Object(o.useState)(0),Ue=Object(a.a)(Ne,2),Ve=Ue[0],We=Ue[1],qe=Object(o.useState)(!1),Ge=Object(a.a)(qe,2),Ze=Ge[0],He=Ge[1],Xe=Object(o.useState)(!1),Ke=Object(a.a)(Xe,2),Ye=Ke[0],Je=Ke[1],Qe=Object(o.useState)(!1),$e=Object(a.a)(Qe,2),et=$e[0],tt=$e[1],nt=Object(o.useState)(!1),it=Object(a.a)(nt,2),rt=it[0],at=it[1],ot=Object(o.useState)(56),st=Object(a.a)(ot,2),ct=st[0],lt=st[1],ut=Object(o.useState)(null),dt=Object(a.a)(ut,2),pt=dt[0],ht=dt[1],mt=Object(o.useState)(null),ft=Object(a.a)(mt,2),gt=(ft[0],ft[1]),bt=(Object(o.useRef)(null),Object(o.useRef)(null)),vt=Object(o.useRef)(null),yt=Object(y.f)(),xt=ve===ne.X,_t=function(e,t){if(t){var n=e.slice(0,20);Te(n)}},wt=Object(m.d)((function(e){return e.ExploreMapReducer})),Ot=wt.selectedCategories,jt=wt.completePlaces,Ct=wt.placesInView,Et=R.categoriesTitle,Tt=R.destinationsTitle,kt=R.searchPlaceholderWeb,St=R.searchPlaceholderMobile,At=R.noSearchHeadingWeb,It=R.descriptionNoCategory,Mt=R.noSearchHeadingMobile,Lt=R.noSearchDescription,Bt=R.noCategoryDescription,Rt=R.noCategoryHeading,Dt="ar"==f||"he"==f,Pt="ru"==f;Object(o.useEffect)((function(){var e=Ct;e=Ot.length>0?e.filter((function(e){return Ot.includes(e.category)})):[],Array.isArray(e)&&zt(e,e),e.length>0&&1!==H&&q(1)}),[Ct]),Object(o.useEffect)((function(){Be&&Ve<1||H>0&&Ot.length<1&&Xt(),0===H&&(M([]),He(!0),Re(""),We(0),Fe(!1))}),[H]);var zt=function(e,t){e.length>0?(Je(!0),_t(e,!0)):_t(t,!0)};Object(o.useEffect)((function(){var e=Ae&&Ae.searchKey,t=ge||e?Ct:jt;Be&&(t=t.filter((function(e){return e.name&&e.name.toLowerCase().includes(Be.toLowerCase())})));var n=t.filter((function(e){return Ot.includes(e.category)}));zt(n,[]),Be&&We(n.length)}),[Ot]),Object(o.useEffect)((function(){if(bt&&bt.current&&u){var e=Ee.find((function(e){return e.id===u.id})),t=Ee;if(e){if(F.a)if(we&&vt&&vt.current){var n=document.getElementById("mitem_".concat(u.id)),i=n.offsetLeft;0!==n.offsetLeft&&(i=n.offsetLeft-20),vt.current.scrollLeft(i)}else{var r=document.getElementById("item_".concat(u.id));bt.current.scrollTop(r.offsetTop)}}else{var a=Object(b.a)(t),o=(a[0],a.slice(1));_t([].concat(Object(g.a)(o),[u]),!0)}}}),[u]),Object(o.useEffect)((function(){if(u)if(we&&vt&&vt.current){var e=document.getElementById("mitem_".concat(u.id));if(e){var t=e.offsetLeft;0!==e.offsetLeft&&(t=e.offsetLeft-20),vt.current.scrollLeft(t)}}else{var n=document.getElementById("item_".concat(u.id));n&&bt.current.scrollTop(n.offsetTop)}}),[Ee]),Object(o.useEffect)((function(){if(Ae.searchKey){var e=jt;Ot.length>0&&(e=e.filter((function(e){return Ot.includes(e.category)}))),zt(e,[]),z(e)}}),[Ae.searchKey]);var Ft=function(e){var t=Ee.find((function(t){return t.id===e}));d(t),N({itemId:e}),$(!1),Object(L.b)(Object(r.a)(Object(r.a)({},B.a.pageBodyInteraction[xt?"kioskeventClick":"eventClick"]),{},{map_event:"".concat(t.name)}))},Nt=function(e){e&&F.a&&window.location.assign(e)};Object(o.useEffect)((function(){Ut()}),[]);var Ut=function(){if(F.a){ht(window.androidHeight||window.innerHeight);var e=document.documentElement.style.getPropertyValue("--headerHeight"),t=document.documentElement.style.getPropertyValue("--notificationBar"),n=window.innerWidth<1024,i=n?56:0;Oe(n),gt(parseFloat(e)+parseFloat(t)+i)}};Object(o.useEffect)((function(){if(F.a)return window.addEventListener("resize",Ut),function(e){window.removeEventListener("resize",Ut)}}));var Vt=function(e,t,n){Ie({name:e,searchKey:t,coordinates:n,isForce:!1}
2),k(n),Object(L.b)(Object(r.a)(Object(r.a)({},B.a.pageBodyInteraction[xt?"kioskdestinationSelect":"destinationSelect"]),{},{map_destination:"".concat(e)}))},Wt=function(){at(!1),Fe(!1),H>0&&(q(0),Ie({name:"",searchKey:"",coordinates:[],isForce:!1}),d(null),Re(""),Ot.length>0&&M([]),He(!0),fe(!0),be(!1),Q([]),k([U.split(",")[1],U.split(",")[0]],!0))};Object(o.useEffect)((function(){if(D(Be),Be){var e=jt.filter((function(e){return e.name&&e.name.toLowerCase().includes(Be.toLowerCase())}));Ot.length>0?e=e.filter((function(e){return Ot.includes(e.category)})):e.length>0&&Xt(),We(e.length),z(e),e.length>0?(Fe(!1),zt(e,[])):Ot.length>0||zt(e,[])}else We(0),Fe(!1),z(Zt()||[]),0==Ee.length&&zt(Zt(),[])}),[Be]);var qt=function(e){if(at(!1),e&&Be!==e){if(H<1&&q(1),Ze&&He(!1),Fe(!0),Re(e),!we){var t=_.find((function(t){return t.name===e}));t&&d(t)}}else Be===e&&0==Ee.length||(H>0&&(Re(""),D(""),0==Ot.length&&Xt()),Fe(!1))},Gt=function(){Fe(!1),He(!0),Re(""),zt(Zt(),_)},Zt=function(){var e=jt;return Ot.length>0&&(e=e.filter((function(e){return Ot.includes(e.category)}))),e},Ht=function(){var e=_;if(Ot.length>0&&(e=e.filter((function(e){return Ot.includes(e.category)}))),Ee.length>=e.length)Je(!1);else{var t=e.filter((function(e){var t=e.id;return!Ee.some((function(e){return e.id===t}))})).slice(Ee.length,Ee.length+20);Te(Ee.concat(t))}},Xt=function(){var e=Z(O);M(e)},Kt=function(e){return Dt?{marginLeft:e.marginRight,marginRight:0}:{}},Yt=Object(o.useRef)(null),Jt=Object(o.useRef)(null),Qt=Object(o.useState)(0),$t=Object(a.a)(Qt,2),en=$t[0],tn=$t[1],nn=Object(o.useState)(0),rn=Object(a.a)(nn,2),an=rn[0],on=rn[1];return Object(o.useEffect)((function(){Yt.current&&tn(Yt.current.offsetHeight),Jt.current&&on(Jt.current.offsetHeight)}),[]),s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:Object(A.a)(ye.floatingBar,(t={},Object(i.a)(t,ye.directionRtl,Dt),Object(i.a)(t,ye.enableClick,!W),t),xt?"mediaMonkFloatingBar":"")},s.a.createElement("div",{className:"".concat(ye.floatingBarInnerWrap," ").concat(xt?"mediaMonkFloatingBarInner":"")},s.a.createElement("div",{className:ye.headingWrapper,ref:Yt},s.a.createElement(C.a,{variant:"h5Bold",title:w("FloatingBoxHeading")},w("FloatingBoxHeading")),s.a.createElement(C.a,{onClick:Wt,variant:"body4Bold",title:w("ClearAllMapText"),className:Object(A.a)(ye.underlineText,(n={},Object(i.a)(n,ye.redText,H>0||Ot.length>0),Object(i.a)(n,ye.ltGray,H<1),n))},w("ClearAllMapText"))),!xt&&s.a.createElement(P,{key:"searchField",clearAll:Ze,allPlaces:jt,searchPlaceholder:kt,searchPlacesForQuery:qt,noResultText:Mt,tryDifferentText:w("TryDifferentKeywords")}),ze&&Ve<1&&s.a.createElement(J.Scrollbars,{autoHide:!0,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!0,autoHeightMax:"calc((var(--vh, 1vh) * 100) - var(--notificationBar) - var(--headerHeight) - 216px)",id:"nrscroll",universal:!0,renderView:function(e){return s.a.createElement("div",e)},renderTrackVertical:function(e){var t=e.style,n=Object(v.a)(e,re);return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)({},t),className:"destinationScrollTrack"}))},renderThumbVertical:function(e){var t=e.style,n=Object(v.a)(e,ae);return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)({},t),className:ye.destinationScrollThumb}))}},s.a.createElement("div",{className:ye.noResultsWrapper},s.a.createElement(C.a,{variant:"body4Bold"},w("SearchResults")),s.a.createElement(Y.default,{fields:{heading:At,description:Lt,descriptionNoCategory:It},categoriesCount:Ot.length,noCategoryDescription:Bt,noCategoryHeading:Rt,from:"MapFloatingBox",backToList:Gt,dictionary:w,isMobileDevice:we}))),!ze&&s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:ye.categoriesListWrap,ref:Jt},s.a.createElement(C.a,{variant:"body2Bold"},Et),s.a.createElement("div",{style:{position:"relative",marginTop:"16px"}},s.a.createElement(J.Scrollbars,{autoHide:!0,autoHideTimeout:1e3,autoHideDuration:200,autoHeightMax:"105px",autoHeight:!0,id:"cscroll",universal:!0,renderTrackVertical:function(e){var t=e.style,n=Object(v.a)(e,oe);return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)({},t),className:"destinationScrollTrack"}))},renderThumbVertical:function(e){var t=e.style,n=Object(v.a)(e,se);return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)({},t),className:ye.destinationScrollThumb}))},renderView:function(e){return s.a.createElement("div",Object.assign({},e,{className:ye.categoriesList}))}},s.a.createElement(G,{categoriesList:O,classes:ye,selectedCategories:Ot,onClickCategory:function(e){var t,n=Ot;n.filter((function(t){return e.includes(t)})).length>0?n=n.filter((function(t){return!e.includes(t)})):(t=n).push.apply(t,Object(g.a)(e));
2M(Object(g.a)(n)),0==H&&q(1),me(!0),Object(L.b)(Object(r.a)(Object(r.a)({},B.a.pageBodyInteraction[xt?"kioskmapCategorySearch":"mapCategorySearch"]),{},{map_category:"".concat(n)}))},isLangRussian:Pt})))),0===H&&s.a.createElement("div",{className:"".concat(ye.destinationListWrapper," ").concat(xt?"mediaMonkListWrapper":"")},s.a.createElement(C.a,{variant:"body2Bold",style:{marginBottom:"16px"}},Tt),s.a.createElement(J.Scrollbars,{autoHide:!0,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!0,autoHeightMax:"calc((var(--vh, 1vh) * 100) - var(--notificationBar) - var(--headerHeight) - 402px)",id:"dscroll",universal:!0,renderView:function(e){return s.a.createElement("div",Object.assign({},e,{className:ye.destinationList}))},className:ye.dscroll,renderTrackVertical:function(e){var t=e.style,n=Object(v.a)(e,ce);return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)({},t),className:"destinationScrollTrack"}))},renderThumbVertical:function(e){var t=e.style,n=Object(v.a)(e,le);return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)({},t),className:ye.destinationScrollThumb}))}},s.a.createElement(V,{customClass:xt?"mediaMonkListDetails":"",destinationsList:T,classes:ye,onClickDestination:Vt}))),1===H&&s.a.createElement(s.a.Fragment,null,Ee.length>0&&s.a.createElement("div",{className:ye.mostViewedItemsWrapper},Ve>0?s.a.createElement(C.a,{variant:"body4Bold"},w("SearchResults")):s.a.createElement(C.a,{variant:"body2Bold"},"".concat(w("MostViewedText")," ").concat(w("TheArea"))),s.a.createElement(J.Scrollbars,{ref:bt,autoHide:!0,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!0,autoHeightMax:"calc((var(--vh, 1vh) * 100) - var(--notificationBar) - var(--headerHeight) - ".concat(xt?"".concat(en,"px - ").concat(an,"px) - 60px  ").concat(pt>1080?"- 120px":""):"402px"),id:"xcroll",universal:!0,renderTrackHorizontal:function(e){return s.a.createElement("div",Object.assign({},e,{className:"track-horizontal"}))},style:{width:"calc(100% + 48px)",left:Dt?"0px":"-24px",right:Dt?"-24px":"0px"},renderTrackVertical:function(e){var t=e.style,n=Object(v.a)(e,ue);return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)({},t),className:"destinationScrollTrack"}))},renderThumbVertical:function(e){var t=e.style,n=Object(v.a)(e,de);return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)({},t),className:ye.destinationScrollThumb}))},renderView:function(e){var t=e.style,n=e.props;return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)(Object(r.a)({},t),{},{scrollBehavior:"smooth"},Kt(t))}))},onScrollFrame:function(e){Ye&&e.scrollTop+e.clientHeight+100>e.scrollHeight&&Ht()}},Ee.map((function(e){return s.a.createElement("div",{className:ye.positionRelative,key:e.id,id:"item_".concat(e.id)},s.a.createElement("div",{className:Object(A.a)(Object(i.a)({},ye.selectedItemBar,u&&u.id===e.id))}),s.a.createElement(E.a,{item:e,googlePlacesAPI:h,language:f,onClickItem:Ft,componentName:ve===ne.X?ne.x:"ExploreMap",dictionary:w}))})))),Ee.length<1&&s.a.createElement("div",{className:ye.noResultsWrapper},Ot.length>0&&s.a.createElement(C.a,{variant:"body4Bold"},w("SearchResults")),s.a.createElement(Y.default,{fields:{heading:At,descriptionNoCategory:It},categoriesCount:Ot.length,noCategoryDescription:Bt,noCategoryHeading:Rt,from:"MapFloatingBox",dictionary:w,isMobileDevice:we})))))),s.a.createElement("div",{className:ye.mobileMapControls,style:{height:"".concat(ct,"px")}},s.a.createElement(S.b,{value:{isFilterOpen:et,onClickToggleBtn:function(){et&&lt(56),tt(!et)},isInputFocus:rt,onIsInputFocus:at}},s.a.createElement("div",{className:Object(A.a)(ye.topPanel,(c={},Object(i.a)(c,ye.extendedHeight,et),Object(i.a)(c,ye.directionRtl,Dt),c)),style:{height:"".concat(ct,"px")}},s.a.createElement("div",{className:Object(A.a)(ye.topPanelFirst)},!rt&&s.a.createElement("div",{className:ye.topHeaderIcon,onClick:function(){yt.length>0?yt.goBack():yt.push("/")}},s.a.createElement(I.a,{name:"CloseIcon"})),!xt&&s.a.createElement(P,{key:"searchFieldMobile",clearAll:Ze,setClearAll:He,allPlaces:jt,searchPlaceholder:St,onPopperOpen:function(){},searchPlacesForQuery:qt,noResultText:Mt,tryDifferentText:w("TryDifferentKeywords")}),!rt&&s.a.createElement("div",{className:ye.topHeaderIcon,onClick:function(){tt(!0)}},s.a.createElement(te.a,{color:"secondary",badgeContent:Ot.length},s.a.createElement(I.a,{name:"FilterIcon"}))),rt&&s.a.createElement("div",{className:ye.orangeText,onClick:function(){He(!0),at(!1)}},s.a.createElement(C.a,{variant:"body2Bold"},"Cancel"))),s.a.createElement(X,{onClickCloseFilterView:function(){tt(!1)},onClickClearAll:Wt,onClickDestination:Vt,destinationsList:T,categoriesList:O,setSelectedCategories:M,selectedCategories:Ot,selectedCity:Ae,selectTheseCategories:function(e){M(Object(g.a)(e)),0==H&&q(1),me(!0)},isLangRussian:Pt,dictionary:w}))),s.a.createElement("div",{className:Object(A.a)(ye.bottomPanel,(l={},Object(i.a)(l,ye.itemListPanel,H>
20),Object(i.a)(l,ye.directionRtl,Dt),Object(i.a)(l,ye.hiddenPanel,rt),l)),id:"mobileBottomPanel"},ze&&Ve<1&&s.a.createElement("div",{className:ye.noResultsWrapper},s.a.createElement(Y.default,{fields:{heading:Mt,description:Lt,descriptionNoCategory:It},categoriesCount:Ot.length,noCategoryDescription:Bt,noCategoryHeading:Rt,from:"MapFloatingBox",backToList:Gt,dictionary:w,isMobileDevice:we})),!ze&&s.a.createElement(s.a.Fragment,null,0===H&&s.a.createElement("div",null,s.a.createElement(C.a,{variant:"body2Bold",className:ye.mapCardHeading},Tt),s.a.createElement("div",{className:Object(A.a)(ye.destinationList,Object(i.a)({},ye.enableClickMobile,!W))},s.a.createElement(K.a,{reverseScroll:!0,className:ye.mobileDestinationScroll,config:{stiffness:160,damping:110}},s.a.createElement(V,{destinationsList:T,classes:ye,onClickDestination:Vt})))),1===H&&s.a.createElement(s.a.Fragment,null,Ee.length<1&&s.a.createElement("div",{className:ye.noResultsWrapper},Ot.length>0&&s.a.createElement(C.a,{className:ye.mapCardHeading,variant:"body4Bold"},w("SearchResults")),s.a.createElement(Y.default,{fields:{heading:At,descriptionNoCategory:It},categoriesCount:Ot.length,noCategoryDescription:Bt,noCategoryHeading:Rt,from:"MapFloatingBox",dictionary:w,isMobileDevice:we})),Ee.length>0&&s.a.createElement("div",null,s.a.createElement("div",{className:ye.mostViewedList},s.a.createElement(J.Scrollbars,{ref:vt,autoHide:!1,id:"mxcroll",universal:!0,style:{height:"124px",width:"100%"},renderTrackHorizontal:function(e){var t=e.style,n=Object(v.a)(e,pe);return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)({},t),className:"destinationHorizontalScrollTrack"}))},renderThumbHorizontal:function(e){var t=e.style,n=Object(v.a)(e,he);return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)({},t),className:"destinationHorizontalThumb"}))},renderTrackVertical:function(e){var t=Object.assign({},e);return s.a.createElement("div",Object.assign({},t,{className:"track-vertical"}))},renderView:function(e){var t=e.style,n=e.props;return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)(Object(r.a)({},t),{},{display:"flex",scrollBehavior:"smooth",overflowY:"hidden"},Kt(t))}),s.a.createElement(K.a,null))},onScrollFrame:function(e){Ye&&e.scrollLeft+e.clientWidth+100>e.scrollWidth&&Ht()},onScrollStop:function(){var e=vt.current;if(u&&e){var t=e.getScrollLeft(),n=e.container.firstChild.children["mitem_".concat(u.id)];if(n){var i=n.offsetLeft,r=n.offsetWidth;(t<i-r||t>i+r)&&d(null)}}}},Ee.map((function(e){return s.a.createElement(ee.a,{key:e.id,item:e,googlePlacesAPI:h,language:f,onClickItem:Nt,componentName:"ExploreMap",dictionary:w})}))))))))))}),(function(e,t){return e.className===t.className&&JSON.stringify(e.places)===JSON.stringify(t.places)&&e.selectedItem===t.selectedItem&&e.selectedCity===t.selectedCity&&e.mostViewedList===t.mostViewedList&&e.placesInView===t.placesInView&&e.step===t.step}))),ge=n(209),be=Object(x.a)((function(e){var t;return{"@global":(t={"html, body":{overflow:"hidden"},"& .mapboxgl-map-wrapper-wrapper":{"&.mapboxMediaMonk":{"& .mediaMonkFloatingBar":{"@media (max-width: 3840px) and (max-height: 2160px)":{width:"20%"},"@media (max-width: 1920px) and (max-height: 1080px)":{width:"437px"},"& .mediaMonkFloatingBarInner":{"& .mediaMonkListWrapper":{"& .mediaMonkListDetails":{width:"100%",height:"250px","@media (max-width: 1920px) and (max-height: 1080px)":{height:"inherit",width:"inherit"},"& img":{objectFit:"cover","@media (max-width: 1920px) and (max-height: 1080px)":{objectFit:"inherit"}}}}}}}}},Object(i.a)(t,e.breakpoints.up("lg"),{".mapboxgl-map-wrapper-wrapper":{marginTop:"calc(var(--notificationBar) - var(--notificationBar) * 2)",transition:"margin 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},".mapboxgl-map-wrapper":{height:"calc((var(--vh, 1vh) * 100) - var(--notificationBar) - var(--headerHeight) - 1px) !important"},".mapboxgl-map":{height:"calc((var(--vh, 1vh) * 100) - var(--headerHeight) - 2px) !important"},".mapboxgl-map canvas, .mapboxgl-canvas-container":{height:"calc((var(--vh, 1vh) * 100) - var(--headerHeight) - 1px) !important"}}),Object(i.a)(t,e.breakpoints.down("md"),{".mapboxgl-map-wrapper-wrapper":{transition:"margin 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},".mapboxgl-map-wrapper":{height:"calc((var(--vh, 1vh) * 100) - (var(--headerHeight) - 1px) - var(--notificationBar) - var(--mobileMapControl
2sHeight)) !important"},".mapboxgl-map":{height:"calc((var(--vh, 1vh) * 100) - (var(--headerHeight) - 1px) - var(--mobileMapControlsHeight)) !important"},".mapboxgl-map canvas, .mapboxgl-canvas-container":{height:"calc((var(--vh, 1vh) * 100) - (var(--headerHeight) - 1px) - var(--mobileMapControlsHeight)) !important"}}),t),mediaMonkStyle:{"& .mediaMonkSelected":{"& .mediaMonkSelectedIcon":{fontSize:"0",lineHeight:"0",'[dir="rtl"] &':{marginRight:"5px !important"}}}},directionLtr:{direction:"ltr"},mainNavContainer:{position:"absolute",bottom:30,right:15,display:"flex",flexDirection:"column"},mainNavContainerRTL:{position:"absolute",bottom:30,left:15,display:"flex",flexDirection:"column"},hideMapArea:{display:"none"},mobileMapInfoTopPanel:Object(i.a)({width:"100%",height:"56px",position:"relative",backgroundColor:e.mixins.White(),boxSizing:"border-box",display:"flex",alignItems:"center"},e.breakpoints.up("lg"),{display:"none"}),closeMapPopupIcon:Object(r.a)(Object(r.a)(Object(r.a)({},e.mixins.marginRight(21)),e.mixins.marginLeft("auto")),{},{width:"14px",height:"14px","& svg":{width:"14px",height:"14px",color:e.palette.common.SlateGray}}),buttonView:{backgroundColor:e.palette.BGGray,padding:5,margin:5,borderRadius:_.a.b25,justifyContent:"center",alignItems:"center",border:"none"},buttonContainer:Object(i.a)({backgroundColor:e.mixins.White(),marginBottom:5,display:"flex",flexDirection:"column",borderRadius:_.a.b28,boxShadow:"0px 0px 8px ".concat(e.mixins.Black(250))},e.breakpoints.down("md"),{display:"none"}),buttonIcon:{border:"none",margin:3,cursor:"pointer"},mapOverlay:Object(i.a)({backgroundColor:e.palette.common.OverlayGray,opacity:"0.4",zIndex:"1",width:"100vw",height:"calc((var(--vh, 1vh) * 100) - var(--headerHeight) - 1px)",position:"absolute",display:"inline-block"},e.breakpoints.down("md"),{transition:"margin 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",height:"calc((var(--vh, 1vh) * 100) - (var(--headerHeight) - 1px) - var(--mobileMapControlsHeight))"}),hideDiv:{display:"none"}}})),ve=n(1604),ye=n(1847),xe=n(1672),_e=n.n(xe),we=n(171),Oe=n.n(we),je=n(1675),Ce={Icon_activities_selected:n(1810),Icon_activities_unselected:n(1811),Icon_attractions_selected:n(1812),Icon_attractions_unselected:n(1813),Icon_events_selected:n(1814),Icon_events_unselected:n(1815),Icon_hotels_selected:n(1816),Icon_hotels_unselected:n(1817),Icon_resturants_selected:n(1818),Icon_resturants_unselected:n(1819),Icon_activities_selected_fav:n(1820),Icon_activities_unselected_fav:n(1821),Icon_attractions_selected_fav:n(1822),Icon_attractions_unselected_fav:n(1823),Icon_events_selected_fav:n(1824),Icon_events_unselected_fav:n(1825),Icon_hotels_selected_fav:n(1826),Icon_hotels_unselected_fav:n(1827),Icon_resturants_selected_fav:n(1828),Icon_resturants_unselected_fav:n(1829),tempLogo:n(1743)},Ee={activities:"Activity",attractions:"Attraction",events:"Event",hotels:"Accommodation",resturants:"Dining"},Te=Object(d.b)({isCellReselected:$.e,shouldMapZoom:$.j,clearAllClick:$.a,loading:$.g,selectedCategories:$.i}),ke=Object(ge.a)(Object(h.withSitecoreContext)()(Object(p.b)()(Object(m.b)(Te,(function(e){return{handleShouldMapZoom:function(t){return e(Object(c.e)(t))},setIsMapPanning:function(t){return e(Object(c.h)(t))},setClearingAll:function(t){return e(Object(c.g)(t))}}}))((function(e){var t=e.mapBoxStyle,n=e.token,c=e.geoJsonData,l=e.sItem,u=e.selectedCoordinates,d=e.onShowMapPopup,p=e.LnglatSW,h=e.LnglatNE,m=e.categoriesList,f=e.defaultLatlng,g=e.language,b=e.onChangeZoom,v=e.isCellReselected,y=e.handleShouldMapZoom,x=e.shouldMapZoom,_=e.hardResizeMap,w=e.setHardResizeMap,O=(e.firstClick,e.setFirstClick,e.dictionary),j=e.clearAllClick,C=e.setClearingAll,E=(e.setIsMapPanning,e.loading),T=e.selectedCategories,k=e.type,S=Object(o.useState)({latitude:f.split(",")[0],longitude:f.split(",")[1]}),A=Object(a.a)(S,2),I=A[0],M=(A[1],"ar"==g||"he"==g),L=Object(o.useState)(null),B=Object(a.a)(L,2),R=B[0],D=B[1],P=Object(o.useState)(null),z=Object(a.a)(P,2),N=z[0],U=z[1],V=Object(o.useState)(null),W=Object(a.a)(V,2),q=W[0],G=W[1],Z=Object(o.useState)(null),H=Object(a.a)(Z,2),X=H[0],K=H[1],Y=Object(o.useState)(!1),J=Object(a.a)(Y,2),Q=J[0],$=J[1],ee=Object(o.useState)(!1),te=Object(a.a)(ee,2),ie=(te[0],te[1],Object(o.useState)(!1)),re=Object(a.a)(ie,2),ae=re[0],oe=re[1],se=Object(o.useState)({activities_selected:Ce.Icon_activities_selected,activities_selected_fav
2:Ce.Icon_activities_selected_fav,activities_unselected:Ce.Icon_activities_unselected,activities_unselected_fav:Ce.Icon_activities_unselected_fav,attractions_selected:Ce.Icon_attractions_selected,attractions_selected_fav:Ce.Icon_attractions_selected_fav,attractions_unselected:Ce.Icon_attractions_unselected,attractions_unselected_fav:Ce.Icon_attractions_unselected_fav,events_selected:Ce.Icon_events_selected,events_selected_fav:Ce.Icon_events_selected_fav,events_unselected:Ce.Icon_events_unselected,events_unselected_fav:Ce.Icon_events_unselected_fav,hotels_selected:Ce.Icon_hotels_selected,hotels_selected_fav:Ce.Icon_hotels_selected_fav,hotels_unselected:Ce.Icon_hotels_unselected,hotels_unselected_fav:Ce.Icon_hotels_unselected_fav,resturants_selected:Ce.Icon_resturants_selected,resturants_selected_fav:Ce.Icon_resturants_selected_fav,resturants_unselected:Ce.Icon_resturants_unselected,resturants_unselected_fav:Ce.Icon_resturants_unselected_fav}),ce=Object(a.a)(se,2),le=ce[0],ue=ce[1];be();F.a&&k===ne.X&&document.documentElement.style.setProperty("--headerHeight","0px"),Object(o.useEffect)((function(){m.length>0&&pe()}),[m]);var de=function(){var e=localStorage.getItem("favorites");return e?JSON.parse(e):[]},pe=function(){m.forEach((function(e){var t,n,i,r,a,o,s,c,l=null,u=null,d=null,p=null;(null===(t=e.fields["Marker Selected Icon"])||void 0===t||null===(n=t.value)||void 0===n?void 0:n.src)&&(l=e.fields["Marker Selected Icon"].value.src),(null===(i=e.fields["Marker Selected Icon With Heart"])||void 0===i||null===(r=i.value)||void 0===r?void 0:r.src)&&(u=e.fields["Marker Selected Icon With Heart"].value.src),(null===(a=e.fields["Marker Unselected Icon"])||void 0===a||null===(o=a.value)||void 0===o?void 0:o.src)&&(d=e.fields["Marker Unselected Icon"].value.src),(null===(s=e.fields["Marker Unselected Icon With Heart"])||void 0===s||null===(c=s.value)||void 0===c?void 0:c.src)&&(p=e.fields["Marker Unselected Icon With Heart"].value.src),e.fields.CategoryList.map((function(e){return e.fields.taxonomyKey.value})).forEach((function(e){switch(e){case Ee.activities:null!=l&&void 0!=l&&(le.activities_selected=l,le.activities_selected_fav=u),null!=d&&void 0!=d&&(le.activities_unselected=d,le.activities_unselected_fav=p);break;case Ee.attractions:null!=l&&void 0!=l&&(le.attractions_selected=l,le.attractions_selected_fav=u),null!=d&&void 0!=d&&(le.attractions_unselected=d,le.attractions_unselected_fav=p);break;case Ee.events:null!=l&&void 0!=l&&(le.events_selected=l,le.events_selected_fav=u),null!=d&&void 0!=d&&(le.events_unselected=d,le.events_unselected_fav=p);break;case Ee.hotels:null!=l&&void 0!=l&&(le.hotels_selected=l,le.hotels_selected_fav=u),null!=d&&void 0!=d&&(le.hotels_unselected=d,le.hotels_unselected_fav=p);break;case Ee.resturants:null!=l&&void 0!=l&&(le.resturants_selected=l,le.resturants_selected_fav=u),null!=d&&void 0!=d&&(le.resturants_unselected=d,le.resturants_unselected_fav=p)}}))})),ue(Object(r.a)({},le))};Object(o.useEffect)((function(){v&&he()}),[v]),Object(o.useEffect)((function(){(null==l&&G(null),l)&&(F.a&&(window.innerWidth<1024?(U({longitude:l.coordinates[0],latitude:l.coordinates[1],anchor:M?"right":"left"}),G(l),xe(l.coordinates)):l.coordinates&&(ge(l.coordinates,15),U({longitude:l.coordinates[0],latitude:l.coordinates[1],anchor:M?"right":"left"}),G(l))))}),[l]),Object(o.useEffect)((function(){u&&(y(!1),ge(u,10))}),[u]),Object(o.useEffect)((function(){_&&me.current&&setTimeout((function(){me.current.resize(),w(!1)}),500)}),[_]);var he=function(){U(null),G(null),d(null,!1)},me=Object(o.useRef)(),fe=Object(o.useCallback)((function(){me.current.loadImage(le.activities_unselected,(function(e,t){if(e)throw e;me.current.addImage("custom-marker",t)})),me.current.loadImage(le.activities_unselected_fav,(function(e,t){if(e)throw e;me.current.addImage("custom-marker-fav",t)})),me.current.loadImage(le.attractions_unselected,(function(e,t){if(e)throw e;me.current.addImage("custom-marker-2",t)})),me.current.loadImage(le.attractions_unselected_fav,(function(e,t){if(e)throw e;me.current.addImage("custom-marker-2-fav",t)})),me.current.loadImage(le.events_unselected,(function(e,t){if(e)throw e;me.current.addImage("custom-marker-3",t)})),me.current.loadImage(le.events_unselected_fav,(function(e,t){if(e)throw e;me.current.addImage("custom-marker-3-fav",t)})),me.current.loadImage(le.hotels_unselected,(function(e,t){if(e)throw e;me.current.addImage("custom-marker-4",t)})),me.current.loadImage(le.hotels_unselected_fav,(function(e,t){if(e)throw e;me.current.addImage("custom-marker-4-fav",t)})),me.current.loadImage(le.resturants_unselected,(function(e,t){if(e)throw e;me.current.addImage("custom-marker-5",t)})),me.current.loadImage(le.resturants_unselected_fav,(function(e,t){if(e)throw e;me.current.addImage("custom-marker-5-fav",t)})),me.current.on("moveend",(function(){C(!1)})),me.current.on("click","clusters",(function(e){var t=me.current.queryRenderedFeatures(e.point,{layers:["clusters"]}
2),n=t[0].properties.cluster_id;me.current.getSource("geoplaceAD").getClusterExpansionZoom(n,(function(e,n){var i=n;n>15&&(i=15),e?console.log("Error in cluster zoom: ",e):me.current.easeTo({center:t[0].geometry.coordinates,zoom:i})}))})),me.current.on("click","unclustered-point",(function(e){y(!0);var t=e.target._containerWidth,n=e.target._containerHeight,a=e.features[0].properties,o={};Object.keys(a).forEach((function(e){"string"===typeof a[e]&&("id"!=e&&a[e].startsWith("{")||a[e].startsWith("["))?Object.assign(o,Object(i.a)({},e,JSON.parse(a[e]))):Object.assign(o,Object(i.a)({},e,a[e]))}));var s=e.features[0].geometry.coordinates.slice();if(t<1024)d(Object(r.a)(Object(r.a)({},o),{},{coordinates:s}),!0);else{for(;Math.abs(e.lngLat.lng-s[0])>180;)s[0]+=e.lngLat.lng>s[0]?360:-360;e.point.y>n-456&&"bottom",e.point.x<709&&"-left",e.point.x>t/3*2&&e.point.x<=t&&"-right",G(o),U({longitude:s[0],latitude:s[1],anchor:"bottom"}),xe([s[0],s[1]]),d(Object(r.a)(Object(r.a)({},o),{},{coordinates:s}),!1)}})),document.getElementById("zoomIn").addEventListener("click",(function(){me.current.zoomIn()})),document.getElementById("zoomOut").addEventListener("click",(function(){me.current.zoomOut()}));var e=g;me.current.getStyle().layers.forEach((function(t){t.hasOwnProperty("layout")&&t.layout.hasOwnProperty("text-field")&&("ar"==e?"loaded"!==_e.a.getRTLTextPluginStatus()&&_e.a.setRTLTextPlugin("https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js",null,!0):"zh"==e&&(e="zh-Hant"),"cluster-count"!=t.id&&me.current.getMap().setLayoutProperty(t.id,"text-field",["coalesce",["get","name_".concat(e)],["get","name_en"]]))}))}),[]),ge=function(e,t){var n=me.current.getZoom(),i=t;x?n<10?i=15:(10==t||15==t)&&c.features.length>0&&(i=n):n>15&&c.features.length>0?i=n:10!=t&&15!=t||(i=t),me.current.flyTo({center:e,zoom:i,bearing:0,speed:4,minZoom:9,curve:1.42,easing:function(e){return e},essential:!0})},xe=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=me.current.getZoom();t&&(n=t),me.current.flyTo(Object(r.a)(Object(r.a)({},t&&{minZoom:9}),{},{center:[parseFloat(e[0]),parseFloat(e[1])],zoom:n}))},we=function(e){e.coordinate_csp=e.geometry.coordinates[0]+","+e.geometry.coordinates[1]};var Te=function(e){e.features.map(we);var t=function(e){var t=[];return e.map((function(e){t.push(e.coordinate_csp)})),function(e){var t={};return e.forEach((function(e){t[e]?t[e]+=1:t[e]=1})),t}(t)}(e.features),n=[],i=Object.entries(t);return i.forEach((function(e){if(e[1]>1){var t=e[0].split(","),r=1e-5;i.length>15&&(r=4e-5);var a=function(e,t,n,i){for(var r=[],a=[],o=0;o<t;o++)a[o]=[parseFloat(n)+e*parseFloat(Math.cos(2*Math.PI*o/t)),parseFloat(i)+e*parseFloat(Math.sin(2*Math.PI*o/t))];return r.values=a,r}(r,e[1],t[0],t[1]);n[e[0]]=a}})),Object.entries(n).forEach((function(t){Object.entries(t[1]).forEach((function(n){var i=0;e.features.forEach((function(e,r){e.coordinate_csp==t[0]&&(e.geometry.coordinates[0]=parseFloat(n[1][i][0]),e.geometry.coordinates[1]=parseFloat(n[1][i][1]),i++)}))}))})),e};Object(o.useEffect)((function(){var e=c;if("none"!==e.type){var t=e.features;t=T.length>0?t.filter((function(e){return T.includes(e.properties.category)})):[],e=Object(r.a)(Object(r.a)({},e),{},{features:t})}e&&e.features.length>0&&(e=Te(e)),e&&(D(e),ke(),me.current&&setTimeout((function(){me.current.resize()}),200),e&&e.features.length<1&&N&&(U(null),d(null,!1)))}),[c]);var ke=function(){if(F.a){$(window.innerWidth<1024);var e=document.documentElement.style.getPropertyValue("--headerHeight"),t=document.documentElement.style.getPropertyValue("--notificationBar"),n=document.getElementById("mobileBottomPanel").offsetHeight||0,i=window.innerWidth<1024?50+n:0;document.documentElement.style.setProperty("--mobileMapControlsHeight","".concat(i,"px"));var r=parseFloat(e)+parseFloat(t)+i;K(r),ae||oe(!0)}},Se=p&&p.value&&h&&h.value?[p.value.split(","),h.value.split(",")]:null;Object(o.useEffect)((function(){$(window.innerWidth<1024)}),[]),Object(o.useEffect)((function(){if(F.a)return window.addEventListener("resize",ke),function(e){window.removeEventListener("resize",ke)}}));var Ae=function(e){e.viewState.zoom;j||(l||q?e.originalEvent&&"touchmove"!==e.originalEvent.type&&(G(null),C(!1),Ie(me.current)):(C(!1),Ie(me.current)))},Ie=Oe()(b,500);return ae?s.a.createElement(s.a.Fragment,null,s.a.createElement(ve.e,{mapLib:_e.a,initialViewState:{latitude:I.latitude,longitude:I.longitude,zoom:je.a.zoom},style:{width:"100vw",height:"calc(100vh - ".concat(X,"px)")},mapboxAccessToken:n,mapStyle:t,ref:me,onLoad:fe,maxBounds:Se,dragPan:!E,scrollZoom:!E,doubleClickZoom:!E,onZoom:Ae,onMove:Ae},s.a.createElement(ve.d,{id:"geoplaceAD",type:"geojson",data:R,cluster:!0,clusterMa
2xZoom:14,clusterRadius:50,clusterMinPoints:5},s.a.createElement(ve.a,{id:"clusters",type:"circle",source:"geoplaceAD",filter:["has","point_count"],paint:{"circle-color":["step",["get","point_count"],"#FFF",100,"#FFF",750,"#FFF"],"circle-radius":["step",["get","point_count"],20,100,30,750,40],"circle-stroke-width":1,"circle-stroke-color":"#E4E8EA"}}),s.a.createElement(ve.a,{id:"cluster-count",type:"symbol",source:"geoplaceAD",filter:["has","point_count"],layout:{"text-field":"{point_count_abbreviated}","text-font":["DIN Offc Pro Medium","Arial Unicode MS Bold"],"text-size":12,"text-allow-overlap":!0},paint:{"text-color":"#000000"}}),s.a.createElement(ve.a,{id:"unclustered-point",type:"symbol",source:"geoplaceAD",layout:{"icon-allow-overlap":!0,"icon-image":function(){var e,t=de(),n=(e={},Object(i.a)(e,Ee.activities,["custom-marker","custom-marker-fav"]),Object(i.a)(e,Ee.attractions,["custom-marker-2","custom-marker-2-fav"]),Object(i.a)(e,Ee.events,["custom-marker-3","custom-marker-3-fav"]),Object(i.a)(e,Ee.hotels,["custom-marker-4","custom-marker-4-fav"]),Object(i.a)(e,Ee.resturants,["custom-marker-5","custom-marker-5-fav"]),e),r=["match",["get","category"]];return Object.entries(n).forEach((function(e){var n=Object(a.a)(e,2),i=n[0],o=Object(a.a)(n[1],2),s=o[0],c=o[1];r.push(i,["case",["in",["get","id"],["literal",t]],c,s])})),r.push("custom-marker-6"),r}(),"icon-size":.4}})),N&&q&&s.a.createElement(s.a.Fragment,null,s.a.createElement(ve.b,{longitude:N.longitude,latitude:N.latitude},s.a.createElement("img",{src:function(){var e=Ce.tempLogo,t=de().includes(q.id);switch(q.category){case Ee.activities:e=t?le.activities_selected_fav:le.activities_selected;break;case Ee.attractions:e=t?le.attractions_selected_fav:le.attractions_selected;break;case Ee.events:e=t?le.events_selected_fav:le.events_selected;break;case Ee.hotels:e=t?le.hotels_selected_fav:le.hotels_selected;break;case Ee.resturants:e=t?le.resturants_selected_fav:le.resturants_selected}return e}(),style:{height:52,width:142/3,marginBottom:-5}})),!Q&&s.a.createElement(ye.a,{popupInfo:N,item:q,setPopupInfo:he,language:g,dictionary:O,type:k})))):null}))))),Se=(n(1665),n(27)),Ae=n(1957),Ie=Object(x.a)((function(e){var t,n,a,o;return{"@global":(t={"html, body":{overflow:"hidden !important",height:"100% !important"},"& .mapboxgl-map":{width:"100vw","& .mapboxgl-marker":{zIndex:1}},"& .mapboxgl-map-wrapper-wrapper":{position:"relative","&:before":{content:'""',position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"transparent",zIndex:-1,opacity:0,visibility:"hidden",transition:"all 0.2s ease-in"},"&:after":{content:'""',position:"absolute",top:0,left:0,width:"100%",height:Object(w.p)(80),background:"linear-gradient(0deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.35) 100%)",zIndex:0,"@media (max-width: 1023.85px)":{display:"none"}},"&.sheet-expanded":{"&:before":{content:'""',position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"rgba(0, 0, 0, 0.30)",zIndex:9,opacity:1,visibility:"visible"}}}},Object(i.a)(t,e.breakpoints.up("lg"),{".mapboxgl-map-wrapper-wrapper":{marginTop:"calc(var(--notificationBar) - var(--notificationBar) * 2)",transition:"margin 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},".mapboxgl-map-wrapper":{height:"calc((var(--vh, 1vh) * 100) - var(--notificationBar) - 1px) !important"},".mapboxgl-map":{height:"calc((var(--vh, 1vh) * 100)  - 2px) !important"},".mapboxgl-map canvas, .mapboxgl-canvas-container":{height:"calc((var(--vh, 1vh) * 100) - 1px) !important"}}),Object(i.a)(t,e.breakpoints.down("md"),{".mapboxgl-map-wrapper-wrapper":{transition:"margin 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"},".mapboxgl-map-wrapper":{height:"calc((var(--vh, 1vh) * 100) - 1px) - var(--notificationBar) - var(--mobileMapControlsHeight)) !important"},".mapboxgl-map":{height:"calc((var(--vh, 1vh) * 100) - 1px) - var(--mobileMapControlsHeight)) !important"},".mapboxgl-map canvas, .mapboxgl-canvas-container":{height:"calc((var(--vh, 1vh) * 100) - 1px) - var(--mobileMapControlsHeight)) !important"}}),t),mediaMonkStyle:{"& .mediaMonkSelected":{"& .mediaMonkSelectedIcon":{fontSize:"0",lineHeight:"0",'[dir="rtl"] &':{marginRight:"5px !important"}}}},directionLtr:{direction:"ltr"},mainNavContainer:Object(r.a)(Object(r.a)({position:"absolute",bottom:Object(w.p)(48)},e.mixins.right(Object(w.p)(48))),{},{display:"flex"}),hideMapArea:{display:"none"},mobileMapInfoTopPanel:Object(i.a)({width:"100%",height:"56px",position:"relative",backgroundColor:e.mixins.White(),boxSizing:"border-box",display:"flex",alignItems:"center"},e.breakpoints.up("lg"),{display:"none"}),closeMapPopupIcon:Object(r.a)(Object(r.a)(Object(r.a)({},e.mixins.marginRight(21)),e.mixins.marginLeft("auto")),{},{width:"14px",height:"14px","& svg":{width:"14px",height:"14px",color:e.palette.common.SlateGray}}),buttonView:{backgroundColor:e.palette.BGGray,padding:5,margin:5,borderRadius:_.a.b25,justifyContent:"center",alignItems:"center",border:"none"},buttonContainer:(n={display:"flex",width:Object(w.p)(89),height:Object(w.p)(40),borderRadius:Object(w.p)(32),position:"relative",columnGap:"2px"},Object(i.a)(n,e.breakpoints.down("md"),{display:"none"}),Object(i.a)(n,"&:after",{left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% + 6px)",border:"3px solid rgba(0, 0, 0, 0.1)",height:"calc(100% + 6px)",content:'""',position:"absolute",borderRadius:Object(w.p)(32)}),Object(i.a)(n,"&:before",{content:'""',backgroundColor:"rgba(0, 0, 0, 0.1)",width:"2px",height:"calc(100% - 1px)",left:"50%",top:"50%",transform:"translate(-50%, -50%)",position:"absolute"}),Object(i.a)(n,"& .buttonIcon",{display:"flex",alignItems:"center",justifyContent:"center",flex:1,backgroundColor:e.mixins.White(),zIndex:1,cursor:"pointer",transition:"all 0.2s ease-in","&.leftRadius":{borderTopLeftRadius:"ltr"===e.direction?Object(w.p)(32):0,borderBottomLeftRadius:"ltr"===e.direction?Object(w.p)(32):0,borderTopRightRadius:"ltr"===e.direction?0:Object(w.p)(32),borderBottomRightRadius:"ltr"===e.direction?0:Object(w.p)(32)},"&.rightRadius":{borderTopRightRadius:"ltr"===e.direction?Object(w.p)(32):0,borderBottomRightRadius:"ltr"===e.direction?Object(w.p)(32):0,borderTopLeftRadius:"ltr"===e.direction?0:Object(w.p)(32),borderBottomLeftRadius:"ltr"===e.direction?0:Object(w.p)(32)},"& svg":{width:Object(w.p)(20),height:Object(w.p)(20)},"&:hover":{backgroundColor:e.mixins.White(800)}}),n),hideDiv:{display:"none"},askAbuDhabiBtn:Object(r.a)(Object(r.a)(Object(r.a)({position:"absolute",top:Object(w.p)(20)},e.mixins.right(Object(w.p)(82))),e.mixins.left("auto")),{},{display:"flex",alignItems:"center",gap:Object(w.p)(8),height:Object(w.p)(40),padding:"".concat(Object(w.p)(12)," ").concat(Object(w.p)(16)),background:e.palette.common.Palm(),border:"1px solid ".concat(e.palette.common.Grey2Upd()),borderRadius:Object(w.p)(20),boxSh
2adow:"0px 4px 16px 0px rgba(41, 38, 47, 0.2)",cursor:"pointer",zIndex:6,transition:"all 0.2s ease-in","@media (hover: hover) and (pointer: fine)":{"&:hover":{backgroundColor:e.palette.common.PalmPressed()}},"@media (max-width: 1023.85px)":{display:"none"}}),askAbuDhabiBtnIcon:{width:Object(w.p)(16),height:Object(w.p)(16),flexShrink:0,display:"block"},askAbuDhabiBtnText:{fontFamily:e.custom.fontFamily.primaryBold,fontSize:Object(w.p)(12),lineHeight:Object(w.p)(16),color:e.palette.common.WhiteUpd(),whiteSpace:"nowrap"},topCrossIc:Object(r.a)(Object(r.a)(Object(r.a)({position:"absolute",top:"var(--mfd-spacing-s)"},e.mixins.right("var(--mfd-spacing-m)")),e.mixins.left("auto")),{},(a={width:Object(w.p)(48),height:Object(w.p)(48),background:"#fff",border:"2px solid ".concat(e.palette.common.Grey3()),borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center",transition:"all 0.2s ease-in",cursor:"pointer",zIndex:6,"@media (max-width: 1023.85px)":{boxShadow:"0 4px 16px 0 rgba(41, 38, 47, 0.20)"},"& svg":{width:Object(w.p)(12.5),height:Object(w.p)(12.5),"& path":{transition:"all 0.2s ease-in",fill:e.palette.common.Palm()}}},Object(i.a)(a,e.breakpoints.down("md"),Object(r.a)(Object(r.a)(Object(r.a)({},e.mixins.left("var(--mfd-spacing-m)")),e.mixins.right("auto")),{},{"@media (hover: hover) and (pointer: fine)":{"&:hover":{backgroundColor:"#fff",borderColor:e.palette.common.Grey3(),"& svg":{"& path":{fill:e.palette.common.Palm()}}}}})),Object(i.a)(a,e.breakpoints.down("sm"),Object(r.a)(Object(r.a)(Object(r.a)({width:Object(w.q)(40),height:Object(w.q)(40),top:Object(w.q)(16)},e.mixins.left(Object(w.q)(20))),e.mixins.right("auto")),{},{"& svg":{width:Object(w.q)(12),height:Object(w.q)(12)}}
2)),Object(i.a)(a,"@media (hover: hover) and (pointer: fine)",{"&:hover":{backgroundColor:e.palette.common.Palm(),borderColor:e.palette.common.Palm(),"& svg":{"& path":{fill:"#fff"}}}}),a)),redirectionIcon:Object(r.a)(Object(r.a)(Object(r.a)((o={},Object(i.a)(o,Object(w.f)("md"),{display:"none"}),Object(i.a)(o,"position","absolute"),Object(i.a)(o,"bottom",Object(w.q)(38)),o),e.mixins.right("var(--mfd-spacing-s)")),e.mixins.left("auto")),{},{width:Object(w.q)(40),height:Object(w.q)(40),background:"#fff",border:"2px solid ".concat(e.palette.common.Grey3()),borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center",transition:"all 0.2s ease-in",cursor:"pointer",zIndex:2,"&.mobListOpen":{bottom:Object(w.q)(162)},"@media (max-width: 1023.85px)":{boxShadow:"0 4px 16px 0 rgba(41, 38, 47, 0.20)"},"& svg":{width:Object(w.q)(16),height:Object(w.q)(16),"& path":{transition:"all 0.2s ease-in",fill:e.palette.common.Palm()}}})}})),Me=n(1885),Le=n(1867);function Be(e){return null!==e&&"object"===typeof e&&"current"in e}var Re=Object(d.b)({isCellReselected:$.e,shouldMapZoom:$.j,clearAllClick:$.a,loading:$.g,selectedCategories:$.i}),De=Object(ge.a)(Object(h.withSitecoreContext)()(Object(p.b)()(Object(m.b)(Re,(function(e){return{handleShouldMapZoom:function(t){return e(Object(c.e)(t))},setIsMapPanning:function(t){return e(Object(c.h)(t))},setClearingAll:function(t){return e(Object(c.g)(t))}}}))(s.a.memo((function(e){var t=e.mapBoxStyle,n=e.token,i=e.geoJsonData,c=e.sItem,l=e.selectedCoordinates,u=e.onShowMapPopup,d=e.LnglatSW,p=e.LnglatNE,h=e.defaultLatlng,m=e.language,g=e.onChangeZoom,b=e.handleShouldMapZoom,v=e.hardResizeMap,y=e.setHardResizeMap,x=e.clearAllClick,_=e.setClearingAll,w=e.loading,O=e.selectedCategories,j=e.type,C=e.selectedCities,E=e.setIsFlying,T=e.isFlying,S=e.setShowRedirection,A=e.appConfig,I=e.mapComponentRefs,M=void 0===I?{}:I,L=e.isChatCarouselMode,B=void 0!==L&&L,R=Object(o.useState)({latitude:h.split(",")[0],longitude:h.split(",")[1]}),D=Object(a.a)(R,2),P=D[0],z=(D[1],Object(k.a)("(max-width:".concat(1023.85,"px)"))),N=Object(Le.b)({appConfig:A,LnglatSW:d,LnglatNE:p}),U=Object(o.useMemo)((function(){return"ar"===m||"he"===m}),[m]),V=Object(o.useState)(null),W=Object(a.a)(V,2),q=W[0],G=W[1],Z=Object(o.useState)(null),H=Object(a.a)(Z,2),X=H[0],K=H[1],Y=Object(o.useState)(null),J=Object(a.a)(Y,2),Q=J[0],$=J[1],ee=Object(o.useState)(null),te=Object(a.a)(ee,2),ie=(te[0],te[1]),re=Object(o.useState)(!1),ae=Object(a.a)(re,2),oe=(ae[0],ae[1]),se=Object(o.useState)(!1),ce=Object(a.a)(se,2),le=ce[0],ue=ce[1];F.a&&j===ne.X&&document.documentElement.style.setProperty("--headerHeight","0px");Object(o.useCallback)((function(){var e=localStorage.getItem("favorites");return e?JSON.parse(e):[]}),[]);var de=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(M&&Be(M)&&"object"===typeof M){var n=null===M||void 0===M?void 0:M.current;n&&!n.hasOwnProperty(e)&&(n[e]=t)}};Object(o.useEffect)((function(){(null==c&&($(null),C&&C.coordinates&&me(C.coordinates,10)),c)&&(F.a&&(window.innerWidth<1024?(K({longitude:c.coordinates[0],latitude:c.coordinates[1],anchor:U?"right":"left"}),$(c),fe(c.coordinates)):c.coordinates&&(me(c.coordinates,25),K({longitude:c.coordinates[0],latitude:c.coordinates[1],anchor:U?"right":"left"}),$(c))))}),[c]),Object(o.useEffect)((function(){l&&(b(!1),me(l,10))}),[l]),Object(o.useEffect)((function(){v&&pe.current&&setTimeout((function(){pe.current.resize(),y(!1)}),500)}),[v]);var pe=Object(o.useRef)(),he=Object(o.useCallback)((function(){de("map",pe.current),pe.current.on("moveend",(function(){_(!1),E(!1)})),document.getElementById("zoomIn").addEventListener("click",(function(){pe.current.zoomIn()})),document.getElementById("zoomOut").addEventListener("click",(function(){pe.current.zoomOut()}));var e=m;pe.current.getStyle().layers.forEach((function(t){t.hasOwnProperty("layout")&&t.layout.hasOwnProperty("text-field")&&("ar"==e?"loaded"!==_e.a.getRTLTextPluginStatus()&&_e.a.setRTLTextPlugin("https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js",null,!0):"zh"==e&&(e="zh-Hant"),"cluster-count"!=t.id&&pe.current.getMap().setLayoutProperty(t.id,"text-field",["coalesce",["get","name_".concat(e)
2],["get","name_en"]]))}))}),[]),me=Object(o.useCallback)((function(e,t){T||(E(!0),pe.current.getZoom()>20&&t>20?pe.current.flyTo({center:e,zoom:t,bearing:0,screenSpeed:1,easing:function(e){return e},essential:!0,complete:function(){E(!1)}}):pe.current.flyTo({center:e,zoom:t,bearing:0,screenSpeed:4,curve:1.35,easing:function(e){return e},essential:!0}))}),[]);de("flyToSelectedLocation",me);var fe=Object(o.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!T){E(!0);var n=pe.current.getZoom();t&&(n=t),pe.current.flyTo(Object(r.a)(Object(r.a)({},t&&{minZoom:9}),{},{center:[parseFloat(e[0]),parseFloat(e[1])],zoom:n}))}}),[]),ge=function(){Object(Le.a)(pe.current,E)},be=Object(o.useCallback)((function(e){e.coordinate_csp=e.geometry.coordinates[0]+","+e.geometry.coordinates[1]}),[]),ye=Object(o.useCallback)((function(e){var t={};return e.forEach((function(e){t[e]?t[e]+=1:t[e]=1})),t}),[]),xe=Object(o.useCallback)((function(e){var t=[];return e.map((function(e){t.push(e.coordinate_csp)})),ye(t)}),[ye]),we=Object(o.useCallback)((function(e,t,n,i){for(var r=[],a=[],o=0;o<t;o++)a[o]=[parseFloat(n)+e*parseFloat(Math.cos(2*Math.PI*o/t)),parseFloat(i)+e*parseFloat(Math.sin(2*Math.PI*o/t))];return r.values=a,r}),[]),Ce=Object(o.useCallback)((function(e){e.features.map(be);var t=xe(e.features),n=[],i=Object.entries(t);return i.forEach((function(e){if(e[1]>1){var t=e[0].split(","),r=1e-5;i.length>15&&(r=4e-5);var a=we(r,e[1],t[0],t[1]);n[e[0]]=a}})),Object.entries(n).forEach((function(t){Object.entries(t[1]).forEach((function(n){var i=0;e.features.forEach((function(e,r){e.coordinate_csp==t[0]&&(e.geometry.coordinates[0]=parseFloat(n[1][i][0]),e.geometry.coordinates[1]=parseFloat(n[1][i][1]),i++)}))}))})),e}),[be,xe,we]);Object(o.useEffect)((function(){var e,t,n,a,o,s=i;if("none"!==(null===(e=s)||void 0===e?void 0:e.type)){var c,l,d=Array.isArray(null===(c=s)||void 0===c?void 0:c.features)?null===(l=s)||void 0===l?void 0:l.features:[];B||(d=Array.isArray(O)&&O.length>0?d.filter((function(e){var t;return O.includes(null===e||void 0===e||null===(t=e.properties)||void 0===t?void 0:t.category)})):[]),s=Object(r.a)(Object(r.a)({},s),{},{features:d})}(s&&Array.isArray(null===(t=s)||void 0===t?void 0:t.features)&&(null===(n=s)||void 0===n||null===(a=n.features)||void 0===a?void 0:a.length)>0&&(s=Ce(s)),s)&&(G(s),Ee(),pe.current&&setTimeout((function(){pe.current.resize()}),200),s&&Array.isArray(null===(o=s)||void 0===o?void 0:o.features)&&s.features.length<1&&X&&(K(null),u(null,!1)))}),[i,B]);var Ee=Object(o.useCallback)((function(){if(F.a){var e;oe(window.innerWidth<1024);var t=document.documentElement.style.getPropertyValue("--headerHeight"),n=document.documentElement.style.getPropertyValue("--notificationBar"),i=(null===(e=document.getElementById("mobileBottomPanel"))||void 0===e?void 0:e.offsetHeight)||0,r=window.innerWidth<1024?50+i:0;document.documentElement.style.setProperty("--mobileMapControlsHeight","".concat(r,"px"));var a=parseFloat(t)+parseFloat(n)+r;ie(a),le||ue(!0)}}),[oe,ie,ue]),Te=Object(o.useMemo)((function(){return d&&d.value&&p&&p.value?[d.value.split(","),p.value.split(",")]:null}),[d,p]);Object(o.useEffect)((function(){oe(window.innerWidth<1024)}),[]),Object(o.useEffect)((function(){if(F.a)return window.addEventListener("resize",Ee),function(e){window.removeEventListener("resize",Ee)}}));var ke=Object(o.useCallback)((function(e){e.viewState.zoom;x||(c||Q?e.originalEvent&&"touchmove"!==e.originalEvent.type&&(_(!1),Se(pe.current),z&&(K(null),$(null),u(null,!1))):(_(!1),Se(pe.current)))}),[x,c,Q,_,Se,$,K,u,z]),Se=Object(o.useMemo)((function(){return Oe()(g,500)}),[g]),Ae=Object(o.useMemo)((function(){return{latitude:P.latitude,longitude:P.longitude,zoom:je.a.zoom}}),[P.latitude,P.longitude]),Ie=Object(o.useCallback)((function(e,t){$(t.properties),u(Object(r.a)(Object(r.a)({},t.properties),{},{coordinates:t.geometry.coordinates}))}),[$,u]),Re=Object(o.useMemo)((function(){return{radius:140,maxZoom:20}}),[]),De=function(e,t,n){var i=n.getMap().getBounds();return t>=i._sw.lat&&t<=i._ne.lat&&e>=i._sw.lng&&e<=i._ne.lng};de("checkIfPositionInViewport",De);var Pe=Object(o.useCallback)((function(){if((null===pe||void 0===pe?void 0:pe.current)&&N){var e=pe.current,t=Object(f.get)(N,"currentLocationMarker.geometry.coordinates[0]",0)||0,n=Object(f.get)(N,"currentLocationMarker.geometry.coordinates[1]",0)||0,i=De(t,n,e),r=Object(f.get)(N,"isUserInsideAbudhabi",!1);S(!i&&r)}}),[pe,N]);return Object(o.useEffect)((function(){var e=document.getElementById("explore-map-upd-redirection-cta");if(e)return e.addEventListener("click",ge),function(){e.removeEventListener("click",ge)}}),[ge]),le?s.a.createElement("div",{style:{pointerEvents:T?"none":"auto"}},s.a.createElement(ve.e,{mapLib:_e.a,initialViewState:Ae,style:{height:"calc(100svh - var(--search-header-height, 0px))"},mapboxAccessToken:n,mapStyle:t,ref:pe,onLoad:he,maxBounds:Te,dragPan:!!B||!w,scrollZoom:!!B||!w,doubleClickZoom:!!B||!w,onZoom:ke,onMove:ke,reuseMaps:!0,minZoom:3,maxZoom:22,pitchWithRotate:!1,touchZoomRotate:!0,onMoveEnd:Pe},s.a.createElement(Me.a,{detailPageType:"",onClickMarker:Ie,geojsonData:null===q||void 0===q?void 0:q.features,selectedItem:Q,sItemGeoJson:"",clusterProps:Re,currentLocationMarker:null===N||void 0===N?void 0:N.currentLocationMarker}))):null})))))),Pe=Object(x.a)((function(e){var t,n,a,o,s,c,l,u;return{floatingBar:Object(r.a)(Object(r.a)({zIndex:5,position:"absolute",width:Object(w.p)(420),height:"100%",top:"0px"},e.mixins.left(0)),{},Object(i.a)({overflowY:"hidden",overflowX:"hidden",marginTop:"calc(var(--notificationBar))",transition:"margin 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",boxShadow:"0px 4px 30px ".concat(e.mixins.Black(180))},e.breakpoints.down("md"),{display:"none"})),floatingBarInnerWrap:{backgroundColor:e.mixins.White(),height:"100%",width:"100%",display:"flex",flexDirection:"column"},searchBoxFilterBtn:{display:"flex",columnGap:"var(--mfd-spacing-s)",padding:"var(--mfd-spacing-s) var(--mfd-spacing-m)",borderBottom:"1px solid ".concat(e.palette.common.borderLight())}
2,isOpenDropdown:{width:"5px",height:"5px",borderRadius:_.a.circle,backgroundColor:e.mixins.AbuDhabiOrange(),marginTop:"5px",marginLeft:"-5px",display:"none"},showDotOpen:{display:"inline-block"},headingWrapper:{display:"flex",justifyContent:"space-between",alignItems:"baseline","& h5":Object(r.a)({},e.palette.common.ellipsis(1)),"& p":Object(r.a)({},e.palette.common.ellipsis(1))},categoriesList:Object(r.a)(Object(r.a)(Object(r.a)({display:"flex",flexWrap:"wrap"},e.mixins.marginRight("16px !important")),e.mixins.marginLeft("0 !important")),{},Object(i.a)({paddingBottom:"16px","-ms-overflow-style":"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.breakpoints.down("md"),{backgroundColor:e.mixins.White(),width:"100%",zIndex:2,"&.open":{transform:"translateY(0)"}})),imageHeight100:{height:"100%","& img":{objectFit:"fill"}},underlineText:{mixBlendMode:"normal",opacity:.71,textDecorationLine:"underline"},dscroll:Object(r.a)({"@media (min-width: 600px) and (max-height: 736px)":{width:"100% !important"},width:"calc(100% + 24px)"},e.mixins.left("0%")),ltGray:{color:e.palette.common.UnselectedColor},redText:{color:e.mixins.AbuDhabiOrange(),cursor:"pointer"},selectedCategoryChip:{"&.MuiChip-root":{color:e.mixins.White()}},activities:{"&.MuiChip-root":{color:e.mixins.White(),backgroundColor:"#879637"}},hotels:{"&.MuiChip-root":{color:e.mixins.White(),backgroundColor:"#7D9AAA"}},events:{"&.MuiChip-root":{color:e.mixins.White(),backgroundColor:"#690FA8"}},restaurants:{"&.MuiChip-root":{color:e.mixins.White(),backgroundColor:"#EFBD47"}},attractions:{"&.MuiChip-root":{color:e.mixins.White(),backgroundColor:"#8683A4"}},whiteIcon:Object(r.a)(Object(r.a)({color:e.mixins.White(),width:"16px",height:"16px"},e.mixins.marginLeft(5)),e.mixins.marginRight(-6)),unselctedCategory:{border:"1px solid ".concat(e.palette.border.mapCategory," !important"),color:e.palette.border.mapCategory},unselctedCategoryIcon:Object(r.a)(Object(r.a)(Object(r.a)({color:e.palette.border.mapCategory,width:"16px",height:"16px"},e.mixins.marginLeft(5)),e.mixins.marginRight(-6)),{},{"& svg":{"& path":{fill:e.palette.border.mapCategory}}}),mobileFloatingWrapper:Object(i.a)({position:"absolute",top:"100%",right:0,zIndex:5},e.breakpoints.up("lg"),{display:"none"}
2),floatingClearBtn:{position:"relative",right:"12px",top:"12px",height:"40px",padding:"8px",backgroundColor:e.mixins.White(),borderRadius:_.a.b8px,cursor:"pointer",textDecorationLine:"underline",textAlign:"center"},categoriesListWrap:{marginBottom:"16px","&:hover":{"& .categoryScrollTrack":{opacity:"1 !important"}}},destinationListWrapper:{"&:hover":{"& .destinationScrollTrack":{opacity:"1 !important"}},"@media (min-width: 600px) and (max-height: 1067px)":{height:"100%"}},mobileDestinationScroll:{height:"calc(100% + 16px) !important"},destinationList:(t={"@media (min-width: 600px) and (max-height: 736px)":{display:"flex"},"-ms-overflow-style":"none",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},Object(i.a)(t,e.breakpoints.down("md"),Object(r.a)({width:"100vw",display:"flex",height:"120px",scrollBehavior:"smooth",visibility:"hidden",marginTop:"12px"},e.mixins.marginLeft(-16))),Object(i.a)(t,"@media (min-width: 600px) and (max-width: 1024px)",{height:"175px"}),Object(i.a)(t,"@media (max-width: 1536px) and (max-height: 746px)",{height:"288px"}),Object(i.a)(t,"@media (max-width: 375px)",{height:"95px"}),t),enableClickMobile:{visibility:"visible !important"},destinationItem:(n={display:"flex",position:"relative",flexDirection:"row",justifyContent:"center",alignItems:"center",cursor:"pointer",padding:"64px 0px 64px 0px",width:"388px",height:"152px",background:"linear-gradient(0deg, ".concat(e.mixins.Black(400),", ").concat(e.mixins.Black(400),")"),marginBottom:"10px","@media (min-width: 1536px) and (max-height: 746px)":{height:"120px"}},Object(i.a)(n,e.breakpoints.down("md"),Object(r.a)(Object(r.a)({width:"calc(33.33vw - 17px)",height:"82px",padding:"35px 0px 36px 0px"},e.mixins.marginRight(8)),{},{"&:first-child ":Object(r.a)({},e.mixins.marginLeft(16)),"&:last-child ":Object(r.a)({},e.mixins.marginRight(16))})),Object(i.a)(n,"@media (max-width: 375px)",{width:"109px",height:"82px"}),Object(i.a)(n,"@media (min-width: 600px) and (max-width: 1024px)",{height:"175px",paddingTop:0}),Object(i.a)(n,"@media (min-width: 1024px) and (max-height: 736px)",{width:"30%",maxHeight:"160px",height:"100%",marginBottom:0,padding:0,marginRight:"10px"}),n),selectedDestBorder:{border:"4px solid #FF8707"},orangeText:{marginLeft:"4px",color:"#FF8707"},bottomPanelSlide:{position:"absolute",bottom:0,width:"100%",height:"64px",borderTop:"1px solid #E4E8EA",padding:"12px 16px",display:"flex",justifyContent:"space-between",alignItems:"center"},textUnderline:{textDecoration:"underline"},textDisabled:{color:"#9A9C9D"},destinationListFilterSlide:Object(i.a)({},e.breakpoints.down("md"),Object(r.a)({width:"100vw",display:"flex",scrollBehavior:"smooth",marginTop:"20px",marginBottom:"14px"},e.mixins.marginLeft(-16))),destinationScrollThumb:{backgroundColor:"#9A9C9D",cursor:"pointer"},destinationTitle:{color:e.mixins.White(),zIndex:1,fontWeight:"700"},destinationImageWrapper:{display:"block",position:"absolute",width:"100%",height:" 100%","@media (min-width: 600px) and (max-height: 736px)":{"& div > div:nth-child(2)":{padding:"8px"}}},mostViewedItemsWrapper:{padding:"0 var(--mfd-spacing-m)","& .desktopListingScrollbar":Object(r.a)(Object(r.a)({width:"calc(100% + ".concat(Object(w.p)(48),") !important")},e.mixins.left("calc(".concat(Object(w.p)(24)," * -1)"))),e.mixins.right("0px")),"& > div > div":{paddingTop:"var(--mfd-spacing-m)"}},selectedItemBar:Object(r.a)({width:"8px",height:"100%",backgroundColor:e.mixins.AbuDhabiOrange(),position:"absolute"},e.mixins.left(0)),positionRelative:{position:"relative","& .mostVisitedCard":Object(r.a)(Object(r.a)({width:"calc(100% - ".concat(Object(w.p)(24),")")},e.mixins.paddingLeft(Object(w.p)(24))),{},(a={},Object(i.a)(a,Object(w.e)("mdUpd"),Object(r.a)({width:"calc(100% - ".concat(Object(w.q)(24),")")},e.mixins.paddingLeft(Object(w.q)(24)))),Object(i.a)(a,"&::before",Object(r.a)(Object(r.a)({width:"calc(100% - ".concat(Object(w.p)(24),")")},e.mixins.marginLeft(Object(w.p)(24))),{},Object(i.a)({},Object(w.e)("mdUpd"),Object(r.a)({width:"calc(100% - ".concat(Object(w.q)(24),")")},e.mixins.marginLeft(Object(w.q)(24)))))),a))},mostViewedList:Object(r.a)(Object(r.a)({paddingTop:"16px"},e.mixins.paddingRight("16px")),{},Object(i.a)({"& li":(o={borderRadius:"4px"},Object(i.a)(o,e.breakpoints.down("md"),Object(r.a)({width:"100%"},e.mixins.marginRight("16px"))),Object(i.a)(o,"& .listItemContainer",Object(i.a)({},e.breakpoints.down("md"),{width:"85vw"})),o)},e.breakpoints.down("md"),{width:"100vw",display:"flex",overflowX:"auto",scrollBehavior:"smooth"})),mapCardHeading:Object(i.a)({},e.breakpoints.down("md"),{marginTop:"12px",fontSize:O.g.s16px}),noResultsWrapper:(c={},Object(i.a)(c,e.breakpoints.down("md"),{width:"100%",paddingRight:"24px"}),Object(i.a)(c,"div &",{"& h1":Object(i.a)({fontSize:O.g.s32Rem,lineHeight:"100%"},e.breakpoints.down("md"),{fontSize:O.g.s20Rem,lineHeight:"100%"}),"& p":{fontSize:O.g.s16Rem,lineHeight:O.g.s24Rem},"& ul":Object(r.a)(Object(r.a)({},e.mixins.paddingLeft(Object(w.p)(16))),{},(s={fontSize:O.g.s16Rem,lineHeight:O.g.s24Rem},Object(i.a)(s,e.breakpoints.down("md"),{display:"none"}),Object(i.a)(s,"& li",{marginBottom:0}),s))}),c),directionRtl:{direction:"rtl"},mobileSearchResultWrapper:{width:"100%",paddingBottom:"12px",marginBottom:"0px",borderBottom:"1px solid #E4E8EA"}
2,mobileMapControls:Object(i.a)({display:"block",transition:"500ms height ease-out"},e.breakpoints.up("lg"),{display:"none"}),topPanel:Object(i.a)({width:"100%",height:"56px",position:"absolute",backgroundColor:e.mixins.White(),boxSizing:"border-box",transition:"500ms height ease-out",zIndex:3},e.breakpoints.up("lg"),{display:"none"}),topPanelFirst:{width:"100%",height:"56px",boxSizing:"border-box",backgroundColor:e.mixins.White(),position:"relative",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",zIndex:10},topHeaderIcon:{width:"40px",height:"40px",display:"flex",alignItems:"center",justifyContent:"center"},extendedHeight:{flexDirection:"column"},bottomPanel:Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({display:"flex",flexDirection:"column",alignItems:"flex-start",paddingTop:"0px",paddingBottom:"16px"},e.mixins.paddingLeft(16)),e.mixins.paddingRight(0)),{},{position:"fixed",width:"100%",height:"146px"},e.mixins.left(0)),{},Object(i.a)({bottom:"0px",zIndex:2,background:e.mixins.White(),borderRadius:_.a.b12px12px0p0px,"@media (max-width: 375px)":{height:"146px"},"@media (min-width: 600px) and (max-width: 1024px)":{height:"242px"}},e.breakpoints.up("lg"),{display:"none"})),hiddenPanel:{display:"none",visibility:"hidden"},itemListPanel:{height:"154px","@media (max-width: 375px)":{height:"154px"}},searchFieldWrapper:(l={},Object(i.a)(l,e.breakpoints.down("md"),{flexGrow:1,margin:"0 4px"}),Object(i.a)(l,"& .MuiAutocomplete-popper",Object(i.a)({marginTop:"-31px"},e.breakpoints.down("md"),Object(r.a)(Object(r.a)({marginTop:"-2px"},e.mixins.marginLeft("-20px")),{},{width:"calc(100vw)!important"}))),Object(i.a)(l,"& .MuiAutocomplete-listbox",Object(i.a)({},e.breakpoints.down("md"),Object(r.a)({height:"calc(100vh - 56px)",maxHeight:"calc(100vh - 56px)"},e.mixins.paddingLR(Object(w.p)(20),Object(w.p)(20))))),Object(i.a)(l,"& .MuiAutocomplete-option",Object(i.a)({},e.breakpoints.down("md"),Object(r.a)({fontSize:O.g.s14Rem,lineHeight:O.g.s24Rem,borderBottom:"1px solid #EEEFEF"},e.mixins.paddingLR(Object(w.p)(0),Object(w.p)(0))))),Object(i.a)(l,"& .MuiAutocomplete-noOptions",Object(i.a)({color:e.mixins.Black()},e.breakpoints.down("md"),Object(r.a)({height:"calc(100vh - 56px)",fontSize:O.g.s14Rem,lineHeight:O.g.s24Rem,borderBottom:"1px solid #EEEFEF"},e.mixins.paddingLR(Object(w.p)(20),Object(w.p)(20))))),l),fullWidthWrapper:{flexBasis:"100%"},inputEndAdorment:Object(r.a)({display:"flex",position:"relative"},e.mixins.marginLeft(16)),closeBtn:Object(i.a)({color:e.palette.common.SlateGray,cursor:"pointer","& svg":{width:"14px",height:"14px"}},e.breakpoints.down("md"),{display:"flex"}),searchIconWrapper:{display:"flex",color:e.palette.common.SlateGray,"& svg":{width:"16px",height:"16px"}},searchAdornment:{color:e.palette.common.SlateGray,"& svg":{width:"16px",height:"16px"}},filtersWrapper:Object(r.a)({flexBasis:"calc(30% - 8px)",display:"flex",flexDirection:"row",alignItems:"flex-start",padding:"8px 12px 8px 16px",height:"40px",background:e.mixins.White(),border:"1px solid ".concat(e.palette.common.DisabledGrey),borderRadius:_.a.b53px,justifyContent:"space-between",color:e.palette.common.UnselectedColor,cursor:"pointer"},e.mixins.marginLeft(8)),filterBtnIcon:{transform:"rotate(90deg)","& svg":{height:"14px",width:"12px"}},inverted:{transform:"rotate(270deg)"},filterSlideWrapper:{width:"100vw"},flexEnd:{justifyContent:"flex-end"},filterSlideContent:{padding:"0 ".concat(Object(w.p)(16)),"@media (max-width: 375px)":{padding:"0 ".concat(Object(w.p)(12))}},textFieldRoot:{"&.MuiTextField-root, & .MuiFormControl-root":Object(i.a)({marginTop:"12px",marginBottom:"28px",width:"100%",'& .MuiAutocomplete-inputRoot[class*="MuiInput-root"] input.MuiAutocomplete-input:first-child':Object(i.a)({paddingBottom:Object(w.p)(20),paddingTop:Object(w.p)(12),fontSize:O.g.s22Rem,lineHeight:O.g.s32Rem,"&::placeholder":{color:e.mixins.Black(),opacity:1}},e.breakpoints.down("md"),{padding:"0 ".concat(Object(w.p)(8)),fontSize:O.g.s14Rem,lineHeight:O.g.s24Rem,height:"100%",borderBottom:0,"&::placeholder":{color:e.palette.common.UnselectedColor,opacity:1}}),"& .MuiInputBase-formControl":{flexWrap:"nowrap","&:before":Object(i.a)({},e.breakpoints.up("lg"),{borderBottom:"1px solid #BFBFBF"})}},e.breakpoints.down("md"),{marginTop:"0px",marginBottom:"0px","& .MuiInputBase-formControl":Object(r.a)(Object(r.a)(Object(r.a)({border:"1px solid ".concat(e.palette.common.DisabledGrey),height:Object(w.p)(40),borderRadius:_.a.b53px,marginTop:0,lineHeight:O.g.s24Rem,fontSize:O.g.s14Rem,paddingTop:Object(w.p)(4)},e.mixins.paddingRight(12)),{},{paddingBottom:Object(w.p)(4)},e.mixins.paddingLeft(16)),{}
2,{"& input.MuiAutocomplete-input":{height:"100%",padding:"2px 4px","&::placeholder":{color:e.palette.common.UnselectedColor,opacity:1}},"&:before":{border:"0 !important"}}),"& .MuiInput-underline":{"&:after":{border:0}}})},"@global":{".MuiBadge-colorSecondary":{color:e.mixins.White(),backgroundColor:e.mixins.AbuDhabiOrange(),fontSize:"11px",marginTop:"-4px",marginRight:"-4px"},".destinationScrollTrack":Object(r.a)(Object(r.a)({},e.mixins.right(8)),{},{width:"4px !important",height:"100%",top:"0px"}),".destinationHorizontalScrollTrack":{width:"100%",height:"4px! important",bottom:"0px"},".destinationHorizontalThumb":{cursor:"pointer",backgroundColor:"#9A9C9D"},".categoryScrollTrack":Object(r.a)(Object(r.a)({},e.mixins.left(0)),{},{width:"100%",height:"4px! important",bottom:"0px"}),".mapboxgl-ctrl-bottom-right":{display:"none"},".mapboxgl-map-wrapper-wrapper":Object(i.a)({},e.breakpoints.down("md"),{"& .MuiChip-clickable:hover":{backgroundColor:"transparent"},"& .MuiChip-clickable:focus":{backgroundColor:"transparent"}}),"@media(hover: none), (pointer: coarse), (-moz-touch-enabled: 1)":{".scroll-horizontal":(u={overflow:"scroll!important"},Object(i.a)(u,"overflow","overlay!important"),Object(i.a)(u,"overflowX","scroll!important"),Object(i.a)(u,"overflowX","overlay!important"),Object(i.a)(u,"overflowY","hidden!important"),Object(i.a)(u,"-ms-overflow-style","none!important"),Object(i.a)(u,"scrollbarWidth","none!important"),Object(i.a)(u,"&> div",{transform:"none!important",position:"relative"}),Object(i.a)(u,"&:: -webkit - scrollbar",{display:"none!important"}),u)}}}})),ze=function(e){var t=[];return e.map((function(e){var n=e.fields.CategoryList.map((function(e){return e.fields.taxonomyKey.value}));t.push.apply(t,Object(g.a)(n))})),t},Fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?e.filter((function(e){return e.id===t})):e},Ne=n(1560),Ue=n(1895),Ve=[{backendKey:"category",key:"categories",title:"Experience Type",titleKey:"mfdExploreMapExperienceType",isScalar:!0},{backendKey:"region_tag",key:"regions",title:"Region",titleKey:"mfdExploreMapRegion",isScalar:!1,splitPipe:!0},{backendKey:"price_tag",key:"priceRanges",title:"Price Range",titleKey:"mfdExploreMapPriceRange",isScalar:!1},{backendKey:"meal_type_tags",key:"mealTypes",title:"Meal Type",titleKey:"mfdExploreMapMealType",isScalar:!1},{backendKey:"cuisine_tags",key:"cuisines",title:"Cuisine",titleKey:"mfdExploreMapCuisine",isScalar:!1},{backendKey:"accommodation_accessibility",key:"accommodationAccessibility",title:"Accommodation Accessibility",titleKey:"mfdExploreMapAccommodationAccessibility",isScalar:!1},{backendKey:"event_type_tags",key:"eventTypes",title:"Event Type",titleKey:"mfdExploreMapEventType",isScalar:!1},{backendKey:"hotel_rating_tags",key:"hotelRatings",title:"Hotel Rating",titleKey:"mfdExploreMapHotelRating",isScalar:!1},{backendKey:"tripadvisor_rating",key:"tripAdvisorRatings",title:"TripAdvisor Rating",titleKey:"mfdExploreMapTripAdvisorRating",isScalar:!0},{backendKey:"accommodation_features_tags",key:"accommodationFeatures",title:"Accommodation Features",titleKey:"mfdExploreMapAccommodationFeatures",isScalar:!1},{backendKey:"activity_type_tag",key:"activityTypes",title:"Activity Type",titleKey:"mfdExploreMapActivityType",isScalar:!1}],We=function(e){var t={};Ve.forEach((function(e){var n=e.key;t[n]=new Set})),e&&Array.isArray(e)&&e.forEach((function(e){var n=e.map_filters||e.mapFilters;n&&"object"===typeof n&&Ve.forEach((function(e){var i=e.backendKey,r=e.key,a=e.isScalar,o=e.splitPipe,s=n[i];if(s)if(a){if(0===parseFloat(s))return;t[r].add(s)}else Array.isArray(s)&&s.forEach((function(e){o&&e.includes("|")?e.split("|").forEach((function(e){return t[r].add(e.trim())})):t[r].add(e)}))}))}));var n={};return Ve.forEach((function(e){var i=e.key;n[i]=Array.from(t[i]).sort()})),n},qe=function(e,t){var n=e.map_filters||e.mapFilters;return!!n&&(!Ve.some((function(e){var n=e.key;return(t[n]||[]).length>0}))||Ve.every((function(e){var i=e.backendKey,r=e.key,a=e.isScalar,o=e.splitPipe,s=t[r]||[];if(0===s.length)return!0;var c=n[i];return a?c&&s.includes(c):!(!c||!Array.isArray(c))&&c.some((function(e){return!!s.includes(e)||!(!o||!e.includes("|"))&&e.split("|").some((function(e){return s.includes(e.trim())}))}))})))},Ge=function(e){return Ve.filter((function(t){var n=t.key;return e[n]&&e[n].length>0})).map((function(t){var n=t.key;return{key:n,title:t.title,titleKey:t.titleKey,options:e[n].map((function(e){return{value:e,label:e}}))}}))},Ze=n(1830),He=Object(x.a)((function(e){var t,n,a;return{root:{width:Object(w.p)(420),"@media (max-width: 1023.85px)":{width:"100%",height:"100svh"},"& .filterDrawerWrapper":{width:Object(w.p)(420),height:"100%",display:"flex",flexDirection:"column","@media (max-width: 1023.85px)":{width:"100%",height:"100svh"}},"& .filterDrawerHeader":{display:"flex",columnGap:"var(--mfd-spacing-s)",padding:"var(--mfd-spacing-s) var(--mfd-spacing-m)",borderBottom:"1px solid ".concat(e.palette.common.borderLight()),marginBottom:"var(--mfd-spacing-l)",justifyContent:"space-between",alignItems:"center"},"& .filterDrawerCloseBtn":(n={width:Object(w.p)(18),height:Object(w.p)(18),cursor:"pointer"},Object(i.a)(n,Object(w.e)("mdUpd"),{width:Object(w.q)(18),height:Object(w.q)(18)}),Object(i.a)(n,"& svg",(t={width:Object(w.p)(18),height:Object(w.p)(18)},Object(i.a)(t,Object(w.e)("mdUpd"),{width:Object(w.q)(18),height:Object(w.q)(18)}),Object(i.a)(t,"& path",{fill:"".concat(e.palette.common.Palm())}),t)),n),"& .filterDrawerBody":{display:"flex",flexDirection:"column",justifyContent:"space-between",flex:"1",position:"relative"},"& .tagWrapper":{paddingInline:"var(--mfd-spacing-m)"},"& .tagInnerWrapper":{marginBottom:"var(--mfd-spacing-l)"},"& .tagList":{display:"flex",marginTop:"var(--mfd-spacing-xs)",rowGap:Object(w.p)(12),flexWrap:"wrap"},"& .filterDrawerTagWrapper":Object(r.a)({},e.mixins.paddingRight(Object(w.p)(12))),"& .filterDrawerTag":{width:"fit-content"},"& .filterDrawerFooter":(a={padding:"var(--mfd-spacing-s) var(--mfd-spacing-m)",backgroundColor:e.palette.common.SurfaceSunken(),display:"flex",justifyContent:"space-between",position:"absolute",bottom:0,left:0,width:"100%",zIndex:1,columnGap:Object(w.p)(16)},Object(i.a)(a,Object(w.e)("mdUpd"),{columnGap:Object(w.q)(16)}),Object(i.a)(a,"& .filterDrawerBtn",Object(i.a)({maxWidth:Object(w.p)(178),width:"100%",display:"inline"},e.breakpoints.down("md"),{maxWidth:"unset"})),a)}}})),Xe=n(542),Ke=n(50),Ye=n(12),Je=Object.fromEntries(Ve.map((function(e){return[e.key,[]]}))),Qe=function(e){var t=e.handleDskSearchClear,n=e.selectedCategories,c=e.onClickCloseFilterView,l=e.onClickDestination,u=e.destinationsList,d=e.categoriesList,p=e.selectTheseCategories,h=e.selectedCity,m=e.isFilterOpen,f=e.defaultSelectedCity,b=e.COMPONENT_NAME,v=e.pageTitleEn,y=e.isChatCarouselMode,x=void 0!==y&&y,_=e.chatSelectedFilters,w=void 0===_?null:_,O=e.chatFilterSections,j=void 0===O?null:O,E=e.onCh
2atApplyFilters,T=void 0===E?null:E,S=e.onChatResetFilters,A=void 0===S?null:S,M=He(),R=Object(o.useState)(Object(r.a)({},f)),D=Object(a.a)(R,2),P=D[0],F=D[1],N=Object(o.useState)([]),U=Object(a.a)(N,2),V=U[0],W=U[1],q=Object(o.useState)(!0),G=Object(a.a)(q,2),Z=(G[0],G[1]),H=Object(k.a)("(max-width:".concat(1023.85,"px)")),X=Object(o.useState)(Je),K=Object(a.a)(X,2),Y=K[0],J=K[1],Q=function(e){Object(L.b)(e)};Object(o.useEffect)((function(){var e=P.searchKey==f.searchKey,t=function(){if(!d||!Array.isArray(d))return!1;var e=ze(d);return!(!e||0===e.length)&&e.every((function(e){return V.includes(e)||V.includes(e.charAt(0).toUpperCase()+e.slice(1))}))}();Z(e&&t)}),[P,V,h,f,d]),Object(o.useEffect)((function(){h.searchKey&&F(h)}),[h,m]),Object(o.useEffect)((function(){n&&W(n)}),[n,m]),Object(o.useEffect)((function(){x&&w&&J(w)}),[x,w,m]);var $=function(){if(x&&A)A(),c();else{c();var e=ze(d);l(f.name,f.searchKey,f.coordinates),p(e),t()}},ee=function(){x&&T?T(Y):(P&&Object.keys(P).length>0&&l(P.name,P.searchKey,P.coordinates),p(V),c())},te=function(){c()};return s.a.createElement(z.a,{open:m,onOpen:function(){},onClose:function(){return te()},className:M.root,anchor:"".concat(H?"bottom":"left"),transitionDuration:H?400:200,ModalProps:{BackdropProps:{style:{backgroundColor:"transparent",width:0}}}},s.a.createElement("div",{className:"filterDrawerWrapper"},s.a.createElement("div",{className:"filterDrawerHeader"},s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:H?"h4":"h5",variant:H?"h4Upd":"h5Upd"},Object(Ye.a)("mfdExploreMapFilters")),s.a.createElement("div",{className:"filterDrawerCloseBtn",onClick:te},s.a.createElement(I.a,{name:"closeiconnew"}))),s.a.createElement("div",{className:"filterDrawerBody"},s.a.createElement("div",{className:"tagWrapper"},x&&j?s.a.createElement(s.a.Fragment,null,j.map((function(e,t){return s.a.createElement("div",{className:"tagInnerWrapper",key:e.key},s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:H?"h5":"h6",variant:H?"h5Upd":"h6Upd"},function(){var t=Object(Ye.a)(e.titleKey);return t&&t!==e.titleKey?t:e.title}()),s.a.createElement("div",{className:"tagList"},e.options.map((function(t,n){var a,o=(null===(a=Y[e.key])||void 0===a?void 0:a.includes(t.value))||!1;return s.a.createElement("div",{className:"filterDrawerTagWrapper",key:n},s.a.createElement(Xe.a,{value:t.value,className:"filterDrawerTag",withSvg:!1,selected:o,buttonTabLabel:t.label,onClick:function(){var n,a;n=e.key,a=t.value,J((function(e){var t=e[n]||[],o=t.includes(a);return Object(r.a)(Object(r.a)({},e),{},Object(i.a)({},n,o?t.filter((function(e){return e!==a})):[].concat(Object(g.a)(t),[a])))})),Q(Object(r.a)(Object(r.a)({},B.a.pageBodyInteraction.filter_button_click),{},{call_to_action:t.label,page_name_eng:v,page_subsection:e.title,UX_component_name:b}))}}))}))))}))):s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"tagInnerWrapper"},s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:H?"h5":"h6",variant:H?"h5Upd":"h6Upd"},Object(Ye.a)("mfdExploreMapRegion")),s.a.createElement("div",{className:"tagList"},Array.isArray(u)&&u.map((function(e,t){var n=e.fields["Display Name"],i=e.fields.List.fields.searchKey.value,a=e.fields.latlng.value,o=a.includes(",")?a.split(",").reverse():[];return s.a.createElement("div",{className:"filterDrawerTagWrapper",key:t},s.a.createElement(Xe.a,{value:i,className:"filterDrawerTag",withSvg:!1,selected:(null===P||void 0===P?void 0:P.searchKey)===i,buttonTabLabel:n.value,onClick:function(){!function(e,t,n){F({name:e,searchKey:t,coordinates:n})}(null===n||void 0===n?void 0:n.value,i,o),Q(Object(r.a)(Object(r.a)({},B.a.pageBodyInteraction.filter_button_click),{},{call_to_action:n.value,page_name_eng:v,page_subsection:"Region",UX_component_name:b}))}}))})))),s.a.createElement("div",{className:"tagInnerWrapper"},s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:H?"h5":"h6",variant:H?"h5Upd":"h6Upd"},Object(Ye.a)("mfdExploreMapExperienceType")),s.a.createElement("div",{className:"tagList"},Array.isArray(d)&&d.map((function(e,t){var n=e.fields.CategoryList.map((function(e){return e.fields.taxonomyKey.value})),i=V.filter((function(e){return n.includes(e.charAt(0).toUpperCase()+e.slice(1))})).length>0,a=e.fields.DisplayName.value;return s.a.createElement("div",{className:"filterDrawerTagWrapper",key:t},s.a.createElement(Xe.a,{value:n,className:"filterDrawerTag",withSvg:!1,selected:i,buttonTabLabel:a,onClick:function(){!function(e){var t,n=V;n.filter((function(t){return e.includes(t)})).length>0?n=n.filter((function(t){return!e.includes(t)})):(t=n).push.apply(t,Object(g.a)(e));W(Object(g.a)(n))}(n),Q(Object(r.a)(Object(r.a)({},B.a.pageBodyInteraction.filter_button_click),{},{call_to_action:a,page_name_eng:v,page_subsection:"Experience type",UX_component_name:b}))}}))})))))),s.a.createElement("div",{className:"filterDrawerFooter"},x?s.a.createElement(s.a.Fragment,null,s.a.createElement(Ke.a,{variant:"buttonOutline",btnText:Object(Ye.a)("mfdExploreMapReset"),onClick:$,className:"filterDrawerBtn"}),s.a.createElement(Ke.a,{btnText:"FILTER",onClick:ee,className:"filterDrawerBtn"})):s.a.createElement(s.a.Fragment,null,s.a.createElement(Ke.a,{btnText:Object(Ye.a)("mfdExploreMapShowResults"),onClick:ee,className:"filterDrawerBtn"}),s.a.createElement(Ke.a,{variant:"buttonOutline",btnText:Object(Ye.a)("mfdExploreMapReset"),onClick:$,className:"filterDrawerBtn"}))))))},$e=Object(x.a)((function(e){return{root:{width:Object(w.p)(420),zIndex:"35 !important","& .selectedPointDrawerWrapper":{width:Object(w.p)(420),height:"100%",display:"flex",flexDirection:"column",padding:"var(--mfd-spacing-s) var(--mfd-spacing-m)"},"& .selectedPointDrawerHeader":{display:"flex",marginBottom:"var(--mfd-spacing-s)",justifyContent:"space-between",alignItems:"center"},"& .backBtn":{display:"flex",columnGap:Object(w.p)(8),cursor:"pointer",alignItems:"center",transition:"all 0.2s ease-in","& svg":{width:Object(w.p)(20),height:Object(w.p)(20),transition:"all 0.2s ease-in",transform:"rtl"===e.direction?"scaleX(-1)":"scaleX(1)"},"&:hover":{color:e.palette.common.Palm(),"& svg":{"& path":{fill:"".concat(e.palette.common.Palm())}}}},"& .backBtnTitle":{textTransform:"uppercase"},"& .favItineraries":{display:"flex",columnGap:"var(--mfd-spacing-xxs)"},"& .imageWrapper":{position:"relative",borderRadius:Object(w.p)(16),paddingTop:"67.3%",overflow:"hidden",marginBottom:"var(--mfd-spacing-m)"},"& .imgWrapper":{position:"absolute",width:"100%",height:"100%",top:"0",padding:"0"},"& .imageTag":Object(r.a)({display:"flex",position:"absolute",columnGap:Object(w.p)(4),top:Object(w.p)(20)},e.mixins.left(20)),"& .title":{marginBottom:"var(--mfd-spacing-s)"},"& .locationText":{display:"flex",alignItems:"flex-start",columnGap:"var(--mfd-spacing-xxs)",color:e.palette.common.Grey1Upd(),marginBottom:"var(--mfd-spacing-s)","& svg":{width:Object(w.p)(16),height:Object(w.p)(16),position:"relative",top:"2px"}},"& .description":{color:e.palette.common.Grey1Upd(),marginBottom:"var(--mfd-spacing-m)",fontSize:Object(w.p)(18)},"& .goToDetailPageBtn":{width:Object(w.p)(219)}}}})),et=n(120),tt=n(1572),nt=n(529),it=n(1545),rt=n(16),at=n.n(rt),ot=s.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.7556 1.91058C15.081 2.23602 15.081 2.76366 14.7556 3.08909L7.84485 9.99984L14.7556 16.9106C15.081 17.236 15.081 17.7637 14.7556 18.0891C14.4302 18.4145 13.9025 18.4145 13.5771 18.0891L6.07709 10.5891C5.75165 10.2637 5.75165 9.73602 6.07709 9.41058L13.5771 1.91058C13.9025 1.58514 14.4302 1.58514 14.7556 1.91058Z",fill:"black"})),st=s.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99892 0.333254L8.00043 0.333252C9.63516 0.335108 11.2024 0.985325 12.3583 2.14126C13.5143 3.29719 14.1645 4.86443 14.1663 6.49916V6.49992C14.1663 8.6703 13.1632 10.8993 11.3783 12.9523C10.5757 13.8807 9.67237 14.717 8.68491 15.4457C8.6805 15.449 8.67604 15.4522 8.67155 15.4553C8.47539 15.5927 8.24168 15.6664 8.00217 15.6664C7.76267 15.6664 7.52896 15.5927 7.3328 15.4553L7.32002 15.4461C6.33066 14.7177 5.42548 13.8813 4.6212 12.9525C2.83331 10.899 1.83301 8.66992 1.83301 6.49992L1.83301 6.49916C1.83486 4.86443 2.48508 3.29719 3.64101 2.14126C4.79694 0.985325 6.36419 0.335108 7.99892 
20.333254ZM7.99967 1.66659C6.71831 1.66824 5.48989 2.17799 4.58382 3.08406C3.67766 3.99023 3.1679 5.2188 3.16634 6.50029C3.16646 8.25491 3.97965 10.1854 5.62745 12.0778L5.62867 12.0792C6.33877 12.8993 7.13444 13.641 8.00205 14.2918C8.86785 13.6409 9.66179 12.8993 10.3703 12.0796L10.3716 12.0781C12.0175 10.1851 12.8329 8.25447 12.833 6.50014C12.8314 5.2187 12.3217 3.99019 11.4155 3.08406C10.5095 2.17799 9.28104 1.66824 7.99967 1.66659ZM7.99967 5.33325C7.2633 5.33325 6.66634 5.93021 6.66634 6.66659C6.66634 7.40297 7.2633 7.99992 7.99967 7.99992C8.73605 7.99992 9.33301 7.40297 9.33301 6.66659C9.33301 5.93021 8.73605 5.33325 7.99967 5.33325ZM5.33301 6.66659C5.33301 5.19383 6.52692 3.99992 7.99967 3.99992C9.47243 3.99992 10.6663 5.19383 10.6663 6.66659C10.6663 8.13935 9.47243 9.33325 7.99967 9.33325C6.52692 9.33325 5.33301 8.13935 5.33301 6.66659Z",fill:"#00605F"})),ct=36,lt=48,ut=240,dt=s.a.memo((function(e){var t=e.isSelectedPointDrawerOpen,n=e.onClickCloseSelectedPointDrawer,i=e.selectedItem,c=(e.pageTitleEn,e.COMPONENT_NAME),l=$e(),u=Object(o.useState)(null),d=Object(a.a)(u,2),p=d[0],h=d[1];Object(o.useEffect)((function(){i&&h(i)}),[i]);var m=Object(o.useCallback)((function(){n()}),[n]),f=Object(o.useMemo)((function(){return!!(null===p||void 0===p?void 0:p.originalChatCard)}),[null===p||void 0===p?void 0:p.originalChatCard]),g=Object(o.useMemo)((function(){var e=null===p||void 0===p?void 0:p.itemUrl;if(!e)return{href:"",target:"_blank"};if(!f)return{href:e,target:"_blank"};var t=e;try{var n=F.a?window.location.origin:void 0,i=new URL(e,n);t="".concat(i.pathname).concat(i.search).concat(i.hash)}catch(r){t=e}return{href:t,target:"_self"}}),[null===p||void 0===p?void 0:p.itemUrl,f]),b=Object(o.useCallback)((function(){g.href&&("_self"===g.target?F.a&&window.location.assign(g.href):window.open(g.href,"_blank","noopener,noreferrer"))}),[g]),v=Object(o.useCallback)((function(e){if(!Array.isArray(e))return[];if(-1!==e.findIndex((function(e){return"Featured"===e}))){for(var t=["Featured"],n=0;n<e.length;n++)if("Featured"!==e[n]){t.push(e[n]);break}return t}return e.slice(0,2)}),[]),y=Object(o.useMemo)((function(){return t&&p}),[t,p]),x=Object(o.useMemo)((function(){return v(null===p||void 0===p?void 0:p.suitableForTags)}),[null===p||void 0===p?void 0:p.suitableForTags,v]),_=Object(o.useMemo)((function(){var e,t=null===p||void 0===p?void 0:p.thumbnailImage;return{image:{value:e=t?f&&"string"===typeof t?{src:t}:t:""},mobileImage:{value:e},disableLazyLoad:!0,fallbackBackgroundNeeded:!1,aspectRatio:N.a["3x2-compact"]}}),[null===p||void 0===p?void 0:p.thumbnailImage,f]),w=at()(i,"id","")||"",O=at()(p,"externalUrl",null);return s.a.createElement(z.a,{open:y,onOpen:function(){},onClose:m,id:"SwipeableDrawerWrapper",className:"".concat(l.root," SwipeableDrawerWrapper"),anchor:"left",ModalProps:{BackdropProps:{style:{backgroundColor:"transparent",width:0}}}},s.a.createElement("div",{className:"selectedPointDrawerWrapper"},s.a.createElement("div",{className:"selectedPointDrawerHeader"},s.a.createElement("div",{className:"backBtn",onClick:m},ot,s.a.createElement(C.a,{className:"backBtnTitle",component:"span",variant:"cta1Upd"},Object(Ye.a)("mfdExploreMapBack"))),s.a.createElement("div",{className:"favItineraries"},s.a.createElement(Ne.a,{iconType:"itineraries",classNameIconWrapper:"hoverBorder",classNameIcon:"largeIcon",mapRoundButtonClick:function(){Object(Se.bb)(!0,w)}}),s.a.createElement(it.a,{isMfdToast:!0,itemUniqueKey:null===p||void 0===p?void 0:p.id,isMapExploreUpd:!0}))),s.a.createElement("div",{className:"selectedPointDrawerBody",onClick:b,style:{cursor:(null===p||void 0===p?void 0:p.itemUrl)?"pointer":"default"}},s.a.createElement("div",{className:"imageWrapper"},s.a.createElement(et.a,{media:_,isParalax:!1,className:"imgWrapper",alt:Object(Se.W)((null===p||void 0===p?void 0:p.name)||"")}),s.a.createElement("div",{className:"imageTag"},x.map((function(e,t){return s.a.createElement(tt.a,{key:"".concat(e,"-").concat(t),text:e,variant:"featured"===e.toLowerCase()?"featured":"generalTransparent"})})))),(null===p||void 0===p?void 0:p.name)&&s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:"h5",variant:"h5Upd",className:"title"},Object(nt.a)(p.name,ct)),(null===p||void 0===p?void 0:p.location)&&s.a.createElement("div",{className:"locationText"},st,s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:"span",variant:"body3Upd"},Object(nt.a)(p.location,lt))),(null===p||void 0===p?void 0:p.description)&&s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:"p",variant:"body3Upd",className:"description"},Object(nt.a)(p.description,ut)),(O||(null===p||void 0===p?void 0:p.itemUrl))&&s.a.createElement(Ke.a,{btnText:Object(Ye.a)("mfdExploreMapDetailCtaText"),href:O||p.itemUrl,onClick:function(e){e.stopPropagation(),Object(L.b)(Object(r.a)(Object(r.a)({},B.a.pageBodyInteraction._2d_map_view_details_cta_click),{},{call_to_action:Object(Ye.a)("mfdExploreMapDetailCtaText"),UX_component_name:c}))},className:"goToDetailPageBtn",rotateIconOnRTL:!0,target:g.target,endIcon:s.a.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.a.createElement("path",{fillRule:"evenodd",clipule:"evenodd",d:"M3.64645 1.14645C3.84171 0.951184 4.15829 0.951184 4.35355 1.14645L8.85355 5.64645C9.04882 5.84171 9.04882 6.15829 8.85355 6.35355L4.35355 10.8536C4.15829 11.0488 3.84171 11.0488 3.64645 10.8536C3.45118 10.6583 3.45118 10.3417 3.64645 10.1464L7.79289 6L3.64645 1.85355C3.45118 1.65829 3.45118 1.34171 3.64645 1.14645Z",fill:"white"}))}))))}
2));dt.displayName="SelectedPointDrawerComponent";var pt=dt,ht=Object(x.a)((function(e){var t,n,a,o,s;return{root:(s={position:"relative",width:"100%",marginBottom:Object(w.p)(48),cursor:"pointer",display:"flex"},Object(i.a)(s,Object(w.e)("lg"),{marginBottom:"var(--mfd-spacing-l)"}),Object(i.a)(s,"&.skeletonWrapper",Object(i.a)({marginBottom:"var(--mfd-spacing-m)"},Object(w.e)("lg"),{marginBottom:"var(--mfd-spacing-m)"})),Object(i.a)(s,"&.hasInterestType",{"& .tags":{display:"flex",flexDirection:"column",justifyContent:"center"}}),Object(i.a)(s,"&:before",(t={content:'""',position:"absolute",bottom:"calc(-1 * var(--mfd-spacing-m))"},Object(i.a)(t,Object(w.e)("lg"),{bottom:"calc(-1 * var(--mfd-spacing-s))"}),Object(i.a)(t,"left",0),Object(i.a)(t,"width","100%"),Object(i.a)(t,"height","1px"),Object(i.a)(t,"background","#E9E9E9"),t)),Object(i.a)(s,"&:nth-child(even)",Object(r.a)({},e.mixins.marginLeft("auto"))),Object(i.a)(s,Object(w.e)("md"),{width:Object(w.p)(450)}),Object(i.a)(s,Object(w.e)("sm"),{width:"100%"}),Object(i.a)(s,"& .image",(n={flexShrink:0,width:Object(w.p)(108),height:Object(w.p)(108),borderRadius:"var(--mfd-spacing-s)",overflow:"hidden"},Object(i.a)(n,Object(w.e)("md"),{width:Object(w.p)(76),height:Object(w.p)(76)}),Object(i.a)(n,Object(w.e)("md"),{width:Object(w.q)(76),height:Object(w.q)(76)}),Object(i.a)(n,"& .imageSkeleton",{display:"block"}),n)),Object(i.a)(s,"& .content",Object(r.a)(Object(r.a)({},e.mixins.marginLeft("var(--mfd-spacing-s)")),{},(o={display:"flex",justifyContent:"space-between",flex:1,columnGap:"var(--mfd-spacing-xs)"},Object(i.a)(o,Object(w.e)("sm"),Object(r.a)({},e.mixins.marginLeft("var(--mfd-spacing-xs)"))),Object(i.a)(o,"& .tags",{"& .tagswrapper":{marginBottom:"var(--mfd-spacing-xxs)",gap:"var(--mfd-spacing-xxxs)","& .MuiChip-root":Object(r.a)(Object(r.a)({background:e.palette.common.SurfaceSunken(),height:"unset",marginTop:0},e.mixins.marginRight("var(--mfd-spacing-xxxs)")),{},{border:"1px solid ".concat(e.palette.common.SurfaceSunken()),borderRadius:"var(--mfd-spacing-xxxs)","&.lastChildOnSecondRow":{marginTop:"var(--mfd-spacing-xxxs)"},"& .MuiChip-label":{display:"flex",alignItems:"center",padding:"6px 10px",position:"relative","& span":Object(i.a)({fontSize:Object(w.p)(12),lineHeight:Object(w.p)(14.4),fontFamily:e.custom.fontFamily.primaryBold,color:e.palette.common.Black()},Object(w.e)("sm"),{fontSize:Object(w.q)(12),lineHeight:Object(w.q)(14.4)}),"&:after":{content:'""',position:"absolute",top:"2px",left:"2px",right:"2px",bottom:"2px",border:"1px solid ".concat(e.palette.common.Grey4()),borderRadius:"3px"}}}),"& .hidden-tags-for-calc":{opacity:0,height:0,overflow:"hidden"}},"& .locationWrapper":{display:"flex",alignItems:"flex-start",gap:"var(--mfd-spacing-xxs)","& .locationSvgWrapper":{display:"flex",alignItems:"center",justifyContent:"center",width:Object(w.p)(16),height:Object(w.p)(16),"& svg":{width:Object(w.p)(16),height:Object(w.p)(16)}}},"& .cardTitle":(a={fontSize:Object(w.p)(18),lineHeight:Object(w.p)(25.2),marginBottom:"var(--mfd-spacing-xxs)"},Object(i.a)(a,Object(w.e)("md"),{fontSize:Object(w.p)(14),lineHeight:Object(w.p)(16.8)}),Object(i.a)(a,Object(w.e)("sm"),{fontSize:Object(w.q)(14),lineHeight:Object(w.q)(16.8)}),a)}),Object(i.a)(o,"& .tagsSkeletonWrap",{width:"100%",rowGap:"var(--mfd-spacing-xxs)",display:"flex",flexDirection:"column","& .tagsSkeletonWrapper":{display:"flex",columnGap:"var(--mfd-spacing-xxxs)"},"& .tagsSkeleton":{width:Object(w.p)(64),height:Object(w.p)(26),borderRadius:Object(w.p)(4),overflow:"hidden"},"& .cardTitleSkeleton":{width:"100%",height:Object(w.p)(20),borderRadius:Object(w.p)(16),overflow:"hidden"}}),o))),Object(i.a)(s,"& .fav-icon",{"& > div":{width:Object(w.p)(24),height:Object(w.p)(24)},"& .heartIcon":{"& svg":{width:"var(--mfd-spacing-m)",height:"var(--mfd-spacing-m)","& path":{stroke:"".concat(e.palette.common.SunsetEnabled()),fill:"transparent"}},"&.selected":{"& path":{stroke:"".concat(e.palette.common.SunsetEnabled()),fill:e.palette.common.SunsetEnabled()}},margin:0}}),s)}})),mt=n(5),ft=n(1565),gt=n(1869),bt=(n(1868),function(e){var t=e.className,n=ht();return s.a.createElement(mt.a,{className:"".concat(n.root," ").concat(t," skeletonWrapper")},s.a.createElement(mt.a,{className:"image"},s.a.createElement(gt.a,{className:"imageSkeleton",width:"100%",height:"100%"})),s.a.createElement(mt.a,{className:"content"},s.a.createElement(mt.a,{className:"tagsSkeletonWrap"},s.a.createElement(mt.a,{className:"tagsSkeletonWrapper"},s.a.createElement(gt.a,{className:"tagsSkeleton"}),s.a.createElement(gt.a,{className:"tagsSkeleton"})),s.a.createElement(gt.a,{className:"cardTitleSkeleton"}),s.a.createElement(gt.a,{className:"cardTitleSkeleton",width:"60%"}))))}),vt=n(98),yt=Object(x.a)((function(e){var t,n,a,o;return{root:{height:"100% !important",overflowY:"hidden !important",transition:"opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, pointer-events 0.3s ease-in-out","&.cardListingDrawerMblWrapperOpen":{opacity:0,visibility:"hidden",pointerEvents:"none"},"& .MuiDrawer-paperAnchorBottom ":Object(i.a)({overflow:"visible",height:"calc(100svh - var(--search-header-height))"},Object(w.e)("mdUpd"),{height:"calc(100svh - var(--search-header-height))"}),"& .searchDrawerHeader":(t={position:"absolute",pointerEvents:"all",visibility:"visible",right:0,left:0,backgroundColor:"#fff",top:"calc(-1 * var(--search-header-height))"},Object(i.a)(t,Object(w.e)("mdUpd"),{top:"calc(-1 * var(--search-header-height))"}),Object(i.a)(t,e.breakpoints.down("md"),{borderTopLeftRadius:"var(--mfd-rounding-l)",borderTopRightRadius:"var(--mfd-rounding-l)",boxShadow:vt.a.raised,"&.isDrawerOpen":{borderTopLeftRadius:0,borderTopRightRadius:0,boxShadow:"none"},"&.isCardListDrawerMblOpen":{boxShadow:"none"}}),Object(i.a)(t,"&.isDrawerOpen",{"& .searchBoxFilterBtn":{columnGap:"var(--mfd-spacing-s)",flexDirection:"row-reverse","& .searchBtnWrapper":Object(i.a)({width:Object(w.p)(40),height:Object(w.p)(40)},Object(w.e)("mdUpd"),{width:Object(w.q)(24),height:Object(w.q)(24)})}}),t),"& .searchBtnWrapper":Object(i.a)({position:"relative",width:Object(w.p)(48),height:Object(w.p)(48),display:"flex",alignItems:"center",justifyContent:"flex-end",transition:"all 0.2s ease-in"},Object(w.e)("mdUpd"),{width:Object(w.q)(40),height:Object(w.q)(40)}),"& .searchBtn":{position:"absolute",opacity:0,visibility:"hidden",pointerEvents:"none"},"& .showBtn":{opacity:1,visibility:"visible",pointerEvents:"all"},"& .searchDrawerCloseBtn":{width:Object(w.p)(24),height:Object(w.p)(24),cursor:"pointer","& svg":{width:Object(w.p)(24),height:Object(w.p)(24),"& path":{fill:"".concat(e.palette.common.Palm())}}},"& .searchBoxFilterBtn":(n={display:"flex",columnGap:Object(w.p)(8),padding:"var(--mfd-spacing-s) var(--mfd-spacing-m)",alignItems:"center",justifyContent:"space-between"},Object(i.a)(n,Object(w.e)("mdUpd"),{columnGap:Object(w.q)(8)}),Object(i.a)(n,"&.searchBoxFilterBtnLoading",{pointerEvents:"none"}),n),"& .searchDrawerWrapper":Object(i.a)({width:"100%",height:"calc(100svh - ".concat(72,"px)"),display:"flex",flexDirection:"column",paddingInline:"var(--mfd-spacing-m)",paddingTop:"var(--mfd-spacing-xl)"},Object(w.e)("mdUpd"),{paddingInline:"var(--mfd-spacing-m)","&.isNoResultsCase":{paddingTop:"var(--mfd-spacing-s)","& .noFoundTitle":{marginBottom:"var(--mfd-spacing-xxs)"},"& .noFoundDescription":{marginBottom:"var(--mfd-spacing-xxs)",fontSize:Object(w.q)(14)}}}),"& .searchDrawerTitle":{marginBottom:Object(w.q)(16)},"& .searchDrawerScrollerWrapper":(a={paddingTop:Object(w.p)(16)},Object(i.a)(a,Object(w.e)("mdUpd"),{paddingTop:Object(w.q)(16)}),Object(i.a)(a,"& > div",Object(i.a)({paddingBottom:Object(w.p)(110)},Object(w.e)("mdUpd"),{paddingBottom:Object(w.q)(110)})),a),"& .notFoundSearchDrawer":{padding:0},"& .mostViewedItemsWrapper":{},"& .positionRelative":{position:"relative","& .mostVisitedCard":Object(r.a)(Object(r.a)({width:"calc(100% - ".concat(Object(w.p)(24),")")},e.mixins.paddingLeft(Object(w.p)(24))),{},(o={},Object(i.a)(o,Object(w.e)("mdUpd"),Object(r.a)({width:"calc(100% - ".concat(Object(w.q)(24),")")},e.mixins.paddingLeft(Object(w.q)(24)))),Object(i.a)(o,"&::before",Object(r.a)(Object(r.a)({width:"calc(100% - ".concat(Object(w.p)(24),")")},e.mixins.marginLeft(Object(w.p)(24))),{},Object(i.a)({},Object(w.e)("mdUpd"),Object(r.a)({width:"calc(100% - ".concat(Object(w.q)(24),")")},e.mixins.marginLeft(Object(w.q)(24)))))),o))},"& .searchDrawerCardSkeleton":{width:"100%"},"& .searchDrawerTitleSkeleton":Object(i.a)({width:Object(w.p)(327),height:Object(w.p)(24),borderRadius:Object(w.p)(12),marginBottom:Object(w.p)(16)},Object(w.e)("mdUpd"),{width:Object(w.q)(327),height:Object(w.q)(24),borderRadius:Object(w.q)(12),marginBottom:Object(w.q)(16)}),"& .exploreMapSearchMblWrapper":{flex:1,"& .inputField":Object(r.a)(Object(r.a)({},e.typography.body3Upd),{},Object(i.a)({},Object(w.e)("mdUpd"),Object(r.a)({},e.typography.body2Upd)))}}}})),xt=s.a.memo((function(e){var t=e.index,n=e.className,i=void 0===n?"":n,r=e.onclickCard,a=e.thumbnailImage,c=e.itemUniqueKey,l=e.name,u=e.interestType,d=e.customTagWidth,p=void 0===d?80:d,h=e.COMPONENT_NAME,m=e.pageTitleEn,f=e.location,g=void 0===f?"":f,b=e.isChatMode,v=void 0!==b&&b,y=ht(),x=Object(o.useMemo)((function(){return Array.isArray(u)&&u.length>0}),[u]),_=Object(o.useMemo)((function(){return a?v&&"string"===typeof a?{value:{src:a}}:{value:a}:{}}),[a,v]),w=s.a.useRef(null);return s.a.useLayoutEffect((function(){var e;
2if(x){var t=null===(e=w.current)||void 0===e?void 0:e.querySelector(".tagswrapper");t&&requestAnimationFrame((function(){var e=t.lastElementChild,n=t.firstElementChild;e&&n&&(e.offsetTop>n.offsetTop&&e.classList.add("lastChildOnSecondRow"))}))}}),[x]),s.a.createElement(mt.a,{ref:w,className:"".concat(y.root," ").concat(i," ").concat(x?"":"hasInterestType"),onClick:function(){r&&r(c)}},s.a.createElement(mt.a,{className:"image"},s.a.createElement(et.a,{media:{image:_,mobileImage:_,disableLazyLoad:!0,fallbackBackgroundNeeded:!1,aspectRatio:N.a["1x1"]},alt:Object(Se.W)(l),isParalax:!1})),s.a.createElement(mt.a,{className:"content"},s.a.createElement(mt.a,{className:"tags"},x&&s.a.createElement(ft.a,{ctaLink:u.slice(0,2).map((function(e){return e})),itemUniqueKey:c||t,customWidth:p}),s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:"h6",variant:"h6Upd",className:"cardTitle"},Object(nt.a)(l||"Untitled",36)),g&&s.a.createElement(mt.a,{className:"locationWrapper"},s.a.createElement("div",{className:"locationSvgWrapper"},s.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"17",viewBox:"0 0 16 17",fill:"none"},s.a.createElement("g",{"clip-path":"url(#clip0_28181_26750)"},s.a.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.99941 0.833498L8.00092 0.833496C9.63565 0.835352 11.2029 1.48557 12.3588 2.6415C13.5148 3.79743 14.165 5.36468 14.1668 6.99941V7.00016C14.1668 9.17055 13.1637 11.3996 11.3788 13.4526C10.5762 14.381 9.67286 15.2172 8.6854 15.946C8.68098 15.9492 8.67653 15.9524 8.67204 15.9556C8.47587 16.093 8.24217 16.1667 8.00266 16.1667C7.76315 16.1667 7.52945 16.093 7.33329 15.9556L7.32051 15.9464C6.33115 15.2179 5.42597 14.3816 4.62169 13.4528C2.8338 11.3993 1.8335 9.17017 1.8335 7.00016L1.8335 6.99941C1.83535 5.36468 2.48557 3.79743 3.6415 2.6415C4.79743 1.48557 6.36467 0.835352 7.99941 0.833498ZM8.00016 2.16683C6.7188 2.16848 5.49038 2.67823 4.58431 3.58431C3.67814 4.49047 3.16838 5.71904 3.16683 7.00054C3.16694 8.75515 3.98013 10.6856 5.62793 12.578L5.62916 12.5794C6.33926 13.3995 7.13493 14.1412 8.00253 14.792C8.86833 14.1411 9.66228 13.3995 10.3708 12.5798L10.3721 12.5784C12.018 10.6854 12.8334 8.75471 12.8335 7.00038C12.8319 5.71894 12.3221 4.49043 11.416 3.58431C10.5099 2.67823 9.28152 2.16848 8.00016 2.16683ZM8.00016 5.8335C7.26378 5.8335 6.66683 6.43045 6.66683 7.16683C6.66683 7.90321 7.26378 8.50016 8.00016 8.50016C8.73654 8.50016 9.3335 7.90321 9.3335 7.16683C9.3335 6.43045 8.73654 5.8335 8.00016 5.8335ZM5.3335 7.16683C5.3335 5.69407 6.5274 4.50016 8.00016 4.50016C9.47292 4.50016 10.6668 5.69407 10.6668 7.16683C10.6668 8.63959 9.47292 9.8335 8.00016 9.8335C6.5274 9.8335 5.3335 8.63959 5.3335 7.16683Z",fill:"#00605F"})),s.a.createElement("defs",null,s.a.createElement("clipPath",{id:"clip0_28181_26750"},s.a.createElement("rect",{width:"16",height:"16",fill:"white",transform:"translate(0 0.5)"}))))),s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:"span",variant:"labelUpd",className:"location"},g))),s.a.createElement(mt.a,{className:"fav-icon"},s.a.createElement(it.a,{isMfdToast:!0,itemUniqueKey:c||t+1,isShowFavorite:!1,pageTitleEn:m,COMPONENT_NAME:h,location:l}))))})),_t=Object(x.a)((function(e){return{root:{paddingInline:"var(--mfd-spacing-m)",paddingTop:"var(--mfd-spacing-m)","& .noFoundTitle":{marginBottom:"var(--mfd-spacing-s)"},"& .noFoundDescription":{color:e.palette.common.Grey1Upd()}}}})),wt=function(e){var t=e.className,n=void 0===t?"":t,i=e.title,r=e.description,a=_t();return s.a.createElement(mt.a,{className:"".concat(a.root," ").concat(n)},s.a.createElement(C.a,{animateSettings:{willAnimate:!1},className:"noFoundTitle",component:"h5",variant:"h5Upd"},i),s.a.createElement(C.a,{animateSettings:{willAnimate:!1},className:"noFoundDescription",component:"h6",variant:"body3Upd"},r))},Ot=n(1305),jt=["style"],Ct=["style"],Et=s.a.memo((function(e){var t=e.isSearchDrawerMblOpen,n=e.onClickClearAll,i=e.badgeCount,c=e.setIsSearchDrawerMblOpen,l=e.isRTL,u=e.trackRtlStyle,d=e.allPlaces,p=e.searchPlacesForQuery,h=e.isCardListingDrawerMblOpen,m=e.setSelectedItem,f=e.selectedItem,b=e.loading,y=e.COMPONENT_NAME,x=e.pageTitleEn,_=e.isCardListDrawerMblOpen,w=e.updateGeoJSONData,O=void 0===w?function(){}:w,j=e.updateSearchTermData,E=void 0===j?function(){}:j,T=e.moveToFirstResultInViewport,k=void 0===T?function(){}:T,S=yt(),M=Object(o.useRef)(null),R=Object(o.useRef)(null),D=Object(o.useRef)(null),P=Object(o.useRef)(null),z=Object(o.useState)(""),N=Object(a.a)(z,2),U=N[0],V=N[1],W=Object(o.useState)([]),q=Object(a.a)(W,2),G=q[0],Z=q[1],H=Object(o.useState)([]),X=Object(a.a)(H,2),K=X[0],Y=X[1],J=Object(o.useState)(1),$=Object(a.a)(J,2),ee=$[0],te=$[1],ne=Object(o.useState)(!1),ie=Object(a.a)(ne,2),re=ie[0],ae=ie[1],oe=Object(o.useState)(!1),se=Object(a.a)(oe,2),ce=se[0],le=se[1],ue=Object(o.useCallback)((function(){c(!1)}),[c]);var de=Object(o.useCallback)((function(e){var t;e.preventDefault(),e.stopPropagation(),O(G),ue(),k(U&&((t=K)&&Array.isArray(t)?0===t.length?null:t[0]:null))}),[ue,b,G,U,K]);Object(o.useEffect)((function(){!t&&M.current&&M.current.blur()}),[t]),Object(o.useEffect)((function(){t&&M.current&&M.current.blur()}),[t]),Object(o.useEffect)((function(){if(t&&d&&d.length>0)if(""===U){var e=d.slice(0,20);Y(e),Z(d),te(1)}else{var n=d.filter((function(e){var t=U.toLowerCase(),n=(e.name||"").toLowerCase(),i=(e.location||"").toLowerCase(),r=(e.description||"").toLowerCase();return n.includes(t)||i.includes(t)||r.includes(t)}));Z(n),te(1),Y(n.slice(0,20))}}),[t,d]),Object(o.useEffect)((function(){t||(Z(d||[]),te(1),ae(!1),le(!1),P.current&&(clearTimeout(P.current),P.current=null))}),[t,d]);var pe=Object(o.useCallback)((function(e){if(P.current&&clearTimeout(P.current),V(e),E(e||""),!e||!e.trim()){var t=d.slice(0,20);return Z(d),Y(t),te(1),void ae(!1)}ae(!0),P.current=setTimeout((function(){var t=d.filter((function(t){var n=e.toLowerCase(),i=(t.name||"").toLowerCase(),r=(t.location||"").toLowerCase(),a=(t.description||"").toLowerCase();return i.includes(n)||r.includes(n)||a.includes(n)}));Z(t),te(1),Y(t.slice(0,20)),ae(!1)}),100)}
2),[d]),he=Object(o.useCallback)((function(){if(!(ce||20*ee>=G.length)){le(!0);var e=ee+1,t=20*(e-1),n=t+20,i=G.slice(t,n);setTimeout((function(){Y((function(e){return[].concat(Object(g.a)(e),Object(g.a)(i))})),te(e),le(!1)}),300)}}),[ee,G,ce]),me=Object(o.useCallback)((function(e){var t=e.scrollTop,n=e.scrollHeight;(t+e.clientHeight)/n>.8&&he()}),[he]),fe=Object(o.useCallback)((function(){V(""),E("");var e=d.slice(0,20);Z(d),Y(e),te(1),ae(!1),p(""),m(null),O(d)}),[d,p]);Object(o.useEffect)((function(){d&&d.length>0&&null===f&&fe()}),[d,f]);var ge=Object(o.useCallback)((function(e){t||b||e&&e.target&&e.target.closest&&e.target.closest(".inputEndSvgWrapper")||c(!0)}),[b,t]);Object(o.useEffect)((function(){return function(){P.current&&clearTimeout(P.current)}}),[]);var be=Object(o.useRef)(null),ve=Object(o.useCallback)((function(){F.a&&(be.current&&clearTimeout(be.current),be.current=setTimeout((function(){var e=document.getElementById("searchDrawerHeaderEl");if(e){var t=e.style.transition;e.style.transition="none";var n=e.offsetHeight;if(e.style.transition=t,n>0){var i="".concat(n,"px");e.style&&"function"===typeof e.style.setProperty&&e.style.setProperty("--search-header-height",i),"undefined"!==typeof document&&document.documentElement&&document.documentElement.style.setProperty("--search-header-height",i)}}}),150))}),[]);Object(o.useEffect)((function(){if(F.a){var e=0,n=setInterval((function(){var t=document.getElementById("searchDrawerHeaderEl");t&&t.offsetHeight?(ve(),clearInterval(n)):++e>=10&&clearInterval(n)}),100);window.addEventListener("resize",ve,{passive:!0});return t&&setTimeout((function(){ve()}),100),function(){clearInterval(n),window.removeEventListener("resize",ve),be.current&&clearTimeout(be.current)}}}),[ve,t]);var ye=Object(o.useCallback)((function(){b||n()}),[b,n]),xe=Object(o.useMemo)((function(){return Boolean(K.length<=0&&U)}),[K,U]);return s.a.createElement(Ot.a,{open:t,className:"".concat(S.root," ").concat(h?"cardListingDrawerMblWrapperOpen":""," ").concat(t?"searchDrawerMblWrapperOpen":""),anchor:"bottom",PaperProps:{elevation:void 0},keepMounted:!0,transitionDuration:400,ModalProps:{disableScrollLock:!0,BackdropProps:{style:{backgroundColor:"transparent",width:0}}}},s.a.createElement("div",{className:"searchDrawerHeader ".concat(t?"isDrawerOpen":"","  ").concat(_?"isCardListDrawerMblOpen":"")},s.a.createElement("div",{className:"searchBoxFilterBtn ".concat(b?"searchBoxFilterBtnLoading":""),ref:R,id:"searchDrawerHeaderEl"},s.a.createElement("div",{onClick:ge,className:"exploreMapSearchMblWrapper"},s.a.createElement(Ue.a,{ref:M,fieldName:"Search Field Enabled",placeholderText:"Search",variant:"exploreMapSearch",enableSearch:!0,onSearch:pe,searchDelay:300,onClear:fe,inputValue:U,inputStartSvg:s.a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.33325 2.66667C4.75592 2.66667 2.66659 4.75601 2.66659 7.33334C2.66659 9.91067 4.75592 12 7.33325 12C9.91058 12 11.9999 9.91067 11.9999 7.33334C11.9999 4.75601 9.91058 2.66667 7.33325 2.66667ZM1.33325 7.33334C1.33325 4.01963 4.01954 1.33334 7.33325 1.33334C10.647 1.33334 13.3333 4.01963 13.3333 7.33334C13.3333 10.647 10.647 13.3333 7.33325 13.3333C4.01954 13.3333 1.33325 10.647 1.33325 7.33334Z",fill:"#898C8D"}),s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.862 10.8619C11.1224 10.6016 11.5445 10.6016 11.8048 10.8619L14.9094 13.9665C15.1698 14.2269 15.1698 14.649 14.9094 14.9093C14.6491 15.1697 14.2269 15.1697 13.9666 14.9093L10.862 11.8047C10.6017 11.5444 10.6017 11.1223 10.862 10.8619Z",fill:"#898C8D"}))})),s.a.createElement("div",{className:"searchBtnWrapper"},s.a.createElement("div",{className:"".concat(t?"":"showBtn","  searchBtn")},s.a.createElement(Ne.a,{iconType:"filter",mapRoundButtonClick:ye,badgeCount:i})),s.a.createElement("div",{className:"".concat(t?"showBtn":""," searchDrawerCloseBtn searchBtn"),onMouseDown:de},s.a.createElement(I.a,{name:"closeiconnew"}))))),s.a.createElement("div",{className:Object(A.a)("searchDrawerWrapper",xe&&"isNoResultsCase")},s.a.createElement(s.a.Fragment,null,re?s.a.createElement("div",{className:"mostViewedItemsWrapper",style:{height:"calc((var(--vh, 1vh) * 100) - 80px)"}},s.a.createElement(gt.a,{className:"searchDrawerTitle searchDrawerTitleSkeleton"}),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return Array.from({length:e}).map((function(e,t){return s.a.createElement("div",{className:"positionRelative",key:"skeleton-".concat(t)},s.a.createElement(bt,{className:"searchDrawerCardSkeleton"}))}))}(10)):s.a.createElement(s.a.Fragment,null,K.length>0?s.a.createElement("div",{className:"mostViewedItemsWrapper"},s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:"h5",variant:"h5Upd",className:"searchDrawerTitle"},U?Object(Ye.a)("mfdExploreMapSearchResultsFor")+' "'.concat(U,'"'):"".concat(Object(Ye.a)("mfdExploreMapYouMightBeText"),"...")),s.a.createElement(Q.a,{ref:D,autoHide:!0,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!0,autoHeightMax:"calc((var(--vh, 1vh) * 100) - 80px)",id:"searchDrawerScroller",className:"searchDrawerScrollerWrapper",universal:!0,renderTrackHorizontal:function(e){return s.a.createElement("div",Object.assign({},e,{className:"track-horizontal"}))},style:{width:"calc(100% + 48px)",left:l?"0px":"-24px",right:l?"-24px":"0px"},renderTrackVertical:function(e){var t=e.style,n=Object(v.a)(e,jt);return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)({},t),className:"destinationScrollTrack"}))},renderThumbVertical:function(e){var t=e.style,n=Object(v.a)(e,Ct);return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)({},t),className:S.destinationScrollThumb}))},renderView:function(e){var t=e.style,n=e.props;return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)(Object(r.a)({},t),{},{scrollBehavior:"smooth"},u(t))}))},onScrollFrame:me},K.map((function(e,t){return s.a.createElement("div",{className:"positionRelative",key:e.id||t,id:"item_".concat(e.id||t),role:"button",tabIndex:0,onClick:function(t){var n=t.target,i=n.closest(".fav-icon")||n.closest("[data-favorite]");if(Object(L.b)(Object(r.a)(Object(r.a)({},B.a.pageBodyInteraction._2d_map_listing_click),{},{page_name_eng:x,UX_component_name:y})),!i){t.preventDefault();var a=d.find((function(t){return(t.id||t.itemUniqueKey)===(e.id||e.itemUniqueKey)}));if(null===a||void 0===a?void 0:a.name){V(a.name);var o=d.filter((function(e){var t=a.name.toLowerCase(),n=(e.name||"").toLowerCase(),i=(e.location||"").toLowerCase(),r=(e.description||"").toLowerCase();return n.includes(t)||i.includes(t)||r.includes(t)}));
2Z(o),te(1),Y(o.slice(0,20)),ae(!1),p(a.name,a.id),c(!1),m(a)}}}},s.a.createElement(xt,{index:t,className:"mostVisitedCard",onclickCard:function(){},thumbnailImage:(null===e||void 0===e?void 0:e.thumbnailImage)||(null===e||void 0===e?void 0:e.appThumbnailImage),itemUniqueKey:(null===e||void 0===e?void 0:e.id)||(null===e||void 0===e?void 0:e.itemUniqueKey),name:null===e||void 0===e?void 0:e.name,interestType:(null===e||void 0===e?void 0:e.suitableForTags)||(null===e||void 0===e?void 0:e.interestType),customTagWidth:35}))})),ce&&s.a.createElement("div",{className:"positionRelative"},s.a.createElement("div",{className:"mostVisitedCard"},s.a.createElement(bt,null))))):U?s.a.createElement(wt,{title:Object(Ye.a)("mfdExploreMapNoResultTitle"),description:Object(Ye.a)("mfdExploreMapNoResultsDesc"),className:"notFoundSearchDrawer"}):null))))})),Tt=n(1884),kt=(n(1870),Object(x.a)((function(e){var t,n,a,o;return{cardListingDrawer:{backgroundColor:"#fff","&.hideHeader":{"& [data-rsbs-header]":(t={height:Object(w.p)(70)},Object(i.a)(t,Object(w.e)("mdUpd"),{height:Object(w.q)(70)}),Object(i.a)(t,"& .cardListingDrawerHeaderWrapper",{opacity:0,pointerEvents:"none",visibility:"hidden",transition:"opacity 0.3s ease-out, visibility 0.3s ease-out"}),t),"& .cardTitleBody":{opacity:1,visibility:"visible"},"& .cardListingDrawerBody":{opacity:1,pointerEvents:"all",visibility:"visible"}},"&.showBody":{"& [data-rsbs-scroll]":{overflow:"hidden"}},"& [aria-modal]":(n={overflow:"hidden",borderTopLeftRadius:Object(w.p)(16),borderTopRightRadius:Object(w.p)(16),backgroundColor:"#fff",boxShadow:"none !important"},Object(i.a)(n,Object(w.e)("md"),{borderTopLeftRadius:Object(w.q)(16),borderTopRightRadius:Object(w.q)(16),boxShadow:"".concat(vt.a.raised," !important")}),Object(i.a)(n,"&:before",Object(i.a)({content:'""',display:"block",position:"absolute",top:Object(w.p)(8),left:"50%",transform:"translateX(-50%)",width:Object(w.p)(32),height:Object(w.p)(4),backgroundColor:e.palette.common.Grey3(),borderRadius:Object(w.q)(6),zIndex:"2"},Object(w.e)("mdUpd"),{top:Object(w.p)(8),width:Object(w.q)(32),height:Object(w.q)(4),borderRadius:Object(w.q)(6)})),n),"& [data-rsbs-header]":{padding:0,position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"#fff",boxShadow:"none","&:before":{display:"none"},"& .cardListingDrawerHeaderWrapper":{opacity:1,pointerEvents:"all",visibility:"visible",transition:"opacity 0.4s ease-in, visibility 0.4s ease-in"},"& .cardHorizontalListing":(o={paddingTop:Object(w.p)(20)},Object(i.a)(o,Object(w.e)("mdUpd"),{paddingTop:Object(w.q)(20)}),Object(i.a)(o,"& > div",(a={minHeight:"calc(2px + ".concat(Object(w.p)(100),")"),width:"100%"},Object(i.a)(a,Object(w.e)("lg"),{minHeight:"calc(2px + ".concat(Object(w.p)(120),")")}),Object(i.a)(a,Object(w.e)("mdUpd"),{minHeight:"calc(2px + ".concat(Object(w.q)(100),")")}),a)),Object(i.a)(o,"& > div > div",Object(r.a)(Object(r.a)({},e.mixins.paddingLeft("var(--mfd-spacing-m)")),{},{WebkitOverflowScrolling:"touch",touchAction:"pan-x pinch-zoom",overscrollBehavior:"contain","-webkit-overflow-scrolling":"touch","& .horizontalCardOverride":{"& .cardTitle":Object(i.a)({},Object(w.e)("mdUpd"),{fontSize:Object(w.q)(14)})}})),o)},"& [data-rsbs-content]":Object(i.a)({padding:0,minHeight:Object(w.p)(127)},Object(w.e)("mdUpd"),{minHeight:Object(w.q)(127)}),"& [data-rsbs-scroll]":Object(i.a)({borderTopLeftRadius:Object(w.p)(0),borderTopRightRadius:Object(w.p)(0),marginTop:Object(w.p)(76),overflow:"clip"},Object(w.e)("mdUpd"),{borderTopLeftRadius:Object(w.q)(0),borderTopRightRadius:Object(w.q)(0),marginTop:Object(w.q)(76)}),"& .cardVerticalListing":Object(i.a)({display:"flex",flexDirection:"row",flexWrap:"wrap",gap:"var(--mfd-spacing-s)",paddingBottom:Object(w.p)(100)},Object(w.e)("mdUpd"),{paddingBottom:Object(w.q)(100),flexDirection:"column",flexWrap:"nowrap"}),"& .cardListingDrawerBody":{height:"90.5svh",width:"100%",backgroundColor:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",paddingInline:"var(--mfd-spacing-m)",opacity:0,pointerEvents:"none",visibility:"hidden",transition:"opacity 0.5s ease-in-out, visibility 0.5s ease-in-out"},"& .cardTitleBody":Object(i.a)({position:"absolute",top:Object(w.p)(32),left:0,width:"100%",zIndex:"9",opacity:0,pointerEvents:"none",visibility:"hidden",transition:"opacity 0.1s ease-in-out, visibility 0.1s ease-in-out",paddingInline:"var(--mfd-spacing-m)"},Object(w.e)("mdUpd"),{top:Object(w.q)(32)})},"@global":{".ios-horizontal-scroll-fix":{WebkitOverflowScrolling:"touch !important",touchAction:"pan-x pinch-zoom !important",overscrollBehavior:"contain !important","-webkit-overflow-scrolling":"touch !important","&::-webkit-scrollbar":{display:"none !important"},"@media (hover: none) and (pointer: coarse)":{WebkitOverflowScrolling:"touch !important",touchAction:"pan-x pinch-zoom !important",overscrollBehavior:"contain !important"}}
2,".ios-horizontal-scroll-fix > div":{WebkitOverflowScrolling:"touch !important",touchAction:"pan-x pinch-zoom !important",overscrollBehavior:"contain !important"},".react-custom-scrollbars-wrapper":{"&.ios-device":{WebkitOverflowScrolling:"touch !important",touchAction:"pan-x pinch-zoom !important",overscrollBehavior:"contain !important","-webkit-overflow-scrolling":"touch !important",transform:"translateZ(0) !important",willChange:"scroll-position !important"}},".react-custom-scrollbars-view":{"&.ios-device":{WebkitOverflowScrolling:"touch !important",touchAction:"pan-x pinch-zoom !important",overscrollBehavior:"contain !important","-webkit-overflow-scrolling":"touch !important",transform:"translateZ(0) !important",willChange:"scroll-position !important"}}}}}))),St=Object(x.a)((function(e){var t,n,a,o,s;return{horizontalCard:Object(r.a)(Object(r.a)({position:"relative",width:"100%",cursor:"pointer",display:"flex",minWidth:Object(w.p)(340),maxWidth:Object(w.p)(340),border:"0.5px solid ".concat(e.palette.common.Grey3()),height:"fit-content",borderRadius:Object(w.p)(16)},e.mixins.marginRight(Object(w.p)(6))),{},(n={},Object(i.a)(n,Object(w.e)("lg"),{minWidth:Object(w.p)(450),maxWidth:Object(w.p)(450)}),Object(i.a)(n,Object(w.e)("mdUpd"),Object(r.a)({borderRadius:Object(w.q)(16),minWidth:Object(w.q)(340),maxWidth:Object(w.q)(340)},e.mixins.marginRight(Object(w.q)(6)))),Object(i.a)(n,"& .image",(t={flexShrink:0,width:Object(w.p)(150),height:Object(w.p)(100),borderRadius:Object(w.p)(16),overflow:"hidden"},Object(i.a)(t,Object(w.e)("lg"),{width:Object(w.p)(150),height:Object(w.p)(120),borderRadius:Object(w.p)(16)}),Object(i.a)(t,Object(w.e)("mdUpd"),{width:Object(w.q)(150),height:Object(w.q)(100),borderRadius:Object(w.q)(16)}),t)),Object(i.a)(n,"& .content",{paddingInline:"var(--mfd-spacing-s)",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start","& .cardTitle":{textAlign:e.mixins.textLeft(),marginBottom:"var(--mfd-spacing-xxs)"},"& .locationTitle":{color:e.palette.common.Grey1Upd()}}),n)),verticalCard:(s={width:"calc(50% - ".concat(Object(w.p)(12),")"),borderRadius:Object(w.p)(16),border:"1px solid ".concat(e.palette.common.borderLight()),overflow:"hidden"},Object(i.a)(s,Object(w.e)("mdUpd"),{borderRadius:Object(w.q)(16),width:"100%"}),Object(i.a)(s,"& .imageWrapper",(o={position:"relative",paddingTop:"57.0%"},Object(i.a)(o,"position","relative"),Object(i.a)(o,"overflow","hidden"),Object(i.a)(o,"borderRadius",Object(w.p)(16)),Object(i.a)(o,Object(w.e)("mdUpd"),{borderRadius:Object(w.q)(16)}),Object(i.a)(o,"& .fav-icon",Object(r.a)(Object(r.a)({position:"absolute",top:Object(w.p)(19)},e.mixins.right(Object(w.p)(19))),{},(a={},Object(i.a)(a,Object(w.e)("mdUpd"),Object(r.a)({top:Object(w.q)(19)},e.mixins.right(Object(w.q)(19)))),Object(i.a)(a,"& > div",{}),Object(i.a)(a,"& .heartIcon",{"& svg":Object(i.a)({width:Object(w.p)(22),height:Object(w.p)(20)},Object(w.e)("mdUpd"),{width:Object(w.q)(22),height:Object(w.q)(20)}),"&.selected":{"& svg > path":{stroke:e.mixins.AbuDhabiOrange()}},margin:0}),a))),o)),Object(i.a)(s,"& .imgWrapper",{position:"absolute",width:"100%",height:"100%",top:"0",padding:"0"}),Object(i.a)(s,"& .imageTag",Object(r.a)(Object(r.a)({display:"flex",position:"absolute",columnGap:Object(w.p)(4),top:Object(w.p)(20)},e.mixins.left(Object(w.p)(20))),{},Object(i.a)({},Object(w.e)("mdUpd"),Object(r.a)({columnGap:Object(w.q)(4),top:Object(w.q)(20)},e.mixins.left(Object(w.q)(20)))))),Object(i.a)(s,"& .verticalContent",{display:"flex",flexDirection:"column",rowGap:"var(--mfd-spacing-xs)",padding:"var(--mfd-spacing-s)","& .separator":{width:"100%",height:"1px",backgroundColor:e.palette.common.borderLight()},"& .locationTitle":{color:e.palette.common.Grey1Upd()}}),s)}})),At=function(e){var t=e.className,n=void 0===t?"":t,i=e.onclickCard,r=e.thumbnailImage,a=e.itemUniqueKey,o=e.name,c=e.location,l=e.type,u=void 0===l?"horizontal":l,d=e.suitableForTags,p=e.itemUrl,h=e.externalUrl,m=e.index,f=St(),g="vertical"===u,b=s.a.useCallback((function(e){if(!Array.isArray(e))return[];if(-1!==e.findIndex((function(e){return"Featured"===e}))){for(var t=["Featured"],n=0;n<e.length;n++)if("Featured"!==e[n]){t.push(e[n]);break}return t}return e.slice(0,2)}),[]);return g?s.a.createElement(mt.a,{className:"".concat(f.verticalCard," ").concat(n),id:"mitem_".concat(a),onClick:function(){i&&i(p,h)}},s.a.createElement("div",{className:"imageWrapper"},s.a.createElement(et.a,{media:{image:{value:null!==r&&void 0!==r?r:""},mobileImage:{value:null!==r&&void 0!==r?r:""}
2,disableLazyLoad:!0,fallbackBackgroundNeeded:!1,aspectRatio:N.a["3x2-compact"]},alt:Object(Se.W)(o),isParalax:!1,className:"imgWrapper"}),s.a.createElement("div",{className:"imageTag"},Array.isArray(d)&&b(d).map((function(e,t){return s.a.createElement(tt.a,{key:t,text:e,variant:"featured"===e.toLowerCase()?"featured":"generalTransparent"})}))),s.a.createElement("div",{className:"fav-icon"},s.a.createElement(it.a,{isMfdToast:!0,itemUniqueKey:a||m+1,isShowFavorite:!1}))),s.a.createElement(mt.a,{className:"verticalContent"},s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:"h6",variant:"h6Upd",className:"cardTitle"},Object(nt.a)(o||"Untitled",90)),s.a.createElement("i",{className:"separator"}),s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:"p",variant:"labelUpd",className:"locationTitle"},Object(nt.a)(c||"Untitled",50)))):s.a.createElement(mt.a,{className:"".concat(f.horizontalCard," ").concat(n),id:"mitem_".concat(a),onClick:function(){i&&i(p,h)}},s.a.createElement(mt.a,{className:"image"},s.a.createElement(et.a,{media:{image:{value:null!==r&&void 0!==r?r:""},mobileImage:{value:null!==r&&void 0!==r?r:""},disableLazyLoad:!0,fallbackBackgroundNeeded:!1,aspectRatio:N.a["2x1"]},alt:Object(Se.W)(o),isParalax:!1})),s.a.createElement(mt.a,{className:"content"},s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:"h6",variant:"h6Upd",className:"cardTitle"},Object(nt.a)(o||"Untitled",36)),s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:"p",variant:"labelUpd",className:"locationTitle"},Object(nt.a)(c||"Untitled",23))))},It=["style"],Mt=["style"],Lt=s.a.forwardRef((function(e,t){var n=e.setIsMblSearchHide,i=e.isCardListingDrawerMblOpen,c=e.mostViewedList,l=void 0===c?[]:c,u=(e.dictionary,e.onClickCardItem,e.googlePlacesAPI,e.lang,e.trackRtlStyle),d=e.onHorizontalScrollFrame,p=e.onHorizontalScrollStop,h=e.onVerticalScrollFrame,m=(e.verticalScrollbarRef,e.isRTL,e.pageTitleEn,e.COMPONENT_NAME),f=kt(),g=Object(o.useRef)(null),b=Object(o.useRef)(null),y=(Object(o.useRef)(null),Object(o.useState)(!1)),x=Object(a.a)(y,2),_=x[0],w=x[1],O=Object(o.useState)(!1),j=Object(a.a)(O,2),E=j[0],T=j[1],k=Object(o.useState)(0),S=Object(a.a)(k,2),A=(S[0],S[1]),I=Object(o.useState)(217),M=Object(a.a)(I,2),R=M[0],D=M[1],P=Object(o.useState)(0),z=Object(a.a)(P,2),N=z[0],U=z[1],V=Object(o.useRef)(null),W=Object(o.useState)(!1),q=Object(a.a)(W,2),G=q[0],Z=q[1],H=Object(o.useCallback)((function(){if(F.a){var e=b.current,t=document.getElementById("searchDrawerHeaderEl");if(e&&t){var n=e&&e.offsetHeight?e.offsetHeight+(null===t||void 0===t?void 0:t.offsetHeight)+2:217;D(n),document.documentElement.style.setProperty("--cardListing-header-height",n+"px"),U(window.innerHeight||0)}}}),[]),X=Object(o.useCallback)((function(){if(g.current&&"number"===typeof g.current.height){var e=g.current.height;A(e),e>R?(w(!0),n(!0)):e<=R&&(w(!1),n(!1))}E&&(V.current=requestAnimationFrame(X))}),[R,E,n]),Y=Object(o.useCallback)((function(){T(!0),V.current&&cancelAnimationFrame(V.current),V.current=requestAnimationFrame(X)}),[X]),J=Object(o.useCallback)((function(){T(!1),V.current&&(cancelAnimationFrame(V.current),V.current=null)}),[]);Object(o.useEffect)((function(){return function(){V.current&&cancelAnimationFrame(V.current)}}),[]),Object(o.useEffect)((function(){if(F.a){!function(){var e=/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;Z(e)}()}}),[]),Object(o.useEffect)((function(){if(F.a){var e=setTimeout((function(){H()}),100);return window.addEventListener("resize",H),function(){clearTimeout(e),window.removeEventListener("resize",H)}}}),[b.current]);var $=Object(o.useMemo)((function(){var e=N?Math.ceil(.95*N):640;return function(t){var n=t&&"number"===typeof t.maxHeight?t.maxHeight:e;return[Math.min(R,n),Math.min(e,n)]}}),[R,N]);Object(o.useEffect)((function(){if(g.current){"function"===typeof g.current.snapTo&&g.current.snapTo(1)}}),[R,N]);var ee=Object(o.useCallback)((function(){J()}),[J]),te=Object(o.useCallback)((function(e){"function"===typeof h&&h(e.target)}),[h]),ne=Object(o.useCallback)((function(){var e=document.querySelector("[data-rsbs-scroll]");e&&(e.removeEventListener("scroll",te),e.addEventListener("scroll",te,{passive:!0}))}),[te]);Object(o.useEffect)((function(){if(F.a&&G){var e=0,t=0,n=function(n){var i=n.target.closest(".
2native-horizontal-scroll-container")||n.target.closest(".ios-horizontal-scroll-fix");if(i&&1===n.touches.length){var r=n.touches[0];e=r.clientX,t=r.clientY,!1,i.style.touchAction="pan-x pinch-zoom",i.style.WebkitOverflowScrolling="touch"}},i=function(n){var i=n.target.closest(".native-horizontal-scroll-container")||n.target.closest(".ios-horizontal-scroll-fix");if(i&&1===n.touches.length){var r=n.touches[0],a=Math.abs(r.clientX-e),o=Math.abs(r.clientY-t);a>o&&a>10?(!0,n.stopPropagation()):o>a&&o>10&&(!1,i.closest("[data-rsbs-header]")&&n.preventDefault())}},r=function(e){!1};return document.addEventListener("touchstart",n,{passive:!1,capture:!0}),document.addEventListener("touchmove",i,{passive:!1,capture:!0}),document.addEventListener("touchend",r,{passive:!0,capture:!0}),function(){document.removeEventListener("touchstart",n,{capture:!0}),document.removeEventListener("touchmove",i,{capture:!0}),document.removeEventListener("touchend",r,{capture:!0})}}}),[G]),Object(o.useEffect)((function(){if(F.a&&_){ne();var e=setTimeout(ne,100);return function(){clearTimeout(e);var t=document.querySelector("[data-rsbs-scroll]");t&&t.removeEventListener("scroll",te)}}}),[ne,te,_]),Object(o.useEffect)((function(){if(F.a){var e=document.querySelector(".mapboxgl-map-wrapper-wrapper"),t=function(e){e.stopPropagation(),_&&g.current&&g.current.snapTo&&g.current.snapTo(0)};return e&&(e.addEventListener("touchend",t),_?e.classList.add("sheet-expanded"):e.classList.remove("sheet-expanded")),function(){e&&(e.classList.remove("sheet-expanded"),e.removeEventListener("touchend",t))}}}),[_]);var ie=Object(o.useCallback)((function(e){var t=e.style,n=Object(v.a)(e,It);return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)({},t),className:"destinationHorizontalScrollTrack"}))}),[]),re=Object(o.useCallback)((function(e){var t=e.style,n=Object(v.a)(e,Mt);return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)({},t),className:"destinationHorizontalThumb"}))}),[]),ae=Object(o.useCallback)((function(e){return s.a.createElement("div",Object.assign({},e,{className:"track-vertical"}))}),[]),oe=Object(o.useCallback)((function(e){var t=e.style,n=e.props;return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)(Object(r.a)(Object(r.a)({},t),{},{display:"flex",scrollBehavior:"smooth",overflowY:"hidden",overflowX:"auto",WebkitOverflowScrolling:G?"touch":"auto",touchAction:G?"pan-x pinch-zoom":"auto",overscrollBehavior:G?"contain":"auto"},G&&{"-webkit-overflow-scrolling":"touch",scrollbarWidth:"none",msOverflowStyle:"none"}),u(t)),className:"ios-horizontal-scroll-fix ".concat(G?"ios-device":"")}),s.a.createElement(K.a,null))}),[u,G]),se=Array.isArray(l)?l.map((function(e){return e.name})):[],ce=Object(o.useCallback)((function(e,t){Object(L.b)(Object(r.a)(Object(r.a)({},B.a.pageBodyInteraction._2d_map_view_details_cta_click),{},{call_to_action:se,UX_component_name:m})),F.a&&(t?window.open(t,"_blank","noopener,noreferrer"):e&&window.location.assign(e))}),[se]),le=Object(o.useMemo)((function(){return s.a.createElement("div",{className:"cardListingDrawerHeaderWrapper"},Array.isArray(l)&&l.length>0&&s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:"cardHorizontalListing",ref:b},s.a.createElement(Q.a,Object.assign({ref:t,autoHide:!1,id:"mxcroll",universal:!0,style:Object(r.a)({width:"100%"},G&&{WebkitOverflowScrolling:"touch",touchAction:"pan-x pinch-zoom",overscrollBehavior:"contain","-webkit-overflow-scrolling":"touch",transform:"translateZ(0)",willChange:"scroll-position"}),renderTrackHorizontal:ie,renderThumbHorizontal:re,renderTrackVertical:ae,renderView:oe,onScrollFrame:d,onScrollStop:p,thumbMinSize:G?30:20,hideTracksWhenNotNeeded:!0},G&&{autoHideTimeout:1e3,autoHideDuration:200,nativeMobileScroll:!0}),Array.isArray(l)&&l.map((function(e){return s.a.createElement(At,{className:"horizontalCardOverride",key:e.id,thumbnailImage:e.thumbnailImage,name:e.name,itemUniqueKey:e.id,location:e.location,itemUrl:e.itemUrl,externalUrl:e.externalUrl,onclickCard:ce})}))))))}),[l,G,ie,re,ae,oe,d,p]),ue=Object(o.useMemo)((function(){return Array.isArray(l)&&l.length>0&&_&&s.a.createElement(s.a.Fragment,null,l.map((function(e){return s.a.createElement(At,{key:e.id,thumbnailImage:e.thumbnailImage,name:e.name,itemUniqueKey:e.id,location:e.location,type:"vertical",suitableForTags:e.suitableForTags,itemUrl:e.itemUrl,externalUrl:e.externalUrl,onclickCard:ce})})))}),[l,_]);return s.a.createElement(Tt.a,{ref:g,open:i,blocking:!1,onDismiss:void 0,header:le,expandOnContentDrag:!0,snapPoints:$,defaultSnap:Object(o.useCallback)((function(e){var t=e.snapPoints,n=e.lastSnap;return"number"===typeof n?n:t[0]}),[]),onSpringEnd:ee,reserveScrollBarGap:!1,onSpringStart:Y,onSpringCancel:J,skipInitialTransition:!0,className:Object(o.useMemo)((function(){return"".concat(f.cardListingDrawer," ").concat(_?"hideHeader":""," ").concat(_?"":"showBody")}),[f.cardListingDrawer,_])},s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:"h5",variant:"h5Upd",className:"cardTitleBody"},Object(Ye.a)("mfdExploreMapExploreAbuDhabi")),s.a.createElement("div",{className:"cardListingDrawerBody"},s.a.createElement("div",{className:"cardVerticalListing"},ue)))})),Bt=s.a.memo(Lt),Rt=["style"],Dt=["style"],Pt=s.a.memo((function(e){var t=e.loading,n=e.isSearching,i=e.searchResultsLength,c=e.mostViewedList,l=e.scrollbarRef,u=(e.isRTL,e.classes),d=e.trackRtlStyle,p=e.hasMore,h=e.fetchData,m=e.onClickItem,f=e.pageTitleEn,g=e.COMPONENT_NAME,b=Object(o.useState)(!0),y=Object(a.a)(b,2),x=y[0],_=y[1];Object(o.useEffect)((function(){c.length<1&&!t&&_(!1)}),[c]);var w=Object(o.useMemo)((function(){return Array.from({length:10}).map((function(e,t){return s.a.createElement("div",{className:u.positionRelative,key:t},s.a.createElement(bt,null))}))}),[u.positionRelative]),O=Object(o.useMemo)((function(){return{height:"calc((var(--vh, 1vh) * 100) - 80px)"}}),[]),j=Object(o.useCallback)((function(e){p&&e.scrollTop+e.clientHeight+100>e.scrollHeight&&h()}),[p,h]);return t?s.a.createElement("div",{className:u.mostViewedItemsWrapper,style:O},w):s.a.createElement(s.a.Fragment,null,n&&0===i&&s.a.createElement(wt,{title:Object(Ye.a)("mfdExploreMapNoResultTitle"),description:Object(Ye.a)("mfdExploreMapNoResultsDesc")}),!n&&s.a.createElement(s.a.Fragment,null,c.length>0&&s.a.createElement("div",{className:u.mostViewedItemsWrapper},s.a.createElement(J.Scrollbars,{ref:l,autoHide:!0,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!0,autoHeightMax:"calc((var(--vh, 1vh) * 100) - 80px)",id:"xcrollSkeleton",universal:!0,renderTrackHorizontal:function(e){return s.a.createElement("div",Object.assign({},e,{className:"track-horizontal"}))},renderTrackVertical:function(e){var t=e.style,n=Object(v.a)(e,Rt);return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)({},t),className:"destinationScrollTrack"}))},renderThumbVertical:function(e){var t=e.style,n=Object(v.a)(e,Dt);return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)({},t),className:u.destinationScrollThumb}))},renderView:function(e){var t=e.style,n=e.props;return s.a.createElement("div",Object.assign({},n,{style:Object(r.a)(Object(r.a)({},t),{},{scrollBehavior:"smooth"},d(t))}))},onScrollFrame:j,className:"desktopListingScrollbar"},c.map((function(e,t){return s.a.createElement("div",{className:u.positionRelative,key:e.id,id:"item_".concat(e.id)},s.a.createElement(xt,{index:t,className:"mostVisitedCard",onclickCard:m,thumbnailImage:null===e||void 0===e?void 0:e.thumbnailImage,itemUniqueKey:null===e||void 0===e?void 0:e.id,name:null===e||void 0===e?void 0:e.name,interestType:null===e||void 0===e?void 0:e.suitableForTags,pageTitleEn:f,COMPONENT_NAME:g,location:null===e||void 0===e?void 0:e.location,isChatMode:!!(null===e||void 0===e?void 0:e.originalChatCard)}))})))),c.length<1&&!x?s.a.createElement(wt,{title:Object(Ye.a)("mfdExploreMapNoResultTitle"),description:Object(Ye.a)("mfdExploreMapNoResultsDesc")}):null))})),zt=["className","selectedItem","setSelectedItem","googlePlacesAPI","lang","places","dictionary","categoriesList","destinationsList","changeDestination","setSelectedCategories","floatingBoxPlaceholders","updateSearchTermData","updateGeoJSONData","setRe
2selectedStatus","defaultLatlng","loading","setMapStepValue","step","updatePlacesInView","handleShouldMapZoom","shouldMapZoom","setHardResizeMap","setFirstClick","setClearAllClick","setClearingAll","isMapPanning","setIsMapPanning","type","setSelectedCities","isFlying","pageTitleEn","COMPONENT_NAME","isChatCarouselMode","chatCarouselPlaces","chatCarouselCards","chatLoading"],Ft=Object(d.b)({loading:$.g,step:$.h,places:$.c,shouldMapZoom:$.j,isMapPanning:$.f});var Nt=Object(m.b)(Ft,(function(e){return{handleShouldMapZoom:function(t){return e(Object(c.e)(t))},setReselectedStatus:function(t){return e(Object(c.f)(t))},setSelectedCategories:function(t){return e(Object(c.l)(t))},updateGeoJSONData:function(t){return e(Object(c.j)(t))},updateSearchTermData:function(t){return e(Object(l.a)(t))},setMapStepValue:function(t){return e(Object(c.i)(t))},updatePlacesInView:function(t){return e(Object(c.k)(t))},setIsMapPanning:function(t){return e(Object(c.h)(t))},setClearingAll:function(t){return e(Object(c.g)(t))}}}))(s.a.memo((function(e){e.className;var t,n,c,l,u,d,p,h,f=e.selectedItem,x=e.setSelectedItem,_=e.googlePlacesAPI,w=void 0===_?"":_,O=e.lang,j=e.places,C=void 0===j?[]:j,E=e.dictionary,T=e.categoriesList,S=e.destinationsList,I=e.changeDestination,M=e.setSelectedCategories,R=e.floatingBoxPlaceholders,D=e.updateSearchTermData,P=e.updateGeoJSONData,z=e.setReselectedStatus,N=(e.defaultLatlng,e.loading),U=e.setMapStepValue,V=e.step,W=(e.updatePlacesInView,e.handleShouldMapZoom),q=(e.shouldMapZoom,e.setHardResizeMap),G=(e.setFirstClick,e.setClearAllClick,e.setClearingAll,e.isMapPanning,e.setIsMapPanning,e.type),Z=e.setSelectedCities,H=e.isFlying,X=e.pageTitleEn,K=e.COMPONENT_NAME,Y=e.isChatCarouselMode,J=void 0!==Y&&Y,Q=e.chatCarouselPlaces,$=void 0===Q?null:Q,ee=e.chatCarouselCards,te=void 0===ee?null:ee,ie=e.chatLoading,re=void 0!==ie&&ie,ae=(Object(v.a)(e,zt),Pe()),oe=Object(o.useState)(!1),se=Object(a.a)(oe,2),ce=se[0],le=se[1],ue=Object(o.useState)([]),de=Object(a.a)(ue,2),pe=de[0],he=de[1],me=null===S||void 0===S?void 0:S[0],fe=(null===me||void 0===me||null===(t=me.fields)||void 0===t||null===(n=t.latlng)||void 0===n?void 0:n.value)||"",ge=fe.includes(",")?fe.split(",").reverse():[],be={name:(null===me||void 0===me||null===(c=me.fields)||void 0===c||null===(l=c["Display Name"])||void 0===l?void 0:l.value)||"",searchKey:(null===me||void 0===me||null===(u=me.fields)||void 0===u||null===(d=u.List)||void 0===d||null===(p=d.fields)||void 0===p||null===(h=p.searchKey)||void 0===h?void 0:h.value)||"",coordinates:ge},ve=Object(o.useState)(Object(r.a)({},be)),ye=Object(a.a)(ve,2),xe=ye[0],_e=ye[1],we=Object(o.useState)(""),Oe=Object(a.a)(we,2),je=Oe[0],Ce=Oe[1],Ee=Object(o.useState)(!1),Te=Object(a.a)(Ee,2),ke=Te[0],Se=Te[1],Ae=Object(o.useState)(void 0),Ie=Object(a.a)(Ae,2),Me=Ie[0],Le=Ie[1],Be=Object(o.useState)(!1),Re=Object(a.a)(Be,2),De=Re[0],He=Re[1],Xe=Object(o.useState)(!1),Ke=Object(a.a)(Xe,2),Je=Ke[0],$e=Ke[1],et=Object(o.useState)(!1),tt=Object(a.a)(et,2),nt=tt[0],it=tt[1],rt=Object(o.useState)(!1),ot=Object(a.a)(rt,2),st=ot[0],ct=ot[1],lt=Object(o.useState)(!1),ut=Object(a.a)(lt,2),dt=(ut[0],ut[1]),ht=Object(o.useState)(56),mt=Object(a.a)(ht,2),ft=(mt[0],mt[1]),gt=Object(o.useState)(null),vt=Object(a.a)(gt,2),yt=(vt[0],vt[1]),xt=Object(o.useState)(null),_t=Object(a.a)(xt,2),wt=(_t[0],_t[1]),Ot=Object(o.useState)(!1),jt=Object(a.a)(Ot,2),Ct=jt[0],Tt=jt[1],kt=(Object(o.useRef)(null),Object(o.useRef)(null)),St=Object(o.useRef)(null),At=Object(y.f)(),It=Object(o.useRef)({}),Mt=Object(o.useState)(!1),Lt=Object(a.a)(Mt,2),Rt=Lt[0],Dt=Lt[1],Ft=Object(o.useState)(null),Nt=Object(a.a)(Ft,2),Ut=Nt[0],Vt=Nt[1],Wt
2=Object(o.useCallback)((function(e,t){It.current&&"object"===typeof It.current&&(e in It.current||(It.current[e]=t))}),[]),qt=Object(o.useCallback)((function(e,t){if(t){var n=e.slice(0,20);he(n)}}),[]),Gt=Object(m.d)((function(e){return e.ExploreMapReducer})),Zt=J&&$?$:Gt.completePlaces,Ht=J&&$?$:Gt.placesInView,Xt=Gt.selectedCategories,Kt=J?re:N,Yt=Object(o.useState)(Object.fromEntries(Ve.map((function(e){return[e.key,[]]})))),Jt=Object(a.a)(Yt,2),Qt=Jt[0],$t=Jt[1],en=Object(o.useMemo)((function(){return J&&te?We(te):null}),[J,te]),tn=Object(o.useMemo)((function(){return en?Ge(en):null}),[en]),nn=(R.categoriesTitle,R.destinationsTitle,R.searchPlaceholderWeb,R.searchPlaceholderMobile,R.noSearchHeadingWeb,R.descriptionNoCategory,R.noSearchHeadingMobile,R.noSearchDescription,R.noCategoryDescription,R.noCategoryHeading,"ar"==O||"he"==O),rn="ru"==O,an=G===ne.X;Object(o.useEffect)((function(){if((null===Zt||void 0===Zt?void 0:Zt.length)>0&&0===Xt.length&&!Ct){var e=ze(T);M(e),V<1&&U(1),Tt(!0)}}),[Zt]),Object(o.useEffect)((function(){if(J){var e=te?te.filter((function(e){return qe(e,Qt)})):[],t=Object(Ze.b)(e);Array.isArray(t)&&(on(t,t),P(t)),t.length>0&&1!==V&&U(1)}else{var n=Ht;n=Xt.length>0?n.filter((function(e){return Xt.includes(e.category)})):[],Array.isArray(n)&&(on(n,n),P(n)),n.length>0&&1!==V&&U(1)}}),[Ht,Xt,on,V,U,J,Zt,te,Qt]),Object(o.useEffect)((function(){0!==V||J||(M([]),He(!0),Ce(""),Vt(null),Le(void 0),Se(!1))}),[V]);var on=Object(o.useCallback)((function(e,t){e.length>0?($e(!0),qt(e,!0)):qt(t,!0)}),[qt]);Object(o.useEffect)((function(){if(0===pe.length&&(null===Zt||void 0===Zt?void 0:Zt.length)>0)if(J){if(Object.values(Qt).some((function(e){return e.length>0}))&&te){var e=te.filter((function(e){return qe(e,Qt)})),t=Object(Ze.b)(e);on(t,t)}}else{var n=Xt.length?Zt.filter((function(e){return Xt.includes(e.category)})):Zt;on(n,n)}}),[Zt,Xt,J,Qt,te,pe.length]),Object(o.useEffect)((function(){if(f&&Vn&&St&&St.current){var e=pe.find((function(e){return e.id===f.id})),t=pe;if(e){if(F.a){var n=document.getElementById("mitem_".concat(f.id)),i=n.offsetLeft;0!==n.offsetLeft&&(i=n.offsetLeft-20),St.current&&St.current.scrollLeft(i)}}else{var r=Object(b.a)(t),a=(r[0],r.slice(1));qt([].concat(Object(g.a)(a),[f]),!0)}}}),[f,St.current]),Object(o.useEffect)((function(){if(f&&!Vn&&kt&&kt.current){var e=pe.find((function(e){return e.id===f.id})),t=pe;if(e){if(F.a){var n=document.getElementById("item_".concat(f.id));n&&kt.current&&kt.current.scrollTop(n.offsetTop)}}else{var i=Object(b.a)(t),r=(i[0],i.slice(1));qt([].concat(Object(g.a)(r),[f]),!0)}}}),[f]),Object(o.useEffect)((function(){if(f)if(ce&&St&&St.current){var e=document.getElementById("mitem_".concat(f.id));if(e&&St.current){var t=e.offsetLeft;0!==e.offsetLeft&&(t=e.offsetLeft-20),St.current.scrollLeft(t)}}else{var n=document.getElementById("item_".concat(f.id));n&&kt.current&&kt.current.scrollTop(n.offsetTop)}}),[pe]),Object(o.useEffect)((function(){if(xe.searchKey){var e=Xt.length>0?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!t.length)return e;var n=new Set(t);return e.filter((function(e){var t=e.category;return n.has(t)}))}(Zt,Xt):[],t=Vn?Fe(e,Ut):function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t.trim().toLowerCase();return n?e.filter((function(e){var t=e.name;return"string"===typeof t&&t.toLowerCase().includes(n)})):e}(e,je);on(t,[]),P(t)}}),[xe.searchKey,Zt,Xt,on,P,je,Ut,Vn]);var sn=Object(o.useCallback)((function(e){var t=pe.find((function(t){return t.id===e}));x(t),z({itemId:e}),W(!1),Object(L.b)(Object(r.a)(Object(r.a)({},B.a.pageBodyInteraction[an?"kioskeventClick":"eventClick"]),{},{map_event:"".concat(t.name)}))}),[pe,x,z,W,an,H]),cn=Object(o.useCallback)((function(e){e&&F.a&&window.location.assign(e)}),[]);Object(o.useEffect)((function(){ln()}),[]);var ln=Object(o.useCallback)((function(){if(F.a){yt(window.androidHeight||window.innerHeight);var e=document.documentElement.style.getPropertyValue("--headerHeight"),t=document.documentElement.style.getPropertyValue("--notificationBar"),n=window.innerWidth<1024,i=n?56:0;le(n),wt(parseFloat(e)+parseFloat(t)+i)}}),[]);Object(o.useEffect)((function(){if(F.a)return window.addEventListener("resize",ln),function(e){window.removeEventListener("resize",ln)}}));var un=Object(o.useCallback)((function(e,t,n){_e({name:e,searchKey:t,coordinates:n,isForce:!1}),Z({name:e,searchKey:t,coordinates:n,isForce:!1}),I(n),Object(L.b)(Object(r.a)(Object(r.a)({},B.a.pageBodyInteraction[an?"kioskdestinationSelect":"destinationSelect"]),{},{map_destination:"".concat(e)}))}),[_e,Z,I,an]),dn=Object(o.useCallback)((function(e){M(Object(g.a)(e)),0==V&&U(1),q(!0)}),[M,V,U,q]),pn=Object(o.useCallback)((function(){wn()}),[wn]);Object(o.useCallback)((function(){nt&&ft(56),it(!nt)}),[nt,ft,it]),Object(o.useCallback)((function(){}),[]);Object(o.useEffect)((function(){if(D(je),je){var e=Zt,t=Vn?Fe(e,Ut):e.filter((function(e){return e.name&&e.name.toLowerCase().includes(je.toLowerCase())}));t=Xt.length>0?t.filter((function(e){return Xt.includes(e.category)})):[],Le(t.length),P(t),t.length>0?(Se(!1),on(t,[])):Xt.length>0||on(t,[])}else Se(!1),P(hn()||[]),0==pe.length&&on(hn(),[])}),[je,Vn]);var hn=Object(o.useCallback)((function(){var e=Zt;return e=Xt.length>0?e.filter((function(e){return Xt.includes(e.category)})):[]}),[Zt,Xt]),mn=Object(o.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;dt(!1);var n=Vn?e:e&&je!==e;if(n){if(V<1&&U(1),De&&He(!1),Se(!0),Ce(e),t&&Vt(t),!ce){var i=C.find((function(t){return t.name===e}));i&&x(i)}}else je===e&&0==pe.length||(V>0&&(Ce(""),D(""),Vt(null)),Se(!1),Le(void 0),Vn&&on(hn(),hn()))}),[Vn,Ce,De]),fn=Object(o.useCallback)((function(){Se(!1),He(!0),Ce(""),D(""),Vt(null),Le(void 0),on(hn(),C)}),[]),gn=(Object(o.useCallback)((function(e){if("string"===typeof e&&""!==e.trim()){var t=e.trim();mn(t)}}),[mn]),Object(o.useCallback)((function(e){if("string"===typeof e&&""!==e.trim()){var t=e.trim();if(dt(!1),V<1&&U(1),De&&He(!1),Ce(t),!Vn){var n=C.find((function(e){return e.name===t}));n&&x(n)}}}),[Vn,Ce,De])),bn=Object(o.useCallback)((function(){""!==je&&(mn(""),He(!0),fn())}),[je,mn,He,fn]),vn=Object(o.useCallback)((function(){at()(It,"current.handleClear",(function(){}))(),bn()}),[bn]),yn=Object(o.useCallback)((function(){if(J)$e(!1);else{var e=C;if(Xt.length>0&&(e=e.filter((function(e){return Xt.includes(e.category)}))),pe.length>=e.length)$e(!1);else{var t=e.filter((function(e){var t=e.id;return!pe.some((function(e){return e.id===t}))})).slice(pe.length,pe.length+20);he(pe.concat(t))}}}),[C,Xt,pe,$e,he,J]),xn=(Object(o.useCallback)((function(){var e=ze(T);M(e)}),[]),Object(o.useCallback)((function(e){$t(e),On()}),[])),_n=Object(o.useCallback)((function(){$t(Object.fromEntries(Ve.map((function(e){return[e.key,[]]}))))}),[]),wn=(Object(o.useCallback)((function(){At.length>0?At.goBack():At.push("/")}),[At]),Object(o.useCallback)((function(){it(!0)}),[it]),Object(o.useCallback)((function(){it(!1)}),[it]),Object(o.useCallback)((function(){ct(!0)}),[ct])),On=Object(o.useCallback)((function(){ct(!1)}),[ct]),jn=(Object(o.useCallback)((function(){He(!0),dt(!1)}
2),[He,dt]),Object(o.useCallback)((function(){Dt(!1),un(xe.name,xe.searchKey,xe.coordinates),x(null)}),[Dt,un,xe,x])),Cn=Object(o.useCallback)((function(e){Je&&e.scrollLeft+e.clientWidth+100>e.scrollWidth&&yn()}),[]),En=Object(o.useCallback)((function(){var e=St.current;if(f&&e){e.getScrollLeft();var t=e.container.firstChild.children["mitem_".concat(f.id)];if(t)t.offsetLeft,t.offsetWidth}}),[f]),Tn=Object(o.useCallback)((function(e){Je&&e.scrollTop+e.clientHeight+400>e.scrollHeight&&yn()}),[Je,yn]),kn=Object(o.useCallback)((function(e){return nn?{marginLeft:e.marginRight,marginRight:0}:{}}),[nn]),Sn=Object(o.useMemo)((function(){return s.a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.33325 2.66667C4.75592 2.66667 2.66659 4.75601 2.66659 7.33334C2.66659 9.91067 4.75592 12 7.33325 12C9.91058 12 11.9999 9.91067 11.9999 7.33334C11.9999 4.75601 9.91058 2.66667 7.33325 2.66667ZM1.33325 7.33334C1.33325 4.01963 4.01954 1.33334 7.33325 1.33334C10.647 1.33334 13.3333 4.01963 13.3333 7.33334C13.3333 10.647 10.647 13.3333 7.33325 13.3333C4.01954 13.3333 1.33325 10.647 1.33325 7.33334Z",fill:"#898C8D"}),s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.862 10.8619C11.1224 10.6016 11.5445 10.6016 11.8048 10.8619L14.9094 13.9665C15.1698 14.2269 15.1698 14.649 14.9094 14.9093C14.6491 15.1697 14.2269 15.1697 13.9666 14.9093L10.862 11.8047C10.6017 11.5444 10.6017 11.1223 10.862 10.8619Z",fill:"#898C8D"}))}),[]),An=(Object(o.useMemo)((function(){return Array.from({length:10}).map((function(e,t){return s.a.createElement("div",{className:ae.positionRelative,key:t},s.a.createElement(bt,null))}))}),[ae.positionRelative]),Object(o.useMemo)((function(){return{width:"calc(100% + 48px)",left:nn?"0px":"-24px",right:nn?"-24px":"0px"}}),[nn]),Object(o.useMemo)((function(){return{height:"calc((var(--vh, 1vh) * 100) - 80px)"}}),[]),Object(o.useRef)(null)),In=Object(o.useRef)(null),Mn=Object(o.useState)(0),Ln=Object(a.a)(Mn,2),Bn=(Ln[0],Ln[1]),Rn=Object(o.useState)(0),Dn=Object(a.a)(Rn,2),Pn=(Dn[0],Dn[1]),zn=Object(o.useState)(!1),Fn=Object(a.a)(zn,2),Nn=Fn[0],Un=Fn[1],Vn=Object(k.a)("(max-width:".concat(1023.85,"px)")),Wn=Object(o.useState)(!1),qn=Object(a.a)(Wn,2),Gn=qn[0],Zn=qn[1],Hn=Object(o.useState)(!1),Xn=Object(a.a)(Hn,2),Kn=Xn[0],Yn=Xn[1];return Object(o.useEffect)((function(){An.current&&Bn(An.current.offsetHeight),In.current&&Pn(In.current.offsetHeight)}),[]),Object(o.useEffect)((function(){f?(Vn||Dt(!0),Vn&&Zn(!0)):(Vn||Dt(!1),Vn&&Zn(!1))}),[f,Vn]),s.a.createElement(s.a.Fragment,null,s.a.createElement("div",{className:Object(A.a)(ae.floatingBar,Object(i.a)({},ae.directionRtl,nn)),style:{pointerEvents:Kt?"none":"auto"},onWheel:function(e){return e.stopPropagation()}},s.a.createElement("div",{className:"".concat(ae.floatingBarInnerWrap)},s.a.createElement("div",{className:"".concat(ae.floatingBarFirstStep)},s.a.createElement("div",{className:"".concat(ae.searchBoxFilterBtn)},s.a.createElement(Ue.a,{fieldName:"Search Field Enabled",placeholderText:Object(Ye.a)("mfdExploreMapSearch"),variant:"exploreMapSearch",enableSearch:!0,onSearch:mn,onEnterKeyPress:gn,onClear:bn,searchDelay:300,inputStartSvg:Sn,pageTitleEn:X,COMPONENT_NAME:K,handleSetInternalComponentFunctionsRef:Wt}),s.a.createElement(Ne.a,{iconType:"filter",mapRoundButtonClick:pn,badgeCount:J?Object.values(Qt).reduce((function(e,t){return e+t.length}),0):Xt.length})),s.a.createElement(Pt,{loading:Kt,isSearching:ke,searchResultsLength:Me,mostViewedList:pe,scrollbarRef:kt,isRTL:nn,classes:ae,trackRtlStyle:kn,hasMore:Je,fetchData:yn,onClickItem:sn,isFlying:H,COMPONENT_NAME:K,pageTitleEn:X})),s.a.createElement(Qe,{onClickCloseFilterView:On,onClickClearAll:pn,onClickDestination:un,destinationsList:S,categoriesList:T,setSelectedCategories:M,selectedCategories:Xt,selectedCity:xe,selectTheseCategories:dn,isLangRussian:rn,isFilterOpen:st,defaultSelectedCity:be,COMPONENT_NAME:K,pageTitleEn:X,handleDskSearchClear:vn,isChatCarouselMode:J,chatSelectedFilters:Qt,chatFilterSections:tn,onChatApplyFilters:xn,onChatResetFilters:_n}),s.a.createElement(pt,{isSelectedPointDrawerOpen:Rt,onClickCloseSelectedPointDrawer:jn,selectedItem:f,dictionary:E,isFlying:H}
2))),Vn&&s.a.createElement("div",{className:ae.mobileMapControls},s.a.createElement("div",{id:"mobileBottomPanel"},s.a.createElement(Bt,{isCardListingDrawerMblOpen:Gn,setIsMblSearchHide:Yn,mostViewedList:pe,onHorizontalScrollFrame:Cn,onHorizontalScrollStop:En,ref:St,googlePlacesAPI:w,lang:O,dictionary:E,onClickCardItem:cn,selectedCategories:Xt,trackRtlStyle:kn,onVerticalScrollFrame:Tn,verticalScrollbarRef:kt}),s.a.createElement(Et,{isSearchDrawerMblOpen:Nn,setIsSearchDrawerMblOpen:Un,onClickClearAll:pn,badgeCount:Xt.length,isRTL:nn,trackRtlStyle:kn,allPlaces:Zt,searchPlacesForQuery:mn,isCardListingDrawerMblOpen:Kn,isCardListDrawerMblOpen:Gn,setSelectedItem:x,selectedItem:f,loading:Kt}))))}),(function(e,t){return e.className===t.className&&e.places===t.places&&e.selectedItem===t.selectedItem&&e.selectedCity===t.selectedCity&&e.step===t.step}))),Ut=n(222),Vt=n(516),Wt=n(56),qt=Object(ge.a)((function(e){var t=e.language,n=void 0===t?"":t,r=e.COMPONENT_NAME,c=void 0===r?"":r,l=e.pageTitleEn,u=void 0===l?"":l,d=e.uid,p=void 0===d?"":d,h=e.isTypeMediaMonk,m=void 0===h?"":h,f=e.googlePlacesAPI,g=e.dictionary,b=e.categoriesList,v=void 0===b?[]:b,y=e.destinationsList,x=void 0===y?[]:y,_=e.floatingBoxPlaceholders,w=e.changeDestination,O=e.defaultLatlng,j=void 0===O?"":O,C=e.setHardResizeMap,E=void 0===C?function(){}:C,T=e.setFirstClick,k=e.setSelectedCities,S=e.mapBoxStyle,M=e.mapBoxToken,L=(e.mapStep,e.geoJsonData),B=(e.emptyGeoJsonObject,e.loading),R=e.selectedCoordinates,D=e.LnglatSW,P=e.LnglatNE,z=e.onChangeZoom,N=e.hardResizeMap,U=e.selectedCities,V=e.appConfig,W=e.isChatCarouselMode,q=void 0!==W&&W,G=e.chatCarouselPlaces,Z=void 0===G?null:G,H=e.chatCarouselCards,X=void 0===H?null:H,K=Ie(),Y=Object(o.useState)(null),J=Object(a.a)(Y,2),Q=J[0],$=J[1],ee=Object(o.useState)(!1),te=Object(a.a)(ee,2),ie=te[0],re=te[1],ae=Object(o.useState)(!1),oe=Object(a.a)(ae,2),se=oe[0],ce=oe[1],le=s.a.useRef({}),ue=Object(o.useContext)(Ut.b),de=ue.isOpen,pe=ue.openChat,he=ue.closeChat,me=Object(o.useCallback)((function(){pe&&pe()}),[pe]),fe=Object(o.useCallback)((function(){he&&he()}),[he]);return s.a.useEffect((function(){if(F.a){var e=new MutationObserver((function(){var e=document.querySelector("[data-rsbs-scroll]"),t=document.getElementById("explore-map-upd-redirection-cta");t&&e?t.classList.add("mobListOpen"):t&&t.classList.remove("mobListOpen")}));e.observe(document.body,{childList:!0,subtree:!0});var t=document.querySelector("[data-rsbs-scroll]"),n=document.getElementById("explore-map-upd-redirection-cta");return n&&t&&n.classList.add("mobListOpen"),function(){e.disconnect()}}}),[ie]),s.a.createElement("div",{"data-locator":c,uid:p},s.a.createElement("div",null,s.a.createElement("div",{className:Object(A.a)("mapboxgl-map-wrapper-wrapper",Object(i.a)({},K.directionLtr,"ar"===n||"he"===n),m===ne.X?"mapboxMediaMonk ".concat(K.mediaMonkStyle):"")},s.a.createElement(Nt,{selectedItem:Q,setSelectedItem:$,googlePlacesAPI:f,lang:n,dictionary:g,categoriesList:v,destinationsList:x,floatingBoxPlaceholders:_,changeDestination:w,defaultLatlng:j,setHardResizeMap:E,setFirstClick:T,type:m,setSelectedCities:k,isFlying:se,setIsFlying:ce,COMPONENT_NAME:c,pageTitleEn:u,moveToFirstResultInViewport:function(e){var t,n,i,r,o;
2if(e){var s=null===le||void 0===le||null===(t=le.current)||void 0===t?void 0:t.map,c=null!==(n=null===le||void 0===le||null===(i=le.current)||void 0===i?void 0:i.flyToSelectedLocation)&&void 0!==n?n:function(){},l=null!==(r=null===le||void 0===le||null===(o=le.current)||void 0===o?void 0:o.checkIfPositionInViewport)&&void 0!==r?r:function(){},u=(null===e||void 0===e?void 0:e.coordinates)||[null,null],d=Object(a.a)(u,2),p=d[0],h=void 0===p?null:p,m=d[1],f=void 0===m?null:m;if(s&&"function"===typeof c&&"function"===typeof l)if(null!==h&&null!==f)l(h,f,s)||c([h,f],s.getZoom())}},isChatCarouselMode:q,chatCarouselPlaces:Z,chatCarouselCards:X,chatLoading:B}),s.a.createElement("div",{className:".mapboxgl-map-wrapper"},s.a.createElement(De,{mapComponentRefs:le,mapBoxStyle:S,token:M,sItem:Q,geoJsonData:L,loading:B,selectedCoordinates:R,LnglatSW:D,LnglatNE:P,onShowMapPopup:function(e){$(e)},categoriesList:v,defaultLatlng:j,language:n,onChangeZoom:z,hardResizeMap:N,setHardResizeMap:E,dictionary:g,isMobile:!0,type:m,selectedCities:U,setIsFlying:ce,isFlying:se,appConfig:V,setShowRedirection:re,isChatCarouselMode:q}))),s.a.createElement("div",{className:K.mainNavContainer},s.a.createElement("div",{className:K.buttonContainer},s.a.createElement("div",{className:"buttonIcon leftRadius",id:"zoomOut"},s.a.createElement(I.a,{name:"mapzoomout"})),s.a.createElement("div",{className:"buttonIcon rightRadius",id:"zoomIn"},s.a.createElement(I.a,{name:"mapzoomin"})))),q&&s.a.createElement("div",{className:K.askAbuDhabiBtn,onClick:me},s.a.createElement(Wt.a,{className:K.askAbuDhabiBtnIcon}),s.a.createElement("span",{className:K.askAbuDhabiBtnText},"Ask Abu Dhabi")),s.a.createElement("div",{className:K.topCrossIc,onClick:function(){F.a&&(window.history.length>4?window.history.back():window.open("".concat(window.location.origin,"/").concat(n),"_parent"))}},s.a.createElement(I.a,{name:"closeiconnew"})),ie&&s.a.createElement("div",{id:"explore-map-upd-redirection-cta",className:"".concat(K.redirectionIcon),onClick:function(){}},s.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.1383 0.861785C15.3375 1.06101 15.3899 1.36396 15.2693 1.61858L9.26934 14.2852C9.1488 14.5397 8.88137 14.691 8.60115 14.6633C8.32094 14.6355 8.08838 14.4347 8.02008 14.1615L6.78376 9.21627L1.83849 7.97995C1.56531 7.91166 1.3645 7.67909 1.33676 7.39888C1.30901 7.11867 1.46031 6.85124 1.71479 6.7307L14.3815 0.730698C14.6361 0.610088 14.939 0.662563 15.1383 0.861785ZM3.96908 7.13823L7.4952 8.01976C7.73406 8.07947 7.92056 8.26598 7.98027 8.50483L8.8618 12.031L13.2653 2.73478L3.96908 7.13823Z",fill:"#00605F"})))),q&&s.a.createElement(Vt.default,{isOpen:de,onClose:fe}))})),Gt=(n(2020),n(90)),Zt=Object(x.a)((function(e){return{container:{position:"relative",width:"100%",height:"100vh",overflow:"hidden"},backButton:Object(i.a)({position:"fixed",top:Object(w.p)(24),left:Object(w.p)(24),width:Object(w.p)(40),height:Object(w.p)(40),backgroundColor:e.palette.common.WhiteUpd(),border:"1px solid ".concat(e.palette.common.borderLight()),borderRadius:Object(w.p)(80),boxShadow:vt.a.raised,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",zIndex:1e3,transition:"background-color 0.2s ease","&:hover":{backgroundColor:e.palette.common.Grey4()},"& svg":{width:Object(w.p)(16),height:Object(w.p)(16),color:e.palette.common.Palm()}},Object(w.e)("mdUpd"),{top:Object(w.q)(16),left:Object(w.q)(16),width:Object(w.q)(40),height:Object(w.q)(40),borderRadius:Object(w.q)(80),"& svg":{width:Object(w.q)(16),height:Object(w.q)(16),color:e.palette.common.Palm()}}),filterButton:Object(i.a)({position:"fixed",top:Object(w.p)(24),right:Object(w.p)(24),height:Object(w.p)(40),backgroundColor:e.palette.common.WhiteUpd(),borderRadius:Object(w.p)(80),border:"1px solid ".concat(e.palette.common.borderLight()),boxShadow:vt.a.raised,display:"flex",alignItems:"center",justifyContent:"center",gap:Object(w.p)(8),paddingLeft:Object(w.p)(16),paddingRight:Object(w.p)(16),paddingTop:Object(w.p)(8),paddingBottom:Object(w.p)(8),cursor:"pointer",zIndex:1e3,transition:"background-color 0.2s ease","&:hover":{backgroundColor:e.palette.common.Grey4()}},Object(w.e)("mdUpd"),{top:Object(w.q)(16),right:Object(w.q)(16),height:Object(w.q)(40),paddingLeft:Object(w.q)(16),paddingRight:Object(w.q)(16),paddingTop:Object(w.q)(8),paddingBottom:Object(w.q)(8),gap:Object(w.q)(8),borderRadius:Object(w.q)(80)}),filterButtonText:Object(i.a)({fontFamily:e.custom.fontFamily.primaryBold,fontSize:Object(w.p)(14),fontStyle:"normal",fontWeight:700,lineHeight:"120%",letterSpacing:"0.7
2px",textTransform:"uppercase",color:e.palette.common.Palm(),textAlign:"center"},Object(w.e)("mdUpd"),{fontSize:Object(w.q)(14)}),filterIcon:Object(i.a)({width:Object(w.p)(16),height:Object(w.p)(16),flexShrink:0,color:e.palette.common.Palm()},Object(w.e)("mdUpd"),{width:Object(w.q)(16),height:Object(w.q)(16)}),mapContainer:{position:"absolute",top:0,left:0,right:0,bottom:0,width:"100%",height:"100%"},chatCarouselContainer:{position:"fixed",bottom:Object(w.q)(16),left:0,right:0,zIndex:1e3,display:"block",pointerEvents:"none"},chatCarouselScroll:{display:"flex",overflowX:"auto",overflowY:"hidden",gap:Object(w.q)(12),paddingLeft:Object(w.q)(24),paddingRight:Object(w.q)(24),paddingBottom:Object(w.q)(8),pointerEvents:"auto",minHeight:Object(w.q)(150),WebkitOverflowScrolling:"touch",scrollBehavior:"smooth","&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",msOverflowStyle:"none"},chatCardWrapper:{flexShrink:0,cursor:"pointer",pointerEvents:"auto",width:Object(w.q)(327),maxWidth:Object(w.q)(327),"& > *":{width:"100% !important",height:"auto !important",borderRadius:"".concat(Object(w.q)(16)," !important"),backgroundColor:"".concat(e.palette.common.WhiteUpd()," !important"),border:"1px solid ".concat(e.palette.common.borderLight()," !important"),padding:"".concat(Object(w.q)(12)," !important"),gap:"".concat(Object(w.q)(12)," !important"),boxSizing:"border-box !important",flexDirection:"column !important"},'& [class*="mobileTopSection"]':{display:"flex !important",alignItems:"flex-start",gap:Object(w.q)(12),width:"100%"},'& [class*="mobileImageWrapper"]':{display:"block !important",width:Object(w.q)(98),height:Object(w.q)(65),flexShrink:0,borderRadius:Object(w.q)(8),overflow:"hidden"},'& [class*="mobileTextContent"]':{display:"flex !important",flexDirection:"column",gap:Object(w.q)(2),flex:1,minWidth:0},'& [class*="mobileMoreButton"]':{display:"flex !important"},'& [class*="mobileBottomSection"]':{display:"flex !important",flexDirection:"column",gap:Object(w.q)(8),width:"100%"},'& [class*="hideOnMobile"]':{display:"none !important"},'& [class*="content"]':{display:"none !important"}},emptyState:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",fontSize:Object(w.p)(16),color:e.palette.text.secondary},emptyFilterState:{display:"flex",alignItems:"center",justifyContent:"center",minHeight:Object(w.q)(150),paddingLeft:Object(w.q)(24),paddingRight:Object(w.q)(24),fontSize:Object(w.q)(14),fontFamily:'"Abu Dhabi Basis"',fontWeight:400,lineHeight:"150%",color:e.palette.common.Grey1Upd(),textAlign:"center",pointerEvents:"auto",backgroundColor:e.palette.common.WhiteUpd(),borderRadius:Object(w.q)(16),border:"1px solid ".concat(e.palette.common.borderLight()),margin:"0 ".concat(Object(w.q)(24)),boxShadow:vt.a.raised}}})),Ht=n(557),Xt=n(289),Kt=n(1871),Yt=n(821),Jt=["className"],Qt=function(e){var t=e.className,n=Object(v.a)(e,Jt);return s.a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:t},n),s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.66699 4.66667C6.66699 4.29848 6.96547 4 7.33366 4H13.3337C13.7018 4 14.0003 4.29848 14.0003 4.66667C14.0003 5.03486 13.7018 5.33333 13.3337 5.33333H7.33366C6.96547 5.33333 6.66699 5.03486 6.66699 4.66667Z",fill:"currentColor"}),s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.66699 11.3334C2.66699 10.9652 2.96547 10.6667 3.33366 10.6667H9.33366C9.70185 10.6667 10.0003 10.9652 10.0003 11.3334C10.0003 11.7016 9.70185 12.0001 9.33366 12.0001H3.33366C2.96547 12.0001 2.66699 11.7016 2.66699 11.3334Z",fill:"currentColor"}),s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3337 10.0001C10.5973 10.0001 10.0003 10.597 10.0003 11.3334C10.0003 12.0698 10.5973 12.6667 11.3337 12.6667C12.07 12.6667 12.667 12.0698 12.667 11.3334C12.667 10.597 12.07 10.0001 11.3337 10.0001ZM8.66699 11.3334C8.66699 9.86066 9.8609 8.66675 11.3337 8.66675C12.8064 8.66675 14.0003 9.86066 14.0003 11.3334C14.0003 12.8062 12.8064 14.0001 11.3337 14.0001C9.8609 14.0001 8.66699 12.8
2062 8.66699 11.3334Z",fill:"currentColor"}),s.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.66667 3.33333C3.93029 3.33333 3.33333 3.93029 3.33333 4.66667C3.33333 5.40305 3.93029 6 4.66667 6C5.40305 6 6 5.40305 6 4.66667C6 3.93029 5.40305 3.33333 4.66667 3.33333ZM2 4.66667C2 3.19391 3.19391 2 4.66667 2C6.13943 2 7.33333 3.19391 7.33333 4.66667C7.33333 6.13943 6.13943 7.33333 4.66667 7.33333C3.19391 7.33333 2 6.13943 2 4.66667Z",fill:"currentColor"}))},$t=Object(x.a)((function(e){var t,n,a;return{root:{width:Object(w.p)(420),"@media (max-width: 1023.85px)":{width:"100%",height:"100svh"},"& .filterDrawerWrapper":{width:Object(w.p)(420),height:"100%",display:"flex",flexDirection:"column","@media (max-width: 1023.85px)":{width:"100%",height:"100svh"}},"& .filterDrawerHeader":{display:"flex",columnGap:"var(--mfd-spacing-s)",padding:"var(--mfd-spacing-s) var(--mfd-spacing-m)",borderBottom:"1px solid ".concat(e.palette.common.borderLight()),marginBottom:"var(--mfd-spacing-l)",justifyContent:"space-between",alignItems:"center"},"& .filterDrawerCloseBtn":(n={width:Object(w.p)(18),height:Object(w.p)(18),cursor:"pointer"},Object(i.a)(n,Object(w.e)("mdUpd"),{width:Object(w.q)(18),height:Object(w.q)(18)}),Object(i.a)(n,"& svg",(t={width:Object(w.p)(18),height:Object(w.p)(18)},Object(i.a)(t,Object(w.e)("mdUpd"),{width:Object(w.q)(18),height:Object(w.q)(18)}),Object(i.a)(t,"& path",{fill:"".concat(e.palette.common.Palm())}),t)),n),"& .filterDrawerBody":{display:"flex",flexDirection:"column",justifyContent:"space-between",flex:"1",position:"relative",overflow:"hidden"},"& .tagWrapper":{paddingInline:"var(--mfd-spacing-m)",overflowY:"auto",flex:"1",paddingBottom:Object(w.p)(80),"@media (max-width: 1023.85px)":{paddingBottom:Object(w.q)(80)}},"& .tagInnerWrapper":{marginBottom:"var(--mfd-spacing-l)"},"& .tagList":{display:"flex",marginTop:"var(--mfd-spacing-xs)",rowGap:Object(w.p)(12),flexWrap:"wrap"},"& .filterDrawerTagWrapper":Object(r.a)({},e.mixins.paddingRight(Object(w.p)(12))),"& .filterDrawerTag":{width:"fit-content"},"& .filterDrawerFooter":(a={padding:"var(--mfd-spacing-s) var(--mfd-spacing-m)",backgroundColor:e.palette.common.SurfaceSunken(),display:"flex",justifyContent:"space-between",position:"absolute",bottom:0,left:0,width:"100%",zIndex:1,columnGap:Object(w.p)(16)},Object(i.a)(a,Object(w.e)("mdUpd"),{columnGap:Object(w.q)(16)}),Object(i.a)(a,"& .filterDrawerBtn",Object(i.a)({maxWidth:Object(w.p)(178),width:"100%",display:"inline"},e.breakpoints.down("md"),{maxWidth:"unset"})),a)}}})),en=function(e){var t=e.selectedFilters,n=e.onClickCloseFilterView,c=e.onApplyFilters,l=e.onResetFilters,u=e.isFilterOpen,d=e.filterSections,p=void 0===d?[]:d,h=e.COMPONENT_NAME,m=e.pageTitleEn,f=$t(),b=Object(o.useState)({categories:[],regions:[],priceRanges:[],mealTypes:[],cuisines:[],accommodationAccessibility:[],eventTypes:[],hotelRatings:[],tripAdvisorRatings:[]}),v=Object(a.a)(b,2),y=v[0],x=v[1],_=Object(k.a)("(max-width:".concat(1023.85,"px)"));Object(o.useEffect)((function(){t&&x(t)}),[t,u]);var w=function(){n()};return s.a.createElement(z.a,{open:u,onOpen:function(){},onClose:function(){return w()},className:f.root,anchor:"".concat(_?"bottom":"left"),transitionDuration:_?400:200,ModalProps:{BackdropProps:{style:{backgroundColor:"transparent",width:0}}}},s.a.createElement("div",{className:"filterDrawerWrapper"},s.a.createElement("div",{className:"filterDrawerHeader"},s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:_?"h4":"h5",variant:_?"h4Upd":"h5Upd"},Object(Ye.a)("mfdExploreMapFilters")),s.a.createElement("div",{className:"filterDrawerCloseBtn",onClick:w},s.a.createElement(I.a,{name:"closeiconnew"}))),s.a.createElement("div",{className:"filterDrawerBody"},s.a.createElement("div",{className:"tagWrapper"},p.map((function(e,t){return s.a.createElement("div",{className:"tagInnerWrapper",key:e.key},s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:_?"h5":"h6",variant:_?"h5Upd":"h6Upd"},function(){var t=Object(Ye.a)(e.titleKey);return t&&t!==e.titleKey?t:e.title}()),s.a.createElement("div",{className:"tagList"},e.options.map((function(t,n){var a,o=(null===(a=y[e.key])||void 0===a?void 0:a.includes(t.value))||!1;return s.a.createElement("div",{className:"filterDrawerTagWrapper",key:n},s.a.createElement(Xe.a,{value:t.value,className:"filterDrawerTag",withSvg:!1,selected:o,buttonTabLabel:t.label,onClick:function(){var n,a,o;n=e.key,a=t.value,x((function(e){var t=e[n]||[],o=t.includes(a);return Object(r.a)(Object(r.a)({},e),{},Object(i.a)({},n,o?t.filter((function(e){return e!==a})):[].concat(Object(g.a)(t),[a])))})),o=Object(r.a)(Object(r.a)({},B.a.pageBodyInteraction.filter_button_click),{},{call_to_action:t.label,page_name_eng:m,page_subsection:e.title,UX_component_name:h}),Object(L.b)(o)}}))}))))}
2)),0===p.length&&s.a.createElement("div",{className:"tagInnerWrapper"},s.a.createElement(C.a,{animateSettings:{willAnimate:!1},component:"body1",variant:"body1Upd"},"No filters available for this data"))),s.a.createElement("div",{className:"filterDrawerFooter"},s.a.createElement(Ke.a,{variant:"buttonOutline",btnText:Object(Ye.a)("mfdExploreMapReset"),onClick:function(){l&&(l(),n())},className:"filterDrawerBtn"}),s.a.createElement(Ke.a,{btnText:"FILTER",onClick:function(){c&&c(y)},className:"filterDrawerBtn"})))))},tn=n(37),nn=function(e){var t=e.chatCards,n=void 0===t?[]:t,i=e.onCardClick,r=e.lang,c=void 0===r?"en":r,l=e.dictionary,u=void 0===l?{}:l,d=e.mapBoxStyle,p=e.mapBoxToken,h=e.defaultLatlng,m=e.LnglatSW,f=e.LnglatNE,g=e.appConfig,b=(e.categoriesList,e.destinationsList,e.defaultSelectedCity,Zt()),v=Object(y.f)(),x=Object(Gt.d)(),_=Object(o.useContext)(Ut.b),w=null===_||void 0===_?void 0:_.openChat,O=Object(o.useCallback)((function(){w&&w()}),[w]),j=Object(o.useState)(null),C=Object(a.a)(j,2),E=C[0],T=C[1],k=Object(o.useState)(!1),S=Object(a.a)(k,2),A=S[0],I=S[1],M=Object(o.useState)(!1),L=Object(a.a)(M,2),B=L[0],R=L[1],D=Object(o.useState)({categories:[],regions:[],priceRanges:[],mealTypes:[],cuisines:[],accommodationAccessibility:[],eventTypes:[],hotelRatings:[],tripAdvisorRatings:[]}),P=Object(a.a)(D,2),z=P[0],N=P[1],U=Object(o.useState)(n),V=Object(a.a)(U,2),W=V[0],q=V[1],G=Object(o.useState)(null),Z=Object(a.a)(G,2),H=Z[0],X=Z[1],K=Object(o.useMemo)((function(){return We(n)}),[n]),Y=Object(o.useMemo)((function(){return Ge(K)}),[K]);Object(o.useEffect)((function(){q(n)}),[n]),Object(o.useEffect)((function(){var e=Object(Ze.a)(W);X(e)}),[W]);var J=Object(o.useCallback)((function(){F.a&&(window.location.href="".concat(window.location.origin,"/").concat(c,"/accounts/user-itinerary"))}),[c]),Q=Object(o.useCallback)((function(e){F.a&&(window.location.href="".concat(window.location.origin,"/").concat(c,"/accounts/user-itinerary?itineraryId=").concat(e))}),[c]),$=Object(Yt.a)({isAuthenticated:x,onCreateNew:J,onNavigateToItinerary:Q}),ee=$.handleAddToItinerary,te=$.handleItineraryAuthRequired,ne=$.handleCreateItinerary,ie=$.itineraryModalProps,re=function(){w&&w(),v.goBack()},ae=function(e){e&&(sessionStorage.setItem("askAbuDhabiPendingTellMeMore",e),O())};return n&&0!==n.length?s.a.createElement("div",{className:b.container},s.a.createElement("div",{className:b.backButton,onClick:re},s.a.createElement(tn.f,{size:16})),s.a.createElement("div",{className:b.filterButton,onClick:function(){R(!0)}},s.a.createElement("span",{className:b.filterButtonText},"FILTER"),s.a.createElement(Qt,{className:b.filterIcon})),s.a.createElement("div",{className:b.mapContainer},s.a.createElement(Kt.a,{geoJsonData:H,selectedItem:E,language:c,dictionary:u,mapBoxStyle:d,token:p,defaultLatlng:h,LnglatSW:m,LnglatNE:f,appConfig:g,setIsFlying:I,isFlying:A})),s.a.createElement("div",{className:b.chatCarouselContainer},W.length>0?s.a.createElement("div",{className:b.chatCarouselScroll},W.map((function(e,t){return s.a.createElement("div",{key:e.id||t,className:b.chatCardWrapper,onClick:function(){return t=e.id,T(t),void(i&&i(t));var t}},s.a.createElement(Ht.a,Object.assign({},e,{itemUniqueKey:e.id,onTellMeMoreClick:ae,onGetDirectionsClick:function(){return function(e){if(e){var t=e.title||"this location";sessionStorage.setItem("askAbuDhabiPendingGetDirections",JSON.stringify({title:t})),O()}}(e)},onAddToItineraryClick:function(){return ee(e)},onItineraryAuthRequired:function(){return te(e)},onCreateItinerary:ne})))}))):s.a.createElement("div",{className:b.emptyFilterState},"No locations match your selected filters")),s.a.createElement(en,{isFilterOpen:B,onClickCloseFilterView:function(){R(!1)},onApplyFilters:function(e){N(e);var t=n.filter((function(t){return qe(t,e)}));q(t),R(!1)},onResetFilters:function(){N({categories:[],regions:[],priceRanges:[],mealTypes:[],cuisines:[],accommodationAccessibility:[],eventTypes:[],hotelRatings:[],tripAdvisorRatings:[]}),q(n)},selectedFilters:z,filterSections:Y,COMPONENT_NAME:"ChatCarouselMapView",pageTitleEn:"Chat Carousel Map"}),s.a.createElement(Xt.a,Object.assign({},ie,{isChatContext:!0}))):s.a.createElement("div",{className:b.container},s.a.createElement("div",{className:b.backButton,onClick:re},s.a.createElement(tn.g,{size:24})),s.a.createElement("div",{className:b.emptyState},"No locations to display"))},rn=function(e){return{getExploreMap:function(t){return e(Object(c.a)(t))},updateGeoJSONData:function(t){return e(Object(c.j)(t))},updateSearchTermData:function(t){return e(Object(l.a)(t))},setMapStepValue:function(t){return e(Object(c.i)(t))},updatePlacesInView:function(t){return e(Object(c.k)(t))},setIsMapPanning:function(t){return e(Object(c.h)(t))}}},an=Object(d.b)({places:$.c,completePlaces:$.b,geoJsonData:$.d,loading:$.g,isMapPanning:$.f,mapStep:$.h,searchTermData:u.a,selectedCategories:$.i});t.default=Object(ge.a)(Object(h.withSitecoreContext)()(Object(p.b)()(Object(m.b)(an,rn)((function(e){var t=e.appConfig,n=e.t,c=(e.places,e.geoJsonData),l=e.updateGeoJSONData,u=(e.updateSearchTermData,e.mapStep),d=e.setMapStepValue,p=e.updatePlacesInView,h=e.searchTermData,m=(e.selectedCategories,e.loading),g=e.isMapPanning,b
2=e.setIsMapPanning,v=e.params,y=Object(f.get)(e,"sitecoreContext.route",""),x=Object(f.get)(e,"sitecoreContext.pageTitleEn",""),_=Object(Se.B)(e),w=Object(f.get)(y,"placeholders.vad-main[0].params.type",""),O=Object(f.get)(y,"fields.defaultLatLng.value",""),j=Object(f.get)(y,"fields.categories.fields.ListData",[]),C=Object(f.get)(y,"fields.destination.fields.ListData",[]),E=Object(f.get)(y,"fields.categoriesTitle.value",[]),T=Object(f.get)(y,"fields.destinationsTitle.value",[]),k=Object(f.get)(y,"fields.searchPlaceholderWeb.value",[]),S=Object(f.get)(y,"fields.searchPlaceholderMobile.value",[]),M=Object(f.get)(y,"fields.heading",[]),L=Object(f.get)(y,"fields.headingMobile",[]),B=Object(f.get)(y,"fields.descriptionNoSearch",[]),R=Object(f.get)(y,"fields.noCategoryDescription",[]),D=Object(f.get)(y,"fields.noCategoryHeading",[]),P=Object(f.get)(y,"fields.descriptionNoCategory",[]),z=Object(f.get)(y,"fields.lngLatSW",[]),N=Object(f.get)(y,"fields.lnglatNE",[]),U=Object(f.get)(v,"variation",""),V={categoriesTitle:E,destinationsTitle:T,searchPlaceholderWeb:k,searchPlaceholderMobile:S,noSearchHeadingWeb:M,noSearchHeadingMobile:L,descriptionNoCategory:P,noSearchDescription:B,noCategoryDescription:R,noCategoryHeading:D},W=Object(f.get)(e,"sitecoreContext.language","en"),q="ar"==W||"he"==W,G=be(),Z=n,H=Object(o.useState)(!1),X=Object(a.a)(H,2),K=X[0],Y=X[1],J=Object(o.useState)(null),Q=Object(a.a)(J,2),$=Q[0],ee=Q[1],te=Object(o.useState)(null),ie=Object(a.a)(te,2),re=ie[0],ae=ie[1],oe=Object(o.useState)(null),se=Object(a.a)(oe,2),ce=(se[0],se[1]),le=Object(o.useState)(null),ue=Object(a.a)(le,2),de=(ue[0],ue[1]),pe=Object(o.useState)(!1),he=Object(a.a)(pe,2),me=(he[0],he[1],Object(o.useState)(!1)),ge=Object(a.a)(me,2),ve=ge[0],ye=ge[1],xe=Object(o.useState)(!1),_e=Object(a.a)(xe,2),we=_e[0],Oe=_e[1],je=Object(o.useState)(null),Ce=Object(a.a)(je,2),Ee=Ce[0],Te=Ce[1],Ie=U===ne.ab,Me={features:[],crs:null,type:"none"},Le=Object(o.useState)(Object(r.a)({categories:["Activity","Accommodation","Dining","Attraction","Event"],regionTags:[],lang:W},Ie&&Object(Se.t)(Object(Ye.a)("isExploreMap")))),Be=Object(a.a)(Le,2),Re=Be[0],De=(Be[1],Object(o.useState)(!1)),Pe=Object(a.a)(De,2),ze=(Pe[0],Pe[1]),Fe=function(){if(!F.a)return null;if("chat"!==new URLSearchParams(window.location.search).get("mode"))return null;var e=Object(Ze.c)();return e&&0!==e.length?{cards:e,places:Object(Ze.b)(e),geoJSON:Object(Ze.a)(e)}:null},Ne=Fe(),Ue=Object(f.get)(e,"appConfig.path","").includes("mode=chat"),Ve=Object(o.useState)(!1),We=Object(a.a)(Ve,2),qe=We[0],Ge=We[1],He=Object(o.useState)(!!Ne),Xe=Object(a.a)(He,2),Ke=Xe[0],Je=Xe[1],Qe=Object(o.useState)((null===Ne||void 0===Ne?void 0:Ne.cards)||null),$e=Object(a.a)(Qe,2),et=$e[0],tt=$e[1],nt=Object(o.useState)((null===Ne||void 0===Ne?void 0:Ne.places)||null),it=Object(a.a)(nt,2),rt=it[0],at=it[1],ot=Object(o.useState)(!1),st=Object(a.a)(ot,2),ct=st[0],lt=st[1];Object(o.useEffect)((function(){Ge(!0)}),[]),Object(o.useEffect)((function(){if(!Ke){var e=Fe();e&&(tt(e.cards),at(e.places),Je(!0))}}),[]),Object(o.useEffect)((function(){if(F.a){var e=function(){lt(window.innerWidth<1024)};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}}),[]),F.a&&w===ne.X&&(document.documentElement.style.setProperty("--headerHeight","0px"),document.getElementsByTagName("html")[0].classList.add("mediaMonk")),Object(o.useEffect)((function(){Ke?rt&&rt.length>0&&l(rt):ut()}),[Ke,rt]);var ut=function(){var n=Re;e.getExploreMap({apiUrl:"".concat(t.GEO_JSON_API),payload:n})},dt=function(e,t){ye(t),t&&ce(null),ae(e)},pt=function(t){if(!Ke){if(ve&&!g&&u<1)return ye(!1),void b(!0);if(h.data)ye(!1);else{var n=e.completePlaces.filter((function(e){return function(e,t,n){var i=n.getMap().getBounds();return t>=i._sw.lat&&t<=i._ne.lat&&e>=i._sw.lng&&e<=i._ne.lng}(e.coordinates[0],e.coordinates[1],t)}));n.length>=0&&(1!==u&&0==we&&d(1),p(n),Ie||l({features:n,crs:null}),g||b(!0))}}},ht=function(){Oe(!0),setTimeout((function(){Oe(!1)}),200)};return Object(o.useEffect)((function(){F.a&&window.addEventListener("resize",ht)})),Ue&&!qe?s.a.createElement(qt,{language:W,COMPONENT_NAME:Ae.a,uid:_,isTypeMediaMonk:w,googlePlacesAPI:t.GOOGLE_PLACES_API,dictionary:Z,categoriesList:j,destinationsList:C,floatingBoxPlaceholders:V,changeDestination:dt,defaultLatlng:O,setHardResizeMap:Y,setFirstClick:ze,setSelectedCities:Te,mapB
2oxStyle:t.EXPLORE_MAP_UPD_STYLE,mapBoxToken:t.MAP_ACCESS_TOKEN,mapStep:1,geoJsonData:Me,emptyGeoJsonObject:Me,loading:!0,selectedCoordinates:re,LnglatSW:z,LnglatNE:N,onChangeZoom:pt,hardResizeMap:K,selectedCities:Ee,appConfig:t,pageTitleEn:x,isChatCarouselMode:!0,chatCarouselPlaces:null,chatCarouselCards:null}):qe&&Ke&&et?ct?s.a.createElement(nn,{chatCards:et,lang:W,dictionary:Z,mapBoxStyle:t.EXPLORE_MAP_UPD_STYLE,mapBoxToken:t.MAP_ACCESS_TOKEN,defaultLatlng:O,LnglatSW:z,LnglatNE:N,appConfig:t,categoriesList:j,destinationsList:C,defaultSelectedCity:{name:"Abu Dhabi",searchKey:"abu-dhabi",coordinates:O?O.split(",").reverse():[]}}):s.a.createElement(qt,{language:W,COMPONENT_NAME:Ae.a,uid:_,isTypeMediaMonk:w,googlePlacesAPI:t.GOOGLE_PLACES_API,dictionary:Z,categoriesList:j,destinationsList:C,floatingBoxPlaceholders:V,changeDestination:dt,defaultLatlng:O,setHardResizeMap:Y,setFirstClick:ze,setSelectedCities:Te,mapBoxStyle:t.EXPLORE_MAP_UPD_STYLE,mapBoxToken:t.MAP_ACCESS_TOKEN,mapStep:1,geoJsonData:c,emptyGeoJsonObject:Me,loading:!1,selectedCoordinates:re,LnglatSW:z,LnglatNE:N,onChangeZoom:pt,hardResizeMap:K,selectedCities:Ee,appConfig:t,pageTitleEn:x,isChatCarouselMode:!0,chatCarouselPlaces:rt,chatCarouselCards:et}):Ie?s.a.createElement(qt,{language:W,COMPONENT_NAME:Ae.a,uid:_,isTypeMediaMonk:w,googlePlacesAPI:t.GOOGLE_PLACES_API,dictionary:Z,categoriesList:j,destinationsList:C,floatingBoxPlaceholders:V,changeDestination:dt,defaultLatlng:O,setHardResizeMap:Y,setFirstClick:ze,setSelectedCities:Te,mapBoxStyle:t.EXPLORE_MAP_UPD_STYLE,mapBoxToken:t.MAP_ACCESS_TOKEN,mapStep:u,geoJsonData:c,emptyGeoJsonObject:Me,loading:m,selectedCoordinates:re,LnglatSW:z,LnglatNE:N,onChangeZoom:pt,hardResizeMap:K,selectedCities:Ee,appConfig:t,pageTitleEn:x}):s.a.createElement("div",{"data-locator":Ae.a,uid:_},s.a.createElement("div",null,s.a.createElement("div",{className:Object(A.a)("mapboxgl-map-wrapper-wrapper",Object(i.a)({},G.directionLtr,"ar"===W||"he"===W),w===ne.X?"mapboxMediaMonk ".concat(G.mediaMonkStyle):"")},s.a.createElement(fe,{selectedItem:$,setSelectedItem:ee,googlePlacesAPI:t.GOOGLE_PLACES_API,lang:W,dictionary:Z,categoriesList:j,destinationsList:C,floatingBoxPlaceholders:V,changeDestination:dt,defaultLatlng:O,setHardResizeMap:Y,setFirstClick:ze,type:w,COMPONENT_NAME:Ae.a,pageTitleEn:x}),s.a.createElement("div",{className:".mapboxgl-map-wrapper"},s.a.createElement(ke,{mapBoxStyle:t.MAP_BOX_STYLE,token:t.MAP_ACCESS_TOKEN,sItem:$,geoJsonData:u>0?c:Me,loading:m,selectedCoordinates:re,LnglatSW:z,LnglatNE:N,onShowMapPopup:function(e,t){de(e),ee(e)},categoriesList:j,defaultLatlng:O,language:W,onChangeZoom:pt,hardResizeMap:K,setHardResizeMap:Y,dictionary:Z,isMobile:!0,type:w}))),s.a.createElement("div",{className:q?G.mainNavContainerRTL:G.mainNavContainer},s.a.createElement("div",{className:G.buttonContainer},s.a.createElement(I.a,{className:G.buttonIcon,id:"zoomIn",name:"ZoomIn"}),s.a.createElement(I.a,{className:G.buttonIcon,id:"zoomOut",name:"ZoomOut"})))))})))))},1541:function(e,t,n){"use strict";var i=n(1578),r=n(2),a=n(3),o=[0,1,2,3,4,5,6,7,8,9,10],s=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var l=n(530),u=n.n(l)()((function(e){return Object(a.a)(Object(a.a)({root:Object(r.a)({marginLeft:"var(--mfd-spacing-m)",marginRight:"var(--mfd-spacing-m)"},e.breakpoints.up("lg"),{marginLeft:"5.5%",marginRight:"5.5%"}),container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%",marginLeft:"0",marginRight:"0"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return o.forEach((function(i){var r=e.spacing(i);0!==r&&(n["spacing-".concat(t,"-").concat(i)]={margin:"-".concat(c(r,2)),width:"calc(100% + ".concat(c(r),")"),"& > $item":{padding:c(r,2)}})})),n}(e,"xs")),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var i={};
2s.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var r="".concat(Math.round(e/12*1e8)/1e6,"%");i[t]={flexBasis:r,flexGrow:0,maxWidth:r}}else i[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else i[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?Object.assign(e,i):e[t.breakpoints.up(n)]=i}(t,e,n),t}),{}))}),{name:"MuiGrid"})(i.a);t.a=u},1542:function(e,t,n){"use strict";var i=n(0),r=n.n(i),a=n(1544),o=n(84),s=n(240),c=n(20),l=n(3),u=n(865),d=n(1),p=n(27),h=Object(u.a)((function(e){return Object(p.c)(e)?{richTextWrap:{"& h1":Object(l.a)(Object(l.a)({},e.typography.h1),{},{marginTop:"var(--mfd-spacing-l)",marginBottom:"var(--mfd-spacing-l)"}),"& h2":Object(l.a)(Object(l.a)({},e.typography.h2),{},{marginTop:"var(--mfd-spacing-l)",marginBottom:"var(--mfd-spacing-l)"}),"& h3":Object(l.a)(Object(l.a)({},e.typography.h3),{},{marginTop:"var(--mfd-spacing-l)",marginBottom:"var(--mfd-spacing-l)"}),"& h4":Object(l.a)(Object(l.a)({},e.typography.h4),{},{marginTop:"var(--mfd-spacing-l)",marginBottom:"var(--mfd-spacing-l)"}),"& h5":Object(l.a)(Object(l.a)({},e.typography.h5),{},{marginBottom:"var(--mfd-spacing-s)"}),"& h6":Object(l.a)(Object(l.a)({},e.typography.body1Regular),{},{marginBottom:"var(--mfd-spacing-s)"}),"& p":Object(l.a)(Object(l.a)({},e.typography.body1),{},{color:e.palette.text.darkGrey,margin:"0 0 var(--mfd-spacing-s)"}),"& ul":{color:e.palette.text.darkGrey},"& ol":{color:e.palette.text.darkGrey},"& a":Object(l.a)(Object(l.a)({},e.typography.body1),{},{color:e.palette.common.Sunset()}),"& strong, & b":{fontFamily:e.custom.fontFamily.primaryBold}}}:{richTextWrap:{"& h1":Object(l.a)(Object(l.a)({},e.typography.h1),{},{marginTop:Object(d.p)(32),marginBottom:Object(d.p)(32)}),"& h2":Object(l.a)(Object(l.a)({},e.typography.h2),{},{marginTop:Object(d.p)(32),marginBottom:Object(d.p)(32)}),"& h3":Object(l.a)(Object(l.a)({},e.typography.h3),{},{marginTop:Object(d.p)(32),marginBottom:Object(d.p)(32)}),"& h4":Object(l.a)(Object(l.a)({},e.typography.h4),{},{marginTop:Object(d.p)(32),marginBottom:Object(d.p)(32)}),"& h5":Object(l.a)(Object(l.a)({},e.typography.h5),{},{marginBottom:Object(d.p)(16)}),"& h6":Object(l.a)(Object(l.a)({},e.typography.body1Regular),{},{marginBottom:Object(d.p)(16)}),"& p":Object(l.a)(Object(l.a)({},e.typography.body1),{},{color:e.palette.text.darkGrey,margin:"0 0 ".concat(e.spacing(2))}),"& ul":{color:e.palette.text.darkGrey},"& ol":{color:e.palette.text.darkGrey},"& a":Object(l.a)(Object(l.a)({},e.typography.body1),{},{color:e.palette.common.AbuDhabiOrange}),"& strong, & b":{fontFamily:e.custom.fontFamily.primaryBold}}}})),m=n(209);t.a=Object(m.a)((function(e){var t,n=e.innerHTML,i=e.className,l=h(),u=Object(s.isExperienceEditorActive)(),d=n&&(null===n||void 0===n?void 0:n.value)&&(null===n||void 0===n||null===(t=n.value)||void 0===t?void 0:t.replace(/\s*style=(["'])(.*?)\1/g,""));return u?r.a.createElement(o.RichText,{className:Object(c.a)(l.richTextWrap,i||"","richText","richTextSitecore"),field:n}):n&&(null===n||void 0===n?void 0:n.value)?r.a.createElement("div",{className:"".concat(l.richTextWrap," ").concat(i||""," richText"),dangerouslySetInnerHTML:{__html:Object(a.a)(d)}}):null}))},1543:function(e,t,n){"use strict";var i=n(9),r=n(1511),a=n(1519),o=n(1515),s=n(1517),c=n(0),l=n.n(c),u=n(865),d=n(3),p=n(2),h=n(1),m=function(e){var t,n,i,r,a,o,s,c,l,u,m,f;return{root:(f={backgroundColor:"#fffff",maxWidth:Object(h.p)(614),width:"100%",borderTopLeftRadius:Object(h.p)(2),borderTopRightRadius:Object(h.p)(2),transition:"ease 1s all"},Object(p.a)(f,e.breakpoints.down("sm"),{maxWidth:"100%",borderTopLeftRadius:Object(h.q)(2),borderTopRightRadius:Object(h.q)(2)}),Object(p.a)(f,"& .toastWrapper",{"& .contentWrapper":{display:"flex",alignItems:"center","& .crossButton":(n={minWidth:"auto",width:Object(h.p)(36),height:Object(h.p)(36),backgroundColor:"#f7f7f7",borderRadius:"50%",border:"2px solid #fff"},Object(p.a)(n,Object(h.e)("md"),{width:Object(h.q)(28),height:Object(h.q)(28)}),Object(p.a)(n,"& .MuiCircularProgress-root",(t={position:"absolute",transform:"rotate(-90Deg) !important",color:e.palette.common.Sunset(),opacity:"0.7",width:"".concat(Object(h.p)(36)," !important"),height:"".concat(Object(h.p)(36)," !important")},Object(p.a)(t,Object(h.e)("md"),{width:"".concat(Object(h.q)(28)," !important"),height:"".concat(Object(h.q)(28)," !important")}),Object(p.a)(t,"& .MuiCircularProgress-svg",{"& circle":Object(p.a)({strokeWidth:Object(h.p)(2)},Object(h.e)("md"),{strokeWidth:Object(h.q)(2)})}),t)),n),"& .toast-btn":Object(d.a)(Object(d.a)({background:"transparent",border:"1px solid ".concat(e.palette.common.Sunset())},e.mixins.marginLeft(Object(h.p)(48))),{},(r={},Object(p.a)(r,Object(h.e)("md"),Object(d.a)({width:"100%",minWidth:Object(h.q)(160)},e.mixins.marginLeft(Object(h.q)(48)))),Object(p.a)(r,e.breakpoints.down("sm"),Object(d.a)({marginTop:Object(h.p)(12)},e.mixins.marginLeft("auto"))),Object(p.a)(r,"& .btn-txt",Object(p.a)({color:e.palette.common.Sunset(),fontSize:Object(h.p)(14),fontWeight:700,lineHeight:Object(h.p)(16)},Object(h.e)("md"),{fontSize:Object(h.q)(14),lineHeight:Object(h.q)(16)})),Object(p.a)(r,"& .MuiButton-endIcon",{marginLeft:"var(--mfd-spacing-xxs) !important","& .material-icons":{display:"flex",height:"unset","& svg":(i={color:e.palette.common.Sunset(),width:Object(h.p)(15),height:Object(h.p)(12)},Object(p.a)(i,Object(h.e)("md"),{width:Object(h.q)(15),height:Object(h.q)(12)}),Object(p.a)(i,'[dir="rtl"] &',{transform:"rotate(180Deg)"}),i)}}),r)),"& .MuiButton-containedSizeSmall":Object(p.a)({padding:"".concat(Object(h.p)(9)," var(--mfd-spacing-s)")},Object(h.e)("md"),{padding:"".concat(Object(h.q)(9)," var(--mfd-spacing-s)")})},"& .MuiTypography-body2Bold":Object(p.a)({fontWeight:"700",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"17ch",'[lang="ar"] &':{fontSize:Object(h.p)(16)}},e.breakpoints.down("md"),{'[lang="ar"] &':{fontSize:Object(h.q)(14),maxWidth:"12ch"}}),"& .MuiTypography-body2":Object(p.a)({'[lang="ar"] &':{fontSize:Object(h.p)(16)}},e.breakpoints.down("md"),{'[lang="ar"] &':{fontSize:Object(h.q)(14)}})}),Object(p.a)(f,"&.newsletterSectionToast",(m={backgroundColor:e.palette.common.WhiteUpd(),width:"100%",maxWidth:Object(h.p)(552),transition:"ease 1s all"},Object(p.a)(m,e.breakpoints.down("md"),{maxWidth:"100%"}),Object(p.a)(m,"& .toastWrapper",{"& .contentWrapper":{display:"flex",alignItems:"center",gap:"var(--mfd-spacing-s)","& .toastIconWrapper":(o={display:"flex",alignItems:"center",justifyContent:"center",width:Object(h.p)(48),height:Object(h.p)(48)},Object(p.a)(o,Object(h.e)("md"),{width:Object(h.q)(48),height:Object(h.q)(48)}),Object(p.a)(o,"borderRadius","var(--mfd-rounding-s)"),Object(p.a)(o,"padding","var(--mfd-spacing-xs)"),Object(p.a)(o,"&.successToastIconWrapper",{background:e.palette.common.feedbackPositive(100)}),Object(p.a)(o,"&.errorToastIconWrapper",{background:e.palette.common.feedbackNegative(100)}),Object(p.a)(o,"& .toastIcon",(a={width:Object(h.p)(24),height:Object(h.p)(24)},Object(p.a)(a,Object(h.e)("md"),{width:Object(h.q)(24),height:Object(h.q)(24)}),Object(p.a)(a,"& img",{backgroundColor:"transparent"}),a)),o),"& .crossButton":(u={display:"flex",alignItems:"center",position:"relative",borderRadius:Object(h.p)(100),height:Object(h.p)(48),transition:"all 0.2s ease-in-out",backgroundClip:"padding-box",overflow:"visible",background:e.palette.common.SurfaceSunken(),minWidth:Object(h.p)(48),minHeight:Object(h.p)(48)},Object(p.a)(u,Object(h.e)("md"),{borderRadius:Object(h.q)(100),height:Object(h.q)(48),minWidth:Object(h.q)(48),minHeight:Object(h.q)(48)}),Object(p.a)(u,"&::after",(s={content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:Object(h.p)(300),border:"0.5px solid ".concat(e.palette.common.Mangrove(300)),margin:"4px"},Object(p.a)(s,Object(h.e)("md"),{borderRadius:Object(h.q)(300)}),Object(p.a)(s,Object(h.f)("xxl1920"),{margin:"var(--mfd-spacing-xxxs)"}),s)),Object(p.a)(u,"& .MuiButton-label",{"& .newsletterToastCloseIcon":(c={he
2ight:Object(h.p)(16),width:Object(h.p)(16)},Object(p.a)(c,Object(h.e)("md"),{height:Object(h.q)(12),width:Object(h.q)(12)}),Object(p.a)(c,"& path",{stroke:e.palette.common.Palm()}),c)}),Object(p.a)(u,"& .MuiCircularProgress-root",(l={position:"absolute",transform:"rotate(-90Deg) !important",color:e.palette.common.Palm(),width:"".concat(Object(h.p)(52)," !important"),height:"".concat(Object(h.p)(52)," !important")},Object(p.a)(l,Object(h.e)("md"),{width:"".concat(Object(h.q)(52)," !important"),height:"".concat(Object(h.q)(52)," !important")}),Object(p.a)(l,"& .MuiCircularProgress-svg",{"& circle":{strokeWidth:"2px"}}),l)),u),"& .toastInnerWrapper":{display:"flex",width:"100%","& .textTitle":{color:e.palette.common.Black()}}}}),m)),Object(p.a)(f,"&.subscribe_section_toast",{"& .toastWrapper":{"& .contentWrapper":{flexDirection:"row","& .innerWrapper":{"& .crossButton":{width:"".concat(Object(h.p)(48)," !important"),height:"".concat(Object(h.p)(48)," !important"),border:0,"& .cross-icon":{"& path":{stroke:"#00605F"}}},"& .MuiCircularProgress-root":{width:"".concat(Object(h.p)(48)," !important"),height:"".concat(Object(h.p)(48)," !important")}}}},"& .innerWrapper":{flexDirection:"row-reverse",columnGap:"16px",justifyContent:"space-between",width:"100%","& .MuiTypography-root":Object(d.a)(Object(d.a)({fontSize:Object(h.p)(20)},e.mixins.marginLeft(Object(h.p)(16))),{},Object(p.a)({},e.breakpoints.down("md"),Object(d.a)(Object(d.a)({},e.mixins.marginLeft("".concat(Object(h.p)(16)," !important"))),{},{maxWidth:Object(h.p)(167),fontSize:"".concat(Object(h.p)(14)," !important")}))),"& svg circle":{strokeWidth:"1px",stroke:"#00605F"}}}),f)}},f=function(e){var t,n,i,r,a,o,s,c,l,u,m;return{root:(m={backgroundColor:"#fffff",maxWidth:"614px",width:"100%",borderTopLeftRadius:"2px",borderTopRightRadius:"2px",transition:"ease 1s all"},Object(p.a)(m,e.breakpoints.down("sm"),{maxWidth:"100%"}),Object(p.a)(m,"& .toastWrapper",{"& .contentWrapper":{display:"flex",alignItems:"center","& .crossButton":(n={minWidth:"auto",width:"36px",height:"36px",backgroundColor:"#f7f7f7",borderRadius:"50%",border:"2px solid #fff"},Object(p.a)(n,e.breakpoints.down("md"),{width:"28px",height:"28px"}),Object(p.a)(n,"& .MuiCircularProgress-root",(t={position:"absolute",transform:"rotate(-90Deg) !important",color:"#FF8707",opacity:"0.7",width:"36px !important",height:"36px !important"},Object(p.a)(t,e.breakpoints.down("md"),{width:"28px !important",height:"28px !important"}),Object(p.a)(t,"& .MuiCircularProgress-svg",{"& circle":{strokeWidth:"2px"}}),t)),n),"& .toast-btn":Object(d.a)(Object(d.a)({background:"transparent",border:"1px solid #FF8707"},e.mixins.marginLeft(Object(h.p)(48))),{},(i={},Object(p.a)(i,e.breakpoints.down("md"),{width:"100%",minWidth:Object(h.p)(160)}),Object(p.a)(i,e.breakpoints.down("sm"),Object(d.a)({marginTop:Object(h.p)(12)},e.mixins.marginLeft("auto"))),Object(p.a)(i,"& .btn-txt",{color:"#FF8707",fontSize:"14px",fontWeight:700,lineHeight:"16px"}),Object(p.a)(i,"& .MuiButton-endIcon",{marginLeft:"8px !important","& .material-icons":{display:"flex",height:"unset","& svg":{color:"#FF8707",width:"15px",height:"12px",'[dir="rtl"] &':{transform:"rotate(180Deg)"}}}}
2),i)),"& .MuiButton-containedSizeSmall":{padding:"".concat(Object(h.p)(9)," ").concat(Object(h.p)(16))}},"& .MuiTypography-body2Bold":Object(p.a)({fontWeight:"700",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"17ch",'[lang="ar"] &':{fontSize:Object(h.p)(16)}},e.breakpoints.down("md"),{'[lang="ar"] &':{fontSize:Object(h.p)(14),maxWidth:"12ch"}}),"& .MuiTypography-body2":Object(p.a)({'[lang="ar"] &':{fontSize:Object(h.p)(16)}},e.breakpoints.down("md"),{'[lang="ar"] &':{fontSize:Object(h.p)(14)}})}),Object(p.a)(m,"&.newsletterSectionToast",(u={backgroundColor:e.palette.common.WhiteUpd(),width:"100%",maxWidth:Object(h.p)(552),transition:"ease 1s all"},Object(p.a)(u,e.breakpoints.down("md"),{maxWidth:"100%"}),Object(p.a)(u,"& .toastWrapper",{"& .contentWrapper":{display:"flex",alignItems:"center",gap:"var(--mfd-spacing-s)","& .toastIconWrapper":(a={display:"flex",alignItems:"center",justifyContent:"center",width:Object(h.p)(48),height:Object(h.p)(48)},Object(p.a)(a,Object(h.e)("md"),{width:Object(h.q)(48),height:Object(h.q)(48)}),Object(p.a)(a,"borderRadius","var(--mfd-rounding-s)"),Object(p.a)(a,"padding","var(--mfd-spacing-xs)"),Object(p.a)(a,"&.successToastIconWrapper",{background:e.palette.common.feedbackPositive(100)}),Object(p.a)(a,"&.errorToastIconWrapper",{background:e.palette.common.feedbackNegative(100)}),Object(p.a)(a,"& .toastIcon",(r={width:Object(h.p)(24),height:Object(h.p)(24)},Object(p.a)(r,Object(h.e)("md"),{width:Object(h.q)(24),height:Object(h.q)(24)}),Object(p.a)(r,"& img",{backgroundColor:"transparent"}),r)),a),"& .crossButton":(l={display:"flex",alignItems:"center",position:"relative",borderRadius:Object(h.p)(100),height:Object(h.p)(48),transition:"all 0.2s ease-in-out",backgroundClip:"padding-box",overflow:"visible",background:e.palette.common.SurfaceSunken(),minWidth:Object(h.p)(48),minHeight:Object(h.p)(48)},Object(p.a)(l,Object(h.e)("md"),{borderRadius:Object(h.q)(100),height:Object(h.q)(48),minWidth:Object(h.q)(48),minHeight:Object(h.q)(48)}),Object(p.a)(l,"&::after",(o={content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,borderRadius:Object(h.p)(300),border:"0.5px solid ".concat(e.palette.common.Mangrove(300)),margin:"4px"},Object(p.a)(o,Object(h.e)("md"),{borderRadius:Object(h.q)(300)}),Object(p.a)(o,Object(h.f)("xxl1920"),{margin:"var(--mfd-spacing-xxxs)"}),o)),Object(p.a)(l,"& .MuiButton-label",{"& .newsletterToastCloseIcon":(s={height:Object(h.p)(16),width:Object(h.p)(16)},Object(p.a)(s,Object(h.e)("md"),{height:Object(h.q)(12),width:Object(h.q)(12)}),Object(p.a)(s,"& path",{stroke:e.palette.common.Palm()}),s)}),Object(p.a)(l,"& .MuiCircularProgress-root",(c={position:"absolute",transform:"rotate(-90Deg) !important",color:e.palette.common.Palm(),width:"".concat(Object(h.p)(52)," !important"),height:"".concat(Object(h.p)(52)," !important")},Object(p.a)(c,Object(h.e)("md"),{width:"".concat(Object(h.q)(52)," !important"),height:"".concat(Object(h.q)(52)," !important")}),Object(p.a)(c,"& .MuiCircularProgress-svg",{"& circle":{strokeWidth:"2px"}}),c)),l),"& .toastInnerWrapper":{display:"flex",width:"100%","& .textTitle":{color:e.palette.common.Black()}}}}),u)),Object(p.a)(m,"&.subscribe_section_toast",{"& .toastWrapper":{"& .contentWrapper":{flexDirection:"row","& .innerWrapper":{"& .crossButton":{width:"".concat(Object(h.p)(48)," !important"),height:"".concat(Object(h.p)(48)," !important"),border:0,"& .cross-icon":{"& path":{stroke:"#00605F"}}},"& .MuiCircularProgress-root":{width:"".concat(Object(h.p)(48)," !important"),height:"".concat(Object(h.p)(48)," !important")}}}},"& .innerWrapper":{flexDirection:"row-reverse",columnGap:"16px",justifyContent:"space-between",width:"100%","& .MuiTypography-root":Object(d.a)(Object(d.a)({fontSize:Object(h.p)(20)},e.mixins.marginLeft(Object(h.p)(16))),{},Object(p.a)({},e.breakpoints.down("md"),Object(d.a)(Object(d.a)({},e.mixins.marginLeft("".concat(Object(h.p)(16)," !important"))),{},{maxWidth:Object(h.p)(167),fontSize:"".concat(Object(h.p)(14)," !important")}))),"& svg circle":{strokeWidth:"1px",stroke:"#00605F"}}}),m)}},g=n(27),b=Object(u.a)((function(e){return Object(g.c)(e)?m(e):f(e)})),v=n(31),y=n(352),x=n(12),_=n(529),w=n(528),O=n(300),j=n(104);t.a=function(e){var t=e.linkLabel,n=e.textTitle,u=void 0===n?"":n,d=e.showLinkLabel,p=void 0===d||d,h=e.ellipseFix,m=void 0===h?"":h,f=e.truncateLimit,C=void 0===f?0:f,E=e.handleClose,T=e.customClass,k=void 0===T?"":T,S=e.isSuccessToast,A=void 0!==S&&S,I=e.isNewsletterToast,M=void 0!==I&&I,L=e.isSuccessNewsletterToast,B=void 0!==L&&L,R=b(),D=Object(r.a)("(max-width:".concat(1023,"px)")),P=Object(j.c)(),z=Object(g.O)(),F=function(){return t||Object(x.a)(z?"AddToItinerary":"Create")},N=function(t){t.preventDefault(),P(Object(O.e)(!0)),e.onClick(t)},U=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";switch(e){case"arrowIcon":return l.a.createElement("svg",{className:"".concat(n," customSVG"),width:"15",height:"12",viewBox:"0 0 15 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M8.64 0L14.4 6L8.64 12L7.82784 11.154L12.1939 6.6H0V5.4H12.1939L7.82784 0.846L8.64 0Z",fill:t}));case"cross":return l.a.createElement("svg",{className:"".concat(n," customSVG"),width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M2 2L10 10M2 10L10 2",stroke:"#565A5C","stroke-width":"1.5","stroke-linecap":"round"}));case"error":return l.a.createElement("svg",{className:"".concat(n," customSVG"),xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},l.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12Z",fill:"#00605F"}),l.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6C12.5523 6 13 6.44772 13 7V13C13 13.5523 12.5523 14 12 14C11.4477 14 11 13.5523 11 13V7C11 6.44772 11.4477 6 12 6Z",fill:"#00605F"}),l.a.createElement("path",{d:"M13 17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17C11 16.4477 11.4477 16 12 16C12.5523 16 13 16.4477 13 17Z",fill:"#00605F"}));case"success":return l.a.createElement("svg",{className:"".concat(n," customSVG"),xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},l.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3ZM1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12Z",fill:"#007018"}),l.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.2071 8.79289C17.5976 9.18342 17.5976 9.8
21658 17.2071 10.2071L11.2071 16.2071C10.8166 16.5976 10.1834 16.5976 9.79289 16.2071L6.79289 13.2071C6.40237 12.8166 6.40237 12.1834 6.79289 11.7929C7.18342 11.4024 7.81658 11.4024 8.20711 11.7929L10.5 14.0858L15.7929 8.79289C16.1834 8.40237 16.8166 8.40237 17.2071 8.79289Z",fill:"#007018"}));case"successTickIc":return l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 48 48",fill:"none"},l.a.createElement("path",{d:"M0 4C0 1.79086 1.79086 0 4 0H44C46.2091 0 48 1.79086 48 4V44C48 46.2091 46.2091 48 44 48H4C1.79086 48 0 46.2091 0 44V4Z",fill:"#007018","fill-opacity":"0.1"}),l.a.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 15C19.0294 15 15 19.0294 15 24C15 28.9706 19.0294 33 24 33C28.9706 33 33 28.9706 33 24C33 19.0294 28.9706 15 24 15ZM13 24C13 17.9249 17.9249 13 24 13C30.0751 13 35 17.9249 35 24C35 30.0751 30.0751 35 24 35C17.9249 35 13 30.0751 13 24Z",fill:"#007018"}),l.a.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M29.2071 20.7929C29.5976 21.1834 29.5976 21.8166 29.2071 22.2071L23.2071 28.2071C22.8166 28.5976 22.1834 28.5976 21.7929 28.2071L18.7929 25.2071C18.4024 24.8166 18.4024 24.1834 18.7929 23.7929C19.1834 23.4024 19.8166 23.4024 20.2071 23.7929L22.5 26.0858L27.7929 20.7929C28.1834 20.4024 28.8166 20.4024 29.2071 20.7929Z",fill:"#007018"}));default:return l.a.createElement(l.a.Fragment,null)}},V=Object(c.useState)(100),W=Object(i.a)(V,2),q=W[0],G=W[1],Z=Object(c.useState)(!1),H=Object(i.a)(Z,2),X=H[0],K=H[1];Object(c.useEffect)((function(){var e;return X||(e=setInterval((function(){G((function(t){return t>0?t-1:(clearInterval(e),t)}))}),D?30:37.5)),function(){return clearInterval(e)}}),[3e3,X]);return l.a.createElement(a.a,{className:"".concat(R.root," ").concat(k||""," ").concat(A?"subscribe_section_toast":""," ").concat(M?"newsletterSectionToast":""),onMouseEnter:function(){K(!0)},onMouseLeave:function(){K(!1)}},l.a.createElement(a.a,{className:"toastWrapper"},l.a.createElement(a.a,{className:"contentWrapper"},A&&U("successTickIc"),M&&l.a.createElement(a.a,{className:"toastIconWrapper ".concat(B?"success":"error","ToastIconWrapper")},U("".concat(B?"success":"error"),"","toastIcon")),l.a.createElement(a.a,{className:"innerWrapper"},l.a.createElement(o.a,{onClick:function(){E()},className:"crossButton"},U("cross")," ",l.a.createElement(s.a,{variant:"determinate",value:q})),l.a.createElement(v.a,{className:m,variant:"".concat(M?"body2Upd":"body2")},C>0?Object(_.a)(u,C):u)),!A&&!M&&p&&!t&&l.a.createElement(w.a,{type:"button",buttonType:"form",size:"small",tabIndex:0,hasBorder:!1,className:"toast-btn",onClick:function(e){return N(e)},endIconSvg:U("arrowIcon","#FF8707","")},F()),!A&&p&&t&&l.a.createElement(y.a,{onClick:function(e){return N(e)},isCustom:!0,className:"link"},U("arrowIcon","#000000",""),l.a.createElement(v.a,{className:"linkLabelText",component:"span"},F())))))}},1544:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(e){return e.replace(/\\/g,"")}},1545:function(e,t,n){"use strict";var i=n(2),r=n(3),a=n(9),o=n(106),s=n(0),c=n.n(s),l=n(112),u=n(865),d=n(27),p=n(199),h=n(1),m=n(29),f=n(47),g=function(e){var t,n,a,o,s;return{heartWrap:{position:"relative",zIndex:10,cursor:"pointer"},absoluteHeartWrap:Object(r.a)({position:"absolute",zIndex:10,cursor:"pointer"},e.mixins.right(0)),is3DMap:{position:"relative",zIndex:0},circularHeartWrap:Object(i.a)({position:"relative",zIndex:10,cursor:"pointer",width:Object(h.p)(20),height:Object(h.p)(28)},e.breakpoints.down("md"),Object(r.a)({height:Object(h.q)(28),width:Object(h.q)(28),marginTop:Object(h.q)(6),borderRadius:"50%",background:"#E4E8EA"},e.mixins.marginRight(Object(h.q)(6)))),MapFavBtn:(t={padding:"".concat(Object(h.p)(10)," ").concat(Object(h.p)(17)," !important"),boxShadow:"none",height:Object(h.p)(40),backgroundColor:"#F7F7F7",border:"1px solid #E9E9E9",minWidth:Object(h.p)(155)},Object(i.a)(t,e.breakpoints.down("md"),{height:Object(h.q)(40),minWidth:Object(h.q)(155),padding:"".concat(Object(h.q)(10)," ").concat(Object(h.q)(17)," !important")}),Object(i.a)(t,"@media (min-width: 1440px)",{padding:"".concat(Object(h.p)(10)," ").concat(Object(h.p)(9.5)," !important")}),Object(i.a)(t,"& .MuiButton-endIcon",{overflow:"visible !important"}),Object(i.a)(t,"@media (min-width: 1024px)",Object(r.a)(Object(r.a)({},e.mixins.marginRight(Object(h.p)(8))),{},{padding:"".concat(Object(h.p)(10)," ").concat(Object(h.p)(8.9)," !important"),minWidth:"auto",justifyContent:"flex-end",width:Object(h.p)(4
20),overflow:"hidden",maxWidth:"fit-content",transition:"all 0.35s linear","& .btn-txt":{textWrap:"nowrap"},"&:not(.visited)":{"&:hover":{padding:"".concat(Object(h.p)(10)," ").concat(Object(h.p)(16)," !important"),transition:"all 0.35s linear",width:function(e){return e.favButtonFinalWidth}}}})),Object(i.a)(t,"&:hover",{backgroundColor:"#F7F7F7"}),Object(i.a)(t,"&.visited",{backgroundColor:"rgba(255, 135, 7, 0.15)",border:"1px solid rgba(255, 135, 7, 0.15)","& .material-icons":{"& path":{stroke:"rgba(255, 135, 7, 1)",fill:"rgba(255, 135, 7, 1)"}}}),Object(i.a)(t,"& .material-icons",{display:"flex",alignItems:"center",width:"100%",height:"100%",animationName:"none !important","& svg":Object(i.a)({width:Object(h.p)(20),height:Object(h.p)(18)},e.breakpoints.down("md"),{width:Object(h.q)(20),height:Object(h.q)(18)}),"& path":{stroke:"black",fill:"#F7F7F7",strokeWidth:2}}),Object(i.a)(t,"& .btn-txt",Object(i.a)({color:"#000",fontSize:Object(h.p)(12),fontWeight:"400",lineHeight:Object(h.p)(16),fontFamily:e.custom.fontFamily.primaryRegular},e.breakpoints.down("md"),{fontSize:Object(h.q)(12),lineHeight:Object(h.q)(16)})),Object(i.a)(t,"& .MuiButton-label",{flexDirection:"row-reverse","& .MuiButton-endIcon":Object(r.a)(Object(r.a)(Object(r.a)({},e.mixins.marginLeft(0)),e.mixins.marginRight(Object(h.p)(9))),{},Object(i.a)({},e.breakpoints.down("md"),Object(r.a)({},e.mixins.marginRight(Object(h.q)(9)))))}),t),mapHeartIcon:Object(i.a)({display:"flex",justifyContent:"center",alignItems:"center",height:Object(h.p)(28)},e.breakpoints.down("md"),{height:Object(h.q)(28)}),heartIcon:Object(r.a)(Object(r.a)(Object(r.a)({position:"absolute",top:0},e.mixins.right(0)),{},{marginTop:Object(h.p)(19)},e.mixins.marginRight(Object(h.p)(18))),{},(n={},Object(i.a)(n,e.breakpoints.down("md"),Object(r.a)({marginTop:Object(h.q)(19)},e.mixins.marginRight(Object(h.q)(18)))),Object(i.a)(n,"& svg",Object(i.a)({width:Object(h.p)(20),height:Object(h.p)(18)},e.breakpoints.down("md"),{width:Object(h.q)(20),height:Object(h.q)(18)})),n)),sliderHeartIcon:Object(r.a)(Object(r.a)(Object(r.a)({position:"absolute",top:0},e.mixins.right(0)),{},{marginTop:Object(h.p)(28)},e.mixins.marginRight(Object(h.p)(18))),{},(a={},Object(i.a)(a,e.breakpoints.down("md"),Object(r.a)(Object(r.a)({},e.mixins.marginRight(Object(h.q)(18))),{},{marginTop:Object(h.q)(28)})),Object(i.a)(a,"& svg",Object(i.a)({width:Object(h.p)(20),height:Object(h.p)(18)},e.breakpoints.down("md"),{width:Object(h.q)(20),height:Object(h.q)(18)})),a)),heartNavIcon:Object(r.a)(Object(r.a)(Object(r.a)({position:"absolute",top:0},e.mixins.right(0)),e.mixins.marginRight(Object(h.p)(-2))),{},(o={},Object(i.a)(o,e.breakpoints.down("md"),Object(r.a)({},e.mixins.marginRight(Object(h.q)(-2)))),Object(i.a)(o,"& svg",Object(i.a)({width:Object(h.p)(20),height:Object(h.p)(18)},e.breakpoints.down("md"),{width:Object(h.q)(20),height:Object(h.q)(18)})),o)),addToFavWrapperDescMin:Object(r.a)(Object(r.a)({height:Object(h.p)(40),display:"flex",alignItems:"center"},e.mixins.marginRight(Object(h.p)(18))),{},Object(i.a)({},e.breakpoints.down("md"),Object(r.a)(Object(r.a)({height:Object(h.q)(40)},e.mixins.marginRight(Object(h.q)(12))),{},{boxSizing:"content-box"}))),addToFavWrapperDesc:Object(r.a)(Object(r.a)({height:Object(h.p)(40),display:"flex",alignItems:"center"},e.mixins.marginRight(Object(h.p)(18))),{},Object(i.a)({},e.breakpoints.down("md"),Object(r.a)(Object(r.a)({height:Object(h.q)(40)},e.mixins.marginRight(Object(h.q)(12))),{},{paddingBottom:Object(h.q)(24),boxSizing:"content-box"}))),addToFavIconWrapDesc:Object(i.a)({width:Object(h.p)(40),height:Object(h.p)(40),display:"flex",borderRadius:p.a.circle,alignItems:"center",background:m.b.background.BGGray179(200),justifyContent:"center"},e.breakpoints.down("md"),{width:Object(h.q)(40),height:Object(h.q)(40)}),descHeartIcon:(s={position:"relative",top:0,verticalAlign:"middle",alignItems:"center",height:Object(h.p)(18),marginTop:0},Object(i.a)(s,e.breakpoints.down("md"),{height:Object(h.q)(18)}),Object(i.a)(s,"& svg",Object(i.a)({width:Object(h.p)(20),height:Object(h.p)(18)},e.breakpoints.down("md"),{width:Object(h.q)(20),height:Object(h.q)(18)})),s),heartIconSelected:{"& svg":{"& path":{fill:function(t){return t.contentType===f.w&&e.palette.common.Palm()}}}},addToFavText:{opacity:0,position:"absolute",top:"50%",transform:"translateY(-50%)",color:function(t){return t.contentType===f.w?e.palette.common.Palm():e.mixins.AbuDhabiOrange()},whiteSpace:"nowrap"},showFavText:{opacity:1},"@global":{".addToFavTextInStickyTitle":Object(r.a)(Object(r.a)({height:"100%",position:"relative"},e.mixins.marginLeft(Object(h.p)(16))),{},Object(i.a)({},e.breakpoints.down("md"),Object(r.a)({},e.mixins.marginLeft(Object(h.q)(16))))),".sticky:not(.ghostdiv-reached)":{"& .hideFavText":{"& .addToFavTextInStickyTitle":{display:"none"},"& .ml4":Object(r.a)(Object(r.a)({},e.mixins.marginLeft(Object(h.p)(4))),{},Object(i.a)({},e.breakpoints.down("md"),Object(r.a)({},e.mixins.marginLeft(Object(h.q)(4)))))}}}}},b=function(e){return{heartWrap:{position:"relative",zIndex:10,cursor:"pointer"},absoluteHeartWrap:Object(r.a)({position:"absolute",zIndex:10,cursor:"pointer"},e.mixins.right(0)),is3DMap:{position:"relative",zIndex:0},circularHeartWrap:Object(i.a)({position:"relative",zIndex:10,cursor:"pointer",width:"20px",height:"28px"},e.breakpoints.down("md"),Object(r.a)({width:"28px",marginTop:"6px",borderRadius:"50%",background:"#E4E8EA"},e.mixins.marginRight("6px"))),MapFavBtn:{padding:"".concat(Object(h.p)(10)," ").concat(Object(h.p)(17)," !important"),boxShadow:"none",height:Object(h.p)(4
20),backgroundColor:"#F7F7F7",border:"1px solid #E9E9E9",minWidth:Object(h.p)(155),"@media (min-width: 1440px)":{padding:"".concat(Object(h.p)(10)," ").concat(Object(h.p)(9.5)," !important")},"& .MuiButton-endIcon":{overflow:"visible !important"},"@media (min-width: 1024px)":Object(r.a)(Object(r.a)({},e.mixins.marginRight(Object(h.p)(8))),{},{padding:"".concat(Object(h.p)(10)," ").concat(Object(h.p)(8.9)," !important"),minWidth:"auto",justifyContent:"flex-end",width:Object(h.p)(40),overflow:"hidden",maxWidth:"fit-content",transition:"all 0.35s linear","& .btn-txt":{textWrap:"nowrap"},"&:not(.visited)":{"&:hover":{padding:"".concat(Object(h.p)(10)," ").concat(Object(h.p)(16)," !important"),transition:"all 0.35s linear",width:function(e){return e.favButtonFinalWidth}}}}),"&:hover":{backgroundColor:"#F7F7F7"},"&.visited":{backgroundColor:"rgba(255, 135, 7, 0.15)",border:"1px solid rgba(255, 135, 7, 0.15)","& .material-icons":{"& path":{stroke:"rgba(255, 135, 7, 1)",fill:"rgba(255, 135, 7, 1)"}}},"& .material-icons":{display:"flex",alignItems:"center",width:"100%",height:"100%",animationName:"none !important","& svg":{width:Object(h.p)(20),height:Object(h.p)(18)},"& path":{stroke:"black",fill:"#F7F7F7",strokeWidth:2}},"& .btn-txt":{color:"#000",fontSize:Object(h.p)(12),fontWeight:"400",lineHeight:Object(h.p)(16),fontFamily:e.custom.fontFamily.primaryRegular},"& .MuiButton-label":{flexDirection:"row-reverse","& .MuiButton-endIcon":Object(r.a)(Object(r.a)({},e.mixins.marginLeft(0)),e.mixins.marginRight(9))}},mapHeartIcon:{display:"flex",justifyContent:"center",alignItems:"center",height:"28px"},heartIcon:Object(r.a)(Object(r.a)(Object(r.a)({position:"absolute",top:0},e.mixins.right(0)),{},{marginTop:19},e.mixins.marginRight(18)),{},{"& svg":{width:"20px",height:"18px"}}),sliderHeartIcon:Object(r.a)(Object(r.a)(Object(r.a)({position:"absolute",top:0},e.mixins.right(0)),{},{marginTop:28},e.mixins.marginRight(18)),{},{"& svg":{width:"20px",height:"18px"}}),heartNavIcon:Object(r.a)(Object(r.a)(Object(r.a)({position:"absolute",top:0},e.mixins.right(0)),e.mixins.marginRight(-2)),{},{"& svg":{width:"20px",height:"18px"}}),addToFavWrapperDescMin:Object(r.a)(Object(r.a)({height:"40px",display:"flex",alignItems:"center"},e.mixins.marginRight(18)),{},Object(i.a)({},e.breakpoints.down("md"),Object(r.a)(Object(r.a)({},e.mixins.marginRight(12)),{},{boxSizing:"content-box"}))),addToFavWrapperDesc:Object(r.a)(Object(r.a)({height:"40px",display:"flex",alignItems:"center"},e.mixins.marginRight(18)),{},Object(i.a)({},e.breakpoints.down("md"),Object(r.a)(Object(r.a)({},e.mixins.marginRight(12)),{},{paddingBottom:Object(h.p)(24),boxSizing:"content-box"}))),addToFavIconWrapDesc:{width:"2.5rem",height:"2.5rem",display:"flex",borderRadius:p.a.circle,alignItems:"center",background:m.b.background.BGGray179(200),justifyContent:"center"},descHeartIcon:{position:"relative",top:0,verticalAlign:"middle",alignItems:"center",height:"18px",marginTop:0,"& svg":{width:"20px",height:"18px"}},heartIconSelected:{"& svg":{"& path":{fill:function(t){return t.contentType===f.w&&e.mixins.DarkTurquoise()}}}},addToFavText:{opacity:0,position:"absolute",top:"50%",transform:"translateY(-50%)",color:function(t){return t.contentType===f.w?e.mixins.DarkTurquoise():e.mixins.AbuDhabiOrange()},whiteSpace:"nowrap"},showFavText:{opacity:1},"@global":{".addToFavTextInStickyTitle":Object(r.a)({height:"100%",position:"relative"},e.mixins.marginLeft(16)),".sticky:not(.ghostdiv-reached)":{"& .hideFavText":{"& .addToFavTextInStickyTitle":{display:"none"},"& .ml4":Object(r.a)({},e.mixins.marginLeft(Object(h.p)(4)))}}}}},v=Object(u.a)((function(e){return Object(d.c)(e)?g(e):b(e)})),y=n(20),x=n(354),_=n(105),w=n(119),O=n(76),j=n(31),C=n(15),E=n(1543),T=n(1297),k=n(57),S=n(33),A=n(130),I=n(12),M=n(1511),L=n(528),B=(n(5),n(1563)),R=n(1560),D=n(48),P=n(84),z=n(49),F=n(90),N=n(151),U=["itemUniqueKey","isShowFavorite","componentName","dictionary","isDetailPresent","ariaLabel","className","showToastBtn","is3DMap","btnClassName","revealAnim","favCallback","isMapExploreUpd","disableToast","COMPONENT_NAME","pageTitleEn","location","hotelName","activityName","attractionName","restaurantName","locationName","hotelUniqueName","
2isMfdToast","listingCategory"];t.a=Object(P.withSitecoreContext)()((function(e){var t,n,u=e.itemUniqueKey,p=e.isShowFavorite,h=e.componentName,m=e.dictionary,f=e.isDetailPresent,g=e.ariaLabel,b=void 0===g?"":g,P=e.className,V=void 0===P?"":P,W=e.showToastBtn,q=void 0===W||W,G=e.is3DMap,Z=void 0!==G&&G,H=e.btnClassName,X=e.revealAnim,K=e.favCallback,Y=void 0===K?function(){}:K,J=e.isMapExploreUpd,Q=void 0!==J&&J,$=e.disableToast,ee=void 0!==$&&$,te=e.COMPONENT_NAME,ne=e.pageTitleEn,ie=(e.location,e.hotelName,e.activityName,e.attractionName,e.restaurantName,e.locationName,e.hotelUniqueName,e.isMfdToast),re=void 0!==ie&&ie,ae=e.listingCategory,oe=Object(o.a)(e,U),se=Object(s.useContext)(x.b),ce=se.isFavorite,le=se.addToFavorite,ue=se.removeFromFavorite,de=Object(F.e)().instance.getActiveAccount(),pe=Object(F.d)(de),he=Object(z.get)(oe,"sitecoreContext.route.fields.webCategory.displayName",""),me=Object(z.get)(oe,"sitecoreContext.route.fields.eventCategory[0].displayName",""),fe=Object(z.get)(oe,"sitecoreContext.route.fields.pageTitle.value","")||"",ge=Object(s.useState)(0),be=Object(a.a)(ge,2),ve=be[0],ye=be[1],xe=v({contentType:je,favButtonFinalWidth:ve}),_e=JSON.parse(Object(O.a)("favorites")||"[]"),we=ce(u),Oe="favoriteNav"===h,je=Object(z.get)(oe,"sitecoreContext.route.fields.contentType.displayName",""),Ce="mapComponent"===h,Ee="StickyTitle"===h,Te="heroCarousel"===h,ke="3dMap"===h,Se=Object(s.useState)("0px"),Ae=Object(a.a)(Se,2),Ie=Ae[0],Me=Ae[1],Le=Object(s.useState)(0),Be=Object(a.a)(Le,2),Re=Be[0],De=Be[1],Pe=Object(s.useState)(!1),ze=Object(a.a)(Pe,2),Fe=ze[0],Ne=ze[1],Ue=Object(d.O)(),Ve=Object(A.a)(),We=Ve&&"rtl"===Ve.direction,qe=Object(M.a)("(max-width:".concat(1023,"px)")),Ge=0,Ze=0,He=Object(s.useCallback)((function(e){e&&(Ge=e.clientWidth,Qe())}),[Re]),Xe=Object(s.useCallback)((function(e){e&&(Ze=e.clientWidth,Qe())}),[Re]),Ke=function(){C.a&&De(window.innerWidth)};Object(s.useEffect)((function(){if(C.a)return window.addEventListener("resize",Ke),function(e){window.removeEventListener("resize",Ke)}}));var Ye=Object(s.useRef)(null);Object(s.useEffect)((function(){if(Ye.current&&X){var e=Ye.current.querySelector(".js-reveal-btn-anim");ye(Object(d.n)(e))}}),[we]);var Je=Object(s.useMemo)((function(){var e,t;return we?null===(e=Object(I.a)("RemoveFromFavourites"))||void 0===e?void 0:e.replace("{item}
2",b):(null===(t=Object(I.a)("AddToFavourites"))||void 0===t?void 0:t.replace("{item}",b))||""}),[b,we]),Qe=function(){var e=Math.max(Ge,Ze);Me(e+"px")},$e=function(e,t){var n=w.a.pageBodyInteraction.removeItemToFavorite;e&&(n=w.a.pageBodyInteraction.addItemToFavorite);var i=Object(r.a)(Object(r.a)({},n),{},{label:u});Object(_.c)(i),Object(_.b)(t)},et=function(e){if(e.preventDefault(),e.stopPropagation(),ce(u))ue(u),$e(!1),"FavoriteSubLayout"==h&&p&&p(u),re&&Object(k.a)(c.a.createElement(D.a,{handleClose:function(){S.b.dismiss()},toastTitleProps:{toastTitle:Object(I.a)("mfdRemovedFromFavoritesLabel"),truncateLimit:0},toastLinkProps:{toastLinkLabel:Object(I.a)("mfdUndo"),onClickToastLink:function(){le(u),S.b.dismiss()}},toastIconWrapperProps:{toastIcon:c.a.createElement("svg",{className:"customSVG",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},c.a.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.69605 4.06324C6.45067 3.85903 5.29849 4.13797 4.42535 5.01736C2.52488 6.93144 2.52488 10.0377 4.42535 11.9518L12 19.5807L19.5746 11.9518C21.4751 10.0377 21.4751 6.93144 19.5746 5.01736C18.7015 4.13797 17.5493 3.85903 16.304 4.06324C15.0377 4.27087 13.7241 4.97889 12.7096 6.00066C12.5219 6.18975 12.2665 6.29608 12 6.29608C11.7335 6.29608 11.4781 6.18975 11.2904 6.00066C10.2759 4.97889 8.9623 4.27087 7.69605 4.06324ZM12 3.94741C10.8411 2.99965 9.44643 2.32355 8.01968 2.0896C6.26674 1.80216 4.42061 2.18357 3.0061 3.6082C0.331299 6.30216 0.331299 10.667 3.0061 13.361L11.2904 21.7046C11.4781 21.8936 11.7335 22 12 22C12.2665 22 12.5219 21.8936 12.7096 21.7046L20.9939 13.361C23.6687 10.667 23.6687 6.30216 20.9939 3.6082C19.5794 2.18357 17.7333 1.80216 15.9803 2.0896C14.5536 2.32355 13.1589 2.99965 12 3.94741Z",fill:"#00605F"})),wrapperBgColor:"rgba(245, 194, 0, 0.10)"}}),We,(function(){}),re&&qe?"bottom-center":We?"bottom-right":"bottom-left");else if(!Oe){if(_e.length>=1e3)return!1;le(u),$e(!0,Object(r.a)(Object(r.a)({},w.a.pageBodyInteraction.add_to_favourites_click),{},{page_name_eng:ne||"",UX_component_name:te||"",experience_name:fe||"",experience_type:je||"",experience_category:he||me||ae||""}));var t=Object(N.a)("FavoriteAuthModal");ee||(pe||t?ke||Te?Object(k.a)(c.a.createElement(B.a,{showLinkLabel:q,linkLabel:"".concat(ke&&Object(I.a)(Ue?"3DFavoriteLinkLabel":"Create")||""),handleClose:function(){S.b.dismiss()},onClick:function(){Object(d.c)(Ve)?Object(d.bb)(!0,u):Ne(!0),S.b.dismiss()},textTitle:Object(I.a)("3DFavoriteTextTitle")}),We,(function(){}),"bottom-center"):Object(k.a)(re?c.a.createElement(D.a,{handleClose:function(){S.b.dismiss()},toastTitleProps:{toastTitle:pe?Object(I.a)("mfdSavedToFavoritesLabel"):Object(I.a)("savedToFavoritesNotLoggedIn"),truncateLimit:0},toastLinkProps:{toastLinkLabel:pe?Object(I.a)("mfdAddToItineraryLabel"):Object(I.a)("notLoggedInctaText"),onClickToastLink:function(){pe?Object(d.bb)(!0,u):Object(d.cb)(!0),S.b.dismiss()}},toastIconWrapperProps:{toastIcon:c.a.createElement("svg",{className:"customSVG",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20",fill:"none"},c.a.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11 1.94741C9.84108 0.999649 8.44643 0.32355 7.01968 0.0895973C5.26674 -0.197843 3.42061 0.18357 2.0061 1.6082C-0.668701 4.30216 -0.668701 8.667 2.0061 11.361L10.2904 19.7046C10.4781 19.8936 10.7335 20 11 20C11.2665 20 11.5219 19.8936 11.7096 19.7046L19.9939 11.361C22.6687 8.667 22.6687 4.30216 19.9939 1.6082C18.5794 0.18357 16.7333 -0.197843 14.9803 0.0895973C13.5536 0.32355 12.1589 0.999649 11 1.94741Z",fill:"#E56D13"})),wrapperBgColor:"rgba(245, 194, 0, 0.10)"}}):c.a.createElement(E.a,{showLinkLabel:q,truncateLimit:We&&qe?15:70,handleClose:function(){S.b.dismiss()},onClick:function(){Ne(!0),S.b.dismiss()},textTitle:Object(I.a)("SavedToFavorites")}),We,(function(){}),re&&qe?"bottom-center":We?"bottom-right":"bottom-left"):(Object(N.b)("FavoriteAuthModal",!0),Object(d.cb)(!0),function(e){if(C.a){var t;setTimeout((function(){document.querySelector(".loginDialog")&&(t=new MutationObserver((function(){document.querySelector(".loginDialog")||(t.disconnect(),"function"===typeof e&&e())}))).observe(document.body,{childList:!0,subtree:!0})}),0)}}((function(){Object(k.a)(re?c.a.createElement(D.a,{handleClose:function(){S.b.dismiss()},toastTitleProps:{toastTitle:pe?Object(I.a)("mfdSavedToFavoritesLabel"):Object(I.a)("savedToFavoritesNotLoggedIn"),truncateLimit:0},toastLinkProps:{toastLinkLabel:pe?Object(I.a)("mfdAddToItineraryLabel"):Object(I.a)("notLoggedInctaText"),onClickToastLink:function(){pe?Object(d.bb)(!0,u):Object(d.cb)(!0),S.b.dismiss()}},toastIconWrapperProps:{toastIcon:c.a.createElement("svg",{className:"customSVG",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"20",viewBox:"0 0 22 20",fill:"none"},c.a.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11 1.94741C9.84108 0.999649 8.44643 0.32355 7.01968 0.0895973C5.26674 -0.197843 3.42061 0.1835
27 2.0061 1.6082C-0.668701 4.30216 -0.668701 8.667 2.0061 11.361L10.2904 19.7046C10.4781 19.8936 10.7335 20 11 20C11.2665 20 11.5219 19.8936 11.7096 19.7046L19.9939 11.361C22.6687 8.667 22.6687 4.30216 19.9939 1.6082C18.5794 0.18357 16.7333 -0.197843 14.9803 0.0895973C13.5536 0.32355 12.1589 0.999649 11 1.94741Z",fill:"#E56D13"})),wrapperBgColor:"rgba(245, 194, 0, 0.10)"}}):c.a.createElement(E.a,{showLinkLabel:q,truncateLimit:We&&qe?15:70,handleClose:function(){S.b.dismiss()},onClick:function(){Ne(!0),S.b.dismiss()},textTitle:Object(I.a)("SavedToFavorites")}),We,(function(){}),re&&qe?"bottom-center":We?"bottom-right":"bottom-left")}))))}Y&&"function"===typeof Y&&Y(!ce(u))};return u?c.a.createElement("div",null,c.a.createElement("div",{className:Object(y.a)((t={stickyFavoriteIcon:Ee},Object(i.a)(t,xe.heartWrap,!Ce),Object(i.a)(t,xe.absoluteHeartWrap,Ce),Object(i.a)(t,xe.is3DMap,Z),Object(i.a)(t,xe.addToFavWrapperDesc,Ee&&"contacts-section"===f),Object(i.a)(t,xe.addToFavWrapperDescMin,Ee&&"contacts-section"!==f),t),V),"aria-label":Je,role:"button",tabIndex:0,onClick:function(e){return et(e)},onKeyDown:function(e){"Enter"===e.key&&et(e)}},Q?c.a.createElement(R.a,{iconType:"heart",classNameIcon:"largeIcon",classNameIconWrapper:"hoverBorder",isActive:we}):c.a.createElement(c.a.Fragment,null,Z?c.a.createElement("span",{ref:Ye},c.a.createElement(L.a,{hasBorder:!1,endIconSvg:c.a.createElement(l.a,{name:"FavoriteIcon",stroked:!Oe,filled:we,animateSettings:{willAnimate:!1,selfTrigger:!1}}),className:"".concat(xe.MapFavBtn," js-reveal-btn-anim ").concat(H||""," mapFavBtn ").concat(we?"visited":""),buttonType:"form"},we?Object(I.a)("AddedToWishlist"):Object(I.a)("IWantToVisit"))):c.a.createElement("div",{className:Object(y.a)((n={},Object(i.a)(n,xe.addToFavIconWrapDesc,Ee),Object(i.a)(n,xe.heartWrap,!Ce),Object(i.a)(n,xe.circularHeartWrap,Ce),n))},c.a.createElement("span",{className:Object(y.a)(Oe?xe.heartNavIcon:Ce?xe.mapHeartIcon:Ee?xe.descHeartIcon:Te||ke?xe.sliderHeartIcon:xe.heartIcon,"heartIcon",we&&"".concat(xe.heartIconSelected," selected"))},c.a.createElement(l.a,{name:"FavoriteIcon",stroked:!Oe,filled:we})))),Ee&&m&&"contacts-section"===f&&c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{className:"addToFavTextInStickyTitle",style:{minWidth:Ie}},c.a.createElement("div",{className:Object(y.a)(xe.addToFavText,Object(i.a)({},xe.showFavText,we)),ref:He},c.a.createElement(j.a,{variant:"body2",component:"span"},m("FavouriteDetailAdded"))),c.a.createElement("div",{className:Object(y.a)(xe.addToFavText,Object(i.a)({},xe.showFavText,!we)),ref:Xe},c.a.createElement(j.a,{variant:"body2",component:"span"},m("FavouriteDetailAdd")))))),c.a.createElement(T.default,{navigateOnSubmit:!0,itemUniqueKey:u,itineraryExist:Ue,customClass:Ue?"addItenary":"createItinerary",open:Fe,handleExit:function(){Ne(!1)},setIsOpen:function(e){Ne(e)}})):c.a.createElement(c.a.Fragment,null)}))},1546:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));var i={SINGLELINETEXT:"SingleLineText",EMAIL:"Email",PHONE:"Phone",MULTILINETEXT:"MultiLineText",DROPDOWN:"Dropdown",CHECKBOX:"Checkbox",CHECKBOXLIST:"CheckboxList",CAPTCHA:"Captcha",SUBMIT:"Submit",RADIOBUTTONLIST:"RadioButtonList",DATE:"Date",RANGEDATE:"DateRange",FILE:"File",NUMBER:"Number",COUNTER:"Counter",CUSTOMBUTTON:"CustomButton"},r="country"},1549:function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var i=n(9),r=n(19),a=n(0),o=n.n(a),s=n(20),c=n(2538),l=n(2529),u=n(2231),d=n(1523),p=n(84),h=n(865),m=n(2),f=n(3),g=n(199),b=n(1),v=function(e){var t,n,i,r=e.mixins,a=r.left,o=r.right;return{formControl:(i={marginTop:Object(b.p)(40)},Object(m.a)(i,e.breakpoints.down("md"),{marginTop:Object(b.q)(40)}),Object(m.a)(i,"& .MuiFormGroup-root",(n={flexDirection:"column"},Object(m.a)(n,e.breakpoints.up("lg"),{flexDirection:"row"}),Object(m.a)(n,"& .MuiFormControlLabel-root",Object(f.a)(Object(f.a)({},e.mixins.marginLR(Object(b.p)(-11),"var(--mfd-spacing-s)")),{},(t={},Object(m.a)(t,e.breakpoints.down("md"),Object(f.a)({},e.mixins.marginLR(Object(b.q)(-11),"var(--mfd-spacing-s)"))),Object(m.a)(t,"& .MuiTypography-root",{flex:"0 0 100%",maxWidth:"100%"}),t))),n)),Object(m.a)(i,"& .rating-txt-wrap",Object(m.a)({"& .ratingLabel":Object(f.a)(Object(f.a)({display:"inline-flex",maxWidth:"fit-content !important",minWidth:Object(b.p)(85),width:"100%",color:"#706C6C"},e.mixins.marginRight("var(--mfd-spacing-xxs)")),{},Object(m.a)({"@media (max-width: 1200px)":{minWidth:Object(b.p)(65)}},e.breakpoints.down("md"),{minWidth:Object(b.q)(65)}))},e.breakpoints.down("lg"),{lineHeight:0})),i),labelHeading:Object(f.a)({},e.typography.body2Bold),root:{"&:hover, &:focus":{backgroundColor:"transparent"}},ratingUi:{display:"inline",marginRight:"var(--mfd-spacing-xxxs)",lineHeight:0,"& .rating-circle":Object(f.a)(Object(f.a)({width:Object(b.p)(12),height:Object(b.p)(12),borderRadius:Object(b.p)(999),overflow:"hidden",display:"inline-block"},e.mixins.marginRight("var(--mfd-spacing-xxxs)")),{},Object(m.a)({backgroundColor:e.palette.common.TripAdvisorThemeColor,border:"1px solid ".concat(e.palette.common.TripAdvisorThemeColor),"&.is-empty":{backgroundColor:"transparent"}},e.breakpoints.down("md"),{width:Object(b.q)(12),height:Object(b.q)(12),borderRadius:Object(b.q)(999)}))},icon:Object(m.a)({borderRadius:g.a.circle,width:Object(b.p)(24),height:Object(b.p)(24),border:"1px solid rgba(86, 90, 92, 1)",backgroundColor:"rgb(247, 247, 247)",position:"relative","input:hover ~ &":{border:"1px solid rgba(255, 135, 7, 1)"}},e.breakpoints.down("md"),{width:Object(b.q)(24),height:Object(b.q)(24)}),checkedIcon:{border:"1px solid rgba(255, 135, 7, 1)","&:before":Object(f.a)(Object(f.a)({display:"block",position:"absolute",top:Object(b.p)(3)},a(Object(b.p)(3))),{},Object(m.a)({width:Object(b.p)(16),height:Object(b.p)(16),background:e.palette.common.Sunset(),border:"1px solid rgba(255, 135, 7, 1)",borderRadius:"50%",content:'""'},e.breakpoints.down("md"),Object(f.a)(Object(f.a)({top:Object(b.q)(3)},a(Object(b.q)(3))),{},{width:Object(b.q)(16),height:Object(b.q)(16)})))},toggleIcon:{position:"relative",color:e.palette.common.Sunset(),cursor:"pointer","&:after":Object(f.a)(Object(f.a)({content:"''",position:"absolute",border:"solid ".concat(e.palette.common.Sunset()),width:Object(b.p)(10),height:Object(b.p)(10),borderWidth:"0 ".concat(Object(b.p)(2)," ").concat(Object(b.p)(2)," 0"),transform:"rotate(45deg)",top:"var(--mfd-spacing-xxxs)"},o(Object(b.p)(-21))),{},Object(m.a)({},e.breakpoints.down("md"),Object(f.a)({width:Object(b.q)(10),height:Object(b.q)(10),borderWidth:"0 ".concat(Object(b.q)(2)," ").concat(Object(b.q)(2)," 0")},o(Object(b.q)(-21))))),"&.less:after":Object(m.a)({top:Object(b.p)(9),transform:"rotate(227deg)"},e.breakpoints.down("md"),{top:Object(b.q)(9)})}}},y=function(e){var t,n=e.mixins,i=n.left,r=n.right;return{formControl:{marginTop:Object(b.p)(40),"& .MuiFormGroup-root":(t={flexDirection:"column"},Object(m.a)(t,e.breakpoints.up("lg"),{flexDirection:"row"}
2),Object(m.a)(t,"& .MuiFormControlLabel-root",{"& .MuiTypography-root":{flex:"0 0 100%",maxWidth:"100%"}}),t),"& .rating-txt-wrap":Object(m.a)({"& .ratingLabel":Object(f.a)(Object(f.a)({display:"inline-flex",maxWidth:"fit-content !important",minWidth:"85px",width:"100%",color:"#706C6C"},e.mixins.marginRight(8)),{},{"@media (max-width: 1200px)":{minWidth:"65px"}})},e.breakpoints.down("lg"),{lineHeight:0})},labelHeading:Object(f.a)({},e.typography.body2Bold),root:{"&:hover, &:focus":{backgroundColor:"transparent"}},ratingUi:{display:"inline",marginRight:Object(b.p)(4),lineHeight:0,"& .rating-circle":Object(f.a)(Object(f.a)({width:Object(b.p)(12),height:Object(b.p)(12),borderRadius:g.a.b999px,overflow:"hidden",display:"inline-block"},e.mixins.marginRight(Object(b.p)(4))),{},{backgroundColor:e.palette.common.TripAdvisorThemeColor,border:"1px solid ".concat(e.palette.common.TripAdvisorThemeColor),"&.is-empty":{backgroundColor:"transparent"}})},icon:{borderRadius:g.a.circle,width:Object(b.p)(24),height:Object(b.p)(24),border:e.borders.fieldBorder,backgroundColor:e.mixins.AntiqueWhite(),position:"relative","input:hover ~ &":{border:e.borders.redBorder}},checkedIcon:{border:e.borders.redBorder,"&:before":Object(f.a)(Object(f.a)({display:"block",position:"absolute",top:Object(b.p)(3)},i(Object(b.p)(3))),{},{width:Object(b.p)(16),height:Object(b.p)(16),background:e.mixins.AbuDhabiOrange(),border:e.borders.redBorder,borderRadius:g.a.circle,content:'""'})},toggleIcon:{position:"relative",color:e.mixins.AbuDhabiOrange(),cursor:"pointer","&:after":Object(f.a)({content:"''",position:"absolute",border:"solid ".concat(e.mixins.AbuDhabiOrange()),width:Object(b.p)(10),height:Object(b.p)(10),borderWidth:"0 2px 2px 0",transform:"rotate(45deg)",top:4},r(Object(b.p)(-21))),"&.less:after":{top:Object(b.p)(9),transform:"rotate(227deg)"}}}},x=n(27),_=Object(h.a)((function(e){return Object(x.c)(e)?v(e):y(e)})),w=n(31),O=n(1290),j=n(12),C=function(e){var t=_();return o.a.createElement(c.a,Object.assign({className:"".concat(t.root," radio-btn"),disableRipple:!0,color:"default",checkedIcon:o.a.createElement("span",{className:Object(s.a)(t.icon,t.checkedIcon)+" radio-btn-Chekedicon"}),icon:o.a.createElement("span",{className:"".concat(t.icon," radio-btn-icon")})},e))},E=function(e){var t=_();return o.a.createElement("span",{className:t.ratingUi},Object(r.a)(Array(5)).map((function(t,n){return o.a.createElement("i",{key:n,className:"rating-circle ".concat(n<e.value?"is-full":"is-empty")})})))},T=function(e,t){var n="",i=!1,r="";return t&&("any-rating"===e.value?(n=Object(j.a)("anyRating"),r=Object(j.a)("ta_any_rating")):"five"===e.value?(n="",i=5,r=Object(j.a)("ta_excellent")):"four-and-up"===e.value?(n=Object(j.a)("andUp"),r=Object(j.a)("ta_very_good"),i=4):"three-and-up"===e.value&&(n=Object(j.a)("andUp"),i=3,r=Object(j.a)("ta_good"))),o.a.createElement(w.a,{variant:"body2",component:"span",gutterBottom:!1},t?o.a.createElement("div",{className:"rating-txt-wrap"},o.a.createElement(w.a,{variant:"body2",component:"span",className:"ratingLabel"},r),i&&o.a.createElement(E,{value:i}),n&&o.a.createElement(p.Text,{field:{value:n}})):o.a.createElement(p.Text,{field:e}))};t.b=function(e){var t=_(),n=e.data,r=e.shouldShowLimited,a=e.seeMoreText,c=e.seeLessText,p=e.shouldShowResultsCount,h=e.className,m=e.isFilterRating,f=e.customStyle,g=e.data,b=g.totalResultCount,v=g.fieldLabel,y=o.a.useState(!0),x=Object(i.a)(y,2),w=x[0],j=x[1];return o.a.createElement(d.a,{component:"fieldset","aria-label":v&&v.value,className:Object(s.a)(t.formControl,h,f)},o.a.createElement("legend",null),v&&v.value&&o.a.createElement(O.a,{className:t.labelHeading,component:"legend"},v&&"".concat(v.value," ").concat(p?"(".concat(b,")"):"")),o.a.createElement(l.a,{"aria-label":n.fieldLabel.value,value:n.selectedValue.value,name:n.fieldName.value,onChange:function(t){var n={};n.name=e.data.fieldName.value,t.target.value?n.value=t.target.value:n.value="",e.onChange({target:n})}},function(e,n){if(n){var i=[],r=[];for(var l in e){var d="",h=e[l].fields,f=h.displayText,g=h.key,b=h.count,v=p?{value:"".concat(f.value," (").concat(b.value,")")}:f;parseInt(l)<=3?(d=o.a.createElement(u.a,{value:g&&g.value,control:o.a.createElement(C,null),label:T(v,m),key:l}),i.push(d)):(d=o.a.createElement(u.a,{value:g&&g.value,control:o.a.createElement(C,null),label:T(v,m),key:l}),r.push(d))}return o.a.createElement(o.a.Fragment,null,i,!w&&r,r&&r.length>0&&o.a.createElement("div",null,o.a.createElement("span",{className:Object(s.a)(t.toggleIcon,w?"more":"less"),onClick:function(){j(!w)}},w?a.value:c.value)))}return e.map((function(e,t){var n=e.fields,i=n.displayText,r=n.key,a=n.count,s=p?{value:"".concat(i.value," (").concat(a.value,")")}:i;return o.a.createElement(u.a,{value:r.value,control:o.a.createElement(C,null),label:T(s,m),key:t})}))}(e.data.listItems,r)))}},1550:function(e,t,n){"use strict";var i=n(0),r=n.n(i),a=n(1524),o=n(1687),s=n(1523),c=n(1537),l=n(84),u=n(238),d=n(865),p=n(3),h=n(2),m=n(1),f=function(e){var t,n,i,r,a,o,s,c=e.mixins,l=c.left,u=c.right,d=c.paddingLR;return{formControl:Object(h.a)({margin:0,padding:0,width:Object(m.p)(306)},e.breakpoints.down("md"),{width:Object(m.q)(306)}),inputLabel:Object(p.a)(Object(p.a)({zIndex:1},l("var(--mfd-spacing-s)")),{},(n={top:Object(m.p)(27)},Object(h.a)(n,e.breakpoints.down("md"),{top:Object(m.q)(27)}),Object(h.a)(n,"&.MuiInputLabel-shrink",Object(p.a)(Object(p.a)(Object(p.a)({transform:"translate(0, ".concat(Object(m.p)(-14.5),") scale(0.9)")},l(0)),u("auto")),{},Object(h.a)({},e.breakpoints.down("md"),{transform:"translate(0, ".concat(Object(m.q)(-14.5),") scale(0.9)")}))),Object(h.a)(n,"& + .MuiInput-formControl",(t={marginTop:Object(m.p)(46)},Object(h.a)(t,e.breakpoints.down("md"),{marginTop:Object(m.q)(46)}),Object(h.a)(t,"& .MuiSelect-iconOpen.MuiSelect-icon:after",Object(p.a)(Object(p.a)({},u(Object(m.p)(-31))),{},Object(h.a)({top:"var(--mfd-spacing-xxxs)"},e.breakpoints.down("md"),Object(p.a)({},u(Object(m.q)(-31)))))),Object(h.a)(t,"& .MuiSelect-icon",{position:"relative",top:"calc(50% - var(--mfd-spacing-xs))","&:after":Object(p.a)(Object(p.a)({content:"''",position:"absolute",border:"solid ".concat(e.palette.common.Black()),width:Object(m.p)(10),height:Object(m.p)(10),borderWidth:"0 ".concat(Object(m.p)(2)," ").concat(Object(m.p)(2)," 0"),transform:"rotate(45deg)",top:Object(m.p)(-18)},u(Object(m.p)(22))),{},Object(h.a)({},e.breakpoints.down("md"),Object(p.a)({width:Object(m.q)(10),height:Object(m.q)(10),borderWidth:"0 ".concat(Object(m.q)(2)," ").concat(Object(m.q)(2)," 0"),top:Object(m.q)(-18)}
2,u(Object(m.q)(22)))))}),t)),n)),selectInput:(s={height:Object(m.p)(48),background:e.palette.common.WhiteUpd(),border:"".concat(Object(m.p)(1)," solid rgba(86, 90, 92, 1)"),borderRadius:Object(m.p)(3)},Object(h.a)(s,e.breakpoints.down("md"),{border:"".concat(Object(m.q)(1)," solid rgba(86, 90, 92, 1)"),borderRadius:Object(m.q)(3),height:Object(m.q)(48)}),Object(h.a)(s,"&.align-with-input",{"& > .MuiPopover-root":{position:"absolute !important","& .MuiPaper-root":{left:"0 !important",top:"0 !important"}}}),Object(h.a)(s,"& .MuiPaper-root",(a={marginTop:Object(m.p)(48),width:"auto",border:"".concat(Object(m.p)(1)," solid rgba(86, 90, 92, 0.4)"),maxHeight:Object(m.p)(169),borderRadius:"0"},Object(h.a)(a,e.breakpoints.down("md"),{border:"".concat(Object(m.q)(1)," solid rgba(86, 90, 92, 0.4)"),maxHeight:Object(m.q)(169),marginTop:Object(m.q)(48)}),Object(h.a)(a,"& .MuiMenu-list",{padding:0,margin:0,"& .MuiListSubheader-sticky":(i={position:"relative",color:e.palette.common.Black(600),background:e.palette.common.Black(20),pointerEvents:"none",fontSize:Object(m.p)(16)},Object(h.a)(i,e.breakpoints.down("md"),{fontSize:Object(m.q)(16)}),Object(h.a)(i,"&:after",Object(p.a)({},l("var(--mfd-spacing-s)"))),i),"& li:not(:last-child):after":Object(p.a)(Object(p.a)({content:"''",position:"absolute"},l("var(--mfd-spacing-s)")),{},Object(h.a)({width:"90%",bottom:0,borderBottom:"".concat(Object(m.p)(1)," solid rgba(0, 0, 0, 0.2)")},e.breakpoints.down("md"),{borderBottom:"".concat(Object(m.q)(1)," solid rgba(0, 0, 0, 0.2)")})),"& .MuiMenuItem-root":Object(p.a)(Object(p.a)({},e.typography.body3),{},(r={paddingTop:Object(m.p)(11),paddingLeft:"var(--mfd-spacing-s)",paddingBottom:Object(m.p)(11)},Object(h.a)(r,e.breakpoints.down("md"),{paddingBottom:Object(m.q)(11),paddingTop:Object(m.q)(11)}),Object(h.a)(r,"&.grouped-item",Object(p.a)(Object(p.a)({},d("var(--mfd-spacing-l)",0)),{},{"&:after":Object(p.a)({},l("var(--mfd-spacing-s)"))})),r))}),a)),Object(h.a)(s,"& .MuiSelect-select",Object(p.a)(Object(p.a)({},e.typography.body2),{},(o={paddingTop:Object(m.p)(11),paddingLeft:"var(--mfd-spacing-s)",paddingBottom:Object(m.p)(11)},Object(h.a)(o,e.breakpoints.down("md"),{paddingBottom:Object(m.q)(11),paddingTop:Object(m.q)(11)}),Object(h.a)(o,"&:hover, &:focus",{background:"#f7f7f7"}),o))),Object(h.a)(s,"&.MuiInput-underline.Mui-focused:after",{display:"none"}),Object(h.a)(s,"&.MuiInput-underline:before",{display:"none"}),s),menuItems:{display:"block","& .MuiMenuItem-root":Object(p.a)({},e.typography.body3),"& li:not(:last-child)":Object(h.a)({borderBottom:"".concat(Object(m.p)(1)," solid rgba(0, 0, 0, 0.2)")},e.breakpoints.down("md"),{borderBottom:"".concat(Object(m.q)(1)," solid rgba(0, 0, 0, 0.2)")}),"& li":Object(h.a)({width:Object(m.p)(306),whiteSpace:"pre-wrap",paddingTop:"var(--mfd-spacing-s)",paddingBottom:"var(--mfd-spacing-s)"},e.breakpoints.down("md"),{width:Object(m.q)(306)})},errorMsg:{color:"rgb(255, 12, 12)",marginTop:"var(--mfd-spacing-xxs)"}}},g=n(199),b=n(4),v=function(e){var t=e.mixins,n=t.left,i=t.right,r=t.paddingLR;return{formControl:{margin:0,padding:0,width:Object(m.p)(306)},inputLabel:Object(p.a)(Object(p.a)({zIndex:1},n(Object(m.p)(16))),{},{top:Object(m.p)(27),"&.MuiInputLabel-shrink":Object(p.a)(Object(p.a)({transform:"translate(0, ".concat(Object(m.p)(-14.5),") scale(0.9)")},n(0)),i("auto")),"& + .MuiInput-formControl":{marginTop:Object(m.p)(46),"& .MuiSelect-iconOpen.MuiSelect-icon:after":Object(p.a)(Object(p.a)({},i(Object(m.p)(-31))),{},{top:Object(m.p)(4)}),"& .MuiSelect-icon":{position:"relative",top:"calc(50% - ".concat(Object(m.p)(12),")"),"&:after":Object(p.a)({content:"''",position:"absolute",border:"solid ".concat(e.mixins.Black()),width:Object(m.p)(10),height:Object(m.p)(10),borderWidth:"0 2px 2px 0",transform:"rotate(45deg)",top:Object(m.p)(-18)},i(Object(m.p)(22)))}}}),selectInput:{height:Object(m.p)(48),background:e.mixins.White(),border:e.borders.fieldBorder,borderRadius:g.a.b3,"&.align-with-input":{"& > .MuiPopover-root":{position:"absolute !important","& .MuiPaper-root":{left:"0 !important",top:"0 !important"}}},"& .MuiPaper-root":{marginTop:Object(m.p)(48),width:"auto",border:e.borders.dropDownBorder,maxHeight:Object(m.p)(169),borderRadius:g.a.b0,"& .MuiMenu-list":{padding:0,margin:0,"& .MuiListSubheader-sticky":{position:"relative",color:e.mixins.Black(600),background:e.mixins.Black(20),pointerEvents:"none",fontSize:b.g.s16Rem,"&:after":Object(p.a)({},n(Object(m.p)(16)))},"& li:not(:last-child):after":Object(p.a)(Object(p.a)({content:"''",position:"absolute"},n(Object(m.p)(16))),{},{width:"90%",bottom:0,borderBottom:e.borders.divider}),"& .MuiMenuItem-root":Object(p.a)(Object(p.a)({},e.typography.body3),{},{paddingTop:Object(m.p)(11),paddingLeft:Object(m.p)(16),paddingBottom:Object(m.p)(11),"&.grouped-item":Object(p.a)(Object(p.a)({},r(Object(m.p)(32),0)),{},{"&:after":Object(p.a)({},n(Object(m.p)(16)))})})}},"& .MuiSelect-select":Object(p.a)(Object(p.a)({},e.typography.body2),{},{paddingTop:Object(m.p)(11),paddingLeft:Object(m.p)(16),paddingBottom:Object(m.p)(11),"&:hover, &:focus":{background:e.palette.action.disabledBackgroun
2d}}),"&.MuiInput-underline.Mui-focused:after":{display:"none"},"&.MuiInput-underline:before":{display:"none"}},menuItems:{display:"block","& .MuiMenuItem-root":Object(p.a)({},e.typography.body3),"& li:not(:last-child)":{borderBottom:e.borders.divider},"& li":{width:Object(m.p)(306),whiteSpace:"pre-wrap",paddingTop:Object(m.p)(16),paddingBottom:Object(m.p)(16)}},errorMsg:{color:e.palette.text.error,marginTop:Object(m.p)(8)}}},y=n(27),x=Object(d.a)((function(e){return Object(y.c)(e)?f(e):v(e)})),_=n(31),w=n(15);t.a=Object(u.b)()((function(e){var t,n,u=x(),d=e.isGroupedDropdown,p=e.t,h=e.labelVariant,m=void 0===h?"body2Bold":h,f=e.formName,g=e.data,b=g.fieldLabel,v=g.selectedValue,O=g.fieldName,j=g.listItems,C=g.showError,E=g.validationMessage,T=g.isDisabled,k=g.placeHolder,S=g.isRequired,A=g.useMappingId,I=null===v||void 0===v?void 0:v.value,M=null===T||void 0===T?void 0:T.value,L=(null===S||void 0===S||S.value,null===k||void 0===k?void 0:k.value),B=null===A||void 0===A?void 0:A.value,R=p&&"selectOption"!==p("selectOption")&&p("selectOption");return Object(i.useEffect)((function(){!function(e){if(w.a){var t=document.querySelector("input[name='".concat(e.value,"']")),n=document.querySelector("#select_dropdown_".concat(e.value));t&&n&&(t.value?n.classList.remove("grey-text"):n.classList.add("grey-text"))}}(O)})),r.a.createElement(s.a,{component:"fieldset",className:"".concat(u.formControl," ").concat(e.className),"aria-labelledby":"select_label_".concat(O.value)},r.a.createElement("legend",null),b&&r.a.createElement(a.a,{id:"select_label_".concat(O.value),className:u.inputLabel,shrink:!0},r.a.createElement(_.a,{variant:m,component:"span",gutterBottom:!1},r.a.createElement(l.Text,{field:b})),S&&S.value&&r.a.createElement("span",null," *")),r.a.createElement(c.a,{labelId:"select_label_".concat(O.value),id:"select_dropdown_".concat(O.value),value:I,name:O.value,className:"".concat(u.selectInput," align-with-input"),onChange:e.onChange,inputProps:{id:"select_dropdown_input_".concat(O.value)},MenuProps:{variant:"menu",disablePortal:!0,disableScrollLock:!0,autoFocus:!0},displayEmpty:!0,disabled:Boolean(M),IconComponent:"span"},r.a.createElement(o.a,{value:"",disabled:!0},L||"".concat(R||"")),d?function(e){var t=[];return e.forEach((function(e,n){var i;t.push(r.a.createElement(o.a,{key:"".concat(e.groupheading.key,"_").concat(n),value:"".concat(e.groupheading.key)},Object(y.Z)(null===e||void 0===e||null===(i=e.groupheading)||void 0===i?void 0:i.value))),Object(y.Y)(null===e||void 0===e?void 0:e.groupItems).map((function(e,n){return t.push(r.a.createElement(o.a,{className:"grouped-item",value:e.key.value,key:"".concat(e.key.value,"_").concat(n)},Object(y.Z)(e.displayText.value)))}))})),t}(Object(y.Y)(j)):function(e,t,n){return e.map((function(e,i){var a,s;return r.a.createElement(o.a,{value:function(n){var r,a,o,s,c,l,u,d;return"requestForProposal"==n?t?null===e||void 0===e||null===(c=e.fields)||void 0===c||null===(l=c.mappingId)||void 0===l?void 0:l.value:(null===e||void 0===e||null===(u=e.fields)||void 0===u||null===(d=u.key)||void 0===d?void 0:d.value)||i+1:t&&(null===t||void 0===t?void 0:t.value)?null===e||void 0===e||null===(r=e.fields)||void 0===r||null===(a=r.mappingId)||void 0===a?void 0:a.value:(null===e||void 0===e||null===(o=e.fields)||void 0===o||null===(s=o.key)||void 0===s?void 0:s.value)||i+1}(n),key:null===e||void 0===e?void 0:e.id},Object(y.Z)(null===e||void 0===e||null===(a=e.fields)||void 0===a||null===(s=a.displayText)||void 0===s?void 0:s.value))}))}(Object(y.Y)(j),B,f)),C&&r.a.createElement("div",{className:u.errorMsg},(n=E&&(null===E||void 0===E?void 0:E.fields)&&(null===E||void 0===E||null===(t=E.fields)||void 0===t?void 0:t.displayText),r.a.createElement(_.a,{variant:"body2",component:"span",gutterBottom:!1},r.a.createElement(l.Text,{field:n})))))}))},1551:function(e,t,n){"use strict";var i=n(9),r=n(0),a=n.n(r),o=n(1290),s=n(1523),c=n(2528),l=n(2231),u=n(1888),d=n(84),p=n(1286),h=n(865),m=n(2),f=n(3),g=n(199),b=n(1),v=function(e){var t=e.mixins,n=t.left,i=t.marginLR,r=t.right,a=t.paddingLR;return{root:{display:"flex"},labelHeading:Object(f.a)(Object(f.a)({},e.typography.body2Bold),{},{marginBottom:"var(--mfd-spacing-s)"}),formControl:{"& .MuiFormGroup-root":Object(m.a)({"& .MuiCollapse-container .Mu
2iFormControlLabel-root":{width:"100%"},"& .MuiFormControlLabel-root":Object(f.a)({},e.mixins.marginLR(Object(b.p)(-11),"var(--mfd-spacing-s)")),"& .MuiFormControlLabel-root .MuiCheckbox-root":Object(f.a)({padding:0},a(Object(b.p)(11),0)),"& .MuiFormControlLabel-root:not(:last-child)":{marginBottom:"var(--mfd-spacing-s)",cursor:"pointer"},"& .MuiFormControlLabel-root .MuiTypography-root":Object(f.a)({},i("var(--mfd-spacing-xxs)",0)),"& .MuiFormControlLabel-label.Mui-disabled":{color:e.mixins.DisabledGrey(),"& .checked-icon":{background:e.mixins.DisabledGrey()}},"& .MuiFormControlLabel-label":{color:e.palette.common.Black()},"& .MuiFormControlLabel-root.Mui-disabled":{"& $checkedIcon":{background:e.mixins.Grey(400),borderColor:e.mixins.Grey(400)}}},e.breakpoints.down("md"),{"& .MuiFormControlLabel-root":Object(f.a)({},e.mixins.marginLR(Object(b.q)(-11),"var(--mfd-spacing-s)")),"& .MuiFormControlLabel-root .MuiCheckbox-root":Object(f.a)({padding:0},a(Object(b.q)(11),0))})},icon:Object(m.a)({width:Object(b.p)(24),height:Object(b.p)(24),border:"1px solid rgba(86, 90, 92, 1)",backgroundColor:"rgb(247, 247, 247)",borderRadius:Object(b.p)(3),position:"relative","input:hover ~ &":{border:e.borders.redBorder}},e.breakpoints.down("md"),{width:Object(b.q)(24),height:Object(b.q)(24),borderRadius:Object(b.q)(3)}),labelWrap:{display:"flex",alignItems:"center",marginBottom:"var(--mfd-spacing-s)","& .MuiCheckbox-root":{padding:"0"},"& label":{"& p":{marginLeft:"var(--mfd-spacing-xxs)"}}},checkedIcon:{border:"1px solid rgba(255, 135, 7, 1)",background:e.palette.common.Sunset(),"&:before":Object(f.a)(Object(f.a)({display:"block",position:"absolute",top:Object(b.p)(7)},n(Object(b.p)(6))),{},Object(m.a)({width:Object(b.p)(11),height:Object(b.p)(5),transform:"rotate(-45deg)",border:"1px solid ".concat(e.palette.common.WhiteUpd()),borderTop:"none",borderRight:"none",content:'""'},e.breakpoints.down("md"),Object(f.a)(Object(f.a)({top:Object(b.q)(7)},n(Object(b.q)(6))),{},{width:Object(b.q)(11),height:Object(b.q)(5)})))},toggleIcon:Object(f.a)(Object(f.a)({},e.typography.body2Bold),{},{position:"relative",color:e.palette.common.Sunset(),cursor:"pointer","&:after":Object(f.a)(Object(f.a)({content:"''",position:"absolute",border:"solid ".concat(e.palette.common.Sunset()),width:Object(b.p)(10),height:Object(b.p)(10),borderWidth:"0 2px 2px 0",transform:"rotate(45deg)",top:"var(--mfd-spacing-xxxs)"},r(Object(b.p)(-21))),{},Object(m.a)({},e.breakpoints.down("md"),Object(f.a)({width:Object(b.q)(10),height:Object(b.q)(10)},r(Object(b.q)(-21))))),"&.less:after":Object(m.a)({top:Object(b.p)(9),transform:"rotate(227deg)"},e.breakpoints.down("md"),{top:Object(b.q)(9)})})}},y=function(e){var t=e.mixins,n=t.left,i=t.marginLR,r=t.right,a=t.paddingLR;return{root:{display:"flex"},labelHeading:Object(f.a)(Object(f.a)({},e.typography.body2Bold),{},{marginBottom:e.spacing(2)}),formControl:{"& .MuiFormGroup-root":{"& .MuiCollapse-container .MuiFormControlLabel-root":{width:"100%"},"& .MuiFormControlLabel-root":Object(f.a)({},e.mixins.marginLR(Object(b.p)(-11),Object(b.p)(16))),"& .MuiFormControlLabel-root .MuiCheckbox-root":Object(f.a)({padding:0},a(Object(b.p)(11),0)),"& .MuiFormControlLabel-root:not(:last-child)":{marginBottom:Object(b.p)(16),cursor:"pointer"},"& .MuiFormControlLabel-root .MuiTypography-root":Object(f.a)({},i(8,0)),"& .MuiFormControlLabel-label.Mui-disabled":{color:e.mixins.DisabledGrey(),"& .checked-icon":{background:e.mixins.DisabledGrey()}},"& .MuiFormControlLabel-label":{color:e.mixins.Black()},"& .MuiFormControlLabel-root.Mui-disabled":{"& $checkedIcon":{background:e.mixins.Grey(400),borderColor:e.mixins.Grey(400)}}}},icon:{width:Object(b.p)(24),height:Object(b.p)(24),border:e.borders.fieldBorder,backgroundColor:e.mixins.AntiqueWhite(),borderRadius:g.a.b3,position:"relative","input:hover ~ &":{border:e.borders.redBorder}},labelWrap:{display:"flex",alignItems:"center",marginBottom:e.spacing(2),"& .MuiCheckbox-root":{padding:"0"},"& label":{"& p":{marginLeft:"8px"}}},checkedIcon:{border:e.borders.redBorder,background:e.mixins.AbuDhabiOrange(),"&:before":Object(f.a)(Object(f.a)({display:"block",position:"absolute",top:Object(b.p)(7)},n(Object(b.p)(6))),{},{width:Object(b.p)(11),height:Object(b.p)(5),transform:"rotate(-45deg)",border:"1px solid ".concat(e.mixins.White()),borderTop:"none",borderRight:"none",content:'""'})},toggleIcon:Object(f.a)(Object(f.a)({},e.typography.body2Bold),{},{position:"relative",color:e.mixins.AbuDhabiOrange(),cursor:"pointer","&:after":Object(f.a)({content:"''",position:"absolute",border:"solid ".concat(e.mixins.AbuDhabiOrange()),width:Object(b.p)(10),height:Object(b.p)(10),borderWidth:"0 2px 2px 0",transform:"rotate(45deg)",top:Object(b.p)(4)},r(Object(b.p)(-21))),"&.less:after":{top:Object(b.p)(9),transform:"rotate(227deg)"}})}},x=n(27),_=Object(h.a)((function(e){return Object(x.c)(e)?v(e):y(e)})),w=n(20),O=n(31);t.a=function(e){var t=_(),n=a.a.useState(!0),r=Object(i.a)(n,2),h=r[0],m=r[1],f=e.seeMoreText,g=e.seeLessText,b=e.shouldShowLimited,v=e.shouldShowResultsCount,y=e.className,x=e.data,j=x.fieldName,C=x.fieldLabel,E=x.listItems,T=x.totalResultCount,k=function(e){return a.a.createElement(O.a,{variant:"body2",gutterBottom:!1},a.a.createElement(d.Text,{field:e}))},S=a.a.createElement(l.a,{control:a.a.createElement(u.a,{checked:Boolean(e.selected),name:j&&j.value,checkedIcon:a.a.createElement("span",{className:Object(w.a)(t.icon,t.checkedIcon,"checkedIcon")}),onChange:e.onChange,value:!0,icon:a.a.createElement("span",{className:"".concat(t.icon," customCheckedIcon ")})}),label:k(C)}),A=function(){m(!h)};return a.a.createElement("div",{className:t.root},a.a.createElement(s.a,{component:"fieldset",className:Object(w.a)(t.formControl,y)},E&&E.length>0?a.a.createElement(a.a.Fragment,null,a.a.createElement(o.a,{className:t.labelHeading,component:"h2"},C&&"".concat(C.value," ").concat(v?"(".concat(T,")"):"")),a.a.createElement(c.a,null,function(n,i){if
2(i){var r=[],o=[];for(var s in n){var c="",d=n[s].fields,m=d.displayText,b=d.key,y=d.selected,x=d.count,_=d.disabled,O=v?{value:"".concat(m.value," (").concat(x.value,")")}:m;parseInt(s)<=3?(c=a.a.createElement("div",{className:t.labelWrap},a.a.createElement(u.a,{checked:Boolean(y&&y.value),name:j&&j.value,checkedIcon:a.a.createElement("span",{className:Object(w.a)(t.icon,t.checkedIcon,"checkedIcon")}),id:O.value,value:b&&b.value,onChange:e.onChange,icon:a.a.createElement("span",{className:t.icon}),disabled:_}),a.a.createElement("label",{for:O.value},k(O))),r.push(c)):(c=a.a.createElement("div",{className:t.labelWrap},a.a.createElement(u.a,{checked:Boolean(y&&y.value),name:j&&j.value,checkedIcon:a.a.createElement("span",{className:Object(w.a)(t.icon,t.checkedIcon,"checkedIcon")}),id:O.value,value:b&&b.value,onChange:e.onChange,icon:a.a.createElement("span",{className:t.icon}),disabled:_}),a.a.createElement("label",{for:O.value},k(O))),o.push(c))}return a.a.createElement(a.a.Fragment,null,r,a.a.createElement(p.a,{in:!h},o),o&&o.length>0&&a.a.createElement("div",{className:"showlessWrapper"},a.a.createElement("span",{"aria-expanded":!h,className:Object(w.a)(t.toggleIcon,h?"more":"less"),onClick:function(){return A()},tabIndex:0,onKeyDown:function(e){"Enter"===e.key&&A()},role:"button"},h?f.value:g.value)))}return n.map((function(n,i){var r=n.fields,o=r.displayText,s=r.key,c=r.selected,d=r.count,p=r.disabled,h=v?{value:"".concat(o.value," (").concat(d.value,")")}:o;return a.a.createElement(l.a,{control:a.a.createElement(u.a,{checked:Boolean(c&&c.value),name:j&&j.value,checkedIcon:a.a.createElement("span",{className:Object(w.a)(t.icon,t.checkedIcon,"checkedIcon")}),value:s&&s.value,onChange:e.onChange,icon:a.a.createElement("span",{className:t.icon}),disabled:p}),label:k(h),key:i})}))}(E,b))):S))}},1552:function(e,t,n){"use strict";var i=n(0),r=n.n(i),a=n(1294),o=n(865),s=n(27),c=n(3),l=n(2),u=n(1),d=function(e){var t,n,i,r;return{root:{"&.MuiTextField-root:not(.standard), & .MuiFormControl-root:not(.standard)":(r={marginBottom:"var(--mfd-spacing-m)",width:"100%"},Object(l.a)(r,e.breakpoints.up("lg"),{margin:"var(--mfd-spacing-xxs)",width:"calc(50% - var(--mfd-spacing-s))",marginBottom:"var(--mfd-spacing-l)",marginTop:0,"&.fullWidth":{width:"calc(100% - var(--mfd-spacing-s))"}}),Object(l.a)(r,"& .MuiFormLabel-root",Object(l.a)({},e.breakpoints.up("lg"),{lineHeight:Object(u.p)(32)})),Object(l.a)(r,"& .MuiFormLabel-root, & .MuiTypography-root",Object(c.a)(Object(c.a)({fontSize:Object(u.p)(14),position:"relative",transform:"translate(0, calc(-1 * var(--mfd-spacing-xxs))) scale(1)"},e.mixins.left(0)),{},(t={},Object(l.a)(t,e.breakpoints.up("lg"),{transform:"translate(0, 0px) scale(1)"}),Object(l.a)(t,e.breakpoints.down("md"),{fontSize:Object(u.q)(14)}),Object(l.a)(t,"&.Mui-error",{color:"inherit"}),Object(l.a)(t,"& .MuiTypography-root",Object(l.a)({transform:"translate(0, ".concat(Object(u.p)(-23),") scale(1)")},e.breakpoints.down("md"),{transform:"translate(0, ".concat(Object(u.q)(-23),") scale(1)")})),t))),Object(l.a)(r,"& .MuiFormHelperText-root",Object(c.a)(Object(c.a)(Object(c.a)({},e.typography.body3),e.mixins.marginLeft(0)),{},{marginTop:"var(--mfd-spacing-xxs)",color:e.palette.common.Black(),"&.Mui-required":Object(l.a)({marginTop:Object(u.p)(10),color:e.palette.common.Sunset()},e.breakpoints.down("md"),{marginTop:Object(u.q)(10)})})),Object(l.a)(r,"& .MuiInputBase-formControl",(i={border:"".concat(Object(u.p)(1)," solid rgba(86, 90, 92, 1)"),height:Object(u.p)(48),borderRadius:"0",marginTop:0},Object(l.a)(i,e.breakpoints.down("md"),{border:"".concat(Object(u.q)(1)," solid rgba(86, 90, 92, 1)"),height:Object(u.q)(48)}),Object(l.a)(i,"&.Mui-error",{borderColor:"rgb(255, 12, 12)"}),Object(l.a)(i,"&:hover",{background:e.palette.common.Black(30),"&::placeholder":{color:e.palette.common.Black()}}),Object(l.a)(i,"&.MuiInputBase-multiline",{height:"auto",padding:0}),Object(l.a)(i,"& .MuiInputBase-inputMultiline",Object(l.a)({height:Object(u.p)(96),padding:"var(--mfd-spacing-s)","&:before":{border:0}},e.breakpoints.down("md"),{height:Object(u.q)(96)})),Object(l.a)(i,"& input, & textarea",(n={padding:"0 var(--mfd-spacing-s)",fontSize:Object(u.p)(16),height:"100%"},Object(l.a)(n,e.breakpoints.down("md"),{fontSize:Object(u.q)(16)}),Object(l.a)(n,"&::placeholder",{color:"rgb(112, 108, 108)"}),Object(l.a)(n,"&::-webkit-input-placeholder",{color:"rgb(112, 108, 108)",opacity:1}),Object(l.a)(n,"&::-moz-placeholder",{color:"rgb(112, 108, 108)",opacity:1}),Object(l.a)(n,"&:-ms-input-placeholder",{color:"rgb(112, 108, 108)",opacity:1}),Object(l.a)(n,"&:-moz-placeholder",{color:"rgb(112, 108, 108)",opacity:1}),n)),Object(l.a)(i,"& fieldset",{border:0}),i)),r),"&.MuiTextField-root.standard, & .MuiFormControl-root.standard":Object(l.a)({marginTop:"var(--mfd-spacing-xs)",marginBottom:Object(u.p)(28),width:"100%","& input":Object(l.a)({paddingBottom:"20px",fontSize:Object(u.p)(22),lineHeight:Object(u.p)(32)},e.breakpoints.down("md"),{padding:"0 var(--mfd-spacing-xxs)",fontSize:Object(u.q)(14),lineHeight:Object(u.q)(24),height:"100%",borderBottom:0})},e.breakpoints.down("md"),{marginTop:"0px",marginBottom:"0px","& .MuiInputBase-formControl":{border:"".concat(Object(u.q)(1)," solid #dddede"),height:Object(u.q)(40),borderRadius:Object(u.q)(45),marginTop:0,padding:"var(--mfd-spacing-xxs) var(--mfd-spacing-xs) var(--mfd-spacing-xxs) var(--mfd-spacing-s)","&:before":{border:0}},"& .MuiInput-underline":{"&:after":{border:0}}})}}},p=n(199),h=n(4),m=function(e){var t,n;
2return{root:{"&.MuiTextField-root:not(.standard), & .MuiFormControl-root:not(.standard)":(n={marginBottom:Object(u.p)(24),width:"100%"},Object(l.a)(n,e.breakpoints.up("lg"),{margin:e.spacing(1),width:"calc(50% - 16px)",marginBottom:Object(u.p)(32),marginTop:0,"&.fullWidth":{width:"calc(100% - 16px)"}}),Object(l.a)(n,"& .MuiFormLabel-root",Object(l.a)({},e.breakpoints.up("lg"),{lineHeight:h.g.s32Rem})),Object(l.a)(n,"& .MuiFormLabel-root, & .MuiTypography-root",Object(c.a)(Object(c.a)({fontSize:h.g.s14Rem,position:"relative",transform:"translate(0, -8px) scale(1)"},e.mixins.left(0)),{},(t={},Object(l.a)(t,e.breakpoints.up("lg"),{transform:"translate(0, 0px) scale(1)"}),Object(l.a)(t,"&.Mui-error",{color:"inherit"}),Object(l.a)(t,"& .MuiTypography-root",{transform:"translate(0, -23px) scale(1)"}),t))),Object(l.a)(n,"& .MuiFormHelperText-root",Object(c.a)(Object(c.a)(Object(c.a)({},e.typography.body3),e.mixins.marginLeft(0)),{},{marginTop:Object(u.p)(8),color:e.mixins.Black(),"&.Mui-required":{marginTop:Object(u.p)(10),color:e.mixins.AbuDhabiOrange()}})),Object(l.a)(n,"& .MuiInputBase-formControl",{border:e.borders.fieldBorder,height:Object(u.p)(48),borderRadius:p.a.b0,marginTop:0,"&.Mui-error":{borderColor:e.palette.border.error},"&:hover":{background:e.mixins.Black(30),"&::placeholder":{color:e.mixins.Black()}},"&.MuiInputBase-multiline":{height:"auto",padding:0},"& .MuiInputBase-inputMultiline":{height:Object(u.p)(96),padding:Object(u.p)(16),"&:before":{border:0}},"& input, & textarea":{padding:"0 ".concat(Object(u.p)(16)),fontSize:h.g.s16Rem,height:"100%","&::placeholder":{color:e.palette.text.tertiary},"&::-webkit-input-placeholder":{color:e.palette.text.tertiary,opacity:1},"&::-moz-placeholder":{color:e.palette.text.tertiary,opacity:1},"&:-ms-input-placeholder":{color:e.palette.text.tertiary,opacity:1},"&:-moz-placeholder":{color:e.palette.text.tertiary,opacity:1}},"& fieldset":{border:0}}),n),"&.MuiTextField-root.standard, & .MuiFormControl-root.standard":Object(l.a)({marginTop:"12px",marginBottom:"28px",width:"100%","& input":Object(l.a)({paddingBottom:"20px",fontSize:h.g.s22Rem,lineHeight:h.g.s32Rem},e.breakpoints.down("md"),{padding:"0 ".concat(Object(u.p)(8)),fontSize:h.g.s14Rem,lineHeight:h.g.s24Rem,height:"100%",borderBottom:0})},e.breakpoints.down("md"),{marginTop:"0px",marginBottom:"0px","& .MuiInputBase-formControl":{border:"1px solid ".concat(e.palette.common.DisabledGrey),height:Object(u.p)(40),borderRadius:p.a.b45Rem,marginTop:0,padding:"8px 12px 8px 16px","&:before":{border:0}},"& .MuiInput-underline":{"&:after":{border:0}}})}}},f=Object(o.a)((function(e){return Object(s.c)(e)?d(e):m(e)}));t.a=function(e){var t=e.data,n=t.fieldLabel,i=t.selectedValue,o=t.fieldName,s=t.placeholderText,c=t.isRequired,l=t.validationMessage,u=t.wrongEmailValidationMessage,d=t.isDisabled,p=t.error,h=t.invali
2dEmail,m=t.multiline,g=void 0!==m&&m,b=t.rows,v=void 0===b?null:b,y=t.rowsMax,x=void 0===y?null:y,_=t.type,w=void 0===_?"text":_,O=t.variant,j=void 0===O?"outlined":O,C=t.characterLimitMessage,E=t.customStyle,T=f();return r.a.createElement(r.a.Fragment,null,r.a.createElement(a.a,Object.assign({label:n?n.value:"",type:w,placeholder:s?s.value:"",value:i.value,name:o.value,id:"input_".concat(o.value),onChange:e.onChange,InputLabelProps:{shrink:!0,htmlFor:"input_".concat(o.value)},variant:j,error:p,helperText:p&&l&&l.fields.displayText.value||h&&u&&u.fields.displayText.value||C&&C.value,required:c&&c.value,disabled:Boolean(d&&d.value),multiline:g,rows:v,rowsMax:x,className:"".concat(T.root," ").concat(e.className," ").concat(j," ").concat(E)},e.other)))}},1553:function(e,t,n){"use strict";var i=n(0),r=n.n(i),a=n(1622),o=n(84),s=n(2),c=n(865),l=n(199),u=n(1),d=n(27),p=Object(c.a)((function(e){var t;return Object(d.c)(e)?{root:(t={backgroundColor:"transparent",borderRadius:Object(u.p)(3)},Object(s.a)(t,Object(u.e)("md"),{borderRadius:Object(u.q)(3)}),Object(s.a)(t,"border",(function(t){return t.borderStyle||e.palette.common.Midnight()})),Object(s.a)(t,"color",(function(t){return t.colorStyle||e.palette.common.Midnight()})),Object(s.a)(t,"marginTop","var(--mfd-spacing-xxs)"),Object(s.a)(t,"textTransform","uppercase"),Object(s.a)(t,"maxWidth","100%"),Object(s.a)(t,'& [class^="MuiChip-label"]',{paddingLeft:"var(--mfd-spacing-xxs)",paddingRight:"var(--mfd-spacing-xxs)"}),Object(s.a)(t,"&.categoryTagWhite",{border:e.borders.categoryTagBorderWhite,color:e.palette.common.WhiteUpd()}),Object(s.a)(t,"&.categoryTagHalfDutchWhite",Object(s.a)({borderColor:e.palette.common.SandstoneUpd(),color:e.palette.common.SandstoneUpd(),borderRadius:Object(u.p)(3)},Object(u.e)("md"),{borderRadius:Object(u.q)(3)})),t),chipRoot:Object(s.a)({display:"inline-flex",height:Object(u.p)(32),alignItems:"center",justifyContent:"center"},Object(u.e)("md"),{height:Object(u.q)(32)}),chipLabel:{whiteSpace:"nowrap"}}:{root:{backgroundColor:e.palette.categoryTagaction.disabledBackground,borderRadius:l.a.b3,border:function(t){return t.borderStyle||e.borders.categoryTagBorder},color:function(t){return t.colorStyle||e.mixins.CategortTagColor()},marginTop:e.spacing(1),textTransform:"uppercase",maxWidth:"100%",'& [class^="MuiChip-label"]':{paddingLeft:Object(u.p)(8),paddingRight:Object(u.p)(8)},"&.categoryTagWhite":{border:e.borders.categoryTagBorderWhite,color:e.palette.common.white},"&.categoryTagHalfDutchWhite":{borderColor:e.palette.common.HalfDutchWhite,color:e.palette.common.HalfDutchWhite,borderRadius:l.a.b3}},chipRoot:{display:"inline-flex",height:e.spacing(4),alignItems:"center",justifyContent:"center"},chipLabel:{whiteSpace:"nowrap"}}})),h=n(31),m=n(12),f=n(47),g=function(e){var t=e.className,n=e.text,i=e.isAuthorable,s=e.language,c=e.attributeFilter,l=e.analyticsData,u=e.isDescriptionTag,d=e.borderStyle,g=e.colorStyle,b=e.from,v=void 0===b?"":b,y=l||"",x=y.dataId,_=y.dataLink,w=e.link;w&&"#"!==w||(w="");var O=p({borderStyle:d,colorStyle:g}),j={value:n},C="favoritesNav"===v?"labelBlack2":"labelBlack";if(i)return r.a.createElement(r.a.Fragment,null,r.a.createElement(a.a,{component:"div",label:r.a.createElement("span",{className:O.chipLabel},r.a.createElement(h.a,{variant:"labelBlack",component:"span"},r.a.createElement(o.Text,{field:j}))),classes:{root:"".concat(O.root," ").concat(t," ").concat(O.chipRoot)}}));var E=w||function(){var e,t=Object(m.a)("attributeListingPageUrl");return c&&(e="/".concat(s).concat(t,"?").concat(f.jb,"=").concat(c)),e}();return r.a.createElement(r.a.Fragment,null,u&&E?r.a.createElement(a.a,{"data-id":x,"data-link":_,label:r.a.createElement(h.a,{variant:C,component:"span"},n),component:"a",href:E,classes:{root:"".concat(O.root," ").concat(t)},clickable:!0}):u||E?r.a.createElement(r.a.Fragment,null):r.a.createElement(a.a,{component:"div",label:r.a.createElement(h.a,{variant:C,component:"span"},n),classes:{root:"".concat(O.root," ").concat(t)}}))};g.defaultProps={className:"",link:"#",isAuthorable:!1,isDescriptionTag:!1,from:"",borderStyle:void 0,colorStyle:void 0};t.a=r.a.memo(g)},1554:function(e,t,n){"use strict";var i=n(106),r=n(0),a=n.n(r),o=n(1605),s=["className","children"];t.a=function(e){var t=e.className,n=e.children,r=Object(i.a)(e,s);return a.a.createElement(o.a,Object.assign({className:t},r),n)}},1555:function(e,t,n){"use strict";var i=n(865),r=n(27),a=n(2),o=n(3),s=n(49),c=n(1),l=n(4),u=function(e){var t,n,i,l,u,d,p,h,m,f,g=e.mixins,b=g.paddingLR,v=g.left,y=g.marginLR;return{root:(t={},Object(a.a)(t,e.breakpoints.up("lg"),Object(o.a)(Object(o.a)({paddingTop:Object(c.p)(96)},b("".concat(Object(c.p)(92)),0)),{},{paddingBottom:Object(c.p)(88),backgroundColor:function(e){return Object(r.Z)(Object(s.get)(e,"fields.backgroundColor.fields.colorCode.value",""))}})),Object(a.a)(t,"& input[type = number]::-webkit-inner-spin-button, & input[type = number]::-webkit-outer-spin-button",{"-webkitAappearance":"none","-mozAppearance":"none",appearance:"none",margin:0}),Object(a.a)(t,"input[type=number]",{"-mozAppearance":"textfield"}),Object(a.a)(t,"& .rfp-form-wrapper > div:first-child",{"& .formHeading":{"&:first-child":{marginTop:0}}}),t),formContainer:Object(o.a)(Object(o.a)({backgroundColor:e.mixins.White()},b("var(--mfd-spacing-m)","var(--mfd-spacing-m)")),{},(n={paddingBottom:Object(c.p)(48),paddingTop:Object(c.p)(48)},Object(a.a)(n,e.breakpoints.up("lg"),Object(o.a)(Object(o.a)({paddingTop:Object(c.p)(88),paddingBottom:Object(c.p)(88)},b("".concat(Object(c.p)(60)),"".concat(Object(c.p)(60)))),{},{width:"51%"})),Object(a.a)(n,e.breakpoints.down("md"),{paddingBottom:Object(c.q)(48),paddingTop:Object(c.q)(48)}),Object(a.a)(n,"&.formBuilderOverlayBg",{position:"relative",pointerEvents:"none","&::before":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:e.palette.common.WhiteUpd(500),pointerEvents:"none",zIndex:5},"& .selectMenu":{position:"relative",zIndex:2,"& .MuiInput-root":{background:"transparent"}},"& .MuiCheckbox-root":{position:"relative",zIndex:2,"& .customCheckedIcon":{background:"transparent"}}}),n)),formHeading:(i={marginBottom:Object(c.p)(40),marginTop:"var(--mfd-spacing-xs)"},Object(a.a)(i,e.breakpoints.up("lg"),{marginTop:Object(c.p)(28),marginBottom:"var(--mfd-spacing-l)"}),Object(a.a)(i,e.breakpoints.down("md"),{marginBottom:Object(c.q)(40)}),i),captchaWrapper:Object(a.a)({marginBottom:"var(--mfd-spacing-l)"},e.breakpoints.up("lg"),Object(o.a)({},y("var(--mfd-spacing-xxs)","var(--mfd-spacing-xxs)"))),formWrapper:{"& .MuiFormControl-root, .MuiFormControl-root.MuiTextField-root":(l={marginBottom:Object(c.p)(36)},Object(a.a)(l,e.breakpoints.up("lg"),{marginBottom:"var(--mfd-spacing-l)"}),Object(a.a)(l,e.breakpoints.down("md"),{marginBottom:Object(c.q)(36)}),l),"& .MuiFormControl-root":(d={marginBottom:Object(c.p)(36),marginTop:0,width:"100%"},Object(a.a)(d,e.breakpoints.up("lg"),{margin:"var(--mfd-spacing-xxs)",width:"calc(50% - var(--mfd-spacing-s))",marginBottom:"var(--mfd-spacing-l)",marginTop:0,"&.fullWidth":{width:"calc(100% - var(--mfd-spacing-s))"}}),Object(a.a)(d,e.breakpoints.down("md"),{marginBottom:Object(c.q)(36)}
2),Object(a.a)(d,"& .MuiFormControlLabel-root",{alignItems:"flex-start","& .MuiCheckbox-root":{paddingTop:0}}),Object(a.a)(d,"& .calendarWrapper",Object(a.a)({marginTop:Object(c.p)(30)},e.breakpoints.down("md"),{marginTop:Object(c.q)(30)})),Object(a.a)(d,"& .rangeCalendarPicker",Object(a.a)({zIndex:"1",top:Object(c.p)(30),"& label":Object(o.a)(Object(o.a)({},v(Object(c.p)(-5))),{},{transform:"translate(0, ".concat(Object(c.p)(-41.5),") scale(0.9)")})},e.breakpoints.down("md"),{top:Object(c.q)(30),"& label":Object(o.a)(Object(o.a)({},v(Object(c.q)(-5))),{},{transform:"translate(0, ".concat(Object(c.q)(-41.5),") scale(0.9)")})})),Object(a.a)(d,"& .MuiFormGroup-root",Object(a.a)({"& .MuiFormControlLabel-label":Object(a.a)({lineHeight:Object(c.p)(24)},e.breakpoints.down("md"),{lineHeight:Object(c.q)(24)}),"& .MuiFormControlLabel-root":{alignItems:"center"}},e.breakpoints.down("lg"),{flexDirection:"row"})),Object(a.a)(d,"& .MuiFormLabel-root",{fontSize:"inherit",fontFamily:e.custom.fontFamily.primaryRegular}),Object(a.a)(d,"&.boldText .MuiFormLabel-root",Object(a.a)({fontSize:"inherit",fontFamily:e.custom.fontFamily.primaryBold,marginBottom:Object(c.p)(10)},e.breakpoints.down("md"),{marginBottom:Object(c.q)(10)})),Object(a.a)(d,"&.selectMenu",{"& .MuiFormLabel-root":(u={position:"relative",transform:"translate(0, ".concat(Object(c.p)(-25),") scale(.9)")},Object(a.a)(u,e.breakpoints.down("md"),{transform:"translate(0, ".concat(Object(c.q)(-25),") scale(.9)")}),Object(a.a)(u,"& .MuiTypography-body2Bold",{fontFamily:e.custom.fontFamily.primaryRegular}),u),"& .MuiInput-formControl":{marginTop:Object(c.p)(0),"& .MuiSelect-select":Object(a.a)({fontFamily:e.custom.fontFamily.body2,paddingBottom:Object(c.p)(10)},e.breakpoints.down("md"),{paddingBottom:Object(c.q)(10)})}}),d),"& button.Mui-disabled":{background:e.palette.common.Black(300)}},formTitle:(p={marginBottom:Object(c.p)(18)},Object(a.a)(p,e.breakpoints.up("lg"),Object(o.a)(Object(o.a)({},y("var(--mfd-spacing-xxs)","var(--mfd-spacing-xxs)")),{},{marginBottom:"var(--mfd-spacing-xs)"})),Object(a.a)(p,e.breakpoints.down("md"),{marginBottom:Object(c.q)(18)}),p),uploadError:(h={},Object(a.a)(h,e.breakpoints.up("lg"),Object(o.a)({},y("var(--mfd-spacing-xxs)","var(--mfd-spacing-xxs)"))),Object(a.a)(h,"color",e.palette.common.Sunset()),Object(a.a)(h,"marginTop","var(--mfd-spacing-s)"),h),messageWrapper:(m={position:"relative",height:"calc(100vh - ".concat(Object(c.p)(156),")")},Object(a.a)(m,e.breakpoints.down("md"),{height:"calc(100vh - ".concat(Object(c.q)(156),")")}),Object(a.a)(m,e.breakpoints.up("lg"),{height:"calc(100vh - ".concat(Object(c.p)(156),")")}),Object(a.a)(m,"& .formSubmissionMessage",{"& h2, & h3, & h4, & h5, & h6":{margin:0,marginBottom:"var(--mfd-spacing-s)"},"& p":Object(o.a)({margin:0,marginBottom:"var(--mfd-spacing-m)"},e.typography.body2),"& a":Object(a.a)({fontSize:Object(c.p)(16),fontFamily:e.custom.fontFamily.primaryBold,textDecoration:"none"},e.breakpoints.down("md"),{fontSize:Object(c.q)(16)})}),m),submitButton:(f={},Object(a.a)(f,e.breakpoints.up("lg"),Object(o.a)({},y("var(--mfd-spacing-xxs)","var(--mfd-spacing-xxs)"))),Object(a.a)(f,"& .MuiButton-label",{fontFamily:e.custom.fontFamily.primaryBold}),f),submissionMessage:{textAlign:"center",position:"absolute",top:"50%",left:"50%",width:"60%",transform:"translate(-50%, -50%)","& svg":{marginBottom:"var(--mfd-spacing-l)"}}}},d=function(e){var t,n,i,r,u,d,p=e.mixins,h=p.paddingLR,m=p.left,f=p.marginLR;return{root:(t={},Object(a.a)(t,e.breakpoints.up("lg"),Object(o.a)(Object(o.a)({paddingTop:Object(c.p)(96)},h("".concat(Object(c.p)(92)),0)),{},{paddingBottom:Object(c.p)(88),backgroundColor:function(e){return Object(s.get)(e,"fields.backgroundColor.fields.colorCode.value","")}})),Object(a.a)(t,"& input[type = number]::-webkit-inner-spin-button, & input[type = number]::-webkit-outer-spin-button",{"-webkitAappearance":"none","-mozAppearance":"none",appearance:"none",margin:0}),Object(a.a)(t,"input[type=number]",{"-mozAppearance":"textfield"}),Object(a.a)(t,"& .rfp-form-wrapper > div:first-child",{"& .formHeading":{"&:first-child":{marginTop:0}}}),t),formContainer:Object(o.a)(Object(o.a)({backgroundColor:e.mixins.White()},h("".concat(Object(c.p)(24)),"".concat(Object(c.p)(24)))),{},(n={paddingBottom:Object(c.p)(48),paddingTop:Object(c.p)(48)},Object(a.a)(n,e.breakpoints.up("lg"),Object(o.a)(Object(o.a)({paddingTop:Object(c.p)(88),paddingBottom:Object(c.p)(88)},h("".concat(Object(c.p)(60)),"".concat(Object(c.p)(60)))),{},{width:"51%"})),Object(a.a)(n,"&.formBuilderOverlayBg",{position:"relative",pointerEvents:"none","&::before":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:"rgba(255, 255, 255, 0.5)",pointerEvents:"none",zIndex:5},"& .selectMenu":{position:"relative",zIndex:2,"& .MuiInput-root":{background:"transparent"}},"& .MuiCheckbox-root":{position:"relative",zIndex:2,"& .customCheckedIcon":{background:"transparent"}}}),n)),formHeading:Object(a.a)({marginBottom:Object(c.p)(40),marginTop:Object(c.p)(12)},e.breakpoints.up("lg"),{marginTop:Object(c.p)(28),marginBottom:Object(c.p)(32)}),captchaWrapper:Object(a.a)({marginBottom:Object(c.p)(32)},e.breakpoints.up("lg"),Object(o.a)({},f(Object(c.p)(8),Object(c.p)(8)))),formWrapper:{"& .MuiFormControl-root, .MuiFormControl-root.MuiTextField-root":Object(a.a)({marginBottom:Object(c.p)(36)},e.breakpoints.up("lg"),{marginBottom:Object(c.p)(32)}),"& .MuiFormControl-root":(i={marginBottom:Object(c.p)(36),marginTop:0,width:"100%"},Object(a.a)(i,e.breakpoints.up("lg"),{margin:e.spacing(1),width:"calc(50% - 16px)",marginBottom:Object(c.p)(32),marginTop:0,"&.fullWidth":{width:"calc(100% - 16px)"}}
2),Object(a.a)(i,"& .MuiFormControlLabel-root",{alignItems:"flex-start","& .MuiCheckbox-root":{paddingTop:0}}),Object(a.a)(i,"& .calendarWrapper",{marginTop:Object(c.p)(30)}),Object(a.a)(i,"& .rangeCalendarPicker",{zIndex:"1",top:Object(c.p)(30),"& label":Object(o.a)(Object(o.a)({},m(Object(c.p)(-5))),{},{transform:"translate(0, ".concat(Object(c.p)(-41.5),") scale(0.9)")})}),Object(a.a)(i,"& .MuiFormGroup-root",Object(a.a)({"& .MuiFormControlLabel-label":{lineHeight:l.g.s24Rem},"& .MuiFormControlLabel-root":{alignItems:"center"}},e.breakpoints.down("lg"),{flexDirection:"row"})),Object(a.a)(i,"& .MuiFormLabel-root",{fontSize:"inherit",fontFamily:e.custom.fontFamily.primaryRegular}),Object(a.a)(i,"&.boldText .MuiFormLabel-root",{fontSize:"inherit",fontFamily:e.custom.fontFamily.primaryBold,marginBottom:Object(c.p)(10)}),Object(a.a)(i,"&.selectMenu",{"& .MuiFormLabel-root":{position:"relative",transform:"translate(0, ".concat(Object(c.p)(-25),") scale(.9)"),"& .MuiTypography-body2Bold":{fontFamily:e.custom.fontFamily.primaryRegular}},"& .MuiInput-formControl":{marginTop:Object(c.p)(0),"& .MuiSelect-select":{fontFamily:e.custom.fontFamily.body2,paddingBottom:Object(c.p)(10)}}}),i),"& button.Mui-disabled":{background:e.mixins.Black(300)}},formTitle:Object(a.a)({marginBottom:Object(c.p)(18)},e.breakpoints.up("lg"),Object(o.a)(Object(o.a)({},f(Object(c.p)(8),Object(c.p)(8))),{},{marginBottom:Object(c.p)(12)})),uploadError:(r={},Object(a.a)(r,e.breakpoints.up("lg"),Object(o.a)({},f(Object(c.p)(8),Object(c.p)(8)))),Object(a.a)(r,"color",e.mixins.AbuDhabiOrange()),Object(a.a)(r,"marginTop",Object(c.p)(16)),r),messageWrapper:(u={position:"relative",height:"calc(100vh - ".concat(Object(c.p)(156),")")},Object(a.a)(u,e.breakpoints.up("lg"),{height:"calc(100vh - ".concat(Object(c.p)(156),")")}),Object(a.a)(u,"& .formSubmissionMessage",{"& h2, & h3, & h4, & h5, & h6":{margin:0,marginBottom:Object(c.p)(16)},"& p":Object(o.a)({margin:0,marginBottom:Object(c.p)(24)},e.typography.body2),"& a":{fontSize:l.g.s16Rem,fontFamily:e.custom.fontFamily.primaryBold,textDecoration:"none"}}),u),submitButton:(d={},Object(a.a)(d,e.breakpoints.up("lg"),Object(o.a)({},f(Object(c.p)(8),Object(c.p)(8)))),Object(a.a)(d,"& .MuiButton-label",{fontFamily:e.custom.fontFamily.primaryBold}),d),submissionMessage:{textAlign:"center",position:"absolute",top:"50%",left:"50%",width:"60%",transform:"translate(-50%, -50%)","& svg":{marginBottom:e.spacing(2)}}}},p=Object(i.a)((function(e){return Object(r.c)(e)?u(e):d(e)}));t.a=p},1556:function(e,t,n){"use strict";var i=n(3),r=n(0),a=n.n(r),o=n(49),s=n(84),c=n(1576),l=n(1546),u=n(1541),d=n(1555),p=n(31),h=n(1557),m=n(528),f=n(15),g=n(1564),b=n(20),v=n(865),y=n(27),x=n(2),_=n(1),w=function(e){var t,n,r,a=e.mixins,o=a.marginLR,s=a.paddingLR;return{root:Object(x.a)({margin:0,marginBottom:"var(--mfd-spacing-l)"},e.breakpoints.up("lg"),{margin:"var(--mfd-spacing-xxs)",marginBottom:"var(--mfd-spacing-l)"}),uploadButton:{"&:not(.Mui-disabled):hover":{"& .MuiButton-label":{textDecoration:"none"},"& .MuiButton-endIcon":{overflow:"hidden","& .MuiIcon-root":{animation:"none","& svg":{transform:"rotate(270deg)"}}}},"& .MuiButton-label":Object(x.a)({fontFamily:e.custom.fontFamily.primaryBold,fontSize:Object(_.p)(16)},e.breakpoints.down("md"),{fontSize:Object(_.q)(16)}),"& .MuiButton-endIcon":Object(i.a)(Object(i.a)({},o("var(--mfd-spacing-s)",0)),{},{"& .MuiIcon-root":(n={width:Object(_.p)(24),height:Object(_.p)(24)},Object(x.a)(n,e.breakpoints.down("md"),{width:Object(_.q)(24),height:Object(_.q)(24)}),Object(x.a)(n,"& svg",(t={width:Object(_.p)(24),height:Object(_.p)(24)},Object(x.a)(t,e.breakpoints.down("md"),{width:Object(_.q)(24),height:Object(_.q)(24)}),Object(x.a)(t,"transform","rotate(270deg)"),t)),n)}),"&.Mui-disabled":{"& .MuiButton-endIcon":{backgroundColor:e.palette.common.Black(200)}}},error:{marginTop:"var(--mfd-spacing-xxs)",color:e.palette.common.Sunset()},supportedDocsText:{"& .richText":{"& ul":Object(i.a)(Object(i.a)({},s("var(--mfd-spacing-s)",0)),{},{color:e.palette.common.Black(600)})}},inputLabel:{marginBottom:"var(--mfd-spacing-m)"},noFileMessage:{marginTop:"var(--mfd-spacing-s)"},docsList:{marginTop:"var(--mfd-spacing-s)",display:"flex",flexDirection:"column"},fileName:Object(i.a)({flexBasis:"70%"},e.palette.common.ellipsis(1)),docsRow:Object(x.a)({paddingBottom:"var(--mfd-spacing-s)",paddingTop:"var(--mfd-spacing-s)",borderBottom:"1px solid rgba(0, 0, 0, 0.2)"},e.breakpoints.up("lg"),{display:"flex",justifyContent:"space-between"}),responsiveSection:(r={marginTop:Object(_.p)(6),display:"flex",justifyContent:"space-between"},Object(x.a)(r,e.breakpoints.up("lg"),Object(i.a)({flexBasis:"30%",margin:0},o(Object(_.p)(25),0))),Object(x.a)(r,e.breakpoints.down("md"),{marginTop:Object(_.q)(6)}),r),removeLink:{color:e.palette.common.Sunset(),cursor:"pointer"}}},O=(n(199),n(4)),j=function(e){var t=e.mixins,n=t.marginLR,r=t.paddingLR;return{root:Object(x.a)({margin:0,marginBottom:Object(_.p)(32)},e.breakpoints.up("lg"),{margin:"0.5rem",marginBottom:Object(_.p)(32)}),uploadButton:{"&:not(.Mui-disabled):hover":{"& .MuiButton-label":{textDecoration:"none"},"& .MuiButton-endIcon":{overflow:"hidden","& .MuiIcon-root":{animation:"none","& svg":{transform:"rotate(270deg)"}}}},"& .MuiButton-label":{fontFamily:e.custom.fontFamily.primaryBold,fontSize:O.g.s16Rem},"& .MuiButton-endIcon":Object(i.a)(Object(i.a)({},n(Object(_.p)(16),0)),{},{"& .MuiIcon-root":{"& svg":{transform:"rotate(270deg)"}}}),"&.Mui-disabled":{"& .MuiButton-endIcon":{backgroundColor:e.mixins.Black(200)}}},error:{marginTop:Object(_.p)(8),color:e.mixins.AbuDhabiOrange()},supportedDocsText:{"& .richText":{"& ul":Object(i.a)(Object(i.a)({},r(Object(_.p)(16),0)),{},{color:e.mixins.Black(600)})}},inputLabel:{marginBottom:Object(_.p)(24)},noFileMessage:{marginTop:Object(_.p)(16)},docsList:{marginTop:Object(_.p)(16),display:"flex",flexDirection:"column"},fileName:Object(i.a)({flexBasis:"70%"},e.palette.common.ellipsis(1)),docsRow:Object(x.a)({paddingBottom:Object(_.p)(16),paddingTop:Object(_.p)(16),borderBottom:e.borders.divider},e.breakpoints.up("lg"),{display:"flex",justifyContent:"space-between"}),responsiveSection:Object(x.a)({marginTop:Object(_.p)(6),display:"flex",justifyContent:"space-between"},e.breakpoints.up("lg"),Object(i.a)({flexBasis:"30%",margin:0},n(Object(_.p)(25),0))),removeLink:{color:e.mixins.AbuDhabiOrange(),cursor:"pointer"}}},C=Object(v.a)((function(e){return Object(y.c)(e)?w(e):j(e)})),E=n(1542),T=n(12),k=function(e){if(e&&e.length>=5)return!0;
2if(!e||!e.length)return!1;var t=0,n=Object(T.a)("maxFileUploadSize")&&parseInt(Object(T.a)("maxFileUploadSize"));return e.forEach((function(e){t+=e.size})),t>n||void 0},S=function(e){var t=C(e),n=e.data,i=n.fieldLabel,r=n.selectedValue,c=n.fieldName,l=n.fieldType,u=n.error,d=n.uploadError,h=n.fileFormatValidationMessage,f=n.fileSizeValidationMessage,g=n.supportedDocMessage,v=n.disableFileInput,y=e.className,x=function(e,n,i){return a.a.createElement(p.a,{variant:e,component:n,gutterBottom:!0,className:t.formHeading},a.a.createElement(s.Text,{field:i}))};return a.a.createElement("div",{className:Object(b.a)(t.root,y)},a.a.createElement("div",{className:t.inputLabel},x("body2Bold","span",i)),a.a.createElement("label",{htmlFor:"input_file_".concat(c&&c.value)},a.a.createElement("input",{style:{display:"none"},id:"input_file_".concat(c&&c.value),name:c&&c.value,onChange:e.onChange,type:l&&l.value,multiple:e.shouldAllowMultipleUpload}),a.a.createElement(m.a,{component:"span",buttonType:"primary",hasBorder:!1,isStartIcon:!1,disabled:v||k(r&&r.value),className:t.uploadButton},Object(T.a)("upload"))),r.value&&0===r.value.length?a.a.createElement("div",{className:t.noFileMessage},x("body2","span",{value:Object(T.a)("noFilesUploaded")})):"",u&&a.a.createElement("div",{className:t.error},function(){var e="";return"fileType"===u?e=Object(o.get)(h,"fields.displayText",""):"fileSize"===u&&(e=Object(o.get)(f,"fields.displayText","")),x("body3","span",e)}()),d&&a.a.createElement("div",{className:t.error},x("body3","span",{value:d})),r.value&&r.value.length?a.a.createElement("div",{className:t.docsList},r.value.map((function(n,i){return a.a.createElement("div",{key:i,className:t.docsRow},a.a.createElement("div",{className:t.fileName},x("body2","span",{value:n.name})),a.a.createElement("div",{className:t.responsiveSection},a.a.createElement("div",null,x("body2Bold","span",{value:(r=n.size,(r/1048576).toFixed(2)>1?"".concat((r/1048576).toFixed(2)," mb"):(r/1024).toFixed(2)>1?"".concat((r/1024).toFixed(2)," kb"):"".concat(r," bytes"))})),a.a.createElement("div",{className:t.removeLink,onClick:function(){return e.onRemoveClick(n.lastModified,c.value)}},x("body2Bold","span",{value:Object(T.a)("remove")}))));var r}))):"",g&&g.value&&a.a.createElement("div",{className:t.supportedDocsText},a.a.createElement(E.a,{innerHTML:g,className:"formSubmissionMessage"})))},A=n(1515),I=function(e){var t,n,i=e.data,r=i.fieldLabel,o=i.selectedValue,c=i.incrementorBtnDisable,l=i.decrementorBtnDisable,u=(i.customStyle,i.validationMessage),d=o.value,h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";switch(e){case"decrement":return a.a.createElement("svg",{className:n,width:"16",height:"2",viewBox:"0 0 16 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("rect",{width:"16",height:"2",fill:t}));case"increment":return a.a.createElement("svg",{className:n,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("rect",{x:"9",y:"18",width:"16",height:"2",transform:"rotate(-90 9 18)",fill:t}),a.a.createElement("rect",{x:"2",y:"9",width:"16",height:"2",fill:t}));default:return a.a.createElement(a.a.Fragment,null)}},m=function(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return a.a.createElement(A.a,{disabled:i,onClick:function(){return e.onClick(t,Number(d))}},n)},f=l&&d<=l||!1,g=c&&d>=c||!1;return a.a.createElement("div",{className:"counterBox"},(t="body2",n=r,a.a.createElement(p.a,{variant:t,gutterBottom:!1},a.a.createElement(s.Text,{field:n}))),a.a.createElement("div",{className:"counterWrapper"},m("decrement",h("decrement",f?"#D9D9D9":"#ffffff"),f),a.a.createElement("div",{className:"valueWrapper"}," ",a.a.createElement(p.a,{variant:"body3Bold",gutterBottom:!1},d," ",Object(T.a)("ItineraryDays"))),m("increment",h("increment",g?"#D9D9D9":"#ffffff"),g)),u&&g&&a.a.createElement(p.a,{variant:"body3",className:"errortext",component:"span"},u.value))};t.a=function(e){var t=Object(d.a)(e),n=Object(o.get)(e,"formData.fields",[]),r=Object(y.Y)(n),v=Object(o.get)(e,"formData.formTitle",""),x=Object(o.get)(e,"formDataList",""),_=Object(o.get)(e,"captchaApiKey",""),w=Object(o.get)(e,"isFormValid",""),O=Object(o.get)(e,"disableFile",""),j=Object(o.get)(e,"errors",""),C=Object(o.get)(e,"formName",""),E=l.b.SINGLELINETEXT,T=l.b.EMAIL,k=l.b.PHONE,M=l.b.MULTILINETEXT,L=l.b.DROPDOWN,B=l.b.RADIOBUTTONLIST,R=l.b.CHECKBOX,D=l.b.DATE,P=l.b.RANGEDATE,z=l.b.CAPTCHA,F=l.b.SUBMIT,N=l.b.FILE,U=l.b.NUMBER,V=l.b.COUNTER,W=l.b.CUSTOMBUTTON,q=function(e,n,i){return a.a.createElement(p.a,{variant:e,component:n,gutterBottom:!0,className:Object(b.a)(t.formHeading,"formHeading")},a.a.createElement(s.Text,{field:i}))},G=function(e,t){var n=e[t&&t[0]]||"",i=e[t&&t[1]]||"";return!(!n&&!i||n&&i)},Z=function(n){var r,s,u,d,p,b=(null===n||void 0===n?void 0:n.fieldType).value,v=j.invalidEmail,y=Object(o.get)(n,"parentKey","");if(y&&y.value){var q=Object(o.get)(n,"parentValue.fields.key.value",""),Z=Object(o.get)(n,"parentValue.fields.mappingId.value","");if(!x[y&&(null===y||void 0===y?void 0:y.value)]||x[y&&(null===y||void 0===y?void 0:y.value)]!==q&&x[y&&(null===y||void 0===y?void 0:y.value)]!==Z)return}var H,X,K,Y=Object(i.a)(Object(i.a)({},n),{},{selectedValue:{value:x[(null===n||void 0===n?void 0:n.fieldName)&&(null===n||void 0===n||null===(r=n.fieldName)||void 0===r?void 0:r.value)]||(null===n||void 0===n?void 0:n.defaultValue)&&(null===n||void 0===n||null===(s=n.defaultValue)||void 0===s||null===(u=s.fields)||void 0===u||null===(d=u.displayText)||void 0===d?void 0:d.value)||""}}),J={};(b===M&&(Y=Object(i.a)(Object(i.a)({},Y),{},{multiline:!0,rows:3,rowsMax:4})),b===T&&(Y=Object(i.a)(Object(i.a)({},Y),{},{invalidEmail:v})),b===N)&&(Y=Object(i.a)(Object(i.a)({},Y),{},{selectedValue:{value:x[(null===n||void 0===n?void 0:n.fieldName)&&(null===n||void 0===n||null===(H=n.fieldName)||void 0===H?void 0:H.value)]||[]},error:j.fileError,uploadError:j.uploadError,disableFileInput:O}));(b!==k&&b!==U||(Y=Object(i.a)(Object(i.a)({},Y),{},{type:U}),J={inputProps:{className:"no-flip"}}),b===D)&&(Y=Object(i.a)(Object(i.a)({},Y),{},{startDate:{value:x[(null===n||void 0===n?void 0:n.fieldName)&&(null===n||void 0===n||null===(X=n.fieldName)||void 0===X?void 0:X.value)]||""},startDateName:{value:(null===n||void 0===n?void 0:n.fieldName)&&(null===n||void 0===n||null===(K=n.fieldName)||void 0===K?void 0:K.value)}}),J={monthsShown:1});if(b===D&&(J={maxDateYearCount:1}),b===P){var Q=n.fieldName&&n.fieldName.value.split("|");Y=Object(i.a)(Object(i.a)({},Y),{},{startDate:{value:x[Q&&Q[0]]||""},endDate:{value:x[Q&&Q[1]]||""},startDateName:{value:Q&&Q[0]},endDateName:{value:Q&&Q[1]},showError:G(x,Q),eventCalender:!0}),J={monthsShown:2,maxDateYearCount:10}}switch(b===E&&(J=Object(i.a)({},null===n||void 0===n?void 0:n.extraProps)),b){case E:case T:case k:case U:case M:return a.a.createElement(h.b,{data:Y,onChange:e.onChange,className:b===M?"fullWidth":"",other:J});case N:return a.a.createElement(S,{data:Y,onChange:e.onChange,onRemoveClick:e.onRemoveClick,shouldAllowMultipleUpload:!1});case L:return Y.fieldName.value===l.a&&(Y=Object(i.a)(Object(i.a)({},Y),{},{listItems:e.countriesList||[]})),a.a.createElement(h.d,{formName:C,data:Y,onChange:e.onChange,className:"selectMenu"});case B:return a.a.createElement(h.c,{data:Y,onChange:e.onChange,className:"fullWidth boldText",customStyle:n.customStyle});case R:return a.a.createElement(h.a,{data:n,selected:x[(null===n||void 0===n?void 0:n.fieldName)&&(null===n||void 0===n||null===(p=n.fieldName)||void 0===p?void 0:p.value)],onChange:e.handleCheckboxChange,className:"fullWidth"});case D:case P:return a.a.createElement(g.a,Object.assign({data:Y,onChange:e.onChange},J,{shouldSetMinDate:!0}));case z:return f.a&&(window.recaptchaOptions={useRecaptchaNet:!0}),n.enableCaptcha.value&&_&&a.a.createElement("div",{className:t.captchaWrapper},a.a.createElement(c.a,{sitekey:_,onChange:e.recaptchaCallback}));case F:var $,ee=null!==($=n.size)&&void 0!==$?$:"medium";return a.a.createElement(m.a,{buttonType:"form",type:"submit",hasBorder:!1,size:ee,field:{value:{text:n.fieldLabel.value}},className:"".concat(t.submitButton," ").concat(n.customStyle||""),disabled:!w});case W:var te;return a.a.createElement(A.a,{buttonType:"form",className:"".concat(n.customStyle," formCustomBtn"),onClick:n.onClick},null===n||void 0===n||null===(te=n.fieldLabel)||void 0===te?void 0:te.value);case V:return a.a.createElement(I,{data:Y,onClick:e.onClick,customStyle:n.customStyle});default:return null}};return a.a.createElement(u.a,{item:!0,className:t.formWrapper},v&&Object(y.Z)(null===v||void 0===v?void 0:v.value)&&q("h5","h5",v),r&&r.map((function(e){var n,i=Object(o.get)(e,"fields","");if(i&&(null===i||void 0===i?void 0:i.fieldGroup)&&(null===i||void 0===i||null===(n=i.fieldGroup)||void 0===n?void 0:n.length)){var r,s=Object(o.get)(i,"groupTitle","");return a.a.createElement(u.a,{item:!0,className:t.formGroup},s&&Object(y.Z)(null===s||void 0===s?void 0:s.value)&&a.a.createElement(u.a,{item:!0,className:t.formTitle},q("body2Bold","span",s)),null===i||void 0===i||null===(r=i.fieldGroup)||void 0===r?void 0:r.map((function(e){var t=Object(o.get)(e,"fields","");return Z(t)})))}return a.a.createElement(u.a,{item:!0},Z(i))})))}},1557:function(e,t,n){"use strict";var i=n(1550);n.d(t,"d",(function(){return i.a}));var r=n(1551);n.d(t,"a",(function(){return r.a}));var a=n(1552);n.d(t,"b",(function(){return a.a}));var o=n(1549);n.d(t,"c",(function(){return o.b}))},1560:function(e,t,n){"use strict";var i=n(0),r=n.n(i),a=n(2),o=n(3),s=n(865),c=n(1),l=Object(s.a)((function(e){var t,n,i,r,s,l;return{root:{position:"relative","& .badgeCount":Object(o.a)(Object(o.a)({position:"absolute",top:Object(c.p)(-3)},e.mixins.right(Object(c.p)(-3))),{},(t={height:Object(c.p)(24),width:Object(c.p)(24),color:"#fff",backgroundColor:e.palette.common.Palm(),borderRadius:"50%",display:"flex",justifyContent:"center",alignItems:"center",lineHeight:0,border:"3px solid #fff"},Object(a.a)(t,Object(c.e)("lg"),Object(o.a)({height:Object(c.q)(20),width:Object(c.q)(20),top:Object(c.q)(-3)},e.mixins.right(Object(c.q)(-3)))),Object(a.a)(t,"@media (min-width: 768px) and (max-width: 900px)",Object(o.a)({height:Object(c.p)(30),width:Object(c.p)(30),top:Object(c.p)(-6)},e.mixins.right(Object(c.p)(-6)))),Object(a.a)(t,Object(c.e)("mdUpd"),Object(o.a)({height:Object(c.q)(23),width:Object(c.q)(23),top:Object(c.q)(-4)},e.mixins.right(Object(c.q)(-4)))),t)),"& .iconsListItemLink":(l={transition:"all 0.2s ease-in",margin:0,border:"1px solid ".concat(e.palette.common.Grey3()),borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",height:Object(c.p)(48),width:Object(c.p)(48),textDecoration:"none","@media (min-width: 1200px)":{"&:hover":{"& .badgeCount":Object(o.a)({borderColor:e.palette.common.Palm(),height:Object(c.p)(20),width:Object(c.p)(20),top:Object(c.p)(-1)},e.mixins.right(Object(c.p)(-1))),borderColor:e.palette.common.Palm(),backgroundColor:e.palette.common.Palm(),"& .icon":{"& svg":{"& path":{fill:"#fff"}}}}}},Object(a.a)(l,Object(c.e)("lg"),{borderRadius:"50%"}),Object(a.a)(l,Object(c.e)("md"),{height:Object(c.p)(48),width:Object(c.p)(48)}),Object(a.a)(l,Object(c.e)("mdUpd"),{height:Object(c.q)(40),width:Object(c.q)(40)}),Object(a.a)(l,"&.hoverBorder",{"@media (min-width: 1200px)":{"&:hover":{borderColor:e.palette.common.Palm(),backgroundColor:"transparent","& .icon":{"& svg":{"& path":{fill:e.palette.common.Palm()}}}}}}),Object(a.a)(l,"&.activeBg",{borderColor:e.palette.common.Palm(),backgroundColor:e.palette.common.Palm(),"& .icon":{"& svg":{"& path":{fill:"#fff"}}},"@media (min-width: 1200px)":{"&:hover":{borderColor:"".concat(e.palette.common.Palm()," !important"),backgroundColor:"".concat(e.palette.common.Palm()," !important"),"& .icon":{"& svg":{"& path":{fill:"#fff !important"}}}}}}),Object(a.a)(l,"&.activeBorder",(n={borderColor:e.palette.common.Palm()},Object(a.a)(n,"borderColor","rgba(0, 96, 95, 1) !important"),Object(a.a)(n,"textDecoration","none"),n)),Object(a.a)(l,"& .icon",(s={display:"flex",alignItems:"center",justifyContent:"center",height:"".concat(Object(c.p)(14)),width:"".concat(Object(c.p)(14))},Object(a.a)(s,Object(c.e)("mdUpd"),{height:"".concat(Object(c.q)(16)),width:"".concat(Object(c.q)(16))}
2),Object(a.a)(s,"& svg",(i={height:"".concat(Object(c.p)(14)),width:"".concat(Object(c.p)(14))},Object(a.a)(i,Object(c.e)("mdUpd"),{height:"".concat(Object(c.q)(16)),width:"".concat(Object(c.q)(16))}),Object(a.a)(i,"& path",{transition:"all 0.2s ease-in"}),i)),Object(a.a)(s,"&.largeIcon",(r={height:"".concat(Object(c.p)(20)),width:"".concat(Object(c.p)(20))},Object(a.a)(r,Object(c.e)("mdUpd"),{height:"".concat(Object(c.q)(20)),width:"".concat(Object(c.q)(20))}),Object(a.a)(r,"& svg",Object(a.a)({height:"".concat(Object(c.p)(20)),width:"".concat(Object(c.p)(20))},Object(c.e)("mdUpd"),{height:"".concat(Object(c.q)(20)),width:"".concat(Object(c.q)(20))})),r)),s)),l)}}})),u=n(1513),d=n(31),p=n(5);t.a=function(e){var t=e.iconType,n=void 0===t?"":t,a=e.className,o=void 0===a?"":a,s=e.mapRoundButtonClick,c=e.badgeCount,h=e.classNameIcon,m=void 0===h?"":h,f=e.isActive,g=void 0!==f&&f,b=e.classNameIconWrapper,v=void 0===b?"":b,y=l(),x=Object(i.useCallback)((function(e){var t=e.type;switch(void 0===t?"":t){case"filter":return r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.6665 4.66667C6.6665 4.29848 6.96498 4 7.33317 4H13.3332C13.7014 4 13.9998 4.29848 13.9998 4.66667C13.9998 5.03486 13.7014 5.33333 13.3332 5.33333H7.33317C6.96498 5.33333 6.6665 5.03486 6.6665 4.66667Z",fill:"#00605F"}),r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.6665 11.3332C2.6665 10.965 2.96498 10.6665 3.33317 10.6665H9.33317C9.70136 10.6665 9.99984 10.965 9.99984 11.3332C9.99984 11.7014 9.70136 11.9998 9.33317 11.9998H3.33317C2.96498 11.9998 2.6665 11.7014 2.6665 11.3332Z",fill:"#00605F"}),r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3332 9.99984C10.5968 9.99984 9.99984 10.5968 9.99984 11.3332C9.99984 12.0696 10.5968 12.6665 11.3332 12.6665C12.0696 12.6665 12.6665 12.0696 12.6665 11.3332C12.6665 10.5968 12.0696 9.99984 11.3332 9.99984ZM8.6665 11.3332C8.6665 9.86041 9.86041 8.6665 11.3332 8.6665C12.8059 8.6665 13.9998 9.86041 13.9998 11.3332C13.9998 12.8059 12.8059 13.9998 11.3332 13.9998C9.86041 13.9998 8.6665 12.8059 8.6665 11.3332Z",fill:"#00605F"}),r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.66667 3.33333C3.93029 3.33333 3.33333 3.93029 3.33333 4.66667C3.33333 5.40305 3.93029 6 4.66667 6C5.40305 6 6 5.40305 6 4.66667C6 3.93029 5.40305 3.33333 4.66667 3.33333ZM2 4.66667C2 3.19391 3.19391 2 4.66667 2C6.13943 2 7.33333 3.19391 7.33333 4.66667C7.33333 6.13943 6.13943 7.33333 4.66667 7.33333C3.19391 7.33333 2 6.13943 2 4.66667Z",fill:"#00605F"}));case"itineraries":return r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.1667 2.50016C13.2462 2.50016 12.5 3.24635 12.5 4.16683C12.5 5.0873 13.2462 5.8335 14.1667 5.8335C15.0871 5.8335 15.8333 5.0873 15.8333 4.16683C15.8333 3.24635 15.0871 2.50016 14.1667 2.50016ZM10.9383 3.3335C11.3084 1.89581 12.6135 0.833496 14.1667 0.833496C16.0076 0.833496 17.5 2.32588 17.5 4.16683C17.5 6.00778 16.0076 7.50016 14.1667 7.50016C12.6135 7.50016 11.3084 6.43785 10.9383 5.00016H6.25C5.69747 5.00016 5.16756 5.21966 4.77686 5.61036C4.38616 6.00106 4.16667 6.53096 4.16667 7.0835C4.16667 7.63603 4.38616 8.16593 4.77686 8.55664C5.16756 8.94734 5.69747 9.16683 6.25 9.16683H13.75C14.7446 9.16683 15.6984 9.56192 16.4016 10.2652C17.1049 10.9684 17.5 11.9223 17.5 12.9168C17.5 13.9114 17.1049 14.8652 16.4016 15.5685C15.6984 16.2717 14.7446 16.6668 13.75 16.6668H9.06165C8.69162 18.1045 7.38653 19.1668 5.83333 19.1668C3.99238 19.1668 2.5 17.6744 2.5 15.8335C2.5 13.9925 3.99238 12.5002 5.83333 12.5002C7.38653 12.5002 8.69162 13.5625 9.06165 15.0002H13.75C14.3025 15.0002 14.8324 14.7807 15.2231 14.39C15.6138 13.9993 15.8333 13.4694 15.8333 12.9168C15.8333 12.3643 15.6138 11.8344 15.2231 11.4437C14.8324 11.053 14.3025 10.8335 13.75 10.8335H6.25C5.25544 10.8335 4.30161 10.4384 3.59835 9.73515C2.89509 9.03189 2.5 8.07806 2.5 7.0835C2.5 6.08893 2.89509 5.13511 3.59835 4.43185C4.30161 3.72858 5.25544 3.3335 6.25 3.3335H10.9383ZM5.83333 14.1668C4.91286 14.1668 4.16667 14.913 4.16667 15.8335C4.16667 16.754 4.91286 17.5002 5.83333 17.5002C6.75381 17.5002 7.5 16.754 7.5 15.8335C7.5 14.913 6.75381 14.1668 5.83333 14.1668Z",fill:"black"}));case"heart":return r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"}
2,r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.41305 3.38605C5.37524 3.21588 4.41508 3.44833 3.68747 4.18116C2.10374 5.77622 2.10374 8.36478 3.68747 9.95985L9.99967 16.3173L16.3119 9.95985C17.8956 8.36478 17.8956 5.77622 16.3119 4.18116C15.5843 3.44833 14.6241 3.21588 13.5863 3.38605C12.5311 3.55908 11.4365 4.1491 10.591 5.00057C10.4346 5.15814 10.2217 5.24676 9.99967 5.24676C9.77763 5.24676 9.56477 5.15814 9.40832 5.00057C8.5629 4.1491 7.46826 3.55908 6.41305 3.38605ZM9.99968 3.28953C9.03391 2.49973 7.8717 1.93631 6.68274 1.74135C5.22196 1.50182 3.68351 1.81966 2.50476 3.00686C0.275757 5.25182 0.275757 8.88919 2.50476 11.1342L9.40832 18.0871C9.56477 18.2447 9.77763 18.3333 9.99967 18.3333C10.2217 18.3333 10.4346 18.2447 10.591 18.0871L17.4946 11.1342C19.7236 8.88919 19.7236 5.25182 17.4946 3.00686C16.3158 1.81966 14.7774 1.50182 13.3166 1.74135C12.1276 1.93631 10.9654 2.49973 9.99968 3.28953Z",fill:"black"}));default:return r.a.createElement(r.a.Fragment,null)}}),[]);return r.a.createElement(p.a,{className:"".concat(y.root," ").concat(o),onClick:function(){return s()}},r.a.createElement(u.a,{className:"iconsListItemLink ".concat(c?"activeBorder":""," ").concat(g?"activeBg":""," ").concat(v)},c?r.a.createElement(d.a,{component:"span",variant:"cta2Upd",className:"badgeCount"},c):null,r.a.createElement("span",{className:"svgWrapper icon ".concat(m)},r.a.createElement(x,{type:n}))))}},1563:function(e,t,n){"use strict";var i=n(9),r=n(1511),a=n(1519),o=n(1515),s=n(1517),c=n(0),l=n.n(c),u=n(3),d=n(2),p=n(865),h=n(1),m=Object(p.a)((function(e){var t,n,i,r,a;return{root:(a={backgroundColor:e.palette.common.WhiteUpd(),maxWidth:Object(h.p)(614),width:"100%",transition:"ease 1s all"},Object(d.a)(a,e.breakpoints.down("md"),{maxWidth:Object(h.q)(614)}),Object(d.a)(a,e.breakpoints.down("sm"),{maxWidth:"100%"}),Object(d.a)(a,"& .passportToastWrapper",{"& .passportToastContentWrapper":{display:"flex",alignItems:"center",justifyContent:"space-between","& .crossButton":(n={minWidth:"auto",width:Object(h.p)(36),height:Object(h.p)(36),backgroundColor:"#f7f7f7",borderRadius:"50%",border:"2px solid #fff"},Object(d.a)(n,e.breakpoints.down("md"),{width:Object(h.q)(28),height:Object(h.q)(28)}),Object(d.a)(n,"& .MuiCircularProgress-root",(t={position:"absolute",transform:"rotate(-90Deg) !important",color:e.palette.common.Sunset(),opacity:"0.7",width:"".concat(Object(h.p)(28)," !important"),height:"".concat(Object(h.p)(28)," !important")},Object(d.a)(t,e.breakpoints.down("md"),{width:"".concat(Object(h.q)(28)," !important"),height:"".concat(Object(h.q)(28)," !important")}),Object(d.a)(t,"& .MuiCircularProgress-svg",{"& circle":Object(d.a)({strokeWidth:Object(h.p)(2)},e.breakpoints.down("md"),{strokeWidth:Object(h.q)(2)})}),t)),n),"& .passportToastBtn":Object(u.a)(Object(u.a)({background:"transparent",border:"1px solid ".concat(e.palette.common.Sunset())},e.mixins.marginLeft(Object(h.p)(48))),{},(i={},Object(d.a)(i,e.breakpoints.down("md"),Object(u.a)(Object(u.a)({},e.mixins.marginLeft(Object(h.q)(48))),{},{width:"100%",minWidth:Object(h.q)(240)})),Object(d.a)(i,e.breakpoints.down("sm"),Object(u.a)({marginTop:"var(--mfd-spacing-xs)"},e.mixins.marginLeft("auto"))),Object(d.a)(i,"& .btn-txt",{color:e.palette.common.Sunset(),fontSize:Object(h.p)(14),fontWeight:700,lineHeight:Object(h.p)(16)}),Object(d.a)(i,"& .MuiButton-endIcon",{marginLeft:"var(--mfd-spacing-xxs) !important","& .material-icons":{display:"flex","& svg":Object(d.a)({color:e.palette.common.Sunset(),width:Object(h.p)(15),height:Object(h.p)(12),'[dir="rtl"] &':{transform:"rotate(180Deg)"}},e.breakpoints.down("md"),{width:Object(h.q)(15),height:Object(h.q)(12)})}}),i)),"& .MuiButton-containedSizeSmall":Object(d.a)({padding:"".concat(Object(h.p)(9)," var(--mfd-spacing-s)")},e.breakpoints.down("md"),{padding:"".concat(Object(h.q)(9)," var(--mfd-spacing-s)")}),"& .passportToastInnerWrapper":{display:"flex",flexDirection:"column","& .textTitle":Object(d.a)({color:e.palette.common.Black(),fontFamily:e.custom.fontFamily.primaryBold,fontSize:Object(h.p)(16),lineHeight:Object(h.p)(24)},e.breakpoints.down("md"),{fontSize:Object(h.q)(16),lineHeight:Object(h.q)(24)}),"& .abuDhabiPassportLink":{"& .arrowForwardIcon":Object(d.a)({width:Object(h.p)(4),height:Object(h.p)(8),'[dir="rtl"] &':{transform:"rotate(180deg)"}},e.breakpoints.down("md"),{width:Object(h.q)(4),height:Object(h.q)(8)}),"& .linkLabelText":Object(u.a)(Object(u.a)({},e.mixins.marginRight(6)),{},(r={fontSize:Object(h.p)(14),color:"#009086",fontFamily:e.custom.fontFamily.primaryRegular,lineHeight:Object(h.p)(16)},Object(d.a)(r,e.breakpoints.down("md"),Object(u.a)(Object(u.a)({},e.mixins.marginRight(Object(h.q)(6))),{},{fontSize:Object(h.q)(14),lineHeight:Object(h.q)(24)})),Object(d.a)(r,"&:hover",{textDecoration:"underline"}),r))}}}}),a)}})),f=n(31),g=n(352),b=n(528),v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"arrowForwardIcon":return l.a.createElement("svg",{className:"".concat(t," customSVG"),width:"4",height:"8",viewBox:"0 0 6 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M1 9L5 5L1 1",stroke:"#009086",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}));case"cross":return l.a.createElement("svg",{className:"".concat(t," customSVG"),width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M2 2L10 10M2 10L10 2",stroke:"#565A5C",strokeWidth:"1.5",strokeLinecap:"round"}));default:return l.a.createElement(l.a.Fragment,null)}};t.a=function(e){var t=e.linkLabel,n=void 0===t?"":t,u=e.textTitle,d=void 0===u?"":u,p=e.showLinkLabel,h=void 0===p||p,y=e.handleClose,x=m(),_=Object(r.a)("(max-width:".concat(1023,"px)")),w=function(){return n},O=function(t){t.preventDefault(),e.onClick(t)},j=Object(c.useState)(100),C=Object(i.a)(j,2),E=C[0],T=C[1],k=Object(c.useState)(!1),S=Object(i.a)(k,2),A=S[0],I=S[1];Object(c.useEffect)((function(){var e;return A||(e=setInterval((function(){T((function(t){return t>0?t-1:(clearInterval(e),t)}))}),_?30:37.5)),function(){return clearInterval(e)}}),[3e3,A]);return l.a.createElement(a.a,{className:x.root,onMouseEnter:function(){I(!0)},onMouseLeave:function(){I(!1)}},l.a.createElement(a.a,{className:"passportToastWrapper"},l.a.createElement(a.a,{className:"passportToastContentWrapper"},l.a.createElement(a.a,{className:"passportToastInnerWrapper"},l.a.createElement(f.a,{component:"h3",className:"textTitle"},d),h&&n&&l.a.createElement(g.a,{onClick:function(e){return O(e)},isCustom:!0,className:"abuDhabiPassportLink"},l.a.createElement(f.a,{className:"linkLabelText",component:"span"},w()),v("arrowForwardIcon","arrowForwardIcon")),h&&!n&&l.a.createElement(b.a,{type:"button",buttonType:"form",size:"small",tabIndex:0,hasBorder:!1,className:"passportToastBtn",onClick:function(e){return O(e)}}
2,w())),l.a.createElement(o.a,{onClick:function(){y()},className:"crossButton"},v("cross")," ",l.a.createElement(s.a,{variant:"determinate",value:E})))))}},1564:function(e,t,n){"use strict";var i=n(3),r=n(9),a=n(0),o=n.n(a),s=n(356),c=n.n(s),l=n(84),u=n(45),d=n.n(u),p=n(49),h=(n(445),n(1523)),m=n(1594),f=n.n(m),g=n(16),b=n.n(g),v=n(1511),y=n(1),x=n(865),_=n(2),w=n(199),O=function(e){var t,n,r,a,o,s=e.mixins,c=s.right,l=s.left,u=s.paddingLR;return{root:{display:"inline-block","& .default-shrink":Object(i.a)({position:"absolute",transform:"translate(0, -41.5px) scale(0.9)"},l("calc(-1 * var(--mfd-spacing-xxs))")),"& .react-datepicker-popper":{zIndex:999,"& .react-datepicker":{borderRadius:0,border:"none",boxShadow:"0px 2px 20px 0px rgba(0, 0, 0, 0.08)",width:"100%",display:"flex","& .react-datepicker__navigation":Object(_.a)({border:"solid",borderWidth:"0 ".concat(Object(y.p)(2)," ").concat(Object(y.p)(2)," 0")},e.breakpoints.down("md"),{borderWidth:"0 ".concat(Object(y.q)(2)," ").concat(Object(y.q)(2)," 0")}),"& .react-datepicker__navigation--previous":Object(_.a)({transform:"rotate(138deg)",top:Object(y.p)(19),left:Object(y.p)(29),'[dir="rtl"] &':{right:Object(y.p)(29),left:"inherit",transform:"rotate(314deg)"}},e.breakpoints.down("md"),{top:Object(y.q)(19),right:Object(y.q)(29),'[dir="rtl"] &':{left:Object(y.q)(29)}}),"& .react-datepicker__navigation--next":Object(_.a)({transform:"rotate(314deg)",top:Object(y.p)(19),right:Object(y.p)(29),'[dir="rtl"] &':{left:Object(y.p)(29),right:"inherit",transform:"rotate(138deg)"}},e.breakpoints.down("md"),{top:Object(y.q)(19),right:Object(y.q)(29),'[dir="rtl"] &':{left:Object(y.q)(29)}}),"& .react-datepicker__triangle":{display:"none"},"& .react-datepicker__month-container":(n={width:Object(y.p)(282)},Object(_.a)(n,e.breakpoints.down("md"),{width:Object(y.q)(282)}),Object(_.a)(n,"& .react-datepicker__day-names, .react-datepicker__week",Object(_.a)({display:"flex",justifyContent:"center",gap:Object(y.p)(5)},e.breakpoints.down("md"),{gap:Object(y.q)(5)})),Object(_.a)(n,"& .react-datepicker__month",Object(i.a)(Object(i.a)({},e.typography.labelRegular),{},{background:"".concat(e.palette.common.WhiteUpd()," !important"),"& .react-datepicker__day--selecting-range-end, .react-datepicker__day--range-end, .react-datepicker__day--range-start":{background:e.palette.common.Black(),borderRadius:"50%",color:e.palette.common.WhiteUpd()},"& .react-datepicker__day--in-selecting-range":{background:e.palette.action.disabledBackground,color:e.palette.common.Black(),borderRadius:"0",position:"relative","&:after":Object(i.a)(Object(i.a)({content:"''",width:Object(y.p)(5),height:"100%",top:"0"},l("100%")),{},Object(_.a)({position:"absolute",background:e.palette.action.disabledBackground},e.breakpoints.down("md"),{width:Object(y.q)(5)})),"&.react-datepicker__day--selecting-range-start":{background:e.mixins.Grey(),borderRadius:"50%",color:e.palette.common.WhiteUpd()},"&.react-datepicker__day--selecting-range-end":{background:e.palette.common.Black(),borderRadius:"50%",color:e.palette.common.WhiteUpd()}},"& .react-datepicker__day--in-range":{background:e.palette.action.disabledBackground,color:e.palette.common.Black(),borderRadius:"0",position:"relative","&:after":Object(i.a)(Object(i.a)({content:"''",width:Object(y.p)(5),height:"100%",top:"0"},l("100%")),{},Object(_.a)({position:"absolute",background:e.palette.action.disabledBackground},e.breakpoints.down("md"),{width:Object(y.q)(5)})),"&.react-datepicker__day--range-start":{background:e.palette.common.Black(),borderRadius:"50%",color:e.palette.common.WhiteUpd()},"&.react-datepicker__day--range-end":{background:e.palette.common.Black(),borderRadius:"50%",color:e.palette.common.WhiteUpd()},"&.react-datepicker__day--selecting-range-start":{borderRadius:"50%",color:e.palette.common.WhiteUpd()}},"& .react-datepicker__day":(t={height:Object(y.p)(32),width:Object(y.p)(32),paddingTop:Object(y.p)(6),paddingBottom:Object(y.p)(6),margin:"".concat(Object(y.p)(3)," 0px ").concat(Object(y.p)(3)," 0px"),lineHeight:Object(y.p)(22)},Object(_.a)(t,e.breakpoints.down("md"),{height:Object(y.q)(32),width:Object(y.q)(32),paddingTop:Object(y.q)(6),paddingBottom:Object(y.q)(6),margin:"".concat(Object(y.q)(3)," 0px ").concat(Object(y.q)(3)," 0px"),lineHeight:Object(y.q)(22)}),Object(_.a)(t,"&:hover",{borderRadius:"50%"}),Object(_.a)(t,"&.react-datepicker__day--keyboard-selected",{color:e.palette.common.Black(),"&:not(.react-datepicker__day--in-selecting-range)":{backgroundColor:e.palette.common.WhiteUpd()},"&.react-datepicker__day--range-end, &.react-datepicker__day--range-start":{background:e.palette.common.Black(),borderRadius:"50%",color:e.palette.common.WhiteUpd()}}),t),"& .react-datepicker__day--today":{"&:hover":{backgroundColor:e.mixins.Grey(200),color:e.palette.common.Black(),border:"0px"},"&.react-datepicker__day--range-end, &.react-datepicker__day--range-start":{background:e.mixins.Grey(),borderRadius:"".concat(w.a.circle," !important"),color:e.palette.common.WhiteUpd()}},"& .react-datepicker__day--selected":{background:e.mixins.Grey(),color:e.palette.common.WhiteUpd(),borderRadius:"50%"},"& .react-datepicker__day--outside-month, & .react-datepicker__day--outside-month.react-datepicker__day--range-end":{backgroundColor:"".concat(e.palette.common.WhiteUpd()," !important"),borderRadius:"0",color:"".concat(e.palette.action.disabled," !important"),pointerEvents:"none",position:"relative","&:after":{backgroundColor:"".concat(e.palette.common.WhiteUpd()," !important")}}})),Object(_.a)(n,"& .react-datepicker__header",Object(_.a)({background:e.palette.common.WhiteUpd(),borderBottom:"none","& .react-datepicker__day-names .react-datepicker__day-name":Object(i.a)(Object(i.a)({},e.typography.labelRegular),{},{color:e.palette.text.datePicker,marginTop:Object(y.p)(10),margin:"var(--mfd-spacing-xxxs)"}),"& .react-datepicker__current-month":Object(i.a)(Object(i.a)({},e.typography.body2),{},{marginTop:Object(y.p)(5)})},e.breakpoints.down("md"),{"& .react-datepicker__day-names .react-datepicker__day-name":{marginTop:Object(y.q)(10)},"& .react-datepicker__current-month":{marginTop:Object(y.q)(5)}})),Object(_.a)(n,"& .react-datepicker__day-name, .react-datepicker__day",Object(_.a)({margin:Object(y.p)(6)},e.breakpoints.down("md"),{margin:Object(y.q)(6)})),n)}},"& .calendarIcon":Object(i.a)(Object(i.a)({position:"absolute",width:Object(y.p)(16),height:Object(y.p)(16),top:"var(--mfd-spacing-s)"},c(Object(y.p)(20))),{},Object(_.a)({},e.breakpoints.down("md"),Object(i.a)(Object(i.a)({},c(Object(y.q)(20))),{},{width:Object(y.q)(16),height:Object(y.q)(16)}))),"& .react-datepicker__day, .react-datepicker__month-text, .react-datepicker__quarter-text":{"&:not(.react-datepicker__day--disabled):hover":{background:e.mixins.Grey()+" !important",color:e.palette.common.WhiteUpd()}},"& .date-selected .react-datepicker-popper .react-datepicker .react-datepicker__month-container .react-datepicker__month .react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range, .react-datepicker__day--selecting-range-start)":{background:e.palette.common.WhiteUpd(),"&:after":{display:"none"}},"& .date-selected .react-datepicker-popper .react-datepicker .react-datepicker__month-container .react-datepicker__month .react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range):after":{display:"none"}},datePicker:(r={width:"100%",height:Object(y.p)(48),paddingLeft:"var(--mfd-spacing-s)",border:"1px solid rgba(86, 90, 92, 1)",borderRadius:0},Object(_.a)(r,e.breakpoints.down("md"),{height:Object(y.q)(48)}),Object(_.a)(r,"&:hover, &:focus",{background:e.palette.action.disabledBackgroun
2d,backgroundColor:"inherit"}),r),CalendarWrapper:(a={position:"relative",marginTop:Object(y.p)(46),width:"100%"},Object(_.a)(a,e.breakpoints.down("md"),{marginTop:Object(y.q)(46)}),Object(_.a)(a,"& svg",{visibility:"hidden"}),Object(_.a)(a,"& .react-datepicker-wrapper",{display:"block","& .react-datepicker__input-container":{visibility:"hidden"}}),a),rangeCalendar:Object(_.a)({display:"flex",position:"relative",minHeight:Object(y.p)(94)},e.breakpoints.down("md"),{minHeight:Object(y.q)(94)}),rangeCalendarPicker:Object(i.a)(Object(i.a)(Object(i.a)({zIndex:"10",position:"absolute",width:"100%",cursor:"pointer"},l(0)),{},{top:Object(y.p)(46),height:Object(y.p)(48),paddingTop:Object(y.p)(13)},u("var(--mfd-spacing-s)",0)),{},(o={backgroundColor:e.palette.common.WhiteUpd(),border:"1px solid rgba(86, 90, 92, 1)",borderRadius:Object(y.p)(3)},Object(_.a)(o,e.breakpoints.down("md"),{top:Object(y.q)(46),height:Object(y.q)(48),paddingTop:Object(y.q)(13),borderRadius:Object(y.q)(3)}),Object(_.a)(o,"&:hover",{background:e.palette.common.Black(10)}),o)),labelFilled:Object(i.a)(Object(i.a)({position:"absolute",transform:"translate(0, -41.5px) scale(0.9)"},l("cacl(-1 * var(--mfd-spacing-xxs))")),{},{"& p":{display:"inline-block"}}),endDate:Object(i.a)({position:"absolute"},l(0)),errorMsg:{color:e.palette.text.error,marginTop:"var(--mfd-spacing-xxs)"},customPlaceholder:Object(i.a)(Object(i.a)({paddingRight:Object(y.p)(36),color:e.palette.text.tertiary},e.palette.common.ellipsis(1)),{},Object(_.a)({},e.breakpoints.down("md"),{paddingRight:Object(y.q)(36)}))}},j=function(e){var t=e.mixins,n=t.right,r=t.left,a=t.paddingLR;return{root:{display:"inline-block","& .default-shrink":Object(i.a)({position:"absolute",transform:"translate(0, -41.5px) scale(0.9)"},r(Object(y.p)(-8))),"& .react-datepicker-popper":{zIndex:999,"& .react-datepicker":{borderRadius:w.a.b0,border:"none",boxShadow:e.shadows[1],width:"100%",display:"flex","& .react-datepicker__navigation":{border:"solid",borderWidth:"0 2px 2px 0"},"& .react-datepicker__navigation--previous":{transform:"rotate(138deg)",top:Object(y.p)(19),left:Object(y.p)(29),'[dir="rtl"] &':{right:Object(y.p)(29),left:"inherit",transform:"rotate(314deg)"}},"& .react-datepicker__navigation--next":{transform:"rotate(314deg)",top:Object(y.p)(19),right:Object(y.p)(29),'[dir="rtl"] &':{left:Object(y.p)(29),right:"inherit",transform:"rotate(138deg)"}},"& .react-datepicker__triangle":{display:"none"},"& .react-datepicker__month-container":{width:Object(y.p)(282),"& .react-datepicker__day-names, .react-datepicker__week":{display:"flex",justifyContent:"center",gap:"5px"},"& .react-datepicker__month":Object(i.a)(Object(i.a)({},e.typography.labelRegular),{},{background:"".concat(e.mixins.White()," !important"),"& .react-datepicker__day--selecting-range-end, .react-datepicker__day--range-end, .react-datepicker__day--range-start":{background:e.mixins.Black(),borderRadius:"".concat(w.a.circle),color:e.mixins.White()},"& .react-datepicker__day--in-selecting-range":{background:e.palette.action.disabledBackground,color:e.mixins.Black(),borderRadius:"".concat(w.a.b0),position:"relative","&:after":Object(i.a)(Object(i.a)({content:"''",width:"5px",height:"100%",top:"0"},r("100%")),{},{position:"absolute",background:e.palette.action.disabledBackground}),"&.react-datepicker__day--selecting-range-start":{background:e.mixins.Grey(),borderRadius:"".concat(w.a.circle),color:e.mixins.White()},"&.react-datepicker__day--selecting-range-end":{background:e.mixins.Black(),borderRadius:"".concat(w.a.circle),color:e.mixins.White()}},"& .react-datepicker__day--in-range":{background:e.palette.action.disabledBackground,color:e.mixins.Black(),borderRadius:"".concat(w.a.b0),position:"relative","&:after":Object(i.a)(Object(i.a)({content:"''",width:"5px",height:"100%",top:"0"},r("100%")),{},{position:"absolute",background:e.palette.action.disabledBackground}),"&.react-datepicker__day--range-start":{background:e.mixins.Black(),borderRadius:"".concat(w.a.circle),color:e.mixins.White()},"&.react-datepicker__day--range-end":{background:e.mixins.Black(),borderRadius:"".concat(w.a.circle),color:e.mixins.White()},"&.react-datepicker__day--selecting-range-start":{borderRadius:"".concat(w.a.circle),color:e.mixins.White()}},"& .react-datepicker__day":{height:Object(y.p)(32),width:Object(y.p)(32),paddingTop:6,paddingBottom:6,margin:"3px 0px 3px 0px",lineHeight:Object(y.p)(22),"&:hover":{borderRadius:w.a.circle},"&.react-datepicker__day--keyboard-selected":{color:e.mixins.Black(),"&:not(.react-datepicker__day--in-selecting-range)":{backgroundColor:e.mixins.White()},"&.react-datepicker__day--range-end, &.react-datepicker__day--range-start":{background:e.mixins.Black(),borderRadius:"".concat(w.a.circle),color:e.mixins.White()}}},"& .react-datepicker__day--today":{"&:hover":{backgroundColor:e.mixins.Grey(200),color:e.mixins.Black(),border:"0px"},"&.react-datepicker__day--range-end, &.react-datepicker__day--range-start":{background:e.mixins.Grey(),borderRadius:"".concat(w.a.circle," !important"),color:e.mixins.White()}},"& .react-datepicker__day--selected":{background:e.mixins.Grey(),color:e.mixins.White(),borderRadius:"50%"},"& .react-datepicker__day--outside-month, & .react-datepicker__day--outside-month.react-datepicker__day--range-end":{backgroundColor:"".concat(e.mixins.White()," !important"),borderRadius:"0",color:"".concat(e.palette.action.disabled," !important"),pointerEvents:"none",position:"relative","&:after":{backgroundColor:"".concat(e.mixins.White()," !important")}}}),"& .react-datepicker__header":{background:e.mixins.White(),borderBottom:"none","& .react-datepicker__day-names .react-datepicker__day-name":Object(i.a)(Object(i.a)({},e.typography.labelRegular),{},{color:e.palette.text.datePicker,marginTop:Object(y.p)(10),margin:4}),"& .react-datepicker__current-month":Object(i.a)(Object(i.a)({},e.typography.body2),{},{marginTop:5})},"& .react-datepicker__day-name, .react-datepicker__day":{margin:"0.4rem"}}}},"& .calendarIcon":Object(i.a)({position:"absolute",width:Object(y.p)(16),height:Object(y.p)(16),top:Object(y.p)(16)},n(Object(y.p)(20))),"& .react-datepicker__day, .react-datepicker__month-text, .react-datepicker__quarter-text":{"&:not(.react-datepicker__day--disabled):hover":{background:e.mixins.Grey()+" !important",color:e.mixins.White()}},"& .date-selected .react-datepicker-popper .react-datepicker .react-datepicker__month-container .react-datepicker__month .react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range, .react-datepicker__day--selecting-range-start)":{background:e.mixins.White(),"&:after":{display:"none"}},"& .date-selected .react-datepicker-popper .react-datepicker .react-datepicker__month-container .react-datepicker__month .react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range):after":{display:"none"}},datePicker:{width:"100%",height:Object(y.p)(48),paddingLeft:Object(y.p)(16),border:e.borders.fieldBorder,borderRadius:w.a.b0,"&:hover, &:focus":{background:e.palette.action.disabledBackgroun
2d,backgroundColor:"inherit"}},CalendarWrapper:{position:"relative",marginTop:Object(y.p)(46),width:"100%","& svg":{visibility:"hidden"},"& .react-datepicker-wrapper":{display:"block","& .react-datepicker__input-container":{visibility:"hidden"}}},rangeCalendar:{display:"flex",position:"relative",minHeight:"94px"},rangeCalendarPicker:Object(i.a)(Object(i.a)(Object(i.a)({zIndex:"10",position:"absolute",width:"100%",cursor:"pointer"},r(0)),{},{top:Object(y.p)(46),height:Object(y.p)(48),paddingTop:Object(y.p)(13)},a(Object(y.p)(16),0)),{},{backgroundColor:e.mixins.White(),border:e.borders.fieldBorder,borderRadius:w.a.b3,"&:hover":{background:e.mixins.Black(10)}}),labelFilled:Object(i.a)(Object(i.a)({position:"absolute",transform:"translate(0, -41.5px) scale(0.9)"},r(Object(y.p)(-8))),{},{"& p":{display:"inline-block"}}),endDate:Object(i.a)({position:"absolute"},r(0)),errorMsg:{color:e.palette.text.error,marginTop:Object(y.p)(8)},customPlaceholder:Object(i.a)({paddingRight:Object(y.p)(36),color:e.palette.text.tertiary},e.palette.common.ellipsis(1))}},C=n(27),E=Object(x.a)((function(e){return Object(C.c)(e)?O(e):j(e)})),T=n(20),k=n(31),S=function(e,t){return new Date(e.setFullYear(e.getFullYear()+t))},A=function(e){return o.a.createElement(k.a,{variant:null,component:null,gutterBottom:!1},o.a.createElement(l.Text,{field:e}))},I=function(e){var t=E(),n=Object(a.useState)(!1),i=Object(r.a)(n,2),s=i[0],u=i[1],m=e.data,g=m.startDate,b=m.startDateName,v=m.fieldLabel,y=m.validationMessage,x=m.showError,_=m.isRequired,w="",O=function(){return o.a.createElement("input",{id:b&&b.value,name:b&&b.value,className:t.datePicker,label:v&&v.value,value:g&&g.value?d()(g.value).format("YYYY-MM-DD"):""})};return o.a.createElement(h.a,{component:"fieldset",className:t.root},o.a.createElement("legend",null),o.a.createElement("div",{className:t.rangeCalendar},o.a.createElement("div",{className:Object(T.a)(t.CalendarWrapper,"calendarWrapper")},o.a.createElement(c.a,Object.assign({onCalendarOpen:function(){u(!0)},onCalendarClose:function(){u(!1)},onChange:function(t){return function(e,t){var n={},i=t.data;n.name=i&&i.startDateName&&i.startDateName.value,n.value=e||"",t.onDateChange({target:n})}(t,e)}
2,startDate:g&&g.value,endDate:g&&g.value,className:t.datePicker,placeholderText:v&&v.value,id:b&&b.value,name:b&&b.value,ref:function(e){return w=e},customInput:o.a.createElement(O,null),popperPlacement:e.position,minDate:e.shouldSetMinDate?new Date:"",maxDate:e.maxDateYearCount?S(new Date,e.maxDateYearCount):""},e)),o.a.createElement(f.a,{className:"calendarIcon"})),o.a.createElement("div",{className:Object(T.a)(t.rangeCalendarPicker,"rangeCalendarPicker","".concat(s?"singleCalendarfocused":"")),onClick:function(){return w.setOpen(!0)}},v&&o.a.createElement("label",{className:Object(p.isObject)(g&&g.value)?t.labelFilled:"default-shrink",htmlFor:b&&b.value},o.a.createElement(k.a,{variant:null,component:null,gutterBottom:!1},o.a.createElement(l.Text,{field:{value:v.value}})),_&&_.value&&o.a.createElement("span",null," *")),g&&Object(p.isObject)(g.value)&&o.a.createElement(k.a,{variant:null,component:null,gutterBottom:!1},o.a.createElement(l.Text,{field:{value:"".concat(d()(g.value).format("DD/MM/YYYY"))}})),!g.value&&v&&o.a.createElement("div",{className:"".concat(t.customPlaceholder," sty1")},o.a.createElement(l.Text,{field:v})),o.a.createElement(f.a,{className:"calendarIcon"}))),x&&o.a.createElement("div",{className:t.errorMsg},A(y&&y.fields&&y.fields.displayText)))},M=function(e){var t=E(),n=Object(a.useState)(!0),s=Object(r.a)(n,2),u=s[0],m=s[1],g=Object(a.useState)(1),b=Object(r.a)(g,2),x=b[0],_=b[1],w=Object(v.a)("(max-width:".concat(y.c.values.lg,"px)")),O=e.data,j=O.startDate,C=O.endDate,I=O.endD
2ateName,M=O.startDateName,L=O.fieldLabel,B=O.validationMessage,R=O.showError,D=O.eventCalender,P=O.isRequired,z="",F=function(){return z.setOpen(!0)},N=function(){return o.a.createElement("input",{id:M&&M.value,name:M&&M.value,className:t.datePicker,label:L&&L.value,value:j&&j.value?d()(j.value).format("YYYY-MM-DD"):""})},U=function(){return o.a.createElement("input",{id:I&&I.value,name:I&&I.value,className:t.datePicker,label:L&&L.value,value:C&&C.value?d()(C.value).format("YYYY-MM-DD"):""})},V=Object(i.a)(Object(i.a)({},e.shouldSetMinDate&&{minDate:new Date}),e.maxDateYearCount&&{maxDate:S(new Date,e.maxDateYearCount)}),W=Object(i.a)({},j&&j.value&&{minDate:j.value});return o.a.createElement(h.a,{component:"fieldset",className:t.root,"aria-label":L&&L.value},o.a.createElement("legend",null),o.a.createElement("div",{className:t.rangeCalendar},o.a.createElement("div",{className:Object(T.a)(t.rangeCalendarPicker,"rangeCalendarPicker"),onClick:function(){return F()},tabIndex:0,onKeyDown:function(e){"Enter"===e.key&&F()}},o.a.createElement("label",{className:Object(p.isObject)(j.value)||Object(p.isObject)(C&&C.value)?t.labelFilled:"default-shrink",htmlFor:M&&M.value},o.a.createElement(k.a,{variant:null,component:null,gutterBottom:!1},o.a.createElement(l.Text,{field:L})),P&&P.value&&o.a.createElement("span",null," *")),(Object(p.isObject)(j.value)||Object(p.isObject)(C.value))&&o.a.createElement(k.a,{variant:null,component:null,gutterBottom:!1},o.a.createElement(l.Text,{field:{value:"".concat(Object(p.isObject)(j.value)?d()(j.value).format("DD/MM/YYYY"):""," - ").concat(Object(p.isObject)(C.value)?d()(C.value).format("DD/MM/YYYY"):"")}})),function(){var e=o.a.createElement("div",{className:t.customPlaceholder},o.a.createElement(l.Text,{field:L}));return(D||j.value)&&(!D||j.value||C.value)?null:e}(),o.a.createElement(f.a,{className:"calendarIcon"})),1===x&&o.a.createElement("div",{className:Object(T.a)(t.CalendarWrapper,"calendarWrapper")},o.a.createElement(c.a,Object.assign({onChange:function(t){return function(e,t){var n={},i=t.data;n.name=i&&i.startDateName&&i.startDateName.value,n.value=e||"",t.onDateChange({target:n}),_(2),m(!0)}(t,e)},selectsStart:!0,startDate:j&&j.value,endDate:C&&C.value,className:t.datePicker,monthsShown:w?1:2,id:M&&M.value,name:M&&M.value,ref:function(e){return z=e},popperPlacement:e.position,tabIndex:5,customInput:o.a.createElement(N,null)},e,V)),o.a.createElement(f.a,{className:"calendarIcon"})),2===x&&o.a.createElement("div",{className:Object(T.a)(t.CalendarWrapper,t.endDate,"calendarWrapper")},o.a.createElement(c.a,Object.assign({open:u,onChange:function(t){return function(e,t){var n={},i=t.data;n.name=i&&i.endDateName&&i.endDateName.value,n.value=e||"",t.onDateChange({target:n}),m(!1),_(1)}(t,e)},selectsEnd:!0,startDate:j&&j.value,endDate:C&&C.value,className:t.datePicker,ref:function(e){return e},monthsShown:w?1:2,id:I&&I.value,name:I&&I.value,popperPlacement:e.position,customInput:o.a.createElement(U,null),onClickOutside:function(){m(!1),_(1)}},e,W)),o.a.createElement(f.a,{className:t.calendarIcon}))),R&&o.a.createElement("div",{className:t.errorMsg},A(B&&B.fields&&B.fields.displayText)))};t.a=Object(l.withSitecoreContext)()((function(e){var t=Object(v.a)("(max-width:".concat(y.c.values.lg,"px)")),n=b()(e,"sitecoreContext.language","");return n=n&&n.toLowerCase(),o.a.createElement(o.a.Fragment,null,2===e.monthsShown||e.data&&e.data.eventCalender?o.a.createElement(M,{monthsShown:t?1:e.monthsShown||e.data.monthsShown,data:e.data,isEventCalendar:e.data.eventCalender,onDateChange:e.onChange,position:"ar"===n?"bottom-end":"bottom-start",shouldSetMinDate:e.shouldSetMinDate,maxDateYearCount:e.maxDateYearCount}):o.a.createElement(I,{monthsShown:t?1:e.monthsShown,data:e.data,isEventCalendar:e.data.eventCalender,onDateChange:e.onChange,position:"ar"===n?"bottom-end":"bottom-start",shouldSetMinDate:e.shouldSetMinDate,maxDateYearCount:e.maxDateYearCount}))}))},1565:function(e,t,n){"use strict";var i=n(9),r=n(0),a=n.n(r),o=n(1553);t.a=function(e){var t=e.ctaLink,n=e.itemUniqueKey,s=e.borderStyle,c=e.colorStyle,l=e.className,u=e.customWidth,d=void 0===u?0:u,p=Object(r.useState)(null),h=Object(i.a)(p,2),m=h[0],f=h[1],g=Object(r.useState)(!1),b=Object(i.a)(g,2),v=b[0],y=b[1],x=Object(r.useState)([null]),_=Object(i.a)(x,2),w=_[0],O=_[1],j=Object(r.useRef)(null);Object(r.useLayoutEffect)((function(){var e=function(){if(j.current){var e,t,n=null===j||void 0===j||null===(e=j.current)||void 0===e?void 0:e.offsetWidth;O(E(m||[],n-77+d));var i=w&&Array.isArray(null===w||void 0===w?void 0:w.displayTagArr)&&(null===w||void 0===w||null===(t=w.displayTagArr)||void 0===t?void 0:t.length)&&(null===w||void 0===w?void 0:w.remaining);y(i)}};return window.addEventListener("resize",e),e(),function(){var t;return null===(t=window)||void 0===t?void 0:t.removeEventListener("resize",e)}}),[m]),Object(r.useEffect)((function(){f(t)}),[n]);var C=function(e,t){var n=[],i=0;return e<100?t.forEach((function(e){n.push(e.label)})):t.forEach((function(t){t.width<=0||i+t.width<=e&&(i+=t.width,n.push(t.label))})),n},E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0!==e.length){var n=e.map((function(e){var t=document.getElementsByClassName(e);
2if(0===t.length)return{label:e,width:0};var n=t[0].offsetWidth,i=t[0].currentStyle||window.getComputedStyle(t[0]);return{label:e,width:n+=parseInt(i.marginRight+i.marginLeft)}})),i=C(t,n),r=n.length-i.length;return r&&i.push("+".concat(r)),{displayTagArr:i,remaining:r}}};return a.a.createElement("div",{className:"cta-wrap tagswrapper ".concat(v?"calc-done":0===(null===w||void 0===w?void 0:w.remaining)?"calc-done-last":""),ref:j},a.a.createElement("div",{className:"hidden-tags-for-calc"},Array.isArray(t)&&t.map((function(e){return a.a.createElement(o.a,{text:e,key:e,className:"".concat(e," ").concat(l),borderStyle:s,colorStyle:c})}))),w&&w.displayTagArr&&w.displayTagArr.map((function(e){return a.a.createElement(o.a,{text:e,key:e,className:"".concat(e," ").concat(l),borderStyle:s,colorStyle:c})})))}},1568:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(2),n(3),n(9);var i=n(79),r=(Object(i.a)(),function(e,t){var n=e;if(t)for(var i in t)n=n.replace("{".concat(i,"}"),t[i]);return n})},1571:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=1e3,i=1;1===t&&(n=1e4,i=0);var r="",a=6;if(null===(e=Math.round(e))||void 0===e||""===e||isNaN(e))return"";var o=function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=parseFloat((e/t).toFixed(i))+n;return r.length>a&&(r=parseFloat((e/t).toFixed(0))+n),r},s=function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")};return e>=n&&(i||(i=1)),e<n?r=s(e):e<1e6?r=o(1e3,"K",i):e<1e9?r=o(1e6,"M",i):e<1e12?r=o(1e9,"B",i):e<1e15?r=o(1e12,"T",i):e<1e18&&(r=o(1e15,"P",i)),r.split(".")[1],r}},1572:function(e,t,n){"use strict";var i=n(1519),r=n(0),a=n.n(r),o=n(2),s=n(865),c=n(1),l=Object(s.a)((function(e){var t;return{iconTagRoot:{width:Object(c.p)(32),height:Object(c.p)(28),display:"flex","& .tagContainer":{width:"100% !important",display:"flex",alignItems:"center",justifyContent:"center",position:"relative","&:after":Object(o.a)({content:"''",border:"1px solid rgba(255, 255, 255, 0.30)",position:"absolute",width:"calc(100% - 4px)",height:"calc(100% - 4px)",top:2,left:2,bottom:0,borderRadius:Object(c.p)(2)},Object(c.e)("sm"),{borderRadius:Object(c.q)(2)})},"& .wrapper":{padding:"0 !important","&:after":{display:"none !important"}}},root:{"& .tagContainer":(t={background:e.palette.common.SunsetEnabled(),padding:Object(c.p)(2),borderRadius:Object(c.p)(3),width:"fit-content"},Object(o.a)(t,Object(c.e)("sm"),{padding:Object(c.q)(2),borderRadius:Object(c.q)(3)}),Object(o.a)(t,"&.featured",{background:e.palette.common.SunsetEnabled()}),Object(o.a)(t,"&.popular",{background:e.palette.common.Pacific()}),Object(o.a)(t,"&.views",{background:e.palette.common.Iris()}),Object(o.a)(t,"&.general",{background:e.palette.common.Black(250),backdropFilter:"blur(10px)"}),Object(o.a)(t,"&.generalWhite",{background:e.palette.common.SurfaceSunken(),"& .text":{color:e.palette.common.Black()},"& .wrapper:after":{borderColor:e.palette.common.Grey4()}}),Object(o.a)(t,"& .wrapper",{display:"flex",justifyContent:"center",alignItems:"center",gap:"var(--mfd-spacing-xxxs)",padding:"var(--mfd-spacing-xxxs) var(--mfd-rounding-s)",position:"relative","& .MuiTypography-root":{lineHeight:1},"&:after":Object(o.a)({content:"''",border:"1px solid rgba(255, 255, 255, 0.30)",position:"absolute",width:"100%",top:0,right:0,left:0,bottom:0,borderRadius:Object(c.p)(2)},Object(c.e)("sm"),{borderRadius:Object(c.q)(2)}),"& .text":{color:e.palette.common.WhiteUpd(),textWrap:"nowrap",textTransform:"uppercase",lineHeight:1},"& svg":Object(o.a)({width:Object(c.p)(18),height:Object(c.p)(18)},Object(c.e)("sm"),{width:Object(c.q)(18),height:Object(c.q)(18)})}),t)}}})),u=n(31),d=n(27),p=function(e){var t=e.className,n=e.icon,r=l();return a.a.createElement(i.a,{className:"".concat(r.root," ").concat(r.iconTagRoot," tagMainContainer js-tagMainContainer ").concat(t||"")},a.a.createElement(i.a,{className:"tagContainer"},a.a.createElement(i.a,{className:"wrapper"},n&&n)))};t.a=function(e){var t=e.text,n=void 0===t?"":t,r=e.variant,o=void 0===r?"generalTransparent":r,s=e.icon,c=void 0===s?null:s,h=e.className,m=void 0===h?"":h,f=l();
2return"iconVariant"==o?a.a.createElement(p,{icon:c,className:""}):a.a.createElement(i.a,{className:"".concat(f.root," tagMainContainer js-tagMainContainer ").concat(m||"")},a.a.createElement(i.a,{className:"".concat("featured"===o?"featured":"popular"===o?"popular":"views"===o?"views":"generalTransparent"===o?"general":"generalWhite"===o?"generalWhite":""," tagContainer")},a.a.createElement(i.a,{className:"wrapper"},c&&c,a.a.createElement(u.a,{className:"text",variant:"cta2Upd",component:"span"},Object(d.Z)(n)))))}},1580:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(e){return e&&(e.includes("https")?e:e.replace("http","https"))}},1582:function(e,t,n){"use strict";var i=n(0),r=n.n(i),a=n(112),o=n(2),s=n(3),c=n(865),l=n(1),u=n(27),d=Object(c.a)((function(e){return Object(u.c)(e)?{ratingWrap:Object(s.a)(Object(s.a)({display:"inline-flex",verticalAlign:"middle"},e.mixins.marginLeft("var(--mfd-spacing-s)")),{},{"& svg":Object(s.a)(Object(s.a)({width:Object(l.p)(24),height:Object(l.p)(24)},e.mixins.marginRight("var(--mfd-spacing-xxxs)")),{},Object(o.a)({},Object(l.e)("md"),{width:Object(l.q)(24),height:Object(l.q)(24)})),"& span":Object(o.a)({marginTop:Object(l.p)(-2),marginBottom:"var(--mfd-spacing-xs)"},Object(l.e)("md"),{marginTop:Object(l.q)(-2)})})}:{ratingWrap:Object(s.a)(Object(s.a)({display:"inline-flex",verticalAlign:"middle"},e.mixins.marginLeft(e.spacing(2))),{},{"& svg":Object(s.a)({width:e.spacing(1.5),height:e.spacing(1.5)},e.mixins.marginRight(e.spacing(.25))),"& span":{marginTop:Object(l.p)(-2),marginBottom:Object(l.p)(8)}})}})),p=n(31);t.a=function(e){var t=e.rating,n=e.className,i=d();return r.a.createElement(r.a.Fragment,null,t&&r.a.createElement("div",{className:"".concat(i.ratingWrap," ").concat(n)},r.a.createElement(a.a,{name:"StarIcon"}),r.a.createElement(p.a,{variant:"labelRegular",component:"span"},t)))}},1583:function(e,t,n){"use strict";var i=n(446),r=n(19),a=n(131),o=n(9),s=n(0),c=n.n(s),l=n(84),u=n(49),d=n(15),p=n(1568),h=n(27),m=n(66),f=n(12),g=n(45),b=n.n(g),v=n(3),y=n(2),x=n(865),_=n(1),w=Object(x.a)((function(e){return Object(h.c)(e)?{root:{"&.is-alone":Object(y.a)({paddingBottom:Object(_.q)(10.35)},e.breakpoints.up("lg"),{paddingBottom:"var(--mfd-spacing-s)"})},text1:Object(v.a)(Object(v.a)({},e.typography.body3Bold),{},{color:e.palette.common.Black4}),text2:Object(v.a)(Object(v.a)({},e.typography.body3),{},{color:e.palette.common.Grey1,"&.has-dot":{"&:before":Object(v.a)(Object(v.a)({content:'"\u2022"',display:"inline-block"},e.typography.labelRegular),{},Object(y.a)({color:e.palette.common.Grey1,margin:"0 var(--mfd-spacing-xxxs)",position:"relative",top:Object(_.p)(-1)},e.breakpoints.down("md"),{top:Object(_.q)(-1)})),"&.is-he:before":Object(y.a)({top:Object(_.p)(1)},e.breakpoints.down("md"),{top:Object(_.q)(1)})}}),text1Small:Object(v.a)(Object(v.a)({},e.typography.labelBlack),{},{color:e.palette.common.black}),text2Small:Object(v.a)(Object(v.a)({},e.typography.labelRegular),{},{color:e.palette.common.Grey1,"&.has-dot":{"&:before":Object(v.a)(Object(v.a)({content:'"\u2022"',display:"inline-block"},e.typography.labelRegular),{},Object(y.a)({color:e.palette.common.Grey1,margin:"0 var(--mfd-spacing-xxxs)",position:"relative",top:Object(_.p)(-1)},e.breakpoints.down("md"),{top:Object(_.q)(-1)})),"&.is-he:before":Object(y.a)({top:Object(_.p)(1)},e.breakpoints.down("md"),{top:Object(_.q)(1)})}}),isActive:{color:e.palette.common.RedRibbon}}:{root:{"&.is-alone":Object(y.a)({paddingBottom:Object(_.p)(10.35)},e.breakpoints.up("lg"),{paddingBottom:Object(_.p)(16)})},text1:Object(v.a)(Object(v.a)({},e.typography.body3Bold),{},{color:e.palette.common.Black4}),text2:Object(v.a)(Object(v.a)({},e.typography.body3),{},{color:e.palette.common.Grey1,"&.has-dot":{"&:before":Object(v.a)(Object(v.a)({content:'"\u2022"',display:"inline-block"},e.typography.labelRegular),{},{color:e.palette.common.Grey1,margin:"0 ".concat(Object(_.p)(4)),position:"relative",top:Object(_.p)(-1)}),"&.is-he:before":{top:Object(_.p)(1)}}}),text1Small:Object(v.a)(Object(v.a)({},e.typography.labelBlack),{},{color:e.palette.common.black}),text2Small:Object(v.a)(Object(v.a)({},e.typography.labelRegular),{},{color:e.palette.common.Grey1,"&.has-dot":{"&:before":Object(v.a)(Object(v.a)({content:'"\u2022"',dis
2play:"inline-block"},e.typography.labelRegular),{},{color:e.palette.common.Grey1,margin:"0 ".concat(Object(_.p)(4)),position:"relative",top:Object(_.p)(-1)}),"&.is-he:before":{top:Object(_.p)(1)}}}),isActive:{color:e.palette.common.RedRibbon}}}));t.a=function(e){var t=Object(u.get)(e,"googlePlaceId","")||Object(u.get)(e,"defaultGooglePlaceId",""),n=Object(u.get)(e,"language"),g=Object(u.get)(e,"openNowText","openNow"),v=w(),y=Object(s.useState)({text:"",highlight:!1}),x=Object(o.a)(y,2),_=x[0],O=x[1],j=Object(s.useState)(!1),C=Object(o.a)(j,2),E=C[0],T=C[1],k=!0;Object(s.useEffect)((function(){t=Object(u.get)(e,"googlePlaceId","")||Object(u.get)(e,"defaultGooglePlaceId",""),"ar"===(n=Object(u.get)(e,"language"))?b.a.locale("ar"):b.a.locale("en"),"it"!==n&&"fr"!==n&&"ru"!==n&&"he"!==n&&"zh"!==n||(k=!1);var i=n?"?language=".concat(n):"",r=Object(u.get)(e,"googlePlacesAPI","");d.a&&t&&r&&Object(m.a)({url:Object(p.a)(r,{placeId:"".concat(t).concat(i)})}).then((function(e){var t=e.data;M(t&&t.result)})).catch((function(e){console.error(e)}))}),[Object(u.get)(e,"googlePlaceId",""),Object(u.get)(e,"defaultGooglePlaceId",""),Object(u.get)(e,"language")]);var S=function(e){var t=0;return k&&(t=e.replace(/\d+/g,"").replaceAll(":","").replaceAll("\u2013","").replaceAll(" ","")),t},A=function(e,t){if(k&&!e.replace(/\d+/g,"").replaceAll(":","").replaceAll("\u2013","").replaceAll(" ","")){var n=S(t);e="".concat(e," ").concat(n)}return e},I=function(e){return e.indexOf(" ")>-1?e?e.substring(e.indexOf(" ")).toLocaleLowerCase():"":"isClose"},M=function(e){if(Object(u.get)(e,"business_status")){var t="";if("CLOSED_TEMPORARILY"===e.business_status?t=Object(f.a)("closedTemporarily"):"CLOSED_PERMANENTLY"===e.business_status&&(t=Object(f.a)("closedPermanently")),t)return void O({text:t,highlight:!0})}var i=Object(u.get)(e,"opening_hours.weekday_text");if(i){var o=(new Date).getDay();if(i&&("ar"===n&&(i=i&&[].concat(Object(r.a)(i.slice(2,7)),Object(r.a)(i.slice(0,2)))),"he"===n&&(i=i&&[].concat(Object(r.a)(i.slice(1,7)),Object(r.a)(i.slice(0,1)))),i=i&&[].concat(Object(r.a)(i.slice(o-1,7)),Object(r.a)(i.slice(0,o-1)))),i[0].match("24")||1===e.opening_hours.periods.length&&"0000"===e.opening_hours.periods[0].open.time){var s=i[0]||Object(u.get)(e,"opening_hours.weekday_text")[0];return"open 24 hours"===(s=I(s)).trim()&&(s="Open 24 hours"),void O({text:s,highlight:!1})}var c=function(){for(var e=[],t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach((function(t){if("isClose"!==t){var n=t.split(","),i="",r=0;n.forEach((function(t){if(t=t.split("\u2013")){t[0]=A(t[0],t[1]);var n,o=0,s=Object(a.a)(t);try{for(s.s();!(n=s.n()).done;){var c=n.value;""===i?i=S(c):i!=S(c)?(r++,i=S(c)):(b()(c,"hh:mm ".concat(k&&"AM")).toString().match("00:00:00")||o%2===1&&!b()(t[0],"hh:mm ".concat(k&&"AM")).isBefore(b()(c,"hh:mm ".concat(k&&"AM")))||b()(t[0],"hh:mm ".concat(k&&"AM")).toString()===b()(c,"hh:mm ".concat(k&&"AM")).toString())&&r++,t[o]={day:r,time:t[o]},o++}}catch(l){s.e(l)}finally{s.f()}e.push({openTime:t[0],closeTime:t[1]})}else e.push("isClose")}))}else e.push("isClose")})),e}(I(i[0])),l=Object(h.z)().split(" ")[4],d="",p="",m="",v=b()(l,"HH:mm:ss").format("h:mm\u202fa"),y=b()(v,"h:mm a").format("A"),x=0,_=e.opening_hours.periods[o-1];if(e.opening_hours&&!e.opening_hours.open_now){var w,j=Object(a.a)(c);try{for(j.s();!(w=j.n()).done;){var C=w.value;if("  "===C.openTime.time&&(d="isClose"),b()(x+" "+v,"d hh:mm ".concat(y&&"AM")).isBefore(b()(C.openTime.day+" "+C.openTime.time,"d hh:mm ".concat(k&&"AM")))){d=C.openTime.time.replaceAll(" ","");break}x+=2}}catch(D){j.e(D)}finally{j.f()}}if(x+=1,e.opening_hours&&e.opening_hours.open_now){var E,M=Object(a.a)(c);try{for(M.s();!(E=M.n()).done;){var L=E.value;if(b()(x+" "+v,"d hh:mm ".concat(y&&"AM")).isBefore(b()(L.closeTime.day+" "+L.closeTime.time,"d hh:mm ".concat(k&&"AM")))){p=L.closeTime.time.replaceAll(" ","");break}_.open.day<_.close.day?p=L.closeTime.time.replaceAll(" ",""):x+=2}}catch(D){M.e(D)}finally{M.f()}}var B=e.opening_hours&&e.opening_hours.open_now?Object(f.a)(g):Object(f.a)("closed");T(!e.opening_hours||!e.opening_hours.open_now),m=d||p?"".concat(B,"|").concat(Object(f.a)("till")," ").concat(p):B,p||(m=d);var R=B===Object(f.a)(g)?m:"".concat(B,"|").concat(d&&Object(f.a)("opensAt")," ").concat(d);O({text:R,highlight:B!==Object(f.a)(g)})}},L=_||{},B=L.text,R=L.highlight,D=B&&B.split("|"),P=Object(i.a)(D),z=P[0],F=P.slice(1);return F=F.toString().trim(),Object(u.isEmpty)(z)?(e.setReviewSpace(!0),c.a.createElement(c.a.Fragment,null)):(e.setReviewSpace(!1),c.a.createElement("div",{className:"".concat(v.root," ").concat(e.isAlone?"is-alone":"")},c.a.createElement("span",{className:"".concat("Open"==g?v.text1Small:v.text1," text ").concat(R?v.isActive:"")},c.a.createElement(l.Text,{field:{value:z}})),F.length>0&&c.a.createElement("span",{className:"".concat("Open"==g?v.text2Small:v.text2," text ").concat(E&&"has-dot"," ").concat("he"===n?"is-he":"")},c.a.createElement(l.Text,{field:{value:(E?"":" ")+F}}))))}},1585:function(e,t,n){"use strict";var i=n(3),r=n(106),a=n(0),o=n.n(a),s=n(20),c=n(2),l=n(865),u=n(199),d=n(1),p=Object(l.a)((function(e){var t,n;return{ctaBtn:Object(i.a)(Object(i.a)({width:Object(d.p)(80),borderLeft:"1px solid transparent",borderRadius:u.a.b0,padding:Object(d.p)(28),cursor:"pointer"},e.mixins.marginLeft(0)),{},(t={},Object(c.a)(t,e.breakpoints.up("lg"),{width:"auto",padding:Object(d.p)(12)}),Object(c.a)(t,"& .MuiIconButton-label",Object(c.a)({},e.breakpoints.down("md"),{height:Object(d.p)(28)})),t)),favoriteIcon:(n={color:"inherit"},Object(c.a)(n,e.breakpoints.up("lg"),{transition:"background-color 0.3s ease-in-out",border:"2px s
2olid",borderRadius:u.a.circle}),Object(c.a)(n,"@media (min-width: 1024px) and (max-width: 1599px)",{padding:"0.5rem"}),Object(c.a)(n,"&:hover",Object(c.a)({},e.breakpoints.up("lg"),{backgroundColor:e.mixins.Black(200)})),Object(c.a)(n,"&:active",{borderColor:e.mixins.AbuDhabiOrange(1e3)}),n),favoriteRightMargin:Object(i.a)({},e.mixins.marginLR(0,e.spacing(7.2))),redfavoriteIcon:{color:e.mixins.AbuDhabiOrange(1e3)},redfilledfavoriteIcon:{"& svg":{path:e.mixins.AbuDhabiOrange(1e3)}},favIcon:Object(i.a)(Object(i.a)({},e.mixins.right(Object(d.p)(12))),{},{position:"absolute","& svg":{width:"20px",height:"18px"}})}})),h=n(528),m=n(112),f=n(1587),g=["className","hasFavorite","isFavClicked","isMobile","favoritesCount","ariaExpanded"],b=function(e){var t=e.className,n=(e.hasFavorite,e.isFavClicked),a=e.isMobile,c=e.favoritesCount,l=e.ariaExpanded,u=Object(r.a)(e,g),d=p(t),b=Object(i.a)(Object(i.a)({},void 0!=l&&{ariaExpanded:l}),void 0!=l&&{"aria-label":"favorite button ".concat(l?"open":"closed")});return o.a.createElement(o.a.Fragment,null,o.a.createElement(h.a,Object.assign({iconOnly:!0,onClick:function(e){return function(e){e.preventDefault(),u.onClickHandler&&u.onClickHandler(e)}(e)},edge:"start",className:Object(s.a)(d.ctaBtn,d.favoriteIcon,n&&!a&&d.redfavoriteIcon)},b),o.a.createElement(f.a,{badgeContent:c,max:999,color:"secondary"},o.a.createElement(m.a,{name:"FavoriteBorderIcon"}))))};b.defaultProps={className:""};t.a=b},1587:function(e,t,n){"use strict";var i=n(106),r=n(0),a=n.n(r),o=n(1663),s=n(2),c=n(3),l=n(865),u=n(199),d=n(1),p=Object(l.a)((function(e){return{colorSecondary:Object(s.a)({backgroundColor:e.mixins.AbuDhabiOrange(1e3),color:e.mixins.White(1e3),marginTop:Object(d.p)(-4),fontWeight:700,border:"2px solid ".concat(e.mixins.White()),padding:"2px 6px",minWidth:0,lineHeight:0,borderRadius:u.a.b999px},d.n,Object(c.a)(Object(c.a)({position:"relative",alignSelf:"center"},e.mixins.marginLeft(12)),{},{marginTop:"1px",minWidth:Object(d.p)(24)})),badgeAnchorOverride:{transform:"none"}}})),h=["icon","className","children"],m=function(e){e.icon,e.className;var t=e.children,n=Object(i.a)(e,h),r=p();return a.a.createElement(o.a,Object.assign({classes:{colorSecondary:r.colorSecondary,anchorOriginTopLeftRectangle:r.badgeAnchorOverride}},n),t)};m.defaultProps={className:""};t.a=m},1589:function(e,t,n){"use strict";var i=n(2),r=n(19),a=n(3),o=n(9),s=n(106),c=n(0),l=n.n(c),u=n(31),d=n(238),p=n(84),h=n(352),m=n(1553),f=n(865),g=n(199),b=n(1),v=n(4),y=n(27),x=Object(f.a)((function(e){var t;return Object(y.c)(e)?{root:Object(i.a)({background:e.palette.common.BlackFadded,fontSize:v.g.s0Rem,lineHeight:v.g.s0Rem,borderRadius:g.a.b2Rem,display:"inline-block",padding:"".concat(Object(b.p)(7.12)," ").concat(Object(b.p)(5.76)," ").concat(Object(b.p)(5.66)," ").concat(Object(b.p)(5.4))},Object(b.e)("md"),{padding:"".concat(Object(b.q)(7.12)," ").concat(Object(b.q)(5.76)," ").concat(Object(b.q)(5.66)," ").concat(Object(b.q)(5.4))}),tagSign:Object(a.a)(Object(a.a)({display:"inline"},e.mixins.marginRight(Object(b.p)(3.79))),{},(t={},Object(i.a)(t,Object(b.e)("md"),Object(a.a)({},e.mixins.marginRight(Object(b.q)(3.79)))),Object(i.a)(t,"& svg path",{fill:e.palette.common.LightGrey}),Object(i.a)(t,"&:last-child",Object(a.a)({},e.mixins.marginRight(Object(b.p)(0)))),t)),isActive:{"& svg path":{fill:e.palette.common.white}}}:{root:{background:e.palette.common.BlackFadded,fontSize:v.g.s0Rem,lineHeight:v.g.s0Rem,borderRadius:g.a.b2Rem,display:"inline-block",padding:"".concat(Object(b.p)(7.12)," ").concat(Object(b.p)(5.76)," ").concat(Object(b.p)(5.66)," ").concat(Object(b.p)(5.4))},tagSign:Object(a.a)(Object(a.a)({display:"inline"},e.mixins.marginRight(Object(b.p)(3.79))),{},{"& svg path":{fill:e.palette.common.LightGrey},"&:last-child":Object(a.a)({},e.mixins.marginRight(Object(b.p)(0)))}),isActive:{"& svg path":{fill:e.palette.common.white}}}})),_=n(112),w=function(e){var t=x(e);if(e.value&&e.value.length>0){var n=e.value.length>3?3:e.value.length;return l.a.createElement("div",{className:t.root},Array.from(Array(3),(function(e,t){return t})).map((function(e){return l.a.createElement("div",{key:e,className:"".concat(t.tagSign," ").concat(e<=n-1?t.isActive:"")},l.a.createElement(_.a,{name:"DollarSign",titleDisabled:!(e<=n-1)||""}))})))}return null},O=Object(f.a)((function(e){return Object(y.c)(e)?{root:Object(i.a)({background:e.palette.common.BlackFadded,borderRadius:Object(b.p)(2),display:"inline-block",padding:"".concat(Object(b.p)(7)," ").concat(Object(b.p)(10)," ").concat(Object(b.p)(7)," ").concat(Object(b.p)(10)),color:e.palette.common.WhiteUpd(),verticalAlign:"middle",fontSize:0,lineHeight:0},Object(b.e)("md"),{borderRadius:Object(b.q)(2),padding:"".concat(Object(b.q)(7)," ").concat(Object(b.q)(10)," ").concat(Object(b.q)(7)," ").concat(Object(b.q)(10))}),viewIcon:Object(a.a)(Object(a.a)({verticalAlign:"middle"},e.mixins.marginRight(Object(b.p)(4.36))),{},{"& svg":{verticalAlign:"middle"}}),txt:Object(a.a)(Object(a.a)({verticalAlign:"middle"},e.typography.labelBold),{},{lineHeight:0})}:{root:{background:e.palette.common.BlackFadded,borderRadius:g.a.b2Rem,display:"inline-block",padding:"".concat(Object(b.p)(7)," ").concat(Object(b.p)(10)," ").concat(Object(b.p)(7)," ").concat(Object(b.p)(10)),color:e.palette.common.White,verticalAlign:"middle",fontSize:Object(b.p)(0),lineHeight:v.g.s0Rem},viewIcon:Object(a.a)(Object(a.a)({verticalAlign:"middle"},e.mixins.marginRight(Object(b.p)(4.36))),{},{"& svg":{verticalAlign:"middle"}}),txt:Object(a.a)(Object(a.a)({verticalAlign:"middle"},e.typography.labelBold),{},{lineHeight:0})}})),j=n(1571),C=function(e){var t=O(e),n=Number(e.value);return(n=n>50?Object(j.a)(n,1):0)?l.a.createElement("div",{className:t.root},l.a.createElement("span",{className:t.viewIcon},l.a.createElement(_.a,{name:"vieweye"})),l.a.createElement("span",{className:t.txt},n)):null},E=n(5),T=n(20),k=n(120),S=function(e){var t,n,r,o,s,c,l,u;return{root:{color:e.palette.common.black,textDecoration:"none",height:"100%",position:"relative","& .card-description":Object(a.a)(Object(a.a)(Object(a.a)({paddingTop:"var(--mfd-spacing-m)",paddingBottom:"var(--mfd-spacing-m)"},e.mixins.paddingLeft(0)),e.mixins.paddingRight("var(--mfd-spacing-s)")),{},(t={},Object(i.a)(t,e.breakpoints.up("lg"),{minHeight:Object(b.p)(176)}),Object(i.a)(t,e.breakpoints.down("md"),{minHeight:Object(b.q)(176)}),t)),"& .listing-card .card-description":{"& :not(.img-to-animate-wrapper) img, & .img-to-animate-wrapper img, img":{transition:"none",transform:"scale3d(1, 1, 1)"},"& .rating-img":Object(i.a)({width:"auto",maxHeight:Object(b.p)(13)},e.breakpoints.down("md"),{maxHeight:Object(b.q)(13)})},"& .search-highlight":{backgroundColor:e.palette.common.Highlight,color:e.mixins.Black()}},locationTitleTop:Object(i.a)({textTransform:"uppercase",marginBottom:Object(b.p)(10)},e.breakpoints.down("md"),{marginBottom:Object(b.q)(10)}),".setMinHeight":Object(i.a)({minWidth:Object(b.p)(10)},e.breakpoints.down("md"),{minWidth:Object(b.q)(10)}),cardWrapper:{display:"flex",flexDirection:"column",transition:"box-shadow .3s, background-color .3s",height:"100%","&:hover":{boxShadow:e.shadows[1],backgroundColor:e.mixins.White(),"& h3":{color:e.palette.common.SeaPort},"& :not(.img-to-animate-wrapper) img, & .img-to-animate-wrapper":{transform:"scale3d(1.1, 1.1, 1.1)"},"& .icon img":{transform:"none"}},"& .loaderAlignment":Object(i.a)({minHeight:Object(b.p)(410)},e.breakpoints.down("md"),{minHeight:Object(b.q)(410)}),"& .loaderCard":{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",backgroundColor:"#eee",color:"rgb(255, 135, 7)"},"& .MuiChip-root":Object(a.a)(Object(a.a)({cursor:"pointer"},e.mixins.marginRight("var(--mfd-spacing-xxxs)")),{},{"&:last-child":Object(a.a)({},e.mixins.marginRight("0"))}),"&.listing-card":{boxShadow:e.shadows[4],backgroundColor:e.mixins.White(),display:"flex",flexDirection:"column",height:"100%","&:hover":{transition:"box-shadow .3s",boxShadow:e.shadows[1],"& .card-description":{boxShadow:"none",backgroundColor:"none"}},"& .card-description":{backgroundColor:"transparent",boxShadow:e.shadows[0],display:"flex",flexDirection:"row",flex:1,borderBottom:"0","& .contentLeftBar":Object(a.a)({width:"10px",paddingLeft:"10px",height:"auto",background:e.palette.common.SeaGreen},e.mixins.marginRight("var(--mfd-spacing-xs)")),"& h3":{minHeight:"auto"},"& .card-description-flex":(n={flex:"auto",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"calc(100% - ".concat(Object(b.p)(20),")"),overflow:"hidden"},Object(i.a)(n,e.breakpoints.down("md"),{width:"calc(100% - ".concat(Object(b.q)(20),")")}),Object(i.a)(n,"& .card-description-wrapper",{"& .customLink":{"&::after":{width:"100%",height:"100%",position:"absolute",content:'""',top:"50%",left:"50%",transform:"translate(-50% , -50%)"},"&:hover":{backgroundColor:e.mixins.White(),"& h3":{color:e.palette.common.SeaPort},"& :not(.img-to-animate-wrapper) img, & .img-to-animate-wrapper":{transform:"scale3d(1.1, 1.1, 1.1)"},"& .icon img":{transform:"none"}}}}),Object(i.a)(n,"& .tagswrapper",{"&.calc-done":{"& .MuiChip-root":{"&:nth-last-child(2)":Object(i.a)({minWidth:Object(b.p)(10)},e.breakpoints.down("md"),{minWidth:Object(b.q)(10)})}},"&.calc-done-last":{"& .MuiChip-root":{"&:last-child":Object(i.a)({minWidth:Object(b.p)(10)},e.breakpoints.down("md"),{minWidth:Object(b.q)(10)})}}}),n)},"&.horizontal-card":{flexDirection:"row","& .card-description":Object(a.a)(Object(a.a)({padding:"var(--mfd-spacing-l)".concat(" ","var(--mfd-spacing-m)"," ","var(--mfd-spacing-m)")},e.mixins.paddingLeft(Object(b.p)(20))),{},(r={},Object(i.a)(r,e.breakpoints.up("lg"),{flex:"0 0 75%",maxWidth:"75%",margin:0,padding:"var(--mfd-spacing-m)"}),Object(i.a)(r,"& h3",{marginBottom:"var(--mfd-spacing-xxs)"}),Object(i.a)(r,"& p",Object(a.a)(Object(a.a)({color:e.palette.text.darkGrey,marginBottom:"var(--mfd-spacing-s)"},e.palette.common.ellipsis(2)),{},Object(i.a)({maxHeight:2*e.typography.body2.lineHeight.replace("rem","")+"rem"},e.breakpoints.up("lg"),Object(a.a)(Object(a.a)({},e.palette.common.ellipsis(3)),{},{maxHeight:3*e.typography.body2.lineHeight.replace("rem","")+"rem"})))),Object(i.a)(r,"& .contentLeftBar",Object(a.a)({width:Object(b.p)(0),paddingLeft:"0px",height:"100%",background:"transparent"},e.mixins.marginRight(Object(b.p)(0)))),r)),"& .img-wrapper":Object(a.a)(Object(a.a)({flex:"0 0 25%",overflow:"hidden",margin:"var(--mfd-spacing-l)".concat(" ","var(--mfd-spacing-m)"," ","var(--mfd-spacing-m)")},e.mixins.marginRight(0)),{},(o={},Object(i.a)(o,e.breakpoints.up("lg"),{margin:0}),Object(i.a)(o,"& img",{display:"block",height:"100%"}),o))}},"& .common-card":{"&.card-description":(s={backgroundColor:"transparent",boxShadow:e.shadows[0],display:"flex",flexDirection:"row",flex:0,borderBottom:"0",padding:"var(--mfd-spacing-m)".concat(" ","var(--mfd-spacing-m)"," ","var(--mfd-spacing-m)"," ",0)}
2,Object(i.a)(s,e.breakpoints.up("lg"),{padding:"var(--mfd-spacing-m)".concat(" ","var(--mfd-spacing-m)"," ","var(--mfd-spacing-m)"," ",0)}),Object(i.a)(s,"& .contentLeftBar",Object(a.a)(Object(a.a)({width:Object(b.p)(7),paddingLeft:Object(b.p)(7),height:"100%",background:e.palette.common.SeaGreen},e.mixins.marginRight(Object(b.p)(18))),{},Object(i.a)({},e.breakpoints.down("md"),Object(a.a)({width:Object(b.q)(7),paddingLeft:Object(b.q)(7)},e.mixins.marginRight(Object(b.q)(18)))))),Object(i.a)(s,"& .card-description-flex",{flex:"auto",position:"relative",display:"flex",flexDirection:"column",justifyContent:"space-between"}),s)},"& .common-card-description":{flex:1}},rtlClass:{direction:e.direction,height:"100%"},imageWrapper:(c={position:"relative",overflow:"hidden",minHeight:Object(b.p)(190)},Object(i.a)(c,e.breakpoints.up("md"),{minHeight:Object(b.p)(416)}),Object(i.a)(c,e.breakpoints.up("lg"),{minHeight:Object(b.p)(200)}),Object(i.a)(c,e.breakpoints.down("md"),{minHeight:Object(b.q)(416)}),Object(i.a)(c,"& picture",{paddingTop:"0"}),Object(i.a)(c,"& :not(.img-to-animate-wrapper) img, & .img-to-animate-wrapper",{transition:"all 1s ease"}),Object(i.a)(c,"&.collage",{marginBottom:"var(--mfd-spacing-l)"}),c),cardContent:{display:"flex",flexDirection:"column",textAlign:e.mixins.textLeft("left"),"& .MuiTypography-cardTitle1":Object(a.a)({marginBottom:"var(mfd-spacing-xxs)"},e.palette.common.ellipsis(2)),"& .MuiTypography-cardTitle2":Object(a.a)({marginBottom:"var(mfd-spacing-xxs)"},e.palette.common.ellipsis(3)),"& .bot-area":{display:"flex",flexDirection:"column",justifyContent:"space-between",paddingBottom:"1px"},"& .cta-wrap":{marginTop:"auto",display:"flex","&.tagswrapper":{display:"block"}},"& .hidden-tags-for-calc":{opacity:0,height:0,overflow:"hidden"}},location:{display:"flex","&.MuiTypography-root":{color:e.palette.text.tertiary,marginBottom:"var(--mfd-spacing-s)","& span":Object(a.a)({},e.palette.common.ellipsis(2))}},duration:{display:"flex",alignItems:"center","&.MuiTypography-root":{color:e.palette.text.tertiary,marginBottom:"var(--mfd-spacing-s)"},"& .icon":Object(a.a)(Object(a.a)({},e.mixins.marginRight("var(--mfd-spacing-xxs)")),{},{"& svg":{width:"var(--mfd-spacing-m)",height:"var(--mfd-spacing-m)"}})},highlights:{display:"inline-flex",alignItems:"center","&.MuiTypography-root":{color:e.mixins.Black(),marginBottom:"var(--mfd-spacing-s)",marginRight:"var(--mfd-spacing-s)"},"& .icon":{marginRight:"var(--mfd-spacing-xxs)","& img":Object(i.a)({width:Object(b.p)(20),height:Object(b.p)(20)},e.breakpoints.down("md"),{width:Object(b.q)(20),height:Object(b.q)(20)})}},rating:Object(a.a)(Object(a.a)({},e.typography.labelRegular),{},{display:"inline-flex",alignItems:"center",paddingLeft:"var(--mfd-spacing-xxs)","& svg":{width:"var(--mfd-spacing-xs)",height:"var(--mfd-spacing-xs)",marginRight:"var(--mfd-spacing-xxxs)"}}),posRelative:{position:"relative"},viewsCounterTag:Object(a.a)({position:"absolute",top:"var(--mfd-spacing-s)"},e.mixins.left("var(--mfd-spacing-s)")),favViewsCounterTag:Object(a.a)({position:"absolute",top:0},e.mixins.left(0)),priceRangeTag:Object(a.a)({position:"absolute",bottom:"var(--mfd-spacing-s)"},e.mixins.left("var(--mfd-spacing-s)")),favPriceRangeTag:Object(a.a)({position:"absolute",bottom:0},e.mixins.right(0)),overViewSection:(l={paddingBottom:Object(b.p)(10.35),width:"100%",marginTop:"var(--mfd-spacing-xs)",overflow:"hidden"},Object(i.a)(l,e.breakpoints.down("md"),{paddingBottom:Object(b.q)(10.35)}),Object(i.a)(l,"& .ratign-sec",{display:"flex",alignItems:"center"}),Object(i.a)(l,"& .open-close-sec",Object(i.a)({display:"flex",marginTop:Object(b.p)(5)},e.breakpoints.down("md"),{marginTop:Object(b.q)(5)})),Object(i.a)(l,e.breakpoints.up("lg"),{paddingBottom:"var(--mfd-spacing-s)"}),l),ratingImageWithLogo:{display:"flex","& .MuiSvgIcon-root":Object(i.a)({width:Object(b.p)(40),height:Object(b.p)(40)},e.breakpoints.down("md"),{width:Object(b.q)(40),height:Object(b.q)(40)})},totalReviews:{padding:"0",color:e.palette.text.tertiary1},ratingTripAdvisor:Object(a.a)(Object(a.a)({display:"inline-flex",background:e.palette.background.transparent},e.mixins.marginLeft(Object(b.p)(-5))),{},Object(i.a)({marginTop:Object(b.p)(-1)},e.breakpoints.down("md"),Object(a.a)(Object(a.a)({},e.mixins.marginLeft(Object(b.q)(-5))),{},{marginTop:Object(b.q)(-1)}))),descriptionAlignment:Object(a.a)(Object(a.a)({marginBottom:Object(b.p)(20),display:"flex",flexGrow:1},e.palette.common.ellipsis(8)),{},Object(i.a)({},e.breakpoints.down("md"),{marginBottom:Object(b.q)(20)})),listItemContainer:{height:"100%"}
2,customWrapper:{width:"calc(100% + (var(--mfd-spacing-l)))","& .categoryAlign":{"& .MuiChip-label":{"& .MuiTypography-root":(u={maxWidth:Object(b.p)(104)},Object(i.a)(u,e.breakpoints.down("md"),{maxWidth:Object(b.q)(88)}),Object(i.a)(u,"@media (max-width: 360px)",{maxWidth:Object(b.q)(68)}),u)}}}}},A=function(e){var t,n,r,o,s;return{root:{color:e.palette.common.black,textDecoration:"none",position:"relative","& .card-description":Object(a.a)(Object(a.a)(Object(a.a)({paddingTop:Object(b.p)(24),paddingBottom:Object(b.p)(24)},e.mixins.paddingLeft(0)),e.mixins.paddingRight(e.spacing(2))),{},Object(i.a)({},e.breakpoints.up("lg"),{minHeight:Object(b.p)(176)})),"& .listing-card .card-description":{"& :not(.img-to-animate-wrapper) img, & .img-to-animate-wrapper img, img":{transition:"none",transform:"scale3d(1, 1, 1)"},"& .rating-img":{width:"auto",maxHeight:Object(b.p)(13)}},"& .search-highlight":{backgroundColor:e.palette.common.Highlight,color:e.mixins.Black()}},locationTitleTop:{textTransform:"uppercase",marginBottom:"10px"},".setMinHeight":{minWidth:"10px"},cardWrapper:{display:"flex",flexDirection:"column",transition:"box-shadow .3s, background-color .3s",height:"100%","&:hover":{boxShadow:e.shadows[1],backgroundColor:e.mixins.White(),"& h3":{color:e.palette.common.SeaPort},"& :not(.img-to-animate-wrapper) img, & .img-to-animate-wrapper":{transform:"scale3d(1.1, 1.1, 1.1)"},"& .icon img":{transform:"none"}},"& .loaderAlignment":{minHeight:"410px"},"& .loaderCard":{display:"flex",justifyContent:"center",alignItems:"center",height:"100%",backgroundColor:"#eee",color:"rgb(255, 135, 7)"},"& .MuiChip-root":Object(a.a)(Object(a.a)({cursor:"pointer"},e.mixins.marginRight("4px")),{},{"&:last-child":Object(a.a)({},e.mixins.marginRight("0"))}),"&.listing-card":{boxShadow:e.shadows[4],backgroundColor:e.mixins.White(),display:"flex",flexDirection:"column",height:"100%","&:hover":{transition:"box-shadow .3s",boxShadow:e.shadows[1],"& .card-description":{boxShadow:"none",backgroundColor:"none"}},"& .card-description":{backgroundColor:"transparent",boxShadow:e.shadows[0],display:"flex",flexDirection:"row",flex:1,borderBottom:"0","& .contentLeftBar":Object(a.a)({width:"10px",paddingLeft:"10px",height:"auto",background:e.palette.common.SeaGreen},e.mixins.marginRight(Object(b.p)(12))),"& h3":{minHeight:"auto"},"& .card-description-flex":{flex:"auto",display:"flex",flexDirection:"column",justifyContent:"space-between",width:"calc(100% - 20px)",overflow:"hidden","& .card-description-wrapper":{"& .customLink":{"&::after":{width:"100%",height:"100%",position:"absolute",content:'""',top:"50%",left:"50%",transform:"translate(-50% , -50%)"},"&:hover":{backgroundColor:e.mixins.White(),"& h3":{color:e.palette.common.SeaPort},"& :not(.img-to-animate-wrapper) img, & .img-to-animate-wrapper":{transform:"scale3d(1.1, 1.1, 1.1)"},"& .icon img":{transform:"none"}}}},"& .tagswrapper":{"&.calc-done":{"& .MuiChip-root":{"&:nth-last-child(2)":{minWidth:"10px"}}},"&.calc-done-last":{"& .MuiChip-root":{"&:last-child":{minWidth:"10px"}}}}}},"&.horizontal-card":{flexDirection:"row","& .card-description":Object(a.a)(Object(a.a)({padding:"".concat(e.spacing(4)," ").concat(e.spacing(3)," ").concat(e.spacing(3))},e.mixins.paddingLeft(Object(b.p)(20))),{},(t={},Object(i.a)(t,e.breakpoints.up("lg"),{flex:"0 0 75%",maxWidth:"75%",margin:0,padding:e.spacing(3)}),Object(i.a)(t,"& h3",{marginBottom:e.spacing(1)}),Object(i.a)(t,"& p",Object(a.a)(Object(a.a)({color:e.palette.text.darkGrey,marginBottom:e.spacing(2)},e.palette.common.ellipsis(2)),{},Object(i.a)({maxHeight:2*e.typography.body2.lineHeight.replace("rem","")+"rem"},e.breakpoints.up("lg"),Object(a.a)(Object(a.a)({},e.palette.common.ellipsis(3)),{},{maxHeight:3*e.typography.body2.lineHeight.replace("rem","")+"rem"})))),Object(i.a)(t,"& .contentLeftBar",Object(a.a)({width:Object(b.p)(0),paddingLeft:"0px",height:"100%",background:"transparent"},e.mixins.marginRight(Object(b.p)(0)))),t)),"& .img-wrapper":Object(a.a)(Object(a.a)({flex:"0 0 25%",overflow:"hidden",margin:"".concat(e.spacing(4)," ").concat(e.spacing(3)," ").concat(e.spacing(3))},e.mixins.marginRight(0)),{},(n={},Object(i.a)(n,e.breakpoints.up("lg"),{margin:0}),Object(i.a)(n,"& img",{display:"block",height:"100%"}),n))}},"& .common-card":{"&.card-description":(r={backgroundColor:"transparent",boxShadow:e.shadows[0],display:"flex",flexDirection:"row",flex:0,borderBottom:"0",padding:"".concat(e.spacing(3)," ").concat(e.spacing(3)," ").concat(e.spacing(3)," ").concat(e.spacing(0))},Object(i.a)(r,e.breakpoints.up("lg"),{padding:"".concat(e.spacing(3)," ").concat(e.spacing(3)," ").concat(e.spacing(3)," ").concat(e.spacing(0))}),Object(i.a)(r,"& .contentLeftBar",Object(a.a)({width:"7px",paddingLeft:"7px",height:"100%",background:e.palette.common.SeaGreen},e.mixins.marginRight(Object(b.p)(18)))),Object(i.a)(r,"& .card-description-flex",{flex:"auto",position:"relative",display:"flex",flexDirection:"column",justifyContent:"space-between"}),r)},"& .common-card-description":{flex:1}},rtlClass:{direction:e.direction,height:"100%"},imageWrapper:(o={position:"relative",overflow:"hidden",minHeight:"190px"},Object(i.a)(o,e.breakpoints.up("md"),{minHeight:"416px"}
2),Object(i.a)(o,e.breakpoints.up("lg"),{minHeight:"200px"}),Object(i.a)(o,"& picture",{paddingTop:"0"}),Object(i.a)(o,"& :not(.img-to-animate-wrapper) img, & .img-to-animate-wrapper",{transition:"all 1s ease"}),Object(i.a)(o,"&.collage",{marginBottom:e.spacing(4)}),o),cardContent:{display:"flex",flexDirection:"column",textAlign:e.mixins.textLeft("left"),"& .MuiTypography-cardTitle1":Object(a.a)({marginBottom:e.spacing(1)},e.palette.common.ellipsis(2)),"& .MuiTypography-cardTitle2":Object(a.a)({marginBottom:e.spacing(1)},e.palette.common.ellipsis(3)),"& .bot-area":{display:"flex",flexDirection:"column",justifyContent:"space-between",paddingBottom:"1px"},"& .cta-wrap":{marginTop:"auto",display:"flex","&.tagswrapper":{display:"block"}},"& .hidden-tags-for-calc":{opacity:0,height:0,overflow:"hidden"}},location:{display:"flex","&.MuiTypography-root":{color:e.palette.text.tertiary,marginBottom:e.spacing(2),"& span":Object(a.a)({},e.palette.common.ellipsis(2))}},duration:{display:"flex",alignItems:"center","&.MuiTypography-root":{color:e.palette.text.tertiary,marginBottom:e.spacing(2)},"& .icon":Object(a.a)(Object(a.a)({},e.mixins.marginRight(e.spacing(1))),{},{"& svg":{width:e.spacing(3),height:e.spacing(3)}})},highlights:{display:"inline-flex",alignItems:"center","&.MuiTypography-root":{color:e.mixins.Black(),marginBottom:e.spacing(2),marginRight:e.spacing(2)},"& .icon":{marginRight:e.spacing(1),"& img":{width:Object(b.p)(20),height:Object(b.p)(20)}}},rating:Object(a.a)(Object(a.a)({},e.typography.labelRegular),{},{display:"inline-flex",alignItems:"center",paddingLeft:e.spacing(1),"& svg":{width:e.spacing(1.5),height:e.spacing(1.5),marginRight:e.spacing(.5)}}),posRelative:{position:"relative"},viewsCounterTag:Object(a.a)({position:"absolute",top:Object(b.p)(16)},e.mixins.left(Object(b.p)(16))),favViewsCounterTag:Object(a.a)({position:"absolute",top:0},e.mixins.left(0)),priceRangeTag:Object(a.a)({position:"absolute",bottom:Object(b.p)(16)},e.mixins.left(Object(b.p)(16))),favPriceRangeTag:Object(a.a)({position:"absolute",bottom:0},e.mixins.right(0)),overViewSection:Object(i.a)({paddingBottom:Object(b.p)(10.35),width:"100%",marginTop:Object(b.p)(12),overflow:"hidden","& .ratign-sec":{display:"flex",alignItems:"center"},"& .open-close-sec":{display:"flex",marginTop:Object(b.p)(5)}},e.breakpoints.up("lg"),{paddingBottom:Object(b.p)(16)}),ratingImageWithLogo:{display:"flex","& .MuiSvgIcon-root":{width:e.spacing(5),height:e.spacing(5)}},totalReviews:{padding:"0",color:e.palette.text.tertiary1},ratingTripAdvisor:Object(a.a)(Object(a.a)({display:"inline-flex",background:e.palette.background.transparent},e.mixins.marginLeft(Object(b.p)(-5))),{},{marginTop:Object(b.p)(-1)}),descriptionAlignment:Object(a.a)({marginBottom:Object(b.p)(20),display:"flex",flexGrow:1},e.palette.common.ellipsis(8)),listItemContainer:{height:"100%"},customWrapper:{width:"calc(100% + 32px)","& .categoryAlign":{"& .MuiChip-label":{"& .MuiTypography-root":(s={maxWidth:Object(b.p)(104)},Object(i.a)(s,e.breakpoints.down("md"),{maxWidth:Object(b.p)(88)}),Object(i.a)(s,"@media (max-width: 360px)",{maxWidth:Object(b.p)(68)}),s)}}}}},I=Object(f.a)((function(e){return Object(y.c)(e)?S(e):A(e)})),M=n(1554),L=function(e){var t,n,r,o;return{collageType1:Object(a.a)(Object(a.a)({display:"flex",flex:"auto",borderColor:e.mixins.Grey()},e.mixins.paddingLeft("var(--mfd-spacing-xxs)")),{},Object(i.a)({},e.breakpoints.up("lg"),Object(a.a)(Object(a.a)({},e.mixins.paddingLeft(0)),{},{borderBottom:"none"}))),collageType1subHeading:Object(a.a)(Object(a.a)(Object(a.a)({height:"90%"},e.mixins.borderRight("1px solid ".concat(e.mixins.Grey(200)))),{},{backgroundColor:e.mixins.White()},e.mixins.marginRight(Object(b.p)(14))),{},(t={},Object(i.a)(t,e.breakpoints.up("lg"),Object(a.a)({},e.mixins.marginRight(0))),Object(i.a)(t,e.breakpoints.down("md"),Object(a.a)({},e.mixins.marginRight(Object(b.q)(14)))),t)),cardDescription:{display:"flex",flexDirection:"column",justifyContent:"space-between",minWidth:"1px",paddingLeft:"1rem",paddingRight:"1rem","& .tagswrapper":{"&.calc-done":{"& .MuiChip-root":{"&:nth-last-child(2)":Object(i.a)({minWidth:Object(b.p)(10)},e.breakpoints.down("md"),{minWidth:Object(b.q)(10)})}},"&.calc-done-last":{"& .MuiChip-root":{"&:last-child":Object(i.a)({minWidth:Object(b.p)(10)},e.breakpoints.down("md"),{minWidth:Object(b.q)(10)})}},"& .MuiChip-root":Object(a.a)(Object(a.a)({cursor:"pointer"},e.mixins.marginRight(Object(b.p)(4))),{},{"&:last-child":Object(a.a)({},e.mixins.marginRight("0"))})}},eventDateWrapper:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},eventDate:{color:e.mixins.Black()},eventMonth:{textTransform:"uppercase"},collageType1Card:Object(a.a)(Object(a.a)({color:e.palette.text.tertiary,padding:"0 0 ".concat("var(--mfd-spacing-s)")},e.mixins.paddingRight("var(--mfd-spacing-s)")),{},Object(i.a)({},e.breakpoints.up("lg"),{padding:"0 ".concat("var(--mfd-spacing-s)"," ","var(--mfd-spacing-s)")})),CategoryTag:{textTransform:"uppercase",marginRight:"var(--mfd-spacing-xxxs)",marginLeft:0,"& .MuiChip-label":{textOverflow:"initial"},"&:hover":{background:e.mixins.SeaGreen(100)}},linkRoot:{display:"flex",flexDirection:"column",height:"100%",backgroundColor:e.mixins.White(),position:"relative",borderBottom:function(t){return t.umbrellaECount&&"4px solid ".concat(e.palette.common.Palm())},"& .imageWrap":{"& img":{height:"100%",display:"inline-block"}},'& [class^="MuiChip-root"]':Object(i.a)({height:Object(b.p)(24)},e.breakpoints.down("md"),{height:Object(b.q)(24)}),"& .customLink":{"&::after":{width:"100%",height:"100%",position:"absolute",content:'""',top:"50%",left:"50%",transform:"translate(-50% , -50%)"},"&:hover":{backgroundColor:e.mixins.White(),"& h3":{color:e.palette.common.SeaPort},"& :not(.img-to-animate-wrapper) img, & .img-to-animate-wrapper":{transform:"scale3d(1.1, 1.1, 1.1)"},"& .icon img":{transform:"none"}}},"&:hover":{backgroundColor:e.mixins.White(),"& h3":{color:e.palette.common.SeaPort},"& :not(.img-to-animate-wrapper) img, & .img-to-animate-wrapper":{transform:"scale3d(1.1, 1.1, 1.1)"},"& .icon img":{transform:"none"}}},categoryOnImageWrapper:Object(a.a)({display:"flex",position:"absolute",top:"var(--mfd-spacing-s)",flexWrap:"wrap",gap:"var(--mfd-spacing-xxs)"},e.mixins.left("var(--mfd-spacing-m)")),categoryOnImage:Object(a.a)(Object(a.a)({display:"flex",justifyContent:"center",alignItems:"center",padding:"".concat(Object(b.p)(4)," ").concat(Object(b.p)(10))},e.mixins.marginRight("0")),{},Object(i.a)({borderRadius:g.a.b3,color:e.mixins.White(),backgroundColor:e.mixins.SeaGreen(),textTransform:"uppercase"},e.breakpoints.down("md"),{padding:"".concat(Object(b.q)(4)," ").concat(Object(b.q)(10))})),umbrellaEventCountWrapper:{position:"absolute",bottom:"var(--mfd-spacing-m)",left:"var(--mfd-spacing-m)"},umbrellaEventCount:(n={display:"flex",justifyContent:"center",flexDirection:"column",backgroundColor:e.mixins.SeaGreen(),height:Object(b.p)(65),width:Object(b.p)(65)},Object(i.a)(n,e.breakpoints.down("md"),{height:Object(b.q)(65),width:Object(b.q)(65)}),Object(i.a)(n,"& p",{color:e.mixins.milkWhite()}),Object(i.a)(n,"& span",{color:e.mixins.White()}),n),locationItem:Object(a.a)(Object(a.a)({color:e.palette.text.tertiary,marginBottom:"var(--mfd-spacing-xs)"},e.palette.common.ellipsis(2)),{},(o={},Object(i.a)(o,e.breakpoints.up("lg"),{paddingTop:0}),Object(i.a)(o,"& .location-icon",(r={color:e.palette.common.Palm(),border:"2px s
2olid ".concat(e.palette.common.Palm()),backgroundColor:e.mixins.White(),width:Object(b.p)(35),height:Object(b.p)(35)},Object(i.a)(r,e.breakpoints.down("md"),{width:Object(b.q)(35),height:Object(b.q)(35)}),Object(i.a)(r,"& svg",Object(i.a)({width:Object(b.p)(21),height:Object(b.p)(16)},e.breakpoints.down("md"),{width:Object(b.q)(21),height:Object(b.q)(16)})),r)),Object(i.a)(o,"& .favourite-icon",{border:"none",marginRight:0,color:e.mixins.Black()}),o)),timings:Object(i.a)({marginBottom:Object(b.p)(10)},e.breakpoints.down("md"),{marginBottom:Object(b.q)(10)})}},B=function(e){var t;return{collageType1:Object(a.a)(Object(a.a)({display:"flex",flex:"auto",borderColor:e.mixins.Grey()},e.mixins.paddingLeft(e.spacing(1))),{},Object(i.a)({},e.breakpoints.up("lg"),Object(a.a)(Object(a.a)({},e.mixins.paddingLeft(0)),{},{borderBottom:"none"}))),collageType1subHeading:Object(a.a)(Object(a.a)(Object(a.a)({height:"90%"},e.mixins.borderRight("1px solid ".concat(e.mixins.Grey(200)))),{},{backgroundColor:e.mixins.White()},e.mixins.marginRight(Object(b.p)(14))),{},Object(i.a)({},e.breakpoints.up("lg"),Object(a.a)({},e.mixins.marginRight(0)))),cardDescription:{display:"flex",flexDirection:"column",justifyContent:"space-between",minWidth:"1px",paddingLeft:"1rem",paddingRight:"1rem","& .tagswrapper":{"&.calc-done":{"& .MuiChip-root":{"&:nth-last-child(2)":{minWidth:"10px"}}},"&.calc-done-last":{"& .MuiChip-root":{"&:last-child":{minWidth:"10px"}}},"& .MuiChip-root":Object(a.a)(Object(a.a)({cursor:"pointer"},e.mixins.marginRight("4px")),{},{"&:last-child":Object(a.a)({},e.mixins.marginRight("0"))})}},eventDateWrapper:{display:"flex",flexDirection:"column",justifyContent:"space-between",height:"100%"},eventDate:{color:e.mixins.Black()},eventMonth:{textTransform:"uppercase"},collageType1Card:Object(a.a)(Object(a.a)({color:e.palette.text.tertiary,padding:"0 0 ".concat(e.spacing(2))},e.mixins.paddingRight(e.spacing(2))),{},Object(i.a)({},e.breakpoints.up("lg"),{padding:"0 ".concat(e.spacing(2)," ").concat(e.spacing(2))})),CategoryTag:{textTransform:"uppercase",marginRight:"4px",marginLeft:0,"& .MuiChip-label":{textOverflow:"initial"},"&:hover":{background:e.mixins.SeaGreen(100)}},linkRoot:{display:"flex",flexDirection:"column",height:"100%",backgroundColor:e.mixins.White(),position:"relative",borderBottom:function(t){return t.umbrellaECount&&"4px solid ".concat(e.mixins.DarkTurquoise())},"& .imageWrap":{"& img":{height:"100%",display:"inline-block"}},'& [class^="MuiChip-root"]':{height:"24px"},"& .customLink":{"&::after":{width:"100%",height:"100%",position:"absolute",content:'""',top:"50%",left:"50%",transform:"translate(-50% , -50%)"},"&:hover":{backgroundColor:e.mixins.White(),"& h3":{color:e.palette.common.SeaPort},"& :not(.img-to-animate-wrapper) img, & .img-to-animate-wrapper":{transform:"scale3d(1.1, 1.1, 1.1)"},"& .icon img":{transform:"none"}}},"&:hover":{backgroundColor:e.mixins.White(),"& h3":{color:e.palette.common.SeaPort},"& :not(.img-to-animate-wrapper) img, & .img-to-animate-wrapper":{transform:"scale3d(1.1, 1.1, 1.1)"},"& .icon img":{transform:"none"}}},categoryOnImageWrapper:Object(a.a)({display:"flex",position:"absolute",top:e.spacing(2)},e.mixins.left(e.spacing(3))),categoryOnImage:{display:"flex",justifyContent:"center",alignItems:"center",padding:"".concat(Object(b.p)(4)," ").concat(Object(b.p)(10)),borderRadius:g.a.b3,color:e.mixins.White(),backgroundColor:e.mixins.SeaGreen(),textTransform:"uppercase"},umbrellaEventCountWrapper:{position:"absolute",bottom:e.spacing(3),left:e.spacing(3)},umbrellaEventCount:{display:"flex",justifyContent:"center",flexDirection:"column",backgroundColor:e.mixins.SeaGreen(),height:Object(b.p)(65),width:Object(b.p)(65),"& p":{color:e.mixins.milkWhite()},"& span":{color:e.mixins.White()}},locationItem:Object(a.a)(Object(a.a)({color:e.palette.text.tertiary,marginBottom:Object(b.p)(12)},e.palette.common.ellipsis(2)),{},(t={},Object(i.a)(t,e.breakpoints.up("lg"),{paddingTop:0}),Object(i.a)(t,"& .location-icon",{color:e.mixins.DarkTurquoise(),border:"2px solid ".concat(e.mixins.DarkTurquoise()),backgroundColor:e.mixins.White(),width:Object(b.p)(35),height:Object(b.p)(35),"& svg":{width:Object(b.p)(21),height:Object(b.p)(16)}}),Object(i.a)(t,"& .favourite-icon",{border:"none",marginRight:0,color:e.mixins.Black()}),t)),timings:{marginBottom:Object(b.p)(10)}}},R=Object(f.a)((function(e){return Object(y.c)(e)?L(e):B(e)})),D=n(353),P=n(159),z=n(1545),F=n(130),N=n(1565),U=n(105),V=n(119),W=n(49),q=function(e){var t=e.title,n=e.desktopImage,i=e.mobileImage,s=e.ctaLink,d=e.itemUniqueKey,m=e.componentName,f=e.imageCtaUrl,g=e.cardType,b=e.isShowFavorite,v=e.showFavoriteIcon,x=e.pageSubsection,_=e.hasExternalLink,w=e.other,O=w.startDate,j=w.endDate,C=w.locationTitle,T=w.region,S=w.isEventListing,A=w.eventType,L=w.openTime,B=w.closeTime,q=w.umbrellaEventCount,G=w.pageContentType,Z=w.language,H=w.forcedRatio,X=w.lazyLoading,K=void 0!==X&&X,Y=Object(W.get)(w,"sitecoreContext.pageTitleEn","")||"",J=q;q>0&&q<9?J="0".concat(q):0===q&&(J="");var Q=Object(F.a)(),$=R({umbrellaECount:J,pageContentType:G})||{},ee=Object(c.useState)(""),te=Object(o.a)(ee,2),ne=(te[0],te[1],Object(r.a)(s)||[]),ie=I({cardType:g});return A&&A.isPaid&&(ne&&ne.length>0?ne[1]=A.isPaid:ne[0]=A.isPaid),Array.isArray(w.eventCategories)&&w.eventCategories.length>0&&(ne=ne.concat(w.eventCategories)),l.a.createElement(l.a.Fragment,null,v&&l.a.createElement(z.a,{COMPONENT_NAME:m,isMfdToast:Object(y.c)(Q),eventName:t,ariaLabel:t,itemUniqueKey:d,isShowFavorite:b,componentName:m}),l.a.createElement(E.a,{className:$.linkRoot,onClick:function(){Object(U.b)(Object(a.a)(Object(a.a)({},V.a.pageBodyInteraction.event_listing_card_click),{},{call_to_action:t,UX_component_name:m,page_name_eng:Y,page_subsection:x}))}},l.a.createElement(E.a,{className:"".concat(ie.imageWrapper," imageWrap"),mb:4},l.a.createElement(k.a,{media:{image:null!==n&&void 0!==n?n:{value:{}},mobileImage:null!==i&&void 0!==i?i:{value:{}},disableLazyLoad:!K,aspectRatio:P.a["16x9-card"],forcedRatio:H},alt:Object(y.W)(t||(null===t||void 0===t?void 0:t.value)||"")}),l.a.createElement(E.a,{className:$.categoryOnImageWrapper},A&&A.featured&&l.a.createElement(u.a,{variant:"labelBold",component:"span",className:$.categoryOnImage},A.featured)),J&&l.a.createElement(E.a,{className:$.umbrellaEventCountWrapper},l.a.createElement(M.a,{className:$.umbrellaEventCount},l.a.createElement(u.a,{component:"span",variant:"body2Bold"},l.a.createElement(p.Text,{field:{value:J}}
2)),l.a.createElement(u.a,{component:"p",variant:"body2Bold"},l.a.createElement(p.Text,{field:{value:"Events"}}))))),l.a.createElement(E.a,{className:$.collageType1},l.a.createElement(E.a,{mr:1,className:$.collageType1subHeading},l.a.createElement(E.a,{className:$.eventDateWrapper},[Object(D.m)(O,Z),Object(D.m)(j,Z)].map((function(e,t){return l.a.createElement(E.a,{className:$.collageType1Card,key:t},l.a.createElement(u.a,{component:"div",variant:"body1Bold",className:"".concat($.eventDate," eventDate")},e.day),l.a.createElement(u.a,{component:"div",variant:"labelRegular",className:$.eventMonth},e.month),l.a.createElement(u.a,{component:"div",variant:"labelRegular"},e.year))})))),l.a.createElement(E.a,{pb:{xs:3},px:{lg:3},pt:"0",className:"".concat(ie.cardContent," ").concat($.cardDescription)},l.a.createElement(E.a,{className:"card-description"},l.a.createElement(h.a,{link:{value:{href:_||f}},target:_?"_blank":"",className:"customLink",srText:t},l.a.createElement(u.a,{variant:"cardTitle2",component:"h3"},l.a.createElement(p.Text,{field:{value:t}}))),!S&&l.a.createElement(u.a,{variant:"body3",color:"textSecondary",className:$.locationItem},l.a.createElement(p.Text,{field:{value:"".concat(C," - ").concat(T)}})),S&&T&&C&&l.a.createElement(u.a,{variant:"body3",component:"div",classes:{root:"".concat(ie.location," ").concat($.timings)}},l.a.createElement(E.a,{component:"span",display:"inline-flex"},l.a.createElement(p.Text,{field:{value:"".concat(C," - ").concat(T)}}))),L&&B&&l.a.createElement(u.a,{variant:"labelBold",component:"div",className:$.timings},l.a.createElement(E.a,{component:"span",display:"inline-flex"},"".concat(L)),l.a.createElement(E.a,{component:"span",display:"inline-flex"}," - "),l.a.createElement(E.a,{component:"span",display:"inline-flex"},"".concat(B)))),ne?l.a.createElement(N.a,{ctaLink:ne,itemUniqueKey:d,className:$.CategoryTag,borderStyle:Q.borders.seaGreenBorder,colorStyle:Q.mixins.SeaGreen()}):null))))};q.defaultProps={title:"",desktopImage:{},mobileImage:{},ctaLink:[],imageCtaUrl:"",cardType:""};var G=Object(p.withSitecoreContext)()(Object(d.b)()(q)),Z=function(e){var t,n,r,o;return{eventCarouselContent:Object(a.a)(Object(a.a)({color:"#FFFF",background:"transparent",paddingTop:"var(--mfd-spacing-l)",zIndex:5,borderColor:e.mixins.Grey()},e.mixins.paddingLeft("var(--mfd-spacing-xxs)")),{},(n={},Object(i.a)(n,e.breakpoints.up("lg"),Object(a.a)(Object(a.a)({},e.mixins.paddingLeft(0)),{},{borderBottom:"none"})),Object(i.a)(n,e.breakpoints.down("md"),{paddingTop:"var(--mfd-spacing-s)"}),Object(i.a)(n,"& .customLink",{"&::after":{width:"100%",height:"100%",position:"absolute",content:'""',top:"50%",left:"50%",transform:"translate(-50% , -50%)"},"&:hover":{backgroundColor:e.mixins.White(),"& h3":{color:e.palette.common.SeaPort},"& :not(.img-to-animate-wrapper) img, & .img-to-animate-wrapper":{transform:"scale3d(1.1, 1.1, 1.1)"},"& .icon img":{transform:"none"}}}),Object(i.a)(n,"& .eventName, & .eventLocation",Object(a.a)(Object(a.a)({},e.palette.common.ellipsis(1)),{},Object(i.a)({},e.breakpoints.down("md"),{fontSize:Object(b.q)(14),lineHeight:Object(b.q)(24),letterSpacing:"normal"}))),Object(i.a)(n,"& .eventLocation",{fontWeight:400}),Object(i.a)(n,"& .eventTitle",Object(a.a)(Object(a.a)({marginTop:"var(--mfd-spacing-xs)",marginBottom:"var(--mfd-spacing-xs)"},e.palette.common.ellipsis(2)),{},(t={},Object(i.a)(t,e.breakpoints.down("md"),{lineHeight:Object(b.q)(28),marginBottom:Object(b.q)(4)}),Object(i.a)(t,"& p",Object(a.a)(Object(a.a)({},e.palette.common.ellipsis(1)),{},Object(i.a)({},e.breakpoints.down("md"),Object(a.a)({},e.palette.common.ellipsis(2))))),t))),n)),eventCarouselSubHeading:Object(a.a)(Object(a.a)(Object(a.a)({height:"90%"},e.mixins.borderRight("1px solid ".concat(e.mixins.Grey(200)))),{},{backgroundColor:e.mixins.White()},e.mixins.marginRight(Object(b.p)(14))),{},(r={},Object(i.a)(r,e.breakpoints.up("lg"),Object(a.a)({},e.mixins.marginRight(0))),Object(i.a)(r,e.breakpoints.down("md"),Object(a.a)({},e.mixins.marginRight(Object(b.q)(14)))),r)),linkRoot:{display:"flex",flexDirection:"column",height:"100%",position:"relative",borderBottom:function(t){return t.umbrellaECount&&"4px solid ".concat(e.palette.common.Palm())},"& .imageWrap":{"& img":{height:"100%",display:"inline-block"}},'& [class^="MuiChip-root"]':Object(i.a)({height:Object(b.p)(24)},e.breakpoints.down("md"),{height:Object(b.q)(24)}),"&:hover":{"& h3":{color:e.palette.common.SeaPort},"& :not(.img-to-animate-wrapper) img, & .img-to-animate-wrapper":{transform:"scale3d(1.1, 1.1, 1.1)"},"& .icon img":{transform:"none"}}},categoryOnImageWrapper:Object(a.a)(Object(a.a)({display:"flex",position:"absolute",top:"var(--mfd-spacing-s)"},e.mixins.left("var(--mfd-spacing-m)")),{},{flexWrap:"wrap",gap:"var(--mfd-spacing-xxs)"}),categoryOnImage:Object(a.a)(Object(a.a)({display:"flex",justifyContent:"center"},e.mixins.marginRight("0")),{},Object(i.a)({alignItems:"center",padding:"".concat(Object(b.p)(4)," ").concat(Object(b.p)(10)),borderRadius:g.a.b3,color:e.mixins.Black(),backgroundColor:e.mixins.White(),textTransform:"uppercase",letterSpacing:e.isDirectionRtl?"0":"0.5px"},e.breakpoints.down("md"),{padding:"".concat(Object(b.q)(4)," ").concat(Object(b.q)(10))})),umbrellaEventCountWrapper:{position:"absolute",bottom:"var(--mfd-spacing-m)",left:"var(--mfd-spacing-m)"},umbrellaEventCount:(o={display:"flex",justifyContent:"center",flexDirection:"column",backgroundColor:e.mixins.SeaGreen(),height:Object(b.p)(65),width:Object(b.p)(65)},Object(i.a)(o,e.breakpoints.down("md"),{height:Object(b.q)(65),width:Object(b.q)(65)}),Object(i.a)(o,"& p",{color:e.mixins.milkWhite()}),Object(i.a)(o,"& span",{color:e.mixins.White()}),o)}},H=function(e){var t,n;return{eventCarouselContent:Object(a.a)(Object(a.a)({color:"#FFFF",background:"transparent",paddingTop:"32px",zIndex:5,borderColor:e.mixins.Grey()},e.mixins.paddingLeft(e.spacing(1))),{},(n={},Object(i.a)(n,e.breakpoints.up("lg"),Object(a.a)(Object(a.a)({},e.mixins.paddingLeft(0)),{},{borderBottom:"none"})),Object(i.a)(n,e.breakpoints.down("md"),{paddingTop:"16px"}
2),Object(i.a)(n,"& .customLink",{"&::after":{width:"100%",height:"100%",position:"absolute",content:'""',top:"50%",left:"50%",transform:"translate(-50% , -50%)"},"&:hover":{backgroundColor:e.mixins.White(),"& h3":{color:e.palette.common.SeaPort},"& :not(.img-to-animate-wrapper) img, & .img-to-animate-wrapper":{transform:"scale3d(1.1, 1.1, 1.1)"},"& .icon img":{transform:"none"}}}),Object(i.a)(n,"& .eventName, & .eventLocation",Object(a.a)(Object(a.a)({},e.palette.common.ellipsis(1)),{},Object(i.a)({},e.breakpoints.down("md"),{fontSize:"14px",lineHeight:"24px",letterSpacing:"normal"}))),Object(i.a)(n,"& .eventLocation",{fontWeight:400}),Object(i.a)(n,"& .eventTitle",Object(a.a)(Object(a.a)({marginTop:"12px",marginBottom:"12px"},e.palette.common.ellipsis(2)),{},(t={},Object(i.a)(t,e.breakpoints.down("md"),{lineHeight:"28px",marginBottom:"4px"}),Object(i.a)(t,"& p",Object(a.a)(Object(a.a)({},e.palette.common.ellipsis(1)),{},Object(i.a)({},e.breakpoints.down("md"),Object(a.a)({},e.palette.common.ellipsis(2))))),t))),n)),eventCarouselSubHeading:Object(a.a)(Object(a.a)(Object(a.a)({height:"90%"},e.mixins.borderRight("1px solid ".concat(e.mixins.Grey(200)))),{},{backgroundColor:e.mixins.White()},e.mixins.marginRight(Object(b.p)(14))),{},Object(i.a)({},e.breakpoints.up("lg"),Object(a.a)({},e.mixins.marginRight(0)))),linkRoot:{display:"flex",flexDirection:"column",height:"100%",position:"relative",borderBottom:function(t){return t.umbrellaECount&&"4px solid ".concat(e.mixins.DarkTurquoise())},"& .imageWrap":{"& img":{height:"100%",display:"inline-block"}},'& [class^="MuiChip-root"]':{height:"24px"},"&:hover":{"& h3":{color:e.palette.common.SeaPort},"& :not(.img-to-animate-wrapper) img, & .img-to-animate-wrapper":{transform:"scale3d(1.1, 1.1, 1.1)"},"& .icon img":{transform:"none"}}},categoryOnImageWrapper:Object(a.a)({display:"flex",position:"absolute",top:e.spacing(2)},e.mixins.left(e.spacing(3))),categoryOnImage:{display:"flex",justifyContent:"center",alignItems:"center",padding:"".concat(Object(b.p)(4)," ").concat(Object(b.p)(10)),borderRadius:g.a.b3,color:e.mixins.Black(),backgroundColor:e.mixins.White(),textTransform:"uppercase",letterSpacing:e.isDirectionRtl?"0":"0.5px"},umbrellaEventCountWrapper:{position:"absolute",bottom:e.spacing(3),left:e.spacing(3)},umbrellaEventCount:{display:"flex",justifyContent:"center",flexDirection:"column",backgroundColor:e.mixins.SeaGreen(),height:Object(b.p)(65),width:Object(b.p)(65),"& p":{color:e.mixins.milkWhite()},"& span":{color:e.mixins.White()}}}},X=Object(f.a)((function(e){return Object(y.c)(e)?Z(e):H(e)})),K=(n(45),function(e){var t=e.title,n=e.desktopImage,i=e.mobileImage,o=e.ctaLink,s=e.itemUniqueKey,c=e.componentName,d=e.imageCtaUrl,m=e.hasExternalLink,f=e.isShowFavorite,g=e.showFavoriteIcon,b=e.eventCategories,v=e.isAdCard,x=e.pageSubsection,_=e.other,w=e.listingCategory,O=_.startDate,j=_.endDate,C=_.locationTitle,T=_.region,S=_.eventType,A=_.openTime,I=_.closeTime,L=_.umbrellaEventCount,B=_.pageContentType,R=_.forcedRatio,N=(_.lazyLoading,L);L>0&&L<9?N="0".concat(L):0===L&&(N="");var q=Object(W.get)(e,"sitecoreContext.pageTitleEn","")||"",G=Object(F.a)(),Z=G&&"rtl"===G.direction,H=O?Object(D.n)(O,"MMM"):"",K=O?Object(D.n)(O,"DD"):"",Y=O?Object(D.n)(O,"hh:mm A"):"",J=j?Object(D.n)(j,"MMM"):"",Q=j?Object(D.n)(j,"DD"):"",$=j?Object(D.n)(j,"hh:mm A"):"",ee=Object(D.f)(O),te=Object(D.f)(j),ne=Q;H!==J&&(ne="".concat(Z?te:J," ").concat(Q));var ie=X({umbrellaECount:N,pageContentType:B})||{},re=Object(W.isEmpty)(o)?[]:Object(r.a)(o);S&&S.isPaid&&(re&&re.length>0?re[1]=S.isPaid:re[0]=S.isPaid),Array.isArray(_.eventCategories)&&_.eventCategories.length>0&&(re=re.concat(_.eventCategories));return l.a.createElement(l.a.Fragment,null,g&&l.a.createElement(z.a,{COMPONENT_NAME:c,eventName:t,pageTitleEn:q,isMfdToast:Object(y.c)(G),ariaLabel:t,itemUniqueKey:s,isShowFavorite:f,componentName:c,listingCategory:w}),l.a.createElement(E.a,{className:ie.linkRoot,onClick:function(){Object(U.b)(Object(a.a)(Object(a.a)({},V.a.pageBodyInteraction.event_listing_card_click),{},{call_to_action:t,UX_component_name:c,page_name_eng:q,page_subsection:x}))}},l.a.createElement(E.a,{className:"eventImageWrapper imageWrap"},l.a.createElement(k.a,{media:{image:null!==n&&void 0!==n?n:{value:{}},mobileImage:null!==i&&void 0!==i?i:{value:{}},disableLazyLoad:!0,aspectRatio:P.a["16x9-card"],forcedRatio:R},alt:Object(y.W)(t||(null===t||void 0===t?void 0:t.value)||"")}),l.a.createElement(E.a,{className:"".concat(ie.categoryOnImageWrapper," tagWrapper")},v?b.map((function(e,t){return l.a.createElement(u.a,{variant:"labelBold",component:"span",className:"".concat(ie.categoryOnImage," ").concat(t%2!==1?"blackLabel":""),key:t},e)})):b&&l.a.createElement(u.a,{variant:"labelBold",component:"span",className:ie.categoryOnImage},b)),N&&l.a.createElement(E.a,{className:ie.umbrellaEventCountWrapper},l.a.createElement(M.a,{className:ie.umbrellaEventCount},l.a.createElement(u.a,{component:"span",variant:"body2Bold"},l.a.createElement(p.Text,{field:{value:N}})),l.a.createElement(u.a,{component:"p",variant:"body2Bold"},l.a.createElement(p.Text,{field:{value:"Events"}}))))),l.a.createElement(E.a,{className:"".concat(ie.eventCarouselContent," calenderType")},l.a.createElement(u.a,{component:"p",variant:"labelBlack",className:"eventName"},l.a.createElement(p.Text,{field:{value:function(){var e="".concat(Z?ee:H," ").concat(K," - ").concat(ne),t=Z?Object(D.h)(I)+" - "+Object(D.h)(A):"".concat(Y," - ").concat($);return"".concat(e,", ").concat(t)}()}})),l.a.createElement(h.a,{className:"customLink",link:{value:{href:m||d}},target:m?"_blank":"",draggable:!1},l.a.createElement(u.a,{component:"p",variant:"h5Bold",className:"eventTitle"},l.a.createElement(p.Text,{field:{value:t}}))),l.a.createElement(u.a,{component:"p",variant:"body3Bold",className:"eventLocation"}
2,l.a.createElement(p.Text,{field:{value:[C,T].filter(Boolean).join(", ")}})))))});K.defaultProps={title:"",desktopImage:{},mobileImage:{},ctaLink:[],imageCtaUrl:"",cardType:""};var Y=Object(p.withSitecoreContext)()(Object(d.b)()(K)),J=n(1582),Q=n(47),$=n(1580),ee=n(1583),te=n(1595),ne=n.n(te),ie=n(12),re=n(528),ae=(n(1585),function(e){var t;return{listItem:{position:"relative",padding:"var(--mfd-spacing-s) 0",display:"flex",borderBottom:"1px solid ".concat(e.palette.common.DisabledGrey),cursor:"pointer","& a":{width:"100%",display:"flex",alignItems:"center"},"& .listItemContainer":{width:"100%",display:"flex"},"& .rating-img":Object(i.a)({width:"auto",maxHeight:Object(b.p)(13)},Object(b.e)("md"),{maxHeight:Object(b.q)(13)}),"& .rating-sec":Object(i.a)({display:"flex",alignItems:"center",marginTop:Object(b.p)(6)},Object(b.e)("md"),{marginTop:Object(b.q)(6)}),"& .open-close-sec":{display:"flex"}},listItemTextWrap:Object(i.a)({paddingLeft:"var(--mfd-spacing-s)",paddingRight:"var(--mfd-spacing-s)",width:"100%",display:"flex",flexDirection:"column"},b.n,{width:"calc(100% - ".concat(Object(b.q)(95),")")}),ltGray:{color:e.palette.common.UnselectedColor},monthTag:{textTransform:"uppercase"},pr12:Object(a.a)({},e.mixins.paddingRight("var(--mfd-spacing-xs)")),mt4:{marginTop:Object(b.p)("var(--mfd-spacing-xxxs)")},mx8:{marginLeft:"var(--mfd-spacing-xxs)",marginRight:"var(--mfd-spacing-xxs)"},dateWrap:{display:"flex",flexDirection:"row",alignItems:"baseline",marginBottom:"var(--mfd-spacing-xxxs)"},tagsWrapper:{marginTop:"var(--mfd-spacing-xxs)"},categoryTag:{textTransform:"uppercase",marginRight:"var(--mfd-spacing-xxs)",marginLeft:0,marginTop:"var(--mfd-spacing-xxs)",maxWidth:"100%","& .MuiTypography-labelBlack2":Object(a.a)(Object(a.a)({},e.palette.common.ellipsis(1)),{},Object(i.a)({maxWidth:Object(b.p)(120)},Object(b.e)("md"),{maxWidth:Object(b.q)(120)}))},eventTag:{color:e.mixins.SeaGreen(),border:"1px solid rgba(0, 144, 134, 1)","&:hover":{background:e.mixins.SeaGreen(100)}},listTag:{cursor:"pointer","&:hover":{background:e.mixins.CategortTagColor(100)}},ratingImageWithLogo:{display:"flex","& .MuiSvgIcon-root":Object(i.a)({width:Object(b.p)(40),height:Object(b.p)(40)},Object(b.e)("md"),{width:Object(b.q)(40),height:Object(b.q)(40)})},totalReviews:{padding:"0",color:e.palette.text.tertiary1},ratingTripAdvisor:Object(a.a)(Object(a.a)({display:"inline-flex",background:e.palette.background.transparent},e.mixins.marginLeft(Object(b.p)(-5))),{},Object(i.a)({marginTop:Object(b.p)(-1)},Object(b.e)("md"),Object(a.a)(Object(a.a)({},e.mixins.marginLeft(Object(b.q)(-5))),{},{marginTop:Object(b.q)(-1)}))),width95pc:Object(a.a)(Object(a.a)({width:"calc(100% - var(--mfd-spacing-m))"},e.mixins.paddingLeft("var(--mfd-spacing-m)")),{},(t={},Object(i.a)(t,e.breakpoints.down("md"),{borderBottom:0}),Object(i.a)(t,"& picture",{"& img":{backgroundSize:"90% auto"}}),t))}}),oe=function(e){var t;return{listItem:{position:"relative",padding:"".concat(Object(b.p)(16)," ").concat(Object(b.p)(0)),display:"flex",borderBottom:"1px solid ".concat(e.palette.common.DisabledGrey),cursor:"pointer","& a":{width:"100%",display:"flex",alignItems:"center"},"& .listItemContainer":{width:"100%",display:"flex"},"& .rating-img":{width:"auto",maxHeight:Object(b.p)(13)},"& .rating-sec":{display:"flex",alignItems:"center",marginTop:Object(b.p)(6)},"& .open-close-sec":{display:"flex"}},listItemTextWrap:Object(i.a)({paddingLeft:Object(b.p)(16),paddingRight:Object(b.p)(16),width:"100%",display:"flex",flexDirection:"column"},b.n,{width:"calc(100% - 95px)"}),ltGray:{color:e.palette.common.UnselectedColor},monthTag:{textTransform:"uppercase"},pr12:Object(a.a)({},e.mixins.paddingRight(12)),mt4:{marginTop:Object(b.p)(4)},mx8:{marginLeft:Object(b.p)(8),marginRight:Object(b.p)(8)},dateWrap:{display:"flex",flexDirection:"row",alignItems:"baseline",marginBottom:Object(b.p)(4)},tagsWrapper:{marginTop:Object(b.p)(8)},categoryTag:{textTransform:"uppercase",marginRight:Object(b.p)(8),marginLeft:0,marginTop:Object(b.p)(8),maxWidth:"100%","& .MuiTypography-labelBlack2":Object(a.a)(Object(a.a)({},e.palette.common.ellipsis(1)),{},{maxWidth:Object(b.p)(120)})},eventTag:{color:e.mixins.SeaGreen(),border:e.borders.DarkTurquoiseBorder,"&:hover":{background:e.mixins.SeaGreen(100)}},listTag:{cursor:"pointer","&:hover":{background:e.mixins.CategortTagColor(100)}},ratingImageWithLogo:{display:"flex","& .MuiSvgIcon-root":{width:e.spacing(5),height:e.spacing(5)}},totalReviews:{padding:"0",color:e.palette.text.tertiary1},ratingTripAdvisor:Object(a.a)(Object(a.a)({display:"inline-flex",background:e.palette.background.transparent},e.mixins.marginLeft(Object(b.p)(-5))),{},{marginTop:Object(b.p)(-1)}),width95pc:Object(a.a)(Object(a.a)({width:"calc(100% - 24px)"},e.mixins.paddingLeft(24)),{},(t={},Object(i.a)(t,e.breakpoints.down("md"),{borderBottom:0}),Object(i.a)(t,"& picture",{"& img":{backgroundSize:"90% auto"}}),t))}},se=Object(f.a)((function(e){return Object(y.c)(e)?ae(e):oe(e)})),ce=function(e){var t=e.day,n=e.month,i=e.year,r=se();return l.a.createElement(l.a.Fragment,null,l.a.createElement(u.a,{variant:"body4Bold",component:"span"},t," \xa0"),l.a.createElement(u.a,{component:"span",variant:"labelLight",classes:{root:Object(T.a)(r.ltGray,r.monthTag)}},n," ",i))},le=function(e){var t=se(),n=e.startDate,i=e.endDate,r=e.language,a=n&&"0001-01-01T00:00:00"!==n?Object(D.m)(n,r):null,o=i&&"0001-01-01T00:00:00"!==i?Object(D.m)(i,r):null;return a||o?a&&o?l.a.createElement("div",{className:t.dateWrap},l.a.createElement(ce,a),l.a.createElement(u.a,{variant:"body2Bold",classes:{root:t.mx8}
2,component:"span"},"-"),l.a.createElement(ce,o)):l.a.createElement("div",{className:t.dateWrap},l.a.createElement(ce,a)):l.a.createElement("span",null)},ue=n(1511),de=n(1588),pe=n.n(de),he=n(1517),me=["hoverColour","videoUrl","cardType","title","description","desktopImage","mobileImage","aspectRatio","ctaLink","imageCtaUrl","sectionTitle","aspectRatioNeeded","pageName","componentName","carousalType","expenseRange","viewsCount","googlePlaceId","itemUniqueKey","isShowFavorite","isFavoriteItem","showFavoriteIcon","onClickItem","locationTitleTop","isParalax","colorTheme","eventCategories","showLoader","itemData","multiFilteredSelectedItems","selectedFilterCategory","supergraphicColor","isAdCard","isADRelatedEvents","pageSubsection","eventExternalUrl"],fe=["partner_name","category","link_destination"],ge=function(e){var t,n,i,r=e.condition,a=e.wrapper,o=e.children,s=e.props,u=(null===s||void 0===s||null===(t=s.imageCtaUrl)||void 0===t||null===(n=t.value)||void 0===n?void 0:n.href)||(null===s||void 0===s||null===(i=s.imageCtaUrl)||void 0===i?void 0:i.value)||(null===s||void 0===s?void 0:s.imageCtaUrl)||null;return l.a.createElement(c.Fragment,null," ",r?a(o):l.a.createElement(h.a,{href:u,title:s.title&&s.title.value||"",isCustom:!0,className:s.classes.root},o))},be=function(e){var t=e.hoverColour,n=e.videoUrl,d=void 0===n?"":n,f=e.cardType,g=e.title,v=e.description,x=e.desktopImage,O=e.mobileImage,S=e.aspectRatio,A=e.ctaLink,M=e.imageCtaUrl,L=e.sectionTitle,B=e.aspectRatioNeeded,R=void 0!==B&&B,D=e.pageName,q=e.componentName,Z=e.carousalType,H=e.expenseRange,X=e.viewsCount,K=e.googlePlaceId,te=e.itemUniqueKey,ae=e.isShowFavorite,oe=e.isFavoriteItem,ce=void 0!==oe&&oe,de=e.showFavoriteIcon,be=void 0!==de&&de,ve=e.onClickItem,ye=void 0===ve?null:ve,xe=e.locationTitleTop,_e=void 0===xe?"":xe,we=e.isParalax,Oe=void 0===we||we,je=e.colorTheme,Ce=void 0===je?"":je,Ee=e.eventCategories,Te=e.showLoader,ke=void 0!==Te&&Te,Se=e.itemData,Ae=e.multiFilteredSelectedItems,Ie=void 0===Ae?function(){}:Ae,Me=e.selectedFilterCategory,Le=void 0===Me?[]:Me,Be=e.supergraphicColor,Re=e.isAdCard,De=void 0!==Re&&Re,Pe=(e.isADRelatedEvents,e.pageSubsection),ze=void 0===Pe?"":Pe,Fe=e.eventExternalUrl,Ne=Object(s.a)(e,me),Ue=Object(ue.a)("(max-width:".concat(b.c.values.lg,"px)")),Ve=Object(F.a)(),We=d.indexOf(".mp4")>0,qe=Fe&&Fe.trim()||null,Ge=Object(c.useState)(!0),Ze=Object(o.a)(Ge,2),He=(Ze[0],Ze[1]),Xe=Object(c.useState)(!1),Ke=Object(o.a)(Xe,2),Ye=(Ke[0],Ke[1],Ob
2ject(c.useState)(!1)),Je=Object(o.a)(Ye,2),Qe=Je[0],$e=Je[1],et=Object(c.useState)(!1),tt=Object(o.a)(et,2),nt=tt[0],it=tt[1],rt=Object(c.useState)(!1),at=Object(o.a)(rt,2),ot=at[0],st=at[1],ct=Object(c.useState)(!1),lt=Object(o.a)(ct,2),ut=lt[0],dt=lt[1],pt=Object(c.useState)(0),ht=Object(o.a)(pt,2),mt=ht[0],ft=ht[1],gt=Ne.location,bt=Ne.duration,vt=Ne.rating,yt=Ne.highlights,xt=Ne.urlSlug,_t=Ne.eventType,wt=Ne.rating_image_url,Ot=Ne.language,jt=Ne.defaultGooglePlaceId,Ct=Ne.forcedRatio,Et=Ne.googlePlacesAPI,Tt=void 0===Et?"":Et,kt=Ne.highlightWords,St=Ne.videoDesktop,At=void 0===St?"":St,It=Ne.videoMobile,Mt=void 0===It?"":It,Lt=Ne.index,Bt=Ne.activeCardIndex,Rt=Ne.num_reviews;Rt=Object(j.a)(Rt);var Dt=Object(c.useMemo)((function(){var e;return vt&&(null===(e=Object(ie.a)("RatedItem"))||void 0===e?void 0:e.replace("{item}",vt))||Rt&&"".concat(Object(ie.a)("TotalReviews")," ").concat(Rt)||""}),[vt,Rt]),Pt={value:{src:Object($.a)(wt),alt:Dt}},zt=[];yt&&yt.length>0&&yt.forEach((function(e){return zt.push(e.split(/\|/))}));var Ft=I({cardType:f}),Nt=se(),Ut="searchResult"===f,Vt="pillarCarousel"===f,Wt="PillarsCarousel"===q,qt="EventsCarousel"===q,Gt="SmartListSlider"===q,Zt="EventsTabsFilter"===q,Ht="MultiFilteredLayout"===q,Xt=Object(c.useMemo)((function(){return Array.isArray(Le)&&Le.some((function(e){return e.id===Se.id}))}),[Le,Se]),Kt=Object(W.get)(A,"linktype",""),Yt=function(){var e="external"===Kt,t=e?"partner_website_click":"cta_button_click",n=V.a.pageBodyInteraction[t],i=(n.partner_name,n.category,n.link_destination,Object(s.a)(n,fe)),r=e?{link_url:(null===A||void 0===A?void 0:A.href)||""}:{page_subsection:(null===L||void 0===L?void 0:L.value)||"",cta_label:(null===g||void 0===g?void 0:g.value)||""};Object(U.c)(Object(a.a)(Object(a.a)({},i),{},{call_to_action:(null===A||void 0===A?void 0:A.text)||"",UX_component_name:q,page_name_eng:Object(W.get)(Ne,"sitecoreContext.pageTitleEn","")},r))};Object(c.useEffect)((function(){var e=setTimeout((function(){ft(Bt===Lt)}),1e3);return function(){return clearTimeout(e)}}),[Bt]),Object(c.useEffect)((function(){mt&&Ue?(dt(!0),it(!0)):(dt(!1),it(!1))}),[mt]);var Jt=function(){var e="";if(f===Q.P)e=Object(r.a)(A).slice(0,2).join("|");else if(f===Q.w){var t=Object(r.a)(A);_t&&_t.isPaid&&(t&&t.length>0?t[1]=_t.isPaid:t[0]=_t.isPaid),e=t.join("|")}else e=A;return e=e.filter((function(e){return e}))},Qt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";switch(e){case"upperDecoration":return l.a.createElement("svg",{className:"".concat(n," customSVG"),viewBox:"0 0 336 132",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M-3.99614 -82L238.504 -78L335.504 -78C207.004 -20.5 29.0039 97 -3.99612 132L-3.99614 -82Z",fill:t}));case"lowerDecoration":return l.a.createElement("svg",{className:"".concat(n," customSVG"),viewBox:"0 0 451 295",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M0,295c219.9-84.6,310-144.7,452.5-278.3V295L0,295z",fill:t}));case"addIcon":return l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},l.a.createElement("path",{d:"M4 12H20",stroke:"white",strokeWidth:"2",strokeLinecap:"round"}),l.a.createElement("path",{d:"M12 20L12 4",stroke:"white",strokeWidth:"2",strokeLinecap:"round"}));case"checkIcon":return l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},l.a.createElement("path",{d:"M4 12.5L9.5 18L20.5 7",stroke:"black",strokeWidth:"2",strokeLinecap:"round"}));case"removeIcon":return l.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},l.a.createElement("path",{d:"M4 12H20",stroke:"black",strokeWidth:"2",strokeLinecap:"round"}));case"multifilterSuperGraphic":return l.a.createElement("svg",{width:"451",height:"512",viewBox:"0 0 451 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{opacity:"0.7",d:"M843.39 177.304L674.695 -498.148C612.303 -747.542 412.46 -859.518 223 -883.54C93.5499 -899.902 -31.4235 -878.622 -147.062 -831.335L-145.157 -821.783C-67.7154 -824.336 31.6346 -799.368 90.3111 -711.509C107.457 
2-686.446 122.983 -656.183 137.557 -620.717C137.653 -620.528 137.748 -620.244 137.843 -620.055L91.9305 -608.233C-345.095 -492.947 -630 -195.793 -630 140.609C-630 412.606 -428.156 628.52 -160.112 667.674C54.591 699.073 260.53 612.348 384.265 435.21H389.79C417.509 560.71 532.576 650.367 665.646 650.367H1076C997.511 589.745 912.544 471.432 843.39 177.304ZM220.047 383.856C-156.968 383.856 -274.702 -62.821 -133.536 -329.9C-86.8615 -418.233 -11.5153 -515.55 155.751 -572.957C205.759 -429.865 247.957 -215.653 314.063 91.8089L372.168 354.442C321.683 372.601 267.198 383.856 220.047 383.856Z",fill:t}));default:return l.a.createElement(l.a.Fragment,null)}},$t=function(){Ue||(it(!0),dt(!0))},en=function(){Ue||(it(!1),st(!1))},tn=function(e){var t=V.a.pageBodyInteraction.tileClick;"favoriteNavigationItem"===e&&(t=V.a.pageBodyInteraction.favoriteNavTileClick);var n=Object(a.a)(Object(a.a)({},t),{label:f===Q.w?Object(U.a)([D,xt]):Object(U.a)([D,q,L&&L.value?"".concat(L.value,"-").concat(g.value||g):g.value||g]),tileCategory:A?Jt():""});Object(U.c)(n)},nn=function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"openNow";return e?l.a.createElement(ee.a,{setReviewSpace:He,isAlone:i,googlePlacesAPI:Tt,googlePlaceId:e,defaultGooglePlaceId:t,language:n,openNowText:r}):null},rn=function(e){e.autoEscape,e.caseSensitive,e.sanitize;var t=e.searchWords,n=e.textToHighlight,i=[],a=n.toLowerCase();if("zh"===Ot)return t.forEach((function(e){var t=e.toLowerCase();Object(r.a)(a.matchAll(t)).forEach((function(e){i.push({start:e.index,end:e.index+t.length})}))})),i;var o=a.split(/[-\s]/),s=0,c=o.map((function(e){var t=a.indexOf(e,s);return s=t,{word:e,index:t}}));return t.forEach((function(e){var t=e.toLowerCase();if(c.forEach((function(e){if(e.word.startsWith(t)){var n=e.index,r=e.index+t.length;i.push({start:n,end:r})}})),a.startsWith(t)){var n=t.length;i.push({start:0,end:n})}})),i},an=function(e,t){var n=e&&e.split(" ");return n&&n.length>0?l.a.createElement(ne.a,{highlightClassName:"search-highlight",searchWords:n,autoEscape:!0,findChunks:rn,textToHighlight:t}):l.a.createElement(p.Text,{field:{value:t}})},on=function(){var e="Type3WithDescription"===Z;return l.a.createElement(l.a.Fragment,null,be&&l.a.createElement(z.a,{isMfdToast:Object(y.c)(Ve),ariaLabel:g,itemUniqueKey:te,isShowFavorite:ae,componentName:q}),l.a.createElement(ge,{condition:Object(W.isEmpty)(M),props:{title:g,classes:Ft,imageCtaUrl:M},wrapper:function(e){return l.a.createElement("div",{className:Ft.listItemContainer},e)}},l.a.createElement(E.a,{className:"".concat(Ft.cardWrapper," card-wrapper ").concat(e?"type3-description-wrapper":"")},l.a.createElement(E.a,{className:"".concat(Ft.imageWrapper," carousel-picture")},At&&At.value&&(At.value.href||At.value.url)?l.a.createElement("video",{controls:!1,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,className:Object(T.a)(Ft.video,"carousel-item-video")},l.a.createElement("source",{src:At.value.href||At.value.url||Mt.value.href||Mt.value.url,media:"(min-width: 768px)"}),l.a.createElement("source",{src:Mt.value.href||Mt.value.url||At.value.href||At.value.url,media:"(max-width: 767px)"})):l.a.createElement(k.a,{media:{image:x,mobileImage:O,aspectRatio:S,forcedRatio:Ct},alternateAltText:"object"===typeof g&&g?g.value:g,isParalax:Oe})),l.a.createElement(E.a,{pt:{xs:1},pb:{xs:3},p:{lg:3},px:{xs:1},className:Object(T.a)(Ft.cardContent,"".concat("Type1"!==Z&&" common-card"," card-description"))},"Type1"!==Z&&l.a.createElement("div",{className:"contentLeftBar"}),l.a.createElement("div",{className:"card-description-flex"},_e&&!e&&l.a.createElement(u.a,{variant:"body5",className:Object(T.a)(Ft.locationTitleTop,"location-title-top"),component:"span"},_e),g&&l.a.createElement(u.a,{variant:e?"body1Bold22":"h5",component:"h3",className:"card-desc-title"},l.a.createElement(p.Text,{field:(null===g||void 0===g?void 0:g.value)?g:{value:g.value}})),A&&!e&&l.a.createElement("div",{className:"common-card-tag-wrapper"},l.a.createElement(m.a,{text:A,isAuthorable:!0,className:"".concat("Type1"===Z&&"Light"===Ce?"categoryTagWhite":""," common-card-tag")})))),v&&e&&l.a.createElement(u.a,{variant:"body2",className:Object(T.a)(Ft.de
2scriptionAlignment,"description-txt")},v),e&&A.href&&A.text&&l.a.createElement(re.a,{buttonType:"form",type:"submit",hasBorder:!1,size:"large",field:{value:{href:A.href,target:(null===A||void 0===A?void 0:A.target)||""}},onClick:Yt},l.a.createElement(u.a,{variant:"body2Bold",component:"span"},l.a.createElement(p.Text,{field:{value:A.text}}))))))},sn=function(){var e=document.querySelector(".card-description-flex"),t=e&&e.clientWidth||0;return Object(W.get)(x,"value.src","")||(x={value:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAQAAAA3fa6RAAAADklEQVR42mNkAANGCAUAACMAA2w/AMgAAAAASUVORK5CYII=","3x2-card":{large:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAQAAAA3fa6RAAAADklEQVR42mNkAANGCAUAACMAA2w/AMgAAAAASUVORK5CYII="}}}),Object(W.get)(O,"value.src","")||(O={value:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAQAAAA3fa6RAAAADklEQVR42mNkAANGCAUAACMAA2w/AMgAAAAASUVORK5CYII=","3x2-card":{large:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAQAAAA3fa6RAAAADklEQVR42mNkAANGCAUAACMAA2w/AMgAAAAASUVORK5CYII=",small:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAQAAAA3fa6RAAAADklEQVR42mNkAANGCAUAACMAA2w/AMgAAAAASUVORK5CYII="}}}),ke?l.a.createElement(l.a.Fragment,null,l.a.createElement(E.a,{className:Object(T.a)(Ft.cardWrapper,"listing-card","loaderAlignment")},l.a.createElement(E.a,{className:"loaderCard"},l.a.createElement(he.a,{value:15,color:"inherit"})))):l.a.createElement(l.a.Fragment,null,be&&l.a.createElement(z.a,{isMfdToast:Object(y.c)(Ve),ariaLabel:g,itemUniqueKey:te,isShowFavorite:ae,componentName:q,eventName:null===g||void 0===g?void 0:g.value,COMPONENT_NAME:q,pageTitleEn:Object(W.get)(Ne,"sitecoreContext.pageTitleEn","")}),l.a.createElement(E.a,{className:Ft.root},l.a.createElement(E.a,{className:Object(T.a)(Ft.cardWrapper,"listing-card",Ut&&"horizontal-card")},l.a.createElement(E.a,{className:Object(T.a)(Ft.imageWrapper,Ut&&"img-wrapper","fallback-img","carousel-picture")},l.a.createElement(k.a,{media:{image:x,mobileImage:O,renditionNeeded:R,aspectRatio:S,forcedRatio:Ct},alternateAltText:"object"===typeof g&&g?g.value:g}),X&&l.a.createElement("div",{className:Ft.viewsCounterTag},l.a.createElement(C,{value:X})),H&&l.a.createElement("div",{className:Ft.priceRangeTag},l.a.createElement(w,{value:H}))),l.a.createElement(E.a,{pt:{xs:1},pb:{xs:3},p:{lg:3},className:Object(T.a)(Ft.cardContent,"card-description")},!Ut&&l.a.createElement("div",{className:"contentLeftBar"}),l.a.createElement("div",{className:"card-description-flex"},l.a.createElement("div",{className:"card-description-wrapper"},l.a.createElement(h.a,{href:qe||M,title:g||"",isCustom:!0,className:"customLink",target:qe?"_blank":""},g&&l.a.createElement(u.a,{variant:"cardTitle1",component:"h3"},an(kt,g),vt&&l.a.createElement(J.a,{rating:"".concat(vt)}))),v&&l.a.createElement(u.a,{variant:"body2",component:"p"},an(kt,v)),Pt.value.src?l.a.createElement(E.a,{className:Ft.overViewSection},l.a.createElement("div",{className:"ratign-sec"},Pt.value.src&&l.a.createElement(E.a,{component:"div",className:Ft.ratingImageWithLogo},l.a.createElement(k.a,{className:"".concat(Ft.ratingTripAdvisor," rating-img"),media:{image:Pt,renditionNeeded:!1,fallbackBackgroundNeeded:!1,forcedRatio:Ct},alternateAltText:Pt&&Pt.value&&Pt.value.rating,isParalax:!1})),Rt&&""!==Rt?l.a.createElement(u.a,{variant:"labelRegular",component:"span",className:Ft.totalReviews},l.a.createElement(p.Text,{field:{value:"".concat(Rt," ").concat(Object(ie.a)("Reviews"))}})):""),l.a.createElement("div",{className:"open-close-sec"},nn(K,jt,Ot,!1))):l.a.createElement(l.a.Fragment,null,nn(K,jt,Ot,!0)),bt&&l.a.createElement(u.a,{variant:"body3",component:"div",classes:{root:Ft.duration}},l.a.createElement(E.a,{component:"span",display:"inline-flex",className:"icon"}
2,l.a.createElement(_.a,{name:"AccessTimeIcon"})),l.a.createElement(E.a,{component:"span",display:"inline-flex"},bt))),l.a.createElement("div",{className:gt?"bot-area":""},gt&&l.a.createElement(u.a,{variant:"body3",component:"div",classes:{root:Object(T.a)(Ft.location,"location")}},l.a.createElement(E.a,{component:"span",display:"inline-flex"},gt)),l.a.createElement(N.a,{ctaLink:A,itemUniqueKey:te,title:g,boxWidth:t})))))))},cn=function(e){!ot&&e.played>1e-4&&st(!0)},ln={onMouseEnter:function(){$e(!0)},onMouseLeave:function(){$e(!1)}},un=(Object(a.a)(Object(a.a)({},Wt&&{condition:Object(W.isEmpty)(M)}),!Wt&&{condition:!0}),Object(c.useMemo)((function(){return Object(a.a)({},Ht&&{key:Math.random()})}),[g])),dn=function(){var e,n={value:v};return l.a.createElement(l.a.Fragment,null,l.a.createElement(ge,{condition:Object(W.isEmpty)(null===M||void 0===M||null===(e=M.value)||void 0===e?void 0:e.href),props:{title:g,classes:Ft,imageCtaUrl:M},wrapper:function(e){return l.a.createElement("div",{className:Ft.listItemContainer},e)}},l.a.createElement(E.a,{className:"".concat(Ft.cardWrapper," card-wrapper type3-description-wrapper")},l.a.createElement(E.a,{onClick:function(){Ie(Se)},className:"pillarImageWrapper ".concat(Ht?"multiFilterWrapper":""),onMouseEnter:$t,onMouseLeave:en},Ht&&l.a.createElement(l.a.Fragment,null,l.a.createElement(re.a,Object.assign({iconOnly:!0,hasBorder:!1,size:"large",hideEndIcon:!0,className:"multi-filter-btn-hovered ".concat(Ue?"mobile-multi-filter-btn":""," ").concat(Ue&&Xt?"mobile-multi-filter-btn-selected":"","  ").concat(!Ue&&Xt&&Qe?"multi-filter-btn-hovered-selected":!Ue&&Xt?"multi-filter-btn-selected":"")},ln),l.a.createElement(l.a.Fragment,null,l.a.createElement(E.a,{className:"filterBtnAddCategory"},Qt("addIcon","",""),l.a.createElement("span",{className:"filterBtnText"},Object(ie.a)("multifilter_select_text")," ")),l.a.createElement(E.a,{className:"filterBtnRemoveCategory"},Qt("removeIcon","",""),l.a.createElement("span",{className:"filterBtnText"},Object(ie.a)("multifilter_deselect_text"))),l.a.createElement(E.a,{className:"filterBtnCheckedCategory"},Qt("checkIcon","","")))),l.a.createElement(E.a,{className:"multi-filtered-super-img ".concat(!Ue&&Xt?"category-selected-super-image":""," ").concat(Xt&&Qe?"category-selected-super-hover-image":"")},Qt("multifilterSuperGraphic",Be,""))),Wt&&Qt("upperDecoration",null===t||void 0===t?void 0:t.value,"animateBox1"),ut&&We&&l.a.createElement(E.a,{className:"pillarCarouselVideo",style:{opacity:nt?1:0}},l.a.createElement(pe.a,{playing:nt,url:d,loop:!0,muted:!0,controls:!1,width:"100%",height:"100%",onProgress:cn,playsinline:!0})),l.a.createElement(l.a.Fragment,null,l.a.createElement(E.a,{className:"pillarContent ".concat(Ht?"multifilterContent":"")},g&&l.a.createElement(u.a,{variant:"h5Bold",component:"h2",className:"pillarTitle"},l.a.createElement(p.Text,{field:g})),n&&!Ht&&l.a.createElement(u.a,{variant:"body1a",component:"h2",className:"pillarDescription"},l.a.createElement(p.Text,{field:n}))),l.a.createElement(k.a,Object.assign({},un,{media:{image:x,mobileImage:O,aspectRatio:P.a["3x4-card"],forcedRatio:Ct},alternateAltText:"object"===typeof g&&g?g.value:g,isParalax:!1}))),Wt&&Qt("lowerDecoration",null===t||void 0===t?void 0:t.value,"animateBox")))))};return l.a.createElement(l.a.Fragment,null,!ce&&l.a.createElement("div",{onClick:function(e){e.currentTarget.contains(e.target)&&tn()},className:"".concat(ce?"":Ft.rtlClass)},function(){if(qt||Gt||Zt){var e=Object(r.a)(Ee).slice(0,1).join(",");return l.a.createElement(Y,{title:g,desktopImage:x,mobileImage:O,ctaLink:A,isAdCard:De,imageCtaUrl:M,hasExternalLink:qe,componentName:q,cardType:f,other:Ne,itemUniqueKey:te,isShowFavorite:ae,showFavoriteIcon:be,eventCategories:De?Ee:e,pageSubsection:ze,listingCategory:e})}return f===Q.w?l.a.createElement(G,{title:g,desktopImage:x,mobileImage:O,ctaLink:A,imageCtaUrl:M,hasExternalLink:qe,componentName:q,cardType:f,other:Ne,itemUniqueKey:te,isShowFavorite:ae,forcedRatio:Ct,showFavoriteIcon:be,pageSubsection:ze}):f===Q.P||Ut?sn():Vt?dn():on()}()),ce&&l.a.createElement(l.a.Fragment,null,function(e){var t="",n="";return"ExploreMap"!==q&&(e===Q.w?(t="".concat(Ne.openTime," - ").concat(Ne.closeTime),n="".concat(Ne.locationTitle," - ").concat(Ne.region)):n=gt),l.a.createElement("li",{className:Object(T.a)(Nt.listItem,Object(i.a)({},Nt.width95pc,["ExploreMap",Q.x].includes(q))),onClick:function(e){return tn("favoriteNavigationItem")}},l.a.createElement(ge,{condition:!!ye,props:{title:g,classes:Ft,imageCtaUrl:M},wrapper:function(e){return l.a.createElement("div",{className:"listItemContainer",onClick:function(){return ye(te)}},e)}},l.a.createElement(l.a.Fragment,null,l.a.createElement(E.a,{width:"95px",height:"95px",className:Ft.posRelative},l.a.createElement(k.a,{media:{image:x,mobileImage:O,disableLazyLoad:!0,aspectRatio:P.a["1x1"],forcedRatio:"1x1"},width:95,isParalax:!1})),l.a.createElement("div",{className:Nt.listItemTextWrap}
2,e===Q.w&&l.a.createElement(le,{startDate:Ne.startDate,endDate:Ne.endDate,language:Ot}),l.a.createElement(u.a,{component:"span",variant:"body4Bold",classes:e!==Q.w?{root:Nt.pr12}:{}},g),n&&e!==Q.w&&l.a.createElement(u.a,{variant:"body5",classes:{root:Nt.ltGray},component:"span"},n),bt&&l.a.createElement(u.a,{variant:"body3",component:"div",classes:{root:Ft.duration}},l.a.createElement(E.a,{component:"span",display:"inline-flex",className:"icon"},l.a.createElement(_.a,{name:"AccessTimeIcon"})),l.a.createElement(E.a,{component:"span",display:"inline-flex"},bt)),t&&e!==Q.w&&l.a.createElement(u.a,{variant:"labelBlack",classes:{root:Nt.mt4},component:"span"},t),l.a.createElement(E.a,{className:Nt.overViewSection},l.a.createElement(l.a.Fragment,null,Pt&&Pt.value.src&&l.a.createElement("div",{className:"rating-sec"},Pt.value.src&&l.a.createElement(E.a,{component:"div",className:Nt.ratingImageWithLogo},l.a.createElement(k.a,{className:"".concat(Nt.ratingTripAdvisor," rating-img"),media:{image:Pt,renditionNeeded:!1,fallbackBackgroundNeeded:!1,forcedRatio:!0},alternateAltText:Pt&&Pt.value&&Pt.value.rating,isParalax:!1})),Rt&&""!==Rt&&l.a.createElement(u.a,{variant:"labelRegular",component:"span",className:Nt.totalReviews},l.a.createElement(p.Text,{field:{value:"".concat(Rt," ").concat(Object(ie.a)("Reviews"))}})))),K&&l.a.createElement("div",{className:"open-close-sec"},nn(K,jt,Ot,!1,"Open"))),A&&A.length>0&&l.a.createElement("div",{className:Object(T.a)(Object(i.a)({},Nt.tagsWrapper,e===Q.w),Ft.customWrapper)},A.slice(0,2).map((function(t){var n;return l.a.createElement(m.a,{text:t,key:t,from:"favoritesNav",className:Object(T.a)(Nt.categoryTag,(n={},Object(i.a)(n,Nt.eventTag,e===Q.w),Object(i.a)(n,Nt.listTag,e===Q.P),n),"categoryAlign")})})))),q!==Q.x&&l.a.createElement(z.a,{isMfdToast:Object(y.c)(Ve),ariaLabel:g,itemUniqueKey:te,isShowFavorite:ae,componentName:ye?"mapComponent":"favoriteNav"}))))}(f)))};be.defaultProps={cardType:!1,isFavoriteItem:!1,title:"",description:"",desktopImage:{},mobileImage:{},ctaLink:"",imageCtaUrl:"",sectionTitle:{value:""},aspectRatio:P.a["3x2-card"]};t.a=l.a.memo(Object(p.withSitecoreContext)()(Object(d.b)()(be)))},1590:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(e,t){var n=[];return(t=t&&t.split(","))&&t.length>0&&t.forEach((function(t){e[t]&&e[t].length>0&&e[t][0]&&n.push(e[t][0])})),n}},1595:function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=n(2),a=(i=r)&&i.__esModule?i:{default:i};t.default=a.default,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function r(e){return e&&e.__esModule?e:{default:e}}t.default=l;var a=n(3),o=r(n(4)),s=n(14),c=r(n(15));function l(e){var t=e.activeClassName,n=void 0===t?"":t,r=e.activeIndex,o=void 0===r?-1:r,l=e.activeStyle,u=e.autoEscape,d=e.caseSensitive,p=void 0!==d&&d,h=e.className,m=e.findChunks,f=e.highlightClassName,g=void 0===f?"":f,b=e.highlightStyle,v=void 0===b?{}:b,y=e.highlightTag,x=void 0===y?"mark":y,_=e.sanitize,w=e.searchWords,O=e.textToHighlight,j=e.unhighlightClassName,C=void 0===j?"":j,E=e.unhighlightStyle,T=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightClassName","unhighlightStyle"]),k=(0,a.findAll)({autoEscape:u,caseSensitive:p,findChunks:m,sanitize:_,searchWords:w,textToHighlight:O}),S=x,A=-1,I="",M=void 0,L=(0,c.default)((function(e){var t={};for(var n in e)t[n.toLowerCase()]=e[n];return t}));return(0,s.createElement)("span",i({className:h},T,{children:k.map((function(e,t){var i=O.substr(e.start,e.end-e.start);if(e.highlight){A++;var r=void 0;r="object"===typeof g?p?g[i]:(g=L(g))[i.toLowerCase()]:g;var a=A===+o;I=r+" "+(a?n:""),M=!0===a&&null!=l?Object.assign({},v,l):v;var c={children:i,className:I,key:t,style:M};return"string"!==typeof S&&(c.highlightIndex=A),(0,s.createElement)(S,c)}return(0,s.createElement)("span",{children:i,className:C,key:t,style:E})}
2))}))}l.propTypes={activeClassName:o.default.string,activeIndex:o.default.number,activeStyle:o.default.object,autoEscape:o.default.bool,className:o.default.string,findChunks:o.default.func,highlightClassName:o.default.oneOfType([o.default.object,o.default.string]),highlightStyle:o.default.object,highlightTag:o.default.oneOfType([o.default.node,o.default.func,o.default.string]),sanitize:o.default.func,searchWords:o.default.arrayOf(o.default.oneOfType([o.default.string,o.default.instanceOf(RegExp)])).isRequired,textToHighlight:o.default.string.isRequired,unhighlightClassName:o.default.string,unhighlightStyle:o.default.object},e.exports=t.default},function(e,t){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return i.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return i.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return i.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return i.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,a=e.caseSensitive,o=void 0!==a&&a,s=e.findChunks,c=void 0===s?i:s,l=e.sanitize,u=e.searchWords,d=e.textToHighlight;return r({chunksToHighlight:n({chunks:c({autoEscape:t,caseSensitive:o,sanitize:l,searchWords:u,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var i=Math.max(n.end,t.end);e.push({start:n.start,end:i})}else e.push(n,t);return e}),[])},i=function(e){var t=e.autoEscape,n=e.caseSensitive,i=e.sanitize,r=void 0===i?a:i,o=e.searchWords,s=e.textToHighlight;return s=r(s),o.filter((function(e){return e})).reduce((function(e,i){i=r(i),t&&(i=i.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var a=new RegExp(i,n?"g":"gi"),o=void 0;o=a.exec(s);){var c=o.index,l=a.lastIndex;l>c&&e.push({start:c,end:l}),o.index==a.lastIndex&&a.lastIndex++}return e}),[])};t.findChunks=i;var r=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,i=[],r=function(e,t,n){t-e>0&&i.push({start:e,end:t,highlight:n})};if(0===t.length)r(0,n,!1);else{var a=0;t.forEach((function(e){r(a,e.start,!1),r(e.start,e.end,!0),a=e.end})),r(a,n,!1)}return i};function a(e){return e}}])},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var i="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(6)((function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}),!0)}else e.exports=n(13)()}).call(t,n(5))},function(e,t){var n,i,r=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"===typeof clearTimeout?clearTimeout:o}catch(e){i=o}}();var c,l=[],u=!1,d=-1;function p(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&h())}function h(){if(!u){var e=s(p);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new m(e,t)),1!==l.length||u||s(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var i=n(7),r=n(8),a=n(9),o=n(10),s=n(11),c=n(12);e.exports=function(e,n){var l="function"===typeof Symbol&&Symbol.iterator;var u={array:m("array"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:h(i.thatReturnsNull),arrayOf:function(e){return h((function(t,n,i,r,a){if("function"!==typeof e)return new p("Property `"+a+"` of component `"+i+"` has invali
2d PropType notation inside arrayOf.");var o=t[n];if(!Array.isArray(o))return new p("Invalid "+r+" `"+a+"` of type `"+g(o)+"` supplied to `"+i+"`, expected an array.");for(var c=0;c<o.length;c++){var l=e(o,c,i,r,a+"["+c+"]",s);if(l instanceof Error)return l}return null}))},element:h((function(t,n,i,r,a){var o=t[n];return e(o)?null:new p("Invalid "+r+" `"+a+"` of type `"+g(o)+"` supplied to `"+i+"`, expected a single ReactElement.")})),instanceOf:function(e){return h((function(t,n,i,r,a){if(!(t[n]instanceof e)){var o=e.name||"<<anonymous>>";return new p("Invalid "+r+" `"+a+"` of type `"+function(e){if(!e.constructor||!e.constructor.name)return"<<anonymous>>";return e.constructor.name}(t[n])+"` supplied to `"+i+"`, expected instance of `"+o+"`.")}return null}))},node:h((function(e,t,n,i,r){return f(e[t])?null:new p("Invalid "+i+" `"+r+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return h((function(t,n,i,r,a){if("function"!==typeof e)return new p("Property `"+a+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var o=t[n],c=g(o);if("object"!==c)return new p("Invalid "+r+" `"+a+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var l in o)if(o.hasOwnProperty(l)){var u=e(o,l,i,r,a+"."+l,s);if(u instanceof Error)return u}return null}))},oneOf:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOf, expected an instance of array."),i.thatReturnsNull;return h((function(t,n,i,r,a){for(var o=t[n],s=0;s<e.length;s++)if(d(o,e[s]))return null;return new p("Invalid "+r+" `"+a+"` of value `"+o+"` supplied to `"+i+"`, expected one of "+JSON.stringify(e)+".")}))},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),i.thatReturnsNull;for(var n=0;n<e.length;n++){var r=e[n];if("function"!==typeof r)return a(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",v(r),n),i.thatReturnsNull}return h((function(t,n,i,r,a){for(var o=0;o<e.length;o++){if(null==(0,e[o])(t,n,i,r,a,s))return null}return new p("Invalid "+r+" `"+a+"` supplied to `"+i+"`.")}))},shape:function(e){return h((function(t,n,i,r,a){var o=t[n],c=g(o);if("object"!==c)return new p("Invalid "+r+" `"+a+"` of type `"+c+"` supplied to `"+i+"`, expected `object`.");for(var l in e){var u=e[l];if(u){var d=u(o,l,i,r,a+"."+l,s);if(d)return d}}return null}))},exact:function(e){return h((function(t,n,i,r,a){var c=t[n],l=g(c);if("object"!==l)return new p("Invalid "+r+" `"+a+"` of type `"+l+"` supplied to `"+i+"`, expected `object`.");var u=o({},t[n],e);for(var d in u){var h=e[d];if(!h)return new p("Invalid "+r+" `"+a+"` key `"+d+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(t[n],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null,"  "));var m=h(c,d,i,r,a+"."+d,s);if(m)return m}return null}))}};function d(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function p(e){this.message=e,this.stack=""}function h(e){if("production"!==t.env.NODE_ENV)var i={},o=0;function c(c,l,u,d,h,m,f){if(d=d||"<<anonymous>>",m=m||u,f!==s)if(n)r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!==typeof console){var g=d+":"+u;!i[g]&&o<3&&(a(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",m,d),i[g]=!0,o++)}return null==l[u]?c?null===l[u]?new p("The "+h+" `"+m+"` is marked as required in `"+d+"`, but its value is `null`."):new p("The "+h+" `"+m+"` is marked as required in `"+d+"`, but its value is `undefined`."):null:e(l,u,d,h,m)}var l=c.bind(null,!1);return l.isRequired=c.bind(null,!0),l}function m(e){return h((function(t,n,i,r,a,o){var s=t[n];return g(s)!==e?new p("Invalid "+r+" `"+a+"` of type `"+b(s)+"` supplied to `"+i+"`, expected `"+e+"`."):null}))}function f(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(f);if(null===t||e(t))return!0;var n=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"===typeof t)return t}(t);if(!n)return!1;var i,r=n.call(t);if(n!==t.entries){for(;!(i=r.next()).done;)if(!f(i.value))return!1}else for(;!(i=r.next()).done;){var a=i.value;if(a&&!f(a[1]))return!1}return!0;default:return!1}}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if("undefined"===typeof e||null===e)return""+e;var t=g(e);
2if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,u.checkPropTypes=c,u.PropTypes=u,u}}).call(t,n(5))},function(e,t){"use strict";function n(e){return function(){return e}}var i=function(){};i.thatReturns=n,i.thatReturnsFalse=n(!1),i.thatReturnsTrue=n(!0),i.thatReturnsNull=n(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){(function(t){"use strict";var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,i,r,a,o,s,c){if(n(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[i,r,a,o,s,c],d=0;(l=new Error(t.replace(/%s/g,(function(){return u[d++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}}).call(t,n(5))},function(e,t,n){(function(t){"use strict";var i=n(7);if("production"!==t.env.NODE_ENV){var r=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=0,a="Warning: "+e.replace(/%s/g,(function(){return n[r++]}));"undefined"!==typeof console&&console.error(a);try{throw new Error(a)}catch(o){}};i=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,i=Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];r.apply(void 0,[t].concat(i))}}}e.exports=i}).call(t,n(5))},function(e,t){"use strict";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(r){return!1}}()?Object.assign:function(e,t){for(var o,s,c=a(e),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))i.call(o,u)&&(c[u]=o[u]);if(n){s=n(o);for(var d=0;d<s.length;d++)r.call(o,s[d])&&(c[s[d]]=o[s[d]])}}return c}},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){"use strict";if("production"!==t.env.NODE_ENV)var i=n(8),r=n(9),a=n(11),o={};e.exports=function(e,n,s,c,l){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var d;try{i("function"===typeof e[u],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",s,u,typeof e[u]),d=e[u](n,u,c,s,null,a)}catch(h){d=h}if(r(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",s,u,typeof d),d instanceof Error&&!(d.message in o)){o[d.message]=!0;var p=l?l():"";r(!1,"Failed %s type: %s%s",s,d.message,null!=p?p:"")}}}}).call(t,n(5))},function(e,t,n){"use strict";var i=n(7),r=n(8),a=n(11);e.exports=function(){function e(e,t,n,i,o,s){s!==a&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;
2var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=i,n.PropTypes=n,n}},function(e,t){e.exports=n(0)},function(e,t){"use strict";var n=function(e,t){return e===t};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,i=void 0,r=[],a=void 0,o=!1,s=function(e,n){return t(e,r[n])},c=function(){for(var t=arguments.length,n=Array(t),c=0;c<t;c++)n[c]=arguments[c];return o&&i===this&&n.length===r.length&&n.every(s)?a:(o=!0,i=this,r=n,a=e.apply(this,n))};return c}}])},1601:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t="";if(e&&e.length>0){var n=[[1,200],[201,500],[501]],i=["$","$$","$$$"],r=[];e.forEach((function(e){var t=e.split(/[\ \-]/),n=[];t.forEach((function(e){var t=parseInt(e);t&&(e.indexOf("+")>-1&&t++,n.push(t))})),r.push(Math.max.apply(Math,n))}));var a=Math.max.apply(Math,r);n.forEach((function(e,n){e[1]?a>=e[0]&&a<=e[1]&&(t=i[n]):a>=e[0]&&(t=i[n])}))}return t}},1604:function(e,t,n){"use strict";n.d(t,"e",(function(){return I})),n.d(t,"b",(function(){return D})),n.d(t,"c",(function(){return z})),n.d(t,"d",(function(){return q})),n.d(t,"a",(function(){return Z})),n.d(t,"f",(function(){return s}));var i=n(3),r=n(9),a=n(0),o=(n(2),a.createContext(null));function s(){var e,t=null===(e=Object(a.useContext)(o))||void 0===e?void 0:e.maps,n=Object(a.useContext)(k);return Object(a.useMemo)((function(){return Object(i.a)(Object(i.a)({},t),{},{current:null===n||void 0===n?void 0:n.map})}),[t,n])}var c=n(131),l=n(114),u=n(115);function d(e){var t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function p(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function h(e,t){var n=t.viewState||t,i=!1;if("longitude"in n&&"latitude"in n){var r=e.center;e.center=new r.constructor(n.longitude,n.latitude),i=i||r!==e.center}if("zoom"in n){var a=e.zoom;e.zoom=n.zoom,i=i||a!==e.zoom}if("bearing"in n){var o=e.bearing;e.bearing=n.bearing,i=i||o!==e.bearing}if("pitch"in n){var s=e.pitch;e.pitch=n.pitch,i=i||s!==e.pitch}return n.padding&&!e.isPaddingEqual(n.padding)&&(i=!0,e.padding=n.padding),i}var m=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function f(e){if(!e)return null;if("string"===typeof e)return e;if("toJS"in e&&(e=e.toJS()),!e.layers)return e;var t,n={},r=Object(c.a)(e.layers);try{for(r.s();!(t=r.n()).done;){var a=t.value;n[a.id]=a}}catch(s){r.e(s)}finally{r.f()}var o=e.layers.map((function(e){var t=n[e.ref],r=null;if("interactive"in e&&delete(r=Object(i.a)({},e)).interactive,t){delete(r=r||Object(i.a)({},e)).ref;var a,o=Object(c.a)(m);try{for(o.s();!(a=o.n()).done;){var l=a.value;l in t&&(r[l]=t[l])}}catch(s){o.e(s)}finally{o.f()}}return r||e}));return Object(i.a)(Object(i.a)({},e),{},{layers:o})}function g(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!g(e[n],t[n]))return!1;return!0}if(Array.isArray(t))return!1;if("object"===typeof e&&"object"===typeof t){var i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(var a=0,o=i;a<o.length;a++){var s=o[a];if(!t.hasOwnProperty(s))return!1;if(!g(e[s],t[s]))return!1}return!0}return!1}var b={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},v={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},y={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",
2styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},x=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],_=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"],w=function(){function e(t,n,i){var r=this;Object(l.a)(this,e),this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=function(e){var t=r.props[y[e.type]];t&&t(e)},this._onPointerEvent=function(e){"mousemove"!==e.type&&"mouseout"!==e.type||r._updateHover(e);var t=r.props[b[e.type]];if(t){if(r.props.interactiveLayerIds&&"mouseover"!==e.type&&"mouseout"!==e.type){var n=r._hoveredFeatures||r._map.queryRenderedFeatures(e.point,{layers:r.props.interactiveLayerIds});if(!n.length)return;e.features=n}t(e),delete e.features}},this._onCameraEvent=function(e){if(!r._internalUpdate){var t=r.props[v[e.type]];t&&t(e)}e.type in r._deferredEvents&&(r._deferredEvents[e.type]=!1)},this._MapClass=t,this.props=n,this._initialize(i)}return Object(u.a)(e,[{key:"map",get:function(){return this._map}},{key:"transform",get:function(){return this._renderTransform}},{key:"setProps",value:function(e){var t=this.props;this.props=e;var n=this._updateSettings(e,t);n&&(this._renderTransform=d(this._map.transform));var i=this._updateSize(e),r=this._updateViewState(e,!0);this._updateStyle(e,t),this._updateStyleComponents(e,t),this._updateHandlers(e,t),(n||i||r&&!this._map.isMoving())&&this.redraw()}},{key:"_initialize",value:function(e){var t=this,n=this.props,r=Object(i.a)(Object(i.a)(Object(i.a)({},n),n.initialViewState),{},{accessToken:n.mapboxAccessToken||O()||null,container:e,style:f(n.mapStyle)}),a=r.initialViewState||r.viewState||r;if(Object.assign(r,{center:[a.longitude||0,a.latitude||0],zoom:a.zoom||0,pitch:a.pitch||0,bearing:a.bearing||0}),n.gl){var o=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=function(){return HTMLCanvasElement.prototype.getContext=o,n.gl}}var s=new this._MapClass(r);a.padding&&s.setPadding(a.padding),n.cursor&&(s.getCanvas().style.cursor=n.cursor),this._renderTransform=d(s.transform);var c=s._render;s._render=function(e){t._inRender=!0,c.call(s,e),t._inRender=!1};var l=s._renderTaskQueue.run;s._renderTaskQueue.run=function(e){l.call(s._renderTaskQueue,e),t._onBeforeRepaint()},s.on("render",(function(){return t._onAfterRepaint()}));var u=s.fire;for(var p in s.fire=this._fireEvent.bind(this,u),s.on("resize",(function(){t._renderTransform.resize(s.transform.width,s.transform.height)})),s.on("styledata",(function(){return t._updateStyleComponents(t.props,{})})),s.on("sourcedata",(function(){return t._updateStyleComponents(t.props,{})})),b)s.on(p,this._onPointerEvent);for(var h in v)s.on(h,this._onCameraEvent);for(var m in y)s.on(m,this._onEvent);this._map=s}},{key:"recycle",value:function(){e.savedMaps.push(this)}},{key:"destroy",value:function(){this._map.remove()}},{key:"redraw",value:function(){var e=this._map;!this._inRender&&e.style&&(e._frame&&(e._frame.cancel(),e._frame=null),e._render())}},{key:"_updateSize",value:function(e){var t=e.viewState;if(t){var n=this._map;if(t.width!==n.transform.width||t.height!==n.transform.height)return n.resize(),!0}return!1}},{key:"_updateViewState",value:function(e,t){if(this._internalUpdate)return!1;var n=this._map,r=this._renderTransform,a=r.zoom,o=r.pitch,s=r.bearing,c=h(r,Object(i.a)(Object(i.a)({},p(n.transform)),e));if(c&&t){var l=this._deferredEvents;l.move=!0,l.zoom||(l.zoom=a!==r.zoom),l.rotate||(l.rotate=s!==r.bearing),l.pitch||(l.pitch=o!==r.pitch)}return n.isMoving()||h(n.transform,e),c}},{key:"_updateSettings",value:function(e,t){var n,i=this._map,r=!1,a=Object(c.a)(x);try{for(a.s();!(n=a.n()).done;){var o=n.value;o in e&&!g(e[o],t[o])&&(r=!0,i["set".concat(o[0].toUpperCase()).concat(o.slice(1))](e[o]))}}catch(s){a.e(s)}finally{a.f()}return r}},{key:"_updateStyle",value:function(e,t){if(e.cursor!==t.cursor&&(this._map.getCanvas().style.cursor=e.cursor),e.mapStyle!==t.mapStyle){var n={diff:e.styleDiffing};return"localIdeographFontFamily"in e&&(n.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(f(e.mapStyle),n),!0}return!1}},{key:"_updateStyleComponents",value:function(e,t){var n=this._map,i=!1;return n.style.loaded()&&("light"in e&&!g(e.light,t.light)&&(i=!0,n.setLight(e.light)),"fog"in e&&!g(e.fog,t.fog)&&(i=!0,n.setFog(e.fog)),"terrain"in e&&!g(e.terrain,t.terrain)&&(e.terrain&&!n.getSource(e.terrain.source)||(i=!0,n.setTerrain(e.terrain)))),i}},{key:"_updateHandlers",value:function(e,t){var n,i=this._map,r=!1,a=Object(c.a)(_);try{for(a.s();!(n=a.n()).done;){var o=n.value,s=e[o];g(s,t[o])||(r=!0,s?i[o].enable(s):i[o].disable())}}catch(l){a.e(l)}finally{a.f()}return r}},{key:"_updateHover",value:function(e){var t,n=this.props;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){var i,r=e.type,a=(null===(t=this._hoveredFeatures)||void 0===t?void 0:t.length)>0;if("mousemove"===r)try{i=this._map.queryRenderedFeatures(e.point,{layers:n.interactiveLayerIds})}catch(s){i=[]}else i=[];var o=i.length>0;!o&&a&&(e.type="mouseleave",this._onPointerEvent(e)),this._hoveredFeatures=i,o&&!a&&(e.type="mouseenter",this._onPointerEvent(e)),e.type=r}else this._hoveredFeatures=null}},{key:"_fireEvent",value:function(e,t,n){var i=this._map,r=i.transform,a="string"===typeof t?t:t.type;return"move"===a&&this._updateViewState(this.props,!1),a in v&&("object"===typeof t&&(t.viewState=p(r)),this._map.isMoving())?(i.transform=this._renderTransform,e.call(i,t,n),i.transform=r,i):(e.call(i,t,n),i)}},{key:"_onBeforeRepaint",value:function(){var e=this,t=this._map;for(var n in this._internalUpdate=!0,this._deferredEvents)this._deferredEvents[n]&&t.fire(n);this._internalUpdate=!1;var i=this._map.transform;this._map.transform=this._renderTransform,this._map.painter.transform=this._renderTransform,this._onAfterRepaint=function(){(i.elevation=e._renderTransform.elevation)&&i.updateElevation(!1),e._map.transform=i}}}],[{key:"reuse",value:function(t,n){var r=e.savedMaps.pop();if(!r)return null;var a=r.map,o=a.getContainer();for(n.className=o.className;o.childNodes.length>0;)n.appendChild(o.childNodes[0]);return a._container=n,t.initialViewState&&r._updateViewState(t.initialViewState,!1),a.resize(),r.setProps(Object(i.a)(Object(i.a)({},t),{},{styleDiffing:!1})),a.isStyleLoaded()?a.fire("load"):a.once("styledata",(function(){return a.fire("load")})),r}}]),e}();function O(){var e=null;if("undefined"!==typeof location){var t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||Object({NODE_ENV:"production",PUBLIC_URL:"/dist/vad",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).MapboxAccessToken}catch(n){}try{e=e||Object({NODE_ENV:"production",PUBLIC_URL:"/dist/vad",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_MAPBOX_ACCESS_TOKEN}catch(i){}return e}w.savedMaps=[];
2var j=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function C(e,t){if(!e)return null;var n,i=e.map,r={getMap:function(){return i},getCenter:function(){return e.transform.center},getZoom:function(){return e.transform.zoom},getBearing:function(){return e.transform.bearing},getPitch:function(){return e.transform.pitch},getPadding:function(){return e.transform.padding},getBounds:function(){return e.transform.getBounds()},project:function(n){return e.transform.locationPoint(t.LngLat.convert(n))},unproject:function(n){return e.transform.pointLocation(t.Point.convert(n))}},a=Object(c.a)(function(e){var t=new Set,n=e;for(;n;){var i,r=Object(c.a)(Object.getOwnPropertyNames(n));try{for(r.s();!(i=r.n()).done;){var a=i.value;"_"!==a[0]&&"function"===typeof e[a]&&"fire"!==a&&"setEventedParent"!==a&&t.add(a)}}catch(o){r.e(o)}finally{r.f()}n=Object.getPrototypeOf(n)}return Array.from(t)}(i));try{for(a.s();!(n=a.n()).done;){var o=n.value;o in r||j.includes(o)||(r[o]=i[o].bind(i))}}catch(s){a.e(s)}finally{a.f()}return r}var E="undefined"!==typeof document?a.useLayoutEffect:a.useEffect,T=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];var k=a.createContext(null),S={minZoom:0,maxZoom:22,minPitch:0,maxPitch:60,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,mapStyle:{version:8,sources:{},layers:[]},styleDiffing:!0,projection:"mercator",renderWorldCopies:!0,onError:function(e){return console.error(e.error)},RTLTextPlugin:"https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"},A=Object(a.forwardRef)((function(e,t){var s=Object(a.useContext)(o),l=Object(a.useState)(null),u=Object(r.a)(l,2),d=u[0],p=u[1],h=Object(a.useRef)(),m=Object(a.useRef)({mapLib:null,map:null}).current;Object(a.useEffect)((function(){var t,i=e.mapLib,r=!0;return Promise.resolve(i||n.e(207).then(n.t.bind(null,2537,7))).then((function(n){if(r){if(n.Map||(n=n.default),!n||!n.Map)throw new Error("Invalid mapLib");if(!n.supported(e))throw new Error("Map is not supported by this browser");!function(e,t){var n,i=Object(c.a)(T);try{for(i.s();!(n=i.n()).done;){var r=n.value;r in t&&(e[r]=t[r])}}catch(a){i.e(a)}finally{i.f()}t.RTLTextPlugin&&e.getRTLTextPluginStatus&&"unavailable"===e.getRTLTextPluginStatus()&&e.setRTLTextPlugin(t.RTLTextPlugin,(function(e){e&&console.error(e)}),!1)}(n,e),e.reuseMaps&&(t=w.reuse(e,h.current)),t||(t=new w(n.Map,e,h.current)),m.map=C(t,n),m.mapLib=n,p(t),null===s||void 0===s||s.onMapMount(m.map,e.id)}})).catch((function(t){e.onError({type:"error",target:null,originalEvent:null,error:t})})),function(){r=!1,t&&(null===s||void 0===s||s.onMapUnmount(e.id),e.reuseMaps?t.recycle():t.destroy())}}),[]),E((function(){d&&d.setProps(e)})),Object(a.useImperativeHandle)(t,(function(){return m.map}),[d]);var f=Object(a.useMemo)((function(){return Object(i.a)({position:"relative",width:"100%",height:"100%"},e.style)}),[e.style]);return a.createElement("div",{id:e.id,ref:h,style:f},d&&a.createElement(k.Provider,{value:m},e.children))}));A.displayName="Map",A.defaultProps=S;var I=A,M=n(60),L=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function B(e,t){if(e&&t){var n=e.style;for(var i in t){var r=t[i];Number.isFinite(r)&&!L.test(i)?n[i]="".concat(r,"px"):n[i]=r}}}function R(e){var t=Object(a.useContext)(k),n=t.map,r=t.mapLib,o=Object(a.useRef)({props:e});o.current.props=e;var s=Object(a.useMemo)((function(){var t=!1;a.Children.forEach(e.children,(function(e){e&&(t=!0)}));var n=Object(i.a)(Object(i.a)({},e),{},{element:t?document.createElement("div"):null}),c=new r.Marker(n).setLngLat([e.longitude,e.latitude]);return c.getElement().addEventListener("click",(function(e){var t,n;null===(n=(t=o.current.props).onClick)||void 0===n||n.call(t,{type:"click",target:c,originalEvent:e})})),c.on("dragstart",(function(e){var t,n,i=e;i.lngLat=s.getLngLat(),null===(n=(t=o.current.props).onDragStart)||void 0===n||n.call(t,i)})),c.on("drag",(function(e){var t,n,i=e;i.lngLat=s.getLngLat(),null===(n=(t=o.current.props).onDrag)||void 0===n||n.call(t,i)})),c.on("dragend",(function(e){var t,n,i=e;i.lngLat=s.getLngLat(),null===(n=(t=o.current.props).onDragEnd)||void 0===n||n.call(t,i)})),c}),[]);return Object(a.useEffect)((function(){return s.addTo(n.getMap()),function(){s.remove()}}),[]),Object(a.useEffect)((function(){B(s.getElement(),e.style)}),[e.style]),s.getLngLat().lng===e.longitude&&s.getLngLat().lat===e.latitude||s.setLngLat([e.longitude,e.latitude]),e.offset&&!function(e,t){var n=Array.isArray(e)?e[0]:e?e.x:0,i=Array.isArray(e)?e[1]:e?e.y:0,r=Array.isArray(t)?t[0]:t?t.x:0,a=Array.isArray(t)?t[1]:t?t.y:0;return n===r&&i===a}(s.getOffset(),e.offset)&&s.setOffset(e.offset),s.isDraggable()!==e.draggable&&s.setDraggable(e.draggable),s.getRotation()!==e.rotation&&s.setRotation(e.rotation),s.getRotationAlignment()!==e.rotationAlignment&&s.setRotationAlignment(e.rotationAlignment),s.getPitchAlignment()!==e.pitchAlignment&&s.setPitchAlignment(e.pitchAlignment),s.getPopup()!==e.popup&&s.setPo
2pup(e.popup),Object(M.createPortal)(e.children,s.getElement())}R.defaultProps={draggable:!1,popup:null,rotation:0,rotationAlignment:"auto",pitchAlignment:"auto"};var D=a.memo(R);function P(e){return new Set(e?e.trim().split(/\s+/):[])}var z=a.memo((function(e){var t=Object(a.useContext)(k),n=t.map,r=t.mapLib,o=Object(a.useMemo)((function(){return document.createElement("div")}),[]),s=Object(a.useRef)({props:e});s.current.props=e;var l=Object(a.useMemo)((function(){var t=Object(i.a)({},e),n=new r.Popup(t).setLngLat([e.longitude,e.latitude]);return n.once("open",(function(e){var t,n;null===(n=(t=s.current.props).onOpen)||void 0===n||n.call(t,e)})),n}),[]);if(Object(a.useEffect)((function(){var e=function(e){var t,n;null===(n=(t=s.current.props).onClose)||void 0===n||n.call(t,e)};return l.on("close",e),l.setDOMContent(o).addTo(n.getMap()),function(){l.off("close",e),l.isOpen()&&l.remove()}}),[]),Object(a.useEffect)((function(){B(l.getElement(),e.style)}),[e.style]),l.isOpen()&&(l.getLngLat().lng===e.longitude&&l.getLngLat().lat===e.latitude||l.setLngLat([e.longitude,e.latitude]),e.offset&&!g(l.options.offset,e.offset)&&l.setOffset(e.offset),l.options.anchor===e.anchor&&l.options.maxWidth===e.maxWidth||(l.options.anchor=e.anchor,l.setMaxWidth(e.maxWidth)),l.options.className!==e.className)){var u,d=P(l.options.className),p=P(e.className),h=Object(c.a)(d);try{for(h.s();!(u=h.n()).done;){var m=u.value;p.has(m)||l.removeClassName(m)}}catch(y){h.e(y)}finally{h.f()}var f,b=Object(c.a)(p);try{for(b.s();!(f=b.n()).done;){var v=f.value;d.has(v)||l.addClassName(v)}}catch(y){b.e(y)}finally{b.f()}l.options.className=e.className}return Object(M.createPortal)(e.children,o)}));function F(e,t,n){var i=Object(a.useContext)(k),r=Object(a.useMemo)((function(){return e(i)}),[]);return Object(a.useEffect)((function(){var e,a=i.map;return a.hasControl(r)||a.addControl(r,null===(e=n||t)||void 0===e?void 0:e.position),function(){"function"===typeof t&&t(i),a.hasControl(r)&&a.removeControl(r)}}),[]),r}a.memo((function(e){var t=F((function(t){return new t.mapLib.AttributionControl(e)}),{position:e.position});return Object(a.useEffect)((function(){B(t._container,e.style)}),[e.style]),null}));a.memo((function(e){var t=F((function(t){return new t.mapLib.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)})}),{position:e.position});return Object(a.useEffect)((function(){B(t._controlContainer,e.style)}),[e.style]),null}));var N=Object(a.forwardRef)((function(e,t){var n=Object(a.useRef)({props:e}),i=F((function(t){var i=new t.mapLib.GeolocateControl(e),r=i._setupUI;return i._setupUI=function(e){i._container.hasChildNodes()||r(e)},i.on("geolocate",(function(e){var t,i;null===(i=(t=n.current.props).onGeolocate)||void 0===i||i.call(t,e)})),i.on("error",(function(e){var t,i;null===(i=(t=n.current.props).onError)||void 0===i||i.call(t,e)})),i.on("outofmaxbounds",(function(e){var t,i;null===(i=(t=n.current.props).onOutOfMaxBounds)||void 0===i||i.call(t,e)})),i.on("trackuserlocationstart",(function(e){var t,i;null===(i=(t=n.current.props).onTrackUserLocationStart)||void 0===i||i.call(t,e)})),i.on("trackuserlocationend",(function(e){var t,i;null===(i=(t=n.current.props).onTrackUserLocationEnd)||void 0===i||i.call(t,e)})),i}),{position:e.position});return n.current.props=e,Object(a.useImperativeHandle)(t,(function(){return{trigger:function(){return i.trigger()}}}),[]),Object(a.useEffect)((function(){B(i._container,e.style)}),[e.style]),null}));N.displayName="GeolocateControl";a.memo(N);a.memo((function(e){var t=F((function(t){return new t.mapLib.NavigationControl(e)}),{position:e.position});return Object(a.useEffect)((function(){B(t._container,e.style)}),[e.style]),null}));function U(e){var t=F((function(t){return new t.mapLib.ScaleControl(e)}),{position:e.position});return t.options.unit===e.unit&&t.options.maxWidth===e.maxWidth||(t.options.maxWidth=e.maxWidth,t.setUnit(e.unit)),Object(a.useEffect)((function(){B(t._container,e.style)}),[e.style]),null}U.defaultProps={unit:"metric",maxWidth:100};a.memo(U);function V(e,t){if(!e)throw new Error(t)}var W=0;var q=function(e){var t=Object(a.useContext)(k).map.getMap(),n=Object(a.useRef)(e),o=Object(a.useState)(0),s=Object(r.a)(o,2)[1],l=Object(a.useMemo)((function(){return e.id||"jsx-source-".concat(W++)}),[]);Object(a.useEffect)((function(){if(t){var e=function(){return s((function(e){return e+1}))};return t.on("styledata",e),e(),function(){var n;if(t.off("styledata",e),t.style&&t.style._loaded&&t.getSource(l)){var i=null===(n=t.getStyle())||void 0===n?void 0:n.layers;if(i){var r,a=Object(c.a)(i);try{for(a.s();!(r=a.n()).done;){var o=r.value;o.source===l&&t.removeLayer(o.id)}}catch(s){a.e(s)}finally{a.f()}}t.removeSource(l)}}}}),[t]);var u=t&&t.style&&t.getSource(l);return u?function(e,t,n){V(t.id===n.id,"source id changed"),V(t.type===n.type,"source type changed");var i="",r=0;for(var a in t)"children"===a||"id"===a||g(n[a],t[a])||(i=a,r++);if(r){var o=t.type;if("geojson"===o)e.setData(t.data);else if("image"===o)e.updateImage({url:t.url,coordinates:t.coordinates});else if("canvas"!==o&&"video"!==o||1!==r||"coordinates"!==i)if("vector"===o&&"setUrl"in e)switch(i){case"url":e.setUrl(t.url);break;case"tiles":e.setTiles(t.tiles)}else console.warn("Unable to update <Source> prop: ".concat(i));else e.setCoordinates(t.coordinates)}}(u,e,n.current):u=function(e,t,n){if(e.style&&e.style._loaded){var r=Object(i.a)({},n);return delete r.id,delete r.children,e.addSource(t,r),e.getSource(t)}return null}(t,l,e),n.current=e,u&&a.Children.map(e.children,(function(e){return e&&Object(a.cloneElement)(e,{source:l})}))||null};var G=0;var Z=function(e){var t=Object(a.useContext)(k).map.getMap(),n=Object(a.useRef)(e),o=Object(a.useState)(0),s=Object(r.a)(o,2)[1],c=Object(a.useMemo)((function(){return e.id||"jsx-layer-".concat(G++)}),[]);if(Object(a.useEffect)((function(){if(t){var e=function(){return s((function(e){return e+1}))};return t.on("styledata",e),e(),function(){t.off("styledata",e),t.style&&t.style._loaded&&t.getLayer(c)&&t.removeLayer(c)}}}),[t]),t&&t.style&&t.getLayer(c))try{!function(e,t,n,i){if(V(n.id===i.id,"layer id changed"),V(n.t
2ype===i.type,"layer type changed"),"custom"!==n.type&&"custom"!==i.type){var r=n.layout,a=void 0===r?{}:r,o=n.paint,s=void 0===o?{}:o,c=n.filter,l=n.minzoom,u=n.maxzoom,d=n.beforeId;if(d!==i.beforeId&&e.moveLayer(t,d),a!==i.layout){var p=i.layout||{};for(var h in a)g(a[h],p[h])||e.setLayoutProperty(t,h,a[h]);for(var m in p)a.hasOwnProperty(m)||e.setLayoutProperty(t,m,void 0)}if(s!==i.paint){var f=i.paint||{};for(var b in s)g(s[b],f[b])||e.setPaintProperty(t,b,s[b]);for(var v in f)s.hasOwnProperty(v)||e.setPaintProperty(t,v,void 0)}g(c,i.filter)||e.setFilter(t,c),l===i.minzoom&&u===i.maxzoom||e.setLayerZoomRange(t,l,u)}}(t,c,e,n.current)}catch(l){console.warn(l)}else!function(e,t,n){if(e.style&&e.style._loaded&&(!("source"in n)||e.getSource(n.source))){var r=Object(i.a)(Object(i.a)({},n),{},{id:t});delete r.beforeId,e.addLayer(r,n.beforeId)}}(t,c,e);return n.current=e,null}},1605:function(e,t,n){"use strict";var i=n(6),r=n(25),a=n(0),o=n(20),s=n(35),c=n(241),l=Object(c.a)(a.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");var u=a.forwardRef((function(e,t){var n=e.alt,s=e.children,c=e.classes,u=e.className,d=e.component,p=void 0===d?"div":d,h=e.imgProps,m=e.sizes,f=e.src,g=e.srcSet,b=e.variant,v=void 0===b?"circle":b,y=Object(r.a)(e,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),x=null,_=function(e){var t=e.src,n=e.srcSet,i=a.useState(!1),r=i[0],o=i[1];return a.useEffect((function(){if(t||n){o(!1);var e=!0,i=new Image;return i.src=t,i.srcSet=n,i.onload=function(){e&&o("loaded")},i.onerror=function(){e&&o("error")},function(){e=!1}}}),[t,n]),r}({src:f,srcSet:g}),w=f||g,O=w&&"error"!==_;return x=O?a.createElement("img",Object(i.a)({alt:n,src:f,srcSet:g,sizes:m,className:c.img},h)):null!=s?s:w&&n?n[0]:a.createElement(l,{className:c.fallback}),a.createElement(p,Object(i.a)({className:Object(o.a)(c.root,c.system,c[v],u,!O&&c.colorDefault),ref:t},y),x)}));t.a=Object(s.a)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}}),{name:"MuiAvatar"})(u)},1615:function(e,t,n){"use strict";var i=n(106),r=n(0),a=n.n(r),o=n(20),s=n(16),c=n.n(s),l=n(5),u=n(1554),d=n(120),p=n(112),h=n(3),m=n(865),f=n(1),g=Object(m.a)((function(e){return{"@global":{".hightlight-icon":{"& img":{width:"inherit",maxWidth:"100%",objectFit:"contain"},"& .MuiAvatar-root":{width:"auto",height:"auto"}}},root:{display:"flex",alignItems:"center",transform:function(e){return!e&&"translateX(-10px)"}},textThenIcon:{"& .MuiAvatar-root":Object(h.a)(Object(h.a)({},e.mixins.marginLeft(Object(f.p)(10))),{},{background:function(e){return!e&&"transparent"}})},iconThenText:{"& .MuiAvatar-root":Object(h.a)(Object(h.a)({},e.mixins.marginRight(Object(f.p)(10))),{},{background:function(e){return!e&&"transparent"}})}}})),b=["className","iconType","avatarClassName","children","isTextThenIcon","iconWithCircle","iconImage","isAnimate","showIcon"],v=function(e){var t=e.className,n=e.iconType,r=void 0===n?"FallbackCheckIcon":n,s=e.avatarClassName,h=e.children,m=e.isTextThenIcon,f=e.iconWithCircle,v=e.iconImage,y=e.isAnimate,x=e.showIcon,_=void 0===x||x,w=Object(i.a)(e,b),O=g(f);return m?a.a.createElement(l.a,{className:Object(o.a)(O.root,O.textThenIcon,t)},h,_&&a.a.createElement(u.a,Object.assign({className:s},w),c()(v,"value.src","").length>1?a.a.createElement(d.a,{media:{image:v,mobileImage:v,renditionNeeded:!1,fallbackBackgroundNeeded:!1},isParalax:!1}):y?a.a.createElement("span",{className:"animateIcon"},a.a.createElement(p.a,{name:r})):a.a.createElement(p.a,{name:r}))):a.a.createElement(l.a,{className:Object(o.a)(O.root,O.iconThenText,t)},_&&a.a.createElement(u.a,Object.assign({className:s},w),c()(v,"value.src","").length>1?a.a.createElement(d.a,{media:{image:v,mobileImage:v,renditionNeeded:!1,fallbackBackgroun
2dNeeded:!1},isParalax:!1}):y?a.a.createElement("span",{className:"animateIcon"},a.a.createElement(p.a,{name:r})):a.a.createElement(p.a,{name:r})),h)};v.defaultTypes={className:"",isTextThenIcon:!1,iconWithCircle:!0,isAnimate:!1,iconImage:""};t.a=v},1622:function(e,t,n){"use strict";var i=n(6),r=n(25),a=n(0),o=n(20),s=n(241),c=Object(s.a)(a.createElement("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),l=n(35),u=n(113),d=n(71),p=n(59),h=n(441);function m(e){return"Backspace"===e.key||"Delete"===e.key}var f=a.forwardRef((function(e,t){var n=e.avatar,s=e.classes,l=e.className,u=e.clickable,f=e.color,g=void 0===f?"default":f,b=e.component,v=e.deleteIcon,y=e.disabled,x=void 0!==y&&y,_=e.icon,w=e.label,O=e.onClick,j=e.onDelete,C=e.onKeyDown,E=e.onKeyUp,T=e.size,k=void 0===T?"medium":T,S=e.variant,A=void 0===S?"default":S,I=Object(r.a)(e,["avatar","classes","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"]),M=a.useRef(null),L=Object(d.a)(M,t),B=function(e){e.stopPropagation(),j&&j(e)},R=!(!1===u||!O)||u,D="small"===k,P=b||(R?h.a:"div"),z=P===h.a?{component:"div"}:{},F=null;if(j){var N=Object(o.a)("default"!==g&&("default"===A?s["deleteIconColor".concat(Object(p.a)(g))]:s["deleteIconOutlinedColor".concat(Object(p.a)(g))]),D&&s.deleteIconSmall);F=v&&a.isValidElement(v)?a.cloneElement(v,{className:Object(o.a)(v.props.className,s.deleteIcon,N),onClick:B}):a.createElement(c,{className:Object(o.a)(s.deleteIcon,N),onClick:B})}var U=null;n&&a.isValidElement(n)&&(U=a.cloneElement(n,{className:Object(o.a)(s.avatar,n.props.className,D&&s.avatarSmall,"default"!==g&&s["avatarColor".concat(Object(p.a)(g))])}));var V=null;return _&&a.isValidElement(_)&&(V=a.cloneElement(_,{className:Object(o.a)(s.icon,_.props.className,D&&s.iconSmall,"default"!==g&&s["iconColor".concat(Object(p.a)(g))])})),a.createElement(P,Object(i.a)({role:R||j?"button":void 0,className:Object(o.a)(s.root,l,"default"!==g&&[s["color".concat(Object(p.a)(g))],R&&s["clickableColor".concat(Object(p.a)(g))],j&&s["deletableColor".concat(Object(p.a)(g))]],"default"!==A&&[s.outlined,{primary:s.outlinedPrimary,secondary:s.outlinedSecondary}[g]],x&&s.disabled,D&&s.sizeSmall,R&&s.clickable,j&&s.deletable),"aria-disabled":!!x||void 0,tabIndex:R||j?0:void 0,onClick:O,onKeyDown:function(e){e.currentTarget===e.target&&m(e)&&e.preventDefault(),C&&C(e)},onKeyUp:function(e){e.currentTarget===e.target&&(j&&m(e)?j(e):"Escape"===e.key&&M.current&&M.current.blur()),E&&E(e)},ref:L},z,I),U||V,a.createElement("span",{className:Object(o.a)(s.label,D&&s.labelSmall)},w),F)}));t.a=Object(l.a)((function(e){var t="light"===e.palette.type?e.palette.grey[300]:e.palette.grey[700],n=Object(u.c)(e.palette.text.primary,.26);return{root:{fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.getContrastText(t),backgroundColor:t,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:"none",padding:0,verticalAlign:"middle",boxSizing:"border-box","&$disabled":{opacity:.5,pointerEvents:"none"},"& $avatar":{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},"& $avatarColorPrimary":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},"& $avatarColorSecondary":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},"& $avatarSmall":{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)}},sizeSmall:{height:24},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},disabled:{},clickable:{userSelect:"none",WebkitTapHighlightColor:"transparent",curs
2or:"pointer","&:hover, &:focus":{backgroundColor:Object(u.b)(t,.08)},"&:active":{boxShadow:e.shadows[1]}},clickableColorPrimary:{"&:hover, &:focus":{backgroundColor:Object(u.b)(e.palette.primary.main,.08)}},clickableColorSecondary:{"&:hover, &:focus":{backgroundColor:Object(u.b)(e.palette.secondary.main,.08)}},deletable:{"&:focus":{backgroundColor:Object(u.b)(t,.08)}},deletableColorPrimary:{"&:focus":{backgroundColor:Object(u.b)(e.palette.primary.main,.2)}},deletableColorSecondary:{"&:focus":{backgroundColor:Object(u.b)(e.palette.secondary.main,.2)}},outlined:{backgroundColor:"transparent",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(u.c)(e.palette.text.primary,e.palette.action.hoverOpacity)},"& $avatar":{marginLeft:4},"& $avatarSmall":{marginLeft:2},"& $icon":{marginLeft:4},"& $iconSmall":{marginLeft:2},"& $deleteIcon":{marginRight:5},"& $deleteIconSmall":{marginRight:3}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(e.palette.primary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(u.c)(e.palette.primary.main,e.palette.action.hoverOpacity)}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(e.palette.secondary.main),"$clickable&:hover, $clickable&:focus, $deletable&:focus":{backgroundColor:Object(u.c)(e.palette.secondary.main,e.palette.action.hoverOpacity)}},avatar:{},avatarSmall:{},avatarColorPrimary:{},avatarColorSecondary:{},icon:{color:"light"===e.palette.type?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},iconSmall:{width:18,height:18,marginLeft:4,marginRight:-4},iconColorPrimary:{color:"inherit"},iconColorSecondary:{color:"inherit"},label:{overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},labelSmall:{paddingLeft:8,paddingRight:8},deleteIcon:{WebkitTapHighlightColor:"transparent",color:n,height:22,width:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:Object(u.c)(n,.4)}},deleteIconSmall:{height:16,width:16,marginRight:4,marginLeft:-4},deleteIconColorPrimary:{color:Object(u.c)(e.palette.primary.contrastText,.7),"&:hover, &:active":{color:e.palette.primary.contrastText}},deleteIconColorSecondary:{color:Object(u.c)(e.palette.secondary.contrastText,.7),"&:hover, &:active":{color:e.palette.secondary.contrastText}},deleteIconOutlinedColorPrimary:{color:Object(u.c)(e.palette.primary.main,.7),"&:hover, &:active":{color:e.palette.primary.main}},deleteIconOutlinedColorSecondary:{color:Object(u.c)(e.palette.secondary.main,.7),"&:hover, &:active":{color:e.palette.secondary.main}}}}),{name:"MuiChip"})(f)},1630:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(543),r=function(e){return{type:i.a,payload:e}}},1634:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(239),r=Object(i.a)((function(e){return e}),(function(e){return e.SearchTermDataReducer}))},1651:function(e,t,n){"use strict";var i=n(9),r=n(0),a=n.n(r);t.a=function(e){var t=Object(r.useState)(null),n=Object(i.a)(t,2),o=n[0],s=n[1],c=Object(r.useState)(!1),l=Object(i.a)(c,2),u=l[0],d=l[1],p=Object(r.useState)(!1),h=Object(i.a)(p,2),m=h[0],f=h[1];return Object(r.useEffect)((function(){fetch(e.url).then((function(e){return 200===e.status?e.text():""})).then(s).catch(f).then((function(){return d(!0)}))}),[e.url]),a.a.createElement("div",{className:"svgInline svgInline--".concat(u?"loaded":"loading"," ").concat(m?"svgInline--errored":""),dangerouslySetInnerHTML:{__html:o}})}},1652:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i=!0},1663:function(e,t,n){"use strict";var i=n(6),r=n(25),a=n(0),o=n(20),s=n(35),c=n(59),l=a.forwardRef((function(e,t){var n=e.anchorOrigin,s=void 0===n?{vertical:"top",horizontal:"right"}:n,l=e.badgeContent,u=e.children,d=e.classes,p=e.className,h=e.color,m=void 0===h?"default":h,f=e.component,g=void 0===f?"span":f,b=e.invisible,v=e.max,y=void 0===v?99:v,x=e.overlap,_=void 0===x?"rectangle":x,w=e.showZero,O=void 0!==w&&w,j=e.variant,C=void 0===j?"standard":j,E=Object(r.a)(e,["anchorOrigin","badgeContent","children","classes","className","color","component","invisible","max","overlap","showZero","variant"]),T=b;null==b&&(0===l&&!O||null==l&&"dot"!==C)&&(T=!0);var k="";return"dot"!==C&&(k=l>y?"".concat(y,"+"):l),a.createElement(g,Object(i.a)({className:Object(o.a)(d.root,p),ref:t},E),u,a.createElement("span",{className:Object(o.a)(d.badge,d["".concat(s.horizontal).concat(Object(c.a)(s.vertical),"}")],d["anchorOrigin".concat(Object(c.a)(s.vertical)).concat(Object(c.a)(s.horizontal)).concat(Object(c.a)(_))],"default"!==m&&d["color".concat(Object(c.a)(m))],T&&d.invisible,"dot"===C&&d.dot)},k))}));t.a=Object(s.a)((function(e){return{root:{position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0},badge:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.c
2ontrastText},colorError:{backgroundColor:e.palette.error.main,color:e.palette.error.contrastText},dot:{borderRadius:4,height:8,minWidth:8,padding:0},anchorOriginTopRightRectangle:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightRectangle:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftRectangle:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftRectangle:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},anchorOriginTopRightCircle:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%","&$invisible":{transform:"scale(0) translate(50%, -50%)"}},anchorOriginBottomRightCircle:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%","&$invisible":{transform:"scale(0) translate(50%, 50%)"}},anchorOriginTopLeftCircle:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%","&$invisible":{transform:"scale(0) translate(-50%, -50%)"}},anchorOriginBottomLeftCircle:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%","&$invisible":{transform:"scale(0) translate(-50%, 50%)"}},invisible:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}}),{name:"MuiBadge"})(l)},1665:function(e,t,n){},1672:function(e,t,n){e.exports=function(){"use strict";var e,t,n;function i(i,r){if(e)if(t){var a="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk); self.onerror = null;",o={};e(o),n=r(o),"undefined"!==typeof window&&window&&window.URL&&window.URL.createObjectURL&&(n.workerUrl=window.URL.createObjectURL(new Blob([a],{type:"text/javascript"})))}else t=r;else e=r}return i(0,(function(e){var t="2.8.2",n=i;function i(e,t,n,i){this.cx=3*e,this.bx=3*(n-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(i-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=i,this.p2x=n,this.p2y=i}i.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},i.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},i.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},i.prototype.solveCurveX=function(e,t){var n,i,r,a,o;for(void 0===t&&(t=1e-6),r=e,o=0;o<8;o++){if(a=this.sampleCurveX(r)-e,Math.abs(a)<t)return r;var s=this.sampleCurveDerivativeX(r);if(Math.abs(s)<1e-6)break;r-=a/s}if((r=e)<(n=0))return n;if(r>(i=1))return i;for(;n<i;){if(a=this.sampleCurveX(r),Math.abs(a-e)<t)return r;e>a?n=r:i=r,r=.5*(i-n)+n}return r},i.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var r=a;function a(e,t){this.x=e,this.y=t}a.prototype={clone:function(){return new a(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=t,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this}
vendor: 5,352 bytes, line 2
2,_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),i=n*this.x+t*this.y;return this.x=t*this.x-n*this.y,this.y=i,this},_rotateAround:function(e,t){var n=Math.cos(e),i=Math.sin(e),r=t.y+i*(this.x-t.x)+n*(this.y-t.y);return this.x=t.x+n*(this.x-t.x)-i*(this.y-t.y),this.y=r,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},a.convert=function(e){return e instanceof a?e:Array.isArray(e)?new a(e[0],e[1]):e};var o="undefined"!=typeof self?self:{};const s=Math.PI/180,c=180/Math.PI;function l(e){return e*s}function u(e){return e*c}const d=[[0,0],[1,0],[1,1],[0,1]];function p(e){if(e<=0)return 0;if(e>=1)return 1;const t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function h(e,t,i,r){const a=new n(e,t,i,r);return function(e){return a.solve(e)}}const m=h(.25,.1,.25,1);function f(e,t,n){return Math.min(n,Math.max(t,e))}function g(e,t,n){return(n=f((n-e)/(t-e),0,1))*n*(3-2*n)}function b(e,t,n){const i=n-t,r=((e-t)%i+i)%i+t;return r===t?n:r}function v(e,t,n){if(!e.length)return n(null,[]);let i=e.length;const r=new Array(e.length);let a=null;e.forEach((e,o)=>{t(e,(e,t)=>{e&&(a=e),r[o]=t,0==--i&&n(a,r)})})}function y(e){const t=[];for(const n in e)t.push(e[n]);return t}function x(e,...t){for(const n of t)for(const t in n)e[t]=n[t];return e}let _=1;function w(){return _++}function O(){return function e(t){return t?(t^Math.random()*(16>>t/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()}function j(e){return e<=1?1:Math.pow(2,Math.ceil(Math.log(e)/Math.LN2))}function C(e){return!!e&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}function E(e,t){e.forEach(e=>{t[e]&&(t[e]=t[e].bind(t))})}function T(e,t){return-1!==e.indexOf(t,e.length-t.length)}function k(e,t,n){const i={};for(const r in e)i[r]=t.call(n||this,e[r],r,e);return i}function S(e,t,n){const i={};for(const r in e)t.call(n||this,e[r],r,e)&&(i[r]=e[r]);return i}function A(e){return Array.isArray(e)?e.map(A):"object"==typeof e&&e?k(e,A):e}const I={};function M(e){I[e]||("undefined"!=typeof console&&console.warn(e),I[e]=!0)}function L(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}function B(e){let t=0;for(let n,i,r=0,a=e.length,o=a-1;r<a;o=r++)n=e[r],i=e[o],t+=(i.x-n.x)*(n.y+i.y);return t}function R(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function D(e){const t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(e,n,i,r)=>{const a=i||r;return t[n]=!a||a.toLowerCase(),""}),t["max-age"]){const e=parseInt(t["max-age"],10);isNaN(e)?delete t["max-age"]:t["max-age"]=e}return t}let P,z,F,N,U=null;function V(e){if(null==U){const t=e.navigator?e.navigator.userAgent:null;U=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return U}function W(e){try{const t=o[e];return t.setItem("_mapbox_test_",1),t.removeItem("_mapbox_test_"),!0}catch(e){return!1}}const q={now:()=>void 0!==F?F:o.performance.now(),setNow(e){F=e},restoreNow(){F=void 0},frame(e){const t=o.requestAnimationFrame(e);return{cancel:()=>o.cancelAnimationFrame(t)}},getImageData(e,t=0){const{width:n,height:i}=e;N||(N=o.document.createElement("canvas"));const r=N.getContext("2d");if(!r)throw new Error("failed to create canvas 2d context");return(n>N.width||i>N.height)&&(N.width=n,N.height=i),r.clearRect(-t,-t,n+2*t,i+2*t),r.drawImage(e,0,0,n,i),r.getImageData(-t,-t,n+2*t,i+2*t)},resolveURL:e=>(P||(P=o.document.createElement("a")),P.href=e,P.href),get devicePixelRatio(){return o.devicePixelRatio},get prefersReducedMotion(){return!!o.matchMedia&&(null==z&&(z=o.matchMedia("(prefers-reduced-motion: reduce)")),z.matches)}};let G;const Z={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(null==G){const e=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{G=null!=Object({NODE_ENV:"production",PUBLIC_URL:"/dist/vad",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).API_URL_REGEX?new RegExp(Object({NODE_ENV:"production",PUBLIC_URL:"/dist/vad",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).API_URL_REGEX):e}catch(t){G=e}}return G},get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},H={supported:!1,testSupport:function(e){!Y&&K&&(J?Q(e):X=e)}};let X,K,Y=!1,J=!1;function Q(e){const t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,K),e.isContextLost())return;H.supported=!0}
2catch(e){}e.deleteTexture(t),Y=!0}o.document&&(K=o.document.createElement("img"),K.onload=function(){X&&Q(X),X=null,J=!0},K.onerror=function(){Y=!0,X=null},K.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const $="01",ee="NO_ACCESS_TOKEN";function te(e){return 0===e.indexOf("mapbox:")}function ne(e){return Z.API_URL_REGEX.test(e)}const ie=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function re(e){const t=e.match(ie);if(!t)throw new Error("Unable to parse URL object");return{protocol:t[1],authority:t[2],path:t[3]||"/",params:t[4]?t[4].split("&"):[]}}function ae(e){const t=e.params.length?"?"+e.params.join("&"):"";return`${e.protocol}://${e.authority}${e.path}${t}`}function oe(e){if(!e)return null;const t=e.split(".");if(!t||3!==t.length)return null;try{return JSON.parse(decodeURIComponent(o.atob(t[1]).split("").map(e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch(e){return null}}class se{constructor(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(e){const t=oe(Z.ACCESS_TOKEN);let n="";return n=t&&t.u?o.btoa(encodeURIComponent(t.u).replace(/%([0-9A-F]{2})/g,(e,t)=>String.fromCharCode(Number("0x"+t)))):Z.ACCESS_TOKEN||"",e?`mapbox.eventData.${e}:${n}`:"mapbox.eventData:"+n}fetchEventData(){const e=W("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{const e=o.localStorage.getItem(t);e&&(this.eventData=JSON.parse(e));const i=o.localStorage.getItem(n);i&&(this.anonId=i)}catch(e){M("Unable to read from LocalStorage")}}saveEventData(){const e=W("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{o.localStorage.setItem(n,this.anonId),Object.keys(this.eventData).length>=1&&o.localStorage.setItem(t,JSON.stringify(this.eventData))}catch(e){M("Unable to write to LocalStorage")}}processRequests(e){}postEvent(e,n,i,r){if(!Z.EVENTS_URL)return;const a=re(Z.EVENTS_URL);a.params.push("access_token="+(r||Z.ACCESS_TOKEN||""));const o={event:this.type,created:new Date(e).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:t,skuId:$,userId:this.anonId},s=n?x(o,n):o,c={url:ae(a),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=ke(c,e=>{this.pendingRequest=null,i(e),this.saveEventData(),this.processRequests(r)})}queueRequest(e,t){this.queue.push(e),this.processRequests(t)}}const ce=new class extends se{constructor(e){super("appUserTurnstile"),this._customAccessToken=e}postTurnstileEvent(e,t){Z.EVENTS_URL&&Z.ACCESS_TOKEN&&Array.isArray(e)&&e.some(e=>te(e)||ne(e))&&this.queueRequest(Date.now(),t)}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const t=oe(Z.ACCESS_TOKEN),n=t?t.u:Z.ACCESS_TOKEN;let i=n!==this.eventData.tokenU;C(this.anonId)||(this.anonId=O(),i=!0);const r=this.queue.shift();if(this.eventData.lastSuccess){const e=new Date(this.eventData.lastSuccess),t=new Date(r),n=(r-this.eventData.lastSuccess)/864e5;i=i||n>=1||n<-1||e.getDate()!==t.getDate()}else i=!0;i?this.postEvent(r,{"enabled.telemetry":!1},e=>{e||(this.eventData.lastSuccess=r,this.eventData.tokenU=n)},e):this.processRequests()}},le=ce.postTurnstileEvent.bind(ce),ue=new class extends se{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(e,t,n,i){this.skuToken=t,this.errorCb=i,Z.EVENTS_URL&&(n||Z.ACCESS_TOKEN?this.queueRequest({id:e,timestamp:Date.now()},n):this.errorCb(new Error(ee)))}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{id:t,timestamp:n}=this.queue.shift();t&&this.success[t]||(this.anonId||this.fetchEventData(),C(this.anonId)||(this.anonId=O()),this.postEvent(n,{skuToken:this.skuToken},e=>{e?this.errorCb(e):t&&(this.success[t]=!0)},e))}},de=ue.postMapLoadEvent.bind(ue),pe=new class extends se{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(e,t,n,i){if(!Z.API_URL||!Z.SESSION_PATH)return;const r=re(Z.API_URL+Z.SESSION_PATH);r.params.push("sku="+(t||"")),r.params.push("access_token="+(i||Z.ACCESS_TOKEN||""));const a={url:ae(r),headers:{"Content-Type":"text/plain"}};this.pendingRequest=Se(a,e=>{this.pendingRequest=null,n(e),this.saveEventData(),this.processRequests(i)})}getSessionAPI(e,t,n,i){this.skuToken=t,this.errorCb=i,Z.SESSION_PATH&&Z.API_URL&&(n||Z.ACCESS_TOKEN?this.queueRequest({id:e,timestamp:Date.now()},n):this.errorCb(new Error(ee)))}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{id:t,timestamp:n}=this.queue.shift();
2t&&this.success[t]||this.getSession(n,this.skuToken,e=>{e?this.errorCb(e):t&&(this.success[t]=!0)},e)}},he=pe.getSessionAPI.bind(pe),me=new Set,fe="mapbox-tiles";let ge,be,ve=500,ye=50;function xe(){o.caches&&!ge&&(ge=o.caches.open(fe))}function _e(e){const t=e.indexOf("?");return t<0?e:e.slice(0,t)}let we=1/0;const Oe={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(Oe);class je extends Error{constructor(e,t,n){401===t&&ne(n)&&(e+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),super(e),this.status=t,this.url=n}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const Ce=R()?()=>self.worker&&self.worker.referrer:()=>("blob:"===o.location.protocol?o.parent:o).location.href,Ee=function(e,t){if(!(/^file:/.test(n=e.url)||/^file:/.test(Ce())&&!/^\w+:/.test(n))){if(o.fetch&&o.Request&&o.AbortController&&o.Request.prototype.hasOwnProperty("signal"))return function(e,t){const n=new o.AbortController,i=new o.Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:Ce(),signal:n.signal});let r=!1,a=!1;const s=(c=i.url).indexOf("sku=")>0&&ne(c);var c;"json"===e.type&&i.headers.set("Accept","application/json");const l=(n,r,c)=>{if(a)return;if(n&&"SecurityError"!==n.message&&M(n),r&&c)return u(r);const l=Date.now();o.fetch(i).then(n=>{if(n.ok){const e=s?n.clone():null;return u(n,e,l)}return t(new je(n.statusText,n.status,e.url))}).catch(e=>{20!==e.code&&t(new Error(e.message))})},u=(n,s,c)=>{("arrayBuffer"===e.type?n.arrayBuffer():"json"===e.type?n.json():n.text()).then(e=>{a||(s&&c&&function(e,t,n){if(xe(),!ge)return;const i={status:t.status,statusText:t.statusText,headers:new o.Headers};t.headers.forEach((e,t)=>i.headers.set(t,e));const r=D(t.headers.get("Cache-Control")||"");if(r["no-store"])return;r["max-age"]&&i.headers.set("Expires",new Date(n+1e3*r["max-age"]).toUTCString());const a=i.headers.get("Expires");a&&(new Date(a).getTime()-n<42e4||function(e,t){if(void 0===be)try{new Response(new ReadableStream),be=!0}catch(e){be=!1}be?t(e.body):e.blob().then(t)}(t,t=>{const n=new o.Response(t,i);xe(),ge&&ge.then(t=>t.put(_e(e.url),n)).catch(e=>M(e.message))}))}(i,s,c),r=!0,t(null,e,n.headers.get("Cache-Control"),n.headers.get("Expires")))}).catch(e=>{a||t(new Error(e.message))})};return s?function(e,t){if(xe(),!ge)return t(null);const n=_e(e.url);ge.then(e=>{e.match(n).then(i=>{const r=function(e){if(!e)return!1;const t=new Date(e.headers.get("Expires")||0),n=D(e.headers.get("Cache-Control")||"");return t>Date.now()&&!n["no-cache"]}(i);e.delete(n),r&&e.put(n,i.clone()),t(null,i,r)}).catch(t)}).catch(t)}(i,l):l(null,null),{cancel:()=>{a=!0,r||n.abort()}}}(e,t);if(R()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,t,void 0,!0)}var n;return function(e,t){const n=new o.XMLHttpRequest;n.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(n.responseType="arraybuffer");for(const i in e.headers)n.setRequestHeader(i,e.headers[i]);return"json"===e.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===e.credentials,n.onerror=()=>{t(new Error(n.statusText))},n.onload=()=>{if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){let i=n.response;if("json"===e.type)try{i=JSON.parse(n.response)}catch(e){return t(e)}t(null,i,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"))}else t(new je(n.statusText,n.status,e.url))},n.send(e.body),{cancel:()=>n.abort()}}(e,t)},Te=function(e,t){return Ee(x(e,{type:"arrayBuffer"}),t)},ke=function(e,t){return Ee(x(e,{method:"POST"}),t)},Se=function(e,t){return Ee(x(e,{method:"GET"}),t)};function Ae(e){const t=o.document.createElement("a");return t.href=e,t.protocol===o.document.location.protocol&&t.host===o.document.location.host}const Ie="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Me,Le;Me=[],Le=0;const Be=function(e,t){if(H.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),Le>=Z.MAX_PARALLEL_IMAGE_REQUESTS){const n={requestParameters:e,callback:t,cancelled:!1,cancel(){this.cancelled=!0}};return Me.push(n),n}Le++;let n=!1;const i=()=>
2{if(!n)for(n=!0,Le--;Me.length&&Le<Z.MAX_PARALLEL_IMAGE_REQUESTS;){const e=Me.shift(),{requestParameters:t,callback:n,cancelled:i}=e;i||(e.cancel=Be(t,n).cancel)}},r=Te(e,(e,n,r,a)=>{i(),e?t(e):n&&(o.createImageBitmap?function(e,t){const n=new o.Blob([new Uint8Array(e)],{type:"image/png"});o.createImageBitmap(n).then(e=>{t(null,e)}).catch(e=>{t(new Error(`Could not load image because of ${e.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(n,(e,n)=>t(e,n,r,a)):function(e,t){const n=new o.Image,i=o.URL;n.onload=()=>{t(null,n),i.revokeObjectURL(n.src),n.onload=null,o.requestAnimationFrame(()=>{n.src=Ie})},n.onerror=()=>t(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const r=new o.Blob([new Uint8Array(e)],{type:"image/png"});n.src=e.byteLength?i.createObjectURL(r):Ie}(n,(e,n)=>t(e,n,r,a)))});return{cancel:()=>{r.cancel(),i()}}};function Re(e,t,n){n[e]&&-1!==n[e].indexOf(t)||(n[e]=n[e]||[],n[e].push(t))}function De(e,t,n){if(n&&n[e]){const i=n[e].indexOf(t);-1!==i&&n[e].splice(i,1)}}class Pe{constructor(e,t={}){x(this,t),this.type=e}}class ze extends Pe{constructor(e,t={}){super("error",x({error:e},t))}}class Fe{on(e,t){return this._listeners=this._listeners||{},Re(e,t,this._listeners),this}off(e,t){return De(e,t,this._listeners),De(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners=this._oneTimeListeners||{},Re(e,t,this._oneTimeListeners),this):new Promise(t=>this.once(e,t))}fire(e,t){"string"==typeof e&&(e=new Pe(e,t||{}));const n=e.type;if(this.listens(n)){e.target=this;const t=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];for(const n of t)n.call(this,e);const i=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];for(const a of i)De(n,a,this._oneTimeListeners),a.call(this,e);const r=this._eventedParent;r&&(x(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),r.fire(e))}else e instanceof ze&&console.error(e.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}}var N
vendor: 17,526 bytes, line 2
2e=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360,"units":"degrees"},"pitch":{"type":"number","default":0,"units":"degrees"},"light":{"type":"light"},"terrain":{"type":"terrain"},"fog":{"type":"fog"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":{},"mapbox":{}},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{}}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":{}}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":{}}},"url":{"required":true,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"hillshade":{},"background":{},"sky":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":{},"round":{},"square":{}},"default":"butt","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":{},"round":{},"miter":{}},"default":"miter","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"requires":[{"line-join":"miter"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"requires":[{"line-join":"round"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":{},"line":{},"line-center":{}},"default":"point","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"units":"pixels","requires":[{"symbol-placement":"line"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":{},"viewport-y":{},"source":{}},"default":"auto","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"units":"factor of the original icon size","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":{},"width":{},"height":{},"both":{}},"default":"none","requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":{},"left":{},"center":{},"right":{}},"default":"center","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","units":"ems","default":0,"requires":["text-field"],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["text-field",{"!":"text-variable-anchor"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"units":"degrees","requires":["text-field",{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":{},"vertical":{}},"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":{},"uppercase":{},"lowercase":{}},"default":"none","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","units":"ems","length":2,"default":[0,0],"requires":["text-field",{"!":"text-radial-offset"}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"requires":["text-field","icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},"in":{},"!in":{},"all":{},"any":{},"none":{},"has":{},"!has":{},"within":{}}},"geometry_type":{"type":"enum","values":{"Point":{},"LineString":{},"Polygon":{}}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":{},"exponential":{},"interval":{},"categorical":{}},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{},"lab":{},"hcl":{}},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"h
2orizon-blend":{"type":"number","property-type":"data-constant","default":0.1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{},"viewport":{}},"property-type":"data-constant","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":{},"equalEarth":{},"equirectangular":{},"lambertConformalConic":{},"mercator":{},"naturalEarth":{},"winkelTripel":{}},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","transition":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-extrusion-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-extrusion-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","transition":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"requires":["fill-extrusion-height"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"line-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["line-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}
2,"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"transition":true,"units":"line widths","requires":[{"!":"line-pattern"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-pattern":{"type":"resolvedImage","transition":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{"type":"color","transition":false,"requires":[{"!":"line-pattern"},{"source":"geojson","has":{"lineMetrics":true}}],"expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["circle-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"transition":false,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"transition":false,"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["icon-image","icon-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["text-field","text-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"units":"degrees","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":{},"nearest":{}},"default":"linear","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"transition":false,"units":"milliseconds","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"transition":false,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"background-pattern"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","transition":true,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"cross-faded"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":{},"atmosphere":{}},"default":"atmosphere","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"requires":[{"sky-type":"atmosphere"}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","requires":[{"sky-type":"atmosphere"}],"default":10,"minimum":0,"maximum":100,"transition":false,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","requires":[{"sky-type":"gradient"}],"value":"number","default":[0,0],"length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","requires":[{"sky-type":"gradient"}],"default":90,"minimum":0,"maximum":180,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"transition":false,"requires":[{"sky-type":"gradient"}],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds"},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds"}},"property-type":{"data-driven":{"type":"property-type"},"cross-faded":{"type":"property-type"},"cross-faded-data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function Ue(e,...t){for(const n of t)for(const t in n)e[t]=n[t];return e}function Ve(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function We(e){if(Array.isArray(e))return e.map(We);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={};for(const n in e)t[n]=We(e[n]);return t}return Ve(e)}
vendor: 25,779 bytes, line 2
2class qe extends Error{constructor(e,t){super(t),this.message=t,this.key=e}}class Ge{constructor(e,t=[]){this.parent=e,this.bindings={};for(const[n,i]of t)this.bindings[n]=i}concat(e){return new Ge(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(e+" not found in scope.")}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}const Ze={kind:"null"},He={kind:"number"},Xe={kind:"string"},Ke={kind:"boolean"},Ye={kind:"color"},Je={kind:"object"},Qe={kind:"value"},$e={kind:"collator"},et={kind:"formatted"},tt={kind:"resolvedImage"};function nt(e,t){return{kind:"array",itemType:e,N:t}}function it(e){if("array"===e.kind){const t=it(e.itemType);return"number"==typeof e.N?`array<${t}, ${e.N}>`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}const rt=[Ze,He,Xe,Ke,Ye,et,Je,nt(Qe),tt];function at(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!at(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(const e of rt)if(!at(e,t))return null}return`Expected ${it(e)} but found ${it(t)} instead.`}function ot(e,t){return t.some(t=>t.kind===e.kind)}function st(e,t){return t.some(t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e)}function ct(e){var t={exports:{}};return e(t,t.exports),t.exports}var lt=ct((function(e,t){var n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function i(e){return(e=Math.round(e))<0?0:e>255?255:e}function r(e){return i("%"===e[e.length-1]?parseFloat(e)/100*255:parseInt(e))}function a(e){return(t="%"===e[e.length-1]?parseFloat(e)/100:parseFloat(e))<0?0:t>1?1:t;var t}function o(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}try{t.parseCSSColor=function(e){var t,s=e.replace(/ /g,"").toLowerCase();if(s in n)return n[s].slice();if("#"===s[0])return 4===s.length?(t=parseInt(s.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===s.length&&(t=parseInt(s.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var c=s.indexOf("("),l=s.indexOf(")");if(-1!==c&&l+1===s.length){var u=s.substr(0,c),d=s.substr(c+1,l-(c+1)).split(","),p=1;switch(u){case"rgba":if(4!==d.length)return null;p=a(d.pop());case"rgb":return 3!==d.length?null:[r(d[0]),r(d[1]),r(d[2]),p];case"hsla":if(4!==d.length)return null;p=a(d.pop());case"hsl":if(3!==d.length)return null;var h=(parseFloat(d[0])%360+360)%360/360,m=a(d[1]),f=a(d[2]),g=f<=.5?f*(m+1):f+m-f*m,b=2*f-g;return[i(255*o(b,g,h+1/3)),i(255*o(b,g,h)),i(255*o(b,g,h-1/3)),p];default:return null}}return null}}catch(e){}}));class ut{constructor(e,t,n,i=1){this.r=e,this.g=t,this.b=n,this.a=i}static parse(e){if(!e)return;if(e instanceof ut)return e;if("string"!=typeof e)return;const t=lt.parseCSSColor(e);return t?new ut(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3]):void 0}toString(){const[e,t,n,i]=this.toArray();return`rgba(${Math.round(e)},${Math.round(t)},${Math.round(n)},${i})`}toArray(){const{r:e,g:t,b:n,a:i}=this;return 0===i?[0,0,0,0]:[255*e/i,255*t/i,255*n/i,i]}}ut.black=new ut(0,0,0,1),ut.white=new ut(1,1,1,1),ut.transparent=new ut(0,0,0,0),ut.red=new ut(1,0,0,1),ut.blue=new ut(0,0,1,1);class dt{constructor(e,t,n){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class pt{constructor(e,t,n,i,r){this.text=e.normalize?e.normalize():e,this.image=t,this.scale=n,this.fontStack=i,this.textColor=r}}class ht{constructor(e){this.sections=e}static fromString(e){return new ht([new pt(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(e=>0!==e.text.length||e.image&&0!==e.image.name.length)}static factory(e){return e instanceof ht?e:ht.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const t of this.sections){if(t.image){e.push(["image",t.image.name]);continue}e.push(t.text);const n={};t.fontStack&&(n["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(n["font-scale"]=t.scale),t.textColor&&(n["text-color"]=["rgba"].concat(t.textColor.toArray())),e.push(n)}return e}}class mt{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new mt({name:e,available:!1}):null}serialize(){return["image",this.name]}}function ft(e,t,n,i){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===i||"number"==typeof i&&i>=0&&i<=1?null:`Invalid rgba value [${[e,t,n,i].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof i?[e,t,n,i]:[e,t,n]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function gt(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof ut)return!0;if(e instanceof dt)return!0;if(e instanceof ht)return!0;if(e instanceof mt)return!0;if(Array.isArray(e)){for(const t of e)if(!gt(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!gt(e[t]))return!1;return!0}return!1}function bt(e){if(null===e)return Ze;if("string"==typeof e)return Xe;if("boolean"==typeof e)return Ke;if("number"==typeof e)return He;if(e instanceof ut)return Ye;if(e instanceof dt)return $e;if(e instanceof ht)return et;if(e instanceof mt)return tt;if(Array.isArray(e)){const t=e.length;let n;for(const i of e){const e=bt(i);if(n){if(n===e)continue;n=Qe;break}n=e}return nt(n||Qe,t)}return Je}function vt(e){const t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof ut||e instanceof ht||e instanceof mt?e.toString():JSON.stringify(e)}class yt{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!gt(e[1]))return t.error("invalid value");const n=e[1];let i=bt(n);const r=t.expectedType;return"array"!==i.kind||0!==i.N||!r||"array"!==r.kind||"number"==typeof r.N&&0!==r.N||(i=r),new yt(i,n)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof ut?["rgba"].concat(this.value.toArray()):this.value instanceof ht?this.value.serialize():this.value}}class xt{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const _t={string:Xe,number:He,boolean:Ke,object:Je};class wt{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let n,i=1;const r=e[0];if("array"===r){let r,a;if(e.length>2){const n=e[1];if("string"!=typeof n||!(n in _t)||"object"===n)return t.error('The item type argument of "array" must be one of string, number, boolean',1);r=_t[n],i++}else r=Qe;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);a=e[2],i++}n=nt(r,a)}else n=_t[r];const a=[];for(;i<e.length;i++){const n=t.parse(e[i],i,Qe);if(!n)return null;a.push(n)}return new wt(n,a)}evaluate(e){for(let t=0;t<this.args.length;t++){const n=this.args[t].evaluate(e);if(!at(this.type,bt(n)))return n;if(t===this.args.length-1)throw new xt(`Expected value to be of type ${it(this.type)}, but found ${it(bt(n))} instead.`)}return null}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=this.type,t=[e.kind];if("array"===e.kind){const n=e.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){t.push(n.kind);const i=e.N;("number"==typeof i||this.args.length>1)&&t.push(i)}}return t.concat(this.args.map(e=>e.serialize()))}}class Ot{constructor(e){this.type=et,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[1];if(!Array.isArray(n)&&"object"==typeof n)return t.error("First argument must be an image or text section.");const i=[];let r=!1;for(let a=1;a<=e.length-1;++a){const n=e[a];if(r&&"object"==typeof n&&!Array.isArray(n)){r=!1;let e=null;if(n["font-scale"]&&(e=t.parse(n["font-scale"],1,He),!e))return null;let a=null;if(n["text-font"]&&(a=t.parse(n["text-font"],1,nt(Xe)),!a))return null;let o=null;if(n["text-color"]&&(o=t.parse(n["text-color"],1,Ye),!o))return null;const s=i[i.length-1];s.scale=e,s.font=a,s.textColor=o}else{const n=t.parse(e[a],1,Qe);if(!n)return null;const o=n.type.kind;if("string"!==o&&"value"!==o&&"null"!==o&&"resolvedImage"!==o)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");r=!0,i.push({content:n,scale:null,font:null,textColor:null})}}return new Ot(i)}evaluate(e){return new ht(this.sections.map(t=>{const n=t.content.evaluate(e);return bt(n)===tt?new pt("",n,null,null,null):new pt(vt(n),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)}))}eachChild(e){for(const t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const t of this.sections){e.push(t.content.serialize());const n={};t.scale&&(n["font-scale"]=t.scale.serialize()),t.font&&(n["text-font"]=t.font.serialize()),t.textColor&&(n["text-color"]=t.textColor.serialize()),e.push(n)}return e}}class jt{constructor(e){this.type=tt,this.input=e}static parse(e,t){if(2!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,Xe);return n?new jt(n):t.error("No image name provided.")}evaluate(e){const t=this.input.evaluate(e),n=mt.fromString(t);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(t)>-1),n}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const Ct={"to-boolean":Ke,"to-color":Ye,"to-number":He,"to-string":Xe};class Et{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const n=e[0];if(("to-boolean"===n||"to-string"===n)&&2!==e.length)return t.error("Expected one argument.");const i=Ct[n],r=[];for(let a=1;a<e.length;a++){const n=t.parse(e[a],a,Qe);if(!n)return null;r.push(n)}return new Et(i,r)}evaluate(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){let t,n;for(const i of this.args){if(t=i.evaluate(e),n=null,t instanceof ut)return t;if("string"==typeof t){const n=e.parseColor(t);if(n)return n}else if(Array.isArray(t)&&(n=t.length<3||t.length>4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:ft(t[0],t[1],t[2],t[3]),!n))return new ut(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new xt(n||`Could not parse color from value '${"string"==typeof t?t:String(JSON.stringify(t))}'`)}if("number"===this.type.kind){let t=null;for(const n of this.args){if(t=n.evaluate(e),null===t)return 0;const i=Number(t);if(!isNaN(i))return i}throw new xt(`Could not convert ${JSON.stringify(t)} to number.`)}return"formatted"===this.type.kind?ht.fromString(vt(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?mt.fromString(vt(this.args[0].evaluate(e))):vt(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if("formatted"===this.type.kind)return new Ot([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new jt(this.args[0]).serialize();const e=["to-"+this.type.kind];return this.eachChild(t=>{e.push(t.serialize())}),e}}const Tt=["Unknown","Point","LineString","Polygon"];class kt{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&"id"in this.feature&&this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?Tt[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,t=this.featureDistanceData.scale,{x:n,y:i}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(n*t-e[0])+this.featureDistanceData.bearing[1]*(i*t-e[1])}return 0}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=ut.parse(e)),t}}class St{constructor(e,t,n,i){this.name=e,this.type=t,this._evaluate=n,this.args=i}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,t){const n=e[0],i=St.definitions[n];if(!i)return t.error(`Unknown expression "${n}". If you wanted a literal array, use ["literal", [...]].`,0);const r=Array.isArray(i)?i[0]:i.type,a=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,o=a.filter(([t])=>!Array.isArray(t)||t.length===e.length-1);let s=null;for(const[c,l]of o){s=new Qt(t.registry,t.path,null,t.scope);const i=[];let a=!1;for(let t=1;t<e.length;t++){const n=e[t],r=Array.isArray(c)?c[t-1]:c.type,o=s.parse(n,1+i.length,r);if(!o){a=!0;break}i.push(o)}if(!a)if(Array.isArray(c)&&c.length!==i.length)s.error(`Expected ${c.length} arguments, but found ${i.length} instead.`);else{for(let e=0;e<i.length;e++){const t=Array.isArray(c)?c[e]:c.type,n=i[e];s.concat(e+1).checkSubtype(t,n.type)}if(0===s.errors.length)return new St(n,r,l,i)}}if(1===o.length)t.errors.push(...s.errors);else{const n=(o.length?o:a).map(([e])=>{return t=e,Array.isArray(t)?`(${t.map(it).join(", ")})`:`(${it(t.type)}...)`;var t}).join(" | "),i=[];for(let r=1;r<e.length;r++){const n=t.parse(e[r],1+i.length);if(!n)return null;i.push(it(n.type))}t.error(`Expected arguments of type ${n}, but found (${i.join(", ")}) instead.`)}return null}static register(e,t){St.definitions=t;for(const n in t)e[n]=St}}class At{constructor(e,t,n){this.type=$e,this.locale=n,this.caseSensitive=e,this.diacriticSensitive=t}static parse(e,t){if(2!==e.length)return t.error("Expected one argument.");const n=e[1];if("object"!=typeof n||Array.isArray(n))return t.error("Collator options argument must be an object.");const i=t.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,Ke);if(!i)return null;const r=t.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,Ke);if(!r)return null;let a=null;return n.locale&&(a=t.parse(n.locale,1,Xe),!a)?null:new At(i,r,a)}evaluate(e){return new dt(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}serialize(){const e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]}}const It=8192;function Mt(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function Lt(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function Bt(e,t){const n=(180+e[0])/360,i=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e[1]*Math.PI/360)))/360,r=Math.pow(2,t.z);return[Math.round(n*r*It),Math.round(i*r*It)]}function Rt(e,t,n){const i=e[0]-t[0],r=e[1]-t[1],a=e[0]-n[0],o=e[1]-n[1];return i*o-a*r==0&&i*a<=0&&r*o<=0}function Dt(e,t){let n=!1;for(let o=0,s=t.length;o<s;o++){const s=t[o];for(let t=0,o=s.length;t<o-1;t++){if(Rt(e,s[t],s[t+1]))return!1;(r=s[t])[1]>(i=e)[1]!=(a=s[t+1])[1]>i[1]&&i[0]<(a[0]-r[0])*(i[1]-r[1])/(a[1]-r[1])+r[0]&&(n=!n)}}var i,r,a;return n}function Pt(e,t){for(let n=0;n<t.length;n++)if(Dt(e,t[n]))return!0;return!1}function zt(e,t,n,i){const r=i[0]-n[0],a=i[1]-n[1],o=(e[0]-n[0])*a-r*(e[1]-n[1]),s=(t[0]-n[0])*a-r*(t[1]-n[1]);return o>0&&s<0||o<0&&s>0}function Ft(e,t,n){for(const l of n)for(let n=0;n<l.length-1;++n)if(0!=(s=[(o=l[n+1])[0]-(a=l[n])[0],o[1]-a[1]])[0]*(c=[(r=t)[0]-(i=e)[0],r[1]-i[1]])[1]-s[1]*c[0]&&zt(i,r,a,o)&&zt(a,o,i,r))return!0;var i,r,a,o,s,c;return!1}function Nt(e,t){for(let n=0;n<e.length;++n)if(!Dt(e[n],t))return!1;for(let n=0;n<e.length-1;++n)if(Ft(e[n],e[n+1],t))return!1;return!0}function Ut(e,t){for(let n=0;n<t.length;n++)if(Nt(e,t[n]))return!0;return!1}function Vt(e,t,n){const i=[];for(let r=0;r<e.length;r++){const a=[];for(let i=0;i<e[r].length;i++){const o=Bt(e[r][i],n);Mt(t,o),a.push(o)}i.push(a)}return i}function Wt(e,t,n){const i=[];for(let r=0;r<e.length;r++){const a=Vt(e[r],t,n);i.push(a)}return i}function qt(e,t,n,i){if(e[0]<n[0]||e[0]>n[2]){const t=.5*i;let r=e[0]-n[0]>t?-i:n[0]-e[0]>t?i:0;0===r&&(r=e[0]-n[2]>t?-i:n[2]-e[0]>t?i:0),e[0]+=r}Mt(t,e)}function Gt(e,t,n,i){const r=Math.pow(2,i.z)*It,a=[i.x*It,i.y*It],o=[];if(!e)return o;for(const s of e)for(const e of s){const i=[e.x+a[0],e.y+a[1]];qt(i,t,n,r),o.push(i)}return o}function Zt(e,t,n,i){const r=Math.pow(2,i.z)*It,a=[i.x*It,i.y*It],o=[];if(!e)return o;for(const c of e){const e=[];for(const n of c){const i=[n.x+a[0],n.y+a[1]];Mt(t,i),e.push(i)}o.push(e)}if(t[2]-t[0]<=r/2){(s=t)[0]=s[1]=1/0,s[2]=s[3]=-1/0;for(const e of o)for(const i of e)qt(i,t,n,r)}var s;return o}class Ht{constructor(e,t){this.type=Ke,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(gt(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e<t.features.length;++e){const n=t.features[e].geometry.type;if("Polygon"===n||"MultiPolygon"===n)return new Ht(t,t.features[e].geometry)}else if("Feature"===t.type){const e=t.geometry.type;if("Polygon"===e||"MultiPolygon"===e)return new Ht(t,t.geometry)}else if("Polygon"===t.type||"MultiPolygon"===t.type)return new Ht(t,t)}return t.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){const n=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],r=e.canonicalID();if(!r)return!1;if("Polygon"===t.type){const a=Vt(t.coordinates,i,r),o=Gt(e.geometry(),n,i,r);if(!Lt(n,i))return!1;for(const e of o)if(!Dt(e,a))return!1}if("MultiPolygon"===t.type){const a=Wt(t.coordinates,i,r),o=Gt(e.geometry(),n,i,r);if(!Lt(n,i))return!1;for(const e of o)if(!Pt(e,a))return!1}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){const n=[1/0,1/0,-1/0,-1/0],i=[1/0,1/0,-1/0,-1/0],r=e.canonicalID();if(!r)return!1;if("Polygon"===t.type){const a=Vt(t.coordinates,i,r),o=Zt(e.geometry(),n,i,r);if(!Lt(n,i))return!1;for(const e of o)if(!Nt(e,a))return!1}if("MultiPolygon"===t.type){const a=Wt(t.coordinates,i,r),o=Zt(e.geometry(),n,i,r);if(!Lt(n,i))return!1;for(const e of o)if(!Ut(e,a))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}function Xt(e){if(e instanceof St){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}if(e instanceof Ht)return!1;let t=!0;return e.eachChild(e=>{t&&!Xt(e)&&(t=!1)}),t}function Kt(e){if(e instanceof St&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild(e=>{t&&!Kt(e)&&(t=!1)}),t}function Yt(e,t){if(e instanceof St&&t.indexOf(e.name)>=0)return!1;let n=!0;return e.eachChild(e=>{n&&!Yt(e,t)&&(n=!1)}),n}class Jt{constructor(e,t){this.type=t.type,this.name=e,this.boundExpression=t}static parse(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");const n=e[1];return t.scope.has(n)?new Jt(n,t.scope.get(n)):t.error(`Unknown variable "${n}". Make sure "${n}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}class Qt{constructor(e,t=[],n,i=new Ge,r=[]){this.registry=e,this.path=t,this.key=t.map(e=>`[${e}]`).join(""),this.scope=i,this.errors=r,this.expectedType=n}parse(e,t,n,i,r={}){return t?this.concat(t,n,i)._parse(e,r):this._parse(e,r)}_parse(e,t){function n(e,t,n){return"assert"===n?new wt(t,[e]):"coerce"===n?new Et(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const i=e[0];if("string"!=typeof i)return this.error(`Expression name must be a string, but found ${typeof i} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const r=this.registry[i];if(r){let i=r.parse(e,this);if(!i)return null;if(this.expectedType){const e=this.expectedType,r=i.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==r.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==r.kind&&"string"!==r.kind){if(this.checkSubtype(e,r))return null}else i=n(i,e,t.typeAnnotation||"coerce");else i=n(i,e,t.typeAnnotation||"assert")}if(!(i instanceof yt)&&"resolvedImage"!==i.t
2ype.kind&&function e(t){if(t instanceof Jt)return e(t.boundExpression);if(t instanceof St&&"error"===t.name)return!1;if(t instanceof At)return!1;if(t instanceof Ht)return!1;const n=t instanceof Et||t instanceof wt;let i=!0;return t.eachChild(t=>{i=n?i&&e(t):i&&t instanceof yt}),!!i&&Xt(t)&&Yt(t,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}(i)){const t=new kt;try{i=new yt(i.type,i.evaluate(t))}catch(e){return this.error(e.message),null}}return i}return this.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,t,n){const i="number"==typeof e?this.path.concat(e):this.path,r=n?this.scope.concat(n):this.scope;return new Qt(this.registry,i,t||null,r,this.errors)}error(e,...t){const n=`${this.key}${t.map(e=>`[${e}]`).join("")}`;this.errors.push(new qe(n,e))}checkSubtype(e,t){const n=at(e,t);return n&&this.error(n),n}}function $t(e,t){const n=e.length-1;let i,r,a=0,o=n,s=0;for(;a<=o;)if(s=Math.floor((a+o)/2),i=e[s],r=e[s+1],i<=t){if(s===n||t<r)return s;a=s+1}else{if(!(i>t))throw new xt("Input is not a number.");o=s-1}return 0}class en{constructor(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[i,r]of n)this.labels.push(i),this.outputs.push(r)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");const n=t.parse(e[1],1,He);if(!n)return null;const i=[];let r=null;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);for(let a=1;a<e.length;a+=2){const n=1===a?-1/0:e[a],o=e[a+1],s=a,c=a+1;if("number"!=typeof n)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',s);if(i.length&&i[i.length-1][0]>=n)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',s);const l=t.parse(o,c,r);if(!l)return null;r=r||l.type,i.push([n,l])}return new en(r,n,i)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const i=this.input.evaluate(e);if(i<=t[0])return n[0].evaluate(e);const r=t.length;return i>=t[r-1]?n[r-1].evaluate(e):n[$t(t,i)].evaluate(e)}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let t=0;t<this.labels.length;t++)t>0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e}}function tn(e,t,n){return e*(1-n)+t*n}var nn=Object.freeze({__proto__:null,number:tn,color:function(e,t,n){return new ut(tn(e.r,t.r,n),tn(e.g,t.g,n),tn(e.b,t.b,n),tn(e.a,t.a,n))},array:function(e,t,n){return e.map((e,i)=>tn(e,t[i],n))}});const rn=6/29*3*(6/29),an=Math.PI/180,on=180/Math.PI;function sn(e){return e>.008856451679035631?Math.pow(e,1/3):e/rn+4/29}function cn(e){return e>6/29?e*e*e:rn*(e-4/29)}function ln(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function un(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function dn(e){const t=un(e.r),n=un(e.g),i=un(e.b),r=sn((.4124564*t+.3575761*n+.1804375*i)/.95047),a=sn((.2126729*t+.7151522*n+.072175*i)/1);return{l:116*a-16,a:500*(r-a),b:200*(a-sn((.0193339*t+.119192*n+.9503041*i)/1.08883)),alpha:e.a}}function pn(e){let t=(e.l+16)/116,n=isNaN(e.a)?t:t+e.a/500,i=isNaN(e.b)?t:t-e.b/200;return t=1*cn(t),n=.95047*cn(n),i=1.08883*cn(i),new ut(ln(3.2404542*n-1.5371385*t-.4985314*i),ln(-.969266*n+1.8760108*t+.041556*i),ln(.0556434*n-.2040259*t+1.0572252*i),e.alpha)}function hn(e,t,n){const i=t-e;return e+n*(i>180||i<-180?i-360*Math.round(i/360):i)}const mn={forward:dn,reverse:pn,interpolate:function(e,t,n){return{l:tn(e.l,t.l,n),a:tn(e.a,t.a,n),b:tn(e.b,t.b,n),alpha:tn(e.alpha,t.alpha,n)}}},fn={forward:function(e){const{l:t,a:n,b:i}=dn(e),r=Math.atan2(i,n)*on;return{h:r<0?r+360:r,c:Math.sqrt(n*n+i*i),l:t,alpha:e.a}},reverse:function(e){const t=e.h*an,n=e.c;return pn({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:hn(e.h,t.h,n),c:tn(e.c,t.c,n),l:tn(e.l,t.l,n),alpha:tn(e.alpha,t.alpha,n)}}};var gn=Object.freeze({__proto__:null,lab:mn,hcl:fn});class bn{constructor(e,t,n,i,r){this.type=e,this.operator=t,this.interpolation=n,this.input=i,this.labels=[],this.outputs=[];
vendor: 18,149 bytes, line 2
2for(const[a,o]of r)this.labels.push(a),this.outputs.push(o)}static interpolationFactor(e,t,i,r){let a=0;if("exponential"===e.name)a=vn(t,e.base,i,r);else if("linear"===e.name)a=vn(t,1,i,r);else if("cubic-bezier"===e.name){const o=e.controlPoints;a=new n(o[0],o[1],o[2],o[3]).solve(vn(t,1,i,r))}return a}static parse(e,t){let[n,i,r,...a]=e;if(!Array.isArray(i)||0===i.length)return t.error("Expected an interpolation type expression.",1);if("linear"===i[0])i={name:"linear"};else if("exponential"===i[0]){const e=i[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);i={name:"exponential",base:e}}else{if("cubic-bezier"!==i[0])return t.error("Unknown interpolation type "+String(i[0]),1,0);{const e=i.slice(1);if(4!==e.length||e.some(e=>"number"!=typeof e||e<0||e>1))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);i={name:"cubic-bezier",controlPoints:e}}}if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(r=t.parse(r,2,He),!r)return null;const o=[];let s=null;"interpolate-hcl"===n||"interpolate-lab"===n?s=Ye:t.expectedType&&"value"!==t.expectedType.kind&&(s=t.expectedType);for(let c=0;c<a.length;c+=2){const e=a[c],n=a[c+1],i=c+3,r=c+4;if("number"!=typeof e)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',i);if(o.length&&o[o.length-1][0]>=e)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',i);const l=t.parse(n,r,s);if(!l)return null;s=s||l.type,o.push([e,l])}return"number"===s.kind||"color"===s.kind||"array"===s.kind&&"number"===s.itemType.kind&&"number"==typeof s.N?new bn(s,n,i,r,o):t.error(`Type ${it(s)} is not interpolatable.`)}evaluate(e){const t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);const i=this.input.evaluate(e);if(i<=t[0])return n[0].evaluate(e);const r=t.length;if(i>=t[r-1])return n[r-1].evaluate(e);const a=$t(t,i),o=bn.interpolationFactor(this.interpolation,i,t[a],t[a+1]),s=n[a].evaluate(e),c=n[a+1].evaluate(e);return"interpolate"===this.operator?nn[this.type.kind.toLowerCase()](s,c,o):"interpolate-hcl"===this.operator?fn.reverse(fn.interpolate(fn.forward(s),fn.forward(c),o)):mn.reverse(mn.interpolate(mn.forward(s),mn.forward(c),o))}eachChild(e){e(this.input);for(const t of this.outputs)e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const t=[this.operator,e,this.input.serialize()];for(let n=0;n<this.labels.length;n++)t.push(this.labels[n],this.outputs[n].serialize());return t}}function vn(e,t,n,i){const r=i-n,a=e-n;return 0===r?0:1===t?a/r:(Math.pow(t,a)-1)/(Math.pow(t,r)-1)}class yn{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expectected at least one argument.");let n=null;const i=t.expectedType;i&&"value"!==i.kind&&(n=i);const r=[];for(const o of e.slice(1)){const e=t.parse(o,1+r.length,n,void 0,{typeAnnotation:"omit"});if(!e)return null;n=n||e.type,r.push(e)}const a=i&&r.some(e=>at(i,e.type));return new yn(a?Qe:n,r)}evaluate(e){let t,n=null,i=0;for(const r of this.args){if(i++,n=r.evaluate(e),n&&n instanceof mt&&!n.available&&(t||(t=n),n=null,i===this.args.length))return t;if(null!==n)break}return n}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(t=>{e.push(t.serialize())}),e}}class xn{constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const n=[];for(let r=1;r<e.length-1;r+=2){const i=e[r];if("string"!=typeof i)return t.error(`Expected string, but found ${typeof i} instead.`,r);if(/[^a-zA-Z0-9_]/.test(i))return t.error("Variable names must contain only alphanumeric characters or '_'.",r);const a=t.parse(e[r+1],r+1);if(!a)return null;n.push([i,a])}const i=t.parse(e[e.length-1],e.length-1,t.expectedType,n);return i?new xn(n,i):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[t,n]of this.bindings)e.push(t,n.serialize());return e.push(this.result.serialize()),e}}class _n{constructor(e,t,n){this.type=e,this.index=t,this.input=n}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,He),i=t.parse(e[2],2,nt(t.expectedType||Qe));return n&&i?new _n(i.type.itemType,n,i):null}evaluate(e){const t=this.index.evaluate(e),n=this.input.evaluate(e);if(t<0)throw new xt(`Array index out of bounds: ${t} < 0.`);if(t>=n.length)throw new xt(`Array index out of bounds: ${t} > ${n.length-1}.`);if(t!==Math.floor(t))throw new xt(`Array index must be an integer, but found ${t} instead.`);return n[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class wn{constructor(e,t){this.type=Ke,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,Qe),i=t.parse(e[2],2,Qe);return n&&i?ot(n.type,[Ke,Xe,He,Ze,Qe])?new wn(n,i):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${it(n.type)} instead`):null}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(null==n)return!1;if(!st(t,["boolean","string","number","null"]))throw new xt(`Expected first argument to be of type boolean, string, number or null, but found ${it(bt(t))} instead.`);if(!st(n,["string","array"]))throw new xt(`Expected second argument to be of type array or string, but found ${it(bt(n))} instead.`);return n.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class On{constructor(e,t,n){this.type=He,this.needle=e,this.haystack=t,this.fromIndex=n}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,Qe),i=t.parse(e[2],2,Qe);if(!n||!i)return null;if(!ot(n.type,[Ke,Xe,He,Ze,Qe]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${it(n.type)} instead`);if(4===e.length){const r=t.parse(e[3],3,He);return r?new On(n,i,r):null}return new On(n,i)}evaluate(e){const t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!st(t,["boolean","string","number","null"]))throw new xt(`Expected first argument to be of type boolean, string, number or null, but found ${it(bt(t))} instead.`);if(!st(n,["string","array"]))throw new xt(`Expected second argument to be of type array or string, but found ${it(bt(n))} instead.`);if(this.fromIndex){const i=this.fromIndex.evaluate(e);return n.indexOf(t,i)}return n.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}class jn{constructor(e,t,n,i,r,a){this.inputType=e,this.type=t,this.input=n,this.cases=i,this.outputs=r,this.otherwise=a}static parse(e,t){if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return t.error("Expected an even number of arguments.");let n,i;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);const r={},a=[];for(let c=2;c<e.length-1;c+=2){let o=e[c];const s=e[c+1];Array.isArray(o)||(o=[o]);const l=t.concat(c);if(0===o.length)return l.error("Expected at least one branch label.");for(const e of o){if("number"!=typeof e&&"string"!=typeof e)return l.error("Branch labels must be numbers or strings.");if("number"==typeof e&&Math.abs(e)>Number.MAX_SAFE_INTEGER)return l.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return l.error("Numeric branch labels must be integer values.");if(n){if(l.checkSubtype(n,bt(e)))return null}else n=bt(e);if(void 0!==r[String(e)])return l.error("Branch labels must be unique.");r[String(e)]=a.length}const u=t.parse(s,c,i);if(!u)return null;i=i||u.type,a.push(u)}const o=t.parse(e[1],1,Qe);if(!o)return null;const s=t.parse(e[e.length-1],e.length-1,i);return s?"value"!==o.type.kind&&t.concat(1).checkSubtype(n,o.type)?null:new jn(n,i,o,r,a,s):null}evaluate(e){const t=this.input.evaluate(e);return(bt(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],t=Object.keys(this.cases).sort(),n=[],i={};for(const a of t){const e=i[this.cases[a]];void 0===e?(i[this.cases[a]]=n.length,n.push([this.cases[a],[a]])):n[e][1].push(a)}const r=e=>"number"===this.inputType.kind?Number(e):e;for(const[a,o]of n)e.push(1===o.length?r(o[0]):o.map(r)),e.push(this.outputs[a].serialize());return e.push(this.otherwise.serialize()),e}}class Cn{constructor(e,t,n){this.type=e,this.branches=t,this.otherwise=n}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return t.error("Expected an odd number of arguments.");let n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);const i=[];for(let a=1;a<e.length-1;a+=2){const r=t.parse(e[a],a,Ke);if(!r)return null;const o=t.parse(e[a+1],a+1,n);if(!o)return null;i.push([r,o]),n=n||o.type}const r=t.parse(e[e.length-1],e.length-1,n);return r?new Cn(n,i,r):null}evaluate(e){for(const[t,n]of this.branches)if(t.evaluate(e))return n.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[t,n]of this.branches)e(t),e(n);e(this.otherwise)}outputDefined(){return this.branches.every(([e,t])=>t.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(t=>{e.push(t.serialize())}),e}}class En{constructor(e,t,n,i){this.type=e,this.input=t,this.beginIndex=n,this.endIndex=i}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const n=t.parse(e[1],1,Qe),i=t.parse(e[2],2,He);if(!n||!i)return null;if(!ot(n.type,[nt(Qe),Xe,Qe]))return t.error(`Expected first argument to be of type array or string, but found ${it(n.type)} instead`);if(4===e.length){const r=t.parse(e[3],3,He);return r?new En(n.type,n,i,r):null}return new En(n.type,n,i)}evaluate(e){const t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!st(t,["string","array"]))throw new xt(`Expected first argument to be of type array or string, but found ${it(bt(t))} instead.`);if(this.endIndex){const i=this.endIndex.evaluate(e);return t.slice(n,i)}return t.slice(n)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}function Tn(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function kn(e,t,n,i){return 0===i.compare(t,n)}function Sn(e,t,n){const i="=="!==e&&"!="!==e;return class r{constructor(e,t,n){this.type=Ke,this.lhs=e,this.rhs=t,this.collator=n,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");const n=e[0];let a=t.parse(e[1],1,Qe);if(!a)return null;if(!Tn(n,a.type))return t.concat(1).error(`"${n}" comparisons are not supported for type '${it(a.type)}'.`);let o=t.parse(e[2],2,Qe);if(!o)return null;if(!Tn(n,o.type))return t.concat(2).error(`"${n}" comparisons are not supported for type '${it(o.type)}'.`);if(a.type.kind!==o.type.kind&&"value"!==a.type.kind&&"value"!==o.type.kind)return t.error(`Cannot compare types '${it(a.type)}' and '${it(o.type)}'.`);i&&("value"===a.type.kind&&"value"!==o.type.kind?a=new wt(o.type,[a]):"value"!==a.type.kind&&"value"===o.type.kind&&(o=new wt(a.type,[o])));let s=null;if(4===e.length){if("string"!==a.type.kind&&"string"!==o.type.kind&&"value"!==a.type.kind&&"value"!==o.type.kind)return t.error("Cannot use collator to compare non-string types.");if(s=t.parse(e[3],3,$e),!s)return null}return new r(a,o,s)}evaluate(r){const a=this.lhs.evaluate(r),o=this.rhs.evaluate(r);if(i&&this.hasUntypedArgument){const t=bt(a),n=bt(o);if(t.kind!==n.kind||"string"!==t.kind&&"number"!==t.kind)throw new xt(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${n.kind}) instead.`)}if(this.collator&&!i&&this.hasUntypedArgument){const e=bt(a),n=bt(o);if("string"!==e.kind||"string"!==n.kind)return t(r,a,o)}return this.collator?n(r,a,o,this.collator.evaluate(r)):t(r,a,o)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}serialize(){const t=[e];return this.eachChild(e=>{t.push(e.serialize())}),t}}}const An=Sn("==",(function(e,t,n){return t===n}),kn),In=Sn("!=",(function(e,t,n){return t!==n}),(function(e,t,n,i){return!kn(0,t,n,i)})),Mn=Sn("<",(function(e,t,n){return t<n}),(function(e,t,n,i){return i.compare(t,n)<0})),Ln=Sn(">",(function(e,t,n){return t>n}),(function(e,t,n,i){return i.compare(t,n)>0})),Bn=Sn("<=",(function(e,t,n){return t<=n}),(function(e,t,n,i){return i.compare(t,n)<=0})),Rn=Sn(">=",(function(e,t,n){return t>=n}),(function(e,t,n,i){return i.compare(t,n)>=0}));class Dn{constructor(e,t,n,i,r){this.type=Xe,this.number=e,this.locale=t,this.currency=n,this.minFractionDigits=i,this.maxFractionDigits=r}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");const n=t.parse(e[1],1,He);if(!n)return null;const i=e[2];if("object"!=typeof i||Array.isArray(i))return t.error("NumberFormat options argument must be an object.");let r=null;if(i.locale&&(r=t.parse(i.locale,1,Xe),!r))return null;let a=null;if(i.currency&&(a=t.parse(i.currency,1,Xe),!a))return null;let o=null;if(i["min-fraction-digits"]&&(o=t.parse(i["min-fraction-digits"],1,He),!o))return null;let s=null;return i["max-fraction-digits"]&&(s=t.parse(i["max-fraction-digits"],1,He),!s)?null:new Dn(n,r,a,o,s)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class Pn{constructor(e){this.type=He,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);const n=t.parse(e[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?t.error(`Expected argument of type string or array, but found ${it(n.type)} instead.`):new Pn(n):null}evaluate(e){const t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new xt(`Expected value to be of type string or array, but found ${it(bt(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(t=>{e.push(t.serialize())}),e}}const zn={"==":An,"!=":In,">":Ln,"<":Mn,">=":Rn,"<=":Bn,array:wt,at:_n,boolean:wt,case:Cn,coalesce:yn,collator:At,format:Ot,image:jt,in:wn,"index-of":On,interpolate:bn,"interpolate-hcl":bn,"interpolate-lab":bn,length:Pn,let:xn,literal:yt,match:jn,number:wt,"number-format":Dn,object:wt,slice:En,step:en,string:wt,"to-boolean":Et,"to-color":Et,"to-number":Et,"to-string":Et,var:Jt,within:Ht};function Fn(e,[t,n,i,r]){t=t.evaluate(e),n=n.evaluate(e),i=i.evaluate(e);const a=r?r.evaluate(e):1,o=ft(t,n,i,a);if(o)throw new xt(o);return new ut(t/255*a,n/255*a,i/255*a,a)}function Nn(e,t){return e in t}function Un(e,t){const n=t[e];return void 0===n?null:n}function Vn(e){return{type:e}}function Wn(e){return{result:"success",value:e}}function qn(e){return{result:"error",value:e}}function Gn(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function Zn(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function Hn(e){return!!e.expression&&e.expression.interpolated}function Xn(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function Kn(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Yn(e){return e}
vendor: 4,327 bytes, line 2
2function Jn(e,t,n){return void 0!==e?e:void 0!==t?t:void 0!==n?n:void 0}function Qn(e,t,n,i,r){return Jn(typeof n===r?i[n]:void 0,e.default,t.default)}function $n(e,t,n){if("number"!==Xn(n))return Jn(e.default,t.default);const i=e.stops.length;if(1===i)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[i-1][0])return e.stops[i-1][1];const r=$t(e.stops.map(e=>e[0]),n);return e.stops[r][1]}function ei(e,t,n){const i=void 0!==e.base?e.base:1;if("number"!==Xn(n))return Jn(e.default,t.default);const r=e.stops.length;if(1===r)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[r-1][0])return e.stops[r-1][1];const a=$t(e.stops.map(e=>e[0]),n),o=function(e,t,n,i){const r=i-n,a=e-n;return 0===r?0:1===t?a/r:(Math.pow(t,a)-1)/(Math.pow(t,r)-1)}(n,i,e.stops[a][0],e.stops[a+1][0]),s=e.stops[a][1],c=e.stops[a+1][1];let l=nn[t.type]||Yn;if(e.colorSpace&&"rgb"!==e.colorSpace){const t=gn[e.colorSpace];l=(e,n)=>t.reverse(t.interpolate(t.forward(e),t.forward(n),o))}return"function"==typeof s.evaluate?{evaluate(...e){const t=s.evaluate.apply(void 0,e),n=c.evaluate.apply(void 0,e);if(void 0!==t&&void 0!==n)return l(t,n,o)}}:l(s,c,o)}function ti(e,t,n){return"color"===t.type?n=ut.parse(n):"formatted"===t.type?n=ht.fromString(n.toString()):"resolvedImage"===t.type?n=mt.fromString(n.toString()):Xn(n)===t.type||"enum"===t.type&&t.values[n]||(n=void 0),Jn(n,e.default,t.default)}St.register(zn,{error:[{kind:"error"},[Xe],(e,[t])=>{throw new xt(t.evaluate(e))}],typeof:[Xe,[Qe],(e,[t])=>it(bt(t.evaluate(e)))],"to-rgba":[nt(He,4),[Ye],(e,[t])=>t.evaluate(e).toArray()],rgb:[Ye,[He,He,He],Fn],rgba:[Ye,[He,He,He,He],Fn],has:{type:Ke,overloads:[[[Xe],(e,[t])=>Nn(t.evaluate(e),e.properties())],[[Xe,Je],(e,[t,n])=>Nn(t.evaluate(e),n.evaluate(e))]]},get:{type:Qe,overloads:[[[Xe],(e,[t])=>Un(t.evaluate(e),e.properties())],[[Xe,Je],(e,[t,n])=>Un(t.evaluate(e),n.evaluate(e))]]},"feature-state":[Qe,[Xe],(e,[t])=>Un(t.evaluate(e),e.featureState||{})],properties:[Je,[],e=>e.properties()],"geometry-type":[Xe,[],e=>e.geometryType()],id:[Qe,[],e=>e.id()],zoom:[He,[],e=>e.globals.zoom],pitch:[He,[],e=>e.globals.pitch||0],"distance-from-center":[He,[],e=>e.distanceFromCenter()],"heatmap-density":[He,[],e=>e.globals.heatmapDensity||0],"line-progress":[He,[],e=>e.globals.lineProgress||0],"sky-radial-progress":[He,[],e=>e.globals.skyRadialProgress||0],accumulated:[Qe,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[He,Vn(He),(e,t)=>{let n=0;for(const i of t)n+=i.evaluate(e);return n}],"*":[He,Vn(He),(e,t)=>{let n=1;for(const i of t)n*=i.evaluate(e);return n}],"-":{type:He,overloads:[[[He,He],(e,[t,n])=>t.evaluate(e)-n.evaluate(e)],[[He],(e,[t])=>-t.evaluate(e)]]},"/":[He,[He,He],(e,[t,n])=>t.evaluate(e)/n.evaluate(e)],"%":[He,[He,He],(e,[t,n])=>t.evaluate(e)%n.evaluate(e)],ln2:[He,[],()=>Math.LN2],pi:[He,[],()=>Math.PI],e:[He,[],()=>Math.E],"^":[He,[He,He],(e,[t,n])=>Math.pow(t.evaluate(e),n.evaluate(e))],sqrt:[He,[He],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[He,[He],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[He,[He],(e,[t])=>Math.log(t.evaluate(e))],log2:[He,[He],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[He,[He],(e,[t])=>Math.sin(t.evaluate(e))],cos:[He,[He],(e,[t])=>Math.cos(t.evaluate(e))],tan:[He,[He],(e,[t])=>Math.tan(t.evaluate(e))],asin:[He,[He],(e,[t])=>Math.asin(t.evaluate(e))],acos:[He,[He],(e,[t])=>Math.acos(t.evaluate(e))],atan:[He,[He],(e,[t])=>Math.atan(t.evaluate(e))],min:[He,Vn(He),(e,t)=>Math.min(...t.map(t=>t.evaluate(e)))],max:[He,Vn(He),(e,t)=>Math.max(...t.map(t=>t.evaluate(e)))],abs:[He,[He],(e,[t])=>Math.abs(t.evaluate(e))],round:[He,[He],(e,[t])=>{const n=t.evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[He,[He],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[He,[He],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[Ke,[Xe,Qe],(e,[t,n])=>e.properties()[t.value]===n.value],"filter-id-==":[Ke,[Qe],(e,[t])=>e.id()===t.value],"filter-type-==":[Ke,[Xe],(e,[t])=>e.geometryType()===t.value],"filter-<":[Ke,[Xe,Qe],(e,[t,n])=>{const i=e.properties()[t.value],r=n.value;return typeof i==typeof r&&i<r}],"filter-id-<":[Ke,[Qe],(e,[t])=>{const n=e.id(),i=t.value;return typeof n==typeof i&&n<i}],"filter->":[Ke,[Xe,Qe],(e,[t,n])=>{const i=e.properties()[t.value],r=n.value;return typeof i==typeof r&&i>r}
vendor: 16,162 bytes, line 2
2],"filter-id->":[Ke,[Qe],(e,[t])=>{const n=e.id(),i=t.value;return typeof n==typeof i&&n>i}],"filter-<=":[Ke,[Xe,Qe],(e,[t,n])=>{const i=e.properties()[t.value],r=n.value;return typeof i==typeof r&&i<=r}],"filter-id-<=":[Ke,[Qe],(e,[t])=>{const n=e.id(),i=t.value;return typeof n==typeof i&&n<=i}],"filter->=":[Ke,[Xe,Qe],(e,[t,n])=>{const i=e.properties()[t.value],r=n.value;return typeof i==typeof r&&i>=r}],"filter-id->=":[Ke,[Qe],(e,[t])=>{const n=e.id(),i=t.value;return typeof n==typeof i&&n>=i}],"filter-has":[Ke,[Qe],(e,[t])=>t.value in e.properties()],"filter-has-id":[Ke,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[Ke,[nt(Xe)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[Ke,[nt(Qe)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[Ke,[Xe,nt(Qe)],(e,[t,n])=>n.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[Ke,[Xe,nt(Qe)],(e,[t,n])=>function(e,t,n,i){for(;n<=i;){const r=n+i>>1;if(t[r]===e)return!0;t[r]>e?i=r-1:n=r+1}return!1}(e.properties()[t.value],n.value,0,n.value.length-1)],all:{type:Ke,overloads:[[[Ke,Ke],(e,[t,n])=>t.evaluate(e)&&n.evaluate(e)],[Vn(Ke),(e,t)=>{for(const n of t)if(!n.evaluate(e))return!1;return!0}]]},any:{type:Ke,overloads:[[[Ke,Ke],(e,[t,n])=>t.evaluate(e)||n.evaluate(e)],[Vn(Ke),(e,t)=>{for(const n of t)if(n.evaluate(e))return!0;return!1}]]},"!":[Ke,[Ke],(e,[t])=>!t.evaluate(e)],"is-supported-script":[Ke,[Xe],(e,[t])=>{const n=e.globals&&e.globals.isSupportedScript;return!n||n(t.evaluate(e))}],upcase:[Xe,[Xe],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[Xe,[Xe],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[Xe,Vn(Qe),(e,t)=>t.map(t=>vt(t.evaluate(e))).join("")],"resolved-locale":[Xe,[$e],(e,[t])=>t.evaluate(e).resolvedLocale()]});class ni{constructor(e,t){this.expression=e,this._warningHistory={},this._evaluator=new kt,this._defaultValue=t?function(e){return"color"===e.type&&Kn(e.default)?new ut(0,0,0,0):"color"===e.type?ut.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null}evaluateWithoutErrorHandling(e,t,n,i,r,a,o,s){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.canonical=i||null,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=a,this._evaluator.featureTileCoord=o||null,this._evaluator.featureDistanceData=s||null,this.expression.evaluate(this._evaluator)}evaluate(e,t,n,i,r,a,o,s){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.canonical=i||null,this._evaluator.availableImages=r||null,this._evaluator.formattedSection=a||null,this._evaluator.featureTileCoord=o||null,this._evaluator.featureDistanceData=s||null;try{const e=this.expression.evaluate(this._evaluator);if(null==e||"number"==typeof e&&e!=e)return this._defaultValue;if(this._enumValues&&!(e in this._enumValues))throw new xt(`Expected value to be one of ${Object.keys(this._enumValues).map(e=>JSON.stringify(e)).join(", ")}, but found ${JSON.stringify(e)} instead.`);return e}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}}}function ii(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in zn}function ri(e,t){const n=new Qt(zn,[],t?function(e){const t={color:Ye,string:Xe,number:He,enum:Xe,boolean:Ke,formatted:et,resolvedImage:tt};return"array"===e.type?nt(t[e.value]||Qe,e.length):t[e.type]}(t):void 0),i=n.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return i?Wn(new ni(i,t)):qn(n.errors)}class ai{constructor(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!Kt(t.expression)}evaluateWithoutErrorHandling(e,t,n,i,r,a){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,i,r,a)}evaluate(e,t,n,i,r,a){return this._styleExpression.evaluate(e,t,n,i,r,a)}}class oi{constructor(e,t,n,i){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!Kt(t.expression),this.interpolationType=i}evaluateWithoutErrorHandling(e,t,n,i,r,a){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,i,r,a)}evaluate(e,t,n,i,r,a){return this._styleExpression.evaluate(e,t,n,i,r,a)}interpolationFactor(e,t,n){return this.interpolationType?bn.interpolationFactor(this.interpolationType,e,t,n):0}}function si(e,t){if("error"===(e=ri(e,t)).result)return e;const n=e.value.expression,i=Xt(n);if(!i&&!Gn(t))return qn([new qe("","data expressions not supported")]);const r=Yt(n,["zoom","pitch","distance-from-center"]);if(!r&&!Zn(t))return qn([new qe("","zoom expressions not supported")]);const a=function e(t){let n=null;if(t instanceof xn)n=e(t.result);else if(t instanceof yn){for(const i of t.args)if(n=e(i),n)break}else(t instanceof en||t instanceof bn)&&t.input instanceof St&&"zoom"===t.input.name&&(n=t);return n instanceof qe||t.eachChild(t=>{const i=e(t);i instanceof qe?n=i:!n&&i?n=new qe("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&i&&n!==i&&(n=new qe("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),n}(n);return a||r?a instanceof qe?qn([a]):a instanceof bn&&!Hn(t)?qn([new qe("",'"interpolate" expressions cannot be used with this property')]):Wn(a?new oi(i?"camera":"composite",e.value,a.labels,a instanceof bn?a.interpolation:void 0):new ai(i?"constant":"source",e.value)):qn([new qe("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class ci{constructor(e,t){this._parameters=e,this._specification=t,Ue(this,function e(t,n){const i="color"===n.type,r=t.stops&&"object"==typeof t.stops[0][0],a=r||!(r||void 0!==t.property),o=t.type||(Hn(n)?"exponential":"interval");if(i&&((t=Ue({},t)).stops&&(t.stops=t.stops.map(e=>[e[0],ut.parse(e[1])])),t.default=ut.parse(t.default?t.default:n.default)),t.colorSpace&&"rgb"!==t.colorSpace&&!gn[t.colorSpace])throw new Error("Unknown color space: "+t.colorSpace);let s,c,l;if("exponential"===o)s=ei;else if("interval"===o)s=$n;else if("categorical"===o){s=Qn,c=Object.create(null);for(const e of t.stops)c[e[0]]=e[1];l=typeof t.stops[0][0]}else{if("identity"!==o)throw new Error(`Unknown function type "${o}"`);s=ti}if(r){const i={},r=[];for(let e=0;e<t.stops.length;e++){const n=t.stops[e],a=n[0].zoom;void 0===i[a]&&(i[a]={zoom:a,type:t.type,property:t.property,default:t.default,stops:[]},r.push(a)),i[a].stops.push([n[0].value,n[1]])}const a=[];for(const t of r)a.push([i[t].zoom,e(i[t],n)]);const o={name:"linear"};return{kind:"composite",interpolationType:o,interpolationFactor:bn.interpolationFactor.bind(void 0,o),zoomStops:a.map(e=>e[0]),evaluate:({zoom:e},i)=>ei({stops:a,base:t.base},n,e).evaluate(e,i)}}if(a){const e="exponential"===o?{name:"exponential",base:void 0!==t.base?t.base:1}:null;return{kind:"camera",interpolationType:e,interpolationFactor:bn.interpolationFactor.bind(void 0,e),zoomStops:t.stops.map(e=>e[0]),evaluate:({zoom:e})=>s(t,n,e,c,l)}}return{kind:"source",evaluate(e,i){const r=i&&i.properties?i.properties[t.property]:void 0;return void 0===r?Jn(t.default,n.default):s(t,n,r,c,l)}}}(this._parameters,this._specification))}static deserialize(e){return new ci(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}class li{constructor(e,t,n,i){this.message=(e?e+": ":"")+n,i&&(this.identifier=i),null!=t&&t.__line__&&(this.line=t.__line__)}}function ui(e){const t=e.key,n=e.value,i=e.valueSpec||{},r=e.objectElementValidators||{},a=e.style,o=e.styleSpec;let s=[];const c=Xn(n);if("object"!==c)return[new li(t,n,`object expected, ${c} found`)];for(const l in n){const e=l.split(".")[0],c=i[e]||i["*"];let u;r[e]?u=r[e]:i[e]?u=Fi:r["*"]?u=r["*"]:i["*"]&&(u=Fi),u?s=s.concat(u({key:(t?t+".":t)+l,value:n[l],valueSpec:c,style:a,styleSpec:o,object:n,objectKey:l},n)):s.push(new li(t,n[l],`unknown property "${l}"`))}for(const l in i)r[l]||i[l].required&&void 0===i[l].default&&void 0===n[l]&&s.push(new li(t,n,`missing required property "${l}"`));return s}function di(e){const t=e.value,n=e.valueSpec,i=e.style,r=e.styleSpec,a=e.key,o=e.arrayElementValidator||Fi;if("array"!==Xn(t))return[new li(a,t,`array expected, ${Xn(t)} found`)];if(n.length&&t.length!==n.length)return[new li(a,t,`array length ${n.length} expected, length ${t.length} found`)];if(n["min-length"]&&t.length<n["min-length"])return[new li(a,t,`array length at least ${n["min-length"]} expected, length ${t.length} found`)];let s={type:n.value,values:n.values,minimum:n.minimum,maximum:n.maximum,function:void 0};r.$version<7&&(s.function=n.function),"object"===Xn(n.value)&&(s=n.value);let c=[];for(let l=0;l<t.length;l++)c=c.concat(o({array:t,arrayIndex:l,value:t[l],valueSpec:s,style:i,styleSpec:r,key:`${a}[${l}]`}));return c}function pi(e){const t=e.key,n=e.value,i=e.valueSpec;let r=Xn(n);if("number"===r&&n!=n&&(r="NaN"),"number"!==r)return[new li(t,n,`number expected, ${r} found`)];if("minimum"in i){let r=i.minimum;if("array"===Xn(i.minimum)&&(r=i.minimum[e.arrayIndex]),n<r)return[new li(t,n,`${n} is less than the minimum value ${r}`)]}if("maximum"in i){let r=i.maximum;if("array"===Xn(i.maximum)&&(r=i.maximum[e.arrayIndex]),n>r)return[new li(t,n,`${n} is greater than the maximum value ${r}`)]}return[]}function hi(e){const t=e.valueSpec,n=Ve(e.value.type);let i,r,a,o={};const s="categorical"!==n&&void 0===e.value.property,c=!s,l="array"===Xn(e.value.stops)&&"array"===Xn(e.value.stops[0])&&"object"===Xn(e.value.stops[0][0]),u=ui({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===n)return[new li(e.key,e.value,'identity function may not have a "stops" property')];let t=[];const i=e.value;return t=t.concat(di({key:e.key,value:i,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:d})),"array"===Xn(i)&&0===i.length&&t.push(new li(e.key,i,"array must have at least one stop")),t},default:function(e){return Fi({key:e.key,value:e.value,valueSpec:t,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===n&&s&&u.push(new li(e.key,e.value,'missing required property "property"')),"identity"===n||e.value.stops||u.push(new li(e.key,e.value,'missing required property "stops"')),"exponential"===n&&e.valueSpec.expression&&!Hn(e.valueSpec)&&u.push(new li(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(c&&!Gn(e.valueSpec)?u.push(new li(e.key,e.value,"property functions not supported")):s&&!Zn(e.valueSpec)&&u.push(new li(e.key,e.value,"zoom functions not supported"))),"categorical"!==n&&!l||void 0!==e.value.property||u.push(new li(e.key,e.value,'"property" property is required')),u;function d(e){let n=[];const i=e.value,s=e.key;if("array"!==Xn(i))return[new li(s,i,`array expected, ${Xn(i)} found`)];if(2!==i.length)return[new li(s,i,`array length 2 expected, length ${i.length} found`)];if(l){if("object"!==Xn(i[0]))return[new li(s,i,`object expected, ${Xn(i[0])} found`)];if(void 0===i[0].zoom)return[new li(s,i,"object stop key must have zoom")];if(void 0===i[0].value)return[new li(s,i,"object stop key must have value")];const t=Ve(i[0].zoom);if("number"!=typeof t)return[new li(s,i[0].zoom,"stop zoom values must be numbers")];if(a&&a>t)return[new li(s,i[0].zoom,"stop zoom values must appear in ascending order")];t!==a&&(a=t,r=void 0,o={}),n=n.concat(ui({key:s+"[0]",value:i[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:pi,value:p}}))}else n=n.concat(p({key:s+"[0]",value:i[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},i));return ii(We(i[1]))?n.concat([new li(s+"[1]",i[1],"expressions are not allowed in function stops.")]):n.concat(Fi({key:s+"[1]",value:i[1],valueSpec:t,style:e.style,styleSpec:e.styleSpec}))}function p(e,a){const s=Xn(e.value),c=Ve(e.value),l=null!==e.value?e.value:a;if(i){if(s!==i)return[new li(e.key,l,`${s} stop domain type must match previous stop domain type ${i}`)]}else i=s;if("number"!==s&&"string"!==s&&"boolean"!==s&&"number"!=typeof c&&"string"!=typeof c&&"boolean"!=typeof c)return[new li(e.key,l,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==n){let i=`number expected, ${s} found`;return Gn(t)&&void 0===n&&(i+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new li(e.key,l,i)]}return"categorical"!==n||"number"!==s||"number"==typeof c&&isFinite(c)&&Math.floor(c)===c?"categorical"!==n&&"number"===s&&"number"==typeof c&&"number"==typeof r&&void 0!==r&&c<r?[new li(e.key,l,"stop domain values must appear in ascending order")]:(r=c,"categorical"===n&&c in o?[new li(e.key,l,"stop domain values must be unique")]:(o[c]=!0,[])):[new li(e.key,l,"integer expected, found "+String(c))]}}function mi(e){const t=("property"===e.expressionContext?si:ri)(We(e.value),e.valueSpec);if("error"===t.result)return t.value.map(t=>new li(`${e.key}${t.key}`,e.value,t.message));const n=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&!n.outputDefined())return[new li(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===e.expressionContext&&"layout"===e.propertyType&&!Kt(n))return[new li(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext)return function e(t,n){const i=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(n.valueSpec&&n.valueSpec.expression)for(const a of n.valueSpec.expression.parameters)i.delete(a);if(0===i.size)return[];const r=[];return t instanceof St&&i.has(t.name)?[new li(n.key,n.value,`["${t.name}"] expression is not supported in a filter for a ${n.object.type} layer with id: ${n.object.id}`)]:(t.eachChild(t=>{r.push(...e(t,n))}),r)}(n,e);if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!Yt(n,["zoom","feature-state"]))return[new li(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!Xt(n))return[new li(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function fi(e){const t=e.key,n=e.value,i=e.valueSpec,r=[];return Array.isArray(i.values)?-1===i.values.indexOf(Ve(n))&&r.push(new li(t,n,`expected one of [${i.values.join(", ")}], ${JSON.stringify(n)} found`)):-1===Object.keys(i.values).indexOf(Ve(n))&&r.push(new li(t,n,`expected one of [${Object.keys(i.values).join(", ")}], ${JSON.stringify(n)} found`)),r}function gi(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(const t of e.slice(1))if(!gi(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}function bi(e,t="fill"){if(null==e)return{filter:()=>!0,needGeometry:!1,needFeature:!1};gi(e)||(e=wi(e));const n=e;let i=!0;try{i=function(e){if(!vi(e))return e;let t=We(e);return function e(t){let n=!1;const i=[];if("case"===t[0]){for(let e=1;e<t.length-1;e+=2)n=n||vi(t[e]),i.push(t[e+1]);i.push(t[t.length-1])}else if("match"===t[0]){n=n||vi(t[1]);for(let e=2;e<t.length-1;e+=2)i.push(t[e+1]);i.push(t[t.length-1])}else if("step"===t[0]){n=n||vi(t[1]);for(let e=1;e<t.length-1;e+=2)i.push(t[e+1])}n&&(t.length=0,t.push("any",...i));for(let r=1;r<t.length;r++)e(t[r])}(t),t=function e(t){if(!Array.isArray(t))return t;const n=function(e){if(yi.has(e[0]))for(let t=1;t<e.length;t++)if(vi(e[t]))return!0;return e}(t);return!0===n?n:n.map(t=>e(t))}(t),t}(n)}catch(e){console.warn(`Failed to extract static filter. Filter will c
2ontinue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n${JSON.stringify(n,null,2)}\n        `)}const r=Ne["filter_"+t],a=ri(i,r);let o=null;if("error"===a.result)throw new Error(a.value.map(e=>`${e.key}: ${e.message}`).join(", "));o=(e,t,n)=>a.value.evaluate(e,t,{},n);let s=null,c=null;if(i!==n){const e=ri(n,r);if("error"===e.result)throw new Error(e.value.map(e=>`${e.key}: ${e.message}`).join(", "));s=(t,n,i,r,a)=>e.value.evaluate(t,n,{},i,void 0,void 0,r,a),c=!Xt(e.value.expression)}return o=o,{filter:o,dynamicFilter:s||void 0,needGeometry:_i(i),needFeature:!!c}}function vi(e){if(!Array.isArray(e))return!1;if("pitch"===(t=e[0])||"distance-from-center"===t)return!0;var t;for(let n=1;n<e.length;n++)if(vi(e[n]))return!0;return!1}const yi=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function xi(e,t){return e<t?-1:e>t?1:0}function _i(e){if(!Array.isArray(e))return!1;if("within"===e[0])return!0;for(let t=1;t<e.length;t++)if(_i(e[t]))return!0;return!1}function wi(e){if(!e)return!0;const t=e[0];return e.length<=1?"any"!==t:"=="===t?Oi(e[1],e[2],"=="):"!="===t?Ei(Oi(e[1],e[2],"==")):"<"===t||">"===t||"<="===t||">="===t?Oi(e[1],e[2],t):"any"===t?(n=e.slice(1),["any"].concat(n.map(wi))):"all"===t?["all"].concat(e.slice(1).map(wi)):"none"===t?["all"].concat(e.slice(1).map(wi).map(Ei)):"in"===t?ji(e[1],e.slice(2)):"!in"===t?Ei(ji(e[1],e.slice(2))):"has"===t?Ci(e[1]):"!has"===t?Ei(Ci(e[1])):"within"!==t||e;var n}function Oi(e,t,n){switch(e){case"$type":return["filter-type-"+n,t];case"$id":return["filter-id-"+n,t];default:return["filter-"+n,e,t]}}function ji(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(e=>typeof e!=typeof t[0])?["filter-in-large",e,["literal",t.sort(xi)]]:["filter-in-small",e,["literal",t]]}}function Ci(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Ei(e){return["!",e]}function Ti(e){return gi(We(e.value))?mi(Ue({},e,{expressionContext:"filter",valueSpec:e.styleSpec["filter_"+(e.layerType||"fill")]})):function e(t){const n=t.value,i=t.key;if("array"!==Xn(n))return[new li(i,n,`array expected, ${Xn(n)} found`)];const r=t.styleSpec;let a,o=[];if(n.length<1)return[new li(i,n,"filter array must have at least 1 element")];switch(o=o.concat(fi({key:i+"[0]",value:n[0],valueSpec:r.filter_operator,style:t.style,styleSpec:t.styleSpec})),Ve(n[0])){case"<":case"<=":case">":case">=":n.length>=2&&"$type"===Ve(n[1])&&o.push(new li(i,n,`"$type" cannot be use with operator "${n[0]}"`));case"==":case"!=":3!==n.length&&o.push(new li(i,n,`filter array for operator "${n[0]}" must have 3 elements`));case"in":case"!in":n.length>=2&&(a=Xn(n[1]),"string"!==a&&o.push(new li(i+"[1]",n[1],`string expected, ${a} found`)));for(let e=2;e<n.length;e++)a=Xn(n[e]),"$type"===Ve(n[1])?o=o.concat(fi({key:`${i}[${e}]`,value:n[e],valueSpec:r.geometry_type,style:t.style,styleSpec:t.styleSpec})):"string"!==a&&"number"!==a&&"boolean"!==a&&o.push(new li(`${i}[${e}]`,n[e],`string, number, or boolean expected, ${a} found`));break;case"any":case"all":case"none":for(let r=1;r<n.length;r++)o=o.concat(e({key:`${i}[${r}]`,value:n[r],style:t.style,styleSpec:t.styleSpec}));break;case"has":case"!has":a=Xn(n[1]),2!==n.length?o.push(new li(i,n,`filter array for "${n[0]}" operator must have 2 elements`)):"string"!==a&&o.push(new li(i+"[1]",n[1],`string expected, ${a} found`));break;case"within":a=Xn(n[1]),2!==n.length?o.push(new li(i,n,`filter array for "${n[0]}" operator must have 2 elements`)):"object"!==a&&o.push(new li(i+"[1]",n[1],`object expected, ${a} found`))}return o}(e)}function ki(e,t){const n=e.key,i=e.style,r=e.styleSpec,a=e.value,o=e.objectKey,s=r[`${t}_${e.layerType}`];if(!s)return[];const c=o.match(/^(.*)-transition$/);if("paint"===t&&c&&s[c[1]]&&s[c[1]].transition)return Fi({key:n,value:a,valueSpec:r.transition,style:i,styleSpec:r});const l=e.valueSpec||s[o];if(!l)return[new li(n,a,`unknown property "${o}"`)];let u;if("string"===Xn(a)&&Gn(l)&&!l.tokens&&(u=/^{([^}]+)}$/.exec(a)))return[new li(n,a,`"${o}" does not support interpolation syntax\nUse an identity property function instead: \`{ "type": "identity", "property": ${JSON.stringify(u[1])} }\`.`)];const d=[];
vendor: 59,079 bytes, line 2
2return"symbol"===e.layerType&&("text-field"===o&&i&&!i.glyphs&&d.push(new li(n,a,'use of "text-field" requires a style "glyphs" property')),"text-font"===o&&Kn(We(a))&&"identity"===Ve(a.type)&&d.push(new li(n,a,'"text-font" does not support identity functions'))),d.concat(Fi({key:e.key,value:a,valueSpec:l,style:i,styleSpec:r,expressionContext:"property",propertyType:t,propertyKey:o}))}function Si(e){return ki(e,"paint")}function Ai(e){return ki(e,"layout")}function Ii(e){let t=[];const n=e.value,i=e.key,r=e.style,a=e.styleSpec;n.type||n.ref||t.push(new li(i,n,'either "type" or "ref" is required'));let o=Ve(n.type);const s=Ve(n.ref);if(n.id){const a=Ve(n.id);for(let o=0;o<e.arrayIndex;o++){const e=r.layers[o];Ve(e.id)===a&&t.push(new li(i,n.id,`duplicate layer id "${n.id}", previously used at line ${e.id.__line__}`))}}if("ref"in n){let e;["type","source","source-layer","filter","layout"].forEach(e=>{e in n&&t.push(new li(i,n[e],`"${e}" is prohibited for ref layers`))}),r.layers.forEach(t=>{Ve(t.id)===s&&(e=t)}),e?e.ref?t.push(new li(i,n.ref,"ref cannot reference another ref layer")):o=Ve(e.type):"string"==typeof s&&t.push(new li(i,n.ref,`ref layer "${s}" not found`))}else if("background"!==o&&"sky"!==o)if(n.source){const e=r.sources&&r.sources[n.source],a=e&&Ve(e.type);e?"vector"===a&&"raster"===o?t.push(new li(i,n.source,`layer "${n.id}" requires a raster source`)):"raster"===a&&"raster"!==o?t.push(new li(i,n.source,`layer "${n.id}" requires a vector source`)):"vector"!==a||n["source-layer"]?"raster-dem"===a&&"hillshade"!==o?t.push(new li(i,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==o||!n.paint||!n.paint["line-gradient"]||"geojson"===a&&e.lineMetrics||t.push(new li(i,n,`layer "${n.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new li(i,n,`layer "${n.id}" must specify a "source-layer"`)):t.push(new li(i,n.source,`source "${n.source}" not found`))}else t.push(new li(i,n,'missing required property "source"'));return t=t.concat(ui({key:i,value:n,valueSpec:a.layer,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":()=>[],type:()=>Fi({key:i+".type",value:n.type,valueSpec:a.layer.type,style:e.style,styleSpec:e.styleSpec,object:n,objectKey:"type"}),filter:e=>Ti(Ue({layerType:o},e)),layout:e=>ui({layer:n,key:e.key,value:e.value,valueSpec:{},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>Ai(Ue({layerType:o},e))}}),paint:e=>ui({layer:n,key:e.key,value:e.value,valueSpec:{},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>Si(Ue({layerType:o},e))}})}})),t}function Mi(e){const t=e.value,n=e.key,i=Xn(t);return"string"!==i?[new li(n,t,`string expected, ${i} found`)]:[]}const Li={promoteId:function({key:e,value:t}){if("string"===Xn(t))return Mi({key:e,value:t});{const n=[];for(const i in t)n.push(...Mi({key:`${e}.${i}`,value:t[i]}));return n}}};function Bi(e){const t=e.value,n=e.key,i=e.styleSpec,r=e.style;if(!t.type)return[new li(n,t,'"type" is required')];const a=Ve(t.type);let o;switch(a){case"vector":case"raster":case"raster-dem":return o=ui({key:n,value:t,valueSpec:i["source_"+a.replace("-","_")],style:e.style,styleSpec:i,objectElementValidators:Li}),o;case"geojson":if(o=ui({key:n,value:t,valueSpec:i.source_geojson,style:r,styleSpec:i,objectElementValidators:Li}),t.cluster)for(const e in t.clusterProperties){const[i,r]=t.clusterProperties[e],a="string"==typeof i?[i,["accumulated"],["get",e]]:i;o.push(...mi({key:`${n}.${e}.map`,value:r,expressionContext:"cluster-map"})),o.push(...mi({key:`${n}.${e}.reduce`,value:a,expressionContext:"cluster-reduce"}))}return o;case"video":return ui({key:n,value:t,valueSpec:i.source_video,style:r,styleSpec:i});case"image":return ui({key:n,value:t,valueSpec:i.source_image,style:r,styleSpec:i});case"canvas":return[new li(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return fi({key:n+".type",value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:r,styleSpec:i})}}function Ri(e){const t=e.value,n=e.styleSpec,i=n.light,r=e.style;let a=[];const o=Xn(t);if(void 0===t)return a;if("object"!==o)return a=a.concat([new li("light",t,`object expected, ${o} found`)]),a;for(const s in t){const e=s.match(/^(.*)-transition$/);a=a.concat(e&&i[e[1]]&&i[e[1]].transition?Fi({key:s,value:t[s],valueSpec:n.transition,style:r,styleSpec:n}):i[s]?Fi({key:s,value:t[s],valueSpec:i[s],style:r,styleSpec:n}):[new li(s,t[s],`unknown property "${s}"`)])}return a}function Di(e){const t=e.value,n=e.key,i=e.style,r=e.styleSpec,a=r.terrain;let o=[];const s=Xn(t);if(void 0===t)return o;if("object"!==s)return o=o.concat([new li("terrain",t,`object expected, ${s} found`)]),o;for(const c in t){const e=c.match(/^(.*)-transition$/);o=o.concat(e&&a[e[1]]&&a[e[1]].transition?Fi({key:c,value:t[c],valueSpec:r.transition,style:i,styleSpec:r}):a[c]?Fi({key:c,value:t[c],valueSpec:a[c],style:i,styleSpec:r}):[new li(c,t[c],`unknown property "${c}"`)])}if(t.source){const e=i.sources&&i.sources[t.source],r=e&&Ve(e.type);e?"raster-dem"!==r&&o.push(new li(n,t.source,`terrain cannot be used with a source of type ${String(r)}, it only be used with a "raster-dem" source type`)):o.push(new li(n,t.source,`source "${t.source}" not found`))}else o.push(new li(n,t,'terrain is missing required property "source"'));return o}function Pi(e){const t=e.value,n=e.style,i=e.styleSpec,r=i.fog;let a=[];const o=Xn(t);if(void 0===t)return a;if("object"!==o)return a=a.concat([new li("fog",t,`object expected, ${o} found`)]),a;for(const s in t){const e=s.match(/^(.*)-transition$/);a=a.concat(e&&r[e[1]]&&r[e[1]].transition?Fi({key:s,value:t[s],valueSpec:i.transition,style:n,styleSpec:i}):r[s]?Fi({key:s,value:t[s],valueSpec:r[s],style:n,styleSpec:i}):[new li(s,t[s],`unknown property "${s}"`)])}return a}const zi={"*":()=>[],array:di,boolean:function(e){const t=e.value,n=e.key,i=Xn(t);return"boolean"!==i?[new li(n,t,`boolean expected, ${i} found`)]:[]},number:pi,color:function(e){const t=e.key,n=e.value,i=Xn(n);return"string"!==i?[new li(t,n,`color expected, ${i} found`)]:null===lt.parseCSSColor(n)?[new li(t,n,`color expected, "${n}" found`)]:[]},enum:fi,filter:Ti,function:hi,layer:Ii,object:ui,source:Bi,light:Ri,terrain:Di,fog:Pi,string:Mi,formatted:function(e){return 0===Mi(e).length?[]:mi(e)},resolvedImage:function(e){return 0===Mi(e).length?[]:mi(e)},projection:function(e){const t=e.value,n=e.styleSpec,i=n.projection,r=e.style;let a=[];const o=Xn(t);if("object"===o)for(const s in t)a=a.concat(Fi({key:s,value:t[s],valueSpec:i[s],style:r,styleSpec:n}));else"string"!==o&&(a=a.concat([new li("projection",t,`object or string expected, ${o} found`)]));return a}};function Fi(e){const t=e.value,n=e.valueSpec,i=e.styleSpec;return n.expression&&Kn(Ve(t))?hi(e):n.expression&&ii(We(t))?mi(e):n.type&&zi[n.type]?zi[n.type](e):ui(Ue({},e,{valueSpec:n.type?i[n.type]:n}))}function Ni(e){const t=e.value,n=e.key,i=Mi(e);return i.length||(-1===t.indexOf("{fontstack}")&&i.push(new li(n,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&i.push(new li(n,t,'"glyphs" url must include a "{range}" token'))),i}function Ui(e,t=Ne){return qi(Fi({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:Ni,"*":()=>[]}}))}const Vi=e=>qi(Si(e)),Wi=e=>qi(Ai(e));function qi(e){return e.slice().sort((e,t)=>e.line&&t.line?e.line-t.line:0)}function Gi(e,t){let n=!1;if(t&&t.length)for(const i of t)e.fire(new ze(new Error(i.message))),n=!0;return n}var Zi=Hi;function Hi(e,t,n){var i=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;var r=new Int32Array(this.arrayBuffer);e=r[0],this.d=(t=r[1])+2*(n=r[2]);for(var a=0;a<this.d*this.d;a++){var o=r[3+a],s=r[3+a+1];i.push(o===s?null:r.subarray(o,s))}var c=r[3+i.length+1];this.keys=r.subarray(r[3+i.length],c),this.bboxes=r.subarray(c),this.insert=this._insertReadonly}else{this.d=t+2*n;for(var l=0;l<this.d*this.d;l++)i.push([]);this.keys=[],this.bboxes=[]}this.n=t,this.extent=e,this.padding=n,this.scale=t/e,this.uid=0;var u=n/t*e;this.min=-u,this.max=e+u}Hi.prototype.insert=function(e,t,n,i,r){this._forEachCell(t,n,i,r,this._insertCell,this.uid++),this.keys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(i),this.bboxes.push(r)},Hi.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},Hi.prototype._insertCell=function(e,t,n,i,r,a){this.cells[r].push(a)},Hi.prototype.query=function(e,t,n,i,r){var a=this.min,o=this.max;if(e<=a&&t<=a&&o<=n&&o<=i&&!r)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(e,t,n,i,this._queryCell,s,{},r),s},Hi.prototype._queryCell=function(e,t,n,i,r,a,o,s){var c=this.cells[r];if(null!==c)for(var l=this.keys,u=this.bboxes,d=0;d<c.length;d++){var p=c[d];if(void 0===o[p]){var h=4*p;(s?s(u[h+0],u[h+1],u[h+2],u[h+3]):e<=u[h+2]&&t<=u[h+3]&&n>=u[h+0]&&i>=u[h+1])?(o[p]=!0,a.push(l[p])):o[p]=!1}}},Hi.prototype._forEachCell=function(e,t,n,i,r,a,o,s){for(var c=this._convertToCellCoord(e),l=this._convertToCellCoord(t),u=this._convertToCellCoord(n),d=this._convertToCellCoord(i),p=c;p<=u;p++)for(var h=l;h<=d;h++){var m=this.d*h+p;if((!s||s(this._convertFromCellCoord(p),this._convertFromCellCoord(h),this._convertFromCellCoord(p+1),this._convertFromCellCoord(h+1)))&&r.call(this,e,t,n,i,m,a,o,s))return}},Hi.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},Hi.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},Hi.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var e=this.cells,t=3+this.cells.length+1+1,n=0,i=0;i<this.cells.length;i++)n+=this.cells[i].length;var r=new Int32Array(t+n+this.keys.length+this.bboxes.length);r[0]=this.extent,r[1]=this.n,r[2]=this.padding;for(var a=t,o=0;o<e.length;o++){var s=e[o];r[3+o]=a,r.set(s,a),a+=s.length}return r[3+e.length]=a,r.set(this.keys,a),r[3+e.length+1]=a+=this.keys.length,r.set(this.bboxes,a),a+=this.bboxes.length,r.buffer};const Xi={};function Ki(e,t,n={}){Object.defineProperty(e,"_classRegistryKey",{value:t,writeable:!1}),Xi[t]={klass:e,omit:n.omit||[]}}Ki(Object,"Object"),Zi.serialize=function(e,t){const n=e.toArrayBuffer();return t&&t.push(n),{buffer:n}},Zi.deserialize=function(e){return new Zi(e.buffer)},Object.defineProperty(Zi,"name",{value:"Grid"}),Ki(Zi,"Grid"),Ki(ut,"Color"),Ki(Error,"Error"),Ki(je,"AJAXError"),Ki(mt,"ResolvedImage"),Ki(ci,"StylePropertyFunction"),Ki(ni,"StyleExpression",{omit:["_evaluator"]}),Ki(oi,"ZoomDependentExpression"),Ki(ai,"ZoomConstantExpression"),Ki(St,"CompoundExpression",{omit:["_evaluate"]});for(const Rh in zn)Xi[zn[Rh]._classRegistryKey]||Ki(zn[Rh],"Expression"+Rh);function Yi(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function Ji(e){return o.ImageBitmap&&e instanceof o.ImageBitmap}function Qi(e,t){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp)return e;if(Yi(e)||Ji(e))return t&&t.push(e),e;if(ArrayBuffer.isView(e)){const n=e;return t&&t.push(n.buffer),n}if(e instanceof o.ImageData)return t&&t.push(e.data.buffer),e;if(Array.isArray(e)){const n=[];for(const i of e)n.push(Qi(i,t));return n}if("object"==typeof e){const n=e.constructor,i=n._classRegistryKey;if(!i)throw new Error("can't serialize object of unregistered class "+i);const r=n.serialize?n.serialize(e,t):{};if(!n.serialize){for(const n in e)e.hasOwnProperty(n)&&(Xi[i].omit.indexOf(n)>=0||(r[n]=Qi(e[n],t)));e instanceof Error&&(r.message=e.message)}if(r.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==i&&(r.$name=i),r}throw new Error("can't serialize object of type "+typeof e)}function $i(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||Yi(e)||Ji(e)||ArrayBuffer.isView(e)||e instanceof o.ImageData)return e;if(Array.isArray(e))return e.map($i);if("object"==typeof e){const t=e.$name||"Object",{klass:n}=Xi[t];if(!n)throw new Error("can't deserialize unregistered class "+t);if(n.deserialize)return n.deserialize(e);const i=Object.create(n.prototype);for(const r of Object.keys(e))"$name"!==r&&(i[r]=$i(e[r]));return i}throw new Error("can't deserialize object of type "+typeof e)}class er{constructor(){this.first=!0}update(e,t){const n=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=t):this.lastFloorZoom<n&&(this.lastIntegerZoom=n,this.lastIntegerZoomTime=t),e!==this.lastZoom&&(this.lastZoom=e,this.lastFloorZoom=n,!0))}}const tr=e=>e>=1536&&e<=1791,nr=e=>e>=1872&&e<=1919,ir=e=>e>=2208&&e<=2303,rr=e=>e>=11904&&e<=12031,ar=e=>e>=12032&&e<=12255,or=e=>e>=12272&&e<=12287,sr=e=>e>=12288&&e<=12351,cr=e=>e>=12352&&e<=12447,lr=e=>e>=12448&&e<=12543,ur=e=>e>=12544&&e<=12591,dr=e=>e>=12704&&e<=12735,pr=e=>e>=12736&&e<=12783,hr=e=>e>=12784&&e<=12799,mr=e=>e>=12800&&e<=13055,fr=e=>e>=13056&&e<=13311,gr=e=>e>=13312&&e<=19903,br=e=>e>=19968&&e<=40959,vr=e=>e>=40960&&e<=42127,yr=e=>e>=42128&&e<=42191,xr=e=>e>=44032&&e<=55215,_r=e=>e>=63744&&e<=64255,wr=e=>e>=64336&&e<=65023,Or=e=>e>=65040&&e<=65055,jr=e=>e>=65072&&e<=65103,Cr=e=>e>=65104&&e<=65135,Er=e=>e>=65136&&e<=65279,Tr=e=>e>=65280&&e<=65519;function kr(e){for(const t of e)if(Ir(t.charCodeAt(0)))return!0;return!1}function Sr(e){for(const t of e)if(!Ar(t.charCodeAt(0)))return!1;return!0}function Ar(e){return!(tr(e)||nr(e)||ir(e)||wr(e)||Er(e))}function Ir(e){return!(746!==e&&747!==e&&(e<4352||!(dr(e)||ur(e)||jr(e)&&!(e>=65097&&e<=65103)||_r(e)||fr(e)||rr(e)||pr(e)||!(!sr(e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||gr(e)||br(e)||mr(e)||(e=>e>=12592&&e<=12687)(e)||(e=>e>=43360&&e<=43391)(e)||(e=>e>=55216&&e<=55295)(e)||(e=>e>=4352&&e<=4607)(e)||xr(e)||cr(e)||or(e)||(e=>e>=12688&&e<=12703)(e)||ar(e)||hr(e)||lr(e)&&12540!==e||!(!Tr(e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!Cr(e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||(e=>e>=5120&&e<=5759)(e)||(e=>e>=6320&&e<=6399)(e)||Or(e)||(e=>e>=19904&&e<=19967)(e)||vr(e)||yr(e))))}function Mr(e){return!(Ir(e)||function(e){return!!((e=>e>=128&&e<=255)(e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||(e=>e>=8192&&e<=8303)(e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||(e=>e>=8448&&e<=8527)(e)||(e=>e>=8528&&e<=8591)(e)||(e=>e>=8960&&e<=9215)(e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||(e=>e>=9216&&e<=9279)(e)&&9251!==e||(e=>e>=9280&&e<=9311)(e)||(e=>e>=9312&&e<=9471)(e)||(e=>e>=9632&&e<=9727)(e)||(e=>e>=9728&&e<=9983)(e)&&!(e>=9754&&e<=9759)||(e=>e>=11008&&e<=11263)(e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||sr(e)||lr(e)||(e=>e>=57344&&e<=63743)(e)||jr(e)||Cr(e)||Tr(e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}(e))}function Lr(e){return e>=1424&&e<=2303||wr(e)||Er(e)}function Br(e,t){return!(!t&&Lr(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||(e=>e>=6016&&e<=6143)(e))}function Rr(e){for(const t of e)if(Lr(t.charCodeAt(0)))return!0;return!1}const Dr="deferred",Pr="loading",zr="loaded";let Fr=null,Nr="unavailable",Ur=null;const Vr=function(e){e&&"string"==typeof e&&e.indexOf("NetworkError")>-1&&(Nr="error"),Fr&&Fr(e)};function Wr(){qr.fire(new Pe("pluginStateChange",{pluginStatus:Nr,pluginURL:Ur}))}const qr=new Fe,Gr=function(){return Nr},Zr=function(){if(Nr!==Dr||!Ur)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Nr=Pr,Wr(),Ur&&Te({url:Ur},e=>{e?Vr(e):(Nr=zr,Wr())})},Hr={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Nr===zr||null!=Hr.applyArabicShaping,isLoading:()=>Nr===Pr,setState(e){Nr=e.pluginStatus,Ur=e.pluginURL},isParsed:()=>null!=Hr.applyArabicShaping&&null!=Hr.processBidirectionalText&&null!=Hr.processStyledBidirectionalText,getPluginURL:()=>Ur};class Xr{constructor(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.zoomHistory=t.zoomHistory,this.transition=t.transition,this.pitch=t.pitch):(this.now=0,this.fadeDuration=0,this.zoomHistory=new er,this.transition={},this.pitch=0)}isSupportedScript(e){return function(e,t){for(const n of e)if(!Br(n.charCodeAt(0),t))return!1;return!0}(e,Hr.isLoaded())}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){const e=this.zoom,t=e-Math.floor(e),n=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*t}}}class Kr{constructor(e,t){this.property=e,this.value=t,this.expression=function(e,t){if(Kn(e))return new ci(e,t);if(ii(e)){const n=si(e,t);if("error"===n.result)throw new Error(n.value.map(e=>`${e.key}: ${e.message}`).join(", "));return n.value}{let n=e;return"string"==typeof e&&"color"===t.type&&(n=ut.parse(e)),{kind:"constant",evaluate:()=>n}}}(void 0===t?e.specification.default:t,e.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,t,n){return this.property.possiblyEvaluate(this,e,t,n)}}class Yr{constructor(e){this.property=e,this.value=new Kr(e,void 0)}transitioned(e,t){return new Qr(this.property,this.value,t,x({},e.transition,this.transition),e.now)}untransitioned(){return new Qr(this.property,this.value,null,{},0)}}class Jr{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)}getValue(e){return A(this._values[e].value.value)}setValue(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Yr(this._values[e].property)),this._values[e].value=new Kr(this._values[e].property,null===t?void 0:A(t))}getTransition(e){return A(this._values[e].transition)}setTransition(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new Yr(this._values[e].property)),this._values[e].transition=A(t)||void 0}serialize(){const e={};for(const t of Object.keys(this._values)){const n=this.getValue(t);void 0!==n&&(e[t]=n);const i=this.getTransition(t);void 0!==i&&(e[t+"-transition"]=i)}return e}transitioned(e,t){const n=new $r(this._properties);for(const i of Object.keys(this._values))n._values[i]=this._values[i].transitioned(e,t._values[i]);return n}untransitioned(){const e=new $r(this._properties);for(const t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}}class Qr{constructor(e,t,n,i,r){const a=i.delay||0,o=i.duration||0;r=r||0,this.property=e,this.value=t,this.begin=r+a,this.end=this.begin+o,e.specification.transition&&(i.delay||i.duration)&&(this.prior=n)}possiblyEvaluate(e,t,n){const i=e.now||0,r=this.value.possiblyEvaluate(e,t,n),a=this.prior;if(a){if(i>this.end)return this.prior=null,r;if(this.value.isDataDriven())return this.prior=null,r;if(i<this.begin)return a.possiblyEvaluate(e,t,n);{const o=(i-this.begin)/(this.end-this.begin);return this.property.interpolate(a.possiblyEvaluate(e,t,n),r,p(o))}}return r}}class $r{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,t,n){const i=new na(this._properties);for(const r of Object.keys(this._values))i._values[r]=this._values[r].possiblyEvaluate(e,t,n);return i}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class ea{constructor(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)}getValue(e){return A(this._values[e].value)}setValue(e,t){this._values[e]=new Kr(this._values[e].property,null===t?void 0:A(t))}serialize(){const e={};for(const t of Object.keys(this._values)){const n=this.getValue(t);void 0!==n&&(e[t]=n)}return e}possiblyEvaluate(e,t,n){const i=new na(this._properties);for(const r of Object.keys(this._values))i._values[r]=this._values[r].possiblyEvaluate(e,t,n);return i}}class ta{constructor(e,t,n){this.property=e,this.value=t,this.parameters=n}isConstant(){return"constant"===this.value.kind}constantOr(e){return"constant"===this.value.kind?this.value.value:e}evaluate(e,t,n,i){return this.property.evaluate(this.value,this.parameters,e,t,n,i)}}class na{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class ia{constructor(e){this.specification=e}possiblyEvaluate(e,t){return e.expression.evaluate(t)}interpolate(e,t,n){const i=nn[this.specification.type];return i?i(e,t,n):e}}class ra{constructor(e,t){this.specification=e,this.overrides=t}possiblyEvaluate(e,t,n,i){return new ta(this,"constant"===e.expression.kind||"camera"===e.expression.kind?{kind:"constant",value:e.expression.evaluate(t,null,{},n,i)}:e.expression,t)}interpolate(e,t,n){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new ta(this,{kind:"constant",value:void 0},e.parameters);const i=nn[this.specification.type];return i?new ta(this,{kind:"constant",value:i(e.value.value,t.value.value,n)},e.parameters):e}evaluate(e,t,n,i,r,a){return"constant"===e.kind?e.value:e.evaluate(t,n,i,r,a)}}class aa extends ra{possiblyEvaluate(e,t,n,i){if(void 0===e.value)return new ta(this,{kind:"constant",value:void 0},t);if("constant"===e.expression.kind){const r=e.expression.evaluate(t,null,{},n,i),a="resolvedImage"===e.property.specification.type&&"string"!=typeof r?r.name:r,o=this._calculate(a,a,a,t);return new ta(this,{kind:"constant",value:o},t)}if("camera"===e.expression.kind){const n=this._calculate(e.expression.evaluate({zoom:t.zoom-1}),e.expression.evaluate({zoom:t.zoom}),e.expression.evaluate({zoom:t.zoom+1}),t);return new ta(this,{kind:"constant",value:n},t)}return new ta(this,e.expression,t)}evaluate(e,t,n,i,r,a){if("source"===e.kind){const o=e.evaluate(t,n,i,r,a);return this._calculate(o,o,o,t)}return"composite"===e.kind?this._calculate(e.evaluate({zoom:Math.floor(t.zoom)-1},n,i),e.evaluate({zoom:Math.floor(t.zoom)},n,i),e.evaluate({zoom:Math.floor(t.zoom)+1},n,i),t):e.value}_calculate(e,t,n,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:e,to:t,other:n}:{from:n,to:t,other:e}}interpolate(e){return e}}class oa{constructor(e){this.specification=e}possiblyEvaluate(e,t,n,i){if(void 0!==e.value){if("constant"===e.expression.kind){const r=e.expression.evaluate(t,null,{},n,i);return this._calculate(r,r,r,t)}return this._calculate(e.expression.evaluate(new Xr(Math.floor(t.zoom-1),t)),e.expression.evaluate(new Xr(Math.floor(t.zoom),t)),e.expression.evaluate(new Xr(Math.floor(t.zoom+1),t)),t)}}_calculate(e,t,n,i){return i.zoom>i.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}}interpolate(e){return e}}class sa{constructor(e){this.specification=e}possiblyEvaluate(e,t,n,i){return!!e.expression.evaluate(t,null,{},n,i)}interpolate(){return!1}}class ca{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];for(const t in e){const n=e[t];n.specification.overridable&&this.overridableProperties.push(t);const i=this.defaultPropertyValues[t]=new Kr(n,void 0),r=this.defaultTransitionablePropertyValues[t]=new Yr(n);this.defaultTransitioningPropertyValues[t]=r.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=i.possiblyEvaluate({})}}}function la(e,t){return 256*(e=f(Math.floor(e),0,255))+f(Math.floor(t),0,255)}Ki(ra,"DataDrivenProperty"),Ki(ia,"DataConstantProperty"),Ki(aa,"CrossFadedDataDrivenProperty"),Ki(oa,"CrossFadedProperty"),Ki(sa,"ColorRampProperty");const ua={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class da{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class pa{constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){const t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function ha(e,t=1){let n=0,i=0;return{members:e.map(e=>{const r=ua[e.type].BYTES_PER_ELEMENT,a=n=ma(n,Math.max(t,r)),o=e.components||1;return i=Math.max(i,r),n+=r*o,{name:e.name,type:e.type,components:o,offset:a}}),size:ma(n,Math.max(i,t)),alignment:t}}function ma(e,t){return Math.ceil(e/t)*t}class fa extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const i=2*e;return this.int16[i+0]=t,this.int16[i+1]=n,e}}fa.prototype.bytesPerElement=4,Ki(fa,"StructArrayLayout2i4");class ga extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n)}emplace(e,t,n,i){const r=3*e;return this.int16[r+0]=t,this.int16[r+1]=n,this.int16[r+2]=i,e}}ga.prototype.bytesPerElement=6,Ki(ga,"StructArrayLayout3i6");class ba extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n,i)}emplace(e,t,n,i,r){const a=4*e;return this.int16[a+0]=t,this.int16[a+1]=n,this.int16[a+2]=i,this.int16[a+3]=r,e}}ba.prototype.bytesPerElement=8,Ki(ba,"StructArrayLayout4i8");class va extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,a,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,n,i,r,a,o)}emplace(e,t,n,i,r,a,o,s){const c=6*e,l=12*e,u=3*e;return this.int16[c+0]=t,this.int16[c+1]=n,this.uint8[l+4]=i,this.uint8[l+5]=r,this.uint8[l+6]=a,this.uint8[l+7]=o,this.float32[u+2]=s,e}}va.prototype.bytesPerElement=12,Ki(va,"StructArrayLayout2i4ub1f12");class ya extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n,i)}emplace(e,t,n,i,r){const a=4*e;return this.float32[a+0]=t,this.float32[a+1]=n,this.float32[a+2]=i,this.float32[a+3]=r,e}}ya.prototype.bytesPerElement=16,Ki(ya,"StructArrayLayout4f16");class xa extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,a,o,s,c,l){const u=this.length;return this.resize(u+1),this.emplace(u,e,t,n,i,r,a,o,s,c,l)}emplace(e,t,n,i,r,a,o,s,c,l,u){const d=10*e;return this.uint16[d+0]=t,this.uint16[d+1]=n,this.uint16[d+2]=i,this.uint16[d+3]=r,this.uint16[d+4]=a,this.uint16[d+5]=o,this.uint16[d+6]=s,this.uint16[d+7]=c,this.uint16[d+8]=l,this.uint16[d+9]=u,e}}xa.prototype.bytesPerElement=20,Ki(xa,"StructArrayLayout10ui20");class _a extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,a,o,s){const c=this.length;return this.resize(c+1),this.emplace(c,e,t,n,i,r,a,o,s)}emplace(e,t,n,i,r,a,o,s,c){const l=8*e;return this.uint16[l+0]=t,this.uint16[l+1]=n,this.uint16[l+2]=i,this.uint16[l+3]=r,this.uint16[l+4]=a,this.uint16[l+5]=o,this.uint16[l+6]=s,this.uint16[l+7]=c,e}}_a.prototype.bytesPerElement=16,Ki(_a,"StructArrayLayout8ui16");class wa extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,a){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,i,r,a)}emplace(e,t,n,i,r,a,o){const s=6*e;return this.int16[s+0]=t,this.int16[s+1]=n,this.int16[s+2]=i,this.int16[s+3]=r,this.int16[s+4]=a,this.int16[s+5]=o,e}}wa.prototype.bytesPerElement=12,Ki(wa,"StructArrayLayout6i12");class Oa extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,a,o,s,c,l,u,d,p,h,m,f){const g=this.length;return this.resize(g+1),this.emplace(g,e,t,n,i,r,a,o,s,c,l,u,d,p,h,m,f)}emplace(e,t,n,i,r,a,o,s,c,l,u,d,p,h,m,f,g){const b=16*e;return this.int16[b+0]=t,this.int16[b+1]=n,this.int16[b+2]=i,this.int16[b+3]=r,this.uint16[b+4]=a,this.uint16[b+5]=o,this.uint16[b+6]=s,this.uint16[b+7]=c,this.int16[b+8]=l,this.int16[b+9]=u,this.int16[b+10]=d,this.int16[b+11]=p,this.int16[b+12]=h,this.int16[b+13]=m,this.int16[b+14]=f,this.int16[b+15]=g,e}}Oa.prototype.bytesPerElement=32,Ki(Oa,"StructArrayLayout4i4ui4i4i32");class ja extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n)}emplace(e,t,n,i){const r=3*e;return this.float32[r+0]=t,this.float32[r+1]=n,this.float32[r+2]=i,e}}ja.prototype.bytesPerElement=12,Ki(ja,"StructArrayLayout3f12");class Ca extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint32[1*e+0]=t,e}}Ca.prototype.bytesPerElement=4,Ki(Ca,"StructArrayLayout1ul4");class Ea extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,a,o,s,c,l,u,d,p){const h=this.length;return this.resize(h+1),this.emplace(h,e,t,n,i,r,a,o,s,c,l,u,d,p)}emplace(e,t,n,i,r,a,o,s,c,l,u,d,p,h){const m=20*e,f=10*e;return this.int16[m+0]=t,this.int16[m+1]=n,this.int16[m+2]=i,this.int16[m+3]=r,this.int16[m+4]=a,this.float32[f+3]=o,this.float32[f+4]=s,this.float32[f+5]=c,this.float32[f+6]=l,this.int16[m+14]=u,this.uint32[f+8]=d,this.uint16[m+18]=p,this.uint16[m+19]=h,e}}Ea.prototype.bytesPerElement=40,Ki(Ea,"StructArrayLayout5i4f1i1ul2ui40");class Ta extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,a,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,n,i,r,a,o)}emplace(e,t,n,i,r,a,o,s){const c=8*e;return this.int16[c+0]=t,this.int16[c+1]=n,this.int16[c+2]=i,this.int16[c+4]=r,this.int16[c+5]=a,this.int16[c+6]=o,this.int16[c+7]=s,e}}Ta.prototype.bytesPerElement=16,Ki(Ta,"StructArrayLayout3i2i2i16");class ka extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,i,r)}emplace(e,t,n,i,r,a){const o=4*e,s=8*e;return this.float32[o+0]=t,this.float32[o+1]=n,this.float32[o+2]=i,this.int16[s+6]=r,this.int16[s+7]=a,e}}ka.prototype.bytesPerElement=16,Ki(ka,"StructArrayLayout2f1f2i16");class Sa extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n,i)}emplace(e,t,n,i,r){const a=12*e,o=3*e;return this.uint8[a+0]=t,this.uint8[a+1]=n,this.float32[o+1]=i,this.float32[o+2]=r,e}}Sa.prototype.bytesPerElement=12,Ki(Sa,"StructArrayLayout2ub2f12");class Aa extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n){const i=this.length;return this.resize(i+1),this.emplace(i,e,t,n)}emplace(e,t,n,i){const r=3*e;return this.uint16[r+0]=t,this.uint16[r+1]=n,this.uint16[r+2]=i,e}}Aa.prototype.bytesPerElement=6,Ki(Aa,"StructArrayLayout3ui6");class Ia extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,a,o,s,c,l,u,d,p,h,m,f,g,b,v,y,x){const _=this.length;return this.resize(_+1),this.emplace(_,e,t,n,i,r,a,o,s,c,l,u,d,p,h,m,f,g,b,v,y,x)}emplace(e,t,n,i,r,a,o,s,c,l,u,d,p,h,m,f,g,b,v,y,x,_){const w=30*e,O=15*e,j=60*e;return this.int16[w+0]=t,this.int16[w+1]=n,this.int16[w+2]=i,this.float32[O+2]=r,this.float32[O+3]=a,this.uint16[w+8]=o,this.uint16[w+9]=s,this.uint32[O+5]=c,this.uint32[O+6]=l,this.uint32[O+7]=u,this.uint16[w+16]=d,this.uint16[w+17]=p,this.uint16[w+18]=h,this.float32[O+10]=m,this.float32[O+11]=f,this.uint8[j+48]=g,this.uint8[j+49]=b,this.uint8[j+50]=v,this.uint32[O+13]=y,this.int16[w+28]=x,this.uint8[j+58]=_,e}}Ia.prototype.bytesPerElement=60,Ki(Ia,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class Ma extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,a,o,s,c,l,u,d,p,h,m,f,g,b,v,y,x,_,w,O,j,C,E,T,k,S){const A=this.length;return this.resize(A+1),this.emplace(A,e,t,n,i,r,a,o,s,c,l,u,d,p,h,m,f,g,b,v,y,x,_,w,O,j,C,E,T,k,S)}emplace(e,t,n,i,r,a,o,s,c,l,u,d,p,h,m,f,g,b,v,y,x,_,w,O,j,C,E,T,k,S,A){const I=38*e,M=19*e;return this.int16[I+0]=t,this.int16[I+1]=n,this.int16[I+2]=i,this.float32[M+2]=r,this.float32[M+3]=a,this.int16[I+8]=o,this.int16[I+9]=s,this.int16[I+10]=c,this.int16[I+11]=l,this.int16[I+12]=u,this.int16[I+13]=d,this.uint16[I+14]=p,this.uint16[I+15]=h,this.uint16[I+16]=m,this.uint16[I+17]=f,this.uint16[I+18]=g,this.uint16[I+19]=b,this.uint16[I+20]=v,this.uint16[I+21]=y,this.uint16[I+22]=x,this.uint16[I+23]=_,this.uint16[I+24]=w,this.uint16[I+25]=O,this.uint16[I+26]=j,this.uint16[I+27]=C,this.uint16[I+28]=E,this.uint32[M+15]=T,this.float32[M+16]=k,this.float32[M+17]=S,this.float32[M+18]=A,e}}Ma.prototype.bytesPerElement=76,Ki(Ma,"StructArrayLayout3i2f6i15ui1ul3f76");class La extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.float32[1*e+0]=t,e}}La.prototype.bytesPerElement=4,Ki(La,"StructArrayLayout1f4");class Ba extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,a,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,n,i,r,a,o)}emplace(e,t,n,i,r,a,o,s){const c=7*e;return this.float32[c+0]=t,this.float32[c+1]=n,this.float32[c+2]=i,this.float32[c+3]=r,this.float32[c+4]=a,this.float32[c+5]=o,this.float32[c+6]=s,e}}Ba.prototype.bytesPerElement=28,Ki(Ba,"StructArrayLayout7f28");class Ra extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,i,r)}emplace(e,t,n,i,r,a){const o=5*e;return this.float32[o+0]=t,this.float32[o+1]=n,this.float32[o+2]=i,this.float32[o+3]=r,this.float32[o+4]=a,e}}Ra.prototype.bytesPerElement=20,Ki(Ra,"StructArrayLayout5f20");class Da extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,n,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,n,i)}emplace(e,t,n,i,r){const a=6*e;return this.uint32[3*e+0]=t,this.uint16[a+2]=n,this.uint16[a+3]=i,this.uint16[a+4]=r,e}}Da.prototype.bytesPerElement=12,Ki(Da,"StructArrayLayout1ul3ui12");class Pa extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const i=2*e;return this.uint16[i+0]=t,this.uint16[i+1]=n,e}}Pa.prototype.bytesPerElement=4,Ki(Pa,"StructArrayLayout2ui4");class za extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint16[1*e+0]=t,e}}za.prototype.bytesPerElement=2,Ki(za,"StructArrayLayout1ui2");class Fa extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){const n=this.length;return this.resize(n+1),this.emplace(n,e,t)}emplace(e,t,n){const i=2*e;return this.float32[i+0]=t,this.float32[i+1]=n,e}}Fa.prototype.bytesPerElement=8,Ki(Fa,"StructArrayLayout2f8");class Na extends pa{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,n,i,r,a,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,n,i,r,a,o)}emplace(e,t,n,i,r,a,o,s){const c=8*e,l=4*e;return this.int16[c+0]=t,this.int16[c+1]=n,this.int16[c+2]=i,this.int16[c+3]=r,this.int16[c+4]=a,this.int16[c+5]=o,this.float32[l+3]=s,e}}Na.prototype.bytesPerElement=16,Ki(Na,"StructArrayLayout6i1f16");class Ua extends da{get a_pos_30(){return this._structArray.int16[this._pos2+0]}get a_pos_31(){return this._structArray.int16[this._pos2+1]}get a_pos_32(){return this._structArray.int16[this._pos2+2]}get a_pos_normal_30(){return this._structArray.int16[this._pos2+3]}get a_pos_normal_31(){return this._structArray.int16[this._pos2+4]}get a_pos_normal_32(){return this._structArray.int16[this._pos2+5]}}Ua.prototype.size=12;class Va extends wa{get(e){return new Ua(this,e)}}Ki(Va,"FillExtrusionExtArray");class Wa extends da{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}Wa.prototype.size=40;class qa extends Ea{get(e){return new Wa(this,e)}}Ki(qa,"CollisionBoxArray");class Ga extends da{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(e){this._structArray.uint8[this._pos1+49]=e}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(e){this._structArray.uint8[this._pos1+50]=e}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(e){this._structArray.uint32[this._pos4+13]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(e){this._structArray.uint8[this._pos1+58]=e}}Ga.prototype.size=60;class Za extends Ia{get(e){return new Ga(this,e)}}Ki(Za,"PlacedSymbolArray");class Ha extends da{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+11]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+13]}get key(){return this._structArray.uint16[this._pos2+14]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+17]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+19]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+21]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+22]}get featureIndex(){return this._structArray.uint16[this._pos2+23]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+25]}get numIconVertices(){return this._structArray.uint16[this._pos2+26]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+27]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+28]}get crossTileID(){return this._structArray.uint32[this._pos4+15]}set crossTileID(e){this._structArray.uint32[this._pos4+15]=e}get textOffset0(){return this._structArray.float32[this._pos4+16]}get textOffset1(){return this._structArray.float32[this._pos4+17]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+18]}}Ha.prototype.size=76;class Xa extends Ma{get(e){return new Ha(this,e)}}Ki(Xa,"SymbolInstanceArray");class Ka extends La{getoffsetX(e){return this.float32[1*e+0]}}Ki(Ka,"GlyphOffsetArray");class Ya extends ga{getx(e){return this.int16[3*e+0]}gety(e){return this.int16[3*e+1]}gettileUnitDistanceFromAnchor(e){return this.int16[3*e+2]}}Ki(Ya,"SymbolLineVertexArray");class Ja extends da{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}Ja.prototype.size=12;class Qa extends Da{get(e){return new Ja(this,e)}}Ki(Qa,"FeatureIndexArray");class $a extends da{get a_centroid_pos0(){return this._structArray.uint16[this._pos2+0]}get a_centroid_pos1(){return this._structArray.uint16[this._pos2+1]}}$a.prototype.size=4;class eo extends Pa{get(e){return new $a(this,e)}}Ki(eo,"FillExtrusionCentroidArray");class to extends da{get a_pos_30(){return this._structArray.int16[this._pos2+0]}get a_pos_31(){return this._structArray.int16[this._pos2+1]}get a_pos_32(){return this._structArray.int16[this._pos2+2]}get a_pos_normal_30(){return this._structArray.int16[this._pos2+3]}get a_pos_normal_31(){return this._structArray.int16[this._pos2+4]}get a_pos_normal_32(){return this._structArray.int16[this._pos2+5]}get a_scale(){return this._structArray.float32[this._pos4+3]}}to.prototype.size=16;class no extends Na{get(e){return new to(this,e)}}Ki(no,"CircleGlobeExtArray");const io=ha([{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"}]),ro=ha([{name:"a_dash_to",components:4,type:"Uint16"},{name:"a_dash_from",components:4,type:"Uint16"}]);var ao=ct((function(e){e.exports=function(e,t){var n,i,r,a,o,s,c,l;for(i=e.length-(n=3&e.length),r=t,o=3432918353,s=461845907,l=0;l<i;)c=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24,++l,r=27492+(65535&(a=5*(65535&(r=(r^=c=(65535&(c=(c=(65535&c)*o+(((c>>>16)*o&65535)<<16)&4294967295)<<15|c>>>17))*s+(((c>>>16)*s&65535)<<16)&4294967295)<<13|r>>>19))+((5*(r>>>16)&65535)<<16)&4294967295))+((58964+(a>>>16)&65535)<<16);switch(c=0,n){case 3:c^=(255&e.charCodeAt(l+2))<<16;case 2:c^=(255&e.charCodeAt(l+1))<<8;case 1:r^=c=(65535&(c=(c=(65535&(c^=255&e.charCodeAt(l)))*o+(((c>>>16)*o&65535)<<16)&4294967295)<<15|c>>>17))*s+(((c>>>16)*s&65535)<<16)&4294967295}return r^=e.length,r=2246822507*(65535&(r^=r>>>16))+((2246822507*(r>>>16)&65535)<<16)&4294967295,r=3266489909*(65535&(r^=r>>>13))+((3266489909*(r>>>16)&65535)<<16)&4294967295,(r^=r>>>16)>>>0}})),oo=ct((function(e){e.exports=function(e,t){for(var n,i=e.length,r=t^i,a=0;i>=4;)n=1540483477*(65535&(n=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))+((1540483477*(n>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),i-=4,++a;switch(i){case 3:r^=(255&e.charCodeAt(a+2))<<16;case 2:r^=(255&e.charCodeAt(a+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(a)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),(r^=r>>>15)>>>0}})),so=ao,co=oo;so.murmur3=ao,so.murmur2=co;class lo{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,t,n,i){this.ids.push(uo(e)),this.positions.push(t,n,i)}getPositions(e){const t=uo(e);let n=0,i=this.ids.length-1;for(;n<i;){const e=n+i>>1;this.ids[e]>=t?i=e:n=e+1}const r=[];for(;this.ids[n]===t;)r.push({index:this.positions[3*n],start:this.positions[3*n+1],end:this.positions[3*n+2]}),n++;return r}static serialize(e,t){const n=new Float64Array(e.ids),i=new Uint32Array(e.positions);return function e(t,n,i,r){for(;i<r;){const a=t[i+r>>1];let o=i-1,s=r+1;for(;;){do{o++}while(t[o]<a);do{s--}while(t[s]>a);if(o>=s)break;po(t,o,s),po(n,3*o,3*s),po(n,3*o+1,3*s+1),po(n,3*o+2,3*s+2)}s-i<r-s?(e(t,n,i,s),i=s+1):(e(t,n,s+1,r),r=s)}}(n,i,0,n.length-1),t&&t.push(n.buffer,i.buffer),{ids:n,positions:i}}static deserialize(e){const t=new lo;return t.ids=e.ids,t.positions=e.positions,t.indexed=!0,t}}function uo(e){const t=+e;return!isNaN(t)&&Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER?t:so(String(e))}function po(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}Ki(lo,"FeaturePositionMap");class ho{constructor(e,t){this.gl=e.gl,this.location=t}}class mo extends ho{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1f(this.location,e))}}class fo extends ho{constructor(e,t){super(e,t),this.current=[0,0,0,0]}set(e){e[0]===this.current[0]&&e[1]===this.current[1]&&e[2]===this.current[2]&&e[3]===this.current[3]||(this.current=e,this.gl.uniform4f(this.location,e[0],e[1],e[2],e[3]))}}class go extends ho{constructor(e,t){super(e,t),this.current=ut.transparent}set(e){e.r===this.current.r&&e.g===this.current.g&&e.b===this.current.b&&e.a===this.current.a||(this.current=e,this.gl.uniform4f(this.location,e.r,e.g,e.b,e.a))}}const bo=new Float32Array(16),vo=new Float32Array(9),yo=new Float32Array(4);function xo(e){return[la(255*e.r,255*e.g),la(255*e.b,255*e.a)]}class _o{constructor(e,t,n){this.value=e,this.uniformNames=t.map(e=>"u_"+e),this.type=n}setUniform(e,t,n){e.set(n.constantOr(this.value))}getBinding(e,t,n){return"color"===this.type?new go(e,t):new mo(e,t)}}class wo{constructor(e,t){this.uniformNames=t.map(e=>"u_"+e),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,t){this.pixelRatioFrom=t.pixelRatio||1,this.pixelRatioTo=e.pixelRatio||1,this.patternFrom=t.tl.concat(t.br),this.patternTo=e.tl.concat(e.br)}setUniform(e,t,n,i){const r="u_pattern_to"===i||"u_dash_to"===i?this.patternTo:"u_pattern_from"===i||"u_dash_from"===i?this.patternFrom:"u_pixel_ratio_to"===i?this.pixelRatioTo:"u_pixel_ratio_from"===i?this.pixelRatioFrom:null;r&&e.set(r)}getBinding(e,t,n){return"u_pattern_from"===n||"u_pattern_to"===n||"u_dash_from"===n||"u_dash_to"===n?new fo(e,t):new mo(e,t)}}class Oo{constructor(e,t,n,i){this.expression=e,this.type=n,this.maxValue=0,this.paintVertexAttributes=t.map(e=>({name:"a_"+e,type:"Float32",components:"color"===n?2:1,offset:0})),this.paintVertexArray=new i}populatePaintArray(e,t,n,i,r,a){const o=this.paintVertexArray.length,s=this.expression.evaluate(new Xr(0),t,{},r,i,a);this.paintVertexArray.resize(e),this._setPaintValue(o,e,s)}updatePaintArray(e,t,n,i,r){const a=this.expression.evaluate({zoom:0},n,i,void 0,r);this._setPaintValue(e,t,a)}_setPaintValue(e,t,n){if("color"===this.type){const i=xo(n);for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,i[0],i[1])}else{for(let i=e;i<t;i++)this.paintVertexArray.emplace(i,n);this.maxValue=Math.max(this.maxValue,Math.abs(n))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class jo{constructor(e,t,n,i,r,a){this.expression=e,this.uniformNames=t.map(e=>`u_${e}_t`),this.type=n,this.useIntegerZoom=i,this.zoom=r,this.maxValue=0,this.paintVertexAttributes=t.map(e=>({name:"a_"+e,type:"Float32",components:"color"===n?4:2,offset:0})),this.paintVertexArray=new a}populatePaintArray(e,t,n,i,r,a){const o=this.expression.evaluate(new Xr(this.zoom),t,{},r,i,a),s=this.expression.evaluate(new Xr(this.zoom+1),t,{},r,i,a),c=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(c,e,o,s)}updatePaintArray(e,t,n,i,r){const a=this.expression.evaluate({zoom:this.zoom},n,i,void 0,r),o=this.expression.evaluate({zoom:this.zoom+1},n,i,void 0,r);this._setPaintValue(e,t,a,o)}_setPaintValue(e,t,n,i){if("color"===this.type){const r=xo(n),a=xo(i);for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,r[0],r[1],a[0],a[1])}else{for(let r=e;r<t;r++)this.paintVertexArray.emplace(r,n,i);this.maxValue=Math.max(this.maxValue,Math.abs(n),Math.abs(i))}}upload(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(e,t){const n=this.useIntegerZoom?Math.floor(t.zoom):t.zoom,i=f(this.expression.interpolationFactor(n,this.zoom,this.zoom+1),0,1);e.set(i)}getBinding(e,t,n){return new mo(e,t)}}class Co{constructor(e,t,n,i,r,a,o){this.expression=e,this.type=n,this.useIntegerZoom=i,this.zoom=r,this.layerId=o,this.paintVertexAttributes=("array"===n?ro:io).members;for(let s=0;s<t.length;++s);this.zoomInPaintVertexArray=new a,this.zoomOutPaintVertexArray=new a}populatePaintArray(e,t,n){const i=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(e),this.zoomOutPaintVertexArray.resize(e),this._setPaintValues(i,e,t.patterns&&t.patterns[this.layerId],n)}updatePaintArray(e,t,n,i,r,a){this._setPaintValues(e,t,n.patterns&&n.patterns[this.layerId],a)}_setPaintValues(e,t,n,i){if(!i||!n)return;const{min:r,mid:a,max:o}=n,s=i[r],c=i[a],l=i[o];if(s&&c&&l)for(let u=e;u<t;u++)this._setPaintValue(this.zoomInPaintVertexArray,u,c,s),this._setPaintValue(this.zoomOutPaintVertexArray,u,c,l)}_setPaintValue(e,t,n,i){e.emplace(t,n.tl[0],n.tl[1],n.br[0],n.br[1],i.tl[0],i.tl[1],i.br[0],i.br[1],n.pixelRatio,i.pixelRatio)}upload(e){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=e.createVertexBuffer(this.zoomInPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=e.createVertexBuffer(this.zoomOutPaintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))}destroy(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()}}class Eo{constructor(e,t,n=(()=>!0)){this.binders={},this._buffers=[];const i=[];for(const r in e.paint._values){if(!n(r))continue;const a=e.paint.get(r);if(!(a instanceof ta&&Gn(a.property.specification)))continue;const o=So(r,e.type),s=a.value,c=a.property.specification.type,l=a.property.useIntegerZoom,u=a.property.specification["property-type"],d="cross-faded"===u||"cross-faded-data-driven"===u,p="line-dasharray"===String(r)&&"constant"!==e.layout.get("line-cap").value.kind;if("constant"!==s.kind||p)if("source"===s.kind||p||d){const n=Mo(r,c,"source");this.binders[r]=d?new Co(s,o,c,l,t,n,e.id):new Oo(s,o,c,n),i.push("/a_"+r)}else{const e=Mo(r,c,"composite");this.binders[r]=new jo(s,o,c,l,t,e),i.push("/z_"+r)}else this.binders[r]=d?new wo(s.value,o):new _o(s.value,o,c),i.push("/u_"+r)}this.cacheKey=i.sort().join("")}getMaxValue(e){const t=this.binders[e];return t instanceof Oo||t instanceof jo?t.maxValue:0}populatePaintArrays(e,t,n,i,r,a){for(const o in this.binders){const s=this.binders[o];(s instanceof Oo||s instanceof jo||s instanceof Co)&&s.populatePaintArray(e,t,n,i,r,a)}}setConstantPatternPositions(e,t){for(const n in this.binders){const i=this.binders[n];i instanceof wo&&i.setConstantPatternPositions(e,t)}}updatePaintArrays(e,t,n,i,r,a){let o=!1;for(const s in e){const c=t.getPositions(s);for(const t of c){const c=n.feature(t.index);for(const n in this.binders){const l=this.binders[n];if((l instanceof Oo||l instanceof jo||l instanceof Co)&&!0===l.expression.isStateDependent){const u=i.paint.get(n);l.expression=u.value,l.updatePaintArray(t.start,t.end,c,e[s],r,a),o=!0}}}}return o}defines(){const e=[];for(const t in this.binders){const n=this.binders[t];(n instanceof _o||n instanceof wo)&&e.push(...n.uniformNames.map(e=>"#define HAS_UNIFORM_"+e))}return e}getBinderAttributes(){const e=[];for(const t in this.binders){const n=this.binders[t];if(n instanceof Oo||n instanceof jo||n instanceof Co)for(let t=0;t<n.paintVertexAttributes.length;t++)e.push(n.paintVertexAttributes[t].name)}return e}getBinderUniforms(){const e=[];for(const t in this.binders){const n=this.binders[t];if(n instanceof _o||n instanceof wo||n instanceof jo)for(const t of n.uniformNames)e.push(t)}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e,t){const n=[];for(const i in this.binders){const r=this.binders[i];if(r instanceof _o||r instanceof wo||r instanceof jo)for(const a of r.uniformNames)if(t[a]){const o=r.getBinding(e,t[a],a);n.push({name:a,property:i,binding:o})}}return n}setUniforms(e,t,n,i){for(const{name:r,property:a,binding:o}of t)this.binders[a].setUniform(o,i,n.get(a),r)}updatePaintBuffers(e){this._buffers=[];for(const t in this.binders){const n=this.binders[t];if(e&&n instanceof Co){const t=2===e.fromScale?n.zoomInPaintVertexBuffer:n.zoomOutPaintVertexBuffer;t&&this._buffers.push(t)}else(n instanceof Oo||n instanceof jo)&&n.paintVertexBuffer&&this._buffers.push(n.paintVertexBuffer)}}upload(e){for(const t in this.binders){const n=this.binders[t];(n instanceof Oo||n instanceof jo||n instanceof Co)&&n.upload(e)}this.updatePaintBuffers()}destroy(){for(const e in this.binders){const t=this.binders[e];(t instanceof Oo||t instanceof jo||t instanceof Co)&&t.destroy()}}}class To{constructor(e,t,n=(()=>!0)){this.programConfigurations={};for(const i of e)this.programConfigurations[i.id]=new Eo(i,t,n);this.needsUpload=!1,this._featureMap=new lo,this._bufferOffset=0}populatePaintArrays(e,t,n,i,r,a,o){for(const s in this.programConfigurations)this.programConfigurations[s].populatePaintArrays(e,t,i,r,a,o);void 0!==t.id&&this._featureMap.add(t.id,n,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,n,i,r){for(const a of n)this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(e,this._featureMap,t,a,i,r)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}const ko={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["ga
2pwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"line-dasharray":["dash_to","dash_from"]};function So(e,t){return ko[e]||[e.replace(t+"-","").replace(/-/g,"_")]}const Ao={"line-pattern":{source:xa,composite:xa},"fill-pattern":{source:xa,composite:xa},"fill-extrusion-pattern":{source:xa,composite:xa},"line-dasharray":{source:_a,composite:_a}},Io={color:{source:Fa,composite:ya},number:{source:La,composite:Fa}};function Mo(e,t,n){const i=Ao[e];return i&&i[n]||Io[t][n]}Ki(_o,"ConstantBinder"),Ki(wo,"CrossFadedConstantBinder"),Ki(Oo,"SourceExpressionBinder"),Ki(Co,"CrossFadedCompositeBinder"),Ki(jo,"CompositeExpressionBinder"),Ki(Eo,"ProgramConfiguration",{omit:["_buffers"]}),Ki(To,"ProgramConfigurationSet");const Lo="-transition";class Bo extends Fe{constructor(e,t){if(super(),this.id=e.id,this.type=e.type,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,"custom"!==e.type&&(this.metadata=(e=e).metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&"sky"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),t.layout&&(this._unevaluatedLayout=new ea(t.layout)),t.paint)){this._transitionablePaint=new Jr(t.paint);for(const t in e.paint)this.setPaintProperty(t,e.paint[t],{validate:!1});for(const t in e.layout)this.setLayoutProperty(t,e.layout[t],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new na(t.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,t,n={}){null!=t&&this._validate(Wi,`layers.${this.id}.layout.${e}`,e,t,n)||("visibility"!==e?this._unevaluatedLayout.setValue(e,t):this.visibility=t)}getPaintProperty(e){return T(e,Lo)?this._transitionablePaint.getTransition(e.slice(0,-Lo.length)):this._transitionablePaint.getValue(e)}setPaintProperty(e,t,n={}){if(null!=t&&this._validate(Vi,`layers.${this.id}.paint.${e}`,e,t,n))return!1;if(T(e,Lo))return this._transitionablePaint.setTransition(e.slice(0,-Lo.length),t||void 0),!1;{const n=this._transitionablePaint._values[e],i="cross-faded-data-driven"===n.property.specification["property-type"],r=n.value.isDataDriven(),a=n.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);const o=this._transitionablePaint._values[e].value;return o.isDataDriven()||r||i||this._handleOverridablePaintPropertyUpdate(e,a,o)}}_handleSpecialPaintPropertyUpdate(e){}getProgramIds(){return null}getProgramConfiguration(e){return null}_handleOverridablePaintPropertyUpdate(e,t,n){return!1}isHidden(e){return!!(this.minzoom&&e<this.minzoom)||!!(this.maxzoom&&e>=this.maxzoom)||"none"===this.visibility}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}
vendor: 50,023 bytes, line 2
2serialize(){const e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),S(e,(e,t)=>!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length))}_validate(e,t,n,i,r={}){return(!r||!1!==r.validate)&&Gi(this,e.call(Ui,{key:t,layerType:this.type,objectKey:n,value:i,styleSpec:Ne,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const e in this.paint._values){const t=this.paint.get(e);if(t instanceof ta&&Gn(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1}compileFilter(){this._filterCompiled||(this._featureFilter=bi(this.filter),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}}const Ro=ha([{name:"a_pos",components:2,type:"Int16"}],4),Do=ha([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"},{name:"a_scale",components:1,type:"Float32"}]);class Po{constructor(e=[]){this.segments=e}prepareSegment(e,t,n,i){let r=this.segments[this.segments.length-1];return e>Po.MAX_VERTEX_ARRAY_LENGTH&&M(`Max vertices per segment is ${Po.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!r||r.vertexLength+e>Po.MAX_VERTEX_ARRAY_LENGTH||r.sortKey!==i)&&(r={vertexOffset:t.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==i&&(r.sortKey=i),this.segments.push(r)),r}get(){return this.segments}destroy(){for(const e of this.segments)for(const t in e.vaos)e.vaos[t].destroy()}static simpleSegment(e,t,n,i){return new Po([{vertexOffset:e,primitiveOffset:t,vertexLength:n,primitiveLength:i,vaos:{},sortKey:0}])}}Po.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Ki(Po,"SegmentVector");var zo=8192;class Fo{constructor(e,t){e&&(t?this.setSouthWest(e).setNorthEast(t):4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1]))}setNorthEast(e){return this._ne=e instanceof Uo?new Uo(e.lng,e.lat):Uo.convert(e),this}setSouthWest(e){return this._sw=e instanceof Uo?new Uo(e.lng,e.lat):Uo.convert(e),this}extend(e){const t=this._sw,n=this._ne;let i,r;if(e instanceof Uo)i=e,r=e;else{if(!(e instanceof Fo))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(Fo.convert(e)):this.extend(Uo.convert(e)):this;if(i=e._sw,r=e._ne,!i||!r)return this}return t||n?(t.lng=Math.min(i.lng,t.lng),t.lat=Math.min(i.lat,t.lat),n.lng=Math.max(r.lng,n.lng),n.lat=Math.max(r.lat,n.lat)):(this._sw=new Uo(i.lng,i.lat),this._ne=new Uo(r.lng,r.lat)),this}getCenter(){return new Uo((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new Uo(this.getWest(),this.getNorth())}getSouthEast(){return new Uo(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(e){const{lng:t,lat:n}=Uo.convert(e);let i=this._sw.lng<=t&&t<=this._ne.lng;return this._sw.lng>this._ne.lng&&(i=this._sw.lng>=t&&t>=this._ne.lng),this._sw.lat<=n&&n<=this._ne.lat&&i}static convert(e){return!e||e instanceof Fo?e:new Fo(e)}}const No=6371008.8;class Uo{constructor(e,t){if(isNaN(e)||isNaN(t))throw new Error(`Invalid LngLat object: (${e}, ${t})`);if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Uo(b(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const t=Math.PI/180,n=this.lat*t,i=e.lat*t,r=Math.sin(n)*Math.sin(i)+Math.cos(n)*Math.cos(i)*Math.cos((e.lng-this.lng)*t);return No*Math.acos(Math.min(r,1))}toBounds(e=0){const t=360*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return new Fo(new Uo(this.lng-n,this.lat-t),new Uo(this.lng+n,this.lat+t))}static convert(e){if(e instanceof Uo)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new Uo(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new Uo(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")}}const Vo=2*Math.PI*No;function Wo(e){return Vo*Math.cos(e*Math.PI/180)}function qo(e){return(180+e)/360}function Go(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function Zo(e,t){return e/Wo(t)}function Ho(e){return 360*e-180}function Xo(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180))-90}function Ko(e,t){return e*Wo(Xo(t))}const Yo=85.051129;class Jo{constructor(e,t,n=0){this.x=+e,this.y=+t,this.z=+n}static fromLngLat(e,t=0){const n=Uo.convert(e);return new Jo(qo(n.lng),Go(n.lat),Zo(t,n.lat))}toLngLat(){return new Uo(Ho(this.x),Xo(this.y))}toAltitude(){return Ko(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Vo*(e=Xo(this.y),1/Math.cos(e*Math.PI/180));var e}}function Qo(e,t,n,i,a,o,s,c,l){const u=(t+i)/2,d=(n+a)/2,p=new r(u,d);c(p),function(e,t,n,i,r,a){const o=n-r,s=i-a;return Math.abs((i-t)*o-(n-e)*s)/Math.hypot(o,s)}(p.x,p.y,o.x,o.y,s.x,s.y)>=l?(Qo(e,t,n,u,d,o,p,c,l),Qo(e,u,d,i,a,p,s,c,l)):e.push(s)}function $o(e,t,n){let i=e[0],r=i.x,a=i.y;t(i);const o=[i];for(let s=1;s<e.length;s++){const c=e[s],{x:l,y:u}=c;t(c),Qo(o,r,a,l,u,i,c,t,n),r=l,a=u,i=c}return o}const es=Math.pow(2,14)-1,ts=-es-1;function ns(e,t){const n=Math.round(e.x*t),i=Math.round(e.y*t);return e.x=f(n,ts,es),e.y=f(i,ts,es),(n<e.x||n>e.x+1||i<e.y||i>e.y+1)&&M("Geometry exceeds allowed extent, reduce your vector tile buffer size"),e}function is(e,t,n){const i=e.loadGeometry(),r=e.extent,a=zo/r;if(t&&n&&n.projection.isReprojectedInTileSpace){const a=1<<t.z,{scale:o,x:s,y:c,projection:l}=n,u=e=>{const n=Ho((t.x+e.x/r)/a),i=Xo((t.y+e.y/r)/a),u=l.project(n,i);e.x=(u.x*o-s)*r,e.y=(u.y*o-c)*r};for(let t=0;t<i.length;t++)if(1!==e.type)i[t]=$o(i[t],u,1);else{const e=[];for(const n of i[t])n.x<0||n.x>=r||n.y<0||n.y>=r||(u(n),e.push(n));i[t]=e}}for(const o of i)for(const e of o)ns(e,a);return i}function rs(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?is(e):[]}}function as(e,t,n,i,r){e.emplaceBack(2*t+(i+1)/2,2*n+(r+1)/2)}function os(e,t,n,i){const r=16384;e.emplaceBack(t.x,t.y,t.z,n[0]*r,n[1]*r,n[2]*r,i)}class ss{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.hasPattern=!1,this.projection=e.projection,this.layoutVertexArray=new fa,this.indexArray=new Aa,this.segments=new Po,this.programConfigurations=new To(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(e,t,n,i){const r=this.layers[0],a=[];let o=null;"circle"===r.type&&(o=r.layout.get("circle-sort-key"));for(const{feature:c,id:l,index:u,sourceLayerIndex:d}of e){const e=this.layers[0]._featureFilter.needGeometry,t=rs(c,e);if(!this.layers[0]._featureFilter.filter(new Xr(this.zoom),t,n))continue;const r=o?o.evaluate(t,{},n):void 0,s={id:l,properties:c.properties,type:c.type,sourceLayerIndex:d,index:u,geometry:e?t.geometry:is(c,n,i),patterns:{},sortKey:r};a.push(s)}o&&a.sort((e,t)=>e.sortKey-t.sortKey);let s=null;"globe"===i.projection.name&&(this.globeExtVertexArray=new no,s=i.projection);for(const c of a){const{geometry:i,index:r,sourceLayerIndex:a}=c,o=e[r].feature;this.addFeature(c,i,r,t.availableImages,n,s),t.featureIndex.insert(o,i,r,a,this.index)}}update(e,t,n,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n,i)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Ro.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,Do.members))),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(e,t,n,i,r,a){for(const o of t)for(const t of o){const n=t.x,i=t.y;if(n<0||n>=zo||i<0||i>=zo)continue;if(a){const e=a.projectTilePoint(n,i,r),t=a.upVector(r,n,i),o=Xo((i/zo+r.y)/(1<<r.z)),s=a.pixelsPerMeter(o,1)/Zo(1,o),c=this.globeExtVertexArray;os(c,e,t,s),os(c,e,t,s),os(c,e,t,s),os(c,e,t,s)}const o=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),s=o.vertexLength;as(this.layoutVertexArray,n,i,-1,-1),as(this.layoutVertexArray,n,i,1,-1),as(this.layoutVertexArray,n,i,1,1),as(this.layoutVertexArray,n,i,-1,1),this.indexArray.emplaceBack(s,s+1,s+2),this.indexArray.emplaceBack(s,s+3,s+2),o.vertexLength+=4,o.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,{},i,r)}}function cs(e,t){for(let n=0;n<e.length;n++)if(bs(t,e[n]))return!0;for(let n=0;n<t.length;n++)if(bs(e,t[n]))return!0;return!!ps(e,t)}function ls(e,t,n){return!!bs(e,t)||!!ms(t,e,n)}function us(e,t){if(1===e.length)return gs(t,e[0]);for(let n=0;n<t.length;n++){const i=t[n];for(let t=0;t<i.length;t++)if(bs(e,i[t]))return!0}for(let n=0;n<e.length;n++)if(gs(t,e[n]))return!0;for(let n=0;n<t.length;n++)if(ps(e,t[n]))return!0;return!1}function ds(e,t,n){if(e.length>1){if(ps(e,t))return!0;for(let i=0;i<t.length;i++)if(ms(t[i],e,n))return!0}for(let i=0;i<e.length;i++)if(ms(e[i],t,n))return!0;return!1}function ps(e,t){if(0===e.length||0===t.length)return!1;for(let n=0;n<e.length-1;n++){const i=e[n],r=e[n+1];for(let e=0;e<t.length-1;e++)if(hs(i,r,t[e],t[e+1]))return!0}return!1}function hs(e,t,n,i){return L(e,n,i)!==L(t,n,i)&&L(e,t,n)!==L(e,t,i)}function ms(e,t,n){const i=n*n;if(1===t.length)return e.distSqr(t[0])<i;for(let r=1;r<t.length;r++)if(fs(e,t[r-1],t[r])<i)return!0;return!1}function fs(e,t,n){const i=t.distSqr(n);if(0===i)return e.distSqr(t);const r=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/i;return e.distSqr(r<0?t:r>1?n:n.sub(t)._mult(r)._add(t))}function gs(e,t){let n,i,r,a=!1;for(let o=0;o<e.length;o++){n=e[o];for(let e=0,o=n.length-1;e<n.length;o=e++)i=n[e],r=n[o],i.y>t.y!=r.y>t.y&&t.x<(r.x-i.x)*(t.y-i.y)/(r.y-i.y)+i.x&&(a=!a)}return a}function bs(e,t){let n=!1;for(let i=0,r=e.length-1;i<e.length;r=i++){const a=e[i],o=e[r];a.y>t.y!=o.y>t.y&&t.x<(o.x-a.x)*(t.y-a.y)/(o.y-a.y)+a.x&&(n=!n)}return n}function vs(e,t,n,i,a){for(const r of e)if(t<=r.x&&n<=r.y&&i>=r.x&&a>=r.y)return!0;const o=[new r(t,n),new r(t,a),new r(i,a),new r(i,n)];if(e.length>2)for(const r of o)if(bs(e,r))return!0;for(let r=0;r<e.length-1;r++)if(ys(e[r],e[r+1],o))return!0;return!1}function ys(e,t,n){const i=n[0],r=n[2];if(e.x<i.x&&t.x<i.x||e.x>r.x&&t.x>r.x||e.y<i.y&&t.y<i.y||e.y>r.y&&t.y>r.y)return!1;const a=L(e,t,n[0]);return a!==L(e,t,n[1])||a!==L(e,t,n[2])||a!==L(e,t,n[3])}function xs(e,t,n){const i=t.paint.get(e).value;return"constant"===i.kind?i.value:n.programConfigurations.get(t.id).getMaxValue(e)}function _s(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function ws(e,t,n,i,a){if(!t[0]&&!t[1])return e;const o=r.convert(t)._mult(a);"viewport"===n&&o._rotate(-i);const s=[];for(let r=0;r<e.length;r++)s.push(e[r].sub(o));return s}function Os(e,t,n,i){const a=r.convert(e)._mult(i);return"viewport"===t&&a._rotate(-n),a}Ki(ss,"CircleBucket",{omit:["layers"]});const js=new ca({"circle-sort-key":new ra(Ne.layout_circle["circle-sort-key"])});var Cs={paint:new ca({"circle-radius":new ra(Ne.paint_circle["circle-radius"]),"circle-color":new ra(Ne.paint_circle["circle-color"]),"circle-blur":new ra(Ne.paint_circle["circle-blur"]),"circle-opacity":new ra(Ne.paint_circle["circle-opacity"]),"circle-translate":new ia(Ne.paint_circle["circle-translate"]),"circle-translate-anchor":new ia(Ne.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new ia(Ne.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new ia(Ne.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new ra(Ne.paint_circle["circle-stroke-width"]),"circle-stroke-color":new ra(Ne.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new ra(Ne.paint_circle["circle-stroke-opacity"])}),layout:js},Es=1e-6,Ts="undefined"!=typeof Float32Array?Float32Array:Array;function ks(){var e=new Ts(9);return Ts!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function Ss(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function As(e,t,n){var i=t[0],r=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],p=t[9],h=t[10],m=t[11],f=t[12],g=t[13],b=t[14],v=t[15],y=n[0],x=n[1],_=n[2],w=n[3];return e[0]=y*i+x*s+_*d+w*f,e[1]=y*r+x*c+_*p+w*g,e[2]=y*a+x*l+_*h+w*b,e[3]=y*o+x*u+_*m+w*v,e[4]=(y=n[4])*i+(x=n[5])*s+(_=n[6])*d+(w=n[7])*f,e[5]=y*r+x*c+_*p+w*g,e[6]=y*a+x*l+_*h+w*b,e[7]=y*o+x*u+_*m+w*v,e[8]=(y=n[8])*i+(x=n[9])*s+(_=n[10])*d+(w=n[11])*f,e[9]=y*r+x*c+_*p+w*g,e[10]=y*a+x*l+_*h+w*b,e[11]=y*o+x*u+_*m+w*v,e[12]=(y=n[12])*i+(x=n[13])*s+(_=n[14])*d+(w=n[15])*f,e[13]=y*r+x*c+_*p+w*g,e[14]=y*a+x*l+_*h+w*b,e[15]=y*o+x*u+_*m+w*v,e}function Is(e,t,n){var i,r,a,o,s,c,l,u,d,p,h,m,f=n[0],g=n[1],b=n[2];return t===e?(e[12]=t[0]*f+t[4]*g+t[8]*b+t[12],e[13]=t[1]*f+t[5]*g+t[9]*b+t[13],e[14]=t[2]*f+t[6]*g+t[10]*b+t[14],e[15]=t[3]*f+t[7]*g+t[11]*b+t[15]):(r=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],p=t[9],h=t[10],m=t[11],e[0]=i=t[0],e[1]=r,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e[6]=l,e[7]=u,e[8]=d,e[9]=p,e[10]=h,e[11]=m,e[12]=i*f+s*g+d*b+t[12],e[13]=r*f+c*g+p*b+t[13],e[14]=a*f+l*g+h*b+t[14],e[15]=o*f+u*g+m*b+t[15]),e}function Ms(e,t,n){var i=n[0],r=n[1],a=n[2];return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*a,e[9]=t[9]*a,e[10]=t[10]*a,e[11]=t[11]*a,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function Ls(e,t,n){var i=Math.sin(n),r=Math.cos(n),a=t[4],o=t[5],s=t[6],c=t[7],l=t[8],u=t[9],d=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=a*r+l*i,e[5]=o*r+u*i,e[6]=s*r+d*i,e[7]=c*r+p*i,e[8]=l*r-a*i,e[9]=u*r-o*i,e[10]=d*r-s*i,e[11]=p*r-c*i,e}function Bs(e,t,n){var i=Math.sin(n),r=Math.cos(n),a=t[0],o=t[1],s=t[2],c=t[3],l=t[8],u=t[9],d=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*r-l*i,e[1]=o*r-u*i,e[2]=s*r-d*i,e[3]=c*r-p*i,e[8]=a*i+l*r,e[9]=o*i+u*r,e[10]=s*i+d*r,e[11]=c*i+p*r,e}Math.hypot||(Math.hypot=function(){for(var e=0,t=arguments.length;t--;)e+=arguments[t]*arguments[t];return Math.sqrt(e)});var Rs=As;function Ds(){var e=new Ts(3);return Ts!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function Ps(e){var t=new Ts(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function zs(e){return Math.hypot(e[0],e[1],e[2])}function Fs(e,t,n){var i=new Ts(3);return i[0]=e,i[1]=t,i[2]=n,i}function Ns(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}function Us(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}function Vs(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}function Ws(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}function qs(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}function Gs(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}function Zs(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e[2]=t[2]+n[2]*i,e}function Hs(e,t){var n=t[0],i=t[1],r=t[2],a=n*n+i*i+r*r;return a>0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e}function Xs(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Ks(e,t,n){var i=t[0],r=t[1],a=t[2],o=n[0],s=n[1],c=n[2];return e[0]=r*c-a*s,e[1]=a*o-i*c,e[2]=i*s-r*o,e}function Ys(e,t,n){var i=t[0],r=t[1],a=t[2],o=n[3]*i+n[7]*r+n[11]*a+n[15];return e[0]=(n[0]*i+n[4]*r+n[8]*a+n[12])/(o=o||1),e[1]=(n[1]*i+n[5]*r+n[9]*a+n[13])/o,e[2]=(n[2]*i+n[6]*r+n[10]*a+n[14])/o,e}function Js(e,t,n){var i=n[0],r=n[1],a=n[2],o=t[0],s=t[1],c=t[2],l=r*c-a*s,u=a*o-i*c,d=i*s-r*o,p=r*d-a*u,h=a*l-i*d,m=i*u-r*l,f=2*n[3];return u*=f,d*=f,h*=2,m*=2,e[0]=o+(l*=f)+(p*=2),e[1]=s+u+h,e[2]=c+d+m,e}var Qs,$s=Us,ec=Vs,tc=zs;function nc(e,t,n){var i=t[0],r=t[1],a=t[2],o=t[3];return e[0]=n[0]*i+n[4]*r+n[8]*a+n[12]*o,e[1]=n[1]*i+n[5]*r+n[9]*a+n[13]*o,e[2]=n[2]*i+n[6]*r+n[10]*a+n[14]*o,e[3]=n[3]*i+n[7]*r+n[11]*a+n[15]*o,e}function ic(){var e=new Ts(4);return Ts!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function rc(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e}function ac(e,t,n){n*=.5;var i=t[0],r=t[1],a=t[2],o=t[3],s=Math.sin(n),c=Math.cos(n);return e[0]=i*c+o*s,e[1]=r*c+a*s,e[2]=a*c-r*s,e[3]=o*c-i*s,e}Ds(),Qs=new Ts(4),Ts!=Float32Array&&(Qs[0]=0,Qs[1]=0,Qs[2]=0,Qs[3]=0),Ds(),Fs(1,0,0),Fs(0,1,0),ic(),ic(),ks();class oc{constructor(e,t){this.points=e,this.planes=t}static fromInvProjectionMatrix(e,t,n,i){const r=Math.pow(2,n),a=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(n=>{const a=nc([],n,e),o=1/a[3]/t*r;return function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}(a,a,[o,o,i?1/a[3]:o,o])}),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(e=>{const t=Hs([],Ks([],$s([],a[e[0]],a[e[1]]),$s([],a[e[2]],a[e[1]]))),n=-Xs(t,a[e[1]]);return t.concat(n)});return new oc(a,o)}}class sc{constructor(e,t){this.min=e,this.max=t,this.center=Gs([],Ns([],this.min,this.max),.5)}quadrant(e){const t=[e%2==0,e<2],n=Ps(this.min),i=Ps(this.max);for(let r=0;r<t.length;r++)n[r]=t[r]?this.min[r]:this.center[r],i[r]=t[r]?this.center[r]:this.max[r];return i[2]=this.max[2],new sc(n,i)}distanceX(e){return Math.max(Math.min(this.max[0],e[0]),this.min[0])-e[0]}distanceY(e){return Math.max(Math.min(this.max[1],e[1]),this.min[1])-e[1]}distanceZ(e){return Math.max(Math.min(this.max[2],e[2]),this.min[2])-e[2]}getCorners(){const e=this.min,t=this.max;return[[e[0],e[1],e[2]],[t[0],e[1],e[2]],[t[0],t[1],e[2]],[e[0],t[1],e[2]],[e[0],e[1],t[2]],[t[0],e[1],t[2]],[t[0],t[1],t[2]],[e[0],t[1],t[2]]]}intersects(e){const t=this.getCorners();let n=!0;for(let i=0;i<e.planes.length;i++){const r=e.planes[i];let a=0;for(let e=0;e<t.length;e++)a+=Xs(r,t[e])+r[3]>=0;if(0===a)return 0;a!==t.length&&(n=!1)}if(n)return 2;for(let i=0;i<3;i++){let t=Number.MAX_VALUE,n=-Number.MAX_VALUE;for(let r=0;r<e.points.length;r++){const a=e.points[r][i]-this.min[i];t=Math.min(t,a),n=Math.max(n,a)}if(n<0||t>this.max[i]-this.min[i])return 0}return 1}}function cc(e,t,n,i,r,a,o,s,c){if(a&&e.queryGeometry.isAboveHorizon)return!1;a&&(c*=e.pixelToTileUnitsFactor);for(const l of t)for(const t of l){const l=t.add(s),u=r&&n.elevation?n.elevation.exaggeration()*r.getElevationAt(l.x,l.y,!0):0,d=a?l:lc(l,u,i),p=a?e.tilespaceRays.map(e=>pc(e,u)):e.queryGeometry.screenGeometry,h=nc([],[t.x,t.y,u,1],i);if(!o&&a?c*=h[3]/n.cameraToCenterDistance:o&&!a&&(c*=n.cameraToCenterDistance/h[3]),ls(p,d,c))return!0}return!1}function lc(e,t,n){const i=nc([],[e.x,e.y,t,1],n);return new r(i[0]/i[3],i[1]/i[3])}const uc=Fs(0,0,0),dc=Fs(0,0,1);function pc(e,t){const n=Ds();return uc[2]=t,e.intersectsPlane(uc,dc,n),new r(n[0],n[1])}class hc extends ss{}function mc(e,{width:t,height:n},i,r){if(r){if(r instanceof Uint8ClampedArray)r=new Uint8Array(r.buffer);else if(r.length!==t*n*i)throw new RangeError("mismatched image size")}else r=new Uint8Array(t*n*i);return e.width=t,e.height=n,e.data=r,e}function fc(e,t,n){const{width:i,height:r}=t;i===e.width&&r===e.height||(gc(e,t,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,i),height:Math.min(e.height,r)},n),e.width=i,e.height=r,e.data=t.data)}function gc(e,t,n,i,r,a){if(0===r.width||0===r.height)return t;if(r.width>e.width||r.height>e.height||n.x>e.width-r.width||n.y>e.height-r.height)throw new RangeError("out of range source coordinates for image copy");if(r.width>t.width||r.height>t.height||i.x>t.width-r.width||i.y>t.height-r.height)throw new RangeError("out of range destination coordinates for image copy");const o=e.data,s=t.data;for(let c=0;c<r.height;c++){const l=((n.y+c)*e.width+n.x)*a,u=((i.y+c)*t.width+i.x)*a;for(let e=0;e<r.width*a;e++)s[u+e]=o[l+e]}return t}Ki(hc,"HeatmapBucket",{omit:["layers"]});class bc{constructor(e,t){mc(this,e,1,t)}resize(e){fc(this,new bc(e),1)}clone(){return new bc({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,n,i,r){gc(e,t,n,i,r,1)}}class vc{constructor(e,t){mc(this,e,4,t)}resize(e){fc(this,new vc(e),4)}replace(e,t){t?this.data.set(e):this.data=e instanceof Uint8ClampedArray?new Uint8Array(e.buffer):e}clone(){return new vc({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,n,i,r){gc(e,t,n,i,r,4)}}Ki(bc,"AlphaImage"),Ki(vc,"RGBAImage");var yc={paint:new ca({"heatmap-radius":new ra(Ne.paint_heatmap["heatmap-radius"]),"heatmap-weight":new ra(Ne.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new ia(Ne.paint_heatmap["heatmap-intensity"]),"heatmap-color":new sa(Ne.paint_heatmap["heatmap-color"]),"heatmap-opacity":new ia(Ne.paint_heatmap["heatmap-opacity"])})};function xc(e){const t={},n=e.resolution||256,i=e.clips?e.clips.length:1,r=e.image||new vc({width:n,height:i}),a=(n,i,a)=>{t[e.evaluationKey]=a;const o=e.expression.evaluate(t);r.data[n+i+0]=Math.floor(255*o.r/o.a),r.data[n+i+1]=Math.floor(255*o.g/o.a),r.data[n+i+2]=Math.floor(255*o.b/o.a),r.data[n+i+3]=Math.floor(255*o.a)};if(e.clips)for(let o=0,s=0;o<i;++o,s+=4*n)for(let t=0,i=0;t<n;t++,i+=4){const r=t/(n-1),{start:c,end:l}=e.clips[o];a(s,i,c*(1-r)+l*r)}else for(let o=0,s=0;o<n;o++,s+=4)a(0,s,o/(n-1));return r}var _c={paint:new ca({"hillshade-illumination-direction":new ia(Ne.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new ia(Ne.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new ia(Ne.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new ia(Ne.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new ia(Ne.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new ia(Ne.paint_hillshade["hillshade-accent-color"])})};const wc=ha([{name:"a_pos",components:2,type:"Int16"}],4),{members:Oc}=wc;var jc=Ec,Cc=Ec;function Ec(e,t,n){n=n||2;var i,r,a,o,s,c,l,u=t&&t.length,d=u?t[0]*n:e.length,p=Tc(e,0,d,n,!0),h=[];if(!p||p.next===p.prev)return h;if(u&&(p=function(e,t,n,i){var r,a,o,s=[];for(r=0,a=t.length;r<a;r++)(o=Tc(e,t[r]*i,r<a-1?t[r+1]*i:e.length,i,!1))===o.next&&(o.steiner=!0),s.push(zc(o));for(s.sort(Bc),r=0;r<s.length;r++)n=kc(n=Rc(s[r],n),n.next);return n}(e,t,p,n)),e.length>80*n){i=a=e[0],r=o=e[1];for(var m=n;m<d;m+=n)(s=e[m])<i&&(i=s),(c=e[m+1])<r&&(r=c),s>a&&(a=s),c>o&&(o=c);l=0!==(l=Math.max(a-i,o-r))?1/l:0}return Sc(p,h,n,i,r,l),h}function Tc(e,t,n,i,r){var a,o;if(r===Jc(e,t,n,i)>0)for(a=t;a<n;a+=i)o=Xc(a,e[a],e[a+1],o);else for(a=n-i;a>=t;a-=i)o=Xc(a,e[a],e[a+1],o);return o&&Vc(o,o.next)&&(Kc(o),o=o.next),o}function kc(e,t){if(!e)return e;t||(t=e);var n,i=e;do{if(n=!1,i.steiner||!Vc(i,i.next)&&0!==Uc(i.prev,i,i.next))i=i.next;else{if(Kc(i),(i=t=i.prev)===i.next)break;n=!0}}while(n||i!==t);return t}function Sc(e,t,n,i,r,a,o){if(e){!o&&a&&function(e,t,n,i){var r=e;do{null===r.z&&(r.z=Pc(r.x,r.y,t,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==e);r.prevZ.nextZ=null,r.prevZ=null,function(e){var t,n,i,r,a,o,s,c,l=1;do{for(n=e,e=null,a=null,o=0;n;){for(o++,i=n,s=0,t=0;t<l&&(s++,i=i.nextZ);t++);for(c=l;s>0||c>0&&i;)0!==s&&(0===c||!i||n.z<=i.z)?(r=n,n=n.nextZ,s--):(r=i,i=i.nextZ,c--),a?a.nextZ=r:e=r,r.prevZ=a,a=r;n=i}a.nextZ=null,l*=2}while(o>1)}(r)}(e,i,r,a);for(var s,c,l=e;e.prev!==e.next;)if(s=e.prev,c=e.next,a?Ic(e,i,r,a):Ac(e))t.push(s.i/n),t.push(e.i/n),t.push(c.i/n),Kc(e),e=c.next,l=c.next;else if((e=c)===l){o?1===o?Sc(e=Mc(kc(e),t,n),t,n,i,r,a,2):2===o&&Lc(e,t,n,i,r,a):Sc(kc(e),t,n,i,r,a,1);break}}}function Ac(e){var t=e.prev,n=e,i=e.next;if(Uc(t,n,i)>=0)return!1;for(var r=e.next.next;r!==e.prev;){if(Fc(t.x,t.y,n.x,n.y,i.x,i.y,r.x,r.y)&&Uc(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function Ic(e,t,n,i){var r=e.prev,a=e,o=e.next;if(Uc(r,a,o)>=0)return!1;for(var s=r.x>a.x?r.x>o.x?r.x:o.x:a.x>o.x?a.x:o.x,c=r.y>a.y?r.y>o.y?r.y:o.y:a.y>o.y?a.y:o.y,l=Pc(r.x<a.x?r.x<o.x?r.x:o.x:a.x<o.x?a.x:o.x,r.y<a.y?r.y<o.y?r.y:o.y:a.y<o.y?a.y:o.y,t,n,i),u=Pc(s,c,t,n,i),d=e.prevZ,p=e.nextZ;d&&d.z>=l&&p&&p.z<=u;){if(d!==e.prev&&d!==e.next&&Fc(r.x,r.y,a.x,a.y,o.x,o.y,d.x,d.y)&&Uc(d.prev,d,d.next)>=0)return!1;if(d=d.prevZ,p!==e.prev&&p!==e.next&&Fc(r.x,r.y,a.x,a.y,o.x,o.y,p.x,p.y)&&Uc(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(;d&&d.z>=l;){if(d!==e.prev&&d!==e.next&&Fc(r.x,r.y,a.x,a.y,o.x,o.y,d.x,d.y)&&Uc(d.prev,d,d.next)>=0)return!1;d=d.prevZ}for(;p&&p.z<=u;){if(p!==e.prev&&p!==e.next&&Fc(r.x,r.y,a.x,a.y,o.x,o.y,p.x,p.y)&&Uc(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function Mc(e,t,n){var i=e;do{var r=i.prev,a=i.next.next;!Vc(r,a)&&Wc(r,i,i.next,a)&&Zc(r,a)&&Zc(a,r)&&(t.push(r.i/n),t.push(i.i/n),t.push(a.i/n),Kc(i),Kc(i.next),i=e=a),i=i.next}while(i!==e);return kc(i)}function Lc(e,t,n,i,r,a){var o=e;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&&Nc(o,s)){var c=Hc(o,s);return o=kc(o,o.next),c=kc(c,c.next),Sc(o,t,n,i,r,a),void Sc(c,t,n,i,r,a)}s=s.next}o=o.next}while(o!==e)}function Bc(e,t){return e.x-t.x}function Rc(e,t){var n=function(e,t){var n,i=t,r=e.x,a=e.y,o=-1/0;do{if(a<=i.y&&a>=i.next.y&&i.next.y!==i.y){var s=i.x+(a-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=r&&s>o){if(o=s,s===r){if(a===i.y)return i;if(a===i.next.y)return i.next}n=i.x<i.next.x?i:i.next}}i=i.next}while(i!==t);if(!n)return null;if(r===o)return n;var c,l=n,u=n.x,d=n.y,p=1/0;i=n;do{r>=i.x&&i.x>=u&&r!==i.x&&Fc(a<d?r:o,a,u,d,a<d?o:r,a,i.x,i.y)&&(c=Math.abs(a-i.y)/(r-i.x),Zc(i,e)&&(c<p||c===p&&(i.x>n.x||i.x===n.x&&Dc(n,i)))&&(n=i,p=c)),i=i.next}while(i!==l);return n}(e,t);if(!n)return t;var i=Hc(n,e),r=kc(n,n.next);return kc(i,i.next),t===n?r:t}function Dc(e,t){return Uc(e.prev,e,t.prev)<0&&Uc(t.next,e,e.next)<0}function Pc(e,t,n,i,r){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*r)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*r)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function zc(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function Fc(e,t,n,i,r,a,o,s){return(r-o)*(t-s)-(e-o)*(a-s)>=0&&(e-o)*(i-s)-(n-o)*(t-s)>=0&&(n-o)*(a-s)-(r-o)*(i-s)>=0}function Nc(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Wc(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(Zc(e,t)&&Zc(t,e)&&function(e,t){var n=e,i=!1,r=(e.x+t.x)/2,a=(e.y+t.y)/2;do{n.y>a!=n.next.y>a&&n.next.y!==n.y&&r<(n.next.x-n.x)*(a-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==e);return i}(e,t)&&(Uc(e.prev,e,t.prev)||Uc(e,t.prev,t))||Vc(e,t)&&Uc(e.prev,e,e.next)>0&&Uc(t.prev,t,t.next)>0)}function Uc(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Vc(e,t){return e.x===t.x&&e.y===t.y}function Wc(e,t,n,i){var r=Gc(Uc(e,t,n)),a=Gc(Uc(e,t,i)),o=Gc(Uc(n,i,e)),s=Gc(Uc(n,i,t));return r!==a&&o!==s||!(0!==r||!qc(e,n,t))||!(0!==a||!qc(e,i,t))||!(0!==o||!qc(n,e,i))||!(0!==s||!qc(n,t,i))}function qc(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function Gc(e){return e>0?1:e<0?-1:0}function Zc(e,t){return Uc(e.prev,e,e.next)<0?Uc(e,t,e.next)>=0&&Uc(e,e.prev,t)>=0:Uc(e,t,e.prev)<0||Uc(e,e.next,t)<0}function Hc(e,t){var n=new Yc(e.i,e.x,e.y),i=new Yc(t.i,t.x,t.y),r=e.next,a=t.prev;return e.next=t,t.prev=e,n.next=r,r.prev=n,i.next=n,n.prev=i,a.next=i,i.prev=a,i}function Xc(e,t,n,i){var r=new Yc(e,t,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function Kc(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Yc(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Jc(e,t,n,i){for(var r=0,a=t,o=n-i;a<n;a+=i)r+=(e[o]-e[a])*(e[a+1]+e[o+1]),o=a;return r}function Qc(e,t,n,i,r){!function e(t,n,i,r,a){for(;r>i;){if(r-i>600){var o=r-i+1,s=n-i+1,c=Math.log(o),l=.5*Math.exp(2*c/3),u=.5*Math.sqrt(c*l*(o-l)/o)*(s-o/2<0?-1:1);e(t,n,Math.max(i,Math.floor(n-s*l/o+u)),Math.min(r,Math.floor(n+(o-s)*l/o+u)),a)}var d=t[n],p=i,h=r;for($c(t,i,n),a(t[r],d)>0&&$c(t,i,r);p<h;){for($c(t,p,h),p++,h--;a(t[p],d)<0;)p++;for(;a(t[h],d)>0;)h--}0===a(t[i],d)?$c(t,i,h):$c(t,++h,r),h<=n&&(i=h+1),n<=h&&(r=h-1)}}(e,t,n||0,i||e.length-1,r||el)}function $c(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function el(e,t){return e<t?-1:e>t?1:0}function tl(e,t){const n=e.length;if(n<=1)return[e];const i=[];let r,a;for(let o=0;o<n;o++){const t=B(e[o]);0!==t&&(e[o].area=Math.abs(t),void 0===a&&(a=t<0),a===t<0?(r&&i.push(r),r=[e[o]]):r.push(e[o]))}if(r&&i.push(r),t>1)for(let o=0;o<i.length;o++)i[o].length<=t||(Qc(i[o],t,1,i[o].length-1,nl),i[o]=i[o].slice(0,t));return i}function nl(e,t){return t.area-e.area}function il(e,t,n){const i=n.patternDependencies;let r=!1;for(const a of t){const t=a.paint.get(e+"-pattern");t.isConstant()||(r=!0);const n=t.constantOr(null);n&&(r=!0,i[n.to]=!0,i[n.from]=!0)}return r}function rl(e,t,n,i,r){const a=r.patternDependencies;for(const o of t){const t=o.paint.get(e+"-pattern").value;if("constant"!==t.kind){let e=t.evaluate({zoom:i-1},n,{},r.availableImages),s=t.evaluate({zoom:i},n,{},r.availableImages),c=t.evaluate({zoom:i+1},n,{},r.availableImages);e=e&&e.name?e.name:e,s=s&&s.name?s.name:s,c=c&&c.name?c.name:c,a[e]=!0,a[s]=!0,a[c]=!0,n.patterns[o.id]={min:e,mid:s,max:c}}}return n}Ec.deviation=function(e,t,n,i){var r=t&&t.length,a=Math.abs(Jc(e,0,r?t[0]*n:e.length,n));if(r)for(var o=0,s=t.length;o<s;o++)a-=Math.abs(Jc(e,t[o]*n,o<s-1?t[o+1]*n:e.length,n));var c=0;for(o=0;o<i.length;o+=3){var l=i[o]*n,u=i[o+1]*n,d=i[o+2]*n;c+=Math.abs((e[l]-e[d])*(e[u+1]-e[l+1])-(e[l]-e[u])*(e[d+1]-e[l+1]))}return 0===a&&0===c?0:Math.abs((c-a)/a)},Ec.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},i=0,r=0;r<e.length;r++){for(var a=0;a<e[r].length;a++)for(var o=0;o<t;o++)n.vertices.push(e[r][a][o]);r>0&&n.holes.push(i+=e[r-1].length)}return n},jc.default=Cc;class al{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new fa,this.indexArray=new Aa,this.indexArray2=new Pa,this.programConfigurations=new To(e.layers,e.zoom),this.segments=new Po,this.segments2=new Po,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.projection=e.projection}populate(e,t,n,i){this.hasPattern=il("fill",this.layers,t);const r=this.layers[0].layout.get("fill-sort-key"),a=[];for(const{feature:o,id:s,index:c,sourceLayerIndex:l}of e){const e=this.layers[0]._featureFilter.needGeometry,u=rs(o,e);if(!this.layers[0]._featureFilter.filter(new Xr(this.zoom),u,n))continue;const d=r?r.evaluate(u,{},n,t.availableImages):void 0,p={id:s,properties:o.properties,type:o.type,sourceLayerIndex:l,index:c,geometry:e?u.geometry:is(o,n,i),patterns:{},sortKey:d};a.push(p)}r&&a.sort((e,t)=>e.sortKey-t.sortKey);for(const o of a){const{geometry:i,index:r,sourceLayerIndex:a}=o;if(this.hasPattern){const e=rl("fill",this.layers,o,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(o,i,r,n,{},t.availableImages);t.featureIndex.insert(e[r].feature,i,r,a,this.index)}}update(e,t,n,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n,i)}addFeatures(e,t,n,i,r){for(const a of this.patternFeatures)this.addFeature(a,a.geometry,a.index,t,n,i)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Oc),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,n,i,r,a=[]){for(const o of tl(t,500)){let e=0;for(const s of o)e+=s.length;const t=this.segments.prepareSegment(e,this.layoutVertexArray,this.indexArray),n=t.vertexLength,i=[],r=[];for(const s of o){if(0===s.length)continue;s!==o[0]&&r.push(i.length/2);const e=this.segments2.prepareSegment(s.length,this.layoutVertexArray,this.indexArray2),t=e.vertexLength;this.layoutVertexArray.emplaceBack(s[0].x,s[0].y),this.indexArray2.emplaceBack(t+s.length-1,t),i.push(s[0].x),i.push(s[0].y);for(let n=1;n<s.length;n++)this.layoutVertexArray.emplaceBack(s[n].x,s[n].y),this.indexArray2.emplaceBack(t+n-1,t+n),i.push(s[n].x),i.push(s[n].y);e.vertexLength+=s.length,e.primitiveLength+=s.length}const a=jc(i,r);for(let o=0;o<a.length;o+=3)this.indexArray.emplaceBack(n+a[o],n+a[o+1],n+a[o+2]);t.vertexLength+=e,t.primitiveLength+=a.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,r,a,i)}}Ki(al,"FillBucket",{omit:["layers","patternFeatures"]});const ol=new ca({"fill-sort-key":new ra(Ne.layout_fill["fill-sort-key"])});var sl={paint:new ca({"fill-antialias":new ia(Ne.paint_fill["fill-antialias"]),"fill-opacity":new ra(Ne.paint_fill["fill-opacity"]),"fill-color":new ra(Ne.paint_fill["fill-color"]),"fill-outline-color":new ra(Ne.paint_fill["fill-outline-color"]),"fill-translate":new ia(Ne.paint_fill["fill-translate"]),"fill-translate-anchor":new ia(Ne.paint_fill["fill-translate-anchor"]),"fill-pattern":new aa(Ne.paint_fill["fill-pattern"])}),layout:ol};const cl=ha([{name:"a_pos_normal_ed",components:4,type:"Int16"}]),ll=ha([{name:"a_centroid_pos",components:2,type:"Uint16"}]),ul=ha([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]),{members:dl}=cl;var pl=hl;function hl(e,t,n,i,r){this.properties={},this.extent=n,this.type=0,this._pbf=e,this._geometry=-1,this._keys=i,this._values=r,e.readFields(ml,this,t)}function ml(e,t,n){1==e?t.id=n.readVarint():2==e?function(e,t){for(var n=e.readVarint()+e.pos;e.pos<n;){var i=t._keys[e.readVarint()],r=t._values[e.readVarint()];t.properties[i]=r}}(n,t):3==e?t.type=n.readVarint():4==e&&(t._geometry=n.pos)}function fl(e){for(var t,n,i=0,r=0,a=e.length,o=a-1;r<a;o=r++)i+=((n=e[o]).x-(t=e[r]).x)*(t.y+n.y);return i}hl.types=["Unknown","Point","LineString","Polygon"],hl.prototype.loadGeometry=function(){var e=this._pbf;e.pos=this._geometry;for(var t,n=e.readVarint()+e.pos,i=1,a=0,o=0,s=0,c=[];e.pos<n;){if(a<=0){var l=e.readVarint();i=7&l,a=l>>3}if(a--,1===i||2===i)o+=e.readSVarint(),s+=e.readSVarint(),1===i&&(t&&c.push(t),t=[]),t.push(new r(o,s));else{if(7!==i)throw new Error("unknown command "+i);t&&t.push(t[0].clone())}}return t&&c.push(t),c},hl.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,n=1,i=0,r=0,a=0,o=1/0,s=-1/0,c=1/0,l=-1/0;e.pos<t;){if(i<=0){var u=e.readVarint();n=7&u,i=u>>3}if(i--,1===n||2===n)(r+=e.readSVarint())<o&&(o=r),r>s&&(s=r),(a+=e.readSVarint())<c&&(c=a),a>l&&(l=a);else if(7!==n)throw new Error("unknown command "+n)}return[o,c,s,l]},hl.prototype.toGeoJSON=function(e,t,n){var i,r,a=this.extent*Math.pow(2,n),o=this.extent*e,s=this.extent*t,c=this.loadGeometry(),l=hl.types[this.type];function u(e){for(var t=0;t<e.length;t++){var n=e[t];e[t]=[360*(n.x+o)/a-180,360/Math.PI*Math.atan(Math.exp((180-360*(n.y+s)/a)*Math.PI/180))-90]}}switch(this.type){case 1:var d=[];for(i=0;i<c.length;i++)d[i]=c[i][0];u(c=d);break;case 2:for(i=0;i<c.length;i++)u(c[i]);break;case 3:for(c=function(e){var t=e.length;if(t<=1)return[e];for(var n,i,r=[],a=0;a<t;a++){var o=fl(e[a]);0!==o&&(void 0===i&&(i=o<0),i===o<0?(n&&r.push(n),n=[e[a]]):n.push(e[a]))}return n&&r.push(n),r}(c),i=0;i<c.length;i++)for(r=0;r<c[i].length;r++)u(c[i][r])}1===c.length?c=c[0]:l="Multi"+l;var p={type:"Feature",geometry:{type:l,coordinates:c},properties:this.properties};return"id"in this&&(p.id=this.id),p};var gl=bl;function bl(e,t){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(vl,this,t),this.length=this._features.length}function vl(e,t,n){15===e?t.version=n.readVarint():1===e?t.name=n.readString():5===e?t.extent=n.readVarint():2===e?t._features.push(n.pos):3===e?t._keys.push(n.readString()):4===e&&t._values.push(function(e){for(var t=null,n=e.readVarint()+e.pos;e.pos<n;){var i=e.readVarint()>>3;t=1===i?e.readString():2===i?e.readFloat():3===i?e.readDouble():4===i?e.readVarint64():5===i?e.readVarint():6===i?e.readSVarint():7===i?e.readBoolean():null}return t}(n))}function yl(e,t,n){if(3===e){var i=new gl(n,n.readVarint()+n.pos);i.length&&(t[i.name]=i)}}bl.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new pl(this._pbf,t,this.extent,this._keys,this._values)};var xl={VectorTile:function(e,t){this.layers=e.readFields(yl,{},t)},VectorTileFeature:pl,VectorTileLayer:gl};function _l(e,t,n,i){const a=[],o=0===i?(e,t,n,i,a,o)=>{e.push(new r(o,n+(o-t)/(i-t)*(a-n)))}:(e,t,n,i,a,o)=>{e.push(new r(t+(o-n)/(a-n)*(i-t),o))};for(const r of e){const e=[];for(const a of r){if(a.length<=2)continue;const r=[];for(let e=0;e<a.length-1;e++){const s=a[e].x,c=a[e].y,l=a[e+1].x,u=a[e+1].y,d=0===i?s:c,p=0===i?l:u;d<t?p>t&&o(r,s,c,l,u,t):d>n?p<n&&o(r,s,c,l,u,n):r.push(a[e]),p<t&&d>=t&&o(r,s,c,l,u,t),p>n&&d<=n&&o(r,s,c,l,u,n)}let s=a[a.length-1];const c=0===i?s.x:s.y;c>=t&&c<=n&&r.push(s),r.length&&(s=r[r.length-1],r[0].x===s.x&&r[0].y===s.y||r.push(r[0]),e.push(r))}e.length&&a.push(e)}return a}const wl=xl.VectorTileFeature.types,Ol=Math.pow(2,13);function jl(e,t,n,i,r,a,o,s){e.emplaceBack((t<<1)+o,(n<<1)+a,(Math.floor(i*Ol)<<1)+r,Math.round(s))}function Cl(e,t,n){const i=16384;e.emplaceBack(t.x,t.y,t.z,n[0]*i,n[1]*i,n[2]*i)}class El{constructor(){this.acc=new r(0,0),this.polyCount=[]}startRing(e){this.currentPolyCount={edges:0,top:0},this.polyCount.push(this.currentPolyCount),this.min||(this.min=new r(e.x,e.y),this.max=new r(e.x,e.y))}append(e,t){this.currentPolyCount.edges++,this.acc._add(e);const n=this.min,i=this.max;e.x<n.x?n.x=e.x:e.x>i.x&&(i.x=e.x),e.y<n.y?n.y=e.y:e.y>i.y&&(i.y=e.y),((0===e.x||e.x===zo)&&e.x===t.x)!=((0===e.y||e.y===zo)&&e.y===t.y)&&this.processBorderOverlap(e,t),t.x<0!=e.x<0&&this.addBorderIntersection(0,tn(t.y,e.y,(0-t.x)/(e.x-t.x))),t.x>zo!=e.x>zo&&this.addBorderIntersection(1,tn(t.y,e.y,(zo-t.x)/(e.x-t.x))),t.y<0!=e.y<0&&this.addBorderIntersection(2,tn(t.x,e.x,(0-t.y)/(e.y-t.y))),t.y>zo!=e.y>zo&&this.addBorderIntersection(3,tn(t.x,e.x,(zo-t.y)/(e.y-t.y)))}addBorderIntersection(e,t){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE]]);const n=this.borders[e];t<n[0]&&(n[0]=t),t>n[1]&&(n[1]=t)}processBorderOverlap(e,t){if(e.x===t.x){if(e.y===t.y)return;const n=0===e.x?0:1;this.addBorderIntersection(n,t.y),this.addBorderIntersection(n,e.y)}else{const n=0===e.y?2:3;this.addBorderIntersection(n,t.x),this.addBorderIntersection(n,e.x)}}centroid(){const e=this.polyCount.reduce((e,t)=>e+t.edges,0);return 0!==e?this.acc.div(e)._round():new r(0,0)}span(){return new r(this.max.x-this.min.x,this.max.y-this.min.y)}intersectsCount(){return this.borders.reduce((e,t)=>e+ +(t[0]!==Number.MAX_VALUE),0)}}class Tl{constructor(e){this.zoom=e.zoom,this.canonical=e.canonical,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.hasPattern=!1,this.projection=e.projection,this.layoutVertexArray=new ba,this.centroidVertexArray=new eo,this.indexArray=new Aa,this.programConfigurations=new To(e.layers,e.zoom),this.segments=new Po,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.enableTerrain=e.enableTerrain}populate(e,t,n,i){this.features=[],this.hasPattern=il("fill-extrusion",this.layers,t),this.featuresOnBorder=[],this.borders=[[],[],[],[]],this.borderDoneWithNeighborZ=[-1,-1,-1,-1],this.tileToMeter=function(e){const t=Math.exp(Math.PI*(1-e.y/(1<<e.z)*2));return 80150034*t/(t*t+1)/zo/(1<<e.z)}(n);for(const{feature:r,id:a,index:o,sourceLayerIndex:s}of e){const e=this.layers[0]._featureFilter.needGeometry,c=rs(r,e);if(!this.layers[0]._featureFilter.filter(new Xr(this.zoom),c,n))continue;const l={id:a,sourceLayerIndex:s,index:o,geometry:e?c.geometry:is(r,n,i),properties:r.properties,type:r.type,patterns:{}},u=this.layoutVertexArray.length;this.hasPattern?this.features.push(rl("fill-extrusion",this.layers,l,this.zoom,t)):this.addFeature(l,l.geometry,o,n,{},t.availableImages,i),t.featureIndex.insert(r,l.geometry,o,s,this.index,u)}this.sortBorders()}addFeatures(e,t,n,i,r){for(const a of this.features){const{geometry:e}=a;this.addFeature(a,e,a.index,t,n,i,r)}this.sortBorders()}update(e,t,n,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n,i)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,dl),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.layoutVertexExtArray&&(this.layoutVertexExtBuffer=e.createVertexBuffer(this.layoutVertexExtArray,ul.members,!0))),this.programConfigurations.upload(e),this.uploaded=!0}uploadCentroid(e){0!==this.centroidVertexArray.length&&(this.centroidVertexBuffer?this.needsCentroidUpdate&&this.centroidVertexBuffer.updateData(this.centroidVertexArray):this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,ll.members,!0),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.layoutVertexExtBuffer&&this.layoutVertexExtBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,n,i,a,o,s){const c=[new r(0,0),new r(zo,zo)],l=s.projection,u="globe"===l.name,d=this.enableTerrain&&!u?new El:null;u&&!this.layoutVertexExtArray&&(this.layoutVertexExtArray=new Va);const p=tl(t,500);for(let r=p.length-1;r>=0;r--){const e=p[r];(0===e.length||(h=e[0]).every(e=>e.x<=0)||h.every(e=>e.x>=zo)||h.every(e=>e.y<=0)||h.every(e=>e.y>=zo))&&p.splice(r,1)}var h;let m;if(u){const e=11.25,t=1<<i.z,n=Ho(i.x/t),a=Ho((i.x+1)/t),o=Xo(i.y/t),s=Xo((i.y+1)/t);m=function(e,t,n,i,a=0,o){const s=[];if(!e.length||!n||!i)return s;const c=(e,t)=>{for(const n of e)s.push({polygon:n,bounds:t})},l=Math.ceil(Math.log2(n)),u=Math.ceil(Math.log2(i)),d=l-u,p=[];for(let r=0;r<Math.abs(d);r++)p.push(d>0?0:1);for(let r=0;r<Math.min(l,u);r++)p.push(0),p.push(1);let h=e;if(h=_l(h,t[0].y-a,t[1].y+a,1),h=_l(h,t[0].x-a,t[1].x+a,0),!h.length)return s;const m=[];for(p.length?m.push({polygons:h,bounds:t,depth:0}):c(h,t);m.length;){const e=m.pop(),t=e.depth,n=p[t],i=e.bounds[0],s=e.bounds[1],l=0===n?i.x:i.y,u=0===n?s.x:s.y,d=o?o(n,l,u):.5*(l+u),h=_l(e.polygons,l-a,d+a,n),f=_l(e.polygons,d-a,u+a,n);if(h.length){const e=[i,new r(0===n?d:s.x,1===n?d:s.y)];p.length>t+1?m.push({polygons:h,bounds:e,depth:t+1}):c(h,e)}if(f.length){const e=[new r(0===n?d:i.x,1===n?d:i.y),s];p.length>t+1?m.push({polygons:f,bounds:e,depth:t+1}):c(f,e)}}return s}(p,c,Math.ceil((a-n)/e),Math.ceil((o-s)/e),1,(e,n,r)=>{if(0===e)return.5*(n+r);{const e=Xo((i.y+n/zo)/t);return(Go(.5*(Xo((i.y+r/zo)/t)+e))*t-i.y)*zo}})}else{m=[];for(const e of p)m.push({polygon:e,bounds:c})}for(const r of m){const t=r.polygon;let n=0,a=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let e=0;e<t.length;e++){const o=t[e];if(0===o.length)continue;n+=o.length;let s=0;d&&d.startRing(o[0]);for(let e=0;e<o.length;e++){const t=o[e];if(e>=1){const n=o[e-1];if(!kl(t,n,r.bounds)){d&&d.append(t,n),a.vertexLength+4>Po.MAX_VERTEX_ARRAY_LENGTH&&(a=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));const e=t.sub(n)._perp(),r=e.x/(Math.abs(e.x)+Math.abs(e.y)),o=e.y>0?1:0,c=n.dist(t);s+c>32768&&(s=0),jl(this.layoutVertexArray,t.x,t.y,r,o,0,0,s),jl(this.layoutVertexArray,t.x,t.y,r,o,0,1,s),s+=c,jl(this.layoutVertexArray,n.x,n.y,r,o,0,0,s),jl(this.layoutVertexArray,n.x,n.y,r,o,0,1,s);const p=a.vertexLength;if(this.indexArray.emplaceBack(p,p+2,p+1),this.indexArray.emplaceBack(p+1,p+2,p+3),a.vertexLength+=4,a.primitiveLength+=2,u){const e=this.layoutVertexExtArray,r=l.projectTilePoint(t.x,t.y,i),a=l.projectTilePoint(n.x,n.y,i),o=l.upVector(i,t.x,t.y),s=l.upVector(i,n.x,n.y);Cl(e,r,o),Cl(e,r,o),Cl(e,a,s),Cl(e,a,s)}}}}}if(a.vertexLength+n>Po.MAX_VERTEX_ARRAY_LENGTH&&(a=this.segments.prepareSegment(n,this.layoutVertexArray,this.indexArray)),"Polygon"!==wl[e.type])continue;const o=[],s=[],c=a.vertexLength;for(let e=0;e<t.length;e++){const n=t[e];if(0!==n.length){n!==t[0]&&s.push(o.length/2);for(let e=0;e<n.length;e++){const t=n[e];jl(this.layoutVertexArray,t.x,t.y,0,0,1,1,0),o.push(t.x),o.push(t.y),d&&d.currentPolyCount.top++,u&&Cl(this.layoutVertexExtArray,l.projectTilePoint(t.x,t.y,i),l.upVector(i,t.x,t.y))}}}const p=jc(o,s);for(let e=0;e<p.length;e+=3)this.indexArray.emplaceBack(c+p[e],c+p[e+2],c+p[e+1]);a.primitiveLength+=p.length/3,a.vertexLength+=n}if(d&&d.polyCount.length>0){if(d.borders){d.vertexArrayOffset=this.centroidVertexArray.length;const e=d.borders,t=this.featuresOnBorder.push(d)-1;for(let n=0;n<4;n++)e[n][0]!==Number.MAX_VALUE&&this.borders[n].push(t)}this.encodeCentroid(d.borders?void 0:d.centroid(),d)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,a,o,i)}sortBorders(){for(let e=0;e<4;e++)this.borders[e].sort((t,n)=>this.featuresOnBorder[t].borders[e][0]-this.featuresOnBorder[n].borders[e][0])}encodeCentroid(e,t,n=!0){let i,r;if(e)if(0!==e.y){const n=t.span()._mult(this.tileToMeter);i=(Math.max(e.x,1)<<3)+Math.min(7,Math.round(n.x/10)),r=(Math.max(e.y,1)<<3)+Math.min(7,Math.round(n.y/10))}else i=Math.ceil(7*(e.x+450)),r=0;else i=0,r=+n;let a=n?this.centroidVertexArray.length:t.vertexArrayOffset;for(const o of t.polyCount){n&&this.centroidVertexArray.resize(this.centroidVertexArray.length+4*o.edges+o.top);for(let e=0;e<2*o.edges;e++)this.centroidVertexArray.emplace(a++,0,r),this.centroidVertexArray.emplace(a++,i,r);for(let e=0;e<o.top;e++)this.centroidVertexArray.emplace(a++,i,r)}}}function kl(e,t,n){return e.x===t.x&&(e.x<n[0].x||e.x>n[1].x)||e.y===t.y&&(e.y<n[0].y||e.y>n[1].y)}Ki(Tl,"FillExtrusionBucket",{omit:["layers","features"]}),Ki(El,"PartMetadata");var Sl={paint:new ca({"fill-extrusion-opacity":new ia(Ne["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new ra(Ne["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new ia(Ne["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new ia(Ne["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new aa(Ne["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new ra(Ne["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new ra(Ne["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new ia(Ne["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})};function Al(e,t){return e.x*t.x+e.y*t.y}function Il(e,t){if(1===e.length){let n=0;const i=t[n++];let r;for(;!r||i.equals(r);)if(r=t[n++],!r)return 1/0;for(;n<t.length;n++){const a=t[n],o=e[0],s=r.sub(i),c=a.sub(i),l=o.sub(i),u=Al(s,s),d=Al(s,c),p=Al(c,c),h=Al(l,s),m=Al(l,c),f=u*p-d*d,g=(p*h-d*m)/f,b=(u*m-d*h)/f,v=i.z*(1-g-b)+r.z*g+a.z*b;if(isFinite(v))return v}return 1/0}{let e=1/0;for(const n of t)e=Math.min(e,n.z);return e}}function Ml(e){const t=new r(e[0],e[1]);return t.z=e[2],t}function Ll(e,t,n,i,r,a,o,s){const c=o*r.getElevationAt(e,t,!0,!0),l=0!==a[0],u=l?0===a[1]?o*(a[0]/7-450):o*function(e,t,n){const i=Math.floor(t[0]/8),r=Math.floor(t[1]/8),a=10*(t[0]-8*i),o=10*(t[1]-8*r),s=e.getElevationAt(i,r,!0,!0),c=e.getMeterToDEM(n),l=Math.floor(.5*(a*c-1)),u=Math.floor(.5*(o*c-1)),d=e.tileCoordToPixel(i,r),p=2*l+1,h=2*u+1,m=function(e,t,n,i,r){return[e.getElevationAtPixel(t,n,!0),e.getElevationAtPixel(t+r,n,!0),e.getElevationAtPixel(t,n+r,!0),e.getElevationAtPixel(t+i,n+r,!0)]}(e,d.x-l,d.y-u,p,h),f=Math.abs(m[0]-m[1]),g=Math.abs(m[2]-m[3]),b=Math.abs(m[0]-m[2])+Math.abs(m[1]-m[3]),v=Math.min(.25,.5*c*(f+g)/p),y=Math.min(.25,.5*c*b/h);return s+Math.max(v*a,y*o)}(r,a,s):c;return{base:c+(0===n)?-1:n,top:l?Math.max(u+i,c+n+2):c+i}}const Bl=ha([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"},{name:"a_linesofar",components:1,type:"Float32"}],4),{members:Rl}
vendor: 1,207 bytes, line 2
2=Bl,Dl=ha([{name:"a_packed",components:3,type:"Float32"}]),{members:Pl}=Dl,zl=xl.VectorTileFeature.types,Fl=Math.cos(Math.PI/180*37.5);class Nl{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.projection=e.projection,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(e=>{this.gradients[e.id]={}}),this.layoutVertexArray=new va,this.layoutVertexArray2=new ja,this.indexArray=new Aa,this.programConfigurations=new To(e.layers,e.zoom),this.segments=new Po,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(e,t,n,i){this.hasPattern=il("line",this.layers,t);const r=this.layers[0].layout.get("line-sort-key"),a=[];for(const{feature:l,id:u,index:d,sourceLayerIndex:p}of e){const e=this.layers[0]._featureFilter.needGeometry,t=rs(l,e);if(!this.layers[0]._featureFilter.filter(new Xr(this.zoom),t,n))continue;const o=r?r.evaluate(t,{},n):void 0,s={id:u,properties:l.properties,type:l.type,sourceLayerIndex:p,index:d,geometry:e?t.geometry:is(l,n,i),patterns:{},sortKey:o};a.push(s)}r&&a.sort((e,t)=>
vendor: 51,509 bytes, line 2
2e.sortKey-t.sortKey);const{lineAtlas:o,featureIndex:s}=t,c=this.addConstantDashes(o);for(const l of a){const{geometry:i,index:r,sourceLayerIndex:a}=l;if(c&&this.addFeatureDashes(l,o),this.hasPattern){const e=rl("line",this.layers,l,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(l,i,r,n,o.positions,t.availableImages);s.insert(e[r].feature,i,r,a,this.index)}}addConstantDashes(e){let t=!1;for(const n of this.layers){const i=n.paint.get("line-dasharray").value,r=n.layout.get("line-cap").value;if("constant"!==i.kind||"constant"!==r.kind)t=!0;else{const t=r.value,n=i.value;if(!n)continue;e.addDash(n.from,t),e.addDash(n.to,t),n.other&&e.addDash(n.other,t)}}return t}addFeatureDashes(e,t){const n=this.zoom;for(const i of this.layers){const r=i.paint.get("line-dasharray").value,a=i.layout.get("line-cap").value;if("constant"===r.kind&&"constant"===a.kind)continue;let o,s,c,l,u,d;if("constant"===r.kind){const e=r.value;if(!e)continue;o=e.other||e.to,s=e.to,c=e.from}else o=r.evaluate({zoom:n-1},e),s=r.evaluate({zoom:n},e),c=r.evaluate({zoom:n+1},e);"constant"===a.kind?l=u=d=a.value:(l=a.evaluate({zoom:n-1},e),u=a.evaluate({zoom:n},e),d=a.evaluate({zoom:n+1},e)),t.addDash(o,l),t.addDash(s,u),t.addDash(c,d);const p=t.getKey(o,l),h=t.getKey(s,u),m=t.getKey(c,d);e.patterns[i.id]={min:p,mid:h,max:m}}}update(e,t,n,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n,i)}addFeatures(e,t,n,i,r){for(const a of this.patternFeatures)this.addFeature(a,a.geometry,a.index,t,n,i)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,Pl)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Rl),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&e.properties.hasOwnProperty("mapbox_clip_start")&&e.properties.hasOwnProperty("mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}}addFeature(e,t,n,i,r,a){const o=this.layers[0].layout,s=o.get("line-join").evaluate(e,{}),c=o.get("line-cap").evaluate(e,{}),l=o.get("line-miter-limit"),u=o.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(const d of t)this.addLine(d,e,s,c,l,u);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,r,a,i)}addLine(e,t,n,i,r,a){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineSoFar=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let t=0;t<e.length-1;t++)this.totalDistance+=e[t].dist(e[t+1]);this.updateScaledDistance(),this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}const o="Polygon"===zl[t.type];let s=e.length;for(;s>=2&&e[s-1].equals(e[s-2]);)s--;let c=0;for(;c<s-1&&e[c].equals(e[c+1]);)c++;if(s<(o?3:2))return;"bevel"===n&&(r=1.05);const l=this.overscaling<=16?122880/(512*this.overscaling):0,u=this.segments.prepareSegment(10*s,this.layoutVertexArray,this.indexArray);let d,p,h,m,f;this.e1=this.e2=-1,o&&(d=e[s-2],f=e[c].sub(d)._unit()._perp());for(let g=c;g<s;g++){if(h=g===s-1?o?e[c+1]:void 0:e[g+1],h&&e[g].equals(h))continue;f&&(m=f),d&&(p=d),d=e[g],f=h?h.sub(d)._unit()._perp():m,m=m||f;let t=m.add(f);0===t.x&&0===t.y||t._unit();const b=m.x*f.x+m.y*f.y,v=t.x*f.x+t.y*f.y,y=0!==v?1/v:1/0,x=2*Math.sqrt(2-2*v),_=v<Fl&&p&&h,w=m.x*f.y-m.y*f.x>0;if(_&&g>c){const e=d.dist(p);if(e>2*l){const t=d.sub(d.sub(p)._mult(l/e)._round());this.updateDistance(p,t),this.addCurrentVertex(t,m,0,0,u),p=t}}const O=p&&h;let j=O?n:o?"butt":i;if(O&&"round"===j&&(y<a?j="miter":y<=2&&(j="fakeround")),"miter"===j&&y>r&&(j="bevel"),"bevel"===j&&(y>2&&(j="flipbevel"),y<r&&(j="miter")),p&&this.updateDistance(p,d),"miter"===j)t._mult(y),this.addCurrentVertex(d,t,0,0,u);else if("flipbevel"===j){if(y>100)t=f.mult(-1);else{const e=y*m.add(f).mag()/m.sub(f).mag();t._perp()._mult(e*(w?-1:1))}this.addCurrentVertex(d,t,0,0,u),this.addCurrentVertex(d,t.mult(-1),0,0,u)}else if("bevel"===j||"fakeround"===j){const e=-Math.sqrt(y*y-1),t=w?e:0,n=w?0:e;if(p&&this.addCurrentVertex(d,m,t,n,u),"fakeround"===j){const e=Math.round(180*x/Math.PI/20);for(let t=1;t<e;t++){let n=t/e;if(.5!==n){const e=n-.5;n+=n*e*(n-1)*((1.0904+b*(b*(3.55645-1.43519*b)-3.2452))*e*e+(.848013+b*(.215638*b-1.06021)))}const i=f.sub(m)._mult(n)._add(m)._unit()._mult(w?-1:1);this.addHalfVertex(d,i.x,i.y,!1,w,0,u)}}h&&this.addCurrentVertex(d,f,-t,-n,u)}else if("butt"===j)this.addCurrentVertex(d,t,0,0,u);else if("square"===j){const e=p?1:-1;p||this.addCurrentVertex(d,t,e,e,u),this.addCurrentVertex(d,t,0,0,u),p&&this.addCurrentVertex(d,t,e,e,u)}else"round"===j&&(p&&(this.addCurrentVertex(d,m,0,0,u),this.addCurrentVertex(d,m,1,1,u,!0)),h&&(this.addCurrentVertex(d,f,-1,-1,u,!0),this.addCurrentVertex(d,f,0,0,u)));if(_&&g<s-1){const e=d.dist(h);if(e>2*l){const t=d.add(h.sub(d)._mult(l/e)._round());this.updateDistance(d,t),this.addCurrentVertex(t,f,0,0,u),d=t}}}}addCurrentVertex(e,t,n,i,r,a=!1){const o=t.y*i-t.x,s=-t.y-t.x*i;this.addHalfVertex(e,t.x+t.y*n,t.y-t.x*n,a,!1,n,r),this.addHalfVertex(e,o,s,a,!0,-i,r)}addHalfVertex({x:e,y:t},n,i,r,a,o,s){this.layoutVertexArray.emplaceBack((e<<1)+(r?1:0),(t<<1)+(a?1:0),Math.round(63*n)+128,Math.round(63*i)+128,1+(0===o?0:o<0?-1:1),0,this.lineSoFar),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length,this.lineSoFar);const c=s.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,c),s.primitiveLength++),a?this.e2=c:this.e1=c}updateScaledDistance(){if(this.lineClips){const e=this.totalDistance/(this.lineClips.end-this.lineClips.start);this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=e*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}}Ki(Nl,"LineBucket",{omit:["layers","patternFeatures"]});const Ul=new ca({"line-cap":new ra(Ne.layout_line["line-cap"]),"line-join":new ra(Ne.layout_line["line-join"]),"line-miter-limit":new ia(Ne.layout_line["line-miter-limit"]),"line-round-limit":new ia(Ne.layout_line["line-round-limit"]),"line-sort-key":new ra(Ne.layout_line["line-sort-key"])});var Vl={paint:new ca({"line-opacity":new ra(Ne.paint_line["line-opacity"]),"line-color":new ra(Ne.paint_line["line-color"]),"line-translate":new ia(Ne.paint_line["line-translate"]),"line-translate-anchor":new ia(Ne.paint_line["line-translate-anchor"]),"line-width":new ra(Ne.paint_line["line-width"]),"line-gap-width":new ra(Ne.paint_line["line-gap-width"]),"line-offset":new ra(Ne.paint_line["line-offset"]),"line-blur":new ra(Ne.paint_line["line-blur"]),"line-dasharray":new aa(Ne.paint_line["line-dasharray"]),"line-pattern":new aa(Ne.paint_line["line-pattern"]),"line-gradient":new sa(Ne.paint_line["line-gradient"])}),layout:Ul};const Wl=new class extends ra{possiblyEvaluate(e,t){return t=new Xr(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,zoomHistory:t.zoomHistory,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,n,i){return t=x({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,n,i)}}(Vl.paint.properties["line-width"].specification);function ql(e,t){return t>0?t+2*e:e}Wl.useIntegerZoom=!0;const Gl=ha([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_tex_size",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"},{name:"a_z_tile_anchor",components:4,type:"Int16"}],4),Zl=ha([{name:"a_projected_pos",components:3,type:"Float32"}],4);ha([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const Hl=ha([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]),Xl=ha([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"}]);ha([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"tileAnchorX"},{type:"Int16",name:"tileAnchorY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const Kl=ha([{name:"a_pos",components:3,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Yl=ha([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);ha([{name:"triangle",components:3,type:"Uint16"}]),ha([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Uint8",name:"flipState"}]),ha([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),ha([{type:"Float32",name:"offsetX"}]),ha([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);const Jl=128;function Ql(e,t){const{expression:n}=t;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new Xr(e+1))};if("source"===n.kind)return{kind:"source"};{const{zoomStops:t,interpolationType:i}=n;let r=0;for(;r<t.length&&t[r]<=e;)r++;r=Math.max(0,r-1);let a=r;for(;a<t.length&&t[a]<e+1;)a++;a=Math.min(t.length-1,a);const o=t[r],s=t[a];return"composite"===n.kind?{kind:"composite",minZoom:o,maxZoom:s,interpolationType:i}:{kind:"camera",minZoom:o,maxZoom:s,minSize:n.evaluate(new Xr(o)),maxSize:n.evaluate(new Xr(s)),interpolationType:i}}}function $l(e,{uSize:t,uSizeT:n},{lowerSize:i,upperSize:r}){return"source"===e.kind?i/Jl:"composite"===e.kind?tn(i/Jl,r/Jl,n):t}function eu(e,t){let n=0,i=0;if("constant"===e.kind)i=e.layoutSize;else if("source"!==e.kind){const{interpolationType:r,minZoom:a,maxZoom:o}=e,s=r?f(bn.interpolationFactor(r,t,a,o),0,1):0;"camera"===e.kind?i=tn(e.minSize,e.maxSize,s):n=s}return{uSizeT:n,uSize:i}}var tu=Object.freeze({__proto__:null,getSizeData:Ql,evaluateSizeForFeature:$l,evaluateSizeForZoom:eu,SIZE_PACK_FACTOR:Jl});function nu(e,t,n){return e.sections.forEach(e=>{e.text=function(e,t,n){const i=t.layout.get("text-transform").evaluate(n,{});return"uppercase"===i?e=e.toLocaleUpperCase():"lowercase"===i&&(e=e.toLocaleLowerCase()),Hr.applyArabicShaping&&(e=Hr.applyArabicShaping(e)),e}(e.text,t,n)}),e}const iu={"!":"\ufe15","#":"\uff03",$:"\uff04","%":"\uff05","&":"\uff06","(":"\ufe35",")":"\ufe36","*":"\uff0a","+":"\uff0b",",":"\ufe10","-":"\ufe32",".":"\u30fb","/":"\uff0f",":":"\ufe13",";":"\ufe14","<":"\ufe3f","=":"\uff1d",">":"\ufe40","?":"\ufe16","@":"\uff20","[":"\ufe47","\\":"\uff3c","]":"\ufe48","^":"\uff3e",_:"\ufe33","`":"\uff40","{":"\ufe37","|":"\u2015","}":"\ufe38","~":"\uff5e","\xa2":"\uffe0","\xa3":"\uffe1","\xa5":"\uffe5","\xa6":"\uffe4","\xac":"\uffe2","\xaf":"\uffe3","\u2013":"\ufe32","\u2014":"\ufe31","\u2018":"\ufe43","\u2019":"\ufe44","\u201c":"\ufe41","\u201d":"\ufe42","\u2026":"\ufe19","\u2027":"\u30fb","\u20a9":"\uffe6","\u3001":"\ufe11","\u3002":"\ufe12","\u3008":"\ufe3f","\u3009":"\ufe40","\u300a":"\ufe3d","\u300b":"\ufe3e","\u300c":"\ufe41","\u300d":"\ufe42","\u300e":"\ufe43","\u300f":"\ufe44","\u3010":"\ufe3b","\u3011":"\ufe3c","\u3014":"\ufe39","\u3015":"\ufe3a","\u3016":"\ufe17","\u3017":"\ufe18","\uff01":"\ufe15","\uff08":"\ufe35","\uff09":"\ufe36","\uff0c":"\ufe10","\uff0d":"\ufe32","\uff0e":"\u30fb","\uff1a":"\ufe13","\uff1b":"\ufe14","\uff1c":"\ufe3f","\uff1e":"\ufe40","\uff1f":"\ufe16","\uff3b":"\ufe47","\uff3d":"\ufe48","\uff3f":"\ufe33","\uff5b":"\ufe37","\uff5c":"\u2015","\uff5d":"\ufe38","\uff5f":"\ufe35","\uff60":"\ufe36","\uff61":"\ufe12","\uff62":"\ufe41","\uff63":"\ufe42"};function ru(e){return"\ufe36"===e||"\ufe48"===e||"\ufe38"===e||"\ufe44"===e||"\ufe42"===e||"\ufe3e"===e||"\ufe3c"===e||"\ufe3a"===e||"\ufe18"===e||"\ufe40"===e||"\ufe10"===e||"\ufe13"===e||"\ufe14"===e||"\uff40"===e||"\uffe3"===e||"\ufe11"===e||"\ufe12"===e}function au(e){return"\ufe35"===e||"\ufe47"===e||"\ufe37"===e||"\ufe43"===e||"\ufe41"===e||"\ufe3d"===e||"\ufe3b"===e||"\ufe39"===e||"\ufe17"===e||"\ufe3f"===e}var ou=function(e,t,n,i,r){var a,o,s=8*r-i-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?r-1:0,p=n?-1:1,h=e[t+d];for(d+=p,a=h&(1<<-u)-1,h>>=-u,u+=s;u>0;a=256*a+e[t+d],d+=p,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=i;u>0;o=256*o+e[t+d],d+=p,u-=8);if(0===a)a=1-l;else{if(a===c)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,i),a-=l}return(h?-1:1)*o*Math.pow(2,a-i)},su=function(e,t,n,i,r,a){var o,s,c,l=8*a-r-1,u=(1<<l)-1,d=u>>1,p=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=i?0:a-1,m=i?1:-1,f=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*Math.pow(2,r),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),o=0));r>=8;e[n+h]=255&s,h+=m,s/=256,r-=8);for(o=o<<r|s,l+=r;l>0;e[n+h]=255&o,h+=m,o/=256,l-=8);e[n+h-m]|=128*f},cu=lu;function lu(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}lu.Varint=0,lu.Fixed64=1,lu.Bytes=2,lu.Fixed32=5;var uu=4294967296,du=1/uu,pu="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function hu(e){return e.type===lu.Bytes?e.readVarint()+e.pos:e.pos+1}function mu(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function fu(e,t,n){var i=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(i);for(var r=n.pos-1;r>=e;r--)n.buf[r+i]=n.buf[r]}function gu(e,t){for(var n=0;n<e.length;n++)t.writeVarint(e[n])}function bu(e,t){for(var n=0;n<e.length;n++)t.writeSVarint(e[n])}function vu(e,t){for(var n=0;n<e.length;n++)t.writeFloat(e[n])}function yu(e,t){for(var n=0;n<e.length;n++)t.writeDouble(e[n])}function xu(e,t){for(var n=0;n<e.length;n++)t.writeBoolean(e[n])}function _u(e,t){for(var n=0;n<e.length;n++)t.writeFixed32(e[n])}function wu(e,t){for(var n=0;n<e.length;n++)t.writeSFixed32(e[n])}function Ou(e,t){for(var n=0;n<e.length;n++)t.writeFixed64(e[n])}function ju(e,t){for(var n=0;n<e.length;n++)t.writeSFixed64(e[n])}function Cu(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function Eu(e,t,n){e[n]=t,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function Tu(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}function ku(e,t,n){t.glyphs=[],1===e&&n.readMessage(Su,t)}function Su(e,t,n){if(3===e){const{id:e,bitmap:i,width:r,height:a,left:o,top:s,advance:c}=n.readMessage(Au,{});t.glyphs.push({id:e,bitmap:new bc({width:r+6,height:a+6},i),metrics:{width:r,height:a,left:o,top:s,advance:c}})}else 4===e?t.ascender=n.readSVarint():5===e&&(t.descender=n.readSVarint())}function Au(e,t,n){1===e?t.id=n.readVarint():2===e?t.bitmap=n.readBytes():3===e?t.width=n.readVarint():4===e?t.height=n.readVarint():5===e?t.left=n.readSVarint():6===e?t.top=n.readSVarint():7===e&&(t.advance=n.readVarint())}function Iu(e){let t=0,n=0;for(const o of e)t+=o.w*o.h,n=Math.max(n,o.w);e.sort((e,t)=>t.h-e.h);const i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),n),h:1/0}];let r=0,a=0;for(const o of e)for(let e=i.length-1;e>=0;e--){const t=i[e];if(!(o.w>t.w||o.h>t.h)){if(o.x=t.x,o.y=t.y,a=Math.max(a,o.y+o.h),r=Math.max(r,o.x+o.w),o.w===t.w&&o.h===t.h){const t=i.pop();e<i.length&&(i[e]=t)}else o.h===t.h?(t.x+=o.w,t.w-=o.w):o.w===t.w?(t.y+=o.h,t.h-=o.h):(i.push({x:t.x+o.w,y:t.y,w:t.w-o.w,h:o.h}),t.y+=o.h,t.h-=o.h);break}}return{w:r,h:a,fill:t/(r*a)||0}}lu.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos<n;){var i=this.readVarint(),r=i>>3,a=this.pos;this.type=7&i,e(r,t,this),this.pos===a&&this.skip(i)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=Cu(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=Tu(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=Cu(this.buf,this.pos)+Cu(this.buf,this.pos+4)*uu;return this.pos+=8,e},readSFixed64:function(){var e=Cu(this.buf,this.pos)+Tu(this.buf,this.pos+4)*uu;return this.pos+=8,e},readFloat:function(){var e=ou(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=ou(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,i=this.buf;return t=127&(n=i[this.pos++]),n<128?t:(t|=(127&(n=i[this.pos++]))<<7,n<128?t:(t|=(127&(n=i[this.pos++]))<<14,n<128?t:(t|=(127&(n=i[this.pos++]))<<21,n<128?t:function(e,t,n){var i,r,a=n.buf;if(i=(112&(r=a[n.pos++]))>>4,r<128)return mu(e,i,t);if(i|=(127&(r=a[n.pos++]))<<3,r<128)return mu(e,i,t);if(i|=(127&(r=a[n.pos++]))<<10,r<128)return mu(e,i,t);if(i|=(127&(r=a[n.pos++]))<<17,r<128)return mu(e,i,t);if(i|=(127&(r=a[n.pos++]))<<24,r<128)return mu(e,i,t);if(i|=(1&(r=a[n.pos++]))<<31,r<128)return mu(e,i,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=i[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&pu?function(e,t,n){return pu.decode(e.subarray(t,n))}(this.buf,t,e):function(e,t,n){for(var i="",r=t;r<n;){var a,o,s,c=e[r],l=null,u=c>239?4:c>223?3:c>191?2:1;if(r+u>n)break;1===u?c<128&&(l=c):2===u?128==(192&(a=e[r+1]))&&(l=(31&c)<<6|63&a)<=127&&(l=null):3===u?(o=e[r+2],128==(192&(a=e[r+1]))&&128==(192&o)&&((l=(15&c)<<12|(63&a)<<6|63&o)<=2047||l>=55296&&l<=57343)&&(l=null)):4===u&&(o=e[r+2],s=e[r+3],128==(192&(a=e[r+1]))&&128==(192&o)&&128==(192&s)&&((l=(15&c)<<18|(63&a)<<12|(63&o)<<6|63&s)<=65535||l>=1114112)&&(l=null)),null===l?(l=65533,u=1):l>65535&&(l-=65536,i+=String.fromCharCode(l>>>10&1023|55296),l=56320|1023&l),i+=String.fromCharCode(l),r+=u}return i}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==lu.Bytes)return e.push(this.readVarint(t));var n=hu(this);for(e=e||[];this.pos<n;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==lu.Bytes)return e.push(this.readSVarint());var t=hu(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==lu.Bytes)return e.push(this.readBoolean());var t=hu(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==lu.Bytes)return e.push(this.readFloat());var t=hu(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==lu.Bytes)return e.push(this.readDouble());var t=hu(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==lu.Bytes)return e.push(this.readFixed32());var t=hu(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==lu.Bytes)return e.push(this.readSFixed32());var t=hu(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==lu.Bytes)return e.push(this.readFixed64());var t=hu(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==lu.Bytes)return e.push(this.readSFixed64());var t=hu(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===lu.Varint)for(;this.buf[this.pos++]>127;);else if(t===lu.Bytes)this.pos=this.readVarint()+this.pos;else if(t===lu.Fixed32)this.pos+=4;else{if(t!==lu.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var n=new Uint8Array(t);n.set(this.buf),this.buf=n,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),Eu(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),Eu(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),Eu(this.buf,-1&e,this.pos),Eu(this.buf,Math.floor(e*du),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),Eu(this.buf,-1&e,this.pos),Eu(this.buf,Math.floor(e*du),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var n,i;if(e>=0?(n=e%4294967296|0,i=e/4294967296|0):(i=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,i=i+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,n.buf[n.pos]=127&(e>>>=7)}(n,0,t),function(e,t){var n=(7&e)<<4;t.buf[t.pos++]|=n|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(i,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,n){for(var i,r,a=0;a<t.length;a++){if((i=t.charCodeAt(a))>55295&&i<57344){if(!r){i>56319||a+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):r=i;continue}if(i<56320){e[n++]=239,e[n++]=191,e[n++]=189,r=i;continue}i=r-55296<<10|i-56320|65536,r=null}else r&&(e[n++]=239,e[n++]=191,e[n++]=189,r=null);i<128?e[n++]=i:(i<2048?e[n++]=i>>6|192:(i<65536?e[n++]=i>>12|224:(e[n++]=i>>18|240,e[n++]=i>>12&63|128),e[n++]=i>>6&63|128),e[n++]=63&i|128)}return n}(this.buf,e,this.pos);var n=this.pos-t;n>=128&&fu(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),su(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),su(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var n=0;n<t;n++)this.buf[this.pos++]=e[n]},writeRawMessage:function(e,t){this.pos++;var n=this.pos;e(t,this);var i=this.pos-n;i>=128&&fu(n,i,this),this.pos=n-1,this.writeVarint(i),this.pos+=i},writeMessage:function(e,t,n){this.writeTag(e,lu.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,gu,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,bu,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,xu,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,vu,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,yu,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,_u,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,wu,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,Ou,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,ju,t)},writeBytesField:function(e,t){this.writeTag(e,lu.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,lu.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,lu.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,lu.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,lu.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,lu.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,lu.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,lu.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,lu.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,lu.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}};class Mu{constructor(e,{pixelRatio:t,version:n,stretchX:i,stretchY:r,content:a}){this.paddedRect=e,this.pixelRatio=t,this.stretchX=i,this.stretchY=r,this.content=a,this.version=n}get tl(){return[this.paddedRect.x+1,this.paddedRect.y+1]}get br(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]}get displaySize(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]}}class Lu{constructor(e,t){const n={},i={};this.haveRenderCallbacks=[];const r=[];this.addImages(e,n,r),this.addImages(t,i,r);const{w:a,h:o}=Iu(r),s=new vc({width:a||1,height:o||1});for(const c in e){const t=e[c],i=n[c].paddedRect;vc.copy(t.data,s,{x:0,y:0},{x:i.x+1,y:i.y+1},t.data)}for(const c in t){const e=t[c],n=i[c].paddedRect,r=n.x+1,a=n.y+1,o=e.data.width,l=e.data.height;vc.copy(e.data,s,{x:0,y:0},{x:r,y:a},e.data),vc.copy(e.data,s,{x:0,y:l-1},{x:r,y:a-1},{width:o,height:1}),vc.copy(e.data,s,{x:0,y:0},{x:r,y:a+l},{width:o,height:1}),vc.copy(e.data,s,{x:o-1,y:0},{x:r-1,y:a},{width:1,height:l}),vc.copy(e.data,s,{x:0,y:0},{x:r+o,y:a},{width:1,height:l})}this.image=s,this.iconPositions=n,this.patternPositions=i}addImages(e,t,n){for(const i in e){const r=e[i],a={x:0,y:0,w:r.data.width+2,h:r.data.height+2};n.push(a),t[i]=new Mu(a,r),r.hasRenderCallback&&this.haveRenderCallbacks.push(i)}}patchUpdatedImages(e,t){this.haveRenderCallbacks=this.haveRenderCallbacks.filter(t=>e.hasImage(t)),e.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const n in e.updatedImages)this.patchUpdatedImage(this.iconPositions[n],e.getImage(n),t),this.patchUpdatedImage(this.patternPositions[n],e.getImage(n),t)}patchUpdatedImage(e,t,n){if(!e||!t)return;if(e.version===t.version)return;e.version=t.version;const[i,r]=e.tl;n.update(t.data,void 0,{x:i,y:r})}}Ki(Mu,"ImagePosition"),Ki(Lu,"ImageAtlas");const Bu={horizontal:1,vertical:2,horizontalOnly:3};class Ru{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(e,t){const n=new Ru;return n.scale=e||1,n.fontStack=t,n}static forImage(e){const t=new Ru;return t.imageName=e,t}}class Du{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(e,t){const n=new Du;for(let i=0;i<e.sections.length;i++){const r=e.sections[i];r.image?n.addImageSection(r):n.addTextSection(r,t)}return n}length(){return this.text.length}getSection(e){return this.sections[this.sectionIndex[e]]}getSections(){return this.sections}getSectionIndex(e){return this.sectionIndex[e]}getCharCode(e){return this.text.charCodeAt(e)}verticalizePunctuation(e){this.text=function(e,t){let n="";for(let i=0;i<e.length;i++){const r=e.charCodeAt(i+1)||null,a=e.charCodeAt(i-1)||null;n+=!t&&(r&&Mr(r)&&!iu[e[i+1]]||a&&Mr(a)&&!iu[e[i-1]])||!iu[e[i]]?e[i]:iu[e[i]]}return n}(this.text,e)}trim(){let e=0;for(let n=0;n<this.text.length&&zu[this.text.charCodeAt(n)];n++)e++;let t=this.text.length;for(let n=this.text.length-1;n>=0&&n>=e&&zu[this.text.charCodeAt(n)];n--)t--;this.text=this.text.substring(e,t),this.sectionIndex=this.sectionIndex.slice(e,t)}substring(e,t){const n=new Du;return n.text=this.text.substring(e,t),n.sectionIndex=this.sectionIndex.slice(e,t),n.sections=this.sections,n}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((e,t)=>Math.max(e,this.sections[t].scale),0)}addTextSection(e,t){this.text+=e.text,this.sections.push(Ru.forText(e.scale,e.fontStack||t));const n=this.sections.length-1;for(let i=0;i<e.text.length;++i)this.sectionIndex.push(n)}addImageSection(e){const t=e.image?e.image.name:"";if(0===t.length)return void M("Can't add FormattedSection with an empty image.");const n=this.getNextImageSectionCharCode();n?(this.text+=String.fromCharCode(n),this.sections.push(Ru.forImage(t)),this.sectionIndex.push(this.sections.length-1)):M("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Pu(e,t,n,i,r,a,o,s,c,l,u,d,p,h,m,f){const g=Du.fromFeature(e,r);let b;d===Bu.vertical&&g.verticalizePunctuation(p);const{processBidirectionalText:v,processStyledBidirectionalText:y}=Hr;if(v&&1===g.sections.length){b=[];const e=v(g.toString(),qu(g,l,a,t,i,h,m));for(const t of e){const e=new Du;e.text=t,e.sections=g.sections;for(let n=0;n<t.length;n++)e.sectionIndex.push(0);b.push(e)}}else if(y){b=[];const e=y(g.text,g.sectionIndex,qu(g,l,a,t,i,h,m));for(const t of e){const e=new Du;e.text=t[0],e.sectionIndex=t[1],e.sections=g.sections,b.push(e)}}else b=function(e,t){const n=[],i=e.text;let r=0;for(const a of t)n.push(e.substring(r,a)),r=a;return r<i.length&&n.push(e.substring(r,i.length)),n}(g,qu(g,l,a,t,i,h,m));const x=[],_={positionedLines:x,text:g.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:d,iconsInText:!1,verticalizable:!1,hasBaseline:!1};return function(e,t,n,i,r,a,o,s,c,l,u,d){let p=0,h=0,m=0;const f="right"===s?1:"left"===s?0:.5;let g=!1;for(const w of r){const e=w.getSections();for(const n of e){if(n.imageName)continue;const e=t[n.fontStack];if(e&&(g=void 0!==e.ascender&&void 0!==e.descender,!g))break}if(!g)break}let b=0;for(const w of r){w.trim();const r=w.getMaxScale(),o=24*(r-1),s={positionedGlyphs:[],lineOffset:0};e.positionedLines[b]=s;const y=s.positionedGlyphs;let x=0;if(!w.length()){h+=a,++b;continue}let _=0,O=0;for(let a=0;a<w.length();a++){const o=w.getSection(a),s=w.getSectionIndex(a),m=w.getCharCode(a);let f=o.scale,b=null,j=null,C=null,E=24,T=0;const k=!(c===Bu.horizontal||!u&&!Ir(m)||u&&(zu[m]||(v=m,tr(v)||nr(v)||ir(v)||wr(v)||Er(v))));if(o.imageName){const t=i[o.imageName];if(!t)continue;C=o.imageName,e.iconsInText=e.iconsInText||!0,j=t.paddedRect;const n=t.displaySize;f=24*f/d,b={width:n[0],height:n[1],left:1,top:-3,advance:k?n[1]:n[0],localGlyph:!1},T=g?-b.height*f:24*r-17-n[1]*f,E=b.advance;const a=(k?n[0]:n[1])*f-24*r;a>0&&a>x&&(x=a)}else{const e=n[o.fontStack];if(!e)continue;e[m]&&(j=e[m]);const i=t[o.fontStack];if(!i)continue;const a=i.glyphs[m];if(!a)continue;if(b=a.metrics,E=8203!==m?24:0,g){const e=void 0!==i.ascender?Math.abs(i.ascender):0,t=void 0!==i.descender?Math.abs(i.descender):0,n=(e+t)*f;_<n&&(_=n,O=(e-t)/2*f),T=-e*f}else T=24*(r-f)-17}k?(e.verticalizable=!0,y.push({glyph:m,imageName:C,x:p,y:h+T,vertical:k,scale:f,localGlyph:b.localGlyph,fontStack:o.fontStack,sectionIndex:s,metrics:b,rect:j}),p+=E*f+l):(y.push({glyph:m,imageName:C,x:p,y:h+T,vertical:k,scale:f,localGlyph:b.localGlyph,fontStack:o.fontStack,sectionIndex:s,metrics:b,rect:j}),p+=b.advance*f+l)}0!==y.length&&(m=Math.max(p-l,m),g?Zu(y,f,x,O,a*r/2):Zu(y,f,x,0,a/2)),p=0;const j=a*r+x;s.lineOffset=Math.max(x,o),h+=j,++b}var v;const y=h,{horizontalAlign:x,verticalAlign:_}=Gu(o);(function(e,t,n,i,r,a){const o=(t-n)*r,s=-a*i;for(const c of e)for(const e of c.positionedGlyphs)e.x+=o,e.y+=s})(e.positionedLines,f,x,_,m,y),e.top+=-_*y,e.bottom=e.top+y,e.left+=-x*m,e.right=e.left+m,e.hasBaseline=g}(_,t,n,i,b,o,s,c,d,l,p,f),!function(e){for(const t of e)if(0!==t.positionedGlyphs.length)return!1;return!0}(x)&&_}const zu={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Fu={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function Nu(e,t,n,i,r,a){if(t.imageName){const e=i[t.imageName];return e?e.displaySize[0]*t.scale*24/a+r:0}{const i=n[t.fontStack],a=i&&i.glyphs[e];return a?a.metrics.advance*t.scale+r:0}}function Uu(e,t,n,i){const r=Math.pow(e-t,2);return i?e<t?r/2:2*r:r+Math.abs(n)*n}function Vu(e,t,n){let i=0;return 10===e&&(i-=1e4),n&&(i+=150),40!==e&&65288!==e||(i+=50),41!==t&&65289!==t||(i+=50),i}function Wu(e,t,n,i,r,a){let o=null,s=Uu(t,n,r,a);for(const c of i){const e=Uu(t-c.x,n,r,a)+c.badness;e<=s&&(o=c,s=e)}return{index:e,x:t,priorBreak:o,badness:s}}function qu(e,t,n,i,r,a,o){if("point"!==a)return[];if(!e)return[];const s=[],c=function(e,t,n,i,r,a){let o=0;for(let s=0;s<e.length();s++){const n=e.getSection(s);o+=Nu(e.getCharCode(s),n,i,r,t,a)}return o/Math.max(1,Math.ceil(o/n))}(e,t,n,i,r,o),l=e.text.indexOf("\u200b")>=0;let u=0;for(let p=0;p<e.length();p++){const n=e.getSection(p),a=e.getCharCode(p);if(zu[a]||(u+=Nu(a,n,i,r,t,o)),p<e.length()-1){const t=!((d=a)<11904||!(dr(d)||ur(d)||jr(d)||_r(d)||fr(d)||rr(d)||pr(d)||sr(d)||gr(d)||br(d)||mr(d)||Tr(d)||cr(d)||or(d)||ar(d)||hr(d)||lr(d)||Or(d)||yr(d)||vr(d)));(Fu[a]||t||n.imageName)&&s.push(Wu(p+1,u,c,s,Vu(a,e.getCharCode(p+1),t&&l),!1))}}var d;return function e(t){return t?e(t.priorBreak).concat(t.index):[]}(Wu(e.length(),u,c,s,0,!0))}function Gu(e){let t=.5,n=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:t,verticalAlign:n}}function Zu(e,t,n,i,r){if(!(t||n||i||r))return;const a=e.length-1,o=e[a],s=(o.x+o.metrics.advance*o.scale)*t;for(let c=0;c<=a;c++)e[c].x-=s,e[c].y+=n+i+r}function Hu(e,t,n){const{horizontalAlign:i,verticalAlign:r}=Gu(n),a=t[0]-e.displaySize[0]*i,o=t[1]-e.displaySize[1]*r;return{image:e,top:o,bottom:o+e.displaySize[1],left:a,right:a+e.displaySize[0]}}function Xu(e,t,n,i,r,a){const o=e.image;let s;if(o.content){const e=o.content,t=o.pixelRatio||1;s=[e[0]/t,e[1]/t,o.displaySize[0]-e[2]/t,o.displaySize[1]-e[3]/t]}const c=t.left*a,l=t.right*a;let u,d,p,h;"width"===n||"both"===n?(h=r[0]+c-i[3],d=r[0]+l+i[1]):(h=r[0]+(c+l-o.displaySize[0])/2,d=h+o.displaySize[0]);const m=t.top*a,f=t.bottom*a;return"height"===n||"both"===n?(u=r[1]+m-i[0],p=r[1]+f+i[2]):(u=r[1]+(m+f-o.displaySize[1])/2,p=u+o.displaySize[1]),{image:o,top:u,right:d,bottom:p,left:h,collisionPadding:s}}class Ku extends r{constructor(e,t,n,i,r){super(e,t),this.angle=i,this.z=n,void 0!==r&&(this.segment=r)}clone(){return new Ku(this.x,this.y,this.z,this.angle,this.segment)}}function Yu(e,t,n,i,r){if(void 0===t.segment)return!0;let a=t,o=t.segment+1,s=0;for(;s>-n/2;){if(o--,o<0)return!1;s-=e[o].dist(a),a=e[o]}s+=e[o].dist(e[o+1]),o++;const c=[];let l=0;for(;s<n/2;){const t=e[o],n=e[o+1];if(!n)return!1;let a=e[o-1].angleTo(t)-t.angleTo(n);for(a=Math.abs((a+3*Math.PI)%(2*Math.PI)-Math.PI),c.push({distance:s,angleDelta:a}),l+=a;s-c[0].distance>i;)l-=c.shift().angleDelta;if(l>r)return!1;o++,s+=t.dist(n)}return!0}function Ju(e){let t=0;for(let n=0;n<e.length-1;n++)t+=e[n].dist(e[n+1]);return t}function Qu(e,t,n){return e?.6*t*n:0}function $u(e,t){return Math.max(e?e.right-e.left:0,t?t.right-t.left:0)}function ed(e,t,n,i,r,a){const o=Qu(n,r,a),s=$u(n,i)*a;let c=0;const l=Ju(e)/2;for(let u=0;u<e.length-1;u++){const n=e[u],i=e[u+1],r=n.dist(i);if(c+r>l){const a=(l-c)/r,d=tn(n.x,i.x,a),p=tn(n.y,i.y,a),h=new Ku(d,p,0,i.angleTo(n),u);return!o||Yu(e,h,s,o,t)?h:void 0}c+=r}}function td(e,t,n,i,r,a,o,s,c){const l=Qu(i,a,o),u=$u(i,r),d=u*o,p=0===e[0].x||e[0].x===c||0===e[0].y||e[0].y===c;return t-d<t/4&&(t=d+t/4),function e(t,n,i,r,a,o,s,c,l){const u=o/2,d=Ju(t);let p=0,h=n-i,m=[];for(let f=0;f<t.length-1;f++){const e=t[f],n=t[f+1],s=e.dist(n),c=n.angleTo(e);for(;h+i<p+s;){h+=i;const g=(h-p)/s,b=tn(e.x,n.x,g),v=tn(e.y,n.y,g);if(b>=0&&b<l&&v>=0&&v<l&&h-u>=0&&h+u<=d){const e=new Ku(b,v,0,c,f);e._round(),r&&!Yu(t,e,o,r,a)||m.push(e)}}p+=s}return c||m.length||s||(m=e(t,p/2,i,r,a,o,s,!0,l)),m}(e,p?t/2*s%t:(u/2+2*a)*o*s%t,t,l,n,d,p,!1,c)}function nd(e,t,n,i,a){const o=[];for(let s=0;s<e.length;s++){const c=e[s];let l;for(let e=0;e<c.length-1;e++){let s=c[e],u=c[e+1];s.x<t&&u.x<t||(s.x<t?s=new r(t,s.y+(t-s.x)/(u.x-s.x)*(u.y-s.y))._round():u.x<t&&(u=new r(t,s.y+(t-s.x)/(u.x-s.x)*(u.y-s.y))._round()),s.y<n&&u.y<n||(s.y<n?s=new r(s.x+(n-s.y)/(u.y-s.y)*(u.x-s.x),n)._round():u.y<n&&(u=new r(s.x+(n-s.y)/(u.y-s.y)*(u.x-s.x),n)._round()),s.x>=i&&u.x>=i||(s.x>=i?s=new r(i,s.y+(i-s.x)/(u.x-s.x)*(u.y-s.y))._round():u.x>=i&&(u=new r(i,s.y+(i-s.x)/(u.x-s.x)*(u.y-s.y))._round()),s.y>=a&&u.y>=a||(s.y>=a?s=new r(s.x+(a-s.y)/(u.y-s.y)*(u.x-s.x),a)._round():u.y>=a&&(u=new r(s.x+(a-s.y)/(u.y-s.y)*(u.x-s.x),a)._round()),l&&s.equals(l[l.length-1])||(l=[s],o.push(l)),l.push(u)))))}}return o}Ki(Ku,"Anchor");const id=1e20;function rd(e,t,n,i,r,a,o,s,c){for(let l=t;l<t+i;l++)ad(e,n*a+l,a,r,o,s,c);for(let l=n;l<n+r;l++)ad(e,l*a+t,1,i,o,s,c)}function ad(e,t,n,i,r,a,o){a[0]=0,o[0]=-id,o[1]=id,r[0]=e[t];for(let s=1,c=0,l=0;s<i;s++){r[s]=e[t+s*n];const i=s*s;do{const e=a[c];l=(r[s]-r[e]+i-e*e)/(s-e)/2}while(l<=o[c]&&--c>-1);c++,a[c]=s,o[c]=l,o[c+1]=id}for(let s=0,c=0;s<i;s++){for(;o[c+1]<s;)c++;const i=a[c],l=s-i;e[t+s*n]=r[i]+l*l}}const od={none:0,ideographs:1,all:2};class sd{constructor(e,t,n){this.requestManager=e,this.localGlyphMode=t,this.localFontFamily=n,this.entries={},this.localGlyphs={200:{},400:{},500:{},900:{}}}setURL(e){this.url=e}getGlyphs(e,t){const n=[];for(const i in e)for(const t of e[i])n.push({stack:i,id:t});v(n,({stack:e,id:t},n)=>{let i=this.entries[e];i||(i=this.entries[e]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let r=i.glyphs[t];if(void 0!==r)return void n(null,{stack:e,id:t,glyph:r});if(r=this._tinySDF(i,e,t),r)return i.glyphs[t]=r,void n(null,{stack:e,id:t,glyph:r});const a=Math.floor(t/256);if(256*a>65535)return void n(new Error("glyphs > 65535 not supported"));if(i.ranges[a])return void n(null,{stack:e,id:t,glyph:r});let o=i.requests[a];o||(o=i.requests[a]=[],sd.loadGlyphRange(e,a,this.url,this.requestManager,(e,t)=>{if(t){i.ascender=t.ascender,i.descender=t.descender;for(const e in t.glyphs)this._doesCharSupportLocalGlyph(+e)||(i.glyphs[+e]=t.glyphs[+e]);i.ranges[a]=!0}for(const n of o)n(e,t);delete i.requests[a]})),o.push((i,r)=>{i?n(i):r&&n(null,{stack:e,id:t,glyph:r.glyphs[t]||null})})},(e,n)=>{if(e)t(e);else if(n){const e={};for(const{stack:t,id:i,glyph:r}of n)void 0===e[t]&&(e[t]={}),void 0===e[t].glyphs&&(e[t].glyphs={}),e[t].glyphs[i]=r&&{id:r.id,bitmap:r.bitmap.clone(),metrics:r.metrics},e[t].ascender=this.entries[t].ascender,e[t].descender=this.entries[t].descender;t(null,e)}})}_doesCharSupportLocalGlyph(e){return this.localGlyphMode!==od.none&&(this.localGlyphMode===od.all?!!this.localFontFamily:!!this.localFontFamily&&(br(e)||xr(e)||cr(e)||lr(e)||sr(e)))}_tinySDF(e,t,n){const i=this.localFontFamily;if(!i||!this._doesCharSupportLocalGlyph(n))return;let r=e.tinySDF;if(!r){let n="400";/bold/i.test(t)?n="900":/medium/i.test(t)?n="500":/light/i.test(t)&&(n="200"),r=e.tinySDF=new sd.TinySDF({fontFamily:i,fontWeight:n,fontSize:48,buffer:6,radius:16}),r.fontWeight=n}if(this.localGlyphs[r.fontWeight][n])return this.localGlyphs[r.fontWeight][n];const a=String.fromCharCode(n),{data:o,width:s,height:c,glyphWidth:l,glyphHeight:u,glyphLeft:d,glyphTop:p,glyphAdvance:h}=r.draw(a);return this.localGlyphs[r.fontWeight][n]={id:n,bitmap:new bc({width:s,height:c},o),metrics:{width:l/2,height:u/2,left:d/2,top:p/2-27,advance:h/2,localGlyph:!0}}}}function cd(e,t,n,i){const a=[],o=e.image,s=o.pixelRatio,c=o.paddedRect.w-2,l=o.paddedRect.h-2,u=e.right-e.left,d=e.bottom-e.top,p=o.stretchX||[[0,c]],h=o.stretchY||[[0,l]],m=(e,t)=>e+t[1]-t[0],f=p.reduce(m,0),g=h.reduce(m,0),b=c-f,v=l-g;let y=0,x=f,_=0,w=g,O=0,j=b,C=0,E=v;if(o.content&&i){const e=o.content;y=ld(p,0,e[0]),_=ld(h,0,e[1]),x=ld(p,e[0],e[2]),w=ld(h,e[1],e[3]),O=e[0]-y,C=e[1]-_,j=e[2]-e[0]-x,E=e[3]-e[1]-w}const T=(i,a,c,l)=>{const p=dd(i.stretch-y,x,u,e.left),h=pd(i.fixed-O,j,i.stretch,f),m=dd(a.stretch-_,w,d,e.top),b=pd(a.fixed-C,E,a.stretch,g),v=dd(c.stretch-y,x,u,e.left),T=pd(c.fixed-O,j,c.stretch,f),k=dd(l.stretch-_,w,d,e.top),S=pd(l.fixed-C,E,l.stretch,g),A=new r(p,m),I=new r(v,m),M=new r(v,k),L=new r(p,k),B=new r(h/s,b/s),R=new r(T/s,S/s),D=t*Math.PI/180;if(D){const e=Math.sin(D),t=Math.cos(D),n=[t,-e,e,t];A._matMult(n),I._matMult(n),L._matMult(n),M._matMult(n)}const P=i.stretch+i.fixed,z=a.stretch+a.fixed;return{tl:A,tr:I,bl:L,br:M,tex:{x:o.paddedRect.x+1+P,y:o.paddedRect.y+1+z,w:c.stretch+c.fixed-P,h:l.stretch+l.fixed-z},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:B,pixelOffsetBR:R,minFontScaleX:j/s/u,minFontScaleY:E/s/d,isSDF:n}};if(i&&(o.stretchX||o.stretchY)){const e=ud(p,b,f),t=ud(h,v,g);for(let n=0;n<e.length-1;n++){const i=e[n],r=e[n+1];for(let e=0;e<t.length-1;e++)a.push(T(i,t[e],r,t[e+1]))}}else a.push(T({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:c+1},{fixed:0,stretch:l+1}));return a}function ld(e,t,n){let i=0;for(const r of e)i+=Math.max(t,Math.min(n,r[1]))-Math.max(t,Math.min(n,r[0]));return i}function ud(e,t,n){const i=[{fixed:-1,stretch:0}];for(const[r,a]of e){const e=i[i.length-1];i.push({fixed:r-e.stretch,stretch:e.stretch}),i.push({fixed:r-e.stretch,stretch:e.stretch+(a-r)})}return i.push({fixed:t+1,stretch:n}),i}function dd(e,t,n,i){return e/t*n+i}function pd(e,t,n,i){return e-t*n/i}function hd(e,t,n,i){const r=t+e.positionedLines[i].lineOffset;return 0===i?n+r/2:n+(r+(t+e.positionedLines[i-1].lineOffset))/2}sd.loadGlyphRange=function(e,t,n,i,r){const a=256*t,o=a+255,s=i.transformRequest(i.normalizeGlyphsURL(n).replace("{fontstack}",e).replace("{range}",`${a}-${o}`),Oe.Glyphs);Te(s,(e,t)=>{if(e)r(e);else if(t){const e={},n=function(e){return new cu(e).readFields(ku,{})}(t);for(const t of n.glyphs)e[t.id]=t;r(null,{glyphs:e,ascender:n.ascender,descender:n.descender})}})},sd.TinySDF=class{constructor({fontSize:e=24,buffer:t=3,radius:n=8,cutoff:i=.25,fontFamily:r="sans-serif",fontWeight:a="normal",fontStyle:o="normal"}){this.buffer=t,this.cutoff=i,this.radius=n;const s=this.size=e+4*t,c=this._createCanvas(s),l=this.ctx=c.getContext("2d",{willReadFrequently:!0});l.font=`${o} ${a} ${e}px ${r}`,l.textBaseline="alphabetic",l.textAlign="left",l.fillStyle="black",this.gridOuter=new Float64Array(s*s),this.gridInner=new Float64Array(s*s),this.f=new Float64Array(s),this.z=new Float64Array(s+1),this.v=new Uint16Array(s)}_createCanvas(e){const t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){const{width:t,actualBoundingBoxAscent:n,actualBoundingBoxDescent:i,actualBoundingBoxLeft:r,actualBoundingBoxRight:a}=this.ctx.measureText(e),o=Math.floor(n),s=Math.min(this.size-this.buffer,Math.ceil(a-r)),c=Math.min(this.size-this.buffer,Math.ceil(n)+Math.ceil(i)),l=s+2*this.buffer,u=c+2*this.buffer,d=l*u,p=new Uint8ClampedArray(d),h={data:p,width:l,height:u,glyphWidth:s,glyphHeight:c,glyphTop:o,glyphLeft:0,glyphAdvance:t};if(0===s||0===c)return h;const{ctx:m,buffer:f,gridInner:g,gridOuter:b}=this;m.clearRect(f,f,s,c),m.fillText(e,f,f+o+1);const v=m.getImageData(f,f,s,c);b.fill(id,0,d),g.fill(0,0,d);for(let y=0;y<c;y++)for(let e=0;e<s;e++){const t=v.data[4*(y*s+e)+3]/255;if(0===t)continue;const n=(y+f)*l+e+f;if(1===t)b[n]=0,g[n]=id;else{const e=.5-t;b[n]=e>0?e*e:0,g[n]=e<0?e*e:0}}rd(b,0,0,l,u,l,this.f,this.v,this.z),rd(g,f,f,s,c,l,this.f,this.v,this.z);for(let y=0;y<d;y++){const e=Math.sqrt(b[y])-Math.sqrt(g[y]);p[y]=Math.round(255-255*(e/this.radius+this.cutoff))}return h}};class md{constructor(e=[],t=fd){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let n=(this.length>>1)-1;n>=0;n--)this._down(n)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:n}=this,i=t[e];for(;e>0;){const r=e-1>>1,a=t[r];if(n(i,a)>=0)break;t[e]=a,e=r}t[e]=i}_down(e){const{data:t,compare:n}=this,i=this.length>>1,r=t[e];for(;e<i;){let i=1+(e<<1),a=t[i];const o=i+1;if(o<this.length&&n(t[o],a)<0&&(i=o,a=t[o]),n(a,r)>=0)break;t[e]=a,e=i}t[e]=r}}function fd(e,t){return e<t?-1:e>t?1:0}function gd(e,t=1,n=!1){let i=1/0,a=1/0,o=-1/0,s=-1/0;const c=e[0];for(let r=0;r<c.length;r++){const e=c[r];(!r||e.x<i)&&(i=e.x),(!r||e.y<a)&&(a=e.y),(!r||e.x>o)&&(o=e.x),(!r||e.y>s)&&(s=e.y)}const l=Math.min(o-i,s-a);let u=l/2;const d=new md([],bd);if(0===l)return new r(i,a);for(let r=i;r<o;r+=l)for(let t=a;t<s;t+=l)d.push(new vd(r+u,t+u,u,e));let p=function(e){let t=0,n=0,i=0;const r=e[0];for(let a=0,o=r.length,s=o-1;a<o;s=a++){const e=r[a],o=r[s],c=e.x*o.y-o.x*e.y;n+=(e.x+o.x)*c,i+=(e.y+o.y)*c,t+=3*c}return new vd(n/t,i/t,0,e)}(e),h=d.length;for(;d.length;){const i=d.pop();(i.d>p.d||!p.d)&&(p=i,n&&console.log("found best %d after %d probes",Math.round(1e4*i.d)/1e4,h)),i.max-p.d<=t||(u=i.h/2,d.push(new vd(i.p.x-u,i.p.y-u,u,e)),d.push(new vd(i.p.x+u,i.p.y-u,u,e)),d.push(new vd(i.p.x-u,i.p.y+u,u,e)),d.push(new vd(i.p.x+u,i.p.y+u,u,e)),h+=4)}return n&&(console.log("num probes: "+h),console.log("best distance: "+p.d)),p.p}function bd(e,t){return t.max-e.max}function vd(e,t,n,i){this.p=new r(e,t),this.h=n,this.d=function(e,t){let n=!1,i=1/0;for(let r=0;r<t.length;r++){const a=t[r];for(let t=0,r=a.length,o=r-1;t<r;o=t++){const r=a[t],s=a[o];r.y>e.y!=s.y>e.y&&e.x<(s.x-r.x)*(e.y-r.y)/(s.y-r.y)+r.x&&(n=!n),i=Math.min(i,fs(e,r,s))}}return(n?1:-1)*Math.sqrt(i)}(this.p,i),this.max=this.d+this.h*Math.SQRT2}const yd=Number.POSITIVE_INFINITY,xd=Math.sqrt(2);function _d(e,t){return t[1]!==yd?function(e,t,n){let i=0,r=0;switch(t=Math.abs(t),n=Math.abs(n),e){case"top-right":case"top-left":case"top":r=n-7;break;case"bottom-right":case"bottom-left":case"bottom":r=7-n}switch(e){case"top-right":case"bottom-right":case"right":i=-t;break;case"top-left":case"bottom-left":case"left":i=t}return[i,r]}(e,t[0],t[1]):function(e,t){let n=0,i=0;t<0&&(t=0);const r=t/xd;switch(e){case"top-right":case"top-left":i=r-7;break;case"bottom-right":case"bottom-left":i=7-r;break;case"bottom":i=7-t;break;case"top":i=t-7}switch(e){case"top-right":case"bottom-right":n=-r;break;case"top-left":case"bottom-left":n=r;break;case"left":n=t;break;case"right":n=-t}return[n,i]}(e,t[0])}function wd(e,t,n,i,r,a,o,s,c,l){e.createArrays(),e.tilePixelRatio=zo/(512*e.overscaling),e.compareText={},e.iconsNeedLinear=!1;const u=e.layers[0].layout,d=e.layers[0]._unevaluatedLayout._values,p={};if("composite"===e.textSizeData.kind){const{minZoom:t,maxZoom:n}=e.textSizeData;p.compositeTextSizes=[d["text-size"].possiblyEvaluate(new Xr(t),s),d["text-size"].possiblyEvaluate(new Xr(n),s)]}if("composite"===e.iconSizeData.kind){const{minZoom:t,maxZoom:n}=e.iconSizeData;p.compositeIconSizes=[d["icon-size"].possiblyEvaluate(new Xr(t),s),d["icon-size"].possiblyEvaluate(new Xr(n),s)]}p.layoutTextSize=d["text-size"].possiblyEvaluate(new Xr(c+1),s),p.layoutIconSize=d["icon-size"].possiblyEvaluate(new Xr(c+1),s),p.textMaxSize=d["text-size"].possiblyEvaluate(new Xr(18),s);const h="map"===u.get("text-rotation-alignment")&&"point"!==u.get("symbol-placement"),m=u.get("text-size");for(const f of e.features){const a=u.get("text-font").evaluate(f,{},s).join(","),c=m.evaluate(f,{},s),d=p.layoutTextSize.evaluate(f,{},s),g=(p.layoutIconSize.evaluate(f,{},s),{horizontal:{},vertical:void 0}),b=f.text;let v,y=[0,0];if(b){const i=b.toString(),o=24*u.get("text-letter-spacing").evaluate(f,{},s),l=24*u.get("text-line-height").evaluate(f,{},s),p=Sr(i)?o:0,m=u.get("text-anchor").evaluate(f,{},s),v=u.get("text-variable-anchor");if(!v){const e=u.get("text-radial-offset").evaluate(f,{},s);y=e?_d(m,[24*e,yd]):u.get("text-offset").evaluate(f,{},s).map(e=>24*e)}let x=h?"center":u.get("text-justify").evaluate(f,{},s);const _=u.get("symbol-placement"),w="point"===_,O="point"===_?24*u.get("text-max-width").evaluate(f,{},s):0,j=o=>{e.allowVerticalPlacement&&kr(i)&&(g.vertical=Pu(b,t,n,r,a,O,l,m,o,p,y,Bu.vertical,!0,_,d,c))};if(!h&&v){const e="auto"===x?v.map(e=>Od(e)):[x];let i=!1;for(let o=0;o<e.length;o++){const s=e[o];if(!g.horizontal[s])if(i)g.horizontal[s]=g.horizontal[0];else{const e=Pu(b,t,n,r,a,O,l,"center",s,p,y,Bu.horizontal,!1,_,d,c);e&&(g.horizontal[s]=e,i=1===e.positionedLines.length)}}j("left")}else{if("auto"===x&&(x=Od(m)),w||u.get("text-writing-mode").indexOf("horizontal")>=0||!kr(i)){const e=Pu(b,t,n,r,a,O,l,m,x,p,y,Bu.horizontal,!1,_,d,c);e&&(g.horizontal[x]=e)}j("point"===_?"left":x)}}let x=!1;if(f.icon&&f.icon.name){const t=i[f.icon.name];t&&(v=Hu(r[f.icon.name],u.get("icon-offset").evaluate(f,{},s),u.get("icon-anchor").evaluate(f,{},s)),x=t.sdf,void 0===e.sdfIcons?e.sdfIcons=t.sdf:e.sdfIcons!==t.sdf&&M("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(t.pixelRatio!==e.pixelRatio||0!==u.get("icon-rotate").constantOr(1))&&(e.iconsNeedLinear=!0))}const _=Td(g.horizontal)||g.vertical;e.iconsInText||(e.iconsInText=!!_&&_.iconsInText),(_||v)&&jd(e,f,g,v,i,p,d,0,y,x,o,s,l)}a&&e.generateCollisionDebugBuffers(c,e.collisionBoxArray)}function Od(e){switch(e){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function jd(e,t,n,i,r,a,o,s,c,u,d,p,h){let m=a.textMaxSize.evaluate(t,{},p);void 0===m&&(m=o);const f=e.layers[0].layout,g=f.get("icon-offset").evaluate(t,{},p),b=Td(n.horizontal)||n.vertical,v=o/24,y=e.tilePixelRatio*m/24,x=(k=e.overscaling,e.zoom>18&&k>2&&(k>>=1),Math.max(zo/(512*k),1)*f.get("symbol-spacing")),_=f.get("text-padding")*e.tilePixelRatio,w=f.get("icon-padding")*e.tilePixelRatio,O=l(f.get("text-max-angle")),j="map"===f.get("text-rotation-alignment")&&"point"!==f.get("symbol-placement"),C="map"===f.get("icon-rotation-alignment")&&"point"!==f.get("symbol-placement"),E=f.get("symbol-placement"),T=x
2/2;var k;const S=f.get("icon-text-fit");let A;i&&"none"!==S&&(e.allowVerticalPlacement&&n.vertical&&(A=Xu(i,n.vertical,S,f.get("icon-text-fit-padding"),g,v)),b&&(i=Xu(i,b,S,f.get("icon-text-fit-padding"),g,v)));const I=(o,s,l)=>{if(s.x<0||s.x>=zo||s.y<0||s.y>=zo)return;const{x:m,y:f,z:b}=h.projectTilePoint(s.x,s.y,l),v=new Ku(m,f,b,0,void 0);!function(e,t,n,i,r,a,o,s,c,l,u,d,p,h,m,f,g,b,v,y,x,_,w,O,j){const C=e.addToLineVertexArray(t,i);let E,T,k,S,A,I,L,B=0,R=0,D=0,P=0,z=-1,F=-1;const N={};let U=so(""),V=0,W=0;if(void 0===c._unevaluatedLayout.getValue("text-radial-offset")?[V,W]=c.layout.get("text-offset").evaluate(x,{},j).map(e=>24*e):(V=24*c.layout.get("text-radial-offset").evaluate(x,{},j),W=yd),e.allowVerticalPlacement&&r.vertical){const e=r.vertical;if(m)I=Sd(e),s&&(L=Sd(s));else{const i=c.layout.get("text-rotate").evaluate(x,{},j)+90;k=kd(l,n,t,u,d,p,e,h,i,f),s&&(S=kd(l,n,t,u,d,p,s,b,i))}}if(a){const i=c.layout.get("icon-rotate").evaluate(x,{},j),r="none"!==c.layout.get("icon-text-fit"),o=cd(a,i,w,r),h=s?cd(s,i,w,r):void 0;T=kd(l,n,t,u,d,p,a,b,i),B=4*o.length;const m=e.iconSizeData;let f=null;"source"===m.kind?(f=[Jl*c.layout.get("icon-size").evaluate(x,{},j)],f[0]>Cd&&M(e.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".')):"composite"===m.kind&&(f=[Jl*_.compositeIconSizes[0].evaluate(x,{},j),Jl*_.compositeIconSizes[1].evaluate(x,{},j)],(f[0]>Cd||f[1]>Cd)&&M(e.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".')),e.addSymbols(e.icon,o,f,y,v,x,!1,n,t,C.lineStartIndex,C.lineLength,-1,O,j),z=e.icon.placedSymbolArray.length-1,h&&(R=4*h.length,e.addSymbols(e.icon,h,f,y,v,x,Bu.vertical,n,t,C.lineStartIndex,C.lineLength,-1,O,j),F=e.icon.placedSymbolArray.length-1)}for(const M in r.horizontal){const i=r.horizontal[M];E||(U=so(i.text),m?A=Sd(i):E=kd(l,n,t,u,d,p,i,h,c.layout.get("text-rotate").evaluate(x,{},j),f));const a=1===i.positionedLines.length;if(D+=Ed(e,n,t,i,o,c,m,x,f,C,r.vertical?Bu.horizontal:Bu.horizontalOnly,a?Object.keys(r.horizontal):[M],N,z,_,O,j),a)break}r.vertical&&(P+=Ed(e,n,t,r.vertical,o,c,m,x,f,C,Bu.vertical,["vertical"],N,F,_,O,j));let q=-1;const G=(e,t)=>e?Math.max(e,t):t;q=G(A,q),q=G(I,q),q=G(L,q);const Z=q>-1?1:0;e.glyphOffsetArray.length>=zd.MAX_GLYPHS&&M("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==x.sortKey&&e.addToSortKeyRanges(e.symbolInstances.length,x.sortKey),e.symbolInstances.emplaceBack(n.x,n.y,n.z,t.x,t.y,N.right>=0?N.right:-1,N.center>=0?N.center:-1,N.left>=0?N.left:-1,N.vertical>=0?N.vertical:-1,z,F,U,void 0!==E?E:e.collisionBoxArray.length,void 0!==E?E+1:e.collisionBoxArray.length,void 0!==k?k:e.collisionBoxArray.length,void 0!==k?k+1:e.collisionBoxArray.length,void 0!==T?T:e.collisionBoxArray.length,void 0!==T?T+1:e.collisionBoxArray.length,S||e.collisionBoxArray.length,S?S+1:e.collisionBoxArray.length,u,D,P,B,R,Z,0,V,W,q)}(e,s,v,o,n,i,r,A,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,_,j,c,0,w,C,g,t,a,u,d,p)};if("line"===E)for(const l of nd(t.geometry,0,0,zo,zo)){const t=td(l,x,O,n.vertical||b,i,24,y,e.overscaling,zo);for(const n of t){const t=b;t&&Ad(e,t.text,T,n)||I(l,n,p)}}else if("line-center"===E){for(const l of t.geometry)if(l.length>1){const e=ed(l,O,n.vertical||b,i,24,y);e&&I(l,e,p)}}else if("Polygon"===t.type)for(const l of tl(t.geometry,0)){const e=gd(l,16);I(l[0],new Ku(e.x,e.y,0,0,void 0),p)}else if("LineString"===t.type)for(const l of t.geometry)I(l,new Ku(l[0].x,l[0].y,0,0,void 0),p);else if("Point"===t.type)for(const l of t.geometry)for(const e of l)I([e],new Ku(e.x,e.y,0,0,void 0),p)}const Cd=32640;function Ed(e,t,n,i,a,o,s,c,l,u,d,p,h,m,f,g,b){const v=function(e,t,n,i,a,o,s,c){const l=[];if(0===t.positionedLines.length)return l;const u=i.layout.get("text-rotate").evaluate(o,{})*Math.PI/180,d=function(e){const t=e[0],n=e[1],i=t*n;return i>0?[t,-n]:i<0?[-t,n]:0===t?[n,t]:[n,-t]}(n);let p=Math.abs(t.top-t.bottom);for(const r of t.positionedLines)p-=r.lineOffset;const h=t.positionedLines.length,m=p/h;let f=t.top-n[1];for(let g=0;g<h;++g){const e=t.positionedLines[g];f=hd(t,m,f,g);for(const i of e.positionedGlyphs){if(!i.rect)continue;const e=i.rect||{};let o=4,p=!0,h=1,m=0;if(i.imageName){const e=s[i.imageName];if(!e)continue;if(e.sdf){M("SDF images are not supported in formatted text and will be ignored.");continue}p=!1,h=e.pixelRatio,o=1/h}const g=(a||c)&&i.vertical,b=i.metrics.advance*i.scale/2,v=i.metrics,y=i.rect;if(null===y)continue;c&&t.verticalizable&&(m=i.imageName?b-i.metrics.width*i.scale/2:0);const x=a?[i.x+b,i.y]:[0,0];let _=[0,0],w=[0,0],O=!1;a||(g?(w=[i.x+b+d[0],i.y+d[1]-m],O=!0):_=[i.x+b+n[0],i.y+n[1]-m]);const j=y.w*i.scale/(h*(i.localGlyph?2:1)),C=y.h*i.scale/(h*(i.localGlyph?2:1));let E,T,k,S;if(g){const e=i.y-f,t=new r(-b,b-e),n=-Math.PI/2,a=new r(...w);
vendor: 49,331 bytes, line 2
2E=new r(-b+_[0],_[1]),E._rotateAround(n,t)._add(a),E.x+=-e+b,E.y-=(v.left-o)*i.scale;const s=i.imageName?v.advance*i.scale:24*i.scale,c=String.fromCharCode(i.glyph);ru(c)?E.x+=(1-o)*i.scale:au(c)?E.x+=s-v.height*i.scale+(-o-1)*i.scale:E.x+=i.imageName||v.width+2*o===y.w&&v.height+2*o===y.h?(s-C)/2:(s-(v.height+2*o)*i.scale)/2,T=new r(E.x,E.y-j),k=new r(E.x+C,E.y),S=new r(E.x+C,E.y-j)}else{const e=(v.left-o)*i.scale-b+_[0],t=(-v.top-o)*i.scale+_[1],n=e+j,a=t+C;E=new r(e,t),T=new r(n,t),k=new r(e,a),S=new r(n,a)}if(u){let e;e=a?new r(0,0):O?new r(d[0],d[1]):new r(n[0],n[1]),E._rotateAround(u,e),T._rotateAround(u,e),k._rotateAround(u,e),S._rotateAround(u,e)}const A=new r(0,0),I=new r(0,0);l.push({tl:E,tr:T,bl:k,br:S,tex:e,writingMode:t.writingMode,glyphOffset:x,sectionIndex:i.sectionIndex,isSDF:p,pixelOffsetTL:A,pixelOffsetBR:I,minFontScaleX:0,minFontScaleY:0})}}return l}(0,i,l,o,s,c,a,e.allowVerticalPlacement),y=e.textSizeData;let x=null;"source"===y.kind?(x=[Jl*o.layout.get("text-size").evaluate(c,{},b)],x[0]>Cd&&M(e.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".')):"composite"===y.kind&&(x=[Jl*f.compositeTextSizes[0].evaluate(c,{},b),Jl*f.compositeTextSizes[1].evaluate(c,{},b)],(x[0]>Cd||x[1]>Cd)&&M(e.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".')),e.addSymbols(e.text,v,x,l,s,c,d,t,n,u.lineStartIndex,u.lineLength,m,g,b);for(const r of p)h[r]=e.text.placedSymbolArray.length-1;return 4*v.length}function Td(e){for(const t in e)return e[t];return null}function kd(e,t,n,i,a,o,s,c,u,d){let p=s.top,h=s.bottom,m=s.left,f=s.right;const g=s.collisionPadding;if(g&&(m-=g[0],p-=g[1],f+=g[2],h+=g[3]),u){const e=new r(m,p),t=new r(f,p),n=new r(m,h),i=new r(f,h),a=l(u);let o=new r(0,0);d&&(o=new r(d[0],d[1])),e._rotateAround(a,o),t._rotateAround(a,o),n._rotateAround(a,o),i._rotateAround(a,o),m=Math.min(e.x,t.x,n.x,i.x),f=Math.max(e.x,t.x,n.x,i.x),p=Math.min(e.y,t.y,n.y,i.y),h=Math.max(e.y,t.y,n.y,i.y)}return e.emplaceBack(t.x,t.y,t.z,n.x,n.y,m,p,f,h,c,i,a,o),e.length-1}function Sd(e){e.collisionPadding&&(e.top-=e.collisionPadding[1],e.bottom+=e.collisionPadding[3]);const t=e.bottom-e.top;return t>0?Math.max(10,t):null}function Ad(e,t,n,i){const r=e.compareText;if(t in r){const e=r[t];for(let t=e.length-1;t>=0;t--)if(i.dist(e[t])<n)return!0}else r[t]=[];return r[t].push(i),!1}const Id=xl.VectorTileFeature.types,Md=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function Ld(e,t,n,i,r,a,o,s,c,l,u,d,p,h,m,f){const g=u?Math.min(Cd,Math.round(u[0])):0,b=u?Math.min(Cd,Math.round(u[1])):0;e.emplaceBack(t,n,Math.round(32*o),Math.round(32*s),c,l,(g<<1)+(d?1:0),b,16*p,16*h,256*m,256*f,i,r,a,0)}function Bd(e,t,n){e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n)}function Rd(e){for(const t of e.sections)if(Rr(t.text))return!0;return!1}class Dd{constructor(e){this.layoutVertexArray=new Oa,this.indexArray=new Aa,this.programConfigurations=e,this.segments=new Po,this.dynamicLayoutVertexArray=new ja,this.opacityVertexArray=new Ca,this.placedSymbolArray=new Za}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(e,t,n,i){this.isEmpty()||(n&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Gl.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,Zl.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,Md,!0),this.opacityVertexBuffer.itemSize=1),(n||i)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())}}Ki(Dd,"SymbolBuffers");class Pd{constructor(e,t,n){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new n,this.segments=new Po,this.collisionVertexArray=new Sa,this.collisionVertexArrayExt=new ja}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,Hl.members,!0),this.collisionVertexBufferExt=e.createVertexBuffer(this.collisionVertexArrayExt,Xl.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.destroy())}}Ki(Pd,"CollisionBuffers");class zd{constructor(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Ss([]),this.placementViewportMatrix=Ss([]);const t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Ql(this.zoom,t["text-size"]),this.iconSizeData=Ql(this.zoom,t["icon-size"]);const n=this.layers[0].layout,i=n.get("symbol-sort-key"),r=n.get("symbol-z-order");this.canOverlap=n.get("text-allow-overlap")||n.get("icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==r&&void 0!==i.constantOr(1),this.sortFeaturesByY=("viewport-y"===r||"auto"===r&&!this.sortFeaturesByKey)&&this.canOverlap,this.writingModes=n.get("text-writing-mode").map(e=>Bu[e]),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.sourceID=e.sourceID,this.projection=e.projection}createArrays(){this.text=new Dd(new To(this.layers,this.zoom,e=>/^text/.test(e))),this.icon=new Dd(new To(this.layers,this.zoom,e=>/^icon/.test(e))),this.glyphOffsetArray=new Ka,this.lineVertexArray=new Ya,this.symbolInstances=new Xa}calculateGlyphDependencies(e,t,n,i,r){for(let a=0;a<e.length;a++)if(t[e.charCodeAt(a)]=!0,i&&r){const n=iu[e.charAt(a)];n&&(t[n.charCodeAt(0)]=!0)}}populate(e,t,n,i){const r=this.layers[0],a=r.layout,o=a.get("text-font"),s=a.get("text-field"),c=a.get("icon-image"),l=("constant"!==s.value.kind||s.value.value instanceof ht&&!s.value.value.isEmpty()||s.value.value.toString().length>0)&&("constant"!==o.value.kind||o.value.value.length>0),u="constant"!==c.value.kind||!!c.value.value||Object.keys(c.parameters).length>0,d=a.get("symbol-sort-key");if(this.features=[],!l&&!u)return;const p=t.iconDependencies,h=t.glyphDependencies,m=t.availableImages,f=new Xr(this.zoom);for(const{feature:g,id:b,index:v,sourceLayerIndex:y}of e){const e=r._featureFilter.needGeometry,t=rs(g,e);if(!r._featureFilter.filter(f,t,n))continue;let s,c;if(e||(t.geometry=is(g,n,i)),l){const e=r.getValueAndResolveTokens("text-field",t,n,m),i=ht.factory(e);Rd(i)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===Gr()||this.hasRTLText&&Hr.isParsed())&&(s=nu(i,r,t))}if(u){const e=r.getValueAndResolveTokens("icon-image",t,n,m);c=e instanceof mt?e:mt.fromString(e)}if(!s&&!c)continue;const x=this.sortFeaturesByKey?d.evaluate(t,{},n):void 0;if(this.features.push({id:b,text:s,icon:c,index:v,sourceLayerIndex:y,geometry:t.geometry,properties:g.properties,type:Id[g.type],sortKey:x}),c&&(p[c.name]=!0),s){const e=o.evaluate(t,{},n).join(","),i="map"===a.get("text-rotation-alignment")&&"point"!==a.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(Bu.vertical)>=0;for(const t of s.sections)if(t.image)p[t.image.name]=!0;else{const n=kr(s.toString()),r=t.fontStack||e,a=h[r]=h[r]||{};this.calculateGlyphDependencies(t.text,a,i,this.allowVerticalPlacement,n)}}}"line"===a.get("symbol-placement")&&(this.features=function(e){const t={},n={},i=[];let r=0;function a(t){i.push(e[t]),r++}function o(e,t,r){const a=n[e];return delete n[e],n[t]=a,i[a].geometry[0].pop(),i[a].geometry[0]=i[a].geometry[0].concat(r[0]),a}function s(e,n,r){const a=t[n];return delete t[n],t[e]=a,i[a].geometry[0].shift(),i[a].geometry[0]=r[0].concat(i[a].geometry[0]),a}function c(e,t,n){const i=n?t[0][t[0].length-1]:t[0][0];return`${e}:${i.x}:${i.y}`}for(let l=0;l<e.length;l++){const u=e[l],d=u.geometry,p=u.text?u.text.toString():null;if(!p){a(l);continue}const h=c(p,d),m=c(p,d,!0);if(h in n&&m in t&&n[h]!==t[m]){const e=s(h,m,d),r=o(h,m,i[e].geometry);delete t[h],delete n[m],n[c(p,i[r].geometry,!0)]=r,i[e].geometry=null}else h in n?o(h,m,d):m in t?s(h,m,d):(a(l),t[h]=r-1,n[m]=r-1)}return i.filter(e=>e.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((e,t)=>e.sortKey-t.sortKey)}update(e,t,n,i){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,n,i),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,n,i))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){const n=this.lineVertexArray.length,i=e.segment;if(void 0!==i){let n=e.dist(t[i+1]),r=e.dist(t[i]);const a={};for(let e=i+1;e<t.length;e++)a[e]={x:t[e].x,y:t[e].y,tileUnitDistanceFromAnchor:n},e<t.length-1&&(n+=t[e+1].dist(t[e]));for(let e=i||0;e>=0;e--)a[e]={x:t[e].x,y:t[e].y,tileUnitDistanceFromAnchor:r},e>0&&(r+=t[e-1].dist(t[e]));for(let e=0;e<t.length;e++){const t=a[e];this.lineVertexArray.emplaceBack(t.x,t.y,t.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}}addSymbols(e,t,n,i,r,a,o,s,c,l,u,d,p,h){const m=e.indexArray,f=e.layoutVertexArray,g=e.segments.prepareSegment(4*t.length,f,m,this.canOverlap?a.sortKey:void 0),b=this.glyphOffsetArray.length,v=g.vertexLength,y=this.allowVerticalPlacement&&o===Bu.vertical?Math.PI/2:0,x=a.text&&a.text.sections;for(let _=0;_<t.length;_++){const{tl:i,tr:r,bl:o,br:l,tex:u,pixelOffsetTL:d,pixelOffsetBR:b,minFontScaleX:v,minFontScaleY:w,glyphOffset:O,isSDF:j,sectionIndex:C}=t[_],E=g.vertexLength,T=O[1];Ld(f,s.x,s.y,s.z,c.x,c.y,i.x,T+i.y,u.x,u.y,n,j,d.x,d.y,v,w),Ld(f,s.x,s.y,s.z,c.x,c.y,r.x,T+r.y,u.x+u.w,u.y,n,j,b.x,d.y,v,w),Ld(f,s.x,s.y,s.z,c.x,c.y,o.x,T+o.y,u.x,u.y+u.h,n,j,d.x,b.y,v,w),Ld(f,s.x,s.y,s.z,c.x,c.y,l.x,T+l.y,u.x+u.w,u.y+u.h,n,j,b.x,b.y,v,w),Bd(e.dynamicLayoutVertexArray,s,y),m.emplaceBack(E,E+1,E+2),m.emplaceBack(E+1,E+2,E+3),g.vertexLength+=4,g.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(O[0]),_!==t.length-1&&C===t[_+1].sectionIndex||e.programConfigurations.populatePaintArrays(f.length,a,a.index,{},p,h,x&&x[C])}e.placedSymbolArray.emplaceBack(s.x,s.y,s.z,c.x,c.y,b,this.glyphOffsetArray.length-b,v,l,u,c.segment,n?n[0]:0,n?n[1]:0,i[0],i[1],o,0,!1,0,d,0)}_commitLayoutVertex(e,t,n,i,r,a,o){e.emplaceBack(t,n,i,r,a,Math.round(o.x),Math.round(o.y))}_addCollisionDebugVertices(e,t,n,i,a,o,s){const c=n.segments.prepareSegment(4,n.layoutVertexArray,n.indexArray),l=c.vertexLength,u=s.tileAnchorX,d=s.tileAnchorY;for(let r=0;r<4;r++)n.collisionVertexArray.emplaceBack(0,0,0,0);n.collisionVertexArrayExt.emplaceBack(t,-e.padding,-e.padding),n.collisionVertexArrayExt.emplaceBack(t,e.padding,-e.padding),n.collisionVertexArrayExt.emplaceBack(t,e.padding,e.padding),n.collisionVertexArrayExt.emplaceBack(t,-e.padding,e.padding),this._commitLayoutVertex(n.layoutVertexArray,i,a,o,u,d,new r(e.x1,e.y1)),this._commitLayoutVertex(n.layoutVertexArray,i,a,o,u,d,new r(e.x2,e.y1)),this._commitLayoutVertex(n.layoutVertexArray,i,a,o,u,d,new r(e.x2,e.y2)),this._commitLayoutVertex(n.layoutVertexArray,i,a,o,u,d,new r(e.x1,e.y2)),c.vertexLength+=4;const p=n.indexArray;p.emplaceBack(l,l+1),p.emplaceBack(l+1,l+2),p.emplaceBack(l+2,l+3),p.emplaceBack(l+3,l),c.primitiveLength+=4}_addTextDebugCollisionBoxes(e,t,n,i,r,a){for(let o=i;o<r;o++){const i=n.get(o),r=this.getSymbolInstanceTextSize(e,a,t,o);this._addCollisionDebugVertices(i,r,this.textCollisionBox,i.projectedAnchorX,i.projectedAnchorY,i.projectedAnchorZ,a)}}_addIconDebugCollisionBoxes(e,t,n,i,r,a){for(let o=i;o<r;o++){const i=n.get(o),r=this.getSymbolInstanceIconSize(e,t,o);this._addCollisionDebugVertices(i,r,this.iconCollisionBox,i.projectedAnchorX,i.projectedAnchorY,i.projectedAnchorZ,a)}}generateCollisionDebugBuffers(e,t){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new Pd(Ta,Kl.members,Pa),this.iconCollisionBox=new Pd(Ta,Kl.members,Pa);const n=eu(this.iconSizeData,e),i=eu(this.textSizeData,e);for(let r=0;r<this.symbolInstances.length;r++){const a=this.symbolInstances.get(r);this._addTextDebugCollisionBoxes(i,e,t,a.textBoxStartIndex,a.textBoxEndIndex,a),this._addTextDebugCollisionBoxes(i,e,t,a.verticalTextBoxStartIndex,a.verticalTextBoxEndIndex,a),this._addIconDebugCollisionBoxes(n,e,t,a.iconBoxStartIndex,a.iconBoxEndIndex,a),this._addIconDebugCollisionBoxes(n,e,t,a.verticalIconBoxStartIndex,a.verticalIconBoxEndIndex,a)}}getSymbolInstanceTextSize(e,t,n,i){const r=this.text.placedSymbolArray.get(t.rightJustifiedTextSymbolIndex>=0?t.rightJustifiedTextSymbolIndex:t.centerJustifiedTextSymbolIndex>=0?t.centerJustifiedTextSymbolIndex:t.leftJustifiedTextSymbolIndex>=0?t.leftJustifiedTextSymbolIndex:t.verticalPlacedTextSymbolIndex>=0?t.verticalPlacedTextSymbolIndex:i),a=$l(this.textSizeData,e,r)/24;return this.tilePixelRatio*a}getSymbolInstanceIconSize(e,t,n){const i=this.icon.placedSymbolArray.get(n),r=$l(this.iconSizeData,e,i);return this.tilePixelRatio*r}_commitDebugCollisionVertexUpdate(e,t,n){e.emplaceBack(t,-n,-n),e.emplaceBack(t,n,-n),e.emplaceBack(t,n,n),e.emplaceBack(t,-n,n)}_updateTextDebugCollisionBoxes(e,t,n,i,r,a){for(let o=i;o<r;o++){const i=n.get(o),r=this.getSymbolInstanceTextSize(e,a,t,o);this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt,r,i.padding)}}_updateIconDebugCollisionBoxes(e,t,n,i,r){for(let a=i;a<r;a++){const i=n.get(a),r=this.getSymbolInstanceIconSize(e,t,a);this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt,r,i.padding)}}updateCollisionDebugBuffers(e,t){if(!this.hasDebugData())return;this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexArrayExt.clear(),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexArrayExt.clear();const n=eu(this.iconSizeData,e),i=eu(this.textSizeData,e);for(let r=0;r<this.symbolInstances.length;r++){const a=this.symbolInstances.get(r);this._updateTextDebugCollisionBoxes(i,e,t,a.textBoxStartIndex,a.textBoxEndIndex,a),this._updateTextDebugCollisionBoxes(i,e,t,a.verticalTextBoxStartIndex,a.verticalTextBoxEndIndex,a),this._updateIconDebugCollisionBoxes(n,e,t,a.iconBoxStartIndex,a.iconBoxEndIndex),this._updateIconDebugCollisionBoxes(n,e,t,a.verticalIconBoxStartIndex,a.verticalIconBoxEndIndex)}this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexBufferExt&&this.textCollisionBox.collisionVertexBufferExt.updateData(this.textCollisionBox.collisionVertexArrayExt),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexBufferExt&&this.iconCollisionBox.collisionVertexBufferExt.updateData(this.iconCollisionBox.collisionVertexArrayExt)}_deserializeCollisionBoxesForSymbol(e,t,n,i,r,a,o,s,c){const l={};for(let u=t;u<n;u++){const t=e.get(u);l.textBox={x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,padding:t.padding,projectedAnchorX:t.projectedAnchorX,projectedAnchorY:t.projectedAnchorY,projectedAnchorZ:t.projectedAnchorZ,tileAnchorX:t.tileAnchorX,tileAnchorY:t.tileAnchorY},l.textFeatureIndex=t.featureIndex;break}for(let u=i;u<r;u++){const t=e.get(u);l.verticalTextBox={x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,padding:t.padding,projectedAnchorX:t.projectedAnchorX,projectedAnchorY:t.projectedAnchorY,projectedAnchorZ:t.projectedAnchorZ,tileAnchorX:t.tileAnchorX,tileAnchorY:t.tileAnchorY},l.verticalTextFeatureIndex=t.featureIndex;break}for(let u=a;u<o;u++){const t=e.get(u);l.iconBox={x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,padding:t.padding,projectedAnchorX:t.projectedAnchorX,projectedAnchorY:t.projectedAnchorY,projectedAnchorZ:t.projectedAnchorZ,tileAnchorX:t.tileAnchorX,tileAnchorY:t.tileAnchorY},l.iconFeatureIndex=t.featureIndex;break}for(let u=s;u<c;u++){const t=e.get(u);l.verticalIconBox={x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,padding:t.padding,projectedAnchorX:t.projectedAnchorX,projectedAnchorY:t.projectedAnchorY,projectedAnchorZ:t.projectedAnchorZ,tileAnchorX:t.tileAnchorX,tileAnchorY:t.tileAnchorY},l.verticalIconFeatureIndex=t.featureIndex;break}return l}deserializeCollisionBoxes(e){this.collisionArrays=[];for(let t=0;t<this.symbolInstances.length;t++){const n=this.symbolInstances.get(t);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(e,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex,n.verticalIconBoxStartIndex,n.verticalIconBoxEndIndex))}}hasTextData(){return this.text.segments.get().length>0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,t){const n=e.placedSymbolArray.get(t),i=n.vertexStartIndex+4*n.numGlyphs;for(let r=n.vertexStartIndex;r<i;r+=4)e.indexArray.emplaceBack(r,r+1,r+2),e.indexArray.emplaceBack(r+1,r+2,r+3)}getSortedSymbolIndexes(e){if(this.sortedAngle===e&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;const t=Math.sin(e),n=Math.cos(e),i=[],r=[],a=[];for(let o=0;o<this.symbolInstances.length;++o){a.push(o);const e=this.symbolInstances.get(o);i.push(0|Math.round(t*e.tileAnchorX+n*e.tileAnchorY)),r.push(e.featureIndex)}return a.sort((e,t)=>i[e]-i[t]||r[t]-r[e]),a}addToSortKeyRanges(e,t){const n=this.sortKeyRanges[this.sortKeyRanges.length-1];n&&n.sortKey===t?n.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const e of this.symbolInstanceIndexes){const t=this.symbolInstances.get(e);this.featureSortOrder.push(t.featureIndex),[t.rightJustifiedTextSymbolIndex,t.centerJustifiedTextSymbolIndex,t.leftJustifiedTextSymbolIndex].forEach((e,t,n)=>{e>=0&&n.indexOf(e)===t&&this.addIndicesForPlacedSymbol(this.text,e)}),t.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,t.verticalPlacedTextSymbolIndex),t.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.placedIconSymbolIndex),t.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,t.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}Ki(zd,"SymbolBucket",{omit:["layers","collisionBoxArray","features","compareText"]}),zd.MAX_GLYPHS=65535,zd.addDynamicAttributes=Bd;const Fd=new ca({"symbol-placement":new ia(Ne.layout_symbol["symbol-placement"]),"symbol-spacing":new ia(Ne.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new ia(Ne.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new ra(Ne.layout_symbol["symbol-sort-key"]),"symbol-z-order":new ia(Ne.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new ia(Ne.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new ia(Ne.layout_symbol["icon-ignore-placement"]),"icon-optional":new ia(Ne.layout_symbol["icon-optional"]),"icon-rotation-alignment":new ia(Ne.layout_symbol["icon-rotation-alignment"]),"icon-size":new ra(Ne.layout_symbol["icon-size"]),"icon-text-fit":new ia(Ne.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new ia(Ne.layout_symbol["icon-text-fit-padding"]),"icon-image":new ra(Ne.layout_symbol["icon-image"]),"icon-rotate":new ra(Ne.layout_symbol["icon-rotate"]),"icon-padding":new ia(Ne.layout_symbol["icon-padding"]),"icon-keep-upright":new ia(Ne.layout_symbol["icon-keep-upright"]),"icon-offset":new ra(Ne.layout_symbol["icon-offset"]),"icon-anchor":new ra(Ne.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new ia(Ne.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new ia(Ne.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new ia(Ne.layout_symbol["text-rotation-alignment"]),"text-field":new ra(Ne.layout_symbol["text-field"]),"text-font":new ra(Ne.layout_symbol["text-font"]),"text-size":new ra(Ne.layout_symbol["text-size"]),"text-max-width":new ra(Ne.layout_symbol["text-max-width"]),"text-line-height":new ra(Ne.layout_symbol["text-line-height"]),"text-letter-spacing":new ra(Ne.layout_symbol["text-letter-spacing"]),"text-justify":new ra(Ne.layout_symbol["text-justify"]),"text-radial-offset":new ra(Ne.layout_symbol["text-radial-offset"]),"text-variable-anchor":new ia(Ne.layout_symbol["text-variable-anchor"]),"text-anchor":new ra(Ne.layout_symbol["text-anchor"]),"text-max-angle":new ia(Ne.layout_symbol["text-max-angle"]),"text-writing-mode":new ia(Ne.layout_symbol["text-writing-mode"]),"text-rotate":new ra(Ne.layout_symbol["text-rotate"]),"text-padding":new ia(Ne.layout_symbol["text-padding"]),"text-keep-upright":new ia(Ne.layout_symbol["text-keep-upright"]),"text-transform":new ra(Ne.layout_symbol["text-transform"]),"text-offset":new ra(Ne.layout_symbol["text-offset"]),"text-allow-overlap":new ia(Ne.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new ia(Ne.layout_symbol["text-ignore-placement"]),"text-optional":new ia(Ne.layout_symbol["text-optional"])});var Nd={paint:new ca({"icon-opacity":new ra(Ne.paint_symbol["icon-opacity"]),"icon-color":new ra(Ne.paint_symbol["icon-color"]),"icon-halo-color":new ra(Ne.paint_symbol["icon-halo-color"]),"icon-halo-width":new ra(Ne.paint_symbol["icon-halo-width"]),"icon-halo-blur":new ra(Ne.paint_symbol["icon-halo-blur"]),"icon-translate":new ia(Ne.paint_symbol["icon-translate"]),"icon-translate-anchor":new ia(Ne.paint_symbol["icon-translate-anchor"]),"text-opacity":new ra(Ne.paint_symbol["text-opacity"]),"text-color":new ra(Ne.paint_symbol["text-color"],{runtimeType:Ye,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new ra(Ne.paint_symbol["text-halo-color"]),"text-halo-width":new ra(Ne.paint_symbol["text-halo-width"]),"text-halo-blur":new ra(Ne.paint_symbol["text-halo-blur"]),"text-translate":new ia(Ne.paint_symbol["text-translate"]),"text-translate-anchor":new ia(Ne.paint_symbol["text-translate-anchor"])}),layout:Fd};class Ud{constructor(e){this.type=e.property.overrides?e.property.overrides.runtimeType:Ze,this.defaultValue=e}evaluate(e){if(e.formattedSection){const t=this.defaultValue.property.overrides;if(t&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}Ki(Ud,"FormatSectionOverride",{omit:["defaultValue"]});class Vd extends Bo{constructor(e){super(e,Nd)}recalculate(e,t){super.recalculate(e,t),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"));const n=this.layout.get("text-writing-mode");if(n){const e=[];for(const t of n)e.indexOf(t)<0&&e.push(t);this.layout._values["text-writing-mode"]=e}else this.layout._values["text-writing-mode"]="point"===this.layout.get("symbol-placement")?["horizontal"]:["horizontal","vertical"];this._setPaintOverrides()}getValueAndResolveTokens(e,t,n,i){const r=this.layout.get(e).evaluate(t,{},n,i),a=this._unevaluatedLayout._values[e];return a.isDataDriven()||ii(a.value)||!r?r:function(e,t){return t.replace(/{([^{}]+)}/g,(t,n)=>n in e?String(e[n]):"")}(t.properties,r)}createBucket(e){return new zd(e)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const e of Nd.paint.overridableProperties){if(!Vd.hasPaintOverride(this.layout,e))continue;const t=this.paint.get(e),n=new Ud(t),i=new ni(n,t.property.specification);let r=null;r="constant"===t.value.kind||"source"===t.value.kind?new ai("source",i):new oi("composite",i,t.value.zoomStops,t.value._interpolationType),this.paint._values[e]=new ta(t.property,r,t.parameters)}}_handleOverridablePaintPropertyUpdate(e,t,n){return!(!this.layout||t.isDataDriven()||n.isDataDriven())&&Vd.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,t){const n=e.get("text-field"),i=Nd.paint.properties[t];let r=!1;const a=e=>{for(const t of e)if(i.overrides&&i.overrides.hasOverride(t))return void(r=!0)};if("constant"===n.value.kind&&n.value.value instanceof ht)a(n.value.value.sections);else if("source"===n.value.kind){const e=t=>{r||(t instanceof yt&&bt(t.value)===et?a(t.value.sections):t instanceof Ot?a(t.sections):t.eachChild(e))},t=n.value;t._styleExpression&&e(t._styleExpression.expression)}return r}getProgramConfiguration(e){return new Eo(this,e)}}var Wd={paint:new ca({"background-color":new ia(Ne.paint_background["background-color"]),"background-pattern":new oa(Ne.paint_background["background-pattern"]),"background-opacity":new ia(Ne.paint_background["background-opacity"])})},qd={paint:new ca({"raster-opacity":new ia(Ne.paint_raster["raster-opacity"]),"raster-hue-rotate":new ia(Ne.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new ia(Ne.paint_raster["raster-brightness-min"]),"raster-brightness-max":new ia(Ne.paint_raster["raster-brightness-max"]),"raster-saturation":new ia(Ne.paint_raster["raster-saturation"]),"raster-contrast":new ia(Ne.paint_raster["raster-contrast"]),"raster-resampling":new ia(Ne.paint_raster["raster-resampling"]),"raster-fade-duration":new ia(Ne.paint_raster["raster-fade-duration"])})};class Gd extends Bo{constructor(e){super(e,{}),this.implementation=e}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){}onAdd(e){this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)}onRemove(e){this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)}}var Zd={paint:new ca({"sky-type":new ia(Ne.paint_sky["sky-type"]),"sky-atmosphere-sun":new ia(Ne.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new ia(Ne.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new ia(Ne.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new ia(Ne.paint_sky["sky-gradient-radius"]),"sky-gradient":new sa(Ne.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new ia(Ne.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new ia(Ne.paint_sky["sky-atmosphere-color"]),"sky-opacity":new ia(Ne.paint_sky["sky-opacity"])})};function Hd(e,t,n){const i=[0,0,1],r=rc([]);return function(e,t,n){n*=.5;var i=t[0],r=t[1],a=t[2],o=t[3],s=Math.sin(n),c=Math.cos(n);e[0]=i*c-a*s,e[1]=r*c+o*s,e[2]=a*c+i*s,e[3]=o*c-r*s}(r,r,n?-l(e)+Math.PI:l(e)),ac(r,r,-l(t)),Js(i,i,r),Hs(i,i)}const Xd={circle:class extends Bo{constructor(e){super(e,Cs)}createBucket(e){return new ss(e)}queryRadius(e){const t=e;return xs("circle-radius",this,t)+xs("circle-stroke-width",this,t)+_s(this.paint.get("circle-translate"))}queryIntersectsFeature(e,t,n,i,r,a,o,s){const c=Os(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),a.angle,e.pixelToTileUnitsFactor),l=this.paint.get("circle-radius").evaluate(t,n)+this.paint.get("circle-stroke-width").evaluate(t,n);return cc(e,i,a,o,s,"map"===this.paint.get("circle-pitch-alignment"),"map"===this.paint.get("circle-pitch-scale"),c,l)}getProgramIds(){return["circle"]}getProgramConfiguration(e){return new Eo(this,e)}},heatmap:class extends Bo{createBucket(e){return new hc(e)}constructor(e){super(e,yc),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){"heatmap-color"===e&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=xc({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(e){return xs("heatmap-radius",this,e)}queryIntersectsFeature(e,t,n,i,a,o,s,c){const l=this.paint.get("heatmap-radius").evaluate(t,n);return cc(e,i,o,s,c,!0,!0,new r(0,0),l)}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}getProgramIds(){return["heatmap","heatmapTexture"]}getProgramConfiguration(e){return new Eo(this,e)}},hillshade:class extends Bo{constructor(e){super(e,_c)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}getProgramIds(){return["hillshade","hillshadePrepare"]}},fill:class extends Bo{constructor(e){super(e,sl)}getProgramIds(){const e=this.paint.get("fill-pattern"),t=e&&e.constantOr(1),n=[t?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&n.push(t&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),n}getProgramConfiguration(e){return new Eo(this,e)}recalculate(e,t){super.recalculate(e,t);const n=this.paint._values["fill-outline-color"];"constant"===n.value.kind&&void 0===n.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(e){return new al(e)}queryRadius(){return _s(this.paint.get("fill-translate"))}queryIntersectsFeature(e,t,n,i,r,a){return!e.queryGeometry.isAboveHorizon&&us(ws(e.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),a.angle,e.pixelToTileUnitsFactor),i)}isTileClipped(){return!0}},"fill-extrusion":class extends Bo{constructor(e){super(e,Sl)}createBucket(e){return new Tl(e)}queryRadius(){return _s(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion"]}getProgramConfiguration(e){return new Eo(this,e)}queryIntersectsFeature(e,t,n,i,a,o,s,c,l){const u=Os(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),d=this.paint.get("fill-extrusion-height").evaluate(t,n),p=this.paint.get("fill-extrusion-base").evaluate(t,n),h=[0,0],m=c&&o.elevation,f=o.elevation?o.elevation.exaggeration():1,g=e.tile.getBucket(this);if(m&&g instanceof Tl){const e=g.centroidVertexArray,t=l+1;if(t<e.length){const n=e.get(t);h[0]=n.a_centroid_pos0,h[1]=n.a_centroid_pos1}}if(0===h[0]&&1===h[1])return!1;const b=function(e,t,n,i,a,o,s,c,l){return o?function(e,t,n,i,r,a,o,s,c){const l=[],u=[],d=[0,0,0,1];for(const p of e){const e=[],h=[];for(const l of p){const u=l.x+i.x,p=l.y+i.y,m=Ll(u,p,t,n,a,o,s,c);d[0]=u,d[1]=p,d[2]=m.base,d[3]=1,nc(d,d,r),d[3]=Math.max(d[3],1e-5);const f=Ml([d[0]/d[3],d[1]/d[3],d[2]/d[3]]);d[0]=u,d[1]=p,d[2]=m.top,d[3]=1,nc(d,d,r),d[3]=Math.max(d[3],1e-5);const g=Ml([d[0]/d[3],d[1]/d[3],d[2]/d[3]]);e.push(f),h.push(g)}l.push(e),u.push(h)}return[l,u]}(e,t,n,i,a,o,s,c,l):function(e,t,n,i,a){const o=[],s=[],c=a[8]*t,l=a[9]*t,u=a[10]*t,d=a[11]*t,p=a[8]*n,h=a[9]*n,m=a[10]*n,f=a[11]*n;for(const g of e){const e=[],t=[];for(const n of g){const o=n.x+i.x,s=n.y+i.y,g=a[0]*o+a[4]*s+a[12],b=a[1]*o+a[5]*s+a[13],v=a[2]*o+a[6]*s+a[14],y=a[3]*o+a[7]*s+a[15],x=g+c,_=b+l,w=v+u,O=Math.max(y+d,1e-5),j=g+p,C=b+h,E=v+m,T=Math.max(y+f,1e-5),k=new r(x/O,_/O);k.z=w/O,e.push(k);const S=new r(j/T,C/T);S.z=E/T,t.push(S)}o.push(e),s.push(t)}return[o,s]}(e,t,n,i,a)}(i,p,d,u,s,m?c:null,h,f,o.center.lat),v=e.queryGeometry;return function(e,t,n){let i=1/0;us(n,t)&&(i=Il(n,t[0]));for(let r=0;r<t.length;r++){const a=t[r],o=e[r];for(let e=0;e<a.length-1;e++){const t=a[e],r=[t,a[e+1],o[e+1],o[e],t];cs(n,r)&&(i=Math.min(i,Il(n,r)))}}return i!==1/0&&i}(b[0],b[1],v.isPointQuery()?v.screenBounds:v.screenGeometry)}},line:class extends Bo{constructor(e){super(e,Vl),this.gradientVersion=0}_handleSpecialPaintPropertyUpdate(e){if("line-gradient"===e){const e=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=e._styleExpression&&e._styleExpression.expression instanceof en,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=Wl.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new Nl(e)}getProgramIds(){return[this.paint.get("line-pattern").constantOr(1)?"linePattern":"line"]}getProgramConfiguration(e){return new Eo(this,e)}queryRadius(e){const t=e,n=ql(xs("line-width",this,t),xs("line-gap-width",this,t)),i=xs("line-offset",this,t);return n/2+Math.abs(i)+_s(this.paint.get("line-translate"))}queryIntersectsFeature(e,t,n,i,a,o){if(e.queryGeometry.isAboveHorizon)return!1;const s=ws(e.tilespaceGeometry,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),c=e.pixelToTileUnitsFactor/2*ql(this.paint.get("line-width").evaluate(t,n),this.paint.get("line-gap-width").evaluate(t,n)),l=this.paint.get("line-offset").evaluate(t,n);return l&&(i=function(e,t){const n=[],i=new r(0,0);for(let r=0;r<e.length;r++){const a=e[r],o=[];for(let e=0;e<a.length;e++){const n=a[e-1],r=a[e],s=a[e+1],c=0===e?i:r.sub(n)._unit()._perp(),l=e===a.length-1?i:s.sub(r)._unit()._perp(),u=c._add(l)._unit();u._mult(1/(u.x*l.x+u.y*l.y)),o.push(u._mult(t)._add(r))}n.push(o)}return n}(i,l*e.pixelToTileUnitsFactor)),function(e,t,n){for(let i=0;i<t.length;i++){const r=t[i];if(e.length>=3)for(let t=0;t<r.length;t++)if(bs(e,r[t]))return!0;if(ds(e,r,n))return!0}return!1}(s,i,c)}isTileClipped(){return!0}},symbol:Vd,background:class extends Bo{constructor(e){super(e,Wd)}getProgramIds(){return[this.paint.get("background-pattern")?"backgroundPattern":"background"]}},raster:class extends Bo{constructor(e){super(e,qd)}getProgramIds(){return["raster"]}},sky:class extends Bo{constructor(e){super(e,Zd),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){"sky-gradient"===e?this._updateColorRamp():"sky-atmosphere-sun"!==e&&"sky-atmosphere-halo-color"!==e&&"sky-atmosphere-color"!==e&&"sky-atmosphere-sun-intensity"!==e||(this._skyboxInvalidated=!0)}_updateColorRamp(){this.colorRamp=xc({expression:this._transitionablePaint._values["sky-gradient"].value.expression,evaluationKey:"skyRadialProgress"}),this.colorRampTexture&&(this.colorRampTexture.destroy(),this.colorRampTexture=null)}needsSkyboxCapture(e){if(this._skyboxInvalidated||!this.skyboxTexture||!this.skyboxGeometry)return!0;if(!this.paint.get("sky-atmosphere-sun")){const t=e.style.light.properties.get("position");return this._lightPosition.azimuthal!==t.azimuthal||this._lightPosition.polar!==t.polar}return!1}getCenter(e,t){if("atmosphere"===this.paint.get("sky-type")){const n=this.paint.get("sky-atmosphere-sun"),i=!n,r=e.style.light,a=r.properties.get("position");return i&&"viewport"===r.properties.get("anchor")&&M("The sun direction is attached to a light with viewport anchor, lighting may behave unexpectedly."),i?Hd(a.azimuthal,90-a.polar,t):Hd(n[0],90-n[1],t)}const n=this.paint.get("sky-gradient-center");return Hd(n[0],90-n[1],t)}is3D(){return!1}isSky(){return!0}markSkyboxValid(e){this._skyboxInvalidated=!1,this._lightPosition=e.style.light.properties.get("position")}hasOffscreenPass(){return!0}getProgramIds(){const e=this.paint.get("sky-type");return"atmosphere"===e?["skyboxCapture","skybox"]:"gradient"===e?["skyboxGradient"]:null}}};class Kd{constructor(e,t,n,i){this.context=e,this.format=n,this.texture=e.gl.createTexture(),this.update(t,i)}update(e,t,n){const{width:i,height:r}=e,{context:a}=this,{gl:s}=a,{HTMLImageElement:c,HTMLCanvasElement:l,HTMLVideoElement:u,ImageData:d,ImageBitmap:p}=o;if(s.bindTexture(s.TEXTURE_2D,this.texture),a.pixelStoreUnpackFlipY.set(!1),a.pixelStoreUnpack.set(1),a.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&&(!t||!1!==t.premultiply)),n||this.size&&this.size[0]===i&&this.size[1]===r){const{x:t,y:a}=n||{x:0,y:0};e instanceof c||e instanceof l||e instanceof u||e instanceof d||p&&e instanceof p?s.texSubImage2D(s.TEXTURE_2D,0,t,a,s.RGBA,s.UNSIGNED_BYTE,e):s.texSubImage2D(s.TEXTURE_2D,0,t,a,i,r,s.RGBA,s.UNSIGNED_BYTE,e.data)}else this.size=[i,r],e instanceof c||e instanceof l||e instanceof u||e instanceof d||p&&e instanceof p?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,e):s.texImage2D(s.TEXTURE_2D,0,this.format,i,r,0,this.format,s.UNSIGNED_BYTE,e.data);this.useMipmap=Boolean(t&&t.useMipmap&&this.isSizePowerOfTwo()),this.useMipmap&&s.generateMipmap(s.TEXTURE_2D)}bind(e,t){const{context:n}=this,{gl:i}=n;i.bindTexture(i.TEXTURE_2D,this.texture),e!==this.filter&&(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,e),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,this.useMipmap?e===i.NEAREST?i.NEAREST_MIPMAP_NEAREST:i.LINEAR_MIPMAP_NEAREST:e),this.filter=e),t!==this.wrap&&(i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,t),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,t),this.wrap=t)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){const{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null}}class Yd{constructor(e,t){this.width=e,this.height=t,this.nextRow=0,this.image=new bc({width:e,height:t}),this.positions={},this.uploaded=!1}getDash(e,t){const n=this.getKey(e,t);return this.positions[n]}trim(){const e=this.width,t=this.height=j(this.nextRow);this.image.resize({width:e,height:t})}getKey(e,t){return e.join(",")+t}getDashRanges(e,t,n){const i=[];let r=e.length%2==1?-e[e.length-1]*n:0,a=e[0]*n,o=!0;i.push({left:r,right:a,isDash:o,zeroLength:0===e[0]});let s=e[0];for(let c=1;c<e.length;c++){o=!o;const t=e[c];r=s*n,s+=t,a=s*n,i.push({left:r,right:a,isDash:o,zeroLength:0===t})}return i}addRoundDash(e,t,n){const i=t/2;for(let r=-n;r<=n;r++){const t=this.width*(this.nextRow+n+r);let a=0,o=e[a];for(let s=0;s<this.width;s++){s/o.right>1&&(o=e[++a]);const c=Math.abs(s-o.left),l=Math.abs(s-o.right),u=Math.min(c,l);let d;const p=r/n*(i+1);if(o.isDash){const e=i-Math.abs(p);d=Math.sqrt(u*u+e*e)}else d=i-Math.sqrt(u*u+p*p);this.image.data[t+s]=Math.max(0,Math.min(255,d+128))}}}addRegularDash(e,t){for(let s=e.length-1;s>=0;--s){const t=e[s],n=e[s+1];t.zeroLength?e.splice(s,1):n&&n.isDash===t.isDash&&(n.left=t.left,e.splice(s,1))}const n=e[0],i=e[e.length-1];n.isDash===i.isDash&&(n.left=i.left-this.width,i.right=n.right+this.width);const r=this.width*this.nextRow;let a=0,o=e[a];for(let s=0;s<this.width;s++){s/o.right>1&&(o=e[++a]);const n=Math.abs(s-o.left),i=Math.abs(s-o.right),c=Math.min(n,i);this.image.data[r+s]=Math.max(0,Math.min(255,(o.isDash?c:-c)+t+128))}}addDash(e,t){const n=this.getKey(e,t);if(this.positions[n])return this.positions[n];const i="round"===t,r=i?7:0,a=2*r+1;if(this.nextRow+a>this.height)return M("LineAtlas out of space"),null;0===e.length&&e.push(1);let o=0;for(let l=0;l<e.length;l++)e[l]<0&&(M("Negative value is found in line dasharray, replacing values with 0"),e[l]=0),o+=e[l];if(0!==o){const n=this.width/o,a=this.getDashRanges(e,this.width,n);i?this.addRoundDash(a,n,r):this.addRegularDash(a,"square"===t?.5*n:0)}const s=this.nextRow+r;this.nextRow+=a;const c={tl:[s,r],br:[o,0]};return this.positions[n]=c,c}}Ki(Yd,"LineAtlas");class Jd{constructor(e){this._callback=e,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){this._channel=void 0,this._callback=()=>{}}}const Qd=o.performance;function $d(e){const t=e?e.url.toString():void 0;return Qd.getEntriesByName(t)}class ep{constructor(){this.tasks={},this.taskQueue=[],E(["process"],this),this.invoker=new Jd(this.process),this.nextId=0}add(e,t){const n=this.nextId++,i=function({type:e,isSymbolTile:t,zoom:n}){return n=n||0,"message"===e?0:"maybePrepare"!==e||t?"parseTile"!==e||t?"parseTile"===e&&t?300-n:"maybePrepare"===e&&t?400-n:500:200-n:100-n}(t);if(0===i){R();try{e()}finally{}return{cancel:()=>{}}}return this.tasks[n]={fn:e,metadata:t,priority:i,id:n},this.taskQueue.push(n),this.invoker.trigger(),{cancel:()=>{delete this.tasks[n]}}}process(){R();try{if(this.taskQueue=this.taskQueue.filter(e=>!!this.tasks[e]),!this.taskQueue.length)return;const e=this.pick();if(null===e)return;const t=this.tasks[e];if(delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),!t)return;t.fn()}finally{}}pick(){let e=null,t=1/0;for(let i=0;i<this.taskQueue.length;i++){const n=this.tasks[this.taskQueue[i]];n.priority<t&&(t=n.priority,e=i)}if(null===e)return null;const n=this.taskQueue[e];return this.taskQueue.splice(e,1),n}remove(){this.invoker.remove()}}const tp=ha([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_merc_pos",components:2},{type:"Float32",name:"a_uv",components:2}]),np=ha([{type:"Float32",name:"a_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:ip}=tp,rp=ha([{name:"a_pos_3",components:3,type:"Int16"}]);var ap=ha([{name:"a_pos",type:"Int16",components:2}]);const op=zo/Math.PI/2,sp=-op,cp=op,lp=[new sc([sp,sp,sp],[cp,cp,cp]),new sc([sp,sp,sp],[0,0,cp]),new sc([0,sp,sp],[cp,0,cp]),new sc([sp,0,sp],[0,cp,cp]),new sc([0,0,sp],[cp,cp,cp])];class up{constructor(e,t,n){this.a=$s([],e,n),this.b=$s([],t,n),this.center=n;const i=Hs([],this.a),r=Hs([],this.b);this.angle=Math.acos(Xs(i,r))}}function dp(e,t){if(0===e.angle)return null;let n;return n=0===e.a[t]?1/e.angle*.5*Math.PI:1/e.angle*Math.atan(e.b[t]/e.a[t]/Math.sin(e.angle)-1/Math.tan(e.angle)),n<0||n>1?null:function(e,t,n,i){const r=Math.sin(n);return e*(Math.sin((1-i)*n)/r)+t*(Math.sin(i*n)/r)}(e.a[t],e.b[t],e.angle,f(n,0,1))+e.center[t]}function pp(e){if(e.z<=1)return lp[e.z+2*e.y+e.x];const[t,n]=mp(e),i=[gp(t[0],t[1]),gp(t[0],n[1]),gp(n[0],t[1]),gp(n[0],n[1])],r=[cp,cp,cp],a=[sp,sp,sp];for(const o of i)r[0]=Math.min(r[0],o[0]),r[1]=Math.min(r[1],o[1]),r[2]=Math.min(r[2],o[2]),a[0]=Math.max(a[0],o[0]),a[1]=Math.max(a[1],o[1]),a[2]=Math.max(a[2],o[2]);return new sc(r,a)}function hp(e,t,n){const i=t/e.worldSize,r=(e,t)=>{Gs(e,e,i),Gs(t,t,i)},a=Number.MAX_VALUE,o=[-a,-a,-a],s=[a,a,a],c=_p(e);if(n.z<=1){const e=pp(n).getCorners();for(let t=0;t<e.length;t++)Ys(e[t],e[t],c),Ws(s,s,e[t]),qs(o,o,e[t]);return r(s,o),new sc(s,o)}const[u,d]=mp(n),p=new Fo;p.setSouthWest([u[1],d[0]]),p.setNorthEast([d[1],u[0]]);const h=[gp(p.getSouth(),p.getWest()),gp(p.getSouth(),p.getEast()),gp(p.getNorth(),p.getEast()),gp(p.getNorth(),p.getWest())];for(let l=0;l<h.length;l++)Ys(h[l],h[l],c),Ws(s,s,h[l]),qs(o,o,h[l]);if(p.contains(e.center))return o[2]=0,r(s,o),new sc(s,o);const m=[c[12],c[13],c[14]],g=e.center.lng,b=f(e.center.lat,-85.051129,Yo),v=[qo(g),Go(b)],y=p.getCenter().lng,x=f(p.getCenter().lat,-85.051129,Yo),_=[qo(y),Go(x)];let w=new Array(3),O=0;const j=v[0]-_[0],C=v[1]-_[1];if(Math.abs(j)>Math.abs(C))O=j>=0?1:3,w=m;else{O=C>=0?0:2;const e=[c[4],c[5],c[6]];let t;t=C>=0?-Math.sin(l(p.getSouth()))*op:-Math.sin(l(p.getNorth()))*op,w=Zs(w,m,e,t)}const E=h[O],T=h[(O+1)%4],k=new up(E,T,w),S=[dp(k,0)||E[0],dp(k,1)||E[1],dp(k,2)||E[2]];return s[2]=Math.min(E[2],T[2]),Ws(s,s,S),qs(o,o,S),r(s,o),new sc(s,o)}function mp(e){const t=1<<e.z,n=e.x/t,i=(e.x+1)/t,r=(e.y+1)/t;return[[Xo(e.y/t),Ho(n)],[Xo(r),Ho(i)]]}function fp(e,t,n,i=op){return n=l(n),[e*Math.sin(n)*i,-t*i,e*Math.cos(n)*i]}function gp(e,t,n){return fp(Math.cos(l(e)),Math.sin(l(e)),t,n)}function bp(e,t,n){const i=Math.pow(2,n.z),r=(e/zo+n.x)/i;return gp(Xo((t/zo+n.y)/i),Ho(r))}function vp(e){return 16383/Math.max(...$s([],e.max,e.min))}function yp(e){const t=Ss(new Float64Array(16)),n=vp(e);var i,r;return Ms(t,t,[n,n,n]),Is(t,t,((i=[])[0]=-(r=e.min)[0],i[1]=-r[1],i[2]=-r[2],i)),t}function xp(e,t,n,i,r){const a=function(e){const t=zo/(2*Math.PI);return e/(2*Math.PI)/t}(n),o=[e,t,-n/(2*Math.PI)],s=Ss(new Float64Array(16));return Is(s,s,o),Ms(s,s,[a,a,a]),Ls(s,s,l(-r)),Bs(s,s,l(-i)),s}function _p(e){const{x:t,y:n}=e.point,{lng:i,lat:r}=e._center;return xp(t,n,e.worldSize,i,r)}const wp=l(85),Op=Math.cos(wp),jp=Math.sin(wp);function Cp(e,t,n){var i=2*Math.PI*6378137/256/Math.pow(2,n);return[e*i-2*Math.PI*6378137/2,t*i-2*Math.PI*6378137/2]}class Ep{constructor(e,t,n){this.z=e,this.x=t,this.y=n,this.key=Sp(0,e,e,t,n)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t){const n=function(e,t,n){var i=Cp(256*e,256*(t=Math.pow(2,n)-t-1),n),r=Cp(256*(e+1),256*(t+1),n);return i[0]+","+i[1]+","+r[0]+","+r[1]}(this.x,this.y,this.z),i=function(e,t,n){let i,r="";for(let a=e;a>0;a--)i=1<<a-1,r+=(t&i?1:0)+(n&i?2:0);return r}(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===t?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",i).replace("{bbox-epsg-3857}",n)}toString(){return`${this.z}/${this.x}/${this.y}`}}class Tp{constructor(e,t){this.wrap=e,this.canonical=t,this.key=Sp(e,t.z,t.z,t.x,t.y)}}class kp{constructor(e,t,n,i,r){this.overscaledZ=e,this.wrap=t,this.canonical=new Ep(n,+i,+r),this.key=0===t&&e===n?this.canonical.key:Sp(t,e,n,i,r)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){const t=this.canonical.z-e;return e>this.canonical.z?new kp(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new kp(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)}calculateScaledKey(e,t=!0){if(this.overscaledZ===e&&t)return this.key;if(e>this.canonical.z)return Sp(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y);{const n=this.canonical.z-e;return Sp(this.wrap*+t,e,e,this.canonical.x>>n,this.canonical.y>>n)}}isChildOf(e){if(e.wrap!==this.wrap)return!1;const t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ<this.overscaledZ&&e.canonical.x===this.canonical.x>>t&&e.canonical.y===this.canonical.y>>t}children(e){if(this.overscaledZ>=e)return[new kp(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const t=this.canonical.z+1,n=2*this.canonical.x,i=2*this.canonical.y;return[new kp(t,this.wrap,t,n,i),new kp(t,this.wrap,t,n+1,i),new kp(t,this.wrap,t,n,i+1),new kp(t,this.wrap,t,n+1,i+1)]}isLessThan(e){return this.wrap<e.wrap||!(this.wrap>e.wrap)&&(this.overscaledZ<e.overscaledZ||!(this.overscaledZ>e.overscaledZ)&&(this.canonical.x<e.canonical.x||!(this.canonical.x>e.canonical.x)&&this.canonical.y<e.canonical.y))}wrapped(){return new kp(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(e){return new kp(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)}overscaleFactor(){return Math.pow(2,this.overscaledZ-this.canonical.z)}toUnwrapped(){return new Tp(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}}function Sp(e,t,n,i,r){const a=1<<Math.min(n,22);let o=a*(r%a)+i%a;return e&&n<22&&(o+=a*a*((e<0?-2*e-1:2*e)%(1<<2*(22-n)))),16*(32*o+n)+(t-n)}function Ap(e,t){if(!t.isReprojectedInTileSpace)return{scale:1<<e.z,x:e.x,y:e.y,x2:e.x+1,y2:e.y+1,projection:t};const n=Math.pow(2,-e.z),i=e.x*n,r=(e.x+1)*n,a=e.y*n,o=(e.y+1)*n,s=Ho(i),c=Ho(r),l=Xo(a),u=Xo(o),d=t.project(s,l),p=t.project(c,l),h=t.project(c,u),m=t.project(s,u);let f=Math.min(d.x,p.x,h.x,m.x),g=Math.min(d.y,p.y,h.y,m.y),b=Math.max(d.x,p.x,h.x,m.x),v=Math.max(d.y,p.y,h.y,m.y);const y=n/16;function x(e,n,i,r,a,o){const s=(i+a)/2,c=(r+o)/2,l=t.project(Ho(s),Xo(c)),u=Math.max(0,f-l.x,g-l.y,l.x-b,l.y-v);f=Math.min(f,l.x),b=Math.max(b,l.x),g=Math.min(g,l.y),v=Math.max(v,l.y
2),u>y&&(x(e,l,i,r,s,c),x(l,n,s,c,a,o))}x(d,p,i,a,r,a),x(p,h,r,a,r,o),x(h,m,r,o,i,o),x(m,d,i,o,i,a),f-=y,g-=y,b+=y,v+=y;const _=1/Math.max(b-f,v-g);return{scale:_,x:f*_,y:g*_,x2:b*_,y2:v*_,projection:t}}Ki(Ep,"CanonicalTileID"),Ki(kp,"OverscaledTileID",{omit:["projMatrix"]});class Ip{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t<e.length;t++){const n=e[t];this._stringToNumber[n]=t,this._numberToString[t]=n}}encode(e){return this._stringToNumber[e]}decode(e){return this._numberToString[e]}}const Mp=["tile","layer","source","sourceLayer","state"];class Lp{constructor(e,t,n,i,r){this.type="Feature",this._vectorTileFeature=e,this._z=t,this._x=n,this._y=i,this.properties=e.properties,this.id=r}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._x,this._y,this._z).geometry),this._geometry}set geometry(e){this._geometry=e}toJSON(){const e={type:"Feature",geometry:this.geometry,properties:this.properties};void 0!==this.id&&(e.id=this.id);for(const t of Mp)void 0!==this[t]&&(e[t]=this[t]);return e}}const Bp=new Uint16Array(8184);for(let Rh=0;Rh<2046;Rh++){let e=Rh+2,t=0,n=0,i=0,r=0,a=0,o=0;for(1&e?i=r=a=32:t=n=o=32;(e>>=1)>1;){const s=t+i>>1,c=n+r>>1;1&e?(i=t,r=n,t=a,n=o):(t=i,n=r,i=a,r=o),a=s,o=c}const s=4*Rh;Bp[s+0]=t,Bp[s+1]=n,Bp[s+2]=i,Bp[s+3]=r}const Rp=new Uint16Array(2178),Dp=new Uint8Array(1089),Pp=new Uint16Array(1089);function zp(e){return 0===e?-.03125:32===e?.03125:0}var Fp=ha([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);const Np={type:2,extent:zo,loadGeometry:()=>[[new r(0,0),new r(8193,0),new r(8193,8193),new r(0,8193),new r(0,0)]]};class Up{constructor(e,t,n,i,r){this.tileID=e,this.uid=w(),this.uses=0,this.tileSize=t,this.tileZoom=n,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=r,this.expiredRequestCount=0,this.state="loading",i&&i.transform&&(this.projection=i.transform.projection)}registerFadeDuration(e){const t=e+this.timeAdded;t<q.now()||this.fadeEndTime&&t<this.fadeEndTime||(this.fadeEndTime=t)}wasRequested(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state}get tileTransform(){return this._tileTransform||(this._tileTransform=Ap(this.tileID.canonical,this.projection)),this._tileTransform}loadVectorData(e,t,n){if(this.unloadVectorData(),this.state="loaded",e){e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestFeatureIndex.rawTileData=e.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=function(e,t){const n={};if(!t)return n;for(const i of e){const e=i.layerIds.map(e=>t.getLayer(e)).filter(Boolean);if(0!==e.length){i.layers=e,i.stateDependentLayerIds&&(i.stateDependentLayers=i.stateDependentLayerIds.map(t=>e.filter(e=>e.id===t)[0]));for(const t of e)n[t.id]=i}}return n}(e.buckets,t.style),this.hasSymbolBuckets=!1;for(const e in this.buckets){const t=this.buckets[e];if(t instanceof zd){if(this.hasSymbolBuckets=!0,!n)break;t.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const e in this.buckets){const t=this.buckets[e];if(t instanceof zd&&t.hasRTLText){this.hasRTLText=!0,Hr.isLoading()||Hr.isLoaded()||"deferred"!==Gr()||Zr
vendor: 17,008 bytes, line 2
2();break}}this.queryPadding=0;for(const e in this.buckets){const n=this.buckets[e];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(e).queryRadius(n))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage),e.lineAtlas&&(this.lineAtlas=e.lineAtlas)}else this.collisionBoxArray=new qa}unloadVectorData(){if(this.hasData()){for(const e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugIndexBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._globeTileDebugBorderBuffer&&(this._globeTileDebugBorderBuffer.destroy(),this._globeTileDebugBorderBuffer=null),this._tileDebugTextBuffer&&(this._tileDebugTextBuffer.destroy(),this._tileDebugTextSegments.destroy(),this._tileDebugTextIndexBuffer.destroy(),this._tileDebugTextBuffer=null),this._globeTileDebugTextBuffer&&(this._globeTileDebugTextBuffer.destroy(),this._globeTileDebugTextBuffer=null),this.latestFeatureIndex=null,this.state="unloaded"}}getBucket(e){return this.buckets[e.id]}upload(e){for(const n in this.buckets){const t=this.buckets[n];t.uploadPending()&&t.upload(e)}const t=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Kd(e,this.imageAtlas.image,t.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Kd(e,this.glyphAtlasImage,t.ALPHA),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new Kd(e,this.lineAtlas.image,t.ALPHA),this.lineAtlas.uploaded=!0)}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,t,n,i,r,a,o,s){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({tileResult:i,pixelPosMatrix:o,transform:a,params:r,tileTransform:this.tileTransform},e,t,n):{}}querySourceFeatures(e,t){const n=this.latestFeatureIndex;if(!n||!n.rawTileData)return;const i=n.loadVTLayers(),r=t?t.sourceLayer:"",a=i._geojsonTileLayer||i[r];if(!a)return;const o=bi(t&&t.filter),{z:s,x:c,y:l}=this.tileID.canonical,u={z:s,x:c,y:l};for(let d=0;d<a.length;d++){const t=a.feature(d);if(o.needGeometry){const e=rs(t,!0);if(!o.filter(new Xr(this.tileID.overscaledZ),e,this.tileID.canonical))continue}else if(!o.filter(new Xr(this.tileID.overscaledZ),t))continue;const i=n.getId(t,r),p=new Lp(t,s,c,l,i);p.tile=u,e.push(p)}}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return!!this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length}setExpiryData(e){const t=this.expirationTime;if(e.cacheControl){const t=D(e.cacheControl);t["max-age"]&&(this.expirationTime=Date.now()+1e3*t["max-age"])}else e.expires&&(this.expirationTime=new Date(e.expires).getTime());if(this.expirationTime){const e=Date.now();let n=!1;if(this.expirationTime>e)n=!1;else if(t)if(this.expirationTime<t)n=!0;else{const i=this.expirationTime-t;i?this.expirationTime=e+Math.max(i,3e4):n=!0}else n=!0;n?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}}getExpiryTimeout(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)}setFeatureState(e,t){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData||0===Object.keys(e).length||!t)return;const n=this.latestFeatureIndex.loadVTLayers(),i=t.style.listImages();for(const r in this.buckets){if(!t.style.hasLayer(r))continue;const a=this.buckets[r],o=a.layers[0].sourceLayer||"_geojsonTileLayer",s=n[o],c=e[o];if(!s||!c||0===Object.keys(c).length)continue;if(a.update(c,s,i,this.imageAtlas&&this.imageAtlas.patternPositions||{}),a instanceof Nl||a instanceof al){const e=t.style._getSourceCache(a.layers[0].source);t._terrain&&t._terrain.enabled&&e&&a.programConfigurations.needsUpload&&t._terrain._clearRenderCacheForTile(e.id,this.tileID)}const l=t&&t.style&&t.style.getLayer(r);l&&(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(a)))}}holdingForFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<q.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(e){this.symbolFadeHoldUntil=q.now()+e}setTexture(e,t){const n=t.context,i=n.gl;this.texture=t.getTileTexture(e.width),this.texture?this.texture.update(e,{useMipmap:!0}):(this.texture=new Kd(n,e,i.RGBA,{useMipmap:!0}),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE),n.extTextureFilterAnisotropic&&i.texParameterf(i.TEXTURE_2D,n.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,n.extTextureFilterAnisotropicMax))}setDependencies(e,t){const n={};for(const i of t)n[i]=!0;this.dependencies[e]=n}hasDependency(e,t){for(const n of e){const e=this.dependencies[n];if(e)for(const n of t)if(e[n])return!0}return!1}clearQueryDebugViz(){}_makeDebugTileBoundsBuffers(e,t){if(!t||"mercator"===t.name||this._tileDebugBuffer)return;const n=is(Np,this.tileID.canonical,this.tileTransform)[0],i=new fa,r=new za;for(let a=0;a<n.length;a++){const{x:e,y:t}=n[a];i.emplaceBack(e,t),r.emplaceBack(a)}r.emplaceBack(0),this._tileDebugIndexBuffer=e.createIndexBuffer(r),this._tileDebugBuffer=e.createVertexBuffer(i,ap.members),this._tileDebugSegments=Po.simpleSegment(0,0,i.length,r.length)}_makeTileBoundsBuffers(e,t){if(this._tileBoundsBuffer||!t||"mercator"===t.name)return;const n=is(Np,this.tileID.canonical,this.tileTransform)[0];let i,r;if(this.isRaster){const e=function(e,t){const n=Ap(e,t),i=Math.pow(2,e.z);for(let l=0;l<33;l++)for(let r=0;r<33;r++){const a=Ho((e.x+(r+zp(r))/32)/i),o=Xo((e.y+(l+zp(l))/32)/i),s=t.project(a,o),c=33*l+r;Rp[2*c+0]=Math.round((s.x*n.scale-n.x)*zo),Rp[2*c+1]=Math.round((s.y*n.scale-n.y)*zo)}Dp.fill(0),Pp.fill(0);for(let l=2045;l>=0;l--){const e=4*l,t=Bp[e+0],n=Bp[e+1],i=Bp[e+2],r=Bp[e+3],a=t+i>>1,o=n+r>>1,s=a+o-n,c=o+t-a,u=33*n+t,d=33*r+i,p=33*o+a,h=Math.hypot((Rp[2*u+0]+Rp[2*d+0])/2-Rp[2*p+0],(Rp[2*u+1]+Rp[2*d+1])/2-Rp[2*p+1])>=16;if(Dp[p]=Dp[p]||(h?1:0),l<1022){const e=33*(n+c>>1)+(t+s>>1),a=33*(r+c>>1)+(i+s>>1);Dp[p]=Dp[p]||Dp[e]||Dp[a]}}const r=new ba,a=new Aa;let o=0;function s(e,t){const n=33*t+e;return 0===Pp[n]&&(r.emplaceBack(Rp[2*n+0],Rp[2*n+1],e*zo/32,t*zo/32),Pp[n]=++o),Pp[n]-1}function c(e,t,n,i,r,o){const l=e+n>>1,u=t+i>>1;if(Math.abs(e-r)+Math.abs(t-o)>1&&Dp[33*u+l])c(r,o,e,t,l,u),c(n,i,r,o,l,u);else{const c=s(e,t),l=s(n,i),u=s(r,o);a.emplaceBack(c,l,u)}}return c(0,0,32,32,32,0),c(32,32,0,0,0,32),{vertices:r,indices:a}}(this.tileID.canonical,t);i=e.vertices,r=e.indices}else{i=new ba,r=new Aa;for(const{x:t,y:r}of n)i.emplaceBack(t,r,0,0);const e=jc(i.int16,void 0,4);for(let t=0;t<e.length;t+=3)r.emplaceBack(e[t],e[t+1],e[t+2])}this._tileBoundsBuffer=e.createVertexBuffer(i,Fp.members),this._tileBoundsIndexBuffer=e.createIndexBuffer(r),this._tileBoundsSegments=Po.simpleSegment(0,0,i.length,r.length)}_makeGlobeTileDebugBuffers(e,t){if(this._globeTileDebugBorderBuffer||this._globeTileDebugTextBuffer||!t||"globe"!==t.name)return;const n=this.tileID.canonical,i=yp(pp(n));this._makeGlobeTileDebugBorderBuffer(e,n,i),this._makeGlobeTileDebugTextBuffer(e,n,i)}_makeGlobeTileDebugBorderBuffer(e,t,n){const i=new fa,r=new za,a=new ga,o=(e,o,s,c,l)=>{const u=(s-e)/(l-1),d=(c-o)/(l-1),p=i.length;for(let h=0;h<l;h++){const s=e+h*u,c=o+h*d;i.emplaceBack(s,c);const l=bp(s,c,t),m=Ys(l,l,n);a.emplaceBack(m[0],m[1],m[2]),r.emplaceBack(p+h)}},s=zo;o(0,0,s,0,16),o(s,0,s,s,16),o(s,s,0,s,16),o(0,s,0,0,16),this._tileDebugIndexBuffer=e.createIndexBuffer(r),this._tileDebugBuffer=e.createVertexBuffer(i,ap.members),this._globeTileDebugBorderBuffer=e.createVertexBuffer(a,rp.members),this._tileDebugSegments=Po.simpleSegment(0,0,i.length,r.length)}_makeGlobeTileDebugTextBuffer(e,t,n){const i=new fa,r=new Aa,a=new ga,o=25;r.reserve(32),i.reserve(o),a.reserve(o);const s=(e,t)=>o*e+t;for(let c=0;c<o;c++){const e=2048*c;for(let r=0;r<o;r++){const o=2048*r;i.emplaceBack(o,e);const s=bp(o,e,t),c=Ys(s,s,n);a.emplaceBack(c[0],c[1],c[2])}}for(let c=0;c<4;c++)for(let e=0;e<4;e++){const t=s(c,e),n=s(c,e+1),i=s(c+1,e),a=s(c+1,e+1);r.emplaceBack(t,n,i),r.emplaceBack(i,n,a)}this._tileDebugTextIndexBuffer=e.createIndexBuffer(r),this._tileDebugTextBuffer=e.createVertexBuffer(i,ap.members),this._globeTileDebugTextBuffer=e.createVertexBuffer(a,rp.members),this._tileDebugTextSegments=Po.simpleSegment(0,0,o,32)}}class Vp{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(e,t,n){const i=String(t);if(this.stateChanges[e]=this.stateChanges[e]||{},this.stateChanges[e][i]=this.stateChanges[e][i]||{},x(this.stateChanges[e][i],n),null===this.deletedStates[e]){this.deletedStates[e]={};for(const t in this.state[e])t!==i&&(this.deletedStates[e][t]=null)}else if(this.deletedStates[e]&&null===this.deletedStates[e][i]){this.deletedStates[e][i]={};for(const t in this.state[e][i])n[t]||(this.deletedStates[e][i][t]=null)}else for(const r in n)this.deletedStates[e]&&this.deletedStates[e][i]&&null===this.deletedStates[e][i][r]&&delete this.deletedStates[e][i][r]}removeFeatureState(e,t,n){if(null===this.deletedStates[e])return;const i=String(t);if(this.deletedStates[e]=this.deletedStates[e]||{},n&&void 0!==t)null!==this.deletedStates[e][i]&&(this.deletedStates[e][i]=this.deletedStates[e][i]||{},this.deletedStates[e][i][n]=null);else if(void 0!==t)if(this.stateChanges[e]&&this.stateChanges[e][i])for(n in this.deletedStates[e][i]={},this.stateChanges[e][i])this.deletedStates[e][i][n]=null;else this.deletedStates[e][i]=null;else this.deletedStates[e]=null}getState(e,t){const n=String(t),i=x({},(this.state[e]||{})[n],(this.stateChanges[e]||{})[n]);if(null===this.deletedStates[e])return{};if(this.deletedStates[e]){const n=this.deletedStates[e][t];if(null===n)return{};for(const e in n)delete i[e]}return i}initializeTileState(e,t){e.setFeatureState(this.state,t)}coalesceChanges(e,t){const n={};for(const i in this.stateChanges){this.state[i]=this.state[i]||{};const e={};for(const t in this.stateChanges[i])this.state[i][t]||(this.state[i][t]={}),x(this.state[i][t],this.stateChanges[i][t]),e[t]=this.state[i][t];n[i]=e}for(const i in this.deletedStates){this.state[i]=this.state[i]||{};const e={};if(null===this.deletedStates[i])for(const t in this.state[i])e[t]={},this.state[i][t]={};else for(const t in this.deletedStates[i]){if(null===this.deletedStates[i][t])this.state[i][t]={};else for(const e of Object.keys(this.deletedStates[i][t]))delete this.state[i][t][e];e[t]=this.state[i][t]}n[i]=n[i]||{},x(n[i],e)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(const i in e)e[i].setFeatureState(n,t)}}class Wp{constructor(e){this.size=e,this.minimums=[],this.maximums=[],this.leaves=[]}getElevation(e,t){const n=this.toIdx(e,t);return{min:this.minimums[n],max:this.maximums[n]}}isLeaf(e,t){return this.leaves[this.toIdx(e,t)]}toIdx(e,t){return t*this.size+e}}function qp(e,t,n,i){let r=0,a=Number.MAX_VALUE;for(let o=0;o<3;o++)if(Math.abs(i[o])<1e-15){if(n[o]<e[o]||n[o]>t[o])return null}else{const s=1/i[o];let c=(e[o]-n[o])*s,l=(t[o]-n[o])*s;if(c>l){const e=c;c=l,l=e}if(c>r&&(r=c),l<a&&(a=l),r>a)return null}return r}function Gp(e,t,n,i,r,a,o,s,c,l,u){const d=i-e,p=r-t,h=a-n,m=o-e,f=s-t,g=c-n,b=u[1]*g-u[2]*f,v=u[2]*m-u[0]*g,y=u[0]*f-u[1]*m,x=d*b+p*v+h*y;if(Math.abs(x)<1e-15)return null;const _=1/x,w=l[0]-e,O=l[1]-t,j=l[2]-n,C=(w*b+O*v+j*y)*_;if(C<0||C>1)return null;const E=O*h-j*p,T=j*d-w*h,k=w*p-O*d,S=(u[0]*E+u[1]*T+u[2]*k)*_;return S<0||C+S>1?null:(m*E+f*T+g*k)*_}function Zp(e,t,n){return(e-t)/(n-t)}function Hp(e,t,n,i,r,a,o,s,c){const l=1<<n,u=a-i,d=o-r,p=(e+1)/l*u+i,h=(t+0)/l*d+r,m=(t+1)/l*d+r;s[0]=(e+0)/l*u+i,s[1]=h,c[0]=p,c[1]=m}class Xp{constructor(e){if(this.maximums=[],this.minimums=[],this.leaves=[],this.childOffsets=[],this.nodeCount=0,this.dem=e,this._siblingOffset=[[0,0],[1,0],[0,1],[1,1]],!this.dem)return;const t=function(e){const t=Math.ceil(Math.log2(e.dim/8)),n=[];let i=Math.ceil(Math.pow(2,t));const r=1/i,a=(e,t,n,i,r)=>{const a=i?1:0,o=(e+1)*n-a,s=t*n,c=(t+1)*n-a;r[0]=e*n,r[1]=s,r[2]=o,r[3]=c};let o=new Wp(i);const s=[];for(let c=0;c<i*i;c++){a(c%i,Math.floor(c/i),r,!1,s);const t=Yp(s[0],s[1],e),n=Yp(s[2],s[1],e),l=Yp(s[2],s[3],e),u=Yp(s[0],s[3],e);o.minimums.push(Math.min(t,n,l,u)),o.maximums.push(Math.max(t,n,l,u)),o.leaves.push(1)}for(n.push(o),i/=2;i>=1;i/=2){const e=n[n.length-1];o=new Wp(i);for(let t=0;t<i*i;t++){a(t%i,Math.floor(t/i),2,!0,s);const n=e.getElevation(s[0],s[1]),r=e.getElevation(s[2],s[1]),c=e.getElevation(s[2],s[3]),l=e.getElevation(s[0],s[3]),u=e.isLeaf(s[0],s[1]),d=e.isLeaf(s[2],s[1]),p=e.isLeaf(s[2],s[3]),h=e.isLeaf(s[0],s[3]),m=Math.min(n.min,r.min,c.min,l.min),f=Math.max(n.max,r.max,c.max,l.max),g=u&&d&&p&&h;o.maximums.push(f),o.minimums.push(m),o.leaves.push(f-m<=5&&g?1:0)}n.push(o)}return n}(this.dem),n=t.length-1,i=t[n];this._addNode(i.minimums[0],i.maximums[0],i.leaves[0]),this._construct(t,0,0,n,0)}raycastRoot(e,t,n,i,r,a,o=1){return qp([e,t,-100],[n,i,this.maximums[0]*o],r,a)}raycast(e,t,n,i,r,a,o=1){if(!this.nodeCount)return null;const s=this.raycastRoot(e,t,n,i,r,a,o);if(null==s)return null;const c=[],l=[],u=[],d=[],p=[{idx:0,t:s,nodex:0,nodey:0,depth:0}];for(;p.length>0;){const{idx:s,t:h,nodex:m,nodey:f,depth:g}=p.pop();if(this.leaves[s]){Hp(m,f,g,e,t,n,i,u,d);const s=1<<g,c=(m+0)/s,l=(m+1)/s,p=(f+0)/s,b=(f+1)/s,v=Yp(c,p,this.dem)*o,y=Yp(l,p,this.dem)*o,x=Yp(l,b,this.dem)*o,_=Yp(c,b,this.dem)*o,w=Gp(u[0],u[1],v,d[0],u[1],y,d[0],d[1],x,r,a),O=Gp(d[0],d[1],x,u[0],d[1],_,u[0],u[1],v,r,a),j=Math.min(null!==w?w:Number.MAX_VALUE,null!==O?O:Number.MAX_VALUE);if(j!==Number.MAX_VALUE)return j;{const e=Zs([],r,a,h);if(Kp(v,y,_,x,Zp(e[0],u[0],d[0]),Zp(e[1],u[1],d[1]))>=e[2])return h}continue}let b=0;for(let p=0;p<this._siblingOffset.length;p++){Hp((m<<1)+this._siblingOffset[p][0],(f<<1)+this._siblingOffset[p][1],g+1,e,t,n,i,u,d),u[2]=-100,d[2]=this.maximums[this.childOffsets[s]+p]*o;const h=qp(u,d,r,a);if(null!=h){const e=h;c[p]=e;let t=!1;for(let n=0;n<b&&!t;n++)e>=c[l[n]]&&(l.splice(n,0,p),t=!0);t||(l[b]=p),b++}}for(let e=0;e<b;e++){const t=l[e];p.push({idx:this.childOffsets[s]+t,t:c[t],nodex:(m<<1)+this._siblingOffset[t][0],nodey:(f<<1)+this._siblingOffset[t][1],depth:g+1})}}return null}_addNode(e,t,n){return this.minimums.push(e),this.maximums.push(t),this.leaves.push(n),this.childOffsets.push(0),this.nodeCount++}_construct(e,t,n,i,r){if(1===e[i].isLeaf(t,n))return;this.childOffsets[r]||(this.childOffsets[r]=this.nodeCount);const a=i-1,o=e[a];let s=0,c=0;for(let l=0;l<this._siblingOffset.length;l++){const e=2*t+this._siblingOffset[l][0],i=2*n+this._siblingOffset[l][1],r=o.getElevation(e,i),a=o.isLeaf(e,i),u=this._addNode(r.min,r.max,a);a&&(s|=1<<l),c||(c=u)}for(let l=0;l<this._siblingOffset.length;l++)s&1<<l||this._construct(e,2*t+this._siblingOffset[l][0],2*n+this._siblingOffset[l][1],a,c+l)}}function Kp(e,t,n,i,r,a){return tn(tn(e,n,a),tn(t,i,a),r)}function Yp(e,t,n){const i=n.dim,r=f(e*i-.5,0,i-1),a=f(t*i-.5,0,i-1),o=Math.floor(r),s=Math.floor(a),c=Math.min(o+1,i-1),l=Math.min(s+1,i-1);return Kp(n.get(o,s),n.get(c,s),n.get(o,l),n.get(c,l),r-o,a-s)}const Jp={mapbox:[6553.6,25.6,.1,1e4],terrarium:[256,1,1/256,32768]};class Qp{get tree(){return this._tree||this._buildQuadTree(),this._tree}constructor(e,t,n,i=!1,r=!1){if(this.uid=e,t.height!==t.width)throw new RangeError("DEM tiles must be square");if(n&&"mapbox"!==n&&"terrarium"!==n)return M(`"${n}" is not a valid encoding type. Valid types include "mapbox" and "terrarium".`);this.stride=t.height;const a=this.dim=t.height-2,o=new Uint32Array(t.data.buffer);if(this.pixels=new Uint8Array(t.data.buffer),this.encoding=n||"mapbox",this.borderReady=i,!i){for(let e=0;e<a;e++)o[this._idx(-1,e)]=o[this._idx(0,e)],o[this._idx(a,e)]=o[this._idx(a-1,e)],o[this._idx(e,-1)]=o[this._idx(e,0)],o[this._idx(e,a)]=o[this._idx(e,a-1)];o[this._idx(-1,-1)]=o[this._idx(0,0)],o[this._idx(a,-1)]=o[this._idx(a-1,0)],o[this._idx(-1,a)]=o[this._idx(0,a-1)],o[this._idx(a,a)]=o[this._idx(a-1,a-1)],r&&this._buildQuadTree()}}_buildQuadTree(){this._tree=new Xp(this)}get(e,t,n=!1){n&&(e=f(e,-1,this.dim),t=f(t,-1,this.dim));const i=4*this._idx(e,t);return("terrarium"===this.encoding?this._unpackTerrarium:this._unpackMapbox)(this.pixels[i],this.pixels[i+1],this.pixels[i+2])}static getUnpackVector(e){return Jp[e]}get unpackVector(){return Jp[this.encoding]}_idx(e,t){if(e<-1||e>=this.dim+1||t<-1||t>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(t+1)*this.stride+(e+1)}
vendor: 4,249 bytes, line 2
2_unpackMapbox(e,t,n){return(256*e*256+256*t+n)/10-1e4}_unpackTerrarium(e,t,n){return 256*e+t+n/256-32768}static pack(e,t){const n=[0,0,0,0],i=Qp.getUnpackVector(t);let r=Math.floor((e+i[3])/i[2]);return n[2]=r%256,r=Math.floor(r/256),n[1]=r%256,r=Math.floor(r/256),n[0]=r,n}getPixels(){return new vc({width:this.stride,height:this.stride},this.pixels)}backfillBorder(e,t,n){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");let i=t*this.dim,r=t*this.dim+this.dim,a=n*this.dim,o=n*this.dim+this.dim;switch(t){case-1:i=r-1;break;case 1:r=i+1}switch(n){case-1:a=o-1;break;case 1:o=a+1}const s=-t*this.dim,c=-n*this.dim;for(let l=a;l<o;l++)for(let t=i;t<r;t++){const n=4*this._idx(t,l),i=4*this._idx(t+s,l+c);this.pixels[n+0]=e.pixels[i+0],this.pixels[n+1]=e.pixels[i+1],this.pixels[n+2]=e.pixels[i+2],this.pixels[n+3]=e.pixels[i+3]}}onDeserialize(){this._tree&&(this._tree.dem=this)}}Ki(Qp,"DEMData"),Ki(Xp,"DemMinMaxQuadTree",{omit:["dem"]});class $p{constructor(e,t){this.max=e,this.onRemove=t,this.reset()}reset(){for(const e in this.data)for(const t of this.data[e])t.timeout&&clearTimeout(t.timeout),this.onRemove(t.value);return this.data={},this.order=[],this}add(e,t,n){const i=e.wrapped().key;void 0===this.data[i]&&(this.data[i]=[]);const r={value:t,timeout:void 0};if(void 0!==n&&(r.timeout=setTimeout(()=>{this.remove(e,r)},n)),this.data[i].push(r),this.order.push(i),this.order.length>this.max){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){const t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){const t=this.data[e];return t?t[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;const n=e.wrapped().key,i=void 0===t?0:this.data[n].indexOf(t),r=this.data[n][i];return this.data[n].splice(i,1),r.timeout&&clearTimeout(r.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(r.value),this.order.splice(this.order.indexOf(n),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){const e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}filter(e){const t=[];for(const n in this.data)for(const i of this.data[n])e(i.value)||t.push(i);for(const n of t)this.remove(n.value.tileID,n)}}class eh{constructor(e,t,n){this.func=e,this.mask=t,this.range=n}}eh.ReadOnly=!1,eh.ReadWrite=!0,eh.disabled=new eh(519,eh.ReadOnly,[0,1]);class th{constructor(e,t,n,i,r,a){this.test=e,this.ref=t,this.mask=n,this.fail=i,this.depthFail=r,this.pass=a}}th.disabled=new th({func:519,mask:0},0,0,7680,7680,7680);class nh{constructor(e,t,n){this.blendFunction=e,this.blendColor=t,this.mask=n}}nh.Replace=[1,0],nh.disabled=new nh(nh.Replace,ut.transparent,[!1,!1,!1,!1]),nh.unblended=new nh(nh.Replace,ut.transparent,[!0,!0,!0,!0]),nh.alphaBlended=new nh([1,771],ut.transparent,[!0,!0,!0,!0]);class ih{constructor(e,t,n){this.enable=e,this.mode=t,this.frontFace=n}}ih.disabled=new ih(!1,1029,2305),ih.backCCW=new ih(!0,1029,2305),ih.backCW=new ih(!0,1029,2304),ih.frontCW=new ih(!0,1028,2304),ih.frontCCW=new ih(!0,1028,2305);class rh extends Fe{constructor(e,t,n){super(),this.id=e,this._onlySymbols=n,t.on("data",e=>{"source"===e.dataType&&"metadata"===e.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===e.dataType&&"content"===e.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform))}),t.on("error",()=>{this._sourceErrored=!0}),this._source=t,this._tiles={},this._cache=new $p(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._minTileCacheSize=t.minTileCacheSize,this._maxTileCacheSize=t.maxTileCacheSize,this._loadedParentTiles={},this._coveredTiles={},this._state=new Vp,this._isRaster="raster"===this._source.type||"raster-dem"===this._source.type||"custom"===this._source.type&&"raster"===this._source._dataType}onAdd(e){this.map=e,this._minTileCacheSize=void 0===this._minTileCacheSize&&e?e._minTileCacheSize:this._minTileCacheSize,this._maxTileC
vendor: 17,893 bytes, line 2
2acheSize=void 0===this._maxTileCacheSize&&e?e._maxTileCacheSize:this._maxTileCacheSize}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(const e in this._tiles){const t=this._tiles[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(e,t){return e.isSymbolTile=this._onlySymbols,this._source.loadTile(e,t)}_unloadTile(e){if(this._source.unloadTile)return this._source.unloadTile(e,()=>{})}_abortTile(e){if(this._source.abortTile)return this._source.abortTile(e,()=>{})}serialize(){return this._source.serialize()}prepare(e){if(this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._source.prepareTile)for(const t in this._tiles){const n=this._tiles[t];this._source.prepareTile(n)&&this.map.painter.terrain&&this.map.painter.terrain._clearRenderCacheForTile(this.id,n.tileID),n.upload(e),n.prepare(this.map.style.imageManager)}else for(const t in this._tiles){const n=this._tiles[t];n.upload(e),n.prepare(this.map.style.imageManager)}}getIds(){return y(this._tiles).map(e=>e.tileID).sort(ah).map(e=>e.key)}getRenderableIds(e){const t=[];for(const n in this._tiles)this._isIdRenderable(+n,e)&&t.push(this._tiles[n]);return e?t.sort((e,t)=>{const n=e.tileID,i=t.tileID,a=new r(n.canonical.x,n.canonical.y)._rotate(this.transform.angle),o=new r(i.canonical.x,i.canonical.y)._rotate(this.transform.angle);return n.overscaledZ-i.overscaledZ||o.y-a.y||o.x-a.x}).map(e=>e.tileID.key):t.map(e=>e.tileID).sort(ah).map(e=>e.key)}hasRenderableParent(e){const t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)}_isIdRenderable(e,t){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const e in this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(+e,"reloading")}}_reloadTile(e,t){const n=this._tiles[e];n&&("loading"!==n.state&&(n.state=t),this._loadTile(n,this._tileLoaded.bind(this,n,e,t)))}_tileLoaded(e,t,n,i){if(i)if(e.state="errored",404!==i.status)this._source.fire(new ze(i,{tile:e}));else if("raster-dem"===this._source.type&&this.usedForTerrain&&this.map.painter.terrain){const e=this.map.painter.terrain;this.update(this.transform,e.getScaledDemTileSize(),!0),e.resetTileLookupCache(this.id)}else this.update(this.transform);else e.timeAdded=q.now(),"expired"===n&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(t,e),"raster-dem"===this._source.type&&e.dem&&this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new Pe("data",{dataType:"source",tile:e,coord:e.tileID,sourceCacheId:this.id}))}_backfillDEM(e){const t=this.getRenderableIds();for(let i=0;i<t.length;i++){const r=t[i];if(e.neighboringTiles&&e.neighboringTiles[r]){const t=this.getTileByID(r);n(e,t),n(t,e)}}function n(e,t){if(!e.dem||e.dem.borderReady)return;e.needsHillshadePrepare=!0,e.needsDEMTextureUpload=!0;let n=t.tileID.canonical.x-e.tileID.canonical.x;const i=t.tileID.canonical.y-e.tileID.canonical.y,r=Math.pow(2,e.tileID.canonical.z),a=t.tileID.key;0===n&&0===i||Math.abs(i)>1||(Math.abs(n)>1&&(1===Math.abs(n+r)?n+=r:1===Math.abs(n-r)&&(n-=r)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,n,i),e.neighboringTiles&&e.neighboringTiles[a]&&(e.neighboringTiles[a].backfilled=!0)))}}getTile(e){return this.getTileByID(e.key)}getTileByID(e){return this._tiles[e]}_retainLoadedChildren(e,t,n,i){for(const r in this._tiles){let a=this._tiles[r];if(i[r]||!a.hasData()||a.tileID.overscaledZ<=t||a.tileID.overscaledZ>n)continue;let o=a.tileID;for(;a&&a.tileID.overscaledZ>t+1;){const e=a.tileID.scaledTo(a.tileID.overscaledZ-1);a=this._tiles[e.key],a&&a.hasData()&&(o=e)}let s=o;for(;s.overscaledZ>t;)if(s=s.scaledTo(s.overscaledZ-1),e[s.key]){i[o.key]=o;break}}}findLoadedParent(e,t){if(e.key in this._loadedParentTiles){const n=this._loadedParentTiles[e.key];return n&&n.tileID.overscaledZ>=t?n:null}for(let n=e.overscaledZ-1;n>=t;n--){const t=e.scaledTo(n),i=this._getLoadedTile(t);if(i)return i}}_getLoadedTile(e){const t=this._tiles[e.key];return t&&t.hasData()?t:this._cache.getByKey(this._source.reparseOverscaled?e.wrapped().key:e.canonical.key)}updateCacheSize(e,t){t=t||this._source.tileSize;const n=Math.ceil(e.width/t)+1,i=Math.ceil(e.height/t)+1,r=Math.floor(n*i*5),a="number"==typeof this._minTileCacheSize?Math.max(this._minTileCacheSize,r):r,o="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,a):a;this._cache.setMaxSize(o)}handleWrapJump(e){const t=Math.round((e-(void 0===this._prevLng?e:this._prevLng))/360);if(this._prevLng=e,t){const e={};for(const n in this._tiles){const i=this._tiles[n];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+t),e[i.tileID.key]=i}this._tiles=e;for(const t in this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(const t in this._tiles)this._setTileReloadTimer(+t,this._tiles[t])}}update(e,t,n){if(this.transform=e,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage)return;if(this.usedForTerrain&&!n)return;let i;this.updateCacheSize(e,t),"globe"!==this.transform.projection.name&&this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map(e=>new kp(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)):(i=e.coveringTiles({tileSize:t||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!n,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain}),this._source.hasTile&&(i=i.filter(e=>this._source.hasTile(e)))):i=[];const r=this._updateRetainedTiles(i);if(oh(this._source.type)&&0!==i.length){const e={},t={},n=Object.keys(r);for(const i of n){const n=r[i],a=this._tiles[i];if(!a||a.fadeEndTime&&a.fadeEndTime<=q.now())continue;const o=this.findLoadedParent(n,Math.max(n.overscaledZ-rh.maxOverzooming,this._source.minzoom));o&&(this._addTile(o.tileID),e[o.tileID.key]=o.tileID),t[i]=n}const a=i[i.length-1].overscaledZ;for(const i in this._tiles){const e=this._tiles[i];if(r[i]||!e.hasData())continue;let n=e.tileID;for(;n.overscaledZ>a;){n=n.scaledTo(n.overscaledZ-1);const a=this._tiles[n.key];if(a&&a.hasData()&&t[n.key]){r[i]=e.tileID;break}}}for(const i in e)r[i]||(this._coveredTiles[i]=!0,r[i]=e[i])}for(const o in r)this._tiles[o].clearFadeHold();const a=function(e,t){const n=[];for(const i in e)i in t||n.push(i);return n}(this._tiles,r);for(const o of a){const e=this._tiles[o];e.hasSymbolBuckets&&!e.holdingForFade()?e.setHoldDuration(this.map._fadeDuration):e.hasSymbolBuckets&&!e.symbolFadeFinished()||this._removeTile(+o)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(const e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(+e)}_updateRetainedTiles(e){const t={};if(0===e.length)return t;const n={},i=e.reduce((e,t)=>Math.min(e,t.overscaledZ),1/0),r=e[0].overscaledZ,a=Math.max(r-rh.maxOverzooming,this._source.minzoom),o=Math.max(r+rh.maxUnderzooming,this._source.minzoom),s={};for(const c of e){const e=this._addTile(c);t[c.key]=c,e.hasData()||i<this._source.maxzoom&&(s[c.key]=c)}this._retainLoadedChildren(s,i,o,t);for(const c of e){let e=this._tiles[c.key];if(e.hasData())continue;if(c.canonical.z>=this._source.maxzoom){const e=c.children(this._source.maxzoom)[0],n=this.getTile(e);if(n&&n.hasData()){t[e.key]=e;continue}}else{const e=c.children(this._source.maxzoom);if(t[e[0].key]&&t[e[1].key]&&t[e[2].key]&&t[e[3].key])continue}let i=e.wasRequested();for(let r=c.overscaledZ-1;r>=a;--r){const a=c.scaledTo(r);if(n[a.key])break;if(n[a.key]=!0,e=this.getTile(a),!e&&i&&(e=this._addTile(a)),e&&(t[a.key]=a,i=e.wasRequested(),e.hasData()))break}}return t}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const e in this._tiles){const t=[];let n,i=this._tiles[e].tileID;for(;i.overscaledZ>0;){if(i.key in this._loadedParentTiles){n=this._loadedParentTiles[i.key];break}t.push(i.key);const e=i.scaledTo(i.overscaledZ-1);if(n=this._getLoadedTile(e),n)break;i=e}for(const e of t)this._loadedParentTiles[e]=n}}_addTile(e){let t=this._tiles[e.key];if(t)return this._source.prepareTile&&this._source.prepareTile(t),t;t=this._cache.getAndRemove(e),t&&(this._setTileReloadTimer(e.key,t),t.tileID=e,this._state.initializeTileState(t,this.map?this.map.painter:null),this._cacheTimers[e.key]&&(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,t)));const n=Boolean(t);if(!n){const n=this.map?this.map.painter:null;t=new Up(e,this._source.tileSize*e.overscaleFactor(),this.transform.tileZoom,n,this._isRaster),this._source.prepareTile&&this._source.prepareTile(t)||this._loadTile(t,this._tileLoaded.bind(this,t,e.key,t.state))}return t?(t.uses++,this._tiles[e.key]=t,n||this._source.fire(new Pe("dataloading",{tile:t,coord:t.tileID,dataType:"source"})),t):null}_setTileReloadTimer(e,t){e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);const n=t.getExpiryTimeout();n&&(this._timers[e]=setTimeout(()=>{this._reloadTile(e,"expired"),delete this._timers[e]},n))}_removeTile(e){const t=this._tiles[e];t&&(t.uses--,delete this._tiles[e],this._timers[e]&&(clearTimeout(this._timers[e]),delete this._timers[e]),t.uses>0||(t.hasData()&&"reloading"!==t.state?this._cache.add(t.tileID,t,t.getExpiryTimeout()):(t.aborted=!0,this._abortTile(t),this._unloadTile(t))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const e in this._tiles)this._removeTile(+e);this._source._clear&&this._source._clear(),this._cache.reset(),this.map&&this.usedForTerrain&&this.map.painter.terrain&&this.map.painter.terrain.resetTileLookupCache(this.id)}tilesIn(e,t,n){const i=[],r=this.transform;if(!r)return i;for(const a in this._tiles){const o=this._tiles[a];if(n&&o.clearQueryDebugViz(),o.holdingForFade())continue;const s=e.containsTile(o,r,t);s&&i.push(s)}return i}getVisibleCoordinates(e){const t=this.getRenderableIds(e).map(e=>this._tiles[e].tileID);for(const n of t)n.projMatrix=this.transform.calculateProjMatrix(n.toUnwrapped());return t}hasTransition(){if(this._source.hasTransition())return!0;if(oh(this._source.type))for(const e in this._tiles){const t=this._tiles[e];if(void 0!==t.fadeEndTime&&t.fadeEndTime>=q.now())return!0}return!1}setFeatureState(e,t,n){this._state.updateState(e=e||"_geojsonTileLayer",t,n)}removeFeatureState(e,t,n){this._state.removeFeatureState(e=e||"_geojsonTileLayer",t,n)}getFeatureState(e,t){return this._state.getState(e=e||"_geojsonTileLayer",t)}setDependencies(e,t,n){const i=this._tiles[e];i&&i.setDependencies(t,n)}reloadTilesForDependencies(e,t){for(const n in this._tiles)this._tiles[n].hasDependency(e,t)&&this._reloadTile(+n,"reloading");this._cache.filter(n=>!n.hasDependency(e,t))}_preloadTiles(e,t){const n=new Map,i=Array.isArray(e)?e:[e],r=this.map.painter.terrain,a=this.usedForTerrain&&r?r.getScaledDemTileSize():this._source.tileSize;for(const o of i){const e=o.coveringTiles({tileSize:a,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(const t of e)n.set(t.key,t);this.usedForTerrain&&o.updateElevation(!1)}v(Array.from(n.values()),(e,t)=>{const n=new Up(e,this._source.tileSize*e.overscaleFactor(),this.transform.tileZoom,this.map.painter,this._isRaster);this._loadTile(n,e=>{"raster-dem"===this._source.type&&n.dem&&this._backfillDEM(n),t(e,n)})},t)}}function ah(e,t){const n=Math.abs(2*e.wrap)-+(e.wrap<0),i=Math.abs(2*t.wrap)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||i-n||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function oh(e){return"raster"===e||"image"===e||"video"===e}rh.maxOverzooming=10,rh.maxUnderzooming=3;class sh{constructor(e,t,n){this._demTile=e,this._dem=this._demTile.dem,this._scale=t,this._offset=n}static create(e,t,n){const i=n||e.findDEMTileFor(t);if(!i||!i.dem)return;const r=i.dem,a=i.tileID,o=1<<t.canonical.z-a.canonical.z;return new sh(i,i.tileSize/zo/o,[(t.canonical.x/o-a.canonical.x)*r.dim,(t.canonical.y/o-a.canonical.y)*r.dim])}tileCoordToPixel(e,t){const n=t*this._scale+this._offset[1],i=Math.floor(e*this._scale+this._offset[0]),a=Math.floor(n);return new r(i,a)}getElevationAt(e,t,n,i){const r=e*this._scale+this._offset[0],a=t*this._scale+this._offset[1],o=Math.floor(r),s=Math.floor(a),c=this._dem;return i=!!i,n?tn(tn(c.get(o,s,i),c.get(o,s+1,i),a-s),tn(c.get(o+1,s,i),c.get(o+1,s+1,i),a-s),r-o):c.get(o,s,i)}getElevationAtPixel(e,t,n){return this._dem.get(e,t,!!n)}getMeterToDEM(e){return(1<<this._demTile.tileID.canonical.z)*Zo(1,e)*this._dem.stride}}class ch{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new Zi(zo,16,0),this.featureIndexArray=new Qa,this.promoteId=t}insert(e,t,n,i,r,a=0){const o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,i,r,a);const s=this.grid;for(let c=0;c<t.length;c++){const e=t[c],n=[1/0,1/0,-1/0,-1/0];for(let t=0;t<e.length;t++){const i=e[t];n[0]=Math.min(n[0],i.x),n[1]=Math.min(n[1],i.y),n[2]=Math.max(n[2],i.x),n[3]=Math.max(n[3],i.y)}n[0]<zo&&n[1]<zo&&n[2]>=0&&n[3]>=0&&s.insert(o,n[0],n[1],n[2],n[3])}}loadVTLayers(){if(!this.vtLayers){this.vtLayers=new xl.VectorTile(new cu(this.rawTileData)).layers,this.sourceLayerCoder=new Ip(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]),this.vtFeatures={};for(const e in this.vtLayers)this.vtFeatures[e]=[]}return this.vtLayers}query(e,t,n,i){this.loadVTLayers();const r=e.params||{},a=bi(r.filter),o=e.tileResult,s=e.transform,c=o.bufferedTilespaceBounds,l=this.grid.query(c.min.x,c.min.y,c.max.x,c.max.y,(e,t,n,i)=>vs(o.bufferedTilespaceGeometry,e,t,n,i));l.sort(uh);let u=null;s.elevation&&l.length>0&&(u=sh.create(s.elevation,this.tileID));const d={};let p;for(let h=0;h<l.length;h++){const s=l[h];if(s===p)continue;p=s;const c=this.featureIndexArray.get(s);let m=null;this.loadMatchingFeature(d,c,a,r.layers,r.availableImages,t,n,i,(t,n,i,r=0)=>(m||(m=is(t,this.tileID.canonical,e.tileTransform)),n.queryIntersectsFeature(o,t,i,m,this.z,e.transform,e.pixelPosMatrix,u,r)))}return d}loadMatchingFeature(e,t,n,i,r,a,o,s,c){const{featureIndex:l,bucketIndex:u,sourceLayerIndex:d,layoutVertexArrayOffset:p}=t,h=this.bucketLayerIDs[u];if(i&&!function(e,t){for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>=0)return!0;return!1}(i,h))return;const m=this.sourceLayerCoder.decode(d),f=this.vtLayers[m].feature(l);if(n.needGeometry){const e=rs(f,!0);if(!n.filter(new Xr(this.tileID.overscaledZ),e,this.tileID.canonical))return}else if(!n.filter(new Xr(this.tileID.overscaledZ),f))return;const g=this.getId(f,m);for(let b=0;b<h.length;b++){const t=h[b];if(i&&i.indexOf(t)<0)continue;const n=a[t];if(!n)continue;let u={};void 0!==g&&s&&(u=s.getState(n.sourceLayer||"_geojsonTileLayer",g));const d=x({},o[t]);d.paint=lh(d.paint,n.paint,f,u,r),d.layout=lh(d.layout,n.layout,f,u,r);const m=!c||c(f,n,u,p);if(!m)continue;const v=new Lp(f,this.z,this.x,this.y,g);v.layer=d;let y=e[t];void 0===y&&(y=e[t]=[]),y.push({featureIndex:l,feature:v,intersectionZ:m})}}lookupSymbolFeatures(e,t,n,i,r,a,o,s){const c={};this.loadVTLayers();const l=bi(r);for(const u of e)this.loadMatchingFeature(c,{bucketIndex:n,sourceLayerIndex:i,featureIndex:u,layoutVertexArrayOffset:0},l,a,o,s,t);return c}loadFeature(e){const{featureIndex:t,sourceLayerIndex:n}=e;this.loadVTLayers();const i=this.sourceLayerCoder.decode(n),r=this.vtFeatures[i];if(r[t])return r[t];const a=this.vtLayers[i].feature(t);return r[t]=a,a}hasLayer(e){for(const t of this.bucketLayerIDs)for(const n of t)if(e===n)return!0;return!1}getId(e,t){let n=e.id;return this.promoteId&&(n=e.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[t]],"boolean"==typeof n&&(n=Number(n))),n}}function lh(e,t,n,i,r){return k(e,(e,a)=>{const o=t instanceof na?t.get(a):null;return o&&o.evaluate?o.evaluate(n,i,r):o})}function uh(e,t){return t-e}Ki(ch,"FeatureIndex",{omit:["rawTileData","sourceLayerCoder"]});class dh{constructor(e){const t={},n=[];for(const o in e){const i=e[o],r=t[o]={};for(const e in i.glyphs){const t=i.glyphs[+e];if(!t||0===t.bitmap.width||0===t.bitmap.height)continue;const a=t.metrics.localGlyph?2:1,o={x:0,y:0,w:t.bitmap.width+2*a,h:t.bitmap.height+2*a};n.push(o),r[e]=o}}const{w:i,h:r}=Iu(n),a=new bc({width:i||1,height:r||1});for(const o in e){const n=e[o];for(const e in n.glyphs){const i=n.glyphs[+e];if(!i||0===i.bitmap.width||0===i.bitmap.height)continue;const r=t[o][e],s=i.metrics.localGlyph?2:1;bc.copy(i.bitmap,a,{x:0,y:0},{x:r.x+s,y:r.y+s},i.bitmap)}}this.image=a,this.positions=t}}Ki(dh,"GlyphAtlas");class ph{constructor(e){this.tileID=new kp(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.tileZoom=e.tileZoom,this.uid=e.uid,this.zoom=e.zoom,this.canonical=e.tileID.canonical,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId,this.enableTerrain=!!e.enableTerrain,this.isSymbolTile=e.isSymbolTile,this.tileTransform=Ap(e.tileID.canonical,e.projection),this.projection=e.projection}parse(e,t,n,i,r){this.status="parsing",this.data=e,this.collisionBoxArray=new qa;
2const a=new Ip(Object.keys(e.layers).sort()),o=new ch(this.tileID,this.promoteId);o.bucketLayerIDs=[];const s={},c=new Yd(256,256),l={featureIndex:o,iconDependencies:{},patternDependencies:{},glyphDependencies:{},lineAtlas:c,availableImages:n},u=t.familiesBySource[this.source];for(const y in u){const t=e.layers[y];if(!t)continue;let i=!1,r=!1;for(const e of u[y])"symbol"===e[0].type?i=!0:r=!0;if(!0===this.isSymbolTile&&!i)continue;if(!1===this.isSymbolTile&&!r)continue;1===t.version&&M(`Vector tile source "${this.source}" layer "${y}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const c=a.encode(y),d=[];for(let e=0;e<t.length;e++){const n=t.feature(e),i=o.getId(n,y);d.push({feature:n,id:i,index:e,sourceLayerIndex:c})}for(const e of u[y]){const t=e[0];void 0!==this.isSymbolTile&&"symbol"===t.type!==this.isSymbolTile||t.minzoom&&this.zoom<Math.floor(t.minzoom)||t.maxzoom&&this.zoom>=t.maxzoom||"none"!==t.visibility&&(hh(e,this.zoom,n),(s[t.id]=t.createBucket({index:o.bucketLayerIDs.length,layers:e,zoom:this.zoom,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:c,sourceID:this.source,enableTerrain:this.enableTerrain,projection:this.projection.name,availableImages:n})).populate(d,l,this.tileID.canonical,this.tileTransform),o.bucketLayerIDs.push(e.map(e=>e.id)))}}let d,p,h,m;c.trim();const f={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},g=k(l.glyphDependencies,e=>Object.keys(e).map(Number));Object.keys(g).length?i.send("getGlyphs",{uid:this.uid,stacks:g},(e,t)=>{d||(d=e,p=t,x.call(this))},void 0,!1,f):p={};const b=Object.keys(l.iconDependencies);b.length?i.send("getImages",{icons:b,source:this.source,tileID:this.tileID,type:"icons"},(e,t)=>{d||(d=e,h=t,x.call(this))},void 0,!1,f):h={};const v=Object.keys(l.patternDependencies);function x(){if(d)return r(d);if(p&&h&&m){const e=new dh(p),t=new Lu(h,m);for(const i in s){const r=s[i];r instanceof zd?(hh(r.layers,this.zoom,n),wd(r,p,e.positions,h,t.iconPositions,this.showCollisionBoxes,n,this.tileID.canonical,this.tileZoom,this.projection)):r.hasPattern&&(r instanceof Nl||r instanceof al||r instanceof Tl)&&(hh(r.layers,this.zoom,n),r.addFeatures(l,this.tileID.canonical,t.patternPositions,n,this.tileTransform))}this.status="done",r(null,{buckets:y(s).filter(e=>!e.isEmpty()),featureIndex:o,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,lineAtlas:c,imageAtlas:t,glyphMap:this.returnDependencies?p:null,iconMap:this.returnDependencies?h:null,glyphPositions:this.returnDependencies?e.positions:null})}}
vendor: 10,541 bytes, line 2
2v.length?i.send("getImages",{icons:v,source:this.source,tileID:this.tileID,type:"patterns"},(e,t)=>{d||(d=e,m=t,x.call(this))},void 0,!1,f):m={},x.call(this)}}function hh(e,t,n){const i=new Xr(t);for(const r of e)r.recalculate(i,n)}class mh{constructor(e){this.entries={},this.scheduler=e}request(e,t,n,i){const r=this.entries[e]=this.entries[e]||{callbacks:[]};if(r.result){const[e,n]=r.result;return this.scheduler?this.scheduler.add(()=>{i(e,n)},t):i(e,n),()=>{}}return r.callbacks.push(i),r.cancel||(r.cancel=n((n,i)=>{r.result=[n,i];for(const e of r.callbacks)this.scheduler?this.scheduler.add(()=>{e(n,i)},t):e(n,i);setTimeout(()=>delete this.entries[e],3e3)})),()=>{r.result||(r.callbacks=r.callbacks.filter(e=>e!==i),r.callbacks.length||(r.cancel(),delete this.entries[e]))}}}function fh(e,t,n){const i=JSON.stringify(e.request);return e.data&&(this.deduped.entries[i]={result:[null,e.data]}),this.deduped.request(i,{type:"parseTile",isSymbolTile:e.isSymbolTile,zoom:e.tileZoom},t=>{const i=Te(e.request,(e,i,r,a)=>{e?t(e):i&&t(null,{vectorTile:n?void 0:new xl.VectorTile(new cu(i)),rawData:i,cacheControl:r,expires:a})});return()=>{i.cancel(),t()}},t)}const gh=Ss(new Float32Array(16));class bh{constructor(e){this.name=e.name,this.wrap=!1,this.requiresDraping=!1,this.supportsWorldCopies=!1,this.supportsTerrain=!1,this.supportsFog=!1,this.supportsFreeCamera=!1,this.zAxisUnit="meters",this.isReprojectedInTileSpace=!0,this.unsupportedLayers=["custom"],this.center=[0,0],this.range=[3.5,7]}project(e,t){return{x:0,y:0,z:0}}unproject(e,t){return new Uo(0,0)}projectTilePoint(e,t,n){return{x:e,y:t,z:0}}locationPoint(e,t){return e._coordinatePoint(e.locationCoordinate(t),!1)}pixelsPerMeter(e,t){return Zo(1,e)*t}farthestPixelDistance(e){return function(e,t){const n=e.fovAboveCenter,i=e.elevation?e.elevation.getMinElevationBelowMSL()*t:0,r=(e._camera.position[2]*e.worldSize-i)/Math.cos(e._pitch),a=Math.sin(n)*r/Math.sin(Math.max(Math.PI/2-e._pitch-n,.01)),o=Math.sin(e._pitch)*a+r;return Math.min(1.01*o,r*(1/e._horizonShift))}(e,e.pixelsPerMeter)}pointCoordinate(e,t,n,i){const a=e.horizonLineFromTop(!1),o=new r(t,Math.max(a,n));return e.rayIntersectionCoordinate(e.pointRayIntersection(o,i))}createInversionMatrix(e,t){return gh}createTileMatrix(e,t,n){let i,r,a;const o=n.canonical,s=Ss(new Float64Array(16));if(this.isReprojectedInTileSpace){const c=Ap(o,this);i=1,r=c.x+n.wrap*c.scale,a=c.y,Ms(s,s,[i/c.scale,i/c.scale,e.pixelsPerMeter/t])}else i=t/e.zoomScale(o.z),r=(o.x+Math.pow(2,o.z)*n.wrap)*i,a=o.y*i;return Is(s,s,[r,a,0]),Ms(s,s,[i/zo,i/zo,1]),s}upVector(e,t,n){return[0,0,1]}upVectorScale(e,t,n){return{metersToTile:1,metersToLabelSpace:1}}}class vh extends bh{constructor(e){super(e),this.wrap=!0,this.supportsWorldCopies=!0,this.supportsTerrain=!0,this.supportsFog=!0,this.supportsFreeCamera=!0,this.isReprojectedInTileSpace=!1,this.unsupportedLayers=[],this.range=null}project(e,t){return{x:qo(e),y:Go(t),z:0}}unproject(e,t){const n=Ho(e),i=Xo(t);return new Uo(n,i)}}class yh extends bh{constructor(e){super(e),this.range=[4,7],this.center=e.center||[-96,37.5];const[t,n]=this.parallels=e.parallels||[29.5,45.5],i=Math.sin(l(t));this.n=(i+Math.sin(l(n)))/2,this.c=1+i*(2*this.n-i),this.r0=Math.sqrt(this.c)/this.n}project(e,t){const{n:n,c:i,r0:r}=this,a=l(e-this.center[0]),o=l(t),s=Math.sqrt(i-2*n*Math.sin(o))/n;return{x:s*Math.sin(a*n),y:s*Math.cos(a*n)-r,z:0}}unproject(e,t){const{n:n,c:i,r0:r}=this,a=r+t;let o=Math.atan2(e,Math.abs(a))*Math.sign(a);a*n<0&&(o-=Math.PI*Math.sign(e)*Math.sign(a));const s=l(this.center[0])*n;o=b(o,-Math.PI-s,Math.PI-s);const c=u(o/n)+this.center[0],d=Math.asin(f((i-(e*e+a*a)*n*n)/(2*n),-1,1)),p=f(u(d),-85.051129,Yo);return new Uo(c,p)}}const xh=1.340264,_h=-.081106,wh=893e-6,Oh=.003796,jh=Math.sqrt(3)/2;class Ch extends bh{project(e,t){t=t/180*Math.PI,e=e/180*Math.PI;const n=Math.asin(jh*Math.sin(t)),i=n*n,r=i*i*i;return{x:.5*(e*Math.cos(n)/(jh*(xh+3*_h*i+r*(7*wh+9*Oh*i)))/Math.PI+.5),y:1-.5*(n*(xh+_h*i+r*(wh+Oh*i))/Math.PI+1),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI;let n=t=(2*(1-t)-1)*Math.PI,i=n*n,r=i*i*i;for(let l,u,d,p=0;p<12&&(u=n*(xh+_h*i+r*(wh+Oh*i))-t,d=xh+3*_h*i+r*(7*wh+9*Oh*i),l=u/d,n=f(n-l,-Math.PI/3,Math.PI/3),i=n*n,r=i*i*i,!(Math.abs(l)<1e-12));++p);const a=jh*e*(xh+3*_h*i+r*(7*wh+9*Oh*i))/Math.cos(n),o=Math.asin(Math.sin(n)/jh),s=f(180*a/Math.PI,-180,180),c=f(180*o/Math.PI,-85.051129,Yo);return new Uo(s,c)}}class Eh extends bh{constructor(e){super(e),this.wrap=!0,this.supportsWorldCopies=!0}project(e,t){return{x:.5+e/360,y:.5-t/360,z:0}}unproject(e,t){const n=360*(e-.5),i=f(360*(.5-t),-85.051129,Yo);return new Uo(n,i)}}const Th=Math.PI/2;function kh(e){return Math.tan((Th+e)/2)}class Sh extends bh{constructor(e){super(e),this.center=e.center||[0,30];const[t,n]=this.parallels=e.parallels||[30,30],i=l(t),r=l(n),a=Math.cos(i);this.n=i===r?Math.sin(i):Math.log(a/Math.cos(r))/Math.log(kh(r)/kh(i)),this.f=a*Math.pow(kh(i),this.n)/this.n}project(e,t){t=l(t),e=l(e-this.center[0]);const n=1e-6,{n:i,f:r}=this;r>0?t<-Th+n&&(t=-Th+n):t>Th-n&&(t=Th-n);const a=r/Math.pow(kh(t),i),o=a*Math.sin(i*e),s=r-a*Math.cos(i*e);return{x:.5*(o/Math.PI+.5),y:1-.5*(s/Math.PI+.5),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI,t=(2*(1-t)-.5)*Math.PI;const{n:n,f:i}=this,r=i-t,a=Math.sign(r),o=Math.sign(n)*Math.sqrt(e*e+r*r);let s=Math.atan2(e,Math.abs(r))*a;r*n<0&&(s-=Math.PI*Math.sign(e)*a);const c=f(u(s/n)+this.center[0],-180,180),l=f(u(2*Math.atan(Math.pow(i/o,1/n))-Th),-85.051129,Yo);return new Uo(c,l)}}const Ah=l(Yo);class Ih extends bh{project(e,t){const n=(t=l(t))*t,i=n*n;return{x:.5*((e=l(e))*(.8707-.131979*n+i*(i*(.003971*n-.001529*i)-.013791))/Math.PI+.5),y:1-.5*(t*(1.007226+n*(.015085+i*(.028874*n-.044475-.005916*i)))/Math.PI+1),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI;let n=t=(2*(1-t)-1)*Math.PI,i=25,r=0,a=n*n;do{a=n*n;const e=a*a;r=(n*(1.007226+a*(.015085+e*(.028874*a-.044475-.005916*e)))-t)/(1.007226+a*(.045255+e*(.259866*a-.311325-.005916*11*e))),n=f(n-r,-Ah,Ah)}while(Math.abs(r)>1e-6&&--i>0);a=n*n;const o=f(u(e/(.8707+a*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979))),-180,180),s=u(n);return new Uo(o,s)}}const Mh=l(Yo);class Lh extends bh{project(e,t){t=l(t),e=l(e);const n=Math.cos(t),i=2/Math.PI,r=Math.acos(n*Math.cos(e/2)),a=Math.sin(r)/r,o=.5*(e*i+2*n*Math.sin(e/2)/a)||0,s=.5*(t+Math.sin(t)/a)||0;return{x:.5*(o/Math.PI+.5),y:1-.5*(s/Math.PI+1),z:0}}unproject(e,t){let n=e=(2*e-.5)*Math.PI,i=t=(2*(1-t)-1)*Math.PI,r=25;const a=1e-6;let o=0,s=0;do{const r=Math.cos(i),a=Math.sin(i),c=2*a*r,l=a*a,u=r*r,d=Math.cos(n/2),p=Math.sin(n/2),h=2*d*p,m=p*p,g=1-u*d*d,b=g?1/g:0,v=g?Math.acos(r*d)*Math.sqrt(1/g):0,y=.5*(2*v*r*p+2*n/Math.PI)-e,x=.5*(v*a+i)-t,_=.5*b*(u*m+v*r*d*l)+1/Math.PI,w=b*(h*c/4-v*a*p),O=.125*b*(c*p-v*a*u*h),j=.5*b*(l*d+v*m*r)+.5,C=w*O-j*_;o=(x*w-y*j)/C,s=(y*O-x*_)/C,n=f(n-o,-Math.PI,Math.PI),i=f(i-s,-Mh,Mh)}while((Math.abs(o)>a||Math.abs(s)>a)&&--r>0);return new Uo(u(n),u(i))}}class Bh extends bh{constructor(e){super(e),this.center=e.center||[0,0],this.parallels=e.parallels||[0,0],this.cosPhi=Math.max(.01,Math.cos(l(this.parallels[0]))),this.scale=1/(2*Math.max(Math.PI*this.cosPhi,1/this.cosPhi)),this.wrap=!0,this.supportsWorldCopies=!0}project(e,t){const{scale:n,cosPhi:i}=this;return{x:l(e)*i*n+.5,y:-Math.sin(l(t))/i*n+.5,z:0}}unproject(e,t){const{scale:n,cosPhi:i}=this,r=-(t-.5)/n,a=f(u((e-.5)/n)/i,-180,180),o=Math.asin(f(r*i,-1,1)),s=f(u(o),-85.051129,Yo);return new Uo(a,s)}}e.ARRAY_TYPE=Ts,e.AUTH_ERR_MSG=ee,e.Aabb=sc,e.Actor=class{constructor(e,t,n){this.target=e,this.parent=t,this.mapId=n,this.callbacks={},this.cancelCallbacks={},E(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.globalScope=R()?e:o,this.scheduler=new ep}send(e,t,n,i,r=!1,a){const o=Math.round(1e18*Math.random()).toString(36).substring(0,10);n&&(n.metadata=a,this.callbacks[o]=n);const s=V(this.globalScope)?void 0:[];return this.target.postMessage({id:o,type:e,hasCallback:!!n,targetMapId:i,mustQueue:r,sourceMapId:this.mapId,data:Qi(t,s)},s),{cancel:()=>{n&&delete this.callbacks[o],this.target.postMessage({id:o,type:"<cancel>",targetMapId:i,sourceMapId:this.mapId})}}}receive(e){const t=e.data,n=t.id;if(n&&(!t.targetMapId||this.mapId===t.targetMapId))if("<cancel>"===t.type){const e=this.cancelCallbacks[n];delete this.cancelCallbacks[n],e&&e.cancel()}else if(t.mustQueue||R()){const e=this.callbacks[n];this.cancelCallbacks[n]=this.scheduler.add(()=>this.processTask(n,t),e&&e.metadata||{type:"message"})}else this.processTask(n,t)}processTask(e,t){if("<response>"===t.type){const n=this.callbacks[e];delete this.callbacks[e],n&&(t.error?n($i(t.error)):n(null,$i(t.data)))}else{const n=V(this.globalScope)?void 0:[],i=t.hasCallback?(t,i)=>{delete this.cancelCallbacks[e],this.target.postMessage({id:e,type:"<response>",sourceMapId:this.mapId,error:t?Qi(t):null,data:Qi(i,n)},n)}:e=>{},r=$i(t.data);if(this.parent[t.type])this.parent[t.type](t.sourceMapId,r,i);else if(this.parent.getWorkerSource){const e=t.type.split(".");this.parent.getWorkerSource(t.sourceMapId,e[0],r.source)[e[1]](r,i)}else i(new Error("Could not find function "+t.type))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}},e.CanonicalTileID=Ep,e.Color=ut,e.ColorMode=nh,e.CullFaceMode=ih,e.DEMData=Qp,e.DataConstantProperty=ia,e.DedupedRequest=mh,e.DepthMode=eh,e.EXTENT=zo,e.Elevation=class{isDataAvailableAtPoint(e){const t=this._source();if(!t||e.y<0||e.y>1)return!1;const n=t.getSource().maxzoom,i=1<<n,r=Math.floor(e.x),a=Math.floor((e.x-r)*i),o=Math.floor(e.y*i),s=this.findDEMTileFor(new kp(n,r,n,a,o));return!(!s||!s.dem)}getAtPointOrZero(e,t=0){return this.getAtPoint(e,t)||0}getAtPoint(e,t,n=!0){null==t&&(t=null);const i=this._source();if(!i)return t;if(e.y<0||e.y>1)return t;const r=i.getSource().maxzoom,a=1<<r,o=Math.floor(e.x),s=e.x-o,c=new kp(r,o,r,Math.floor(s*a),Math.floor(e.y*a)),l=this.findDEMTileFor(c);if(!l||!l.dem)return t;const u=l.dem,d=1<<l.tileID.canonical.z,p=(s*d-l.tileID.canonical.x)*u.dim,h=(e.y*d-l.tileID.canonical.y)*u.dim,m=Math.floor(p),f=Math.floor(h);return(n?this.exaggeration():1)*tn(tn(u.get(m,f),u.get(m,f+1),h-f),tn(u.get(m+1,f),u.get(m+1,f+1),h-f),p-m)}getAtTileOffset(e,t,n){const i=1<<e.canonical.z;return this.getAtPointOrZero(new Jo(e.wrap+(e.canonical.x+t/zo)/i,(e.canonical.y+n/zo)/i))}getAtTileOffsetFunc(e,t,n,i){return r=>{const a=this.getAtTileOffset(e,r.x,r.y),o=i.upVector(e.canonical,r.x,r.y);return Gs(o,o,a*i.upVectorScale(e.canonical,t,n).metersToTile),o}}getForTilePoints(e,t,n,i){const r=sh.create(this,e,i);
2return!!r&&(t.forEach(e=>{e[2]=this.exaggeration()*r.getElevationAt(e[0],e[1],n)}),!0)}getMinMaxForTile(e){const t=this.findDEMTileFor(e);if(!t||!t.dem)return null;const n=t.dem.tree,i=t.tileID,r=1<<e.canonical.z-i.canonical.z;let a=e.canonical.x/r-i.canonical.x,o=e.canonical.y/r-i.canonical.y,s=0;for(let c=0;c<e.canonical.z-i.canonical.z&&!n.leaves[s];c++){a*=2,o*=2;const e=2*Math.floor(o)+Math.floor(a);s=n.childOffsets[s]+e,a%=1,o%=1}return{min:this.exaggeration()*n.minimums[s],max:this.exaggeration()*n.maximums[s]}}getMinElevationBelowMSL(){throw new Error("Pure virtual method called.")}raycast(e,t,n){throw new Error("Pure virtual method called.")}pointCoordinate(e){throw new Error("Pure virtual method called.")}_source(){throw new Error("Pure virtual method called.")}exaggeration(){throw new Error("Pure virtual method called.")}findDEMTileFor(e){throw new Error("Pure virtual method called.")}get visibleDemTiles(){throw new Error("Getter must be implemented in subclass.")}},e.ErrorEvent=ze,e.EvaluationParameters=Xr,e.Event=Pe,e.Evented=Fe,e.FillExtrusionBucket=Tl,e.Frustum=oc,e.GLOBE_RADIUS=op,e.GlobeSharedBuffers=class{constructor(e){this._createGrid(e),this._createPoles(e),this._createAtmosphere(e)}destroy(){this._poleIndexBuffer.destroy(),this._gridBuffer.destroy(),this._gridIndexBuffer.destroy(),this._poleNorthVertexBuffer.destroy(),this._poleSouthVertexBuffer.destroy();for(const e of this._poleSegments)e.destroy();this._gridSegments.destroy(),this.atmosphereVertexBuffer.destroy(),this.atmosphereIndexBuffer.destroy(),this.atmosphereSegments.destroy(),this._wireframeIndexBuffer&&(this._wireframeIndexBuffer.destroy(),this._wireframeSegments.destroy())}_createGrid(e){const t=new fa,n=new Aa,i=65;for(let r=0;r<i;r++)for(let e=0;e<i;e++)t.emplaceBack(e,r);for(let r=0;r<64;r++)for(let e=0;e<64;e++){const t=r*i+e;n.emplaceBack(t+1,t,t+i),n.emplaceBack(t+i,t+i+1,t+1)}this._gridBuffer=e.createVertexBuffer(t,ap.members),this._gridIndexBuffer=e.createIndexBuffer(n,!0),this._gridSegments=Po.simpleSegment(0,0,4225,8192)}_createPoles(e){const t=new Aa;for(let r=0;r<=64;r++)t.emplaceBack(0,r+1,r+2);this._poleIndexBuffer=e.createIndexBuffer(t,!0);const n=new Ba,i=new Ba;this._poleSegments=[];for(let r=0,a=0;r<5;r++){const e=1<<r,t=512*e/Math.PI/2,o=360/e;n.emplaceBack(0,-t,0,0,0,.5,0),i.emplaceBack(0,-t,0,0,0,.5,1);for(let r=0;r<=64;r++){const e=r/64,a=tn(0,o,e),[s,c,l]=fp(Op,jp,a,t);n.emplaceBack(s,c,l,0,0,e,0),i.emplaceBack(s,c,l,0,0,e,1)}this._poleSegments.push(Po.simpleSegment(a,0,66,64)),a+=66}this._poleNorthVertexBuffer=e.createVertexBuffer(n,ip,!1),this._poleSouthVertexBuffer=e.createVertexBuffer(i,ip,!1)}_createAtmosphere(e){const t=new Ra;t.emplaceBack(-1,1,1,0,0),t.emplaceBack(1,1,1,1,0),t.emplaceBack(1,-1,1,1,1),t.emplaceBack(-1,-1,1,0,1);const n=new Aa;n.emplaceBack(0,1,2),n.emplaceBack(2,3,0),this.atmosphereVertexBuffer=e.createVertexBuffer(t,np.members),this.atmosphereIndexBuffer=e.createIndexBuffer(n),this.atmosphereSegments=Po.simpleSegment(0,0,4,2)}getGridBuffers(){return[this._gridBuffer,this._gridIndexBuffer,this._gridSegments]}getPoleBuffers(e){return[this._poleNorthVertexBuffer,this._poleSouthVertexBuffer,this._poleIndexBuffer,this._poleSegments[e]]}getWirefameBuffers(e){if(!this._wireframeSegments){const t=new Pa,n=64,i=n+1;for(let e=0;e<n;e++)for(let r=0;r<n;r++){const n=e*i+r;t.emplaceBack(n,n+1),t.emplaceBack(n,n+i),t.emplaceBack(n,n+i+1)}this._wireframeIndexBuffer=e.createIndexBuffer(t),this._wireframeSegments=Po.simpleSegment(0,0,n*n,t.length)}return[this._gridBuffer,this._wireframeIndexBuffer,this._wireframeSegments]}},e.GlyphManager=sd,e.ImagePosition=Mu,e.LineAtlas=Yd,e.LngLat=Uo,e.LngLatBounds=Fo,e.LocalGlyphMode=od,e.MAX_MERCATOR_LATITUDE=Yo,e.MercatorCoordinate=Jo,e.ONE_EM=24,e.OverscaledTileID=kp,e.Properties=ca,e.RGBAImage=vc,e.Ray=class{constructor(e,t){this.pos=e,this.dir=t}intersectsPlane(e,t,n){const i=Xs(t,this.dir);if(Math.abs(i)<1e-6)return!1;const r=((e[0]-this.pos[0])*t[0]+(e[1]-this.pos[1])*t[1]+(e[2]-this.pos[2])*t[2])/i;return n[0]=this.pos[0]+this.dir[0]*r,n[1]=this.pos[1]+this.dir[1]*r,n[2]=this.pos[2]+this.dir[2]*r,!0}closestPointOnSphere(e,t,n){if(function(e,t){var n=e[0],i=e[1],r=e[2],a=t[0],o=t[1],s=t[2];
vendor: 5,600 bytes, line 2
2return Math.abs(n-a)<=Es*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-o)<=Es*Math.max(1,Math.abs(i),Math.abs(o))&&Math.abs(r-s)<=Es*Math.max(1,Math.abs(r),Math.abs(s))}(this.pos,e)||0===t)return n[0]=n[1]=n[2]=0,!1;const[i,r,a]=this.dir,o=this.pos[0]-e[0],s=this.pos[1]-e[1],c=this.pos[2]-e[2],l=i*i+r*r+a*a,u=2*(o*i+s*r+c*a),d=u*u-4*l*(o*o+s*s+c*c-t*t);if(d<0){const e=Math.max(-u/2,0),l=o+i*e,d=s+r*e,p=c+a*e,h=Math.hypot(l,d,p);return n[0]=l*t/h,n[1]=d*t/h,n[2]=p*t/h,!1}{const e=(-u-Math.sqrt(d))/(2*l);if(e<0){const e=Math.hypot(o,s,c);return n[0]=o*t/e,n[1]=s*t/e,n[2]=c*t/e,!1}return n[0]=o+i*e,n[1]=s+r*e,n[2]=c+a*e,!0}}},e.RequestManager=class{constructor(e,t,n){this._transformRequestFn=e,this._customAccessToken=t,this._silenceAuthErrors=!!n,this._createSkuToken()}_createSkuToken(){const e=function(){let e="";for(let t=0;t<10;t++)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",$,e].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt}_isSkuTokenExpired(){return Date.now()>this._skuTokenExpiresAt}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}normalizeStyleURL(e,t){if(!te(e))return e;const n=re(e);return n.path="/styles/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)}normalizeGlyphsURL(e,t){if(!te(e))return e;const n=re(e);return n.path="/fonts/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)}normalizeSourceURL(e,t){if(!te(e))return e;const n=re(e);return n.path=`/v4/${n.authority}.json`,n.params.push("secure"),this._makeAPIURL(n,this._customAccessToken||t)}normalizeSpriteURL(e,t,n,i){const r=re(e);return te(e)?(r.path=`/styles/v1${r.path}/sprite${t}${n}`,this._makeAPIURL(r,this._customAccessToken||i)):(r.path+=`${t}${n}`,ae(r))}normalizeTileURL(e,t,n){if(this._isSkuTokenExpired()&&this._createSkuToken(),e&&!te(e))return e;const i=re(e);i.path=i.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${t||n&&"raster"!==i.authority&&512===n?"@2x":""}${H.supported?".webp":"$1"}`),"raster"===i.authority?i.path=`/${Z.RASTER_URL_PREFIX}${i.path}`:(i.path=i.path.replace(/^.+\/v4\//,"/"),i.path=`/${Z.TILE_URL_VERSION}${i.path}`);const r=this._customAccessToken||function(e){for(const t of e){const e=t.match(/^access_token=(.*)$/);if(e)return e[1]}return null}(i.params)||Z.ACCESS_TOKEN;return Z.REQUIRE_ACCESS_TOKEN&&r&&this._skuToken&&i.params.push("sku="+this._skuToken),this._makeAPIURL(i,r)}canonicalizeTileURL(e,t){const n=re(e);if(!n.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!n.path.match(/\.[\w]+$/))return e;let i="mapbox://";n.path.match(/^\/raster\/v1\//)?i+="raster/"+n.path.replace(`/${Z.RASTER_URL_PREFIX}/`,""):i+="tiles/"+n.path.replace(`/${Z.TILE_URL_VERSION}/`,"");let r=n.params;return t&&(r=r.filter(e=>!e.match(/^access_token=/))),r.length&&(i+="?"+r.join("&")),i}canonicalizeTileset(e,t){const n=!!t&&te(t),i=[];for(const r of e.tiles||[])ne(r)?i.push(this.canonicalizeTileURL(r,n)):i.push(r);return i}_makeAPIURL(e,t){const n="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",i=re(Z.API_URL);if(e.protocol=i.protocol,e.authority=i.authority,"http"===e.protocol){const t=e.params.indexOf("secure");t>=0&&e.params.splice(t,1)}if("/"!==i.path&&(e.path=`${i.path}${e.path}`),!Z.REQUIRE_ACCESS_TOKEN)return ae(e);if(t=t||Z.ACCESS_TOKEN,!this._silenceAuthErrors){if(!t)throw new Error("An API access token is required to use Mapbox GL. "+n);if("s"===t[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+n)}return e.params=e.params.filter(e=>-1===e.indexOf("access_token")),e.params.push("access_token="+(t||"")),ae(e)}},e.ResourceType=Oe,e.SegmentVector=Po,e.SourceCache=rh,e.StencilMode=th,e.StructArrayLayout1ui2=za,e.StructArrayLayout2f1f2i16=ka,e.StructArrayLayout2i4=fa,e.StructArrayLayout2ui4=Pa,e.StructArrayLayout3f12=ja,e.StructArrayLayout3ui6=Aa,e.StructArrayLayout4i8=ba,e.Texture=Kd,e.Tile=Up,e.Transitionable=Jr,e.Uniform1f=mo,e.Uniform1i=class extends ho{constructor(e,t){super(e,t),this.current=0}set(e){this.current!==e&&(this.current=e,this.gl.uniform1i(this.location,e))}},e.Uniform2f=class extends ho{constructor(e,t){super(e,t),this.current=[0,0]}set(e){e[0]===this.current[0]&&e[1]===this.current[1]||(this.current=e,this.gl.uniform2f(this.location,e[0],e[1]))}},e.Uniform3f=class extends ho{constructor(e,t){super(e,t),this.current=[0,0,0]}set(e){e[0]===this.current[0]&&e[1]===this.current[1]&&e[2]===this.current[2]||(this.current=e,this.gl.uniform3f(this.location,e[0],e[1],e[2]))}},e.Uniform4f=fo,e.UniformColor=go,e.UniformMatrix2f=class extends ho{constructor(e,t){super(e,t),this.current=yo}set(e){for(let t=0;t<4;t++)if(e[t]!==this.current[t]){this.current=e,this.gl.uniformMatrix2fv(this.location,!1,e);break}}},e.UniformMatrix3f=class extends ho{constructor(e,t){super(e,t),this.current=vo}set(e){for(let t=0;t<9;t++)if(e[t]!==this.current[t]){this.current=e,this.gl.uniformMatrix3fv(this.location,!1,e);break}}},e.UniformMatrix4f=class extends ho{constructor(e,t){super(e,t),this.current=bo}set(e){if(e[12]!==this.current[12]||e[0]!==this.current[0])return this.current=e,void this.gl.uniformMatrix4fv(this.location,!1,e);for(let t=1;t<16;t++)if(e[t]!==this.current[t]){this.current=e,this.gl.uniformMatrix4fv(this.location,!1,e);break}}},e.UnwrappedTileID=Tp,e.ValidationError=li,e.VectorTileWorkerSource=class extends Fe{constructor(e,t,n,i,r){super(),this.actor=e,this.layerIndex=t,this.availableImages=n,this.loadVectorData=r||fh,this.loading={},this.loaded={}
2,this.deduped=new mh(e.scheduler),this.isSpriteLoaded=i,this.scheduler=e.scheduler}loadTile(e,t){const n=e.uid,i=e&&e.request,r=i&&i.collectResourceTiming,a=this.loading[n]=new ph(e);a.abort=this.loadVectorData(e,(o,s)=>{const c=!this.loading[n];if(delete this.loading[n],c||o||!s)return a.status="done",c||(this.loaded[n]=a),t(o);const l=s.rawData,u={};s.expires&&(u.expires=s.expires),s.cacheControl&&(u.cacheControl=s.cacheControl),a.vectorTile=s.vectorTile||new xl.VectorTile(new cu(l));const d=()=>{a.parse(a.vectorTile,this.layerIndex,this.availableImages,this.actor,(e,n)=>{if(e||!n)return t(e);const a={};if(r){const e=$d(i);e.length>0&&(a.resourceTiming=JSON.parse(JSON.stringify(e)))}t(null,x({rawTileData:l.slice(0)},n,u,a))})};this.isSpriteLoaded?d():this.once("isSpriteLoaded",()=>{this.scheduler?this.scheduler.add(d,{type:"parseTile",isSymbolTile:e.isSymbolTile,zoom:e.tileZoom}):d()}),this.loaded=this.loaded||{},this.loaded[n]=a})}reloadTile(e,t){const n=this.loaded,i=e.uid,r=this;if(n&&n[i]){const a=n[i];a.showCollisionBoxes=e.showCollisionBoxes,a.enableTerrain=!!e.enableTerrain,a.projection=e.projection,a.tileTransform=Ap(e.tileID.canonical,e.projection);const o=(e,n)=>{const i=a.reloadCallback;i&&(delete a.reloadCallback,a.parse(a.vectorTile,r.layerIndex,this.availableImages,r.actor,i)),t(e,n)};"parsing"===a.status?a.reloadCallback=o:"done"===a.status&&(a.vectorTile?a.parse(a.vectorTile,this.layerIndex,this.availableImages,this.actor,o):o())}}abortTile(e,t){const n=e.uid,i=this.loading[n];i&&(i.abort&&i.abort(),delete this.loading[n]),t()}removeTile(e,t){const n=this.loaded,i=e.uid;n&&n[i]&&delete n[i],t()}},e.WritingMode=Bu,e.ZoomHistory=er,e.add=Ns,e.addDynamicAttributes=Bd,e.adjoint=function(e,t){var n=t[0],i=t[1],r=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8];return e[0]=o*u-s*l,e[1]=r*l-i*u,e[2]=i*s-r*o,e[3]=s*c-a*u,e[4]=n*u-r*c,e[5]=r*a-n*s,e[6]=a*l-o*c,e[7]=i*c-n*l,e[8]=n*o-i*a,e},e.asyncAll=v,e.bezier=h,e.bindAll=E,e.boundsAttributes=Fp,e.bufferConvexPolygon=function(e,t){const n=[];for(let i=0;i<e.length;i++){const r=b(i-1,-1,e.length-1),a=b(i+1,-1,e.length-1),o=e[i],s=e[a],c=e[r].sub(o).unit(),l=s.sub(o).unit(),u=l.angleWithSep(c.x,c.y),d=c.add(l).unit().mult(-1*t/Math.sin(u/2));n.push(o.add(d))}return n},e.cacheEntryPossiblyAdded=function(e){we++,we>ye&&(e.getActor().send("enforceCacheSizeLimit",ve),we=0)},e.calculateGlobeLabelMatrix=function(e,t){const{lng:n,lat:i}=e._center,r=xp(0,0,e.worldSize/e._projectionScaler,n,i);return As(r,r,function(e){const t=Ss(new Float64Array(16)),n=1/vp(e);return Is(t,t,e.min),Ms(t,t,[n,n,n]),t}(pp(t)))},e.calculateGlobeMatrix=_p,e.calculateGlobeMercatorMatrix=function(e){const t=e.worldSize,n=e.point,i=Zo(1,e.center.lat)*t,r=e.pixelsPerMeter,a=t/(i/e.pixelsPerMeter),o=Ss(new Float64Array(16));return Is(o,o,[n.x,n.y,0]),Ms(o,o,[a,a,r]),Float32Array.from(o)},e.circumferenceAtLatitude=Wo,e.clamp=f,e.clearTileCache=function(e){const t=o.caches.delete(fe);e&&t.catch(e).then(()=>e())},e.clipLine=nd,e.clone=function(e){var t=new Ts(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.clone$1=A,e.collisionCircleLayout=Yl,e.config=Z,e.conjugate=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e},e.create=function(){var e=new Ts(16);return Ts!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e},e.create$1=ks,e.createExpression=ri,e.createLayout=ha,e.createStyleLayer=function(e){return"custom"===e.type?new Gd(e):new Xd[e.type](e)},e.cross=Ks,e.degToRad=l,e.div=function(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e},e.dot=Xs,e.earthRadius=No,e.ease=m,e.easeCubicInOut=p,e.emitValidationErrors=Gi,e.endsWith=T,e.enforceCacheSizeLimit=function(e){xe(),ge&&ge.then(t=>{t.keys().then(n=>{for(let i=0;i<n.length-e;i++)t.delete(n[i])})})},e.evaluateSizeForFeature=$l,e.evaluateSizeForZoom=eu,e.evaluateVariableOffset=_d,e.evented=qr,e.exactEquals=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},e.exactEquals$1=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},e.exported=q,e.exported$1=H,e.extend=x,e.extend$1=Ue,e.filterObject=S,e.fromMat4=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e},e.fromQuat=function(e,t){var n=t[0],i=t[1],r=t[2],a=t[3],o=n+n,s=i+i,c=r+r,l=n*o,u=i*o,d=i*s,p=r*o,h=r*s,m=r*c,f=
vendor: 39,513 bytes, line 2
2a*o,g=a*s,b=a*c;return e[0]=1-d-m,e[1]=u+b,e[2]=p-g,e[3]=0,e[4]=u-b,e[5]=1-l-m,e[6]=h+f,e[7]=0,e[8]=p+g,e[9]=h-f,e[10]=1-l-d,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},e.fromRotation=function(e,t){var n=Math.sin(t),i=Math.cos(t);return e[0]=i,e[1]=n,e[2]=0,e[3]=-n,e[4]=i,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},e.fromScaling=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},e.furthestTileCorner=function(e){const t=Math.round((e+45+360)%360/90)%4;return d[t]},e.getAABBPointSquareDist=function(e,t,n){let i=0;for(let r=0;r<2;++r){const a=n?n[r]:0;e[r]>a&&(i+=(e[r]-a)*(e[r]-a)),t[r]<a&&(i+=(a-t[r])*(a-t[r]))}return i},e.getAnchorAlignment=Gu,e.getAnchorJustification=Od,e.getBounds=function(e){let t=1/0,n=1/0,i=-1/0,a=-1/0;for(const r of e)t=Math.min(t,r.x),n=Math.min(n,r.y),i=Math.max(i,r.x),a=Math.max(a,r.y);return{min:new r(t,n),max:new r(i,a)}},e.getColumn=function(e,t){return[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]]},e.getGridMatrix=function(e,t){const[n,i]=t,r=.015625;return[0,(i[1]-n[1])*r,1<<e.z,(i[0]-n[0])*r,0,e.y,n[0],n[1],r]},e.getImage=Be,e.getJSON=function(e,t){return Ee(x(e,{type:"json"}),t)},e.getMapSessionAPI=he,e.getPerformanceMeasurement=$d,e.getProjection=function(e){const t=e.parallels,n=!!t&&Math.abs(t[0]+t[1])<.01;switch(e.name){case"mercator":return new vh(e);case"equirectangular":return new Eh(e);case"naturalEarth":return new Ih(e);case"equalEarth":return new Ch(e);case"winkelTripel":return new Lh(e);case"albers":return n?new Bh(e):new yh(e);case"lambertConformalConic":return n?new Bh(e):new Sh(e)}throw new Error("Invalid projection name: "+e.name)},e.getRTLTextPluginStatus=Gr,e.getReferrer=Ce,e.getTilePoint=function(e,{x:t,y:n},i=0){return new r(((t-i)*e.scale-e.x)*zo,(n*e.scale-e.y)*zo)},e.getTileVec3=function(e,t,n=0){return Fs(((t.x-n)*e.scale-e.x)*zo,(t.y*e.scale-e.y)*zo,Ko(t.z,t.y))},e.getVideo=function(e,t){const n=o.document.createElement("video");n.muted=!0,n.onloadstart=function(){t(null,n)};for(let i=0;i<e.length;i++){const t=o.document.createElement("source");Ae(e[i])||(n.crossOrigin="Anonymous"),t.src=e[i],n.appendChild(t)}return{cancel:()=>{}}},e.globeECEFOrigin=function(e,t){const n=[0,0,0];return Ys(n,n,yp(pp(t.canonical))),Ys(n,n,e),n},e.globePixelsToTileUnits=function(e,t){return zo/(512*Math.pow(2,e))*vp(pp(t))},e.globePoleMatrixForTile=function(e,t,n){const i=Ss(new Float64Array(16)),r=1<<e,a=360*(t/r-.5),o=n.point,s=n.worldSize/(n.tileSize*r);return Is(i,i,[o.x,o.y,-n.worldSize/Math.PI/2]),Ms(i,i,[s,s,s]),Ls(i,i,l(-n._center.lat)),Bs(i,i,l(-n._center.lng+a)),Float32Array.from(i)},e.globeTileLatLngCorners=mp,e.globeToMercatorTransition=function(e){return g(5,6,e)},e.identity=Ss,e.identity$1=rc,e.invert=function(e,t){var n=t[0],i=t[1],r=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],d=t[9],p=t[10],h=t[11],m=t[12],f=t[13],g=t[14],b=t[15],v=n*s-i*o,y=n*c-r*o,x=n*l-a*o,_=i*c-r*s,w=i*l-a*s,O=r*l-a*c,j=u*f-d*m,C=u*g-p*m,E=u*b-h*m,T=d*g-p*f,k=d*b-h*f,S=p*b-h*g,A=v*S-y*k+x*T+_*E-w*C+O*j;return A?(e[0]=(s*S-c*k+l*T)*(A=1/A),e[1]=(r*k-i*S-a*T)*A,e[2]=(f*O-g*w+b*_)*A,e[3]=(p*w-d*O-h*_)*A,e[4]=(c*E-o*S-l*C)*A,e[5]=(n*S-r*E+a*C)*A,e[6]=(g*x-m*O-b*y)*A,e[7]=(u*O-p*x+h*y)*A,e[8]=(o*k-s*E+l*j)*A,e[9]=(i*E-n*k-a*j)*A,e[10]=(m*w-f*x+b*v)*A,e[11]=(d*x-u*w-h*v)*A,e[12]=(s*C-o*T-c*j)*A,e[13]=(n*T-i*C+r*j)*A,e[14]=(f*y-m*_-g*v)*A,e[15]=(u*_-d*y+p*v)*A,e):null},e.isMapAuthenticated=function(e){return me.has(e)},e.isMapboxURL=te,e.isSafariWithAntialiasingBug=function(e){const t=e.navigator?e.navigator.userAgent:null;return!!V(e)&&t&&(t.match("Version/15.4")||t.match("Version/15.5")||t.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/))},e.latFromMercatorY=Xo,e.len=tc,e.length=zs,e.length$1=function(e){return Math.hypot(e[0],e[1],e[2],e[3])},e.loadVectorTile=fh,e.makeRequest=Ee,e.mercatorXfromLng=qo,e.mercatorYfromLat=Go,e.mercatorZfromAltitude=Zo,e.mul=Rs,e.mul$1=ec,e.multiply=function(e,t,n){var i=t[0],r=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],d=t[8],p=n[0],h=n[1],m=n[2],f=n[3],g=n[4],b=n[5],v=n[6],y=n[7],x=n[8];return e[0]=p*i+h*o+m*l,e[1]=p*r+h*s+m*u,e[2]=p*a+h*c+m*d,e[3]=f*i+g*o+b*l,e[4]=f*r+g*s+b*u,e[5]=f*a+g*c+b*d,e[6]=v*i+y*o+x*l,e[7]=v*r+y*s+x*u,e[8]=v*a+y*c+x*d,e},e.multiply$1=As,e.multiply$2=Vs,e.nextPowerOfTwo=j,e.normalize=Hs,e.normalize$1=function(e,t){var n=t[0],i=t[1],r=t[2],a=t[3],o=n*n+i*i+r*r+a*a;return o>0&&(o=1/Math.sqrt(o)),e[0]=n*o,e[1]=i*o,e[2]=r*o,e[3]=a*o,e},e.number=tn,e.ortho=function(e,t,n,i,r,a,o){var s=1/(t-n),c=1/(i-r),l=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*c,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*l,e[11]=0,e[12]=(t+n)*s,e[13]=(r+i)*c,e[14]=(o+a)*l,e[15]=1,e},e.pbf=cu,e.perspective=function(e,t,n,i,r){var a,o=1/Math.tan(t/2);return e[0]=o/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=r&&r!==1/0?(e[10]=(r+i)*(a=1/(i-r)),e[14]=2*r*i*a):(e[10]=-1,e[14]=-2*i),e},e.pick=function(e,t){const n={};for(let i=0;i<t.length;i++){const r=t[i];r in e&&(n[r]=e[r])}return n},e.plugin=Hr,e.pointGeometry=r,e.polygonIntersectsBox=vs,e.polygonIntersectsPolygon=cs,e.polygonizeBounds=function(e,t,n=0,i=!0){const a=new r(n,n),o=e.sub(a),s=t.add(a),c=[o,new r(s.x,o.y),s,new r(o.x,s.y)];return i&&c.push(o),c},e.posAttributes=ap,e.postMapLoadEvent=de,e.postTurnstileEvent=le,e.potpack=Iu,e.prevPowerOfTwo=function(e){return e<=1?1:Math.pow(2,Math.floor(Math.log(e)/Math.LN2))},e.radToDeg=u,e.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],e.registerForPluginStateChange=function(e){return e({pluginStatus:Nr,pluginURL:Ur}),qr.on("pluginStateChange",e),e},e.removeAuthState=function(e){me.delete(e)},e.renderColorRamp=xc,e.rotateX=Ls,e.rotateX$1=ac,e.rotateY=Bs,e.rotateZ=function(e,t,n){var i=Math.sin(n),r=Math.cos(n),a=t[0],o=t[1],s=t[2],c=t[3],l=t[4],u=t[5],d=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=a*r+l*i,e[1]=o*r+u*i,e[2]=s*r+d*i,e[3]=c*r+p*i,e[4]=l*r-a*i,e[5]=u*r-o*i,e[6]=d*r-s*i,e[7]=p*r-c*i,e},e.rotateZ$1=function(e,t,n){n*=.5;var i=t[0],r=t[1],a=t[2],o=t[3],s=Math.sin(n),c=Math.cos(n);return e[0]=i*c+r*s,e[1]=r*c-i*s,e[2]=a*c+o*s,e[3]=o*c-a*s,e},e.scale=Ms,e.scale$1=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e},e.scale$2=Gs,e.scaleAndAdd=Zs,e.setCacheLimits=function(e,t){ve=e,ye=t},e.setColumn=function(e,t,n){e[4*t+0]=n[0],e[4*t+1]=n[1],e[4*t+2]=n[2],e[4*t+3]=n[3]},e.setRTLTextPlugin=function(e,t,n=!1){if(Nr===Dr||Nr===Pr||Nr===zr)throw new Error("setRTLTextPlugin cannot be called multiple times.");Ur=q.resolveURL(e),Nr=Dr,Fr=t,Wr(),n||Zr()},e.smoothstep=g,e.spec=Ne,e.storeAuthState=function(e,t){t?me.add(e):me.delete(e)},e.sub=$s,e.subtract=Us,e.symbolSize=tu,e.tileAABB=function(e,t,n,i,r,a,o,s,c){if("globe"===c.name)return hp(e,t,new Ep(n,i,r));const l=Ap({z:n,x:i,y:r},c);return new sc([(a+l.x/l.scale)*t,t*(l.y/l.scale),o],[(a+l.x2/l.scale)*t,t*(l.y2/l.scale),s])},e.tileTransform=Ap,e.transformMat3=function(e,t,n){var i=t[0],r=t[1],a=t[2];return e[0]=i*n[0]+r*n[3]+a*n[6],e[1]=i*n[1]+r*n[4]+a*n[7],e[2]=i*n[2]+r*n[5]+a*n[8],e},e.transformMat4=Ys,e.transformMat4$1=nc,e.transformQuat=Js,e.translate=Is,e.transpose=function(e,t){if(e===t){var n=t[1],i=t[2],r=t[5];e[1]=t[3],e[2]=t[6],e[3]=n,e[5]=t[7],e[6]=i,e[7]=r}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e},e.triggerPluginCompletionEvent=Vr,e.uniqueId=w,e.validateCustomStyleLayer=function(e){const t=[],n=e.id;return void 0===n&&t.push({message:`layers.${n}: missing required property "id"`}),void 0===e.render&&t.push({message:`layers.${n}: missing required method "render"`}),e.renderingMode&&"2d"!==e.renderingMode&&"3d"!==e.renderingMode&&t.push({message:`layers.${n}: property "renderingMode" must be either "2d" or "3d"`}),t},e.validateFilter=e=>qi(Ti(e)),e.validateFog=e=>qi(Pi(e)),e.validateLayer=e=>qi(Ii(e)),e.validateLight=e=>qi(Ri(e)),e.validateSource=e=>qi(Bi(e)),e.validateStyle=Ui,e.validateTerrain=e=>qi(Di(e)),e.values=y,e.vectorTile=xl,e.version=t,e.warnOnce=M,e.window=o,e.wrap=b})),i(0,(function(e){function t(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return JSON.stringify(e);if(Array.isArray(e)){let n="[";for(const i of e)n+=t(i)+",";return n+"]"}let n="{";for(const i of Object.keys(e).sort())n+=`${i}:${t(e[i])},`;return n+"}"}function n(n){let i="";for(const r of e.refProperties)i+="/"+t(n[r]);return i}class i{constructor(e){this.keyCache={},e&&this.replace(e)}replace(e){this._layerConfigs={},this._layers={},this.update(e,[])}update(t,i){for(const n of t)this._layerConfigs[n.id]=n,(this._layers[n.id]=e.createStyleLayer(n)).compileFilter(),this.keyCache[n.id]&&delete this.keyCache[n.id];for(const e of i)delete this.keyCache[e],delete this._layerConfigs[e],delete this._layers[e];this.familiesBySource={};const r=function(e,t){const i={};for(let a=0;a<e.length;a++){const r=t&&t[e[a].id]||n(e[a]);t&&(t[e[a].id]=r);let o=i[r];o||(o=i[r]=[]),o.push(e[a])}const r=[];for(const n in i)r.push(i[n]);return r}(e.values(this._layerConfigs),this.keyCache);for(const e of r){const t=e.map(e=>this._layers[e.id]),n=t[0];if("none"===n.visibility)continue;const i=n.source||"";let r=this.familiesBySource[i];r||(r=this.familiesBySource[i]={});const a=n.sourceLayer||"_geojsonTileLayer";let o=r[a];o||(o=r[a]=[]),o.push(t)}}}class r{loadTile(t,n){const{uid:i,encoding:r,rawImageData:a,padding:o,buildQuadTree:s}=t,c=e.window.ImageBitmap&&a instanceof e.window.ImageBitmap?this.getImageData(a,o):a;n(null,new e.DEMData(i,c,r,o<1,s))}getImageData(e,t){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);const n=this.offscreenCanvasContext.getImageData(-t,-t,e.width+2*t,e.height+2*t);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),n}}var a=function e(t,n){var i,r=t&&t.type;if("FeatureCollection"===r)for(i=0;i<t.features.length;i++)e(t.features[i],n);else if("GeometryCollection"===r)for(i=0;i<t.geometries.length;i++)e(t.geometries[i],n);else if("Feature"===r)e(t.geometry,n);else if("Polygon"===r)o(t.coordinates,n);else if("MultiPolygon"===r)for(i=0;i<t.coordinates.length;i++)o(t.coordinates[i],n);return t};function o(e,t){if(0!==e.length){s(e[0],t);for(var n=1;n<e.length;n++)s(e[n],!t)}}function s(e,t){for(var n=0,i=0,r=0,a=e.length,o=a-1;r<a;o=r++){var s=(e[r][0]-e[o][0])*(e[o][1]+e[r][1]),c=n+s;i+=Math.abs(n)>=Math.abs(s)?n-c+s:s-c+n,n=c}n+i>=0!=!!t&&e.reverse()}const c=e.vectorTile.VectorTileFeature.prototype.toGeoJSON;class l{constructor(t){this._feature=t,this.extent=e.EXTENT,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=parseInt(t.id,10))}loadGeometry(){if(1===this._feature.type){const t=[];for(const n of this._feature.geometry)t.push([new e.pointGeometry(n[0],n[1])]);return t}{const t=[];for(const n of this._feature.geometry){const i=[];for(const t of n)i.push(new e.pointGeometry(t[0],t[1]));t.push(i)}return t}}toGeoJSON(e,t,n){return c.call(this,e,t,n)}}class u{constructor(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.EXTENT,this.length=t.length,this._features=t}feature(e){return new l(this._features[e])}}var d=e.vectorTile.VectorTileFeature,p=h;function h(e,t){this.options=t||{},this.features=e,this.length=e.length}function m(e,t){this.id="number"==typeof e.id?e.id:void 0,this.type=e.type,this.rawGeometry=1===e.type?[e.geometry]:e.geometry,this.properties=e.tags,this.extent=t||4096}h.prototype.feature=function(e){return new m(this.features[e],this.options.extent)},m.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var n=0;n<t.length;n++){for(var i=t[n],r=[],a=0;a<i.length;a++)r.push(new e.pointGeometry(i[a][0],i[a][1]));this.geometry.push(r)}return this.geometry},m.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var e=this.geometry,t=1/0,n=-1/0,i=1/0,r=-1/0,a=0;a<e.length;a++)for(var o=e[a],s=0;s<o.length;s++){var c=o[s];t=Math.min(t,c.x),n=Math.max(n,c.x),i=Math.min(i,c.y),r=Math.max(r,c.y)}return[t,i,n,r]},m.prototype.toGeoJSON=d.prototype.toGeoJSON;var f=b,g=p;function b(t){var n=new e.pbf;return function(e,t){for(var n in e.layers)t.writeMessage(3,v,e.layers[n])}(t,n),n.finish()}function v(e,t){var n;t.writeVarintField(15,e.version||1),t.writeStringField(1,e.name||""),t.writeVarintField(5,e.extent||4096);var i={keys:[],values:[],keycache:{},valuecache:{}};for(n=0;n<e.length;n++)i.feature=e.feature(n),t.writeMessage(2,y,i);var r=i.keys;for(n=0;n<r.length;n++)t.writeStringField(3,r[n]);var a=i.values;for(n=0;n<a.length;n++)t.writeMessage(4,j,a[n])}function y(e,t){var n=e.feature;void 0!==n.id&&t.writeVarintField(1,n.id),t.writeMessage(2,x,e),t.writeVarintField(3,n.type),t.writeMessage(4,O,n)}function x(e,t){var n=e.feature,i=e.keys,r=e.values,a=e.keycache,o=e.valuecache;for(var s in n.properties){var c=n.properties[s],l=a[s];if(null!==c){void 0===l&&(i.push(s),a[s]=l=i.length-1),t.writeVarint(l);var u=typeof c;"string"!==u&&"boolean"!==u&&"number"!==u&&(c=JSON.stringify(c));var d=u+":"+c,p=o[d];void 0===p&&(r.push(c),o[d]=p=r.length-1),t.writeVarint(p)}}}function _(e,t){return(t<<3)+(7&e)}function w(e){return e<<1^e>>31}function O(e,t){for(var n=e.loadGeometry(),i=e.type,r=0,a=0,o=n.length,s=0;s<o;s++){var c=n[s],l=1;1===i&&(l=c.length),t.writeVarint(_(1,l));for(var u=3===i?c.length-1:c.length,d=0;d<u;d++){1===d&&1!==i&&t.writeVarint(_(2,u-1));var p=c[d].x-r,h=c[d].y-a;t.writeVarint(w(p)),t.writeVarint(w(h)),r+=p,a+=h}3===i&&t.writeVarint(_(7,1))}}function j(e,t){var n=typeof e;"string"===n?t.writeStringField(1,e):"boolean"===n?t.writeBooleanField(7,e):"number"===n&&(e%1!=0?t.writeDoubleField(3,e):e<0?t.writeSVarintField(6,e):t.writeVarintField(5,e))}function C(e,t,n,i,r,a){if(r-i<=n)return;const o=i+r>>1;(function e(t,n,i,r,a,o){for(;a>r;){if(a-r>600){const s=a-r+1,c=i-r+1,l=Math.log(s),u=.5*Math.exp(2*l/3),d=.5*Math.sqrt(l*u*(s-u)/s)*(c-s/2<0?-1:1);e(t,n,i,Math.max(r,Math.floor(i-c*u/s+d)),Math.min(a,Math.floor(i+(s-c)*u/s+d)),o)}const s=n[2*i+o];let c=r,l=a;for(E(t,n,r,i),n[2*a+o]>s&&E(t,n,r,a);c<l;){for(E(t,n,c,l),c++,l--;n[2*c+o]<s;)c++;for(;n[2*l+o]>s;)l--}n[2*r+o]===s?E(t,n,r,l):(l++,E(t,n,l,a)),l<=i&&(r=l+1),i<=l&&(a=l-1)}})(e,t,o,i,r,a%2),C(e,t,n,i,o-1,a+1),C(e,t,n,o+1,r,a+1)}function E(e,t,n,i){T(e,n,i),T(t,2*n,2*i),T(t,2*n+1,2*i+1)}function T(e,t,n){const i=e[t];e[t]=e[n],e[n]=i}function k(e,t,n,i){const r=e-n,a=t-i;return r*r+a*a}f.fromVectorTileJs=b,f.fromGeojsonVt=function(e,t){t=t||{};var n={};for(var i in e)n[i]=new p(e[i].features,t),n[i].name=i,n[i].version=t.version,n[i].extent=t.extent;return b({layers:n})},f.GeoJSONWrapper=g;const S=e=>e[0],A=e=>e[1];class I{constructor(e,t=S,n=A,i=64,r=Float64Array){this.nodeSize=i,this.points=e;const a=e.length<65536?Uint16Array:Uint32Array,o=this.ids=new a(e.length),s=this.coords=new r(2*e.length);for(let c=0;c<e.length;c++)o[c]=c,s[2*c]=t(e[c]),s[2*c+1]=n(e[c]);C(o,s,i,0,o.length-1,0)}range(e,t,n,i){return function(e,t,n,i,r,a,o){const s=[0,e.length-1,0],c=[];let l,u;for(;s.length;){const d=s.pop(),p=s.pop(),h=s.pop();if(p-h<=o){for(let o=h;o<=p;o++)l=t[2*o],u=t[2*o+1],l>=n&&l<=r&&u>=i&&u<=a&&c.push(e[o]);continue}const m=Math.floor((h+p)/2);l=t[2*m],u=t[2*m+1],l>=n&&l<=r&&u>=i&&u<=a&&c.push(e[m]);const f=(d+1)%2;(0===d?n<=l:i<=u)&&(s.push(h),s.push(m-1),s.push(f)),(0===d?r>=l:a>=u)&&(s.push(m+1),s.push(p),s.push(f))}return c}(this.ids,this.coords,e,t,n,i,this.nodeSize)}within(e,t,n){return function(e,t,n,i,r,a){const o=[0,e.length-1,0],s=[],c=r*r;for(;o.length;){const l=o.pop(),u=o.pop(),d=o.pop();if(u-d<=a){for(let r=d;r<=u;r++)k(t[2*r],t[2*r+1],n,i)<=c&&s.push(e[r]);continue}const p=Math.floor((d+u)/2),h=t[2*p],m=t[2*p+1];k(h,m,n,i)<=c&&s.push(e[p]);const f=(l+1)%2;(0===l?n-r<=h:i-r<=m)&&(o.push(d),o.push(p-1),o.push(f)),(0===l?n+r>=h:i+r>=m)&&(o.push(p+1),o.push(u),o.push(f))}return s}(this.ids,this.coords,e,t,n,this.nodeSize)}}const M={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},L=Math.fround||(B=new Float32Array(1),e=>(B[0]=+e,B[0]));var B;class R{constructor(e){this.options=W(Object.create(M),e),this.trees=new Array(this.options.maxZoom+1)}load(e){const{log:t,minZoom:n,maxZoom:i,nodeSize:r}=this.options;t&&console.time("total time");const a=`prepare ${e.length} points`;t&&console.time(a),this.points=e;let o=[];for(let s=0;s<e.length;s++)e[s].geometry&&o.push(P(e[s],s));this.trees[i+1]=new I(o,q,G,r,Float32Array),t&&console.timeEnd(a);for(let s=i;s>=n;s--){const e=+Date.now();o=this._cluster(o,s),this.trees[s]=new I(o,q,G,r,Float32Array),t&&console.log("z%d: %d clusters in %dms",s,o.length,+Date.now()-e)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let n=((e[0]+180)%360+360)%360-180;const i=Math.max(-90,Math.min(90,e[1]));let r=180===e[2]?180:((e[2]+180)%360+360)%360-180;const a=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,r=180;else if(n>r){const e=this.getClusters([n,i,180,a],t),o=this.getClusters([-180,i,r,a],t);return e.concat(o)}const o=this.trees[this._limitZoom(t)],s=o.range(N(n),U(a),N(r),U(i)),c=[];for(const l of s){const e=o.points[l];c.push(e.numPoints?z(e):this.points[e.index])}return c}getChildren(e){const t=this._getOriginId(e),n=this._getOriginZoom(e),i="No cluster with the specified id.",r=this.trees[n];if(!r)throw new Error(i);const a=r.points[t];if(!a)throw new Error(i);const o=this.options.radius/(this.options.extent*Math.pow(2,n-1)),s=r.within(a.x,a.y,o),c=[];for(const l of s){const t=r.points[l];t.parentId===e&&c.push(t.numPoints?z(t):this.points[t.index])}if(0===c.length)throw new Error(i);return c}getLeaves(e,t,n){const i=[];return this._appendLeaves(i,e,t=t||10,n=n||0,0),i}getTile(e,t,n){const i=this.trees[this._limitZoom(e)],r=Math.pow(2,e),{extent:a,radius:o}=this.options,s=o/a,c=(n-s)/r,l=(n+1+s)/r,u={features:[]};return this._addTileFeatures(i.range((t-s)/r,c,(t+1+s)/r,l),i.points,t,n,r,u),0===t&&this._addTileFeatures(i.range(1-s/r,c,1,l),i.points,r,n,r,u),t===r-1&&this._addTileFeatures(i.range(0,c,s/r,l),i.points,-1,n,r,u),u.features.length?u:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}_appendLeaves(e,t,n,i,r){const a=this.getChildren(t);for(const o of a){const t=o.properties;if(t&&t.cluster?r+t.point_count<=i?r+=t.point_count:r=this._appendLeaves(e,t.cluster_id,n,i,r):r<i?r++:e.push(o),e.length===n)break}return r}_addTileFeatures(e,t,n,i,r,a){for(const o of e){const e=t[o],s=e.numPoints;let c,l,u;if(s)c=F(e),l=e.x,u=e.y;else{const t=this.points[e.index];c=t.properties,l=N(t.geometry.coordinates[0]),u=U(t.geometry.coordinates[1])}const d={type:1,geometry:[[Math.round(this.options.extent*(l*r-n)),Math.round(this.options.extent*(u*r-i))]],tags:c};let p;s?p=e.id:this.options.generateId?p=e.index:this.points[e.index].id&&(p=this.points[e.index].id),void 0!==p&&(d.id=p),a.features.push(d)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(+e,this.options.maxZoom+1))}_cluster(e,t){const n=[],{radius:i,extent:r,reduce:a,minPoints:o}=this.options,s=i/(r*Math.pow(2,t));for(let c=0;c<e.length;c++){const i=e[c];if(i.zoom<=t)continue;i.zoom=t;const r=this.trees[t+1],l=r.within(i.x,i.y,s),u=i.numPoints||1;let d=u;for(const e of l){const n=r.points[e];n.zoom>t&&(d+=n.numPoints||1)}if(d>u&&d>=o){let e=i.x*u,o=i.y*u,s=a&&u>1?this._map(i,!0):null;const p=(c<<5)+(t+1)+this.points.length;for(const n of l){const c=r.points[n];if(c.zoom<=t)continue;c.zoom=t;const l=c.numPoints||1;e+=c.x*l,o+=c.y*l,c.parentId=p,a&&(s||(s=this._map(i,!0)),a(s,this._map(c)))}i.parentId=p,n.push(D(e/d,o/d,p,d,s))}else if(n.push(i),d>1)for(const e of l){const i=r.points[e];i.zoom<=t||(i.zoom=t,n.push(i))}}return n}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t){if(e.numPoints)return t?W({},e.properties):e.properties;const n=this.points[e.index].properties,i=this.options.map(n);return t&&i===n?W({},i):i}}function D(e,t,n,i,r){return{x:L(e),y:L(t),zoom:1/0,id:n,parentId:-1,numPoints:i,properties:r}}function P(e,t){const[n,i]=e.geometry.coordinates;return{x:L(N(n)),y:L(U(i)),zoom:1/0,index:t,parentId:-1}}function z(e){return{type:"Feature",id:e.id,properties:F(e),geometry:{type:"Point",coordinates:[(t=e.x,360*(t-.5)),V(e.y)]}};var t}function F(e){const t=e.numPoints,n=t>=1e4?Math.round(t/1e3)+"k":t>=1e3?Math.round(t/100)/10+"k":t;return W(W({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function N(e){return e/360+.5}function U(e){const t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function V(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function W(e,t){for(const n in t)e[n]=t[n];return e}function q(e){return e.x}function G(e){return e.y}function Z(e,t,n,i,r,a){var o=r-n,s=a-i;if(0!==o||0!==s){var c=((e-n)*o+(t-i)*s)/(o*o+s*s);c>1?(n=r,i=a):c>0&&(n+=o*c,i+=s*c)}return(o=e-n)*o+(s=t-i)*s}function H(e,t,n,i){var r={id:void 0===e?null:e,type:t,geometry:n,tags:i,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(e){var t=e.geometry,n=e.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)X(e,t);else if("Polygon"===n||"MultiLineString"===n)for(var i=0;i<t.length;i++)X(e,t[i]);else if("MultiPolygon"===n)for(i=0;i<t.length;i++)for(var r=0;r<t[i].length;r++)X(e,t[i][r])}(r),r}function X(e,t){for(var n=0;n<t.length;n+=3)e.minX=Math.min(e.minX,t[n]),e.minY=Math.min(e.minY,t[n+1]),e.maxX=Math.max(e.maxX,t[n]),e.maxY=Math.max(e.maxY,t[n+1])}function K(e,t,n,i){if(t.geometry){var r=t.geometry.coordinates,a=t.geometry.type,o=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),s=[],c=t.id;if(n.promoteId?c=t.properties[n.promoteId]:n.generateId&&(c=i||0),"Point"===a)Y(r,s);else if("MultiPoint"===a)for(var l=0;l<r.length;l++)Y(r[l],s);else if("LineString"===a)J(r,s,o,!1);else if("MultiLineString"===a){if(n.lineMetrics){for(l=0;l<r.length;l++)J(r[l],s=[],o,!1),e.push(H(c,"LineString",s,t.properties));return}Q(r,s,o,!1)}else if("Polygon"===a)Q(r,s,o,!0);else{if("MultiPolygon"!==a){if("GeometryCollection"===a){for(l=0;l<t.geometry.geometries.length;l++)K(e,{id:c,geometry:t.geometry.geometries[l],properties:t.properties},n,i);return}throw new Error("Input data is not a valid GeoJSON object.")}for(l=0;l<r.length;l++){var u=[];Q(r[l],u,o,!0),s.push(u)}}e.push(H(c,a,s,t.properties))}}function Y(e,t){t.push($(e[0])),t.push(ee(e[1])),t.push(0)}function J(e,t,n,i){for(var r,a,o=0,s=0;s<e.length;s++){var c=$(e[s][0]),l=ee(e[s][1]);t.push(c),t.push(l),t.push(0),s>0&&(o+=i?(r*l-c*a)/2:Math.sqrt(Math.pow(c-r,2)+Math.pow(l-a,2))),r=c,a=l}var u=t.length-3;t[2]=1,function e(t,n,i,r){for(var a,o=r,s=i-n>>1,c=i-n,l=t[n],u=t[n+1],d=t[i],p=t[i+1],h=n+3;h<i;h+=3){var m=Z(t[h],t[h+1],l,u,d,p);if(m>o)a=h,o=m;else if(m===o){var f=Math.abs(h-s);f<c&&(a=h,c=f)}}o>r&&(a-n>3&&e(t,n,a,r),t[a+2]=o,i-a>3&&e(t,a,i,r))}(t,0,u,n),t[u+2]=1,t.size=Math.abs(o),t.start=0,t.end=t.size}function Q(e,t,n,i){for(var r=0;r<e.length;r++){var a=[];J(e[r],a,n,i),t.push(a)}}function $(e){return e/360+.5}function ee(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function te(e,t,n,i,r,a,o,s){if(i/=t,a>=(n/=t)&&o<i)return e;if(o<n||a>=i)return null;for(var c=[],l=0;l<e.length;l++){var u=e[l],d=u.geometry,p=u.type,h=0===r?u.minX:u.minY,m=0===r?u.maxX:u.maxY;if(h>=n&&m<i)c.push(u);else if(!(m<n||h>=i)){var f=[];if("Point"===p||"MultiPoint"===p)ne(d,f,n,i,r);else if("LineString"===p)ie(d,f,n,i,r,!1,s.lineMetrics);else if("MultiLineString"===p)ae(d,f,n,i,r,!1);else if("Polygon"===p)ae(d,f,n,i,r,!0);else if("MultiPolygon"===p)for(var g=0;g<d.length;g++){var b=[];ae(d[g],b,n,i,r,!0),b.length&&f.push(b)}if(f.length){if(s.lineMetrics&&"LineString"===p){for(g=0;g<f.length;g++)c.push(H(u.id,p,f[g],u.tags));continue}"LineString"!==p&&"MultiLineString"!==p||(1===f.length?(p="LineString",f=f[0]):p="MultiLineString"),"Point"!==p&&"MultiPoint"!==p||(p=3===f.length?"Point":"MultiPoint"),c.push(H(u.id,p,f,u.tags))}}}return c.length?c:null}function ne(e,t,n,i,r){for(var a=0;a<e.length;a+=3){var o=e[a+r];o>=n&&o<=i&&(t.push(e[a]),t.push(e[a+1]),t.push(e[a+2]))}}function ie(e,t,n,i,r,a,o){for(var s,c,l=re(e),u=0===r?se:ce,d=e.start,p=0;p<e.length-3;p+=3){var h=e[p],m=e[p+1],f=e[p+2],g=e[p+3],b=e[p+4],v=0===r?h:m,y=0===r?g:b,x=!1;o&&(s=Math.sqrt(Math.pow(h-g,2)+Math.pow(m-b,2))),v<n?y>n&&(c=u(l,h,m,g,b,n),o&&(l.start=d+s*c)):v>i?y<i&&(c=u(l,h,m,g,b,i),o&&(l.start=d+s*c)):oe(l,h,m,f),y<n&&v>=n&&(c=u(l,h,m,g,b,n),x=!0),y>i&&v<=i&&(c=u(l,h,m,g,b,i),x=!0),!a&&x&&(o&&(l.end=d+s*c),t.push(l),l=re(e)),o&&(d+=s)}var _=e.length-3;h=e[_],m=e[_+1],f=e[_+2],(v=0===r?h:m)>=n&&v<=i&&oe(l,h,m,f),_=l.length-3,a&&_>=3&&(l[_]!==l[0]||l[_+1]!==l[1])&&oe(l,l[0],l[1],l[2]),l.length&&t.push(l)}function re(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function ae(e,t,n,i,r,a){for(var o=0;o<e.length;o++)ie(e[o],t,n,i,r,a,!1)}function oe(e,t,n,i){e.push(t),e.push(n),e.push(i)}function se(e,t,n,i,r,a){var o=(a-t)/(i-t);return e.push(a),e.push(n+(r-n)*o),e.push(1),o}function ce(e,t,n,i,r,a){var o=(a-n)/(r-n);return e.push(t+(i-t)*o),e.push(a),e.push(1),o}function le(e,t){for(var n=[],i=0;i<e.length;i++){var r,a=e[i],o=a.type;if("Point"===o||"MultiPoint"===o||"LineString"===o)r=ue(a.geometry,t);else if("MultiLineString"===o||"Polygon"===o){r=[];for(var s=0;s<a.geometry.length;s++)r.push(ue(a.geometry[s],t))}else if("MultiPolygon"===o)for(r=[],s=0;s<a.geometry.length;s++){for(var c=[],l=0;l<a.geometry[s].length;l++)c.push(ue(a.geometry[s][l],t));r.push(c)}n.push(H(a.id,o,r,a.tags))}return n}function ue(e,t){var n=[];n.size=e.size,void 0!==e.start&&(n.start=e.start,n.end=e.end);for(var i=0;i<e.length;i+=3)n.push(e[i]+t,e[i+1],e[i+2]);return n}function de(e,t){if(e.transformed)return e;var n,i,r,a=1<<e.z,o=e.x,s=e.y;for(n=0;n<e.features.length;n++){var c=e.features[n],l=c.geometry,u=c.type;if(c.geometry=[],1===u)for(i=0;i<l.length;i+=2)c.geometry.push(pe(l[i],l[i+1],t,a,o,s));else for(i=0;i<l.length;i++){var d=[];for(r=0;r<l[i].length;r+=2)d.push(pe(l[i][r],l[i][r+1],t,a,o,s));c.geometry.push(d)}}return e.transformed=!0,e}function pe(e,t,n,i,r,a){return[Math.round(n*(e*i-r)),Math.round(n*(t*i-a))]}function he(e,t,n,i,r){for(var a=t===r.maxZoom?0:r.tolerance/((1<<t)*r.extent),o={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:n,y:i,z:t,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s<e.length;s++){o.numFeatures++,me(o,e[s],a,r);var c=e[s].minX,l=e[s].minY,u=e[s].maxX,d=e[s].maxY;c<o.minX&&(o.minX=c),l<o.minY&&(o.minY=l),u>o.maxX&&(o.maxX=u),d>o.maxY&&(o.maxY=d)}return o}function me(e,t,n,i){var r=t.geometry,a=t.type,o=[];if("Point"===a||"MultiPoint"===a)for(var s=0;s<r.length;s+=3)o.push(r[s]),o.push(r[s+1]),e.numPoints++,e.numSimplified++;else if("LineString"===a)fe(o,r,e,n,!1,!1);else if("MultiLineString"===a||"Polygon"===a)for(s=0;s<r.length;s++)fe(o,r[s],e,n,"Polygon"===a,0===s);else if("MultiPolygon"===a)for(var c=0;c<r.length;c++){var l=r[c];for(s=0;s<l.length;s++)fe(o,l[s],e,n,!0,0===s)}if(o.length){var u=t.tags||null;if("LineString"===a&&i.lineMetrics){for(var d in u={},t.tags)u[d]=t.tags[d];u.mapbox_clip_start=r.start/r.size,u.mapbox_clip_end=r.end/r.size}var p={geometry:o,type:"Polygon"===a||"MultiPolygon"===a?3:"LineString"===a||"MultiLineString"===a?2:1,tags:u};null!==t.id&&(p.id=t.id),e.features.push(p)}}function fe(e,t,n,i,r,a){var o=i*i;if(i>0&&t.size<(r?o:i))n.numPoints+=t.length/3;else{for(var s=[],c=0;c<t.length;c+=3)(0===i||t[c+2]>o)&&(n.numSimplified++,s.push(t[c]),s.push(t[c+1])),n.numPoints++;r&&function(e,t){for(var n=0,i=0,r=e.length,a=r-2;i<r;a=i,i+=2)n+=(e[i]-e[a])*(e[i+1]+e[a+1]);if(n>0===t)for(i=0,r=e.length;i<r/2;i+=2){var o=e[i],s=e[i+1];e[i]=e[r-2-i],e[i+1]=e[r-1-i],e[r-2-i]=o,e[r-1-i]=s}}(s,a),e.push(s)}}function ge(e,t){var n=(t=this.options=function(e,t){for(var n in t)e[n]=t[n];return e}(Object.create(this.options),t)).debug;if(n&&console.time("preprocess data"),t.maxZoom<0||t.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");var i=function(e,t){var n=[];if("FeatureCollection"===e.type)for(var i=0;i<e.features.length;i++)K(n,e.features[i],t,i);else K(n,"Feature"===e.type?e:{geometry:e},t);return n}(e,t);this.tiles={},this.tileCoords=[],n&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",t.indexMaxZoom,t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(i=function(e,t){var n=t.buffer/t.extent,i=e,r=te(e,1,-1-n,n,0,-1,2,t),a=te(e,1,1-n,2+n,0,-1,2,t);return(r||a)&&(i=te(e,1,-n,1+n,0,-1,2,t)||[],r&&(i=le(r,1).concat(i)),a&&(i=i.concat(le(a,-1)))),i}(i,t)).length&&this.splitTile(i,0,0,0),n&&(i.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function be(e,t,n){return 32*((1<<e)*n+t)+e}function ve(e,t){const n=e.tileID.canonical;if(!this._geoJSONIndex)return t(null,null);const i=this._geoJSONIndex.getTile(n.z,n.x,n.y);if(!i)return t(null,null);const r=new u(i.features);let a=f(r);0===a.byteOffset&&a.byteLength===a.buffer.byteLength||(a=new Uint8Array(a)),t(null,{vectorTile:r,rawData:a.buffer})}ge.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},ge.prototype.splitTile=function(e,t,n,i,r,a,o){for(var s=[e,t,n,i],c=this.options,l=c.debug;s.length;){i=s.pop(),n=s.pop(),t=s.pop(),e=s.pop();var u=1<<t,d=be(t,n,i),p=this.tiles[d];if(!p&&(l>1&&console.time("creation"),p=this.tiles[d]=he(e,t,n,i,c),this.tileCoords.push({z:t,x:n,y:i}),l)){l>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,n,i,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));var h="z"+t;this.stats[h]=(this.stats[h]||0)+1,this.total++}if(p.source=e,r){if(t===c.maxZoom||t===r)continue;var m=1<<r-t;if(n!==Math.floor(a/m)||i!==Math.floor(o/m))continue}else if(t===c.indexMaxZoom||p.numPoints<=c.indexMaxPoints)continue;if(p.source=null,0!==e.length){l>1&&console.time("clipping");var f,g,b,v,y,x,_=.5*c.buffer/c.extent,w=.5-_,O=.5+_,j=1+_;f=g=b=v=null,y=te(e,u,n-_,n+O,0,p.minX,p.maxX,c),x=te(e,u,n+w,n+j,0,p.minX,p.maxX,c),e=null,y&&(f=te(y,u,i-_,i+O,1,p.minY,p.maxY,c),g=te(y,u,i+w,i+j,1,p.minY,p.maxY,c),y=null),x&&(b=te(x,u,i-_,i+O,1,p.minY,p.maxY,c),v=te(x,u,i+w,i+j,1,p.minY,p.maxY,c),x=null),l>1&&console.timeEnd("clipping"),s.push(f||[],t+1,2*n,2*i),s.push(g||[],t+1,2*n,2*i+1),s.push(b||[],t+1,2*n+1,2*i),s.push(v||[],t+1,2*n+1,2*i+1)}}},ge.prototype.getTile=function(e,t,n){var i=this.options,r=i.extent,a=i.debug;if(e<0||e>24)return null;var o=1<<e,s=be(e,t=(t%o+o)%o,n);if(this.tiles[s])return de(this.tiles[s],r);a>1&&console.log("drilling down to z%d-%d-%d",e,t,n);for(var c,l=e,u=t,d=n;!c&&l>0;)l--,u=Math.floor(u/2),d=Math.floor(d/2),c=this.tiles[be(l,u,d)];return c&&c.source?(a>1&&console.log("found parent tile z%d-%d-%d",l,u,d),a>1&&console.time("drilling down"),this.splitTile(c.source,l,u,d,e,t,n),a>1&&console.timeEnd("drilling down"),this.tiles[s]?de(this.tiles[s],r):null):null};class ye extends e.VectorTileWorkerSource{constructor(e,t,n,i,r){super(e,t,n,i,ve),r&&(this.loadGeoJSON=r)}loadData(t,n){const i=t&&t.request,r=i&&i.collectResourceTiming;this.loadGeoJSON(t,(o,s)=>{if(o||!s)return n(o);if("object"!=typeof s)return n(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));{a(s,!0);try{if(t.filter){const n=e.createExpression(t.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===n.result)throw new Error(n.value.map(e=>`${e.key}: ${e.message}`).join(", "));const i=s.features.filter(e=>n.value.evaluate({zoom:0},e));s={type:"FeatureCollection",features:i}}this._geoJSONIndex=t.cluster?new R(function({superclusterOptions:t,clusterProperties:n}){if(!n||!t)return t;const i={},r={},a={accumulated:null,zoom:0},o={properties:null},s=Object.keys(n);for(const c of s){const[t,a]=n[c],o=e.createExpression(a),s=e.createExpression("string"==typeof t?[t,["accumulated"],["get",c]]:t);i[c]=o.value,r[c]=s.value}return t.map=e=>{o.properties=e;const t={};for(const n of s)t[n]=i[n].evaluate(a,o);return t},t.reduce=(e,t)=>{o.properties=t;for(const n of s)a.accumulated=e[n],e[n]=r[n].evaluate(a,o)},t}(t)).load(s.features):function(e,t){return new ge(e,t)}(s,t.geojsonVtOptions)}catch(o){return n(o)}this.loaded={};const c={};if(r){const n=e.getPerformanceMeasurement(i);n&&(c.resourceTiming={},c.resourceTiming[t.source]=JSON.parse(JSON.stringify(n)))}n(null,c)}})}reloadTile(e,t){const n=this.loaded;return n&&n[e.uid]?super.reloadTile(e,t):this.loadTile(e,t)}loadGeoJSON(t,n){if(t.request)e.getJSON(t.request,n);else{if("string"!=typeof t.data)return n(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));try{return n(null,JSON.parse(t.data))}catch(e){return n(new Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(e,t){try{t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId))}catch(e){t(e)}}getClusterChildren(e,t){try{t(null,this._geoJSONIndex.getChildren(e.clusterId))}catch(e){t(e)}}getClusterLeaves(e,t){try{t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset))}catch(e){t(e)}}}class xe{constructor(t){this.self=t,this.actor=new e.Actor(t,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=e.getProjection({name:"mercator"}),this.workerSourceTypes={vector:e.VectorTileWorkerSource,geojson:ye},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(e,t)=>{if(this.workerSourceTypes[e])throw new Error(`Worker source with name "${e}" already registered.`);this.workerSourceTypes[e]=t},this.self.registerRTLTextPlugin=t=>{if(e.plugin.isParsed())throw new Error("RTL text plugin already registered.");e.plugin.applyArabicShaping=t.applyArabicShaping,e.plugin.processBidirectionalText=t.processBidirectionalText,e.plugin.processStyledBidirectionalText=t.processStyledBidirectionalText}}clearCaches(e,t,n){delete this.layerIndexes[e],delete this.availableImages[e],delete this.workerSources[e],delete this.demWorkerSources[e],n()}checkIfReady(e,t,n){n()}setReferrer(e,t){this.referrer=t}spriteLoaded(t,n){this.isSpriteLoaded[t]=n;for(const i in this.workerSources[t]){const r=this.workerSources[t][i];for(const t in r)r[t]instanceof e.VectorTileWorkerSource&&(r[t].isSpriteLoaded=n,r[t].fire(new e.Event("isSpriteLoaded")))}}setImages(e,t,n){this.availableImages[e]=t;for(const i in this.workerSources[e]){const n=this.workerSources[e][i];for(const e in n)n[e].availableImages=t}n()}enableTerrain(e,t,n){this.terrain=t,n()}setProjection(t,n){this.projections[t]=e.getProjection(n)}setLayers(e,t,n){this.getLayerIndex(e).replace(t),n()}updateLayers(e,t,n){this.getLayerIndex(e).update(t.layers,t.removedIds),n()}loadTile(t,n,i){const r=this.enableTerrain?e.extend({enableTerrain:this.terrain},n):n;r.projection=this.projections[t]||this.defaultProjection,this.getWorkerSource(t,n.type,n.source).loadTile(r,i)}loadDEMTile(t,n,i){const r=this.enableTerrain?e.extend({buildQuadTree:this.terrain},n):n;this.getDEMWorkerSource(t,n.source).loadTile(r,i)}reloadTile(t,n,i){const r=this.enableTerrain?e.extend({enableTerrain:this.terrain},n):n;r.projection=this.projections[t]||this.defaultProjection,this.getWorkerSource(t,n.type,n.source).reloadTile(r,i)}abortTile(e,t,n){this.getWorkerSource(e,t.type,t.source).abortTile(t,n)}removeTile(e,t,n){this.getWorkerSource(e,t.type,t.source).removeTile(t,n)}removeSource(e,t,n){if(!this.workerSources[e]||!this.workerSources[e][t.type]||!this.workerSources[e][t.type][t.source])return;const i=this.workerSources[e][t.type][t.source];delete this.workerSources[e][t.type][t.source],void 0!==i.removeSource?i.removeSource(t,n):n()}loadWorkerSource(e,t,n){try{this.self.importScripts(t.url),n()}catch(e){n(e.toString())}}syncRTLPluginState(t,n,i){try{e.plugin.setState(n);const t=e.plugin.getPluginURL();if(e.plugin.isLoaded()&&!e.plugin.isParsed()&&null!=t){this.self.importScripts(t);const n=e.plugin.isParsed();i(n?void 0:new Error("RTL Text Plugin failed to import scripts from "+t),n)}}catch(e){i(e.toString())}}getAvailableImages(e){let t=this.availableImages[e];return t||(t=[]),t}getLayerIndex(e){let t=this.layerIndexes[e];return t||(t=this.layerIndexes[e]=new i),t}getWorkerSource(e,t,n){return this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][t]||(this.workerSources[e][t]={}),this.workerSources[e][t][n]||(this.workerSources[e][t][n]=new this.workerSourceTypes[t]({send:(t,n,i,r,a,o)=>{this.actor.send(t,n,i,e,a,o)},scheduler:this.actor.scheduler},this.getLayerIndex(e),this.getAvailableImages(e),this.isSpriteLoaded[e])),this.workerSources[e][t][n]}getDEMWorkerSource(e,t){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][t]||(this.demWorkerSources[e][t]=new r),this.demWorkerSources[e][t]}enforceCacheSizeLimit(t,n){e.enforceCacheSizeLimit(n)}getWorkerPerformanceMetrics(e,t,n){n(void 0,void 0)}}return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope&&(self.worker=new xe(self)),xe})),i(0,(function(e){var t=n;function n(e){return!function(e){return"undefined"==typeof window||"undefined"==typeof document?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var e,t,n=new Blob([""],{type:"text/javascript"}),i=URL.createObjectURL(n);try{t=new Worker(i),e=!0}catch(t){e=!1}return t&&t.terminate(),URL.revokeObjectURL(i),e}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var e=document.createElement("canvas");e.width=e.height=1;var t=e.getContext("2d");if(!t)return!1;var n=t.getImageData(0,0,1,1);return n&&n.width===e.width}()?(void 0===i[t=e&&e.failIfMajorPerformanceCaveat]&&(i[t]=function(e){var t,i=function(e){var t=document.createElement("canvas"),i=Object.create(n.webGLContextAttributes);return i.failIfMajorPerformanceCaveat=e,t.getContext("webgl",i)||t.getContext("experimental-webgl",i)}(e);if(!i)return!1;try{t=i.createShader(i.VERTEX_SHADER)}catch(e){return!1}return!(!t||i.isContextLost())&&(i.shaderSource(t,"void main() {}
2"),i.compileShader(t),!0===i.getShaderParameter(t,i.COMPILE_STATUS))}(t)),i[t]?document.documentMode?"insufficient ECMAScript 6 support":void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var t}(e)}var i={};function r(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==t){if("object"!=typeof t)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!r(e[n],t[n]))return!1;return!0}return e===t}function a(t,n,i){const r=e.window.document.createElement(t);return void 0!==n&&(r.className=n),i&&i.appendChild(r),r}function o(t,n,i){const r=e.window.document.createElementNS("http://www.w3.org/2000/svg",t);for(const e of Object.keys(n))r.setAttributeNS(null,e,n[e]);return i&&i.appendChild(r),r}n.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};const s=e.window.document&&e.window.document.documentElement.style,c=s&&void 0!==s.userSelect?"userSelect":"WebkitUserSelect";let l;function u(){s&&c&&(l=s[c],s[c]="none")}function d(){s&&c&&(s[c]=l)}function p(t){t.preventDefault(),t.stopPropagation(),e.window.removeEventListener("click",p,!0)}function h(){e.window.addEventListener("click",p,!0),e.window.setTimeout(()=>{e.window.removeEventListener("click",p,!0)},0)}function m(e,t){const n=e.getBoundingClientRect();return b(e,n,t)}function f(e,t){const n=e.getBoundingClientRect(),i=[];for(let r=0;r<t.length;r++)i.push(b(e,n,t[r]));return i}function g(t){return void 0!==e.window.InstallTrigger&&2===t.button&&t.ctrlKey&&e.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:t.button}function b(t,n,i){const r=t.offsetWidth===n.width?1:t.offsetWidth/n.width;return new e.pointGeometry((i.clientX-n.left)*r,(i.clientY-n.top)*r)}function v(e,t){var n=t[0],i=t[1],r=t[2],a=t[3],o=n*a-r*i;return o?(e[0]=a*(o=1/o),e[1]=-i*o,e[2]=-r*o,e[3]=n*o,e):null}function y(e){const{userImage:t}=e;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}class x extends e.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new e.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(e){if(this.loaded!==e&&(this.loaded=e,e)){for(const{ids:e,callback:t}of this.requestors)this._notify(e,t);this.requestors=[]}}hasImage(e){return!!this.getImage(e)}getImage(e){return this.images[e]}addImage(e,t){this._validate(e,t)&&(this.images[e]=t)}_validate(t,n){let i=!0;return this._validateStretch(n.stretchX,n.data&&n.data.width)||(this.fire(new e.ErrorEvent(new Error(`Image "${t}" has invalid "stretchX" value`))),i=!1),this._validateStretch(n.stretchY,n.data&&n.data.height)||(this.fire(new e.ErrorEvent(new Error(`Image "${t}" has invalid "stretchY" value`))),i=!1),this._validateContent(n.content,n)||(this.fire(new e.ErrorEvent(new Error(`Image "${t}" has invalid "content" value`))),i=!1),i}_validateStretch(e,t){if(!e)return!0;let n=0;for(const i of e){if(i[0]<n||i[1]<i[0]||t<i[1])return!1;n=i[1]}return!0}_validateContent(e,t){return!(e&&(4!==e.length||e[0]<0||t.data.width<e[0]||e[1]<0||t.data.height<e[1]||e[2]<0||t.data.width<e[2]||e[3]<0||t.data.height<e[3]||e[2]<e[0]||e[3]<e[1]))}updateImage(e,t){t.version=this.images[e].version+1,this.images[e]=t,this.updatedImages[e]=!0}removeImage(e){const t=this.images[e];delete this.images[e],delete this.patterns[e],t.userImage&&t.userImage.onRemove&&t.userImage.onRemove()}listImages(){return Object.keys(this.images)}getImages(e,t){let n=!0;if(!this.isLoaded())for(const i of e)this.images[i]||(n=!1);this.isLoaded()||n?this._notify(e,t):this.requestors.push({ids:e,callback:t})}_notify(t,n){const i={};for(const r of t){this.images[r]||this.fire(new e.Event("styleimagemissing",{id:r}));const t=this.images[r];t?i[r]={data:t.data.clone(),pixelRatio:t.pixelRatio,sdf:t.sdf,version:t.version,stretchX:t.stretchX,stretchY:t.stretchY,content:t.content,hasRenderCallback:Boolean(t.userImage&&t.userImage.render)}:e.warnOnce(`Image "${r}" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.`)}n(null,i)}getPixelSize(){const{width:e,height:t}=this.atlasImage;return{width:e,height:t}}getPattern(t){const n=this.patterns[t],i=this.getImage(t);if(!i)return null;if(n&&n.position.version===i.version)return n.position;if(n)n.position.version=i.version;else{const n={w:i.data.width+2,h:i.data.height+2,x:0,y:0},r=new e.ImagePosition(n,i);
vendor: 4,288 bytes, line 2
2this.patterns[t]={bin:n,position:r}}return this._updatePatternAtlas(),this.patterns[t].position}bind(t){const n=t.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new e.Texture(t,this.atlasImage,n.RGBA),this.atlasTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}_updatePatternAtlas(){const t=[];for(const e in this.patterns)t.push(this.patterns[e].bin);const{w:n,h:i}=e.potpack(t),r=this.atlasImage;r.resize({width:n||1,height:i||1});for(const a in this.patterns){const{bin:t}=this.patterns[a],n=t.x+1,i=t.y+1,o=this.images[a].data,s=o.width,c=o.height;e.RGBAImage.copy(o,r,{x:0,y:0},{x:n,y:i},{width:s,height:c}),e.RGBAImage.copy(o,r,{x:0,y:c-1},{x:n,y:i-1},{width:s,height:1}),e.RGBAImage.copy(o,r,{x:0,y:0},{x:n,y:i+c},{width:s,height:1}),e.RGBAImage.copy(o,r,{x:s-1,y:0},{x:n-1,y:i},{width:1,height:c}),e.RGBAImage.copy(o,r,{x:0,y:0},{x:n+s,y:i},{width:1,height:c})}this.dirty=!0}beginFrame(){this.callbackDispatchedThisFrame={}}dispatchRenderCallbacks(e){for(const t of e){if(this.callbackDispatchedThisFrame[t])continue;this.callbackDispatchedThisFrame[t]=!0;const e=this.images[t];y(e)&&this.updateImage(t,e)}}}const _=new e.Properties({anchor:new e.DataConstantProperty(e.spec.light.anchor),position:new class{constructor(){this.specification=e.spec.light.position}possiblyEvaluate(t,n){return function([t,n,i]){const r=e.degToRad(n+90),a=e.degToRad(i);return{x:t*Math.cos(r)*Math.sin(a),y:t*Math.sin(r)*Math.sin(a),z:t*Math.cos(a),azimuthal:n,polar:i}}(t.expression.evaluate(n))}interpolate(t,n,i){return{x:e.number(t.x,n.x,i),y:e.number(t.y,n.y,i),z:e.number(t.z,n.z,i),azimuthal:e.number(t.azimuthal,n.azimuthal,i),polar:e.number(t.polar,n.polar,i)}}},color:new e.DataConstantProperty(e.spec.light.color),intensity:new e.DataConstantProperty(e.spec.light.intensity)}),w="-transition";class O extends e.Evented{constructor(t){super(),this._transitionable=new e.Transitionable(_),this.setLight(t),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(t,n={}){if(!this._validate(e.validateLight,t,n))for(const i in t){const n=t[i];e.endsWith(i,w)?this._transitionable.setTransition(i.slice(0,-w.length),n):this._transitionable.setValue(i,n)}}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(t,n,i){return(!i||!1!==i.validate)&&e.emitValidationErrors(this,t.call(e.validateStyle,e.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:e.spec})))}}const j=new e.Properties({source:new e.DataConstantProperty(e.spec.terrain.source),exaggeration:new e.DataConstantProperty(e.spec.terrain.exaggeration)}),C="-transition";class E extends e.Evented{constructor(t,n){super(),this._transitionable=new e.Transitionable(j),this.set(t),this._transitioning=this._transitionable.untransitioned(),this.drapeRenderMode=n}get(){return this._transitionable.serialize()}set(t){for(const n in t){const i=t[n];e.endsWith(n,C)?this._transitionable.setTransition(n.slice(0,-C.length),i):this._transitionable.setValue(n,i)}}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}}function T(t,n,i,r){const a=e.smoothstep(45,65,i),[o,s]=k(t,r),c=e.length(n);let l=1-Math.min(1,Math.exp((c-o)/(s-o)*-6));return l*=l*l,l=Math.min(1,1.00747*l),l*a*t.alpha}function k(e,t){const n=.5/Math.tan(.5*t);return[e.range[0]+n,e.range[1]+n]}const S=new e.Properties({range:new e.DataConstantProperty(e.spec.fog.range),color:new e.DataConstantProperty(e.spec.fog.color),"horizon-blend":new e.DataConstantProperty(e.spec.fog["horizon-blend"])}),A="-transition";class I extends e.Evented{constructor(t,n){super(),this._transitionable=new e.Transitionable(S),this.set(t),this._transitioning=this._transitionable.untransitioned(),this._transform=n}get state(){return{range:this.properties.get("range"),horizonBlend:this.properties.get("horizon-blend"),alpha:this.properties.get("color").a}}get(){return this._transitionable.serialize()}set(t,n={}
2){if(!this._validate(e.validateFog,t,n))for(const i in t){const n=t[i];e.endsWith(i,A)?this._transitionable.setTransition(i.slice(0,-A.length),n):this._transitionable.setValue(i,n)}}getOpacity(t){if(!this._transform.projection.supportsFog)return 0;const n=this.properties&&this.properties.get("color")||1;return e.smoothstep(45,65,t)*n.a}getOpacityAtLatLng(t,n){return this._transform.projection.supportsFog?function(t,n,i){const r=e.MercatorCoordinate.fromLngLat(n),a=i.elevation?i.elevation.getAtPointOrZero(r):0,o=[r.x,r.y,a];return e.transformMat4(o,o,i.mercatorFogMatrix),T(t,o,i.pitch,i._fov)}(this.state,t,n):0}getFovAdjustedRange(e){return this._transform.projection.supportsFog?k(this.state,e):[0,1]}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}_validate(t,n,i){return(!i||!1!==i.validate)&&e.emitValidationErrors(this,t.call(e.validateStyle,e.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:e.spec})))}}class M{constructor(t,n){this.workerPool=t,this.actors=[],this.currentActor=0,this.id=e.uniqueId();const i=this.workerPool.acquire(this.id);for(let e=0;e<i.length;e++){const t=new M.Actor(i[e],n,this.id);t.name="Worker "+e,this.actors.push(t)}this.ready=!1,this.broadcast("checkIfReady",null,()=>{this.ready=!0})}broadcast(t,n,i){e.asyncAll(this.actors,(e,i)=>{e.send(t,n,i)},i=i||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach(e=>{e.remove()}),this.actors=[],this.workerPool.release(this.id)}}function L(t,n,i){return n*(e.EXTENT/(t.tileSize*Math.pow(2,i-t.tileID.overscaledZ)))}M.Actor=e.Actor;class B{constructor(e,t,n,i){this.screenBounds=e,this.cameraPoint=t,this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=n,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this.screenGeometry.map(e=>i.pointCoordinate3D(e)),this.cameraGeometry=this.bufferedCameraGeometry(0)}static createFromScreenPoints(t,n){let i,r;if(t instanceof e.pointGeometry||"number"==typeof t[0]){const a=e.pointGeometry.convert(t);i=[e.pointGeometry.convert(t)],r=n.isPointAboveHorizon(a)}else{const a=e.pointGeometry.convert(t[0]),o=e.pointGeometry.convert(t[1]);i=[a,o],r=e.polygonizeBounds(a,o).every(e=>n.isPointAboveHorizon(e))}return new B(i,n.getCameraPoint(),r,n)}isPointQuery(){return 1===this.screenBounds.length}bufferedScreenGeometry(t){return e.polygonizeBounds(this.screenBounds[0],1===this.screenBounds.length?this.screenBounds[0]:this.screenBounds[1],t)}bufferedCameraGeometry(t){const n=this.screenBounds[0],i=1===this.screenBounds.length?this.screenBounds[0].add(new e.pointGeometry(1,1)):this.screenBounds[1],r=e.polygonizeBounds(n,i,0,!1);return this.cameraPoint.y>i.y&&(this.cameraPoint.x>n.x&&this.cameraPoint.x<i.x?r.splice(3,0,this.cameraPoint):this.cameraPoint.x>=i.x?r[2]=this.cameraPoint:this.cameraPoint.x<=n.x&&(r[3]=this.cameraPoint)),e.bufferConvexPolygon(r,t)}containsTile(t,n,i){const r=t.queryPadding+1,a=t.tileID.wrap,o=i?this._bufferedCameraMercator(r,n).map(n=>e.getTilePoint(t.tileTransform,n,a)):this._bufferedScreenMercator(r,n).map(n=>e.getTilePoint(t.tileTransform,n,a)),s=this.screenGeometryMercator.map(n=>e.getTileVec3(t.tileTransform,n,a)),c=s.map(t=>new e.pointGeometry(t[0],t[1])),l=n.getFreeCameraOptions().position||new e.MercatorCoordinate(0,0,0),u=e.getTileVec3(t.tileTransform,l,a),d=s.map(t=>{const n=e.sub(t,t,u);return e.normalize(n,n),new e.Ray(u,n)}),p=L(t,1,n.zoom);if(e.polygonIntersectsBox(o,0,0,e.EXTENT,e.EXTENT))return{queryGeometry:this,tilespaceGeometry:c,tilespaceRays:d,bufferedTilespaceGeometry:o,bufferedTilespaceBounds:(h=e.getBounds(o),h.min.x=e.clamp(h.min.x,0,e.EXTENT),h.min.y=e.clamp(h.min.y,0,e.EXTENT),h.max.x=e.clamp(h.max.x,0,e.EXTENT),h.max.y=e.clamp(h.max.y,0,e.EXTENT),h),tile:t,tileID:t.tileID,pixelToTileUnitsFactor:p};var h}_bufferedScreenMercator(e,t){const n=R(e);if(this._screenRaycastCache[n])return this._screenRaycastCache[n];{const i=this.bufferedScreenGeometry(e).map(e=>t.pointCoordinate3D(e));return this._screenRaycastCache[n]=i,i}}_bufferedCameraMercator(e,t){const n=R(e);if(this._cameraRaycastCache[n])return this._cameraRaycastCache[n];{const i=this.bufferedCameraGeometry(e).map(e=>t.pointCoordinate3D(e));return this._cameraRaycastCache[n]=i,i}}}function R(e){return 100*e|0}
vendor: 27,119 bytes, line 2
2function D(t,n,i){const r=function(r,a){if(r)return i(r);if(a){const r=e.pick(e.extend(a,t),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);a.vector_layers&&(r.vectorLayers=a.vector_layers,r.vectorLayerIds=r.vectorLayers.map(e=>e.id)),r.tiles=n.canonicalizeTileset(r,t.url),i(null,r)}};return t.url?e.getJSON(n.transformRequest(n.normalizeSourceURL(t.url),e.ResourceType.Source),r):e.exported.frame(()=>r(null,t))}class P{constructor(t,n,i){this.bounds=e.LngLatBounds.convert(this.validateBounds(t)),this.minzoom=n||0,this.maxzoom=i||24}validateBounds(e){return Array.isArray(e)&&4===e.length?[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]:[-180,-90,180,90]}contains(t){const n=Math.pow(2,t.z),i=Math.floor(e.mercatorXfromLng(this.bounds.getWest())*n),r=Math.floor(e.mercatorYfromLat(this.bounds.getNorth())*n),a=Math.ceil(e.mercatorXfromLng(this.bounds.getEast())*n),o=Math.ceil(e.mercatorYfromLat(this.bounds.getSouth())*n);return t.x>=i&&t.x<a&&t.y>=r&&t.y<o}}class z{constructor(e,t,n){this.context=e;const i=e.gl;this.buffer=i.createBuffer(),this.dynamicDraw=Boolean(n),this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),i.bufferData(i.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||t.destroy()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){const t=this.context.gl;this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}const F={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class N{constructor(e,t,n,i){this.length=t.length,this.attributes=n,this.itemSize=t.bytesPerElement,this.dynamicDraw=i,this.context=e;const r=e.gl;this.buffer=r.createBuffer(),e.bindVertexBuffer.set(this.buffer),r.bufferData(r.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||t.destroy()}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){const t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let n=0;n<this.attributes.length;n++){const i=t.attributes[this.attributes[n].name];void 0!==i&&e.enableVertexAttribArray(i)}}setVertexAttribPointers(e,t,n){for(let i=0;i<this.attributes.length;i++){const r=this.attributes[i],a=t.attributes[r.name];void 0!==a&&e.vertexAttribPointer(a,r.components,e[F[r.type]],!1,this.itemSize,r.offset+this.itemSize*(n||0))}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class U{constructor(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1}get(){return this.current}set(e){}getDefault(){return this.default}setDefault(){this.set(this.default)}}class V extends U{getDefault(){return e.Color.transparent}set(e){const t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class W extends U{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}}class q extends U{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}}class G extends U{getDefault(){return[!0,!0,!0,!0]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class Z extends U{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}}class H extends U{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}}class X extends U{getDefault(){return{func:this.gl.ALWAYS,ref:0,mask:255}}set(e){const t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)}}class K extends U{getDefault(){const e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)}}class Y extends U{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}}class J extends U{getDefault(){return[0,1]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)}}class Q extends U{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}}class $ extends U{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}}class ee extends U{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}}class te extends U{getDefault(){const e=this.gl;return[e.ONE,e.ZERO]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)}}class ne extends U{getDefault(){return e.Color.transparent}set(e){const t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)}}class ie extends U{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)}}class re extends U{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}}class ae extends U{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}}class oe extends U{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}}class se extends U{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}}class ce extends U{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}}class le extends U{getDefault(){const e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]}set(e){const t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class ue extends U{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}}class de extends U{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class pe extends U{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}}class he extends U{getDefault(){return null}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class me extends U{getDefault(){return null}set(e){const t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class fe extends U{constructor(e){super(e),this.vao=e.extVertexArrayObject}getDefault(){return null}set(e){this.vao&&(e!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(e),this.current=e,this.dirty=!1)}}class ge extends U{getDefault(){return 4}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}}class be extends U{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}}class ve extends U{getDefault(){return!1}set(e){if(e===this.current&&!this.dirty)return;const t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}}class ye extends U{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}}class xe extends ye{setDirty(){this.dirty=!0}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}}class _e extends ye{attachment(){return this.gl.DEPTH_ATTACHMENT}set(e){if(e===this.current&&!this.dirty)return;this.context.bindFramebuffer.set(this.parent);const t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,this.attachment(),t.RENDERBUFFER,e),this.current=e,this.dirty=!1}}class we extends _e{attachment(){return this.gl.DEPTH_STENCIL_ATTACHMENT}}class Oe{constructor(e,t,n,i){this.context=e,this.width=t,this.height=n;const r=this.framebuffer=e.gl.createFramebuffer();this.colorAttachment=new xe(e,r),i&&(this.depthAttachment=new _e(e,r))}destroy(){const e=this.context.gl,t=this.colorAttachment.get();if(t&&e.deleteTexture(t),this.depthAttachment){const t=this.depthAttachment.get();t&&e.deleteRenderbuffer(t)}e.deleteFramebuffer(this.framebuffer)}}class je{constructor(e){this.gl=e,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new V(this),this.clearDepth=new W(this),this.clearStencil=new q(this),this.colorMask=new G(this),this.depthMask=new Z(this),this.stencilMask=new H(this),this.stencilFunc=new X(this),this.stencilOp=new K(this),this.stencilTest=new Y(this),this.depthRange=new J(this),this.depthTest=new Q(this),this.depthFunc=new $(this),this.blend=new ee(this),this.blendFunc=new te(this),this.blendColor=new ne(this),this.blendEquation=new ie(this),this.cullFace=new re(this),this.cullFaceSide=new ae(this),this.frontFace=new oe(this),this.program=new se(this),this.activeTexture=new ce(this),this.viewport=new le(this),this.bindFramebuffer=new ue(this),this.bindRenderbuffer=new de(this),this.bindTexture=new pe(this),this.bindVertexBuffer=new he(this),this.bindElementBuffer=new me(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new fe(this),this.pixelStoreUnpack=new ge(this),this.pixelStoreUnpackPremultiplyAlpha=new be(this),this.pixelStoreUnpackFlipY=new ve(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureFilterAnisotropicForceOff=!1,this.extTextureHalfFloat=e.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&(e.getExtension("OES_texture_half_float_linear"),this.extRenderToTextureHalfFloat=e.getExtension("EXT_color_buffer_half_float")),this.extTimerQuery=e.getExtension("EXT_disjoint_timer_query"),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE)}setDefault(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()}setDirty(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(e,t){return new z(this,e,t)}createVertexBuffer(e,t,n){return new N(this,e,t,n)}createRenderbuffer(e,t,n){const i=this.gl,r=i.createRenderbuffer();return this.bindRenderbuffer.set(r),i.renderbufferStorage(i.RENDERBUFFER,e,t,n),this.bindRenderbuffer.set(null),r}createFramebuffer(e,t,n){return new Oe(this,e,t,n)}clear({color:e,depth:t,stencil:n}){const i=this.gl;let r=0;e&&(r|=i.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==t&&(r|=i.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(t),this.depthMask.set(!0)),void 0!==n&&(r|=i.STENCIL_BUFFER_BIT,this.clearStencil.set(n),this.stencilMask.set(255)),i.clear(r)}setCullFace(e){!1===e.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))}setDepthMode(e){e.func!==this.gl.ALWAYS||e.mask?(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range)):this.depthTest.set(!1)}setStencilMode(e){e.test.func!==this.gl.ALWAYS||e.mask?(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask})):this.stencilTest.set(!1)}setColorMode(t){r(t.blendFunction,e.ColorMode.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(t.blendFunction),this.blendColor.set(t.blendColor)),this.colorMask.set(t.mask)}unbindVAO(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)}}class Ce extends e.Evented{constructor(t,n,i,r){super(),this.id=t,this.dispatcher=i,this.setEventedParent(r),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=e.extend({type:"raster"},n),e.extend(this,e.pick(n,["url","scheme","tileSize"]))}load(){this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=D(this._options,this.map._requestManager,(t,n)=>{this._tileJSONRequest=null,this._loaded=!0,t?this.fire(new e.ErrorEvent(t)):n&&(e.extend(this,n),n.bounds&&(this.tileBounds=new P(n.bounds,this.minzoom,this.maxzoom)),e.postTurnstileEvent(n.tiles),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return e.extend({},this._options)}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(t,n){const i=e.exported.devicePixelRatio>=2,r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),i,this.tileSize);t.request=e.getImage(this.map._requestManager.transformRequest(r,e.ResourceType.Tile),(i,r,a,o)=>(delete t.request,t.aborted?(t.state="unloaded",n(null)):i?(t.state="errored",n(i)):r?(this.map._refreshExpiredTiles&&t.setExpiryData({cacheControl:a,expires:o}),t.setTexture(r,this.map.painter),t.state="loaded",e.cacheEntryPossiblyAdded(this.dispatcher),void n(null)):n(null)))}static loadTileData(e,t,n){e.setTexture(t,n)}static unloadTileData(e,t){e.texture&&t.saveTileTexture(e.texture)}abortTile(e,t){e.request&&(e.request.cancel(),delete e.request),t()}unloadTile(e,t){e.texture&&this.map.painter.saveTileTexture(e.texture),t()}hasTransition(){return!1}}let Ee;function Te(t,n,i,r,a,o,s,c){const l=[t,i,a,n,r,o,1,1,1],u=[s,c,1],d=e.adjoint([],l),[p,h,m]=e.transformMat3(u,u,e.transpose(d,d));return e.multiply(l,[p,0,0,0,h,0,0,0,m],l)}class ke extends e.Evented{constructor(e,t,n,i){super(),this.id=e,this.dispatcher=n,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=t}load(t){this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this.url=this.options.url,e.getImage(this.map._requestManager.transformRequest(this.url,e.ResourceType.Image),(n,i)=>{if(this._loaded=!0,n)this.fire(new e.ErrorEvent(n));else if(i){const{HTMLImageElement:n}=e.window;this.image=i instanceof n?e.exported.getImageData(i):i,this.width=this.image.width,this.height=this.image.height,t&&(this.coordinates=t),this._finishLoading()}})}loaded(){return this._loaded}updateImage(e){return this.image&&e.url?(this.options.url=e.url,this.load(e.coordinates),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(){this.texture&&this.texture.destroy()}setCoordinates(t){this.coordinates=t,this._boundsArray=void 0;const n=t.map(e.MercatorCoordinate.fromLngLat);return this.tileID=function(t){let n=1/0,i=1/0,r=-1/0,a=-1/0;for(const e of t)n=Math.min(n,e.x),i=Math.min(i,e.y),r=Math.max(r,e.x),a=Math.max(a,e.y);const o=Math.max(r-n,a-i),s=Math.max(0,Math.floor(-Math.log(o)/Math.LN2)),c=Math.pow(2,s);return new e.CanonicalTileID(s,Math.floor((n+r)/2*c),Math.floor((i+a)/2*c))}(n),this.minzoom=this.maxzoom=this.tileID.z,this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){this._boundsArray=void 0}_prepareData(t){for(const e in this.tiles){const t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture)}if(this._boundsArray)return;const n=e.tileTransform(this.tileID,this.map.transform.projection),[i,r,a,o]=this.coordinates.map(t=>{const i=n.projection.project(t[0],t[1]);return e.getTilePoint(n,i)._round()});this.perspectiveTransform=function(t,n,i,r,a,o,s,c,l,u){const d=Te(0,0,t,0,0,n,t,n),p=Te(i,r,a,o,s,c,l,u);return e.multiply(p,e.adjoint(d,d),p),[p[6]/p[8]*t/e.EXTENT,p[7]/p[8]*n/e.EXTENT]}(this.width,this.height,i.x,i.y,r.x,r.y,o.x,o.y,a.x,a.y);const s=this._boundsArray=new e.StructArrayLayout4i8;s.emplaceBack(i.x,i.y,0,0),s.emplaceBack(r.x,r.y,e.EXTENT,0),s.emplaceBack(o.x,o.y,0,e.EXTENT),s.emplaceBack(a.x,a.y,e.EXTENT,e.EXTENT),this.boundsBuffer&&this.boundsBuffer.destroy(),this.boundsBuffer=t.createVertexBuffer(s,e.boundsAttributes.members),this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;const t=this.map.painter.context,n=t.gl;this.texture?this.texture.update(this.image):(this.texture=new e.Texture(t,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this._prepareData(t)}loadTile(e,t){this.tileID&&this.tileID.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={},t(null)):(e.state="errored",t(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}const Se={vector:class extends e.Evented{constructor(t,n,i,r){if(super(),this.id=t,this.dispatcher=i,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,e.extend(this,e.pick(n,["url","scheme","tileSize","promoteId"])),this._options=e.extend({type:"vector"},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(r),this._tileWorkers={},this._deduped=new e.DedupedRequest}load(){this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=D(this._options,this.map._requestManager,(t,n)=>{this._tileJSONRequest=null,this._loaded=!0,t?this.fire(new e.ErrorEvent(t)):n&&(e.extend(this,n),n.bounds&&(this.tileBounds=new P(n.bounds,this.minzoom,this.maxzoom)),e.postTurnstileEvent(n.tiles,this.map._requestManager._customAccessToken),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}onAdd(e){this.map=e,this.load()}setSourceProperty(e){this._tileJSONRequest&&this._tileJSONRequest.cancel(),e();const t=this.map.style._getSourceCaches(this.id);for(const n of t)n.clearTiles();this.load()}setTiles(e){return this.setSourceProperty(()=>{this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}serialize(){return e.extend({},this._options)}loadTile(t,n){const i=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme)),r={request:this.map._requestManager.transformRequest(i,e.ResourceType.Tile),data:void 0,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:e.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:t.isSymbolTile};if(r.request.collectResourceTiming=this._collectResourceTiming,t.actor&&"expired"!==t.state)"loading"===t.state?t.reloadCallback=n:t.request=t.actor.send("reloadTile",r,a.bind(this));else if(t.actor=this._tileWorkers[i]=this._tileWorkers[i]||this.dispatcher.getActor(),this.dispatcher.ready)t.request=t.actor.send("loadTile",r,a.bind(this),void 0,!0);else{const n=e.loadVectorTile.call({deduped:this._deduped},r,(e,n)=>{e||!n?a.call(this,e):(r.data={cacheControl:n.cacheControl,expires:n.expires,rawData:n.rawData.slice(0)},t.actor&&t.actor.send("loadTile",r,a.bind(this),void 0,!0))},!0);t.request={cancel:n}}function a(i,r){return delete t.request,t.aborted?n(null):i&&404!==i.status?n(i):(r&&r.resourceTiming&&(t.resourceTiming=r.resourceTiming),this.map._refreshExpiredTiles&&r&&t.setExpiryData(r),t.loadVectorData(r,this.map.painter),e.cacheEntryPossiblyAdded(this.dispatcher),n(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.type,source:this.id})}unloadTile(e){e.unloadVectorData(),e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}},raster:Ce,"raster-dem":class extends Ce{constructor(t,n,i,r){super(t,n,i,r),this.type="raster-dem",this.maxzoom=22,this._options=e.extend({type:"raster-dem"},n),this.encoding=n.encoding||"mapbox"}loadTile(t,n){const i=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function r(e,i){e&&(t.state="errored",n(e)),i&&(t.dem=i,t.dem.onDeserialize(),t.needsHillshadePrepare=!0,t.needsDEMTextureUpload=!0,t.state="loaded",n(null))}t.request=e.getImage(this.map._requestManager.transformRequest(i,e.ResourceType.Tile),function(i,a,o,s){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(i)t.state="errored",n(i);else if(a){this.map._refreshExpiredTiles&&t.setExpiryData({cacheControl:o,expires:s});const n=e.window.ImageBitmap&&a instanceof e.window.ImageBitmap&&(null==Ee&&(Ee=e.window.OffscreenCanvas&&new e.window.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof e.window.createImageBitmap),Ee),i=1-(a.width-e.prevPowerOfTwo(a.width))/2;i<1||t.neighboringTiles||(t.neighboringTiles=this._getNeighboringTiles(t.tileID));const c=n?a:e.exported.getImageData(a,i),l={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:c,encoding:this.encoding,padding:i};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",l,r.bind(this),void 0,!0))}}.bind(this))}_getNeighboringTiles(t){const n=t.canonical,i=Math.pow(2,n.z),r=(n.x-1+i)%i,a=0===n.x?t.wrap-1:t.wrap,o=(n.x+1+i)%i,s=n.x+1===i?t.wrap+1:t.wrap,c={};return c[new e.OverscaledTileID(t.overscaledZ,a,n.z,r,n.y).key]={backfilled:!1},c[new e.OverscaledTileID(t.overscaledZ,s,n.z,o,n.y).key]={backfilled:!1},n.y>0&&(c[new e.OverscaledTileID(t.overscaledZ,a,n.z,r,n.y-1).key]={backfilled:!1},c[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},c[new e.OverscaledTileID(t.overscaledZ,s,n.z,o,n.y-1).key]={backfilled:!1}),n.y+1<i&&(c[new e.OverscaledTileID(t.overscaledZ,a,n.z,r,n.y+1).key]={backfilled:!1},c[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y+1).key]={backfilled:!1},c[new e.OverscaledTileID(t.overscaledZ,s,n.z,o,n.y+1).key]={backfilled:!1}),c}unloadTile(e){e.demTexture&&this.map.painter.saveTileTexture(e.demTexture),e.fbo&&(e.fbo.destroy(),delete e.fbo),e.dem&&delete e.dem,delete e.neighboringTiles,e.state="unloaded"}},geojson:class extends e.Evented{constructor(t,n,i,r){super(),this.id=t,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._loaded=!1,this.actor=i.getActor(),this.setEventedParent(r),this._data=n.data,this._options=e.extend({},n),this._collectResourceTiming=n.collectResourceTiming,void 0!==n.maxzoom&&(this.maxzoom=n.maxzoom),n.type&&(this.type=n.type),n.attribution&&(this.attribution=n.attribution),this.promoteId=n.promoteId;const a=e.EXTENT/this.tileSize;this.workerOptions=e.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*a,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*a,extent:e.EXTENT,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?n.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,n.clusterMinPoints||2),extent:e.EXTENT,radius:(void 0!==n.clusterRadius?n.clusterRadius:50)*a,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties,filter:n.filter},n.workerOptions)}onAdd(e){this.map=e,this.setData(this._data)}setData(e){return this._data=e,this._updateWorkerData(),this}getClusterExpansionZoom(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id},t),this}getClusterChildren(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id},t),this}getClusterLeaves(e,t,n,i){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:e,limit:t,offset:n},i),this}
2_updateWorkerData(){if(this._pendingLoad)return void(this._coalesce=!0);this.fire(new e.Event("dataloading",{dataType:"source"})),this._loaded=!1;const t=e.extend({},this.workerOptions),n=this._data;"string"==typeof n?(t.request=this.map._requestManager.transformRequest(e.exported.resolveURL(n),e.ResourceType.Source),t.request.collectResourceTiming=this._collectResourceTiming):t.data=JSON.stringify(n),this._pendingLoad=this.actor.send(this.type+".loadData",t,(t,n)=>{if(this._loaded=!0,this._pendingLoad=null,t)this.fire(new e.ErrorEvent(t));else{const t={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&n&&n.resourceTiming&&n.resourceTiming[this.id]&&(t.resourceTiming=n.resourceTiming[this.id]),this.fire(new e.Event("data",t)),this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(),this._coalesce=!1)})}loaded(){return this._loaded}loadTile(t,n){const i=t.actor?"reloadTile":"loadTile";t.actor=this.actor,t.request=this.actor.send(i,{type:this.type,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:e.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(e,r)=>(delete t.request,t.unloadVectorData(),t.aborted?n(null):e?n(e):(t.loadVectorData(r,this.map.painter,"reloadTile"===i),n(null))),void 0,"loadTile"===i)}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0}unloadTile(e){e.unloadVectorData(),this.actor.send("removeTile",{uid:e.uid,type:this.t
2ype,source:this.id})}onRemove(){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return e.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends ke{constructor(e,t,n,i){super(e,t,n,i),this.roundZoom=!0,this.type="video",this.options=t}load(){this._loaded=!1;const t=this.options;this.urls=[];for(const n of t.urls)this.urls.push(this.map._requestManager.transformRequest(n,e.ResourceType.Source).url);e.getVideo(this.urls,(t,n)=>{this._loaded=!0,t?this.fire(new e.ErrorEvent(t)):n&&(this.video=n,this.video.loop=!0,this.video.setAttribute("playsinline",""),this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){const n=this.video.seekable;t<n.start(0)||t>n.end(0)?this.fire(new e.ErrorEvent(new e.ValidationError("sources."+this.id,null,`Playback for this video can be set only between the ${n.start(0)} and ${n.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const t=this.map.painter.context,n=t.gl;this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new e.Texture(t,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),this.width=this.video.videoWidth,this.height=this.video.videoHeight),this._prepareData(t)}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},image:ke,canvas:class extends ke{constructor(t,n,i,r){super(t,n,i,r),n.coordinates?Array.isArray(n.coordinates)&&4===n.coordinates.length&&!n.coordinates.some(e=>!Array.isArray(e)||2!==e.length||e.some(e=>"number"!=typeof e))||this.fire(new e.ErrorEvent(new e.ValidationError("sources."+t,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+t,null,'missing required property "coordinates"'))),n.animate&&"boolean"!=typeof n.animate&&this.fire(new e.ErrorEvent(new e.ValidationError("sources."+t,null,'optional "animate" property must be a boolean value'))),n.canvas?"string"==typeof n.canvas||n.canvas instanceof e.
vendor: 19,393 bytes, line 2
2window.HTMLCanvasElement||this.fire(new e.ErrorEvent(new e.ValidationError("sources."+t,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+t,null,'missing required property "canvas"'))),this.options=n,this.animate=void 0===n.animate||n.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof e.window.HTMLCanvasElement?this.options.canvas:e.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),this._hasInvalidDimensions())return;if(0===Object.keys(this.tiles).length)return;const n=this.map.painter.context;this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.Texture(n,this.canvas,n.gl.RGBA,{premultiply:!0}),this._prepareData(n)}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}},custom:class extends e.Evented{constructor(t,n,i,r){super(),this.id=t,this.type="custom",this._dataType="raster",this._dispatcher=i,this._implementation=n,this.setEventedParent(r),this.scheme="xyz",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this._loaded=!1,this.roundZoom=!0,this._implementation||this.fire(new e.ErrorEvent(new Error(`Missing implementation for ${this.id} custom source`))),this._implementation.loadTile||this.fire(new e.ErrorEvent(new Error(`Missing loadTile implementation for ${this.id} custom source`))),this._implementation.bounds&&(this.tileBounds=new P(this._implementation.bounds,this.minzoom,this.maxzoom)),n.update=this._update.bind(this),n.coveringTiles=this._coveringTiles.bind(this),e.extend(this,e.pick(n,["dataType","scheme","minzoom","maxzoom","tileSize","attribution","minTileCacheSize","maxTileCacheSize"]))}serialize(){return e.pick(this,["type","scheme","minzoom","maxzoom","tileSize","attribution"])}load(){this._loaded=!0,this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"}))}loaded(){return this._loaded}onAdd(t){this._map=t,this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._implementation.onAdd&&this._implementation.onAdd(t),this.load()}onRemove(e){this._implementation.onRemove&&this._implementation.onRemove(e)}hasTile(e){if(this._implementation.hasTile){const{x:t,y:n,z:i}=e.canonical;return this._implementation.hasTile({x:t,y:n,z:i})}return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(t,n){const{x:i,y:r,z:a}=t.tileID.canonical,o=new e.window.AbortController,s=this._implementation.loadTile({x:i,y:r,z:a},{signal:o.signal});if(!s)return this.loadTileData(t,{width:this.tileSize,height:this.tileSize,data:null}),t.state="loaded",n(null);s.cancel=()=>o.abort(),t.request=s.then(function(i){return delete t.request,t.aborted?(t.state="unloaded",n(null)):i?function(t){return t instanceof e.window.ImageData||t instanceof e.window.ImageBitmap||t instanceof e.window.HTMLCanvasElement}(i)?(this.loadTileData(t,i),t.state="loaded",void n(null)):(t.state="errored",n(new Error(`Can't infer data type for ${this.id}, only raster data supported at the moment`))):(this.loadTileData(t,{width:this.tileSize,height:this.tileSize,data:null}),t.state="loaded",n(null))}.bind(this)).catch(e=>{20!==e.code&&(t.state="errored",n(e))})}loadTileData(e,t){Ce.loadTileData(e,t,this._map.painter)}unloadTileData(e){Ce.unloadTileData(e,this._map.painter)}prepareTile(e){if(!this._implementation.prepareTile)return null;const{x:t,y:n,z:i}=e.tileID.canonical,r=this._implementation.prepareTile({x:t,y:n,z:i});return r?(this.loadTileData(e,r),e.state="loaded",r):null}unloadTile(e,t){if(this.unloadTileData(e),this._implementation.unloadTile){const{x:t,y:n,z:i}=e.tileID.canonical;this._implementation.unloadTile({x:t,y:n,z:i})}t()}abortTile(e,t){e.request&&e.request.cancel&&(e.request.cancel(),delete e.request),t()}hasTransition(){return!1}_coveringTiles(){return this._map.transform.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,roundZoom:this.roundZoom}).map(e=>({x:e.canonical.x,y:e.canonical.y,z:e.canonical.z}))}_update(){this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"}))}}},Ae=function(t,n,i,r){const a=new Se[n.type](t,n,i,r);if(a.id!==t)throw new Error(`Expected Source id to be ${t} instead of ${a.id}`);return e.bindAll(["load","abort","unload","serialize","prepare"],a),a};function Ie(t,n){const i=e.identity([]);return e.scale(i,i,[.5*t.width,.5*-t.height,1]),e.translate(i,i,[1,-1,0]),e.multiply$1(i,i,t.calculateProjMatrix(n.toUnwrapped())),Float32Array.from(i)}function Me(e,t,n,i,r,a,o,s=!1){const c=e.tilesIn(i,o,s);c.sort(Be);const l=[];for(const d of c)l.push({wrappedTileID:d.tile.tileID.wrapped().key,queryResults:d.tile.queryRenderedFeatures(t,n,e._state,d,r,a,Ie(e.transform,d.tile.tileID),s)});const u=function(e){const t={},n={};for(const i of e){const e=i.queryResults,r=i.wrappedTileID,a=n[r]=n[r]||{};for(const n in e){const i=e[n],r=a[n]=a[n]||{},o=t[n]=t[n]||[];for(const e of i)r[e.featureIndex]||(r[e.featureIndex]=!0,o.push(e))}}return t}(l);for(const d in u)u[d].forEach(t=>{const n=t.feature,i=n.layer;i&&"background"!==i.type&&"sky"!==i.type&&(n.source=i.source,i["source-layer"]&&(n.sourceLayer=i["source-layer"]),n.state=void 0!==n.id?e.getFeatureState(i["source-layer"],n.id):{})});return u}function Le(e,t){const n=e.getRenderableIds().map(t=>e.getTileByID(t)),i=[],r={};for(let a=0;a<n.length;a++){const e=n[a],o=e.tileID.canonical.key;r[o]||(r[o]=!0,e.querySourceFeatures(i,t))}return i}function Be(e,t){const n=e.tileID,i=t.tileID;return n.overscaledZ-i.overscaledZ||n.canonical.y-i.canonical.y||n.wrap-i.wrap||n.canonical.x-i.canonical.x}function Re(){return null!=sa.workerClass?new sa.workerClass:new e.window.Worker(sa.workerUrl)}const De="mapboxgl_preloaded_worker_pool";class Pe{constructor(){this.active={}}acquire(e){if(!this.workers)for(this.workers=[];this.workers.length<Pe.workerCount;)this.workers.push(new Re);return this.active[e]=!0,this.workers.slice()}release(e){delete this.active[e],0===this.numActive()&&(this.workers.forEach(e=>{e.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[De]}numActive(){return Object.keys(this.active).length}}let ze;function Fe(){return ze||(ze=new Pe),ze}function Ne(t,n){const i={};for(const e in t)"ref"!==e&&(i[e]=t[e]);return e.refProperties.forEach(e=>{e in n&&(i[e]=n[e])}),i}function Ue(e){e=e.slice();const t=Object.create(null);for(let n=0;n<e.length;n++)t[e[n].id]=e[n];for(let n=0;n<e.length;n++)"ref"in e[n]&&(e[n]=Ne(e[n],t[e[n].ref]));return e}Pe.workerCount=2;const Ve={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight",setTerrain:"setTerrain",setFog:"setFog",setProjection:"setProjection"};function We(e,t,n){n.push({command:Ve.addSource,args:[e,t[e]]})}function qe(e,t,n){t.push({command:Ve.removeSource,args:[e]}),n[e]=!0}function Ge(e,t,n,i){qe(e,n,i),We(e,t,n)}function Ze(e,t,n){let i;for(i in e[n])if(e[n].hasOwnProperty(i)&&"data"!==i&&!r(e[n][i],t[n][i]))return!1;for(i in t[n])if(t[n].hasOwnProperty(i)&&"data"!==i&&!r(e[n][i],t[n][i]))return!1;return!0}function He(e,t,n,i,a,o){let s;for(s in t=t||{},e=e||{})e.hasOwnProperty(s)&&(r(e[s],t[s])||n.push({command:o,args:[i,s,t[s],a]}));for(s in t)t.hasOwnProperty(s)&&!e.hasOwnProperty(s)&&(r(e[s],t[s])||n.push({command:o,args:[i,s,t[s],a]}))}function Xe(e){return e.id}function Ke(e,t){return e[t.id]=t,e}class Ye{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let n=1;n<this.points.length;n++)this._distances[n]=this._distances[n-1]+this.points[n].dist(this.points[n-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(t||0,.5*this.length),this.paddedLength=this.length-2*this.padding}lerp(t){if(1===this.points.length)return this.points[0];t=e.clamp(t,0,1);let n=1,i=this._distances[n];const r=t*this.paddedLength+this.padding;for(;i<r&&n<this._distances.length;)i=this._distances[++n];const a=n-1,o=this._distances[a],s=i-o,c=s>0?(r-o)/s:0;return this.points[a].mult(1-c).add(this.points[n].mult(c))}}class Je{constructor(e,t,n){const i=this.boxCells=[],r=this.circleCells=[];this.xCellCount=Math.ceil(e/n),this.yCellCount=Math.ceil(t/n);for(let a=0;a<this.xCellCount*this.yCellCount;a++)i.push([]),r.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=e,this.height=t,this.xScale=this.xCellCount/e,this.yScale=this.yCellCount/t,this.boxUid=0,this.circleUid=0}keysLength(){return this.boxKeys.length+this.circleKeys.length}insert(e,t,n,i,r){this._forEachCell(t,n,i,r,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(i),this.bboxes.push(r)}insertCircle(e,t,n,i){this._forEachCell(t-i,n-i,t+i,n+i,this._insertCircleCell,this.circleUid++),this.circleKeys.push(e),this.circles.push(t),this.circles.push(n),this.circles.push(i)}_insertBoxCell(e,t,n,i,r,a){this.boxCells[r].push(a)}_insertCircleCell(e,t,n,i,r,a){this.circleCells[r].push(a)}_query(e,t,n,i,r,a){if(n<0||e>this.width||i<0||t>this.height)return!r&&[];const o=[];if(e<=0&&t<=0&&this.width<=n&&this.height<=i){if(r)return!0;for(let e=0;e<this.boxKeys.length;e++)o.push({key:this.boxKeys[e],x1:this.bboxes[4*e],y1:this.bboxes[4*e+1],x2:this.bboxes[4*e+2],y2:this.bboxes[4*e+3]});for(let e=0;e<this.circleKeys.length;e++){const t=this.circles[3*e],n=this.circles[3*e+1],i=this.circles[3*e+2];o.push({key:this.circleKeys[e],x1:t-i,y1:n-i,x2:t+i,y2:n+i})}return a?o.filter(a):o}return this._forEachCell(e,t,n,i,this._queryCell,o,{hitTest:r,seenUids:{box:{},circle:{}}},a),r?o.length>0:o}_queryCircle(e,t,n,i,r){const a=e-n,o=e+n,s=t-n,c=t+n;if(o<0||a>this.width||c<0||s>this.height)return!i&&[];const l=[];return this._forEachCell(a,s,o,c,this._queryCellCircle,l,{hitTest:i,circle:{x:e,y:t,radius:n},seenUids:{box:{},circle:{}}},r),i?l.length>0:l}query(e,t,n,i,r){return this._query(e,t,n,i,!1,r)}hitTest(e,t,n,i,r){return this._query(e,t,n,i,!0,r)}hitTestCircle(e,t,n,i){return this._queryCircle(e,t,n,!0,i)}_queryCell(e,t,n,i,r,a,o,s){const c=o.seenUids,l=this.boxCells[r];if(null!==l){const r=this.bboxes;for(const u of l)if(!c.box[u]){c.box[u]=!0;const l=4*u;if(e<=r[l+2]&&t<=r[l+3]&&n>=r[l+0]&&i>=r[l+1]&&(!s||s(this.boxKeys[u]))){if(o.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[u],x1:r[l],y1:r[l+1],x2:r[l+2],y2:r[l+3]})}}}const u=this.circleCells[r];if(null!==u){const r=this.circles;for(const l of u)if(!c.circle[l]){c.circle[l]=!0;const u=3*l;if(this._circleAndRectCollide(r[u],r[u+1],r[u+2],e,t,n,i)&&(!s||s(this.circleKeys[l]))){if(o.hitTest)return a.push(!0),!0;{const e=r[u],t=r[u+1],n=r[u+2];a.push({key:this.circleKeys[l],x1:e-n,y1:t-n,x2:e+n,y2:t+n})}}}}}_queryCellCircle(e,t,n,i,r,a,o,s){const c=o.circle,l=o.seenUids,u=this.boxCells[r];if(null!==u){const e=this.bboxes;for(const t of u)if(!l.box[t]){l.box[t]=!0;const n=4*t;if(this._circleAndRectCollide(c.x,c.y,c.radius,e[n+0],e[n+1],e[n+2],e[n+3])&&(!s||s(this.boxKeys[t])))return a.push(!0),!0}}const d=this.circleCells[r];if(null!==d){const e=this.circles;for(const t of d)if(!l.circle[t]){l.circle[t]=!0;const n=3*t;if(this._circlesCollide(e[n],e[n+1],e[n+2],c.x,c.y,c.radius)&&(!s||s(this.circleKeys[t])))return a.push(!0),!0}}}_forEachCell(e,t,n,i,r,a,o,s){const c=this._convertToXCellCoord(e),l=this._convertToYCellCoord(t),u=this._convertToXCellCoord(n),d=this._convertToYCellCoord(i);for(let p=c;p<=u;p++)for(let c=l;c<=d;c++)if(r.call(this,e,t,n,i,this.xCellCount*c+p,a,o,s))return}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,n,i,r,a){const o=i-e,s=r-t,c=n+a;return c*c>o*o+s*s}_circleAndRectCollide(e,t,n,i,r,a,o){const s=(a-i)/2,c=Math.abs(e-(i+s));if(c>s+n)return!1;const l=(o-r)/2,u=Math.abs(t-(r+l));if(u>l+n)return!1;if(c<=s||u<=l)return!0;const d=c-s,p=u-l;return d*d+p*p<=n*n}}const Qe=Math.tan(85*Math.PI/180);function $e(t,n,i,r,a,o){const s=e.create();if(i){if("globe"===a.projection.name)e.multiply$1(s,s,e.calculateGlobeLabelMatrix(a,n));else{const e=v([],o);s[0]=e[0],s[1]=e[1],s[4]=e[2],s[5]=e[3]}r||e.rotateZ(s,s,a.angle)}else e.multiply$1(s,a.labelPlaneMatrix,t);return s}function et(t,n,i,r,a,o){if(i){if("globe"===a.projection.name){const s=$e(t,n,i,r,a,o);return e.invert(s,s),e.multiply$1(s,t,s),s}{const n=e.clone(t),i=e.identity([]);return i[0]=o[0],i[1]=o[1],i[4]=o[2],i[5]=o[3],e.multiply$1(n,n,i),r||e.rotateZ(n,n,-a.angle),n}}return a.glCoordMatrix}function tt(t,n,i=0){const r=[t.x,t.y,i,1];i?e.transformMat4$1(r,r,n):mt(r,r,n);const a=r[3];return{point:new e.pointGeometry(r[0]/a,r[1]/a),signedDistanceFromCamera:a}}function nt(t,n){const i=[t[0],t[1],t[2],1];e.transformMat4$1(i,i,n);const r=i[3];return{point:new e.pointGeometry(i[0]/r,i[1]/r),signedDistanceFromCamera:r}}function it(e,t){return Math.min(.5+e/t*.5,1.5)}function rt(e,t){const n=e[0]/e[3],i=e[1]/e[3];return n>=-t[0]&&n<=t[0]&&i>=-t[1]&&i<=t[1]}function at(t,n,i,r,a,o,s,c,l,u){const d=i.transform,p=r?t.textSizeData:t.iconSizeData,h=e.evaluateSizeForZoom(p,i.transform.zoom),m=[256/i.width*2+1,256/i.height*2+1],f=r?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;f.clear();const g=t.lineVertexArray,b=r?t.text.placedSymbolArray:t.icon.placedSymbolArray,v=i.transform.width/i.transform.height;let y=!1;for(let x=0;x<b.length;x++){const r=b.get(x);if(r.writingMode!==e.WritingMode.vertical||y||0!==x&&b.get(x-1).writingMode===e.WritingMode.horizontal||(y=!0),(r.hidden||r.writingMode===e.WritingMode.vertical)&&!y){ht(r.numGlyphs,f);continue}y=!1;const _=new e.pointGeometry(r.tileAnchorX,r.tileAnchorY),w=l?l(_):[0,0,0],O=d.projection.projectTilePoint(_.x,_.y,u.canonical),j=[O.x+w[0],O.y+w[1],O.z+w[2]],C=[...j,1];if(e.transformMat4$1(C,C,n),!rt(C,m)){ht(r.numGlyphs,f);continue}const E=it(i.transform.cameraToCenterDistance,C[3]),T=e.evaluateSizeForFeature(p,h,r),k=s?T/E:T*E,S=tt(new e.pointGeometry(j[0],j[1]),a,j[2]);if(S.signedDistanceFromCamera<=0){ht(r.numGlyphs,f);continue}let A={};const I=s?null:l,M=ct(r,k,!1,c,n,a,o,t.glyphOffsetArray,g,f,S.point,_,A,v,I,d.projection,u);y=M.useVertical,I&&M.needsFlipping&&(A={}),(M.notEnoughRoom||y||M.needsFlipping&&ct(r,k,!0,c,n,a,o,t.glyphOffsetArray,g,f,S.point,_,A,v,I,d.projection,u).notEnoughRoom)&&ht(r.numGlyphs,f)}r?t.text.dynamicLayoutVertexBuffer.updateData(f):t.icon.dynamicLayoutVertexBuffer.updateData(f)}function ot(e,t,n,i,r,a,o,s,c,l,u,d,p,h,m){const f=s.glyphStartIndex+s.numGlyphs,g=s.lineStartIndex,b=s.lineStartIndex+s.lineLength,v=t.getoffsetX(s.glyphStartIndex),y=t.getoffsetX(f-1),x=dt(e*v,n,i,r,a,o,s.segment,g,b,c,l,u,d,p,!0,h,m);if(!x)return null;const _=dt(e*y,n,i,r,a,o,s.segment,g,b,c,l,u,d,p,!0,h,m);return _?{first:x,last:_}:null}function st(t,n,i,r){return t.writingMode===e.WritingMode.horizontal&&Math.abs(i.y-n.y)>Math.abs(i.x-n.x)*r?{useVertical:!0}:t.writingMode===e.WritingMode.vertical?n.y<i.y?{needsFlipping:!0}:null:0!==t.flipState&&function(e,t,n){const i=(t.x-e.x)*n;return 0===i||Math.abs((t.y-e.y)/i)>Qe}(n,i,r)?1===t.flipState?{needsFlipping:!0}:null:n.x>i.x?{needsFlipping:!0}:null}function ct(t,n,i,r,a,o,s,c,l,u,d,p,h,m,f,g,b){const v=n/24,y=t.lineOffsetX*v,x=t.lineOffsetY*v;let _;if(t.numGlyphs>1){const e=t.glyphStartIndex+t.numGlyphs,n=t.lineStartIndex,a=t.lineStartIndex+t.lineLength,u=ot(v,c,y,x,i,d,p,t,l,o,h,f,!1,g,b);if(!u)return{notEnoughRoom:!0};const w=tt(u.first.point,s).point,O=tt(u.last.point,s).point;if(r&&!i){const e=st(t,w,O,m);if(t.flipState=e&&e.needsFlipping?1:2,e)return e}_=[u.first];for(let r=t.glyphStartIndex+1;r<e-1;r++)_.push(dt(v*c.getoffsetX(r),y,x,i,d,p,t.segment,n,a,l,o,h,f,!1,!1,g,b));_.push(u.last)}else{if(r&&!i){const n=tt(p,a).point,i=t.lineStartIndex+t.segment+1,r=new e.pointGeometry(l.getx(i),l.gety(i)),o=tt(r,a),s=st(t,n,o.signedDistanceFromCamera>0?o.point:ut(p,r,n,1,a,void 0,g,b.canonical),m);if(t.flipState=s&&s.needsFlipping?1:2,s)return s}const n=dt(v*c.getoffsetX(t.glyphStartIndex),y,x,i,d,p,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,l,o,h,f,!1,!1,g,b);if(!n)return{notEnoughRoom:!0};_=[n]}for(const w of _)e.addDynamicAttributes(u,w.point,w.angle);return{}}function lt(t,n,i,r,a){const o=r.projectTilePoint(t.x,t.y,n);if(!a)return tt(o,i,o.z);const s=a(t);return tt(new e.pointGeometry(o.x+s[0],o.y+s[1]),i,o.z+s[2])}function ut(e,t,n,i,r,a,o,s){const c=lt(e.add(e.sub(t)._unit()),s,r,o,a).point,l=n.sub(c);return n.add(l._mult(i/l.mag()))}function dt(t,n,i,r,a,o,s,c,l,u,d,p,h,m,f,g,b){const v=r?t-n:t+n;let y=v>0?1:-1,x=0;r&&(y*=-1,x=Math.PI),y<0&&(x+=Math.PI);let _=y>0?c+s:c+s+1,w=a,O=a,j=0,C=0;const E=Math.abs(v),T=[],k=[];let S=o;const A=()=>{const t=_-y;return 0===j?o:new e.pointGeometry(u.getx(t),u.gety(t))},I=()=>ut(A(),S,O,E-j+1,d,h,g,b.canonical);for(;j+C<=E;){if(_+=y,_<c||_>=l)return null;if(O=w,T.push(w),m&&k.push(S||A()),w=p[_],void 0===w){S=new e.pointGeometry(u.getx(_),u.gety(_));const t=lt(S,b.canonical,d,g,h);w=t.signedDistanceFromCamera>0?p[_]=t.point:I()}else S=null;j+=C,C=O.dist(w)}f&&h&&(S=S||new e.pointGeometry(u.getx(_),u.gety(_)),p[_]=w=void 0===p[_]?w:I(),C=O.dist(w));const M=(E-j)/C,L=w.sub(O),B=L.mult(M)._add(O);i&&B._add(L._unit()._perp()._mult(i*y));const R=x+Math.atan2(w.y-O.y,w.x-O.x);return T.push(B),m&&(S=S||new e.pointGeometry(u.getx(_),u.gety(_)),k.push(function(t,n,i){const r=1-i;return new e.pointGeometry(t.x*r+n.x*i,t.y*r+n.y*i)}(k.length>0?k[k.length-1]:S,S,M))),{point:B,angle:R,path:T,tilePath:k}}const pt=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ht(e,t){for(let n=0;n<e;n++){const e=t.length;t.resize(e+4),t.float32.set(pt,3*e)}}function mt(e,t,n){const i=t[0],r=t[1];return e[0]=n[0]*i+n[4]*r+n[12],e[1]=n[1]*i+n[5]*r+n[13],e[3]=n[3]*i+n[7]*r+n[15],e}const ft=100;class gt{constructor(e,t,n=new Je(e.width+200,e.height+200,25),i=new Je(e.width+200,e.height+200,25)){this.transform=e,this.grid=n,this.ignoredGrid=i,this.pitchfactor=Math.cos(e._pitch)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+ft,this.screenBottomBoundary=e.he
2ight+ft,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200,this.fogState=t}placeCollisionBox(e,t,n,i,r,a,o){let s=t.projectedAnchorX,c=t.projectedAnchorY,l=t.projectedAnchorZ;const u=t.elevation,d=t.tileID;if(u&&d){const e=this.transform.projection.upVector(d.canonical,t.tileAnchorX,t.tileAnchorY),n=this.transform.projection.upVectorScale(d.canonical,this.transform.center.lat,this.transform.worldSize).metersToTile;s+=e[0]*u*n,c+=e[1]*u*n,l+=e[2]*u*n}const p=this.projectAndGetPerspectiveRatio(a,[s,c,l],t.tileID,"globe"===this.transform.projection.name||!!u||this.transform.pitch>0),h=r*p.perspectiveRatio,m=(t.x1*e+n.x-t.padding)*h+p.point.x,f=(t.y1*e+n.y-t.padding)*h+p.point.y,g=(t.x2*e+n.x+t.padding)*h+p.point.x,b=(t.y2*e+n.y+t.padding)*h+p.point.y,v=p.perspectiveRatio<=.55||p.occluded;return!this.isInsideGrid(m,f,g,b)||!i&&this.grid.hitTest(m,f,g,b,o)||v?{box:[],offscreen:!1,occluded:p.occluded}:{box:[m,f,g,b],offscreen:this.isOffscreen(m,f,g,b),occluded:!1}}placeCollisionCircles(t,n,i,r,a,o,s,c,l,u,d,p,h,m){const f=[],g=this.transform.elevation,b=g?g.getAtTileOffsetFunc(m,this.transform.center.lat,this.transform.worldSize,this.transform.projection):e=>[0,0,0],v=new e.pointGeometry(n.tileAnchorX,n.tileAnchorY),y=this.transform.projection.projectTilePoint(n.tileAnchorX,n.tileAnchorY,m.canonical),x=b(v),_=[y.x+x[0],y.y+x[1],y.z+x[2]],w=this.projectAndGetPerspectiveRatio(o,[_[0],_[1],_[2]],m,"globe"===this.transform.projection.name||!!g||this.transform.pitch>0),{perspectiveRatio:O}=w,j=(u?a/O:a*O)/e.ONE_EM,C=tt(new e.pointGeometry(_[0],_[1]),s,_[2]).point,E=w.signedDistanceFromCamera>0?ot(j,r,n.lineOffsetX*j,n.lineOffsetY*j,!1,C,v,n,i,s,{},g&&!u?b:null,u&&!!g,this.transform.projection,m):null;let T=!1,k=!1,S=!0;if(E&&!w.occluded){const n=.5*p*O+h,i=new e.pointGeometry(-100,-100),r=new e.pointGeometry(this.screenRightBoundary,this.screenBottomBoundary),a=new Ye,o=E.first,s=E.last;let u=[];for(let e=o.path.length-1;e>=1;e--)u.push(o.path[e]);for(let e=1;e<s.path.length;e++)u.push(s.path[e]);const m=2.5*n;if(c){const e=u.map(g?(e,t)=>{const n=b(t<o.path.length-1?o.tilePath[o.path.length-1-t]:s.tilePath[t-o.path.length+2]);return tt(e,c,n[2])}:e=>tt(e,c));u=e.some(e=>e.signedDistanceFromCamera<=0)?[]:e.map(e=>e.point)}let v=[];if(u.length>0){const t=u[0].clone(),n=u[0].clone();for(let e=1;e<u.length;e++)t.x=Math.min(t.x,u[e].x),t.y=Math.min(t.y,u[e].y),n.x=Math.max(n.x,u[e].x),n.y=Math.max(n.y,u[e].y);v=t.x>=i.x&&n.x<=r.x&&t.y>=i.y&&n.y<=r.y?[u]:n.x<i.x||t.x>r.x||n.y<i.y||t.y>r.y?[]:e.clipLine([u],i.x,i.y,r.x,r.y)}for(const e of v){a.reset(e,.25*n);let i=0;i=a.length<=.5*n?1:Math.ceil(a.paddedLength/m)+1;for(let e=0;e<i;e++){const r=e/Math.max(i-1,1),o=a.lerp(r),s=o.x+ft,c=o.y+ft;f.push(s,c,n,0);const u=s-n,p=c-n,h=s+n,m=c+n;if(S=S&&this.isOffscreen(u,p,h,m),k=k||this.isInsideGrid(u,p,h,m),!t&&this.grid.hitTestCircle(s,c,n,d)&&(T=!0,!l))return{circles:[],offscreen:!1,collisionDetected:T,occluded:!1}}}}return{circles:!l&&T||!k?[]:f,offscreen:S,collisionDetected:T,occluded:w.occluded}}queryRenderedSymbols(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};const n=[];let i=1/0,r=1/0,a=-1/0,o=-1/0;for(const u of t){const t=new e.pointGeometry(u.x+ft,u.y+ft);i=Math.min(i,t.x),r=Math.min(r,t.y),a=Math.max(a,t.x),o=Math.max(o,t.y),n.push(t)}const s=this.grid.query(i,r,a,o).concat(this.ignoredGrid.query(i,r,a,o)),c={},l={};for(const u of s){const t=u.key;if(void 0===c[t.bucketInstanceId]&&(c[t.bucketInstanceId]={}),c[t.bucketInstanceId][t.featureIndex])continue;const i=[new e.pointGeometry(u.x1,u.y1),new e.pointGeometry(u.x2,u.y1),new e.pointGeometry(u.x2,u.y2),new e.pointGeometry(u.x1,u.y2)];e.polygonIntersectsPolygon(n,i)&&(c[t.bucketInstanceId][t.featureIndex]=!0,void 0===l[t.bucketInstanceId]&&(l[t.bucketInstanceId]=[]),l[t.bucketInstanceId].push(t.featureIndex))}return l}insertCollisionBox(e,t,n,i,r){(t?this.ignoredGrid:this.grid).insert({bucketInstanceId:n,featureIndex:i,collisionGroupID:r},e[0],e[1],e[2],e[3])}insertCollisionCircles(e,t,n,i,r){const a=t?this.ignoredGrid:this.grid,o={bucketInstanceId:n,featureIndex:i,collisionGroupID:r};for(let s=0;s<e.length;
vendor: 23,723 bytes, line 2
2s+=4)a.insertCircle(o,e[s],e[s+1],e[s+2])}projectAndGetPerspectiveRatio(t,n,i,r){const a=[n[0],n[1],n[2],1];let o=!1;return n[2]||this.transform.pitch>0?(e.transformMat4$1(a,a,t),this.fogState&&i&&(o=function(t,n,i,r,a,o){const s=o.calculateFogTileMatrix(a),c=[n,i,r];return e.transformMat4(c,c,s),T(t,c,o.pitch,o._fov)}(this.fogState,n[0],n[1],n[2],i.toUnwrapped(),this.transform)>.9)):mt(a,a,t),{point:new e.pointGeometry((a[0]/a[3]+1)/2*this.transform.width+ft,(-a[1]/a[3]+1)/2*this.transform.height+ft),perspectiveRatio:Math.min(.5+this.transform.cameraToCenterDistance/a[3]*.5,1.5),signedDistanceFromCamera:a[3],occluded:r&&a[2]>a[3]||o}}isOffscreen(e,t,n,i){return n<ft||e>=this.screenRightBoundary||i<ft||t>this.screenBottomBoundary}isInsideGrid(e,t,n,i){return n>=0&&e<this.gridRightBoundary&&i>=0&&t<this.gridBottomBoundary}getViewportMatrix(){const t=e.identity([]);return e.translate(t,t,[-100,-100,0]),t}}class bt{constructor(e,t,n,i){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):i&&n?1:0,this.placed=n}isHidden(){return 0===this.opacity&&!this.placed}}class vt{constructor(e,t,n,i,r,a=!1){this.text=new bt(e?e.text:null,t,n,r),this.icon=new bt(e?e.icon:null,t,i,r),this.clipped=a}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class yt{constructor(e,t,n,i=!1){this.text=e,this.icon=t,this.skipFade=n,this.clipped=i}}class xt{constructor(){this.invProjMatrix=e.create(),this.viewportMatrix=e.create(),this.circles=[]}}class _t{constructor(e,t,n,i,r){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=n,this.bucketIndex=i,this.tileID=r}}class wt{constructor(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}}get(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){const t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:e=>e.collisionGroupID===t}}return this.collisionGroups[e]}}function Ot(t,n,i,r,a){const{horizontalAlign:o,verticalAlign:s}=e.getAnchorAlignment(t),c=-(o-.5)*n,l=-(s-.5)*i,u=e.evaluateVariableOffset(t,r);return new e.pointGeometry(c+u[0]*a,l+u[1]*a)}function jt(t,n,i,r,a){const o=new e.pointGeometry(t,n);return i&&o._rotate(r?a:-a),o}class Ct{constructor(e,t,n,i,r){this.transform=e.clone(),this.collisionIndex=new gt(this.transform,r),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=t,this.retainedQueryData={},this.collisionGroups=new wt(n),this.collisionCircleArrays={},this.prevPlacement=i,i&&(i.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(t,n,i,r){const a=i.getBucket(n),o=i.latestFeatureIndex;if(!a||!o||n.id!==a.layerIds[0])return;const s=a.layers[0].layout,c=i.collisionBoxArray,l=Math.pow(2,this.transform.zoom-i.tileID.overscaledZ),u=i.tileSize/e.EXTENT,d=i.tileID.toUnwrapped(),p=this.transform.calculateProjMatrix(d),h="map"===s.get("text-pitch-alignment"),m="map"===s.get("text-rotation-alignment");n.compileFilter();const f=n.dynamicFilter(),g=n.dynamicFilterNeedsFeature(),b=this.transform.calculatePixelsToTileUnitsMatrix(i),v=$e(p,i.tileID.canonical,h,m,this.transform,b);let y=null;if(h){const t=et(p,i.tileID.canonical,h,m,this.transform,b);y=e.multiply$1([],this.transform.labelPlaneMatrix,t)}let x=null;f&&i.latestFeatureIndex&&(x={unwrappedTileID:d,dynamicFilter:f,dynamicFilterNeedsFeature:g,featureIndex:i.latestFeatureIndex}),this.retainedQueryData[a.bucketInstanceId]=new _t(a.bucketInstanceId,o,a.sourceLayerIndex,a.index,i.tileID);const _={bucket:a,layout:s,posMatrix:p,textLabelPlaneMatrix:v,labelToScreenMatrix:y,clippingData:x,scale:l,textPixelRatio:u,holdingForFade:i.holdingForFade(),collisionBoxArray:c,partiallyEvaluatedTextSize:e.evaluateSizeForZoom(a.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:e.evaluateSizeForZoom(a.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(a.sourceID)};if(r)for(const e of a.sortKeyRanges){const{sortKey:n,symbolInstanceStart:i,symbolInstanceEnd:r}=e;t.push({sortKey:n,symbolInstanceStart:i,symbolInstanceEnd:r,parameters:_})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:_})}attemptAnchorPlacement(e,t,n,i,r,a,o,s,c,l,u,d,p,h,m,f,g,b){const v=[d.textOffset0,d.textOffset1],y=Ot(e,n,i,v,r),x=this.collisionIndex.placeCollisionBox(r,t,jt(y.x,y.y,a,o,this.transform.angle),u,s,c,l.predicate);if((!f||0!==this.collisionIndex.placeCollisionBox(h.getSymbolInstanceIconSize(b,this.transform.zoom,p),f,jt(y.x,y.y,a,o,this.transform.angle),u,s,c,l.predicate).box.length)&&x.box.length>0){let t;return this.prevPlacement&&this.prevPlacement.variableOffsets[d.crossTileID]&&this.prevPlacement.placements[d.crossTileID]&&this.prevPlacement.placements[d.crossTileID].text&&(t=this.prevPlacement.variableOffsets[d.crossTileID].anchor),this.variableOffsets[d.crossTileID]={textOffset:v,width:n,height:i,anchor:e,textScale:r,prevAnchor:t},this.markUsedJustification(h,e,d,m),h.allowVerticalPlacement&&(this.markUsedOrientation(h,m,d),this.placedOrientations[d.crossTileID]=m),{shift:y,placedGlyphBoxes:x}}}placeLayerBucketPart(t,n,i,r){const{bucket:a,layout:o,posMatrix:s,textLabelPlaneMatrix:c,labelToScreenMatrix:l,clippingData:u,textPixelRatio:d,holdingForFade:p,collisionBoxArray:h,partiallyEvaluatedTextSize:m,partiallyEvaluatedIconSize:f,collisionGroup:g}=t.parameters,b=o.get("text-optional"),v=o.get("icon-optional"),y=o.get("text-allow-overlap"),x=o.get("icon-allow-overlap"),_="map"===o.get("text-rotation-alignment"),w="map"===o.get("text-pitch-alignment"),O="none"!==o.get("icon-text-fit"),j="viewport-y"===o.get("symbol-z-order");let C=y&&(x||!a.hasIconData()||v),E=x&&(y||!a.hasTextData()||b);!a.collisionArrays&&h&&a.deserializeCollisionBoxes(h),i&&r&&a.updateCollisionDebugBuffers(this.transform.zoom,h);const T=(t,r,h)=>{if(u){const i={zoom:this.transform.zoom,pitch:this.transform.pitch};let r=null;if(u.dynamicFilterNeedsFeature){const e=this.retainedQueryData[a.bucketInstanceId];r=u.featureIndex.loadFeature({featureIndex:t.featureIndex,bucketIndex:e.bucketIndex,sourceLayerIndex:e.sourceLayerIndex,layoutVertexArrayOffset:0})}if(!(0,u.dynamicFilter)(i,r,this.retainedQueryData[a.bucketInstanceId].tileID.canonical,new e.pointGeometry(t.tileAnchorX,t.tileAnchorY),this.transform.calculateDistanceTileData(u.unwrappedTileID)))return this.placements[t.crossTileID]=new yt(!1,!1,!1,!0),void(n[t.crossTileID]=!0)}if(n[t.crossTileID])return;if(p)return void(this.placements[t.crossTileID]=new yt(!1,!1,!1));let j=!1,T=!1,k=!0,S=!1,A=!1,I=null,M={box:null,offscreen:null,occluded:null},L={box:null,offscreen:null,occluded:null},B=null,R=null,D=null,P=0,z=0,F=0;h.textFeatureIndex?P=h.textFeatureIndex:t.useRuntimeCollisionCircles&&(P=t.featureIndex),h.verticalTextFeatureIndex&&(z=h.verticalTextFeatureIndex);const N=e=>{e.tileID=this.retainedQueryData[a.bucketInstanceId].tileID,(this.transform.elevation||e.elevation)&&(e.elevation=this.transform.elevation?this.transform.elevation.getAtTileOffset(this.retainedQueryData[a.bucketInstanceId].tileID,e.tileAnchorX,e.tileAnchorY):0)},U=h.textBox;if(U){N(U);const n=n=>{let i=e.WritingMode.horizontal;if(a.allowVerticalPlacement&&!n&&this.prevPlacement){const e=this.prevPlacement.placedOrientations[t.crossTileID];e&&(this.placedOrientations[t.crossTileID]=e,i=e,this.markUsedOrientation(a,i,t))}return i},i=(n,i)=>{if(a.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&h.verticalTextBox){for(const t of a.writingModes)if(t===e.WritingMode.vertical?(M=i(),L=M):M=n(),M&&M.box&&M.box.length)break}else M=n()};if(o.get("text-variable-anchor")){let c=o.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[t.crossTileID]){const e=this.prevPlacement.variableOffsets[t.crossTileID];c.indexOf(e.anchor)>0&&(c=c.filter(t=>t!==e.anchor),c.unshift(e.anchor))}const l=(e,n,i)=>{const o=a.getSymbolInstanceTextSize(m,t,this.transform.zoom,r),l=(e.x2-e.x1)*o+2*e.padding,u=(e.y2-e.y1)*o+2*e.padding,p=O&&!x?n:null;p&&N(p);let h={box:[],offscreen:!1,occluded:!1};const b=y?2*c.length:c.length;for(let v=0;v<b;++v){const n=this.attemptAnchorPlacement(c[v%c.length],e,l,u,o,_,w,d,s,g,v>=c.length,t,r,a,i,p,m,f);if(n&&(h=n.placedGlyphBoxes,h&&h.box&&h.box.length)){j=!0,I=n.shift;break}}return h};i(()=>l(U,h.iconBox,e.WritingMode.horizontal),()=>{const n=h.verticalTextBox;return n&&N(n),a.allowVerticalPlacement&&!(M&&M.box&&M.box.length)&&t.numVerticalGlyphVertices>0&&n?l(n,h.verticalIconBox,e.WritingMode.vertical):{box:null,offscreen:null,occluded:null}}),M&&(j=M.box,k=M.offscreen,S=M.occluded);const u=n(M&&M.box);if(!j&&this.prevPlacement){const e=this.prevPlacement.variableOffsets[t.crossTileID];e&&(this.variableOffsets[t.crossTileID]=e,this.markUsedJustification(a,e.anchor,t,u))}}else{const o=(n,i)=>{const o=a.getSymbolInstanceTextSize(m,t,this.transform.zoom,r),c=this.collisionIndex.placeCollisionBox(o,n,new e.pointGeometry(0,0),y,d,s,g.predicate);return c&&c.box&&c.box.length&&(this.markUsedOrientation(a,i,t),this.placedOrientations[t.crossTileID]=i),c};i(()=>o(U,e.WritingMode.horizontal),()=>{const n=h.verticalTextBox;return a.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&n?(N(n),o(n,e.WritingMode.vertical)):{box:null,offscreen:null,occluded:null}}),n(M&&M.box&&M.box.length)}}if(B=M,j=B&&B.box&&B.box.length>0,k=B&&B.offscreen,S=B&&B.occluded,t.useRuntimeCollisionCircles){const n=a.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex>=0?t.centerJustifiedTextSymbolIndex:t.verticalPlacedTextSymbolIndex),r=e.evaluateSizeForFeature(a.textSizeData,m,n),u=o.get("text-padding");R=this.collisionIndex.placeCollisionCircles(y,n,a.lineVertexArray,a.glyphOffsetArray,r,s,c,l,i,w,g.predicate,t.collisionCircleDiameter*r/e.ONE_EM,u,this.retainedQueryData[a.bucketInstanceId].tileID),j=y||R.circles.length>0&&!R.collisionDetected,k=k&&R.offscreen,S=R.occluded}if(h.iconFeatureIndex&&(F=h.iconFeatureIndex),h.iconBox){const t=t=>{N(t);const n=O&&I?jt(I.x,I.y,_,w,this.transform.angle):new e.pointGeometry(0,0),i=a.getSymbolInstanceIconSize(f,this.transform.zoom,r);return this.collisionIndex.placeCollisionBox(i,t,n,x,d,s,g.predicate)};L&&L.box&&L.box.length&&h.verticalIconBox?(D=t(h.verticalIconBox),T=D.box.length>0):(D=t(h.iconBox),T=D.box.length>0),k=k&&D.offscreen,A=D.occluded}const V=b||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,W=v||0===t.numIconVertices;if(V||W?W?V||(T=T&&j):j=T&&j:T=j=T&&j,j&&B&&B.box&&this.collisionIndex.insertCollisionBox(B.box,o.get("text-ignore-placement"),a.bucketInstanceId,L&&L.box&&z?z:P,g.ID),T&&D&&this.collisionIndex.insertCollisionBox(D.box,o.get("icon-ignore-placement"),a.bucketInstanceId,F,g.ID),R&&(j&&this.collisionIndex.insertCollisionCircles(R.circles,o.get("text-ignore-placement"),a.bucketInstanceId,P,g.ID),i)){const e=a.bucketInstanceId;let t=this.collisionCircleArrays[e];void 0===t&&(t=this.collisionCircleArrays[e]=new xt);for(let n=0;n<R.circles.length;n+=4)t.circles.push(R.circles[n+0]),t.circles.push(R.circles[n+1]),t.circles.push(R.circles[n+2]),t.circles.push(R.collisionDetected?1:0)}const q="globe"!==this.transform.projection.name;C=C&&(q||!S),E=E&&(q||!A),this.placements[t.crossTileID]=new yt(j||C,T||E,k||a.justReloaded),n[t.crossTileID]=!0};if(j){const e=a.getSortedSymbolIndexes(this.transform.angle);for(let t=e.length-1;t>=0;--t){const n=e[t];T(a.symbolInstances.get(n),n,a.collisionArrays[n])}}else for(let e=t.symbolInstanceStart;e<t.symbolInstanceEnd;e++)T(a.symbolInstances.get(e),e,a.collisionArrays[e]);if(i&&a.bucketInstanceId in this.collisionCircleArrays){const t=this.collisionCircleArrays[a.bucketInstanceId];e.invert(t.invProjMatrix,s),t.viewportMatrix=this.collisionIndex.getViewportMatrix()}a.justReloaded=!1}markUsedJustification(t,n,i,r){let a;a=r===e.WritingMode.vertical?i.verticalPlacedTextSymbolIndex:{left:i.leftJustifiedTextSymbolIndex,center:i.centerJustifiedTextSymbolIndex,right:i.rightJustifiedTextSymbolIndex}[e.getAnchorJustification(n)];const o=[i.leftJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.rightJustifiedTextSymbolIndex,i.verticalPlacedTextSymbolIndex];for(const e of o)e>=0&&(t.text.placedSymbolArray.get(e).crossTileID=a>=0&&e!==a?0:i.crossTileID)}markUsedOrientation(t,n,i){const r=n===e.WritingMode.horizontal||n===e.WritingMode.horizontalOnly?n:0,a=n===e.WritingMode.vertical?n:0,o=[i.leftJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.rightJustifiedTextSymbolIndex];for(const e of o)t.text.placedSymbolArray.get(e).placedOrientation=r;i.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(i.verticalPlacedTextSymbolIndex).placedOrientation=a)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;const t=this.prevPlacement;let n=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;const i=t?t.symbolFadeChange(e):1,r=t?t.opacities:{},a=t?t.variableOffsets:{},o=t?t.placedOrientations:{};for(const s in this.placements){const e=this.placements[s],t=r[s];t?(this.opacities[s]=new vt(t,i,e.text,e.icon,null,e.clipped),n=n||e.text!==t.text.placed||e.icon!==t.icon.placed):(this.opacities[s]=new vt(null,i,e.text,e.icon,e.skipFade,e.clipped),n=n||e.text||e.icon)}for(const s in r){const e=r[s];if(!this.opacities[s]){const t=new vt(e,i,!1,!1);t.isHidden()||(this.opacities[s]=t,n=n||e.text.placed||e.icon.placed)}}for(const s in a)this.variableOffsets[s]||!this.opacities[s]||this.opacities[s].isHidden()||(this.variableOffsets[s]=a[s]);for(const s in o)this.placedOrientations[s]||!this.opacities[s]||this.opacities[s].isHidden()||(this.placedOrientations[s]=o[s]);n?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t){const n={};for(const i of t){const t=i.getBucket(e);t&&i.latestFeatureIndex&&e.id===t.layerIds[0]&&this.updateBucketOpacities(t,n,i.collisionBoxArray)}}updateBucketOpacities(t,n,i){t.hasTextData()&&t.text.opacityVertexArray.clear(),t.hasIconData()&&t.icon.opacityVertexArray.clear(),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();const r=t.layers[0].layout,a=!!t.layers[0].dynamicFilter(),o=new vt(null,0,!1,!1,!0),s=r.get("text-allow-overlap"),c=r.get("icon-allow-overlap"),l=r.get("text-variable-anchor"),u="map"===r.get("text-rotation-alignment"),d="map"===r.get("text-pitch-alignment"),p="none"!==r.get("icon-text-fit"),h=new vt(null,0,s&&(c||!t.hasIconData()||r.get("icon-optional")),c&&(s||!t.hasTextData()||r.get("text-optional")),!0);!t.collisionArrays&&i&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(i);const m=(e,t,n)=>{for(let i=0;i<t/4;i++)e.opacityVertexArray.emplaceBack(n)};let f=0;for(let g=0;g<t.symbolInstances.length;g++){const i=t.symbolInstances.get(g),{numHorizontalGlyphVertices:r,numVerticalGlyphVertices:s,crossTileID:c}=i;let b=this.opacities[c];n[c]?b=o:b||(b=h,this.opacities[c]=b),n[c]=!0;const v=r>0||s>0,y=i.numIconVertices>0,x=this.placedOrientations[i.crossTileID],_=x===e.WritingMode.vertical,w=x===e.WritingMode.horizontal||x===e.WritingMode.horizontalOnly;if(!v&&!y||b.isHidden()||f++,v){const e=Bt(b.text);m(t.text,r,_?Rt:e),m(t.text,s,w?Rt:e);const n=b.text.isHidden();[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach(e=>{e>=0&&(t.text.placedSymbolArray.get(e).hidden=n||_?1:0)}),i.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(i.verticalPlacedTextSymbolIndex).hidden=n||w?1:0);const a=this.variableOffsets[i.crossTileID];a&&this.markUsedJustification(t,a.anchor,i,x);const o=this.placedOrientations[i.crossTileID];o&&(this.markUsedJustification(t,"left",i,o),this.markUsedOrientation(t,o,i))}if(y){const e=Bt(b.icon);i.placedIconSymbolIndex>=0&&(m(t.icon,i.numIconVertices,_?Rt:e),t.icon.placedSymbolArray.get(i.placedIconSymbolIndex).hidden=b.icon.isHidden()),i.verticalPlacedIconSymbolIndex>=0&&(m(t.icon,i.numVerticalIconVertices,w?Rt:e),t.icon.placedSymbolArray.get(i.verticalPlacedIconSymbolIndex).hidden=b.icon.isHidden())}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){const n=t.collisionArrays[g];if(n){let i=new e.pointGeometry(0,0),r=!0;if(n.textBox||n.verticalTextBox){if(l){const e=this.variableOffsets[c];e?(i=Ot(e.anchor,e.width,e.height,e.textOffset,e.textScale),u&&i._rotate(d?this.transform.angle:-this.transform.angle)):r=!1}a&&(r=!b.clipped),n.textBox&&Et(t.textCollisionBox.collisionVertexArray,b.text.placed,!r||_,i.x,i.y),n.verticalTextBox&&Et(t.textCollisionBox.collisionVertexArray,b.text.placed,!r||w,i.x,i.y)}const o=r&&Boolean(!w&&n.verticalIconBox);n.iconBox&&Et(t.iconCollisionBox.collisionVertexArray,b.icon.placed,o,p?i.x:0,p?i.y:0),n.verticalIconBox&&Et(t.iconCollisionBox.collisionVertexArray,b.icon.placed,!o,p?i.x:0,p?i.y:0)}}}if(t.fullyClipped=0===f,t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.bucketInstanceId in this.collisionCircleArrays){const e=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=e.invProjMatrix,t.placementViewportMatrix=e.viewportMatrix,t.collisionCircleArray=e.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}}symbolFadeChange(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(e,t){const n=this.zoomAtLastRecencyCheck===t?1-this.zoomAdjustment(t):1;return this.zoomAtLastRecencyCheck=t,this.commitTime+this.fadeDuration*n>e}setStale(){this.stale=!0}}function Et(e,t,n,i,r){e.emplaceBack(t?1:0,n?1:0,i||0,r||0),e.emplaceBack(t?1:0,n?1:0,i||0,r||0),e.emplaceBack(t?1:0,n?1:0,i||0,r||0),e.emplaceBack(t?1:0,n?1:0,i||0,r||0)}const Tt=Math.pow(2,25),kt=Math.pow(2,24),St=Math.pow(2,17),At=Math.pow(2,16),It=Math.pow(2,9),Mt=Math.pow(2,8),Lt=Math.pow(2,1);function Bt(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;const t=e.placed?1:0,n=Math.floor(127*e.opacity);return n*Tt+t*kt+n*St+t*At+n*It+t*Mt+n*Lt+t}const Rt=0;class Dt{constructor(e){this._sortAcrossTiles="viewport-y"!==e.layout.get("symbol-z-order")&&void 0!==e.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(e,t,n,i,r){const a=this._bucketParts;for(;this._currentTileIndex<e.length;)if(t.getBucketParts(a,i,e[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,r())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,a.sort((e,t)=>e.sortKey-t.sortKey));this._currentPartIndex<a.length;){const e=a[this._currentPartIndex];if(t.placeLayerBucketPart(e,this._seenCrossTileIDs,n,0===e.symbolInstanceStart),this._currentPartIndex++,r())return!0}return!1}}class Pt{constructor(e,t,n,i,r,a,o,s){this.placement=new Ct(e,r,a,o,s),this._currentPlacementIndex=t.length-1,this._forceFullPlacement=n,this._showCollisionBoxes=i,this._done=!1}isDone(){return this._done}continuePlacement(t,n,i){const r=e.exported.now(),a=()=>{const t=e.exported.now()-r;return!this._forceFullPlacement&&t>2};for(;this._currentPlacementIndex>=0;){const e=n[t[this._currentPlacementIndex]],r=this.placement.collisionIndex.transform.zoom;if("symbol"===e.type&&(!e.minzoom||e.minzoom<=r)&&(!e.maxzoom||e.maxzoom>r)){if(this._inProgressLayer||(this._inProgressLayer=new Dt(e)),this._inProgressLayer.continuePlacement(i[e.source],this.placement,this._showCollisionBoxes,e,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}}const zt=512/e.EXTENT/2;class Ft{constructor(e,t,n){this.tileID=e,this.indexedSymbolInstances={},this.bucketInstanceId=n;for(let i=0;i<t.length;i++){const n=t.get(i),r=n.key;this.indexedSymbolInstances[r]||(this.indexedSymbolInstances[r]=[]),this.indexedSymbolInstances[r].push({crossTileID:n.crossTileID,coord:this.getScaledCoordinates(n,e)})}}getScaledCoordinates(t,n){const i=zt/Math.pow(2,n.canonical.z-this.tileID.canonical.z);return{x:Math.floor((n.canonical.x*e.EXTENT+t.tileAnchorX)*i),y:Math.floor((n.canonical.y*e.EXTENT+t.tileAnchorY)*i)}}findMatches(e,t,n){const i=this.tileID.canonical.z<t.canonical.z?1:Math.pow(2,this.tileID.canonical.z-t.canonical.z);for(let r=0;r<e.length;r++){const a=e.get(r);if(a.crossTileID)continue;const o=this.indexedSymbolInstances[a.key];if(!o)continue;const s=this.getScaledCoordinates(a,t);for(const e of o)if(Math.abs(e.coord.x-s.x)<=i&&Math.abs(e.coord.y-s.y)<=i&&!n[e.crossTileID]){n[e.crossTileID]=!0,a.crossTileID=e.crossTileID;break}}}}class Nt{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Ut{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){const t=Math.round((e-this.lng)/360);if(0!==t)for(const n in this.indexes){const e=this.indexes[n],i={};for(const n in e){const r=e[n];r.tileID=r.tileID.unwrapTo(r.tileID.wrap+t),i[r.tileID.key]=r}this.indexes[n]=i}this.lng=e}addBucket(e,t,n){if(this.indexes[e.overscaledZ]&&this.indexes[e.overscaledZ][e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(let r=0;r<t.symbolInstances.length;r++)t.symbolInstances.get(r).crossTileID=0;this.usedCrossTileIDs[e.overscaledZ]||(this.usedCrossTileIDs[e.overscaledZ]={});const i=this.usedCrossTileIDs[e.overscaledZ];for(const r in this.indexes){const n=this.indexes[r];if(Number(r)>e.overscaledZ)for(const r in n){const a=n[r];a.tileID.isChildOf(e)&&a.findMatches(t.symbolInstances,e,i)}else{const a=n[e.scaledTo(Number(r)).key];a&&a.findMatches(t.symbolInstances,e,i)}}for(let r=0;r<t.symbolInstances.length;r++){const e=t.symbolInstances.get(r);e.crossTileID||(e.crossTileID=n.generate(),i[e.crossTileID]=!0)}return void 0===this.indexes[e.overscaledZ]&&(this.indexes[e.overscaledZ]={}),this.indexes[e.overscaledZ][e.key]=new Ft(e,t.symbolInstances,t.bucketInstanceId),!0}removeBucketCrossTileIDs(e,t){for(const n in t.indexedSymbolInstances)for(const i of t.indexedSymbolInstances[n])delete this.usedCrossTileIDs[e][i.crossTileID]}removeStaleBuckets(e){let t=!1;for(const n in this.indexes){const i=this.indexes[n];for(const r in i)e[i[r].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,i[r]),delete i[r],t=!0)}return t}}class Vt{constructor(){this.layerIndexes={},this.crossTileIDs=new Nt,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(e,t,n,i){let r=this.layerIndexes[e.id];void 0===r&&(r=this.layerIndexes[e.id]=new Ut);let a=!1;const o={};"globe"!==i.name&&r.handleWrapJump(n);for(const s of t){const t=s.getBucket(e);t&&e.id===t.layerIds[0]&&(t.bucketInstanceId||(t.bucketInstanceId=++this.maxBucketInstanceId),r.addBucket(s.tileID,t,this.crossTileIDs)&&(a=!0),o[t.bucketInstanceId]=!0)}return r.removeStaleBuckets(o)&&(a=!0),a}pruneUnusedLayers(e){const t={};
2e.forEach(e=>{t[e]=!0});for(const n in this.layerIndexes)t[n]||delete this.layerIndexes[n]}}const Wt=(t,n)=>e.emitValidationErrors(t,n&&n.filter(e=>"source.canvas"!==e.identifier)),qt=e.pick(Ve,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setProjection"]),Gt=e.pick(Ve,["setCenter","setZoom","setBearing","setPitch"]),Zt={version:8,layers:[],sources:{}},Ht={fill:!0,line:!0,background:!0,hillshade:!0,raster:!0};class Xt extends e.Evented{constructor(t,n={}){super(),this.map=t,this.dispatcher=new M(Fe(),this),this.imageManager=new x,this.imageManager.setEventedParent(this),this.glyphManager=new e.GlyphManager(t._requestManager,n.localFontFamily?e.LocalGlyphMode.all:n.localIdeographFontFamily?e.LocalGlyphMode.ideographs:e.LocalGlyphMode.none,n.localFontFamily||n.localIdeographFontFamily),this.lineAtlas=new e.LineAtlas(256,512),this.crossTileSymbolIndex=new Vt,this._layers={},this._num3DLayers=0,this._numSymbolLayers=0,this._numCircleLayers=0,this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this.zoomHistory=new e.ZoomHistory,this._loaded=!1,this._availableImages=[],this._order=[],this._drapedFirstOrder=[],this._markersNeedUpdate=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",e.getReferrer());const i=this;this._rtlTextPluginCallback=Xt.registerForPluginStateChange(t=>{i.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:t.pluginStatus,pluginURL:t.pluginURL},(t,n)=>{if(e.triggerPluginCompletionEvent(t),n&&n.every(e=>e))for(const e in i._sourceCaches){const t=i._sourceCaches[e],n=t.getSource().type;"vector"!==n&&"geojson"!==n||t.reload()}})}),this.on("data",e=>{if("source"!==e.dataType||"metadata"!==e.sourceDataType)return;const t=this.getSource(e.sourceId);if(t&&t.vectorLayerIds)for(const n in this._layers){const e=this._layers[n];e.source===t.id&&this._validateLayer(e)}})}loadURL(t,n={}){this.fire(new e.Event("dataloading",{dataType:"style"}));const i="boolean"==typeof n.validate?n.validate:!e.isMapboxURL(t);t=this.map._requestManager.normalizeStyleURL(t,n.accessToken);const r=this.map._requestManager.transformRequest(t,e.ResourceType.Style);this._request=e.getJSON(r,(t,n)=>{this._request=null,t?this.fire(new e.ErrorEvent(t)):n&&this._load(n,i)})}loadJSON(t,n={}){this.fire(new e.Event("dataloading",{dataType:"style"})),this._request=e.exported.frame(()=>{this._request=null,this._load(t,!1!==n.validate)})}loadEmpty(){this.fire(new e.Event("dataloading",{dataType:"style"})),this._load(Zt,!1)}_updateLayerCount(e,t){const n=t?1:-1;e.is3D()&&(this._num3DLayers+=n),"circle"===e.type&&(this._numCircleLayers+=n),"symbol"===e.type&&(this._numSymbolLayers+=n)}_load(t,n){if(n&&Wt(this,e.validateStyle(t)))return;this._loaded=!0,this.stylesheet=t,this._updateMapProjection();for(const e in t.sources)this.addSource(e,t.sources[e],{validate:!1});this._changed=!1,t.sprite?this._loadSprite(t.sprite):(this.imageManager.setLoaded(!0),this.dispatcher.broadcast("spriteLoaded",!0)),this.glyphManager.setURL(t.glyphs);const i=Ue(this.stylesheet.layers);this._order=i.map(e=>e.id),this._layers={},this._serializedLayers={};for(let r of i)r=e.createStyleLayer(r),r.setEventedParent(this,{layer:{id:r.id}}),this._layers[r.id]=r,this._serializedLayers[r.id]=r.serialize(),this._updateLayerCount(r,!0);this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new O(this.stylesheet.light),this.stylesheet.terrain&&!this.terrainSetForDrapingOnly()&&this._createTerrain(this.stylesheet.terrain,1),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this._updateDrapeFirstLayers(),this.fire(new e.Event("data",{dataType:"style"})),this.fire(new e.Event("style.load"))}terrainSetForDrapingOnly(){return!!this.terrain&&0===this.terrain.drapeRenderMode}setProjection(e){e?this.stylesheet.projection=e:delete this.stylesheet.projection,this.map._explicitProjection||this.map._updateProjection()}_updateMapProjection(){this.map._explicitProjection?this.applyProjectionUpdate():this.map._updateProjection()}applyProjectionUpdate(){this._loaded&&(this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),this.map.transform.projection.requiresDraping?this.getTerrain()||this.stylesheet.terrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null))}_loadSprite(t){this._spriteRequest=function(t,n,i){let r,a,o;const s=e.exported.devicePixelRatio>1?"@2x":"";let c=e.getJSON(n.transformRequest(n.normalizeSpriteURL(t,s,".json"),e.ResourceType.SpriteJSON),(e,t)=>{c=null,o||(o=e,r=t,u())}),l=e.getImage(n.transformRequest(n.normalizeSpriteURL(t,s,".png"),e.ResourceType.SpriteImage),(e,t)=>{l=null,o||(o=e,a=t,u())});function u(){if(o)i(o);else if(r&&a){const t=e.exported.getImageData(a),n={};for(const i in r){const{width:a,height:o,x:s,y:c,sdf:l,pixelRatio:u,stretchX:d,stretchY:p,content:h}=r[i],m=new e.RGBAImage({width:a,height:o});e.RGBAImage.copy(t,m,{x:s,y:c},{x:0,y:0},{width:a,height:o}),n[i]={data:m,pixelRatio:u,sdf:l,stretchX:d,stretchY:p,content:h}}i(null,n)}}return{cancel(){c&&(c.cancel(),c=null),l&&(l.cancel(),l=null)}}}(t,this.map._requestManager,(t,n)=>{if(this._spriteRequest=null,t)this.fire(new e.ErrorEvent(t));else if(n)for(const e in n)this.imageManager.addImage(e,n[e]);this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),this.dispatcher.broadcast("setImages",this._availableImages),this.dispatcher.broadcast("spriteLoaded",!0),this.fire(new e.Event("data",{dataType:"style"}))})}_validateLayer(t){const n=this.getSource(t.source);if(!n)return;const i=t.sourceLayer;i&&("geojson"===n.type||n.vectorLayerIds&&-1===n.vectorLayerIds.indexOf(i))&&this.fire(new e.ErrorEvent(new Error(`Source layer "${i}" does not exist on source "${n.id}" as specified by style layer "${t.id}"`)))}loaded(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(const e in this._sourceCaches)if(!this._sourceCaches[e].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeLayers(e){const t=[];for(const n of e){const e=this._layers[n];"custom"!==e.type&&t.push(e.serialize())}return t}hasTransitions(){if(this.light&&this.light.hasTransition())return!0;
vendor: 19,551 bytes, line 2
2if(this.fog&&this.fog.hasTransition())return!0;for(const e in this._sourceCaches)if(this._sourceCaches[e].hasTransition())return!0;for(const e in this._layers)if(this._layers[e].hasTransition())return!0;return!1}get order(){return this.map._optimizeForTerrain&&this.terrain?this._drapedFirstOrder:this._order}isLayerDraped(e){return!!this.terrain&&Ht[e.type]}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading")}update(t){if(!this._loaded)return;const n=this._changed;if(this._changed){const e=Object.keys(this._updatedLayers),n=Object.keys(this._removedLayers);(e.length||n.length)&&this._updateWorkerLayers(e,n);for(const t in this._updatedSources){const e=this._updatedSources[t];"reload"===e?this._reloadSource(t):"clear"===e&&this._clearSource(t)}this._updateTilesForChangedImages();for(const i in this._updatedPaintProps)this._layers[i].updateTransitions(t);this.light.updateTransitions(t),this.fog&&this.fog.updateTransitions(t),this._resetUpdates()}const i={};for(const e in this._sourceCaches){const t=this._sourceCaches[e];i[e]=t.used,t.used=!1}for(const e of this._order){const n=this._layers[e];if(n.recalculate(t,this._availableImages),!n.isHidden(t.zoom)){const e=this._getLayerSourceCache(n);e&&(e.used=!0)}const i=this.map.painter;if(i){const e=n.getProgramIds();if(!e)continue;const r=n.getProgramConfiguration(t.zoom);for(const t of e)i.useProgram(t,r)}}for(const r in i){const t=this._sourceCaches[r];i[r]!==t.used&&t.getSource().fire(new e.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:t.getSource().id}))}this.light.recalculate(t),this.terrain&&this.terrain.recalculate(t),this.fog&&this.fog.recalculate(t),this.z=t.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),n&&this.fire(new e.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const e=Object.keys(this._changedImages);if(e.length){for(const t in this._sourceCaches)this._sourceCaches[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}}_updateWorkerLayers(e,t){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(e),removedIds:t})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}}setState(t){if(this._checkLoaded(),Wt(this,e.validateStyle(t)))return!1;(t=e.clone$1(t)).layers=Ue(t.layers);const n=function(e,t){if(!e)return[{command:Ve.setStyle,args:[t]}];let n=[];try{if(!r(e.version,t.version))return[{command:Ve.setStyle,args:[t]}];r(e.center,t.center)||n.push({command:Ve.setCenter,args:[t.center]}),r(e.zoom,t.zoom)||n.push({command:Ve.setZoom,args:[t.zoom]}),r(e.bearing,t.bearing)||n.push({command:Ve.setBearing,args:[t.bearing]}),r(e.pitch,t.pitch)||n.push({command:Ve.setPitch,args:[t.pitch]}),r(e.sprite,t.sprite)||n.push({command:Ve.setSprite,args:[t.sprite]}),r(e.glyphs,t.glyphs)||n.push({command:Ve.setGlyphs,args:[t.glyphs]}),r(e.transition,t.transition)||n.push({command:Ve.setTransition,args:[t.transition]}),r(e.light,t.light)||n.push({command:Ve.setLight,args:[t.light]}),r(e.fog,t.fog)||n.push({command:Ve.setFog,args:[t.fog]}),r(e.projection,t.projection)||n.push({command:Ve.setProjection,args:[t.projection]});const i={},a=[];!function(e,t,n,i){let a;for(a in t=t||{},e=e||{})e.hasOwnProperty(a)&&(t.hasOwnProperty(a)||qe(a,n,i));for(a in t)t.hasOwnProperty(a)&&(e.hasOwnProperty(a)?r(e[a],t[a])||("geojson"===e[a].type&&"geojson"===t[a].type&&Ze(e,t,a)?n.push({command:Ve.setGeoJSONSourceData,args:[a,t[a].data]}):Ge(a,t,n,i)):We(a,t,n))}(e.sources,t.sources,a,i);const o=[];e.layers&&e.layers.forEach(e=>{e.source&&i[e.source]?n.push({command:Ve.removeLayer,args:[e.id]}):o.push(e)});let s=e.terrain;s&&i[s.source]&&(n.push({command:Ve.setTerrain,args:[void 0]}),s=void 0),n=n.concat(a),r(s,t.terrain)||n.push({command:Ve.setTerrain,args:[t.terrain]}),function(e,t,n){t=t||[];const i=(e=e||[]).map(Xe),a=t.map(Xe),o=e.reduce(Ke,{}),s=t.reduce(Ke,{}),c=i.slice(),l=Object.create(null);let u,d,p,h,m,f,g;for(u=0,d=0;u<i.length;u++)p=i[u],s.hasOwnProperty(p)?d++:(n.push({command:Ve.removeLayer,args:[p]}),c.splice(c.indexOf(p,d),1));for(u=0,d=0;u<a.length;u++)p=a[a.length-1-u],c[c.length-1-u]!==p&&(o.hasOwnProperty(p)?(n.push({command:Ve.removeLayer,args:[p]}),c.splice(c.lastIndexOf(p,c.length-d),1)):d++,f=c[c.length-u],n.push({command:Ve.addLayer,args:[s[p],f]}),c.splice(c.length-u,0,p),l[p]=!0);for(u=0;u<a.length;u++)if(p=a[u],h=o[p],m=s[p],!l[p]&&!r(h,m))if(r(h.source,m.source)&&r(h["source-layer"],m["source-layer"])&&r(h.type,m.type)){for(g in He(h.layout,m.layout,n,p,null,Ve.setLayoutProperty),He(h.paint,m.paint,n,p,null,Ve.setPaintProperty),r(h.filter,m.filter)||n.push({command:Ve.setFilter,args:[p,m.filter]}),r(h.minzoom,m.minzoom)&&r(h.maxzoom,m.maxzoom)||n.push({command:Ve.setLayerZoomRange,args:[p,m.minzoom,m.maxzoom]}),h)h.hasOwnProperty(g)&&"layout"!==g&&"paint"!==g&&"filter"!==g&&"metadata"!==g&&"minzoom"!==g&&"maxzoom"!==g&&(0===g.indexOf("paint.")?He(h[g],m[g],n,p,g.slice(6),Ve.setPaintProperty):r(h[g],m[g])||n.push({command:Ve.setLayerProperty,args:[p,g,m[g]]}));for(g in m)m.hasOwnProperty(g)&&!h.hasOwnProperty(g)&&"layout"!==g&&"paint"!==g&&"filter"!==g&&"metadata"!==g&&"minzoom"!==g&&"maxzoom"!==g&&(0===g.indexOf("paint.")?He(h[g],m[g],n,p,g.slice(6),Ve.setPaintProperty):r(h[g],m[g])||n.push({command:Ve.setLayerProperty,args:[p,g,m[g]]}))}else n.push({command:Ve.removeLayer,args:[p]}),f=c[c.lastIndexOf(p)+1],n.push({command:Ve.addLayer,args:[m,f]})}(o,t.layers,n)}catch(e){console.warn("Unable to compute style diff:",e),n=[{command:Ve.setStyle,args:[t]}]}return n}(this.serialize(),t).filter(e=>!(e.command in Gt));if(0===n.length)return!1;const i=n.filter(e=>!(e.command in qt));if(i.length>0)throw new Error(`Unimplemented: ${i.map(e=>e.command).join(", ")}.`);return n.forEach(e=>{"setTransition"!==e.command&&this[e.command].apply(this,e.args)}),this.stylesheet=t,this._updateMapProjection(),!0}addImage(t,n){return this.getImage(t)?this.fire(new e.ErrorEvent(new Error("An image with this name already exists."))):(this.imageManager.addImage(t,n),this._afterImageUpdated(t),this)}updateImage(e,t){this.imageManager.updateImage(e,t)}getImage(e){return this.imageManager.getImage(e)}removeImage(t){return this.getImage(t)?(this.imageManager.removeImage(t),this._afterImageUpdated(t),this):this.fire(new e.ErrorEvent(new Error("No image with this name exists.")))}_afterImageUpdated(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this._availableImages.slice()}addSource(t,n,i={}){if(this._checkLoaded(),void 0!==this.getSource(t))throw new Error("There is already a source with this ID");if(!n.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(n).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(e.validateSource,"sources."+t,n,null,i))return;this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);const r=Ae(t,n,this.dispatcher,this);r.setEventedParent(this,()=>({isSourceLoaded:this._isSourceCacheLoaded(t),source:r.serialize(),sourceId:t}));const a=n=>{const i=(n?"symbol:":"other:")+t,a=this._sourceCaches[i]=new e.SourceCache(i,r,n);(n?this._symbolSourceCaches:this._otherSourceCaches)[t]=a,a.style=this,a.onAdd(this.map)};a(!1),"vector"!==n.type&&"geojson"!==n.type||a(!0),r.onAdd&&r.onAdd(this.map),this._changed=!0}removeSource(t){this._checkLoaded();const n=this.getSource(t);if(!n)throw new Error("There is no source with this ID");for(const r in this._layers)if(this._layers[r].source===t)return this.fire(new e.ErrorEvent(new Error(`Source "${t}" cannot be removed while layer "${r}" is using it.`)));if(this.terrain&&this.terrain.get().source===t)return this.fire(new e.ErrorEvent(new Error(`Source "${t}" cannot be removed while terrain is using it.`)));const i=this._getSourceCaches(t);for(const r of i)delete this._sourceCaches[r.id],delete this._updatedSources[r.id],r.fire(new e.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:r.getSource().id})),r.setEventedParent(null),r.clearTiles();return delete this._otherSourceCaches[t],delete this._symbolSourceCaches[t],n.setEventedParent(null),n.onRemove&&n.onRemove(this.map),this._changed=!0,this}setGeoJSONSourceData(e,t){this._checkLoaded(),this.getSource(e).setData(t),this._changed=!0}getSource(e){const t=this._getSourceCache(e);return t&&t.getSource()}addLayer(t,n,i={}){this._checkLoaded();const r=t.id;if(this.getLayer(r))return void this.fire(new e.ErrorEvent(new Error(`Layer with id "${r}" already exists on this map`)));let a;if("custom"===t.type){if(Wt(this,e.validateCustomStyleLayer(t)))return;a=e.createStyleLayer(t)}else{if("object"==typeof t.source&&(this.addSource(r,t.source),t=e.clone$1(t),t=e.extend(t,{source:r})),this._validate(e.validateLayer,"layers."+r,t,{arrayIndex:-1},i))return;a=e.createStyleLayer(t),this._validateLayer(a),a.setEventedParent(this,{layer:{id:r}}),this._serializedLayers[a.id]=a.serialize(),this._updateLayerCount(a,!0)}const o=n?this._order.indexOf(n):this._order.length;if(n&&-1===o)return void this.fire(new e.ErrorEvent(new Error(`Layer with id "${n}" does not exist on this map.`)));this._order.splice(o,0,r),this._layerOrderChanged=!0,this._layers[r]=a;const s=this._getLayerSourceCache(a);if(this._removedLayers[r]&&a.source&&s&&"custom"!==a.type){const e=this._removedLayers[r];delete this._removedLayers[r],e.type!==a.type?this._updatedSources[a.source]="clear":(this._updatedSources[a.source]="reload",s.pause())}this._updateLayer(a),a.onAdd&&a.onAdd(this.map),this._updateDrapeFirstLayers()}moveLayer(t,n){if(this._checkLoaded(),this._changed=!0,!this._layers[t])return void this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be moved.`)));if(t===n)return;const i=this._order.indexOf(t);this._order.splice(i,1);const r=n?this._order.indexOf(n):this._order.length;n&&-1===r?this.fire(new e.ErrorEvent(new Error(`Layer with id "${n}" does not exist on this map.`))):(this._order.splice(r,0,t),this._layerOrderChanged=!0,this._updateDrapeFirstLayers())}removeLayer(t){this._checkLoaded();const n=this._layers[t];if(!n)return void this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be removed.`)));n.setEventedParent(null),this._updateLayerCount(n,!1);const i=this._order.indexOf(t);this._order.splice(i,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=n,delete this._layers[t],delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],n.onRemove&&n.onRemove(this.map),this._updateDrapeFirstLayers()}getLayer(e){return this._layers[e]}hasLayer(e){return e in this._layers}hasLayerType(e){for(const t in this._layers)if(this._layers[t].type===e)return!0;return!1}setLayerZoomRange(t,n,i){this._checkLoaded();const r=this.getLayer(t);r?r.minzoom===n&&r.maxzoom===i||(null!=n&&(r.minzoom=n),null!=i&&(r.maxzoom=i),this._updateLayer(r)):this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot have zoom extent.`)))}setFilter(t,n,i={}){this._checkLoaded();const a=this.getLayer(t);if(a){if(!r(a.filter,n))return null==n?(a.filter=void 0,void this._updateLayer(a)):void(this._validate(e.validateFilter,`layers.${a.id}.filter`,n,{layerType:a.type},i)||(a.filter=e.clone$1(n),this._updateLayer(a)))}else this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be filtered.`)))}getFilter(t){const n=this.getLayer(t);return n&&e.clone$1(n.filter)}setLayoutProperty(t,n,i,a={}){this._checkLoaded();const o=this.getLayer(t);o?r(o.getLayoutProperty(n),i)||(o.setLayoutProperty(n,i,a),this._updateLayer(o)):this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be styled.`)))}getLayoutProperty(t,n){const i=this.getLayer(t);if(i)return i.getLayoutProperty(n);this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style.`)))}setPaintProperty(t,n,i,a={}){this._checkLoaded();const o=this.getLayer(t);o?r(o.getPaintProperty(n),i)||(o.setPaintProperty(n,i,a)&&this._updateLayer(o),this._changed=!0,this._updatedPaintProps[t]=!0):this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be styled.`)))}getPaintProperty(e,t){const n=this.getLayer(e);return n&&n.getPaintProperty(t)}setFeatureState(t,n){this._checkLoaded();const i=t.source,r=t.sourceLayer,a=this.getSource(i);if(!a)return void this.fire(new e.ErrorEvent(new Error(`The source '${i}' does not exist in the map's style.`)));const o=a.type;if("geojson"===o&&r)return void this.fire(new e.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===o&&!r)return void this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided.")));const s=this._getSourceCaches(i);for(const e of s)e.setFeatureState(r,t.id,n)}removeFeatureState(t,n){this._checkLoaded();const i=t.source,r=this.getSource(i);if(!r)return void this.fire(new e.ErrorEvent(new Error(`The source '${i}' does not exist in the map's style.`)));const a=r.type,o="vector"===a?t.sourceLayer:void 0;if("vector"===a&&!o)return void this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));if(n&&"string"!=typeof t.id&&"number"!=typeof t.id)return void this.fire(new e.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));const s=this._getSourceCaches(i);for(const e of s)e.removeFeatureState(o,t.id,n)}getFeatureState(t){this._checkLoaded();const n=t.source,i=t.sourceLayer,r=this.getSource(n);if(r){if("vector"!==r.type||i)return void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),this._getSourceCaches(n)[0].getFeatureState(i,t.id);this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error(`The source '${n}' does not exist in the map's style.`)))}getTransition(){return e.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){const t={};for(const e in this._sourceCaches){const n=this._sourceCaches[e].getSource();t[n.id]||(t[n.id]=n.serialize())}return e.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,terrain:this.stylesheet.terrain,fog:this.stylesheet.fog,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,projection:this.stylesheet.projection,sources:t,layers:this._serializeLayers(this._order)},e=>void 0!==e)}_updateLayer(e){this._updatedLayers[e.id]=!0;const t=this._getLayerSourceCache(e);e.source&&!this._updatedSources[e.source]&&t&&"raster"!==t.getSource().type&&(this._updatedSources[e.source]="reload",t.pause()),this._changed=!0,e.invalidateCompiledFilter()}_flattenAndSortRenderedFeatures(e){const t=e=>"fill-extrusion"===this._layers[e].type,n={},i=[];for(let a=this._order.length-1;a>=0;a--){const r=this._order[a];if(t(r)){n[r]=a;for(const t of e){const e=t[r];if(e)for(const t of e)i.push(t)}}}i.sort((e,t)=>t.intersectionZ-e.intersectionZ);const r=[];for(let a=this._order.length-1;a>=0;a--){const o=this._order[a];if(t(o))for(let e=i.length-1;e>=0;e--){const t=i[e].feature;if(n[t.layer.id]<a)break;r.push(t),i.pop()}else for(const t of e){const e=t[o];if(e)for(const t of e)r.push(t.feature)}}return r}queryRenderedFeatures(t,n,i){n&&n.filter&&this._validate(e.validateFilter,"queryRenderedFeatures.filter",n.filter,null,n);const r={};if(n&&n.layers){if(!Array.isArray(n.layers))return this.fire(new e.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(const t of n.layers){const n=this._layers[t];if(!n)return this.fire(new e.ErrorEvent(new Error(`The layer '${t}' does not exist in the map's style and cannot be queried for features.`))),[];r[n.source]=!0}}const a=[];n.availableImages=this._availableImages;const o=n&&n.layers?n.layers.some(e=>{const t=this.getLayer(e);return t&&t.is3D()}):this.has3DLayers(),s=B.createFromScreenPoints(t,i);for(const e in this._sourceCaches){const t=this._sourceCaches[e].getSource().id;n.layers&&!r[t]||a.push(Me(this._sourceCaches[e],this._layers,this._serializedLayers,s,n,i,o,!!this.map._showQueryGeometry))}return this.placement&&a.push(function(e,t,n,i,r,a,o){const s={},c=a.queryRenderedSymbols(i),l=[];for(const u of Object.keys(c).map(Number))l.push(o[u]);l.sort(Be);for(const u of l){const n=u.featureIndex.lookupSymbolFeatures(c[u.bucketInstanceId],t,u.bucketIndex,u.sourceLayerIndex,r.filter,r.layers,r.availableImages,e);for(const e in n){const t=s[e]=s[e]||[],i=n[e];i.sort((e,t)=>{const n=u.featureSortOrder;if(n){const i=n.indexOf(e.featureIndex);return n.indexOf(t.featureIndex)-i}return t.featureIndex-e.featureIndex});for(const e of i)t.push(e)}}for(const u in s)s[u].forEach(t=>{const i=t.feature,r=n(e[u]).getFeatureState(i.layer["source-layer"],i.id);i.source=i.layer.source,i.layer["source-layer"]&&(i.sourceLayer=i.layer["source-layer"]),i.state=r});return s}(this._layers,this._serializedLayers,this._getLayerSourceCache.bind(this),s.screenGeometry,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(a)}querySourceFeatures(t,n){n&&n.filter&&this._validate(e.validateFilter,"querySourceFeatures.filter",n.filter,null,n);const i=this._getSourceCaches(t);let r=[];for(const e of i)r=r.concat(Le(e,n));return r}addSourceType(e,t,n){return Xt.getSourceType(e)?n(new Error(`A source type called "${e}" already exists.`)):(Xt.setSourceType(e,t),t.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:e,url:t.workerSourceURL},n):n(null,null))}getLight(){return this.light.getLight()}setLight(t,n={}){this._checkLoaded();const i=this.light.getLight();let a=!1;for(const e in t)if(!r(t[e],i[e])){a=!0;break}if(!a)return;const o={now:e.exported.now(),transition:e.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(t,n),this.light.updateTransitions(o)}getTerrain(){return this.terrain&&1===this.terrain.drapeRenderMode?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},0)}setTerrain(t,n=1){if(this._checkLoaded(),!t)return delete this.terrain,delete this.stylesheet.terrain,this.dispatcher.broadcast("enableTerrain",!1),this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);if(1===n){if("object"==typeof t.source){const n="terrain-dem-src";this.addSource(n,t.source),t=e.clone$1(t),t=e.extend(t,{source:n})}if(this._validate(e.validateTerrain,"terrain",t))return}if(!this.terrain||this.terrain&&n!==this.terrain.drapeRenderMode)this._createTerrain(t,n);else{const n=this.terrain,i=n.get();for(const a in t)if(!r(t[a],i[a])){n.set(t),this.stylesheet.terrain=t;const i={now:e.exported.now(),transition:e.extend({duration:0},this.stylesheet.transition)};n.updateTransitions(i);break}}
2this._updateDrapeFirstLayers(),this._markersNeedUpdate=!0}_createFog(t){const n=this.fog=new I(t,this.map.transform);this.stylesheet.fog=t;const i={now:e.exported.now(),transition:e.extend({duration:0},this.stylesheet.transition)};n.updateTransitions(i)}_updateMarkersOpacity(){0!==this.map._markers.length&&this.map._requestDomTask(()=>{for(const e of this.map._markers)e._evaluateOpacity()})}getFog(){return this.fog?this.fog.get():null}setFog(t){if(this._checkLoaded(),!t)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedUpdate=!0);if(this.fog){const n=this.fog,i=n.get();for(const a in t)if(!r(t[a],i[a])){n.set(t),this.stylesheet.fog=t;const i={now:e.exported.now(),transition:e.extend({duration:0},this.stylesheet.transition)};n.updateTransitions(i);break}}else this._createFog(t);this._markersNeedUpdate=!0}_updateDrapeFirstLayers(){if(!this.map._optimizeForTerrain||!this.terrain)return;const e=this._order.filter(e=>this.isLayerDraped(this._layers[e])),t=this._order.filter(e=>!this.isLayerDraped(this._layers[e]));this._drapedFirstOrder=[],this._drapedFirstOrder.push(...e),this._drapedFirstOrder.push(...t)}_createTerrain(t,n){const i=this.terrain=new E(t,n);this.stylesheet.terrain=t,this.dispatcher.broadcast("enableTerrain",!this.terrainSetForDrapingOnly()),this._force3DLayerUpdate();const r={now:e.exported.now(),transition:e.extend({duration:0},this.stylesheet.transition)};i.updateTransitions(r)}_force3DLayerUpdate(){for(const e in this._layers){const t=this._layers[e];"fill-extrusion"===t.type&&this._updateLayer(t)}}_forceSymbolLayerUpdate(){for(const e in this._layers){const t=this._layers[e];"symbol"===t.type&&this._updateLayer(t)}}_validate(t,n,i,r,a={}){return(!a||!1!==a.validate)&&Wt(this,t.call(e.validateStyle,e.extend({key:n,style:this.serialize(),value:i,styleSpec:e.spec},r)))}_remove(){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),e.evented.off("pluginStateChange",this._rtlTextPluginCallback);for(const e in this._layers)this._layers[e].setEventedParent(null);for(const e in this._sourceCaches)this._sourceCaches[e].clearTiles(),this._sourceCaches[e].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()}_clearSource(e){const t=this._getSourceCaches(e);for(const n of t)n.clearTiles()}_reloadSource(e){const t=this._getSourceCaches(e);for(const n of t)n.resume(),n.reload()}_updateSources(e){for(const t in this._sourceCaches)this._sourceCaches[t].update(e)}_generateCollisionBoxes(){for(const e in this._sourceCaches){const t=this._sourceCaches[e];t.resume(),t.reload()}}_updatePlacement(t,n,i,r,a=!1){let o=!1,s=!1;const c={};for(const e of this._order){const n=this._layers[e];if("symbol"!==n.type)continue;if(!c[n.source]){const e=this._getLayerSourceCache(n);if(!e)continue;c[n.source]=e.getRenderableIds(!0).map(t=>e.getTileByID(t)).sort((e,t)=>t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1))}const i=this.crossTileSymbolIndex.addLayer(n,c[n.source],t.center.lng,t.projection);o=o||i}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),a=a||this._layerOrderChanged||0===i,this._layerOrderChanged&&this.fire(new e.Event("neworder")),(a||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(e.exported.now(),t.zoom))&&(this.pauseablePlacement=new Pt(t,this._order,a,n,i,r,this.placement,this.fog&&t.projection.supportsFog?this.fog.state:null),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,c),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.exported.now()),s=!0),o&&this.pauseablePlacement.placement.setStale()),s||o)for(const e of this._order){const t=this._layers[e];"symbol"===t.type&&this.placement.updateLayerOpacities(t,c[t.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(e.exported.now())}_releaseSymbolFadeTiles(){for(const e in this._sourceCaches)this._sourceCaches[e].releaseSymbolFadeTiles()}
vendor: 4,359 bytes, line 2
2getImages(e,t,n){this.imageManager.getImages(t.icons,n),this._updateTilesForChangedImages();const i=e=>{e&&e.setDependencies(t.tileID.key,t.type,t.icons)};i(this._otherSourceCaches[t.source]),i(this._symbolSourceCaches[t.source])}getGlyphs(e,t,n){this.glyphManager.getGlyphs(t.stacks,n)}getResource(t,n,i){return e.makeRequest(n,i)}_getSourceCache(e){return this._otherSourceCaches[e]}_getLayerSourceCache(e){return"symbol"===e.type?this._symbolSourceCaches[e.source]:this._otherSourceCaches[e.source]}_getSourceCaches(e){const t=[];return this._otherSourceCaches[e]&&t.push(this._otherSourceCaches[e]),this._symbolSourceCaches[e]&&t.push(this._symbolSourceCaches[e]),t}_isSourceCacheLoaded(t){const n=this._getSourceCaches(t);return 0===n.length?(this.fire(new e.ErrorEvent(new Error(`There is no source with ID '${t}'`))),!1):n.every(e=>e.loaded())}has3DLayers(){return this._num3DLayers>0}hasSymbolLayers(){return this._numSymbolLayers>0}hasCircleLayers(){return this._numCircleLayers>0}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}destroy(){this._clearWorkerCaches(),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}Xt.getSourceType=function(e){return Se[e]},Xt.setSourceType=function(e,t){Se[e]=t},Xt.registerForPluginStateChange=e.registerForPluginStateChange;var Kt="\n#define EPSILON 0.0000001\n#define PI 3.141592653589793\n#define EXTENT 8192.0\n#define HALF_PI PI/2.0\n#define QUARTER_PI PI/4.0\n#define RAD_TO_DEG 180.0/PI\n#define DEG_TO_RAD PI/180.0\n#define GLOBE_RADIUS EXTENT/PI/2.0\n#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;varying vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}\n#endif",Yt="attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}";let Jt={},Qt={};Jt=nn("","\n#define ELEVATION_SCALE 7.0\n#define ELEVATION_OFFSET 450.0\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(\nmix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}\n#else\nvec3 elevationVector(vec2 pos) { return vec3(0,0,1); }\n#endif\n#ifdef TERRAIN\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;\n#else\nuniform sampler2D u_dem;uniform sampler2D u_dem_prev;\n#endif\nuniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));\n#ifdef TERRAIN_DEM_NEAREST_FILTER\nreturn u_exaggeration*tl;\n#endif\nfloat tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}
2float prevElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem_prev,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}\n#ifdef TERRAIN_VERTEX_MORPHING\nfloat elevation(vec2 apos) {float nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\n#else\nfloat elevation(vec2 apos) {return currentElevation(apos);}\n#endif\nfloat unpack_depth(vec4 rgba_depth)\n{const vec4 bit_shift=vec4(1.0/(256.0*256.0*256.0),1.0/(256.0*256.0),1.0/256.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(\nunpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))\n);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nfloat tl=texture2D(u_dem,pos).a;float tr=texture2D(u_dem,pos+vec2(off.x,0.0)).a;float bl=texture2D(u_dem,pos+vec2(0.0,off.y)).a;float br=texture2D(u_dem,pos+off).a;\n#else\nvec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);\n#endif\nreturn vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;vec4 bounds=vec4(d,vec2(1.0)-d);h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}\n#else\nfloat elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }\n#endif",!0),Qt=nn("#ifdef FOG\nuniform float u_fog_temporal_offset;float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);return mix(color,u_fog_color.rgb,opacity);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec3 fog_dither(vec3 color) {vec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\n#endif","#ifdef FOG\nuniform mat4 u_fog_matrix;vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}\n#endif",!0);const $t=nn("\nhighp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}
2vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}\n#ifdef TERRAIN\nhighp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(256.0*256.0*256.0,256.0*256.0,256.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/256.0,1.0/256.0,1.0/256.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}\n#endif","\nfloat wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {\n#ifndef PROJECTED_POS_ON_VIEWPORT\nfloat tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;\n#else\nreturn vec3(0.0);\n#endif\n}vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {return mix(globe,mercator,t);}mat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered."),en=Kt;var tn={background:nn("uniform vec4 u_color;uniform float u_opacity;void main() {vec4 out_color=u_color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),backgroundPattern:nn("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_mix);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),circle:nn("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\nantialiased_blur,0.0,extrude_length-radius
2/(radius+stroke_width)\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef FOG\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\n#endif\ngl_FragColor=out_color*(v_visibility*opacity_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","#define NUM_VISIBILITY_RINGS 2\n#define INV_SQRT2 0.70710678\n#define ELEVATION_BIAS 0.0001\n#define NUM_SAMPLES_PER_RING 16\nuniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;attribute float a_scale;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\n#if defined(TERRAIN)\nreturn elevation(pos)+ELEVATION_BIAS;\n#else\nreturn 0.0;\n#endif\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\n#ifdef PITCH_WITH_MAP\n#ifdef PROJECTION_GLOBE_VIEW\nreturn u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );\n#else\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\n#endif\n#else\nreturn projected_center+vec4(sample_offset,0,0);\n#endif\n}float get_sample_step() {\n#ifdef PITCH_WITH_MAP\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\n#else\nreturn PI/float(NUM_SAMPLES_PER_RING);\n#endif\n}void main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);\n#ifdef PROJECTION_GLOBE_VIEW\nvec2 scaled_extrude=extrude*a_scale;vec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=scaled_extrude.x*surface_vectors[0]+scaled_extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);vec4 world_center=vec4(pos,1);\n#else \nmat3 surface_vectors=mat3(1.0);float height=circle_elevation(circle_center);vec4 world_center=vec4(circle_center,height,1);\n#endif\nvec4 projected_center=u_matrix*world_center;float view_scale=0.0;\n#ifdef PITCH_WITH_MAP\n#ifdef SCALE_WITH_MAP\nview_scale=1.0;\n#else\nview_scale=projected_center.w/u_camera_to_center_distance;\n#endif\n#else\n#ifdef SCALE_WITH_MAP\nview_scale=u_camera_to_center_distance;\n#else\nview_scale=projected_center.w;\n#endif\n#endif\n#if defined(SCALE_WITH_MAP) && defined(PROJECTION_GLOBE_VIEW)\nview_scale*=a_scale;\n#endif\ngl_Position=project_vertex(extrude,world_center,projected_center,radiu
2s,stroke_width,view_scale,surface_vectors);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);vec4 occlusion_world_center=vec4(circle_center,cantilevered_height,1);vec4 occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nvec4 occlusion_world_center=world_center;vec4 occlusion_projected_center=projected_center;\n#endif\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\n#else\nvisibility=1.0;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nvisibility=1.0;\n#endif\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);\n#ifdef FOG\nv_fog_pos=fog_position(world_center.xyz);\n#endif\n}"),clippingMask:nn("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:nn("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef FOG\ngl_FragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;attribute float a_scale;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);\n#ifdef PROJECTION_GLOBE_VIEW\nextrude*=a_scale;vec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#else\nvec3 pos=vec3(tilePos+extrude,elevation(tilePos));\n#endif\ngl_Position=u_matrix*vec4(pos,1);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),heatmapTexture:nn("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:nn("varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}","attribute vec3 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:nn("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:nn("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;\n#endif\nvarying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;\n#ifdef PROJECTION_GLOBE_VIEW\ngl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1
2);\n#else\ngl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);\n#endif\n}"),fill:nn("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nvec4 out_color=color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutline:nn("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutlinePattern:nn("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=mix(color1,color2,u_fade);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillPattern:nn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_fade);\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillExtrusion:nn("varying vec4 v_color;void main() {vec4 color=v_color;\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 pos_nx=floor(a_pos_normal_ed.xyz*0.5);mediump vec3 top_up_ny=a_pos_normal_ed.xyz-2.0*pos_nx;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;float ele=elevation(pos_nx.xy);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;float h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);vec3 pos=vec3(pos_nx.xy,h);\n#else\nvec3 pos=vec3(pos_nx.xy,t > 0.0 ? height : base);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(pos.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.rgb+=clamp(color.rgb*directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_color*=u_opacity;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),fillExtrusionPattern:nn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 out_color=mix(color1,color2,u_fade);out_color=out_color*v_lighting;\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 pos_nx=floor(a_pos_normal_ed.xyz*0.5);mediump vec3 top_up_ny=a_pos_normal_ed.xyz-2.0*pos_nx;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;float ele=elevation(pos_nx.xy);float c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;float h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);vec3 p=vec3(pos_nx.xy,h);\n#else\nvec3 p=vec3(pos_nx.xy,z);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0\n? pos_nx.xy\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\n#ifdef FOG\nv_fog_pos=fog_position(p);\n#endif\n}"),hillshadePrepare:nn("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nreturn texture2D(u_image,coord).a/4.0;\n#else\nvec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;\n#endif\n}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos);float f=getElevation(v_pos+vec2(epsilon.x,0));float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float h=getElevation(v_pos+vec2(0,epsilon.y));float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\n(c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uni
2form mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:nn("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef FOG\ngl_FragColor=fog_dither(fog_apply_premultiplied(gl_FragColor,v_fog_pos));\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),line:nn("uniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#ifdef RENDER_LINE_DASH\nuniform sampler2D u_dash_image;uniform float u_mix;uniform vec3 u_scale;varying vec2 v_tex_a;varying vec2 v_tex_b;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform sampler2D u_gradient_image;varying highp vec2 v_uv;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash_from\n#pragma mapbox: define lowp vec4 dash_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash_from\n#pragma mapbox: initialize lowp vec4 dash_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\n#ifdef RENDER_LINE_DASH\nfloat sdfdist_a=texture2D(u_dash_image,v_tex_a).a;float sdfdist_b=texture2D(u_dash_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);float sdfwidth=min(dash_from.z*u_scale.y,dash_to.z*u_scale.z);
2float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/sdfwidth;alpha*=smoothstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);\n#endif\n#ifdef RENDER_LINE_GRADIENT\nvec4 out_color=texture2D(u_gradient_image,v_uv);\n#else\nvec4 out_color=color;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#ifdef RENDER_LINE_ALPHA_DISCARD\nif (alpha < u_alpha_discard_threshold) {discard;}\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define EXTRUDE_SCALE 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;\n#ifdef RENDER_LINE_GRADIENT\nattribute vec3 a_packed;\n#else\nattribute float a_linesofar;\n#endif\nuniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;\n#ifdef RENDER_LINE_DASH\nuniform vec2 u_texsize;uniform mediump vec3 u_scale;varying vec2 v_tex_a;varying vec2 v_tex_b;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform float u_image_height;varying highp vec2 v_uv;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash_from\n#pragma mapbox: define lowp vec4 dash_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash_from\n#pragma mapbox: initialize lowp vec4 dash_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nfloat a_uv_x=a_packed[0];float a_split_index=a_packed[1];float a_linesofar=a_packed[2];highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);\n#endif\n#ifdef RENDER_LINE_DASH\nfloat tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;float scaleA=dash_from.z==0.0 ? 0.0 : tileZoomRatio/(dash_from.z*fromScale);float scaleB=dash_to.z==0.0 ? 0.0 : tileZoomRatio/(dash_to.z*toScale);float heightA=dash_from.y;float heightB=dash_to.y;v_tex_a=vec2(a_linesofar*scaleA/floorwidth,(-normal.y*heightA+dash_from.x+0.5)/u_texsize.y);v_tex_b=vec2(a_linesofar*scaleB/floorwidth,(-normal.y*heightB+dash_to.x+0.5)/u_texsize.y);\n#endif\nv_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),linePattern:nn("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),raster:nn("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);\n#ifdef FOG\nout_color=fog_dither(fog_apply(out_color,v_fog_pos));\n#endif\ngl_FragColor=vec4(out_color*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {float w=1.0+dot(a_texture_pos,u_perspective_transform);gl_Position=u_matrix*vec4(a_pos*w,0,w);v_pos0=a_texture_pos/8192.0;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),symbolIcon:nn("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_z_tile_anchor;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_min_font_scale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float anchor_z=a_z_tile_anchor.x;vec2 tile_anchor=a_z_tile_anchor.yz;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(vec3(a_pos,anchor_z)+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;float globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nvec3 world_pos=vec3(a_pos,anchor_z)+h;float globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjected_point=u_matrix*vec4(a_pos+vec2(1,0),anchor_z,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offsetProjected_point.xy/offsetProjected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(vec3(a_projected_pos.xy,anch
2or_z),mercator_pos,u_zoom_transition);\n#else\nvec3 proj_pos=vec3(a_projected_pos.xy,anchor_z);\n#endif\n#ifdef PROJECTED_POS_ON_VIEWPORT\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xy,0.0,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xyz+h,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_min_font_scale,font_scale)+a_pxoffset/16.0);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;}"),symbolSDF:nn("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_z_tile_anchor;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float anchor_z=a_z_tile_anchor.x;vec2 tile_anchor=a_z_tile_anchor.yz;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(vec3(a_pos,anchor_z)+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;float globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nvec3 world_pos=vec3(a_pos,anchor_z)+h;float globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetprojected_point=u_matrix*vec4(a_pos+vec2(1,0),anchor_z,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(vec3(a_projected_pos.xy,anch
2or_z),mercator_pos,u_zoom_transition);\n#else\nvec3 proj_pos=vec3(a_projected_pos.xy,anchor_z);\n#endif\n#ifdef PROJECTED_POS_ON_VIEWPORT\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xy,0.0,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xyz+h,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));float gamma_scale=gl_Position.w;float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade);}"),symbolTextAndIcon:nn("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_z_tile_anchor;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}float anchor_z=a_z_tile_anchor.x;vec2 tile_anchor=a_z_tile_anchor.yz;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);vec3 world_pos=mix_globe_mercator(vec3(a_pos,anchor_z)+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;float globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nvec3 world_pos=vec3(a_pos,anchor_z)+h;float globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offset_projected_point=u_matrix*vec4(a_pos+vec2(1,0),anchor_z,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offset_projected_point.xy/offset_projected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(vec3(a_projected_pos.xy,anch
2or_z),mercator_pos,u_zoom_transition);\n#else\nvec3 proj_pos=vec3(a_projected_pos.xy,anchor_z);\n#endif\n#ifdef PROJECTED_POS_ON_VIEWPORT\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xy,0.0,1.0);\n#else\nvec4 projected_pos=u_label_plane_matrix*vec4(proj_pos.xyz+h,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*font_scale);\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;gl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade,is_s
2df);}"),terrainRaster:nn("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\nvoid main() {vec4 color=texture2D(u_image0,v_pos0);\n#ifdef FOG\ncolor=fog_dither(fog_apply_from_vert(color,v_fog_opacity));\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\nconst float skirtOffset=24575.0;const float wireframeOffset=0.00015;void main() {v_pos0=a_texture_pos/8192.0;float skirt=float(a_pos.x >=skirtOffset);float elevation=elevation(a_texture_pos)-skirt*u_skirt_height;\n#ifdef TERRAIN_WIREFRAME\nelevation+=u_skirt_height*u_skirt_height*wireframeOffset;\n#endif\nvec2 decodedPos=a_pos-vec2(skirt*skirtOffset,0.0);gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\n#ifdef FOG\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\n#endif\n}"),terrainDepth:nn("#ifdef GL_ES\nprecision highp float;\n#endif\nvarying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying float v_depth;void main() {float elevation=elevation(a_texture_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}"),skybox:nn("\nvarying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(e
2nd-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;\n#ifdef FOG\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\n#endif\nsky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Yt),skyboxGradient:nn("varying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5));\n#ifdef FOG\ncolor.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;\n#endif\ncolor*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",Yt),skyboxCapture:nn
vendor: 3,851 bytes, line 2
2("\nvarying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;\n#ifdef GL_ES\nprecision highp float;\n#endif\n#define BETA_R                  vec3(5.5e-6,13.0e-6,22.4e-6)\n#define BETA_M                  vec3(21e-6,21e-6,21e-6)\n#define MIE_G                   0.76\n#define DENSITY_HEIGHT_SCALE_R  8000.0\n#define DENSITY_HEIGHT_SCALE_M  1200.0\n#define PLANET_RADIUS           6360e3\n#define ATMOSPHERE_RADIUS       6420e3\n#define SAMPLE_STEPS            10\n#define DENSITY_STEPS           4\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}","attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:
vendor: 53,359 bytes, line 2
2nn("uniform sampler2D u_image0;varying vec2 v_pos0;void main() {gl_FragColor=texture2D(u_image0,v_pos0);\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_proj_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;uniform mat3 u_grid_matrix;\n#ifdef GLOBE_POLES\nattribute vec3 a_globe_pos;attribute vec2 a_merc_pos;attribute vec2 a_uv;\n#else\nattribute vec2 a_pos;\n#endif\nvarying vec2 v_pos0;const float wireframeOffset=1e3;float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(QUARTER_PI+lat/2.0*DEG_TO_RAD))))/360.0;}vec3 latLngToECEF(vec2 latLng) {latLng=DEG_TO_RAD*latLng;float cosLat=cos(latLng[0]);float sinLat=sin(latLng[0]);float cosLng=cos(latLng[1]);float sinLng=sin(latLng[1]);float sx=cosLat*sinLng*GLOBE_RADIUS;float sy=-sinLat*GLOBE_RADIUS;float sz=cosLat*cosLng*GLOBE_RADIUS;return vec3(sx,sy,sz);}void main() {\n#ifdef GLOBE_POLES\nvec3 globe_pos=a_globe_pos;vec2 merc_pos=a_merc_pos;vec2 uv=a_uv;\n#else\nfloat tiles=u_grid_matrix[0][2];float idy=u_grid_matrix[1][2];float S=u_grid_matrix[2][2];vec3 latLng=u_grid_matrix*vec3(a_pos,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=a_pos[0]*S;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY);\n#endif\nv_pos0=uv;uv=uv*EXTENT;vec4 up_vector=vec4(elevationVector(uv),1.0);float height=elevation(uv);\n#ifdef TERRAIN_WIREFRAME\nheight+=wireframeOffset;\n#endif\nvec4 globe=u_globe_matrix*vec4(globe_pos+up_vector.xyz*height,1.0);vec4 mercator=vec4(0.0);if (u_zoom_transition > 0.0) {mercator=vec4(merc_pos,height,1.0);mercator.xy-=u_merc_center;mercator.x=wrap(mercator.x,-0.5,0.5);mercator=u_merc_matrix*mercator;}vec3 position=mix(globe.xyz,mercator.xyz,u_zoom_transition);gl_Position=u_proj_matrix*vec4(position,1.0);}"),globeAtmosphere:nn("uniform float u_opacity;uniform highp float u_fadeout_range;uniform vec3 u_start_color;uniform vec3 u_end_color;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;varying highp vec3 v_ray_dir;void main() {highp vec3 dir=normalize(v_ray_dir);highp vec3 closest_point=abs(dot(u_globe_pos,dir))*dir;float norm_dist_from_center=length(closest_point-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 1.0)\ndiscard;float t=clamp(1.0-sqrt(norm_dist_from_center-1.0)/u_fadeout_range,0.0,1.0);vec3 color=mix(u_start_color,u_end_color,1.0-t);gl_FragColor=vec4(color*t*u_opacity,u_opacity);}","attribute vec3 a_pos;attribute vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;varying highp vec3 v_ray_dir;void main() {v_ray_dir=mix(mix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);gl_Position=vec4(a_pos,1.0);}")};function nn(e,t,n){const i=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=/uniform (highp |mediump |lowp )?([\w]+) ([\w]+)([\s]*)([\w]*)/g,a=t.match(/attribute (highp |mediump |lowp )?([\w]+) ([\w]+)/g),o=e.match(r),s=t.match(r),c=Kt.match(r);let l=s?s.concat(o):o;n||(Jt.staticUniforms&&(l=Jt.staticUniforms.concat(l)),Qt.staticUniforms&&(l=Qt.staticUniforms.concat(l))),l&&(l=l.concat(c));const u={};return{fragmentSource:e=e.replace(i,(e,t,n,i,r)=>(u[r]=!0,"define"===t?`\n#ifndef HAS_UNIFORM_u_${r}\nvarying ${n} ${i} ${r};\n#else\nuniform ${n} ${i} u_${r};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${r}\n    ${n} ${i} ${r} = u_${r};\n#endif\n`)),vertexSource:t=t.replace(i,(e,t,n,i,r)=>{const a="float"===i?"vec2":"vec4",o=r.match(/color/)?"color":a;return u[r]?"define"===t?`\n#ifndef HAS_UNIFORM_u_${r}\nuniform lowp float u_${r}_t;\nattribute ${n} ${a} a_${r};\nvarying ${n} ${i} ${r};\n#else\nuniform ${n} ${i} u_${r};\n#endif\n`:"vec4"===o?`\n#ifndef HAS_UNIFORM_u_${r}\n    ${r} = a_${r};\n#else\n    ${n} ${i} ${r} = u_${r};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${r}\n    ${r} = unpack_mix_${o}(a_${r}, u_${r}_t);\n#else\n    ${n} ${i} ${r} = u_${r};\n#endif\n`:"define"===t?`\n#ifndef HAS_UNIFORM_u_${r}\nuniform lowp float u_${r}_t;\nattribute ${n} ${a} a_${r};\n#else\nuniform ${n} ${i} u_${r};\n#endif\n`:"vec4"===o?`\n#ifndef HAS_UNIFORM_u_${r}\n    ${n} ${i} ${r} = a_${r};\n#else\n    ${n} ${i} ${r} = u_${r};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${r}\n    ${n} ${i} ${r} = unpack_mix_${o}(a_${r}, u_${r}_t);\n#else\n    ${n} ${i} ${r} = u_${r};\n#endif\n`}),staticAttributes:a,staticUniforms:l}}class rn{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(e,t,n,i,r,a,o,s){this.context=e;let c=this.boundPaintVertexBuffers.length!==i.length;for(let l=0;!c&&l<i.length;l++)this.boundPaintVertexBuffers[l]!==i[l]&&(c=!0);e.extVertexArrayObject&&this.vao&&this.boundProgram===t&&this.boundLayoutVertexBuffer===n&&!c&&this.boundIndexBuffer===r&&this.boundVertexOffset===a&&this.boundDynamicVertexBuffer===o&&this.boundDynamicVertexBuffer2===s?(e.bindVertexArrayOES.set(this.vao),o&&o.bind(),r&&r.dynamicDraw&&r.bind(),s&&s.bind()):this.freshBind(t,n,i,r,a,o,s)}freshBind(e,t,n,i,r,a,o){let s;const c=e.numAttributes,l=this.context,u=l.gl;if(l.extVertexArrayObject)this.vao&&this.destroy(),this.vao=l.extVertexArrayObject.createVertexArrayOES(),l.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=e,this.boundLayoutVertexBuffer=t,this.boundPaintVertexBuffers=n,this.boundIndexBuffer=i,this.boundVertexOffset=r,this.boundDynamicVertexBuffer=a,this.boundDynamicVertexBuffer2=o;else{s=l.currentNumAttributes||0;for(let e=c;e<s;e++)u.disableVertexAttribArray(e)}t.enableAttributes(u,e);for(const d of n)d.enableAttributes(u,e);a&&a.enableAttributes(u,e),o&&o.enableAttributes(u,e),t.bind(),t.setVertexAttribPointers(u,e,r);for(const d of n)d.bind(),d.setVertexAttribPointers(u,e,r);a&&(a.bind(),a.setVertexAttribPointers(u,e,r)),i&&i.bind(),o&&(o.bind(),o.setVertexAttribPointers(u,e,r)),l.currentNumAttributes=c}destroy(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)}}function an(t,n){const i=Math.pow(2,n.canonical.z),r=n.canonical.y;return[new e.MercatorCoordinate(0,r/i).toLngLat().lat,new e.MercatorCoordinate(0,(r+1)/i).toLngLat().lat]}function on(t,n,i,r,a,o,s){const c=t.context,l=c.gl,u=i.fbo;if(!u)return;t.prepareDrawTile();const d=t.useProgram("hillshade");c.activeTexture.set(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,u.colorAttachment.get());const p=((e,t,n,i)=>{const r=n.paint.get("hillshade-shadow-color"),a=n.paint.get("hillshade-highlight-color"),o=n.paint.get("hillshade-accent-color");let s=n.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===n.paint.get("hillshade-illumination-anchor")&&(s-=e.transform.angle);const c=!e.options.moving;return{u_matrix:i||e.transform.calculateProjMatrix(t.tileID.toUnwrapped(),c),u_image:0,u_latrange:an(0,t.tileID),u_light:[n.paint.get("hillshade-exaggeration"),s],u_shadow:r,u_highlight:a,u_accent:o}})(t,i,r,t.terrain?n.projMatrix:null);t.prepareDrawProgram(c,d,n.toUnwrapped());const{tileBoundsBuffer:h,tileBoundsIndexBuffer:m,tileBoundsSegments:f}=t.getTileBoundsBuffers(i);d.draw(c,l.TRIANGLES,a,o,s,e.CullFaceMode.disabled,p,r.id,h,m,f)}function sn(t,n,i){if(!n.needsDEMTextureUpload)return;const r=t.context,a=r.gl;r.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||t.getTileTexture(i.stride);const o=i.getPixels();n.demTexture?n.demTexture.update(o,{premultiply:!1}):n.demTexture=new e.Texture(r,o,a.RGBA,{premultiply:!1}),n.needsDEMTextureUpload=!1}function cn(t,n,i,r,a,o){const s=t.context,c=s.gl;if(!n.dem)return;const l=n.dem;if(s.activeTexture.set(c.TEXTURE1),sn(t,n,l),!n.demTexture)return;n.demTexture.bind(c.NEAREST,c.CLAMP_TO_EDGE);const u=l.dim;s.activeTexture.set(c.TEXTURE0);let d=n.fbo;if(!d){const t=new e.Texture(s,{width:u,height:u,data:null},c.RGBA);t.bind(c.LINEAR,c.CLAMP_TO_EDGE),d=n.fbo=s.createFramebuffer(u,u,!0),d.colorAttachment.set(t.texture)}s.bindFramebuffer.set(d.framebuffer),s.viewport.set([0,0,u,u]);const{tileBoundsBuffer:p,tileBoundsIndexBuffer:h,tileBoundsSegments:m}=t.getMercatorTileBoundsBuffers();t.useProgram("hillshadePrepare").draw(s,c.TRIANGLES,r,a,o,e.CullFaceMode.disabled,((t,n)=>{const i=n.stride,r=e.create();return e.ortho(r,0,e.EXTENT,-e.EXTENT,0,0,1),e.translate(r,r,[0,-e.EXTENT,0]),{u_matrix:r,u_image:1,u_dimension:[i,i],u_zoom:t.overscaledZ,u_unpack:n.unpackVector}})(n.tileID,l),i.id,p,h,m),n.needsHillshadePrepare=!1}const ln=(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image0:new e.Uniform1i(t,n.u_image0),u_skirt_height:new e.Uniform1f(t,n.u_skirt_height)}),un=(e,t)=>({u_matrix:e,u_image0:0,u_skirt_height:t}),dn=(e,t,n,i,r,a)=>({u_proj_matrix:Float32Array.from(e),u_globe_matrix:t,u_merc_matrix:n,u_zoom_transition:i,u_merc_center:r,u_image0:0,u_grid_matrix:a?Float32Array.from(a):new Float32Array(9)});function pn(e,t){return null!=e&&null!=t&&!(!e.hasData()||!t.hasData())&&null!=e.demTexture&&null!=t.demTexture&&e.tileID.key!==t.tileID.key}const hn=new class{constructor(){this.operations={}}newMorphing(e,t,n,i,r){if(e in this.operations){const t=this.operations[e];t.to.tileID.key!==n.tileID.key&&(t.queued=n)}else this.operations[e]={startTime:i,phase:0,duration:r,from:t,to:n,queued:null}}getMorphValuesForProxy(e){if(!(e in this.operations))return null;const t=this.operations[e];return{from:t.from,to:t.to,phase:t.phase}}update(e){for(const t in this.operations){const n=this.operations[t];for(n.phase=(e-n.startTime)/n.duration;n.phase>=1||!this._validOp(n);)if(!this._nextOp(n,e)){delete this.operations[t];break}}}_nextOp(e,t){return!!e.queued&&(e.from=e.to,e.to=e.queued,e.queued=null,e.phase=0,e.startTime=t,!0)}_validOp(e){return e.from.hasData()&&e.to.hasData()}},mn={0:null,1:"TERRAIN_VERTEX_MORPHING",2:"TERRAIN_WIREFRAME"};function fn(e,t){const n=1<<e.z;return!t&&(0===e.x||e.x===n-1)||0===e.y||e.y===n-1}const gn=e=>({u_matrix:e});function bn(t,n,i,r,a){if(a>0){const o=e.exported.now(),s=(o-t.timeAdded)/a,c=n?(o-n.timeAdded)/a:-1,l=i.getSource(),u=r.coveringZoomLevel({tileSize:l.tileSize,roundZoom:l.roundZoom}),d=!n||Math.abs(n.tileID.overscaledZ-u)>Math.abs(t.tileID.overscaledZ-u),p=d&&t.refreshedUponExpiration?1:e.clamp(d?s:1-c,0,1);return t.refreshedUponExpiration&&s>=1&&(t.refreshedUponExpiration=!1),n?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}const vn=2*e.mercatorZfromAltitude(1,0)*e.GLOBE_RADIUS*Math.PI;class yn extends e.SourceCache{constructor(e){const t={type:"raster-dem",maxzoom:e.transform.maxZoom},n=new M(Fe(),null),i=Ae("mock-dem",t,n,e.style);super("mock-dem",i,!1),i.setEventedParent(this),this._sourceLoaded=!0}_loadTile(e,t){e.state="loaded",t(null)}}class xn extends e.SourceCache{constructor(e){const t=Ae("proxy",{type:"geojson",maxzoom:e.transform.maxZoom},new M(Fe(),null),e.style);super("proxy",t,!1),t.setEventedParent(this),this.map=this.getSource().map=e,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(t,n,i){if(t.freezeTileCoverage)return;this.transform=t;const r=t.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce((n,i)=>{if(n[i.key]="",!this._tiles[i.key]){const n=new e.Tile(i,this._source.tileSize*i.overscaleFactor(),t.tileZoom);n.state="loaded",this._tiles[i.key]=n}return n},{});for(const e in this._tiles)e in r||(this.freeFBO(e),this._tiles[e].unloadVectorData(),delete this._tiles[e])}freeFBO(e){const t=this.proxyCachedFBO[e];if(void 0!==t){const n=Object.values(t);this.renderCachePool.push(...n),delete this.proxyCachedFBO[e]}}deallocRenderCache(){this.renderCache.forEach(e=>e.fb.destroy()),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class _n extends e.OverscaledTileID{constructor(e,t,n){super(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y),this.proxyTileKey=t,this.projMatrix=n}}class wn extends e.Elevation{constructor(t,n){super(),this.painter=t,this.terrainTileForTile={},this.prevTerrainTileForTile={};const[i,r,a]=function(t){const n=new e.StructArrayLayout4i8,i=new e.StructArrayLayout3ui6,r=131;n.reserve(17161),i.reserve(33800);const a=e.EXTENT/128,o=e.EXTENT+a/2,s=o+a;for(let l=-a;l<s;l+=a)for(let t=-a;t<s;t+=a){const i=t<0||t>o||l<0||l>o?24575:0,r=e.clamp(Math.round(t),0,e.EXTENT),a=e.clamp(Math.round(l),0,e.EXTENT);n.emplaceBack(r+i,a,r,a)}const c=(e,t)=>{const n=t*r+e;i.emplaceBack(n+1,n,n+r),i.emplaceBack(n+r,n+r+1,n+1)};for(let e=1;e<129;e++)for(let t=1;t<129;t++)c(t,e);return[0,129].forEach(e=>{for(let t=0;t<130;t++)c(t,e),c(e,t)}),[n,i,32768]}(),o=t.context;this.gridBuffer=o.createVertexBuffer(i,e.boundsAttributes.members),this.gridIndexBuffer=o.createIndexBuffer(r),this.gridSegments=e.SegmentVector.simpleSegment(0,0,i.length,r.length),this.gridNoSkirtSegments=e.SegmentVector.simpleSegment(0,0,i.length,a),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new xn(n.map),this.orthoMatrix=e.create(),e.ortho(this.orthoMatrix,0,e.EXTENT,0,e.EXTENT,0,1);const s=o.gl;this._overlapStencilMode=new e.StencilMode({func:s.GEQUAL,mask:255},0,255,s.KEEP,s.KEEP,s.REPLACE),this._previousZoom=t.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=n,this._useVertexMorphing=!0,this._exaggeration=1,this._mockSourceCache=new yn(n.map)}set style(e){e.on("data",this._onStyleDataEvent.bind(this)),e.on("neworder",this._checkRenderCacheEfficiency.bind(this)),this._style=e,this._checkRenderCacheEfficiency()}update(t,n,i){if(t&&t.terrain){this._style!==t&&(this.style=t),this.enabled=!0;const r=t.terrain.properties;this.sourceCache=0===t.terrain.drapeRenderMode?this._mockSourceCache:t._getSourceCache(r.get("source")),this._exaggeration=r.get("exaggeration");const a=()=>{this.sourceCache.used&&e.warnOnce(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source.\nThis leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);const t=this.getScaledDemTileSize();this.sourceCache.update(n,t,!0),this.resetTileLookupCache(this.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,a(),this._initializing=!0),a(),n.updateElevation(!i),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(n),this._emptyDEMTextureDirty=!0}else this._disable()}resetTileLookupCache(e){this._findCoveringTileCache[e]={}}getScaledDemTileSize(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}_checkRenderCacheEfficiency(){const t=this.renderCacheEfficiency(this._style);this._style.map._optimizeForTerrain||100!==t.efficiency&&e.warnOnce(`Terrain render cache efficiency is not optimal (${t.efficiency}%) and performance\n                may be affected negatively, consider placing all background, fill and line layers before layer\n                with id '${t.firstUndrapedLayer}' or create a map using optimizeForTerrain: true option.`)}_onStyleDataEvent(e){e.coord&&"source"===e.dataType?this._clearRenderCacheForTile(e.sourceCacheId,e.coord):"style"===e.dataType&&(this._invalidateRenderCache=!0)}_disable(){if(this.enabled&&(this.enabled=!1,this._sharedDepthStencil=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(const e in this._style._sourceCaches)this._style._sourceCaches[e].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this._emptyDepthBufferTexture&&this._emptyDepthBufferTexture.destroy(),this.pool.forEach(e=>e.fb.destroy()),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0)}_source(){return this.enabled?this.sourceCache:null}exaggeration(){return this._exaggeration}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){const e=2*this.proxySourceCache.getSource().tileSize;return[e,e]}set useVertexMorphing(e){this._useVertexMorphing=e}updateTileBinding(t){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;const n=this.proxySourceCache,i=this.painter.transform;this._initializing&&(this._initializing=0===i._centerAltitude&&-1===this.getAtPointOrZero(e.MercatorCoordinate.fromLngLat(i.center),-1),this._emptyDEMTextureDirty=!this._initializing);const r=this.proxyCoords=n.getIds().map(e=>{const t=n.getTileByID(e).tileID;return t.projMatrix=i.calculateProjMatrix(t.toUnwrapped()),t});!function(t,n){const i=n.transform.pointCoordinate(n.transform.getCameraPoint()),r=new e.pointGeometry(i.x,i.y);t.sort((t,n)=>{if(n.overscaledZ-t.overscaledZ)return n.overscaledZ-t.overscaledZ;const i=new e.pointGeometry(t.canonical.x+(1<<t.canonical.z)*t.wrap,t.canonical.y),a=new e.pointGeometry(n.canonical.x+(1<<n.canonical.z)*n.wrap,n.canonical.y),o=r.mult(1<<t.canonical.z);return o.x-=.5,o.y-=.5,o.distSqr(i)-o.distSqr(a)})}(r,this.painter),this._previousZoom=i.zoom;const a=this.proxyToSource||{};this.proxyToSource={},r.forEach(e=>{this.proxyToSource[e.key]={}}),this.terrainTileForTile={};const o=this._style._sourceCaches;for(const e in o){const n=o[e];if(!n.used)continue;if(n!==this.sourceCache&&this.resetTileLookupCache(n.id),this._setupProxiedCoordsForOrtho(n,t[e],a),n.usedForTerrain)continue;const i=t[e];n.getSource().reparseOverscaled&&this._assignTerrainTiles(i)}this.proxiedCoords[n.id]=r.map(e=>new _n(e,e.key,this.orthoMatrix)),this._assignTerrainTiles(r),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(a),this.renderingToTexture=!1,this._updateTimestamp=e.exported.now();const s={};this._visibleDemTiles=[];for(const e of this.proxyCoords){const t=this.terrainTileForTile[e.key];if(!t)continue;const n=t.tileID.key;n in s||(this._visibleDemTiles.push(t),s[n]=n)}}_assignTerrainTiles(e){this._initializing||e.forEach(e=>{if(this.terrainTileForTile[e.key])return;const t=this._findTileCoveringTileID(e,this.sourceCache);t&&(this.terrainTileForTile[e.key]=t)})}_prepareDEMTextures(){const e=this.painter.context,t=e.gl;for(const n in this.terrainTileForTile){const i=this.terrainTileForTile[n],r=i.dem;!r||i.demTexture&&!i.needsDEMTextureUpload||(e.activeTexture.set(t.TEXTURE1),sn(this.painter,i,r))}}_prepareDemTileUniforms(e,t,n,i){if(!t||null==t.demTexture)return!1;const r=e.tileID.canonical,a=Math.pow(2,t.tileID.canonical.z-r.z),o=i||"";return n["u_dem_tl"+o]=[r.x*a%1,r.y*a%1],n["u_dem_scale"+o]=a,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}get emptyDepthBufferTexture(){const t=this.painter.context,n=t.gl;if(!this._emptyDepthBufferTexture){const i=new e.RGBAImage({width:1,height:1},Uint8Array.of(255,255,255,255));this._emptyDepthBufferTexture=new e.Texture(t,i,n.RGBA,{premultiply:!1})}return this._emptyDepthBufferTexture}_getLoadedAreaMinimum(){let e=0;const t=this._visibleDemTiles.reduce((t,n)=>{if(!n.dem)return t;const i=n.dem.tree.minimums[0];return i>0&&e++,t+i},0);return e?t/e:0}_updateEmptyDEMTexture(){const t=this.painter.context,n=t.gl;t.activeTexture.set(n.TEXTURE2);const i=this._getLoadedAreaMinimum(),r=new e.RGBAImage({width:1,height:1},new Uint8Array(e.DEMData.pack(i,this.sourceCache.getSource().encoding)));this._emptyDEMTextureDirty=!1;let a=this._emptyDEMTexture;return a?a.update(r,{premultiply:!1}):a=this._emptyDEMTexture=new e.Texture(t,r,n.RGBA,{premultiply:!1}),a}setupElevationDraw(t,n,i){const r=this.painter.context,a=r.gl,o=(s=this.sourceCache.getSource().encoding,{u_dem:2,u_dem_prev:4,u_dem_unpack:e.DEMData.getUnpackVector(s),u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0,u_tile_tl_up:[0,0,1],u_tile_tr_up:[0,0,1],u_tile_br_up:[0,0,1],u_tile_bl_up:[0,0,1],u_tile_up_scale:1});var s;o.u_dem_size=this.sourceCache.getSource().tileSize,o.u_exaggeration=this.exaggeration();const c=this.painter.transform,l=c.projection,u=t.tileID.canonical;o.u_tile_tl_up=l.upVector(u,0,0),o.u_tile_tr_up=l.upVector(u,e.EXTENT,0),o.u_tile_br_up=l.upVector(u,e.EXTENT,e.EXTENT),o.u_tile_bl_up=l.upVector(u,0,e.EXTENT),o.u_tile_up_scale=i&&i.useDenormalizedUpVectorScale?vn:l.upVectorScale(u,c.center.lat,c.worldSize).metersToTile;let d=null,p=null,h=1;if(i&&i.morphing&&this._useVertexMorphing){const e=i.morphing.srcDemTile,n=i.morphing.dstDemTile;h=i.morphing.phase,e&&n&&(this._prepareDemTileUniforms(t,e,o,"_prev")&&(p=e),this._prepareDemTileUniforms(t,n,o)&&(d=n))}if(p&&d?(r.activeTexture.set(a.TEXTURE2),d.demTexture.bind(a.NEAREST,a.CLAMP_TO_EDGE,a.NEAREST),r.activeTexture.set(a.TEXTURE4),p.demTexture.bind(a.NEAREST,a.CLAMP_TO_EDGE,a.NEAREST),o.u_dem_lerp=h):(d=this.terrainTileForTile[t.tileID.key],r.activeTexture.set(a.TEXTURE2),(this._prepareDemTileUniforms(t,d,o)?d.demTexture:this.emptyDEMTexture).bind(a.NEAREST,a.CLAMP_TO_EDGE)),r.activeTexture.set(a.TEXTURE3),i&&i.useDepthForOcclusion?(this._depthTexture&&this._depthTexture.bind(a.NEAREST,a.CLAMP_TO_EDGE),this._depthFBO&&(o.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height])):(this.emptyDepthBufferTexture.bind(a.NEAREST,a.CLAMP_TO_EDGE),o.u_depth_size_inv=[1,1]),i&&i.useMeterToDem&&d){const t=(1<<d.tileID.canonical.z)*e.mercatorZfromAltitude(1,this.painter.transform.center.lat)*this.sourceCache.getSource().tileSize;o.u_meter_to_dem=t}i&&i.labelPlaneMatrixInv&&(o.u_label_plane_matrix_inv=i.labelPlaneMatrixInv),n.setTerrainUniformValues(r,o)}renderToBackBuffer(t){const n=this.painter,i=this.painter.context;0!==t.length&&(i.bindFramebuffer.set(null),i.viewport.set([0,0,n.width,n.height]),this.renderingToTexture=!1,function(t,n,i,r,a){if("globe"===t.transform.projection.name)!function(t,n,i,r,a){const o=t.context,s=o.gl;let c,l;const u=t.options.showTerrainWireframe?2:0,d=(e,n)=>{if(l===e)return;const i=[mn[e],"PROJECTION_GLOBE_VIEW"];n&&i.push(mn[u]),c=t.useProgram("globeRaster",null,i),l=e},p=t.colorModeForRenderPass(),h=new e.DepthMode(s.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D);hn.update(a);const m=t.transform,f=e.calculateGlobeMercatorMatrix(m),g=[e.mercatorXfromLng(m.center.lng),e.mercatorYfromLat(m.center.lat)],b=t.globeSharedBuffers;if((u?[!1,!0]:[!1]).forEach(u=>{l=-1;const v=u?s.LINES:s.TRIANGLES;for(const l of r){const r=i.getTile(l),y=e.StencilMode.disabled,x=n.prevTerrainTileForTile[l.key],_=n.terrainTileForTile[l.key];pn(x,_)&&hn.newMorphing(l.key,x,_,a,250),o.activeTexture.set(s.TEXTURE0),r.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE);const w=hn.getMorphValuesForProxy(l.key),O=w?1:0,j={useDenormalizedUpVectorScale:!0};w&&e.extend$1(j,{morphing:{srcDemTile:w.from,dstDemTile:w.to,phase:e.easeCubicInOut(w.phase)}});const C=Float32Array.from(m.globeMatrix),E=e.globeTileLatLngCorners(l.canonical),T=e.getGridMatrix(l.canonical,E),k=dn(m.projMatrix,C,f,e.globeToMercatorTransition(m.zoom),g,T);if(d(O,u),n.setupElevationDraw(r,c,j),t.prepareDrawProgram(o,c,l.toUnwrapped()),b){const[n,i,r]=u?b.getWirefameBuffers(t.context):b.getGridBuffers();c.draw(o,v,h,y,p,e.CullFaceMode.backCCW,k,"globe_raster",n,i,r)}}}),b){c=t.useProgram("globeRaster",null,["GLOBE_POLES","PROJECTION_GLOBE_VIEW"]);for(const a of r){const{x:r,y:l,z:u}=a.canonical,d=0===l,f=l===(1<<u)-1,[v,y,x,_]=b.getPoleBuffers(u);if(_&&(d||f)){const l=i.getTile(a);o.activeTexture.set(s.TEXTURE0),l.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE);let b=e.globePoleMatrixForTile(u,r,m);const w=(t,n)=>t.draw(o,s.TRIANGLES,h,e.StencilMode.disabled,p,e.CullFaceMode.disabled,dn(m.projMatrix,b,b,0,g),"globe_pole_raster",n,x,_);n.setupElevationDraw(l,c,{}),t.prepareDrawProgram(o,c,a.toUnwrapped()),d&&w(c,v),f&&(b=e.scale(e.create(),b,[1,-1,1]),w(c,y))}}}}(t,n,i,r,a);else{const o=t.context,s=o.gl;let c,l;const u=t.options.showTerrainWireframe?2:0,d=(e,n)=>{if(l===e)return;const i=[mn[e]];n&&i.push(mn[u]),c=t.useProgram("terrainRaster",null,i),l=e},p=t.colorModeForRenderPass(),h=new e.DepthMode(s.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D);hn.update(a);const m=t.transform,f=6*Math.pow(1.5,22-m.zoom)*n.exaggeration();(u?[!1,!0]:[!1]).forEach(u=>{l=-1;const g=u?s.LINES:s.TRIANGLES,[b,v]=u?n.getWirefameBuffer():[n.gridIndexBuffer,n.gridSegments];for(const l of r){const r=i.getTile(l),y=e.StencilMode.disabled,x=n.prevTerrainTileForTile[l.key],_=n.terrainTileForTile[l.key];pn(x,_)&&hn.newMorphing(l.key,x,_,a,250),o.activeTexture.set(s.TEXTURE0),r.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST);const w=hn.getMorphValuesForProxy(l.key),O=w?1:0;let j;w&&(j={morphing:{srcDemTile:w.from,dstDemTile:w.to,phase:e.easeCubicInOut(w.phase)}});const C=un(l.projMatrix,fn(l.canonical,m.renderWorldCopies)?f/10:f);d(O,u),n.setupElevationDraw(r,c,j),t.prepareDrawProgram(o,c,l.toUnwrapped()),c.draw(o,g,h,y,p,e.CullFaceMode.backCCW,C,"terrain_raster",n.gridBuffer,b,v)}})}}(n,this,this.proxySourceCache,t,this._updateTimestamp),this.renderingToTexture=!0,t.splice(0,t.length))}renderBatch(t){if(0===this._drapedRenderBatches.length)return t+1;this.renderingToTexture=!0;const n=this.painter,i=this.painter.context,r=this.proxySourceCache,a=this.proxiedCoords[r.id],o=this._drapedRenderBatches.shift(),s=[],c=n.style.order;let l=0;for(const u of a){const a=r.getTileByID(u.proxyTileKey),d=r.proxyCachedFBO[u.key]?r.proxyCachedFBO[u.key][t]:void 0,p=void 0!==d?r.renderCache[d]:this.pool[l++],h=void 0!==d;if(a.texture=p.tex,h&&!p.dirty){s.push(a.tileID);continue}let m;i.bindFramebuffer.set(p.fb.framebuffer),this.renderedToTile=!1,p.dirty&&(i.clear({color:e.Color.transparent,stencil:0}),p.dirty=!1);for(let e=o.start;e<=o.end;++e){const t=n.style._layers[c[e]];if(t.isHidden(n.transform.zoom))continue;const r=n.style._getLayerSourceCache(t),a=r?this.proxyToSource[u.key][r.id]:[u];if(!a)continue;const o=a;i.viewport.set([0,0,p.fb.width,p.fb.height]),m!==(r?r.id:null)&&(this._setupStencil(p,a,t,r),m=r?r.id:null),n.renderLayer(n,r,t,o)}this.renderedToTile?(p.dirty=!0,s.push(a.tileID)):h||--l,5===l&&(l=0,this.renderToBackBuffer(s))}return this.renderToBackBuffer(s),this.renderingToTexture=!1,i.bindFramebuffer.set(null),i.viewport.set([0,0,n.width,n.height]),o.end+1}postRender(){}renderCacheEfficiency(e){const t=e.order.length;if(0===t)return{efficiency:100};let n,i=0,r=0,a=!1;for(let o=0;o<t;++o){const t=e._layers[e.order[o]];this._style.isLayerDraped(t)?(a&&++i,++r):a||(a=!0,n=t.id)}return 0===r?{efficiency:100}:{efficiency:100*(1-i/r),firstUndrapedLayer:n}}getMinElevationBelowMSL(){let e=0;return this._visibleDemTiles.filter(e=>e.dem).forEach(t=>{e=Math.min(e,t.dem.tree.minimums[0])}),0===e?e:(e-30)*this._exaggeration}raycast(e,t,n){if(!this._visibleDemTiles)return null;const i=this._visibleDemTiles.filter(e=>e.dem).map(i=>{const r=i.tileID,a=Math.pow(2,r.overscaledZ),{x:o,y:s}=r.canonical,c=o/a,l=(o+1)/a,u=s/a,d=(s+1)/a;return{minx:c,miny:u,maxx:l,maxy:d,t:i.dem.tree.raycastRoot(c,u,l,d,e,t,n),tile:i}});i.sort((e,t)=>(null!==e.t?e.t:Number.MAX_VALUE)-(null!==t.t?t.t:Number.MAX_VALUE));for(const r of i){if(null==r.t)return null;const i=r.tile.dem.tree.raycast(r.minx,r.miny,r.maxx,r.maxy,e,t,n);if(null!=i)return i}return null}_createFBO(){const t=this.painter.context,n=t.gl,i=this.drapeBufferSize;t.activeTexture.set(n.TEXTURE0);const r=new e.Texture(t,{width:i[0],height:i[1],data:null},n.RGBA);r.bind(n.LINEAR,n.CLAMP_TO_EDGE);const a=t.createFramebuffer(i[0],i[1],!1);return a.colorAttachment.set(r.texture),a.depthAttachment=new we(t,a.framebuffer),void 0===this._sharedDepthStencil?(this._sharedDepthStencil=t.createRenderbuffer(t.gl.DEPTH_STENCIL,i[0],i[1]),this._stencilRef=0,a.depthAttachment.set(this._sharedDepthStencil),t.clear({stencil:0})):a.depthAttachment.set(this._sharedDepthStencil),t.extTextureFilterAnisotropic&&!t.extTextureFilterAnisotropicForceOff&&n.texParameterf(n.TEXTURE_2D,t.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,t.extTextureFilterAnisotropicMax),{fb:a,tex:r,dirty:!1}}_initFBOPool(){for(;this.pool.length<Math.min(5,this.proxyCoords.length);)this.pool.push(this._createFBO())}_shouldDisableRenderCache(){if(this._style.light&&this._style.light.hasTransition())return!0;for(const e in this._style._sourceCaches)if(this._style._sourceCaches[e].hasTransition())return!0;return this._style.order.some(e=>{const t=this._style._layers[e],n=t.isHidden(this.painter.transform.zoom),i=t.getCrossfadeParameters(),r=!!i&&1!==i.t,a=t.hasTransition();return"custom"!==t.type&&!n&&(r||a)})}_clearRasterFadeFromRenderCache(){let e=!1;for(const t in this._style._sourceCaches)if(this._style._sourceCaches[t]._source instanceof Ce){e=!0;break}if(e)for(let t=0;t<this._style.order.length;++t){const e=this._style._layers[this._style.order[t]],n=e.isHidden(this.painter.transform.zoom),i=this._style._getLayerSourceCache(e);if("raster"!==e.type||n||!i)continue;const r=e.paint.get("raster-fade-duration");for(const t of this.proxyCoords){const e=this.proxyToSource[t.key][i.id];if(e)for(const t of e){const e=bn(i.getTile(t),i.findLoadedParent(t,0),i,this.painter.transform,r);(1!==e.opacity||0!==e.mix)&&this._clearRenderCacheForTile(i.id,t)}}}}_setupDrapedRenderBatches(){const e=this._style.order,t=e.length;if(0===t)return;const n=[];let i,r=0,a=this._style._layers[e[r]];for(;!this._style.isLayerDraped(a)&&a.isHidden(this.painter.transform.zoom)&&++r<t;)a=this._style._layers[e[r]];for(;r<t;++r){const t=this._style._layers[e[r]];t.isHidden(this.painter.transform.zoom)||(this._style.isLayerDraped(t)?void 0===i&&(i=r):void 0!==i&&(n.push({start:i,end:r-1}),i=void 0))}void 0!==i&&n.push({start:i,end:r-1}),this._drapedRenderBatches=n}_setupRenderCache(e){const t=this.proxySourceCache;if(this._shouldDisableRenderCache()||this._invalidateRenderCache){if(this._invalidateRenderCache=!1,t.renderCache.length>t.renderCachePool.length){const e=Object.values(t.proxyCachedFBO);t.proxyCachedFBO={};for(let n=0;n<e.length;++n){const i=Object.values(e[n]);t.renderCachePool.push(...i)}}return}this._clearRasterFadeFromRenderCache();const n=this.proxyCoords,i=this._tilesDirty;for(let a=n.length-1;a>=0;a--){const r=n[a];if(t.getTileByID(r.key),void 0!==t.proxyCachedFBO[r.key]){const n=e[r.key],a=this.proxyToSource[r.key];let o=0;for(const e in a){const t=a[e],r=n[e];if(!r||r.length!==t.length||t.some((t,n)=>t!==r[n]||i[e]&&i[e].hasOwnProperty(t.key))){o=-1;break}++o}for(const e in t.proxyCachedFBO[r.key])t.renderCache[t.proxyCachedFBO[r.key][e]].dirty=o<0||o!==Object.values(n).length}}const r=[...this._drapedRenderBatches];r.sort((e,t)=>t.end-t.start-(e.end-e.start));for(const a of r)for(const e of n){if(t.proxyCachedFBO[e.key])continue;let n=t.renderCachePool.pop();void 0===n&&t.renderCache.length<50&&(n=t.renderCache.length,t.renderCache.push(this._createFBO())),void 0!==n&&(t.proxyCachedFBO[e.key]={},t.proxyCachedFBO[e.key][a.start]=n,t.renderCache[n].dirty=!0)}this._tilesDirty={}}_setupStencil(e,t,n,i){if(!i||!this._sourceTilesOverlap[i.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const r=this.painter.context,a=r.gl;if(t.length<=1)return void(this._overlapStencilType=!1);let o;if(n.isTileClipped())o=t.length,this._overlapStencilMode.test={func:a.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(t[0].overscaledZ>t[t.length-1].overscaledZ))return void(this._overlapStencilType=!1);o=1,this._overlapStencilMode.test={func:a.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+o>255&&(r.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=o,this._overlapStencilMode.ref=this._stencilRef,n.isTileClipped()&&this._renderTileClippingMasks(t,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return"Clip"===this._overlapStencilType||"Mask"===this._overlapStencilType}stencilModeForRTTOverlap(t){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs.get(t.key)||0),this._overlapStencilMode):e.StencilMode.disabled}_renderTileClippingMasks(t,n){const i=this.painter,r=this.painter.context,a=r.gl;i._tileClippingMaskIDs.clear(),r.setColorMode(e.ColorMode.disabled),r.setDepthMode(e.DepthMode.disabled);const o=i.useProgram("clippingMask");for(const s of t){const t=--n;i._tileClippingMaskIDs.set(s.key,t),o.draw(r,a.TRIANGLES,e.DepthMode.disabled,new e.StencilMode({func:a.ALWAYS,mask:0},t,255,a.KEEP,a.KEEP,a.REPLACE),e.ColorMode.disabled,e.CullFaceMode.disabled,gn(s.projMatrix),"$clipping",i.tileExtentBuffer,i.quadTriangleIndexBuffer,i.tileExtentSegments)}}pointCoordinate(t){const n=this.painter.transform;if(t.x<0||t.x>n.width||t.y<0||t.y>n.height)return null;const i=[t.x,t.y,1,1];e.transformMat4$1(i,i,n.pixelMatrixInverse),e.scale$1(i,i,1/i[3]),i[0]/=n.worldSize,i[1]/=n.worldSize;const r=n._camera.position,a=e.mercatorZfromAltitude(1,n.center.lat),o=[r[0],r[1],r[2]/a,0],s=e.subtract([],i.slice(0,3),o);e.normalize(s,s);const c=this.raycast(o,s,this._exaggeration);return null!==c&&c?(e.scaleAndAdd(o,o,s,c),o[3]=o[2],o[2]*=a,o):null}drawDepth(){const t=this.painter,n=t.context,i=this.proxySourceCache,r=Math.ceil(t.width),a=Math.ceil(t.height);if(!this._depthFBO||this._depthFBO.width===r&&this._depthFBO.height===a||(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0),!this._depthFBO){const t=n.gl,i=n.createFramebuffer(r,a,!0);n.activeTexture.set(t.TEXTURE0);const o=new e.Texture(n,{width:r,height:a,data:null},t.RGBA);o.bind(t.NEAREST,t.CLAMP_TO_EDGE),i.colorAttachment.set(o.texture);const s=n.createRenderbuffer(n.gl.DEPTH_COMPONENT16,r,a);i.depthAttachment.set(s),this._depthFBO=i,this._depthTexture=o}n.bindFramebuffer.set(this._depthFBO.framebuffer),n.viewport.set([0,0,r,a]),function(t,n,i,r){if("globe"===t.transform.projection.name)return;const a=t.context,o=a.gl;a.clear({depth:1});const s=t.useProgram("terrainDepth"),c=new e.DepthMode(o.LESS,e.DepthMode.ReadWrite,t.depthRangeFor3D);for(const l of r){const t=i.getTile(l),r=un(l.projMatrix,0);n.setupElevationDraw(t,s),s.draw(a,o.TRIANGLES,c,e.StencilMode.disabled,e.ColorMode.unblended,e.CullFaceMode.backCCW,r,"terrain_depth",n.gridBuffer,n.gridIndexBuffer,n.gridNoSkirtSegments)}}(t,this,i,this.proxyCoords)}_setupProxiedCoordsForOrtho(e,t,n){if(e.getSource()instanceof ke)return this._setupProxiedCoordsForImageSource(e,t,n);this._findCoveringTileCache[e.id]=this._findCoveringTileCache[e.id]||{};const i=this.proxiedCoords[e.id]=[],r=this.proxyCoords;for(let o=0;o<r.length;o++){const t=r[o],a=this._findTileCoveringTileID(t,e);if(a){const r=this._createProxiedId(t,a,n[t.key]&&n[t.key][e.id]);i.push(r),this.proxyToSource[t.key][e.id]=[r]}}let a=!1;for(let o=0;o<t.length;o++){const r=e.getTile(t[o]);if(!r||!r.hasData())continue;const s=this._findTileCoveringTileID(r.tileID,this.proxySourceCache);if(s&&s.tileID.canonical.z!==r.tileID.canonical.z){const t=this.proxyToSource[s.tileID.key][e.id],o=this._createProxiedId(s.tileID,r,n[s.tileID.key]&&n[s.tileID.key][e.id]);t?t.splice(t.length-1,0,o):this.proxyToSource[s.tileID.key][e.id]=[o],i.push(o),a=!0}}this._sourceTilesOverlap[e.id]=a}_setupProxiedCoordsForImageSource(t,n,i){if(!t.getSource().loaded())return;const r=this.proxiedCoords[t.id]=[],a=this.proxyCoords,o=t.getSource(),s=new e.pointGeometry(o.tileID.x,o.tileID.y)._div(1<<o.tileID.z),c=o.coordinates.map(e.MercatorCoordinate.fromLngLat).reduce((e,t)=>(e.min.x=Math.min(e.min.x,t.x-s.x),e.min.y=Math.min(e.min.y,t.y-s.y),e.max.x=Math.max(e.max.x,t.x-s.x),e.max.y=Math.max(e.max.y,t.y-s.y),e),{min:new e.pointGeometry(Number.MAX_VALUE,Number.MAX_VALUE),max:new e.pointGeometry(-Number.MAX_VALUE,-Number.MAX_VALUE)}),l=(t,n)=>{const i=t.wrap+t.canonical.x/(1<<t.canonical.z),r=t.canonical.y/(1<<t.canonical.z),a=e.EXTENT/(1<<t.canonical.z),o=n.wrap+n.canonical.x/(1<<n.canonical.z),s=n.canonical.y/(1<<n.canonical.z);return i+a<o+c.min.x||i>o+c.max.x||r+a<s+c.min.y||r>s+c.max.y};for(let e=0;e<a.length;e++){const o=a[e];for(let e=0;e<n.length;e++){const a=t.getTile(n[e]);if(!a||!a.hasData())continue;if(l(o,a.tileID))continue;const s=this._createProxiedId(o,a,i[o.key]&&i[o.key][t.id]),c=this.proxyToSource[o.key][t.id];c?c.push(s):this.proxyToSource[o.key][t.id]=[s],r.push(s)}}}_createProxiedId(t,n,i){let r=this.orthoMatrix;if(i){const e=i.find(e=>e.key===n.tileID.key);if(e)return e}if(n.tileID.key!==t.key){const i=t.canonical.z-n.tileID.canonical.z;let a,o,s;r=e.create();const c=n.tileID.wrap-t.wrap<<t.overscaledZ;i>0?(a=e.EXTENT>>i,o=a*((n.tileID.canonical.x<<i)-t.canonical.x+c),s=a*((n.tileID.canonical.y<<i)-t.canonical.y)):(a=e.EXTENT<<-i,o=e.EXTENT*(n.tileID.canonical.x-(t.canonical.x+c<<-i)),s=e.EXTENT*(n.tileID.canonical.y-(t.canonical.y<<-i))),e.ortho(r,0,a,0,a,0,1),e.translate(r,r,[o,s,0])}return new _n(n.tileID,t.key,r)}_findTileCoveringTileID(t,n){let i=n.getTile(t);if(i&&i.hasData())return i;const r=this._findCoveringTileCache[n.id],a=r[t.key];if(i=a?n.getTileByID(a):null,i&&i.hasData()||null===a)return i;let o=i?i.tileID:t,s=o.overscaledZ;const c=n.getSource().minzoom,l=[];if(!a){const r=n.getSource().maxzoom;if(t.canonical.z>=r){const i=t.canonical.z-r;n.getSource().reparseOverscaled?(s=Math.max(t.canonical.z+2,n.transform.tileZoom),o=new e.OverscaledTileID(s,t.wrap,r,t.canonical.x>>i,t.canonical.y>>i)):0!==i&&(s=r,o=new e.OverscaledTileID(s,t.wrap,r,t.canonical.x>>i,t.canonical.y>>i))}o.key!==t.key&&(l.push(o.key),i=n.getTile(o))}const u=e=>{l.forEach(t=>{r[t]=e}),l.length=0};for(s-=1;s>=c&&(!i||!i.hasData());s--){i&&u(i.tileID.key);const e=o.calculateScaledKey(s);if(i=n.getTileByID(e),i&&i.hasData())break;const t=r[e];if(null===t)break;void 0===t?l.push(e):i=n.getTileByID(t)}return u(i?i.tileID.key:null),i&&i.hasData()?i:null}findDEMTileFor(e){return this.enabled?this._findTileCoveringTileID(e,this.sourceCache):null}prepareDrawTile(){this.renderedToTile=!0}_clearRenderCacheForTile(e,t){let n=this._tilesDirty[e];n||(n=this._tilesDirty[e]={}),n[t.key]=!0}getWirefameBuffer(){if(!this.wireframeSegments){const t=function(t){let n=0;const i=new e.StructArrayLayout2ui4,r=131;for(let e=1;e<129;e++){for(let t=1;t<129;t++)n=e*r+t,i.emplaceBack(n,n+1),i.emplaceBack(n,n+r),i.emplaceBack(n+1,n+r),128===e&&i.emplaceBack(n+r,n+r+1);i.emplaceBack(n+1,n+1+r)}return i}();this.wireframeIndexBuffer=this.painter.context.createIndexBuffer(t),this.wireframeSegments=e.SegmentVector.simpleSegment(0,0,this.gridBuffer.length,t.length)}return[this.wireframeIndexBuffer,this.wireframeSegments]}}function On(e){const t=[];for(let n=0;n<e.length;n++){if(null===e[n])continue;const i=e[n].split(" ");t.push(i.pop())}return t}class jn{static cacheKey(e,t,n){let i=`${e}${n?n.cacheKey:""}`;for(const r of t)i+="/"+r;return i}constructor(t,n,i,r,a,o){const s=t.gl;this.program=s.createProgram();const c=On(i.staticAttributes),l=r?r.getBinderAttributes():[],u=c.concat(l),d=i.staticUniforms?On(i.staticUniforms):[],p=r?r.getBinderUniforms():[],h=d.concat(p),m=[];for(const e of h)m.indexOf(e)<0&&m.push(e);let f=r?r.defines():[];f=f.concat(o.map(e=>"#define "+e));const g=f.concat("\n#ifdef GL_ES\nprecision mediump float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif",en,$t.fragmentSource,Qt.fragmentSource,i.fragmentSource).join("\n"),b=f.concat("\n#ifdef GL_ES\nprecision highp float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif",en,$t.vertexSource,Qt.vertexSource,Jt.vertexSource,i.vertexSource).join("\n"),v=s.createShader(s.FRAGMENT_SHADER);if(s.isContextLost())return void(this.failedToCreate=!0);s.shaderSource(v,g),s.compileShader(v),s.attachShader(this.program,v);const y=s.createShader(s.VERTEX_SHADER);if(s.isContextLost())return void(this.failedToCreate=!0);s.shaderSource(y,b),s.compileShader(y),s.attachShader(this.program,y),this.attributes={};const x={};this.numAttributes=u.length;for(let e=0;e<this.numAttributes;e++)u[e]&&(s.bindAttribLocation(this.program,e,u[e]),this.attributes[u[e]]=e);s.linkProgram(this.program),s.deleteShader(y),s.deleteShader(v);for(let e=0;e<m.length;e++){const t=m[e];if(t&&!x[t]){const e=s.getUniformLocation(this.program,t);e&&(x[t]=e)}}this.fixedUniforms=a(t,x),this.binderUniforms=r?r.getUniforms(t,x):[],-1!==o.indexOf("TERRAIN")&&(this.terrainUniforms=((t,n)=>({u_dem:new e.Uniform1i(t,n.u_dem),u_dem_prev:new e.Uniform1i(t,n.u_dem_prev),u_dem_unpack:new e.Uniform4f(t,n.u_dem_unpack),u_dem_tl:new e.Uniform2f(t,n.u_dem_tl),u_dem_scale:new e.Uniform1f(t,n.u_dem_scale),u_dem_tl_prev:new e.Uniform2f(t,n.u_dem_tl_prev),u_dem_scale_prev:new e.Uniform1f(t,n.u_dem_scale_prev),u_dem_size:new e.Uniform1f(t,n.u_dem_size),u_dem_lerp:new e.Uniform1f(t,n.u_dem_lerp),u_exaggeration:new e.Uniform1f(t,n.u_exaggeration),u_depth:new e.Uniform1i(t,n.u_depth),u_depth_size_inv:new e.Uniform2f(t,n.u_depth_size_inv),u_meter_to_dem:new e.Uniform1f(t,n.u_meter_to_dem),u_label_plane_matrix_inv:new e.UniformMatrix4f(t,n.u_label_plane_matrix_inv),u_tile_tl_up:new e.Uniform3f(t,n.u_tile_tl_up),u_tile_tr_up:new e.Uniform3f(t,n.u_tile_tr_up),u_tile_br_up:new e.Uniform3f(t,n.u_tile_br_up),u_tile_bl_up:new e.Uniform3f(t,n.u_tile_bl_up),u_tile_up_scale:new e.Uniform1f(t,n.u_tile_up_scale)}))(t,x)),-1!==o.indexOf("FOG")&&(this.fogUniforms=((t,n)=>({u_fog_matrix:new e.UniformMatrix4f(t,n.u_fog_matrix),u_fog_range:new e.Uniform2f(t,n.u_fog_range),u_fog_color:new e.Uniform4f(t,n.u_fog_color),u_fog_horizon_blend:new e.Uniform1f(t,n.u_fog_horizon_blend),u_fog_temporal_offset:new e.Uniform1f(t,n.u_fog_temporal_offset)}))(t,x))}setTerrainUniformValues(e,t){if(!this.terrainUniforms)return;const n=this.terrainUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)n[e].set(t[e])}}setFogUniformValues(e,t){if(!this.fogUniforms)return;const n=this.fogUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)n[e].location&&n[e].set(t[e])}}draw(e,t,n,i,r,a,o,s,c,l,u,d,p,h,m,f){const g=e.gl;if(this.failedToCreate)return;e.program.set(this.program),e.setDepthMode(n),e.setStencilMode(i),e.setColorMode(r),e.setCullFace(a);for(const v of Object.keys(this.fixedUniforms))this.fixedUniforms[v].set(o[v]);h&&h.setUniforms(e,this.binderUniforms,d,{zoom:p});const b={[g.LINES]:2,[g.TRIANGLES]:3,[g.LINE_STRIP]:1}[t];for(const v of u.get()){const n=v.vaos||(v.vaos={});(n[s]||(n[s]=new rn)).bind(e,this,c,h?h.getPaintVertexBuffers():[],l,v.vertexOffset,m,f),g.drawElements(t,v.primitiveLength*b,g.UNSIGNED_SHORT,v.primitiveOffset*b*2)}}}function Cn(e,t,n){const i=1/L(n,1,t.transform.tileZoom),r=Math.pow(2,n.tileID.overscaledZ),a=n.tileSize*Math.pow(2,t.transform.tileZoom)/r,o=a*(n.tileID.canonical.x+n.tileID.wrap*r),s=a*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[i,e.fromScale,e.toScale],u_fade:e.t,u_pixel_coord_upper:[o>>16,s>>16],u_pixel_coord_lower:[65535&o,65535&s]}}const En=e.create(),Tn=(t,n,i,r,a,o,s,c,l)=>{const u=n.style.light,d=u.properties.get("position"),p=[d.x,d.y,d.z],h=e.create$1();"viewport"===u.properties.get("anchor")&&(e.fromRotation(h,-n.transform.angle),e.transformMat3(p,p,h));const m=u.properties.get("color"),f=n.transform,g={u_matrix:t,u_lightpos:p,u_lightintensity:u.properties.get("intensity"),u_lightcolor:[m.r,m.g,m.b],u_vertical_gradient:+i,u_opacity:r,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:En,u_merc_center:[0,0],u_up_dir:[0,0,0],u_height_lift:0};return"globe"===f.projection.name&&(g.u_tile_id=[a.canonical.x,a.canonical.y,1<<a.canonical.z],g.u_zoom_transition=s,g.u_inv_rot_matrix=l,g.u_merc_center=c,g.u_up_dir=f.projection.upVector(new e.CanonicalTileID(0,0,0),c[0]*e.EXTENT,c[1]*e.EXTENT),g.u_height_lift=o),g},kn=(t,n,i,r,a,o,s,c,l,u,d)=>{const p=Tn(t,n,i,r,a,c,l,u,d),h={u_height_factor:-Math.pow(2,a.overscaledZ)/s.tileSize/8};return e.extend(p,Cn(o,n,s),h)},Sn=e=>({u_matrix:e}),An=(t,n,i,r)=>e.extend(Sn(t),Cn(i,n,r)),In=(e,t)=>({u_matrix:e,u_world:t}),Mn=(t,n,i,r,a)=>e.extend(An(t,n,i,r),{u_world:a}),Ln=e.create(),Bn=(t,n,i,r,a,o)=>{const s=t.transform,c="globe"===s.projection.name;let l;if("map"===o.paint.get("circle-pitch-alignment"))if(c){const t=e.globePixelsToTileUnits(s.zoom,n.canonical);l=Float32Array.from([t,0,0,t])}else l=s.calculatePixelsToTileUnitsMatrix(i);else l=new Float32Array([s.pixelsToGLUnits[0],0,0,s.pixelsToGLUnits[1]]);const u={u_camera_to_center_distance:s.cameraToCenterDistance,u_matrix:t.translatePosMatrix(n.projMatrix,i,o.paint.get("circle-translate"),o.paint.get("circle-translate-anchor")),u_device_pixel_ratio:e.exported.devicePixelRatio,u_extrude_scale:l,u_inv_rot_matrix:Ln,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};return c&&(u.u_inv_rot_matrix=r,u.u_merc_center=a,u.u_tile_id=[n.canonical.x,n.canonical.y,1<<n.canonical.z],u.u_zoom_transition=e.globeToMercatorTransition(s.zoom),u.u_up_dir=s.projection.upVector(n.canonical,a[0],a[1])),u},Rn=e=>{const t=[];return"map"===e.paint.get("circle-pitch-alignment")&&t.push("PITCH_WITH_MAP"),"map"===e.paint.get("circle-pitch-scale")&&t.push("SCALE_WITH_MAP"),t},Dn=(t,n,i)=>{const r=e.EXTENT/i.tileSize;return{u_matrix:t,u_camera_to_center_distance:n.cameraToCenterDistance,u_extrude_scale:[n.pixelsToGLUnits[0]/r,n.pixelsToGLUnits[1]/r]}},Pn=(e,t,n=1)=>({u_matrix:e,u_color:t,u_overlay:0,u_overlay_scale:n}),zn=e.create(),Fn=(t,n,i,r,a,o,s)=>{const c=t.transform,l="globe"===c.projection.name,u=l?e.globePixelsToTileUnits(c.zoom,n.canonical):L(i,1,o),d={u_matrix:n.projMatrix,u_extrude_scale:u,u_intensity:s,u_inv_rot_matrix:zn,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};return l&&(d.u_inv_rot_matrix=r,d.u_merc_center=a,d.u_tile_id=[n.canonical.x,n.canonical.y,1<<n.canonical.z],d.u_zoom_transition=e.globeToMercatorTransition(c.zoom),d.u_up_dir=c.projection.upVector(n.canonical,a[0],a[1])),d},Nn=(e,t,n,i,r,a,o)=>{const s=e.transform,c=s.calculatePixelsToTileUnitsMatrix(t),l={u_matrix:Wn(e,t,n,r),u_pixels_to_tile_units:c,u_device_pixel_ratio:o,u_units_to_pixels:[1/s.pixelsToGLUnits[0],1/s.pixelsToGLUnits[1]],u_dash_image:0,u_gradient_image:1,u_image_height:a,u_texsize:[0,0],u_scale:[0,0,0],u_mix:0,u_alpha_discard_threshold:0};if(qn(n)){const n=Vn(t,e.transform);l.u_texsize=t.lineAtlasTexture.size,l.u_scale=[n,i.fromScale,i.toScale],l.u_mix=i.t}return l},Un=(e,t,n,i,r,a)=>{const o=e.transform,s=Vn(t,o);return{u_matrix:Wn(e,t,n,r),u_texsize:t.imageAtlasTexture.size,u_pixels_to_tile_units:o.calculatePixelsToTileUnitsMatrix(t),u_device_pixel_ratio:a,u_image:0,u_scale:[s,i.fromScale,i.toScale],u_fade:i.t,u_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]],u_alpha_discard_threshold:0}};function Vn(e,t){return 1/L(e,1,t.tileZoom)}function Wn(e,t,n,i){return e.translatePosMatrix(i||t.tileID.projMatrix,t,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}function qn(e){const t=e.paint.get("line-dasharray").value;return t.value||"constant"!==t.kind}const Gn=(e,t,n,i,r,a)=>{return{u_matrix:e,u_tl_parent:t,u_scale_parent:n,u_fade_t:i.mix,u_opacity:i.opacity*r.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:r.paint.get("raster-brightness-min"),u_brightness_high:r.paint.get("raster-brightness-max"),u_saturation_factor:(s=r.paint.get("raster-saturation"),s>0?1-1/(1.001-s):-s),u_contrast_factor:(o=r.paint.get("raster-contrast"),o>0?1/(1-o):1+o),u_spin_weights:Zn(r.paint.get("raster-hue-rotate")),u_perspective_transform:a};var o,s};function Zn(e){e*=Math.PI/180;const t=Math.sin(e),n=Math.cos(e);return[(2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3]}const Hn=e.create(),Xn=(t,n,i,r,a,o,s,c,l,u,d,p,h,m)=>{const f=a.transform,g={u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:n?n.uSizeT:0,u_size:n?n.uSize:0,u_camera_to_center_distance:f.cameraToCenterDistance,u_rotate_symbol:+i,u_aspect_ratio:f.width/f.height,u_fade_change:a.options.fadeDuration?a.symbolFadeChange:1,u_matrix:o,u_label_plane_matrix:s,u_coord_matrix:c,u_is_text:+l,u_pitch_with_map:+r,u_texsize:u,u_texture:0,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:Hn,u_merc_center:[0,0],u_camera_forward:[0,0,0],u_ecef_origin:[0,0,0],u_tile_matrix:Hn};return"globe"===f.projection.name&&(g.u_tile_id=[d.canonical.x,d.canonical.y,1<<d.canonical.z],g.u_zoom_transition=p,g.u_inv_rot_matrix=m,g.u_merc_center=h,g.u_camera_forward=f._camera.forward(),g.u_ecef_origin=e.globeECEFOrigin(f.globeMatrix,d.toUnwrapped()),g.u_tile_matrix=Float32Array.from(f.globeMatrix)),g},Kn=(t,n,i,r,a,o,s,c,l,u,d,p,h,m,f)=>{const{cameraToCenterDistance:g,_pitch:b}=a.transform;return e.extend(Xn(t,n,i,r,a,o,s,c,l,u,p,h,m,f),{u_gamma_scale:r?g*Math.cos(a.terrain?0:b):1,u_device_pixel_ratio:e.exported.devicePixelRatio,u_is_halo:+d})},Yn=(t,n,i,r,a,o,s,c,l,u,d,p,h,m)=>e.extend(Kn(t,n,i,r,a,o,s,c,!0,l,!0,d,p,h,m),{u_texsize_icon:u,u_texture_icon:1}),Jn=(e,t,n)=>({u_matrix:e,u_opacity:t,u_color:n}),Qn=(t,n,i,r,a,o)=>e.extend(function(e,t,n,i){const r=n.imageManager.getPattern(e.from.toString()),a=n.imageManager.getPattern(e.to.toString()),{width:o,height:s}=n.imageManager.getPixelSize(),c=Math.pow(2,i.tileID.overscaledZ),l=i.tileSize*Math.pow(2,n.transform.tileZoom)/c,u=l*(i.tileID.canonical.x+i.tileID.wrap*c),d=l*i.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:r.tl,u_pattern_br_a:r.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[o,s],u_mix:t.t,u_pattern_size_a:r.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/L(i,1,n.transform.tileZoom),u_pixel_coord_upper:[u>>16,d>>16],u_pixel_coord_lower:[65535&u,65535&d]}}(r,o,i,a),{u_matrix:t,u_opacity:n}),$n={fillExtrusion:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_lightpos:new e.Uniform3f(t,n.u_lightpos),u_lightintensity:new e.Uniform1f(t,n.u_lightintensity),u_lightcolor:new e.Uniform3f(t,n.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,n.u_vertical_gradient),u_opacity:new e.Uniform1f(t,n.u_opacity),u_tile_id:new e.Uniform3f(t,n.u_tile_id),u_zoom_transition:new e.Uniform1f(t,n.u_zoom_transition),u_inv_rot_matrix:new e.UniformMatrix4f(t,n.u_inv_rot_matrix),u_merc_center:new e.Uniform2f(t,n.u_merc_center),u_up_dir:new e.Uniform3f(t,n.u_up_dir),u_height_lift:new e.Uniform1f(t,n.u_height_lift)}),fillExtrusionPattern:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_lightpos:new e.Uniform3f(t,n.u_lightpos),u_lightintensity:new e.Uniform1f(t,n.u_lightintensity),u_lightcolor:new e.Uniform3f(t,n.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,n.u_vertical_gradient),u_height_factor:new e.Uniform1f(t,n.u_height_factor),u_tile_id:new e.Uniform3f(t,n.u_tile_id),u_zoom_transition:new e.Uniform1f(t,n.u_zoom_transition),u_inv_rot_matrix:new e.UniformMatrix4f(t,n.u_inv_rot_matrix),u_merc_center:new e.Uniform2f(t,n.u_merc_center),u_up_dir:new e.Uniform3f(t,n.u_up_dir),u_height_lift:new e.Uniform1f(t,n.u_height_lift),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade),u_opacity:new e.Uniform1f(t,n.u_opacity)}),fill:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}),fillPattern:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}),fillOutline:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world)}),fillOutlinePattern:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}),circle:(t,n)=>({u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_extrude_scale:new e.UniformMatrix2f(t,n.u_extrude_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_inv_rot_matrix:new e.UniformMatrix4f(t,n.u_inv_rot_matrix),u_merc_center:new e.Uniform2f(t,n.u_merc_center),u_tile_id:new e.Uniform3f(t,n.u_tile_id),u_zoom_transition:new e.Uniform1f(t,n.u_zoom_transition),u_up_dir:new e.Uniform3f(t,n.u_up_dir)}),collisionBox:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_extrude_scale:new e.Uniform2f(t,n.u_extrude_scale)}),collisionCircle:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_inv_matrix:new e.UniformMatrix4f(t,n.u_inv_matrix
2),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_viewport_size:new e.Uniform2f(t,n.u_viewport_size)}),debug:(t,n)=>({u_color:new e.UniformColor(t,n.u_color),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_overlay:new e.Uniform1i(t,n.u_overlay),u_overlay_scale:new e.Uniform1f(t,n.u_overlay_scale)}),clippingMask:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}),heatmap:(t,n)=>({u_extrude_scale:new e.Uniform1f(t,n.u_extrude_scale),u_intensity:new e.Uniform1f(t,n.u_intensity),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_inv_rot_matrix:new e.UniformMatrix4f(t,n.u_inv_rot_matrix),u_merc_center:new e.Uniform2f(t,n.u_merc_center),u_tile_id:new e.Uniform3f(t,n.u_tile_id),u_zoom_transition:new e.Uniform1f(t,n.u_zoom_transition),u_up_dir:new e.Uniform3f(t,n.u_up_dir)}),heatmapTexture:(t,n)=>({u_image:new e.Uniform1i(t,n.u_image),u_color_ramp:new e.Uniform1i(t,n.u_color_ramp),u_opacity:new e.Uniform1f(t,n.u_opacity)}),hillshade:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_latrange:new e.Uniform2f(t,n.u_latrange),u_light:new e.Uniform2f(t,n.u_light),u_shadow:new e.UniformColor(t,n.u_shadow),u_highlight:new e.UniformColor(t,n.u_highlight),u_accent:new e.UniformColor(t,n.u_accent)}),hillshadePrepare:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_dimension:new e.Uniform2f(t,n.u_dimension),u_zoom:new e.Uniform1f(t,n.u_zoom),u_unpack:new e.Uniform4f(t,n.u_unpack)}),line:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_pixels_to_tile_units:new e.UniformMatrix2f(t,n.u_pixels_to_tile_units),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_dash_image:new e.Uniform1i(t,n.u_dash_image),u_gradient_image:new e.Uniform1i(t,n.u_gradient_image),u_image_height:new e.Uniform1f(t,n.u_image_height),u_texsize:new e.Uniform2f(t,n.u_texsize),u_scale:new e.Uniform3f(t,n.u_scale),u_mix:new e.Uniform1f(t,n.u_mix),u_alpha_discard_threshold:new e.Uniform1f(t,n.u_alpha_discard_threshold)}),linePattern:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixels_to_tile_units:new e.UniformMatrix2f(t,n.u_pixels_to_tile_units),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_image:new e.Uniform1i(t,n.u_image),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade),u_alpha_discard_threshold:new e.Uniform1f(t,n.u_alpha_discard_threshold)}),raster:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_tl_parent:new e.Uniform2f(t,n.u_tl_parent),u_scale_parent:new e.Uniform1f(t,n.u_scale_parent),u_fade_t:new e.Uniform1f(t,n.u_fade_t),u_opacity:new e.Uniform1f(t,n.u_opacity),u_image0:new e.Uniform1i(t,n.u_image0),u_image1:new e.Uniform1i(t,n.u_image1),u_brightness_low:new e.Uniform1f(t,n.u_brightness_low),u_brightness_high:new e.Uniform1f(t,n.u_brightness_high),u_saturation_factor:new e.Uniform1f(t,n.u_saturation_factor),u_contrast_factor:new e.Uniform1f(t,n.u_contrast_factor),u_spin_weights:new e.Uniform3f(t,n.u_spin_weights),u_perspective_transform:new e.Uniform2f(t,n.u_perspective_transform)}),symbolIcon:(t,n)=>({u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_tile_id:new e.Uniform3f(t,n.u_tile_id),u_zoom_transition:new e.Uniform1f(t,n.u_zoom_transition),u_inv_rot_matrix:new e.UniformMatrix4f(t,n.u_inv_rot_matrix),u_merc_center:new e.Uniform2f(t,n.u_merc_center),u_camera_forward:new e.Uniform3f(t,n.u_camera_forward),u_tile_matrix:new e.UniformMatrix4f(t,n.u_tile_matrix),u_ecef_origin:new e.Uniform3f(t,n.u_ecef_origin),u_texture:new e.Uniform1i(t,n.u_texture)}),symbolSDF:(t,n)=>({u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix
2),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texture:new e.Uniform1i(t,n.u_texture),u_gamma_scale:new e.Uniform1f(t,n.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_tile_id:new e.Uniform3f(t,n.u_tile_id),u_zoom_transition:new e.Uniform1f(t,n.u_zoom_transition),u_inv_rot_matrix:new e.UniformMatrix4f(t,n.u_inv_rot_matrix),u_merc_center:new e.Uniform2f(t,n.u_merc_center),u_camera_forward:new e.Uniform3f(t,n.u_camera_forward),u_tile_matrix:new e.UniformMatrix4f(t,n.u_tile_matrix),u_ecef_origin:new e.Uniform3f(t,n.u_ecef_origin),u_is_halo:new e.Uniform1i(t,n.u_is_halo)}),symbolTextAndIcon:(t,n)=>({u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texsize_icon:new e.Uniform2f(t,n.u_texsize_icon),u_texture:new e.Uniform1i(t,n.u_texture),u_texture_icon:new e.Uniform1i(t,n.u_texture_icon),u_gamma_scale:new e.Uniform1f(t,n.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(t,n.u_is_halo)}),background:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_opacity:new e.Uniform1f(t,n.u_opacity),u_color:new e.UniformColor(t,n.u_color)}),backgroundPattern:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_opacity:new e.Uniform1f(t,n.u_opacity),u_image:new e.Uniform1i(t,n.u_image),u_pattern_tl_a:new e.Uniform2f(t,n.u_pattern_tl_a),u_pattern_br_a:new e.Uniform2f(t,n.u_pattern_br_a),u_pattern_tl_b:new e.Uniform2f(t,n.u_pattern_tl_b),u_pattern_br_b:new e.Uniform2f(t,n.u_pattern_br_b),u_texsize:new e.Uniform2f(t,n.u_texsize),u_mix:new e.Uniform1f(t,n.u_mix),u_pattern_size_a:new e.Uniform2f(t,n.u_pattern_size_a),u_pattern_size_b:new e.Uniform2f(t,n.u_pattern_size_b),u_scale_a:new e.Uniform1f(t,n.u_scale_a),u_scale_b:new e.Uniform1f(t,n.u_scale_b),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_tile_units_to_pixels:new e.Uniform1f(t,n.u_tile_units_to_pixels)}),terrainRaster:ln,terrainDepth:ln,skybox:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_sun_direction:new e.Uniform3f(t,n.u_sun_direction),u_cubemap:new e.Uniform1i(t,n.u_cubemap),u_opacity:new e.Uniform1f(t,n.u_opacity),u_temporal_offset:new e.Uniform1f(t,n.u_temporal_offset)}),skyboxGradient:(t,n)=>({u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_color_ramp:new e.Uniform1i(t,n.u_color_ramp),u_center_direction:new e.Uniform3f(t,n.u_center_direction),u_radius:new e.Uniform1f(t,n.u_radius),u_opacity:new e.Uniform1f(t,n.u_opacity),u_temporal_offset:new e.Uniform1f(t,n.u_temporal_offset)}),skyboxCapture:(t,n)=>({u_matrix_3f:new e.UniformMatrix3f(t,n.u_matrix_3f),u_sun_direction:new e.Uniform3f(t,n.u_sun_direction),u_sun_intensity:new e.Uniform1f(t,n.u_sun_intensity),u_color_tint_r:new e.Uniform4f(t,n.u_color_tint_r),u_color_tint_m:new e.Uniform4f(t,n.u_color_tint_m),u_luminance:new e.Uniform1f(t,n.u_luminance)}),globeRaster:(t,n)=>({u_proj_matrix:new e.UniformMatrix4f(t,n.u_proj_matrix),u_globe_matrix:new e.UniformMatrix4f(t,n.u_globe_matrix),u_merc_matrix:new e.UniformMatrix4f(t,n.u_merc_matrix),u_zoom_transition:new e.Uniform1f(t,n.u_zoom_transition),u_merc_center:new e.Uniform2f(t,n.u_merc_center),u_image0:new e.Uniform1i(t,n.u_image0),u_grid_matrix:new e.UniformMatrix3f(t,n.u_grid_matrix)}),globeAtmosphere:(t,n)=>({u_frustum_tl:new e.Uniform3f(t,n.u_frustum_tl),u_frustum_tr:new e.Uniform3f(t,n.u_frustum_tr),u_frustum_br:new e.Uniform3f(t,n.u_frustum_br),u_frustum_bl:new e.Uniform3f(t,n.u_frustum_bl),u_globe_pos:new e.Uniform3f(t,n.u_globe_pos),u_globe_radius:new e.Uniform1f(t,n.u_globe_radius),u_opacity:new e.Uniform1f(t,n.u_opacity),u_fadeout_range:new e.Uniform1f(t,n.u_fadeout_range),u_start_color:new e.Uniform3f(t,n.u_start_color),u_end_color:new e.Uniform3f(t,n.u_end_color)})};let ei;function ti(t,n,i,r,a,o,s){const c=t.context,l=c.gl,u=t.useProgram("collisionBox"),d=[];let p=0,h=0;for(let x=0;x<r.length;x++){const m=r[x],f=n.getTile(m),g=f.getBucket(i);if(!g)continue;let b=m.projMatrix;0===a[0]&&0===a[1]||(b=t.translatePosMatrix(m.projMatrix,f,a,o));const v=s?g.textCollisionBox:g.iconCollisionBox,y=g.collisionCircleArray;
2if(y.length>0){const n=e.create(),i=b;e.mul(n,g.placementInvProjMatrix,t.transform.glCoordMatrix),e.mul(n,n,g.placementViewportMatrix),d.push({circleArray:y,circleOffset:h,transform:i,invTransform:n}),p+=y.length/4,h=p}v&&(t.terrain&&t.terrain.setupElevationDraw(f,u),u.draw(c,l.LINES,e.DepthMode.disabled,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.disabled,Dn(b,t.transform,f),i.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,null,t.transform.zoom,null,v.collisionVertexBuffer,v.collisionVertexBufferExt))}if(!s||!d.length)return;const m=t.useProgram("collisionCircle"),f=new e.StructArrayLayout2f1f2i16;f.resize(4*p),f._trim();let g=0;for(const e of d)for(let t=0;t<e.circleArray.length/4;t++){const n=4*t,i=e.circleArray[n+0],r=e.circleArray[n+1],a=e.circleArray[n+2],o=e.circleArray[n+3];f.emplace(g++,i,r,a,o,0),f.emplace(g++,i,r,a,o,1),f.emplace(g++,i,r,a,o,2),f.emplace(g++,i,r,a,o,3)}(!ei||ei.length<2*p)&&(ei=function(t){const n=2*t,i=new e.StructArrayLayout3ui6;i.resize(n),i._trim();for(let e=0;e<n;e++){const t=6*e;i.uint16[t+0]=4*e+0,i.uint16[t+1]=4*e+1,i.uint16[t+2]=4*e+2,i.uint16[t+3]=4*e+2,i.uint16[t+4]=4*e+3,i.uint16[t+5]=4*e+0}return i}(p));const b=c.createIndexBuffer(ei,!0),v=c.createVertexBuffer(f,e.collisionCircleLayout.members,!0);for(const x of d){const n={u_matrix:x.transform,u_inv_matrix:x.invTransform,u_camera_to_center_distance:(y=t.transform).cameraToCenterDistance,u_viewport_size:[y.width,y.height]};m.draw(c,l.TRIANGLES,e.DepthMode.disabled,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.disabled,n,i.id,v,b,e.SegmentVector.simpleSegment(0,2*x.circleOffset,x.circleArray.length,x.circleArray.length/2),null,t.transform.zoom,null,null,null)}var y;v.destroy(),b.destroy()}const ni=e.create();function ii(t,n,i,r,a,o){const{horizontalAlign:s,verticalAlign:c}=e.getAnchorAlignment(t),l=-(s-.5)*n,u=-(c-.5)*i,d=e.evaluateVariableOffset(t,r);return new e.pointGeometry((l/a+d[0])*o,(u/a+d[1])*o)}function ri(t,n,i,r,a,o,s,c,l,u,d,p){const h=t.text.placedSymbolArray,m=t.text.dynamicLayoutVertexArray,f=t.icon.dynamicLayoutVertexArray,g={},b=c.projMatrix,v=o.elevation,y=p.upVectorScale(c.canonical,o.center.lat,o.worldSize);m.clear();for(let x=0;x<h.length;x++){const f=h.get(x),_=t.allowVerticalPlacement&&!f.placedOrientation,w=f.hidden||!f.crossTileID||_?null:r[f.crossTileID];if(w){const r=new e.pointGeometry(f.tileAnchorX,f.tileAnchorY),h=p.upVector(c.canonical,r.x,r.y),x=v?v.getAtTileOffset(c,r.x,r.y):0,_=nt([f.projectedAnchorX+x*h[0]*y.metersToTile,f.projectedAnchorY+x*h[1]*y.metersToTile,f.projectedAnchorZ+x*h[2]*y.metersToTile],i?b:s),O=it(o.cameraToCenterDistance,_.signedDistanceFromCamera);let j=a.evaluateSizeForFeature(t.textSizeData,u,f)*O/e.ONE_EM;i&&(j*=t.tilePixelRatio/l);const{width:C,height:E,anchor:T,textOffset:k,textScale:S}=w,A=ii(T,C,E,k,S,j),I=i?tt(r.add(A),s,x*y.metersToLabelSpace).point:_.point.add(n?A.rotate(-o.angle):A),M=t.allowVerticalPlacement&&f.placedOrientation===e.WritingMode.vertical?Math.PI/2:0;for(let t=0;t<f.numGlyphs;t++)e.addDynamicAttributes(m,I,M);d&&f.associatedIconIndex>=0&&(g[f.associatedIconIndex]={shiftedAnchor:I,angle:M})}else ht(f.numGlyphs,m)}if(d){f.clear();const n=t.icon.placedSymbolArray;for(let t=0;t<n.length;t++){const i=n.get(t);if(i.hidden)ht(i.numGlyphs,f);else{const n=g[t];if(n)for(let t=0;t<i.numGlyphs;t++)e.addDynamicAttributes(f,n.shiftedAnchor,n.angle);else ht(i.numGlyphs,f)}}t.icon.dynamicLayoutVertexBuffer.updateData(f)}t.text.dynamicLayoutVertexBuffer.updateData(m)}function ai(e,t,n){return n.iconsInText&&t?"symbolTextAndIcon":e?"symbolSDF":"symbolIcon"}function oi(t,n,i,r,a,o,s,c,l,u,d,p){const h=t.context,m=h.gl,f=t.transform,g="map"===c,b="map"===l,v=g&&"point"!==i.layout.get("symbol-placement"),y=g&&!b&&!v,x=void 0!==i.layout.get("symbol-sort-key").constantOr(1);let _=!1;const w=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),O=[e.mercatorXfromLng(f.center.lng),e.mercatorYfromLat(f.center.lat)],j=i.layout.get("text-variable-anchor"),C="globe"===f.projection.name,E=C?e.globeToMercatorTransition(f.zoom):0,T=[],k=[];
2t.terrain&&b&&k.push("PITCH_WITH_MAP_TERRAIN"),C&&k.push("PROJECTION_GLOBE_VIEW");for(const S of r){const r=n.getTile(S),c=r.getBucket(i);if(!c||c.projection!==f.projection.name)continue;const l=a?c.text:c.icon;if(!l||c.fullyClipped||!l.segments.get().length)continue;const d=l.programConfigurations.get(i.id),p=a||c.sdfIcons,h=a?c.textSizeData:c.iconSizeData,w=b||0!==f.pitch,C=e.evaluateSizeForZoom(h,f.zoom);let A,I,M,L,B=[0,0],R=null;if(a){if(I=r.glyphAtlasTexture,M=m.LINEAR,A=r.glyphAtlasTexture.size,c.iconsInText){B=r.imageAtlasTexture.size,R=r.imageAtlasTexture;const e="composite"===h.kind||"camera"===h.kind;L=w||t.options.rotating||t.options.zooming||e?m.LINEAR:m.NEAREST}}else{const e=1!==i.layout.get("icon-size").constantOr(0)||c.iconsNeedLinear;I=r.imageAtlasTexture,M=p||t.options.rotating||t.options.zooming||e||w?m.LINEAR:m.NEAREST,A=r.imageAtlasTexture.size}const D=t.transform.calculatePixelsToTileUnitsMatrix(r),P=$e(S.projMatrix,r.tileID.canonical,b,g,t.transform,D),z=t.terrain&&b&&v?e.invert(e.create(),P):ni,F=et(S.projMatrix,r.tileID.canonical,b,g,t.transform,D),N=j&&c.hasTextData(),U="none"!==i.layout.get("icon-text-fit")&&N&&c.hasIconData();if(v){const e=f.elevation,n=e?e.getAtTileOffsetFunc(S,f.center.lat,f.worldSize,f.projection):e=>[0,0,0];at(c,S.projMatrix,t,a,P,F,b,u,n,S)}const V=v||a&&j||U,W=t.translatePosMatrix(S.projMatrix,r,o,s),q=V?ni:P,G=t.translatePosMatrix(F,r,o,s,!0),Z=f.projection.createInversionMatrix(f,S.canonical),H=V?k.concat(["PROJECTED_POS_ON_VIEWPORT"]):k,X=p&&0!==i.paint.get(a?"text-halo-width":"icon-halo-width").constantOr(1);let K;K=p?c.iconsInText?Yn(h.kind,C,y,b,t,W,q,G,A,B,S,E,O,Z):Kn(h.kind,C,y,b,t,W,q,G,a,A,!0,S,E,O,Z):Xn(h.kind,C,y,b,t,W,q,G,a,A,S,E,O,Z);const Y={program:t.useProgram(ai(p,a,c),d,H),buffers:l,uniformValues:K,atlasTexture:I,atlasTextureIcon:R,atlasInterpolation:M,atlasInterpolationIcon:L,isSDF:p,hasHalo:X,tile:r,labelPlaneMatrixInv:z};if(x&&c.canOverlap){_=!0;const t=l.segments.get();for(const n of t)T.push({segments:new e.SegmentVector([n]),sortKey:n.sortKey,state:Y})}else T.push({segments:l.segments,sortKey:0,state:Y})}_&&T.sort((e,t)=>
vendor: 29,614 bytes, line 2
2e.sortKey-t.sortKey);for(const e of T){const n=e.state;if(t.terrain&&t.terrain.setupElevationDraw(n.tile,n.program,{useDepthForOcclusion:!C,labelPlaneMatrixInv:n.labelPlaneMatrixInv}),h.activeTexture.set(m.TEXTURE0),n.atlasTexture.bind(n.atlasInterpolation,m.CLAMP_TO_EDGE),n.atlasTextureIcon&&(h.activeTexture.set(m.TEXTURE1),n.atlasTextureIcon&&n.atlasTextureIcon.bind(n.atlasInterpolationIcon,m.CLAMP_TO_EDGE)),n.isSDF){const r=n.uniformValues;n.hasHalo&&(r.u_is_halo=1,si(n.buffers,e.segments,i,t,n.program,w,d,p,r)),r.u_is_halo=0}si(n.buffers,e.segments,i,t,n.program,w,d,p,n.uniformValues)}}function si(t,n,i,r,a,o,s,c,l){const u=r.context;a.draw(u,u.gl.TRIANGLES,o,s,c,e.CullFaceMode.disabled,l,i.id,t.layoutVertexBuffer,t.indexBuffer,n,i.paint,r.transform.zoom,t.programConfigurations.get(i.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function ci(t,n,i,r,a,o,s){const c=t.context.gl,l=i.paint.get("fill-pattern"),u=l&&l.constantOr(1),d=i.getCrossfadeParameters();let p,h,m,f,g;s?(h=u&&!i.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",p=c.LINES):(h=u?"fillPattern":"fill",p=c.TRIANGLES);for(const b of r){const r=n.getTile(b);if(u&&!r.patternsLoaded())continue;const v=r.getBucket(i);if(!v)continue;t.prepareDrawTile();const y=v.programConfigurations.get(i.id),x=t.useProgram(h,y);u&&(t.context.activeTexture.set(c.TEXTURE0),r.imageAtlasTexture.bind(c.LINEAR,c.CLAMP_TO_EDGE),y.updatePaintBuffers(d));const _=l.constantOr(null);if(_&&r.imageAtlas){const e=r.imageAtlas,t=e.patternPositions[_.to.toString()],n=e.patternPositions[_.from.toString()];t&&n&&y.setConstantPatternPositions(t,n)}const w=t.translatePosMatrix(b.projMatrix,r,i.paint.get("fill-translate"),i.paint.get("fill-translate-anchor"));if(s){f=v.indexBuffer2,g=v.segments2;const e=t.terrain&&t.terrain.renderingToTexture?t.terrain.drapeBufferSize:[c.drawingBufferWidth,c.drawingBufferHeight];m="fillOutlinePattern"===h&&u?Mn(w,t,d,r,e):In(w,e)}else f=v.indexBuffer,g=v.segments,m=u?An(w,t,d,r):Sn(w);t.prepareDrawProgram(t.context,x,b.toUnwrapped()),x.draw(t.context,p,a,t.stencilModeForClipping(b),o,e.CullFaceMode.disabled,m,i.id,v.layoutVertexBuffer,f,g,i.paint,t.transform.zoom,y)}}function li(t,n,i,r,a,o,s){const c=t.context,l=c.gl,u=t.transform,d=i.paint.get("fill-extrusion-pattern"),p=d.constantOr(1),h=i.getCrossfadeParameters(),m=i.paint.get("fill-extrusion-opacity"),f=function(t){if("globe"!==t.projection.name)return 0;const n=Math.PI/32,i=Math.tan(n),r=e.earthRadius;return r*Math.sqrt(1+2*i*i)-r}(u),g="globe"===u.projection.name,b=g?e.globeToMercatorTransition(u.zoom):0,v=[e.mercatorXfromLng(u.center.lng),e.mercatorYfromLat(u.center.lat)],y=[];g&&y.push("PROJECTION_GLOBE_VIEW");for(const x of r){const r=n.getTile(x),_=r.getBucket(i);if(!_||_.projection!==u.projection.name)continue;const w=_.programConfigurations.get(i.id),O=t.useProgram(p?"fillExtrusionPattern":"fillExtrusion",w,y);if(t.terrain){const e=t.terrain;if(t.style.terrainSetForDrapingOnly())e.setupElevationDraw(r,O,{useMeterToDem:!0});else{if(!_.enableTerrain)continue;if(e.setupElevationDraw(r,O,{useMeterToDem:!0}),ui(c,n,x,_,i,e),!_.centroidVertexBuffer){const e=O.attributes.a_centroid_pos;void 0!==e&&l.vertexAttrib2f(e,0,0)}}}p&&(t.context.activeTexture.set(l.TEXTURE0),r.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),w.updatePaintBuffers(h));const j=d.constantOr(null);if(j&&r.imageAtlas){const e=r.imageAtlas,t=e.patternPositions[j.to.toString()],n=e.patternPositions[j.from.toString()];t&&n&&w.setConstantPatternPositions(t,n)}const C=t.translatePosMatrix(x.projMatrix,r,i.paint.get("fill-extrusion-translate"),i.paint.get("fill-extrusion-translate-anchor")),E=u.projection.createInversionMatrix(u,x.canonical),T=i.paint.get("fill-extrusion-vertical-gradient"),k=p?kn(C,t,T,m,x,h,r,f,b,v,E):Tn(C,t,T,m,x,f,b,v,E);t.prepareDrawProgram(c,O,x.toUnwrapped()),O.draw(c,c.gl.TRIANGLES,a,o,s,e.CullFaceMode.backCCW,k,i.id,_.layoutVertexBuffer,_.indexBuffer,_.segments,i.paint,t.transform.zoom,w,t.terrain?_.centroidVertexBuffer:null,g?_.layoutVertexExtBuffer:null)}}function ui(t,n,i,r,a,o){const s=[t=>{let n=t.canonical.x-1,i=t.wrap;return n<0&&(n=(1<<t.canonical.z)-1,i--),new e.OverscaledTileID(t.overscaledZ,i,t.canonical.z,n,t.canonical.y)},t=>{let n=t.canonical.x+1,i=t.wrap;return n===1<<t.canonical.z&&(n=0,i++),new e.OverscaledTileID(t.overscaledZ,i,t.canonical.z,n,t.canonical.y)},t=>new e.OverscaledTileID(t.overscaledZ,t.wrap,t.canonical.z,t.canonical.x,(0===t.canonical.y?1<<t.canonical.z:t.canonical.y)-1),t=>new e.OverscaledTileID(t.overscaledZ,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y===(1<<t.canonical.z)-1?0:t.canonical.y+1)],c=e=>{const t=n.getSource().minzoom,i=e=>{const t=n.getTileByID(e);if(t&&t.hasData())return t.getBucket(a)},r=[0,-1,1];for(const n of r){if(e.overscaledZ+n<t)continue;const r=i(e.calculateScaledKey(e.overscaledZ+n));if(r)return r}},l=[0,0,0],u=(t,n)=>(l[0]=Math.min(t.min.y,n.min.y),l[1]=Math.max(t.max.y,n.max.y),l[2]=e.EXTENT-n.min.x>t.max.x?n.min.x-e.EXTENT:t.max.x,l),d=(t,n)=>(l[0]=Math.min(t.min.x,n.min.x),l[1]=Math.max(t.max.x,n.max.x),l[2]=e.EXTENT-n.min.y>t.max.y?n.min.y-e.EXTENT:t.max.y,l),p=[(e,t)=>u(e,t),(e,t)=>u(t,e),(e,t)=>d(e,t),(e,t)=>d(t,e)],h=new e.pointGeometry(0,0);let m,f,g;const b=(t,n,r,a,s)=>{const c=[[a?r:t,a?t:r,0],[a?r:n,a?n:r,0]],l=s<0?e.EXTENT+s:s,u=[a?l:(t+n)/2,a?(t+n)/2:l,0];return 0===r&&s<0||0!==r&&s>0?o.getForTilePoints(g,[u],!0,f):c.push(u),o.getForTilePoints(i,c,!0,m),Math.max(c[0][2],c[1][2],u[2])/o.exaggeration()};for(let v=0;v<4;v++){const t=(v<2?1:5)-v,n=r.borders[v];if(0===n.length)continue;const a=g=s[v](i),l=c(a);if(!(l&&l instanceof e.FillExtrusionBucket&&l.enableTerrain))continue;if(r.borderDoneWithNeighborZ[v]===l.canonical.z&&l.borderDoneWithNeighborZ[t]===r.canonical.z)continue;if(f=o.findDEMTileFor(a),!f||!f.dem)continue;if(!m){const e=o.findDEMTileFor(i);if(!e||!e.dem)return;m=e}const u=l.borders[t];let d=0;const y=l.borderDoneWithNeighborZ[t]!==r.canonical.z;if(r.canonical.z===l.canonical.z){for(let i=0;i<n.length;i++){const a=r.featuresOnBorder[n[i]],o=a.borders[v];let s;for(;d<u.length&&(s=l.featuresOnBorder[u[d]],!(s.borders[t][1]>o[0]+3));)y&&l.encodeCentroid(void 0,s,!1),d++;if(s&&d<u.length){const n=d;let i=0;for(;!(s.borders[t][0]>o[1]-3)&&(i++,++d!==u.length);)s=l.featuresOnBorder[u[d]];if(s=l.featuresOnBorder[u[n]],a.intersectsCount()>1||s.intersectsCount()>1||1!==i){1!==i&&(d=n),r.encodeCentroid(void 0,a,!1),y&&l.encodeCentroid(void 0,s,!1);continue}const c=p[v](a,s),m=v%2?e.EXTENT-1:0;h.x=b(c[0],Math.min(e.EXTENT-1,c[1]),m,v<2,c[2]),h.y=0,r.encodeCentroid(h,a,!1),y&&l.encodeCentroid(h,s,!1)}else r.encodeCentroid(void 0,a,!1)}r.borderDoneWithNeighborZ[v]=l.canonical.z,r.needsCentroidUpdate=!0,y&&(l.borderDoneWithNeighborZ[t]=r.canonical.z,l.needsCentroidUpdate=!0)}else{for(const e of n)r.encodeCentroid(void 0,r.featuresOnBorder[e],!1);if(y){for(const e of u)l.encodeCentroid(void 0,l.featuresOnBorder[e],!1);l.borderDoneWithNeighborZ[t]=r.canonical.z,l.needsCentroidUpdate=!0}r.borderDoneWithNeighborZ[v]=l.canonical.z,r.needsCentroidUpdate=!0}}(r.needsCentroidUpdate||!r.centroidVertexBuffer&&0!==r.centroidVertexArray.length)&&r.uploadCentroid(t)}const di=new e.Color(1,0,0,1),pi=new e.Color(0,1,0,1),hi=new e.Color(0,0,1,1),mi=new e.Color(1,0,1,1),fi=new e.Color(0,1,1,1);function gi(e,t,n,i){vi(e,0,t+n/2,e.transform.width,n,i)}function bi(e,t,n,i){vi(e,t-n/2,0,n,e.transform.height,i)}function vi(t,n,i,r,a,o){const s=t.context,c=s.gl;c.enable(c.SCISSOR_TEST),c.scissor(n*e.exported.devicePixelRatio,i*e.exported.devicePixelRatio,r*e.exported.devicePixelRatio,a*e.exported.devicePixelRatio),s.clear({color:o}),c.disable(c.SCISSOR_TEST)}function yi(t,n,i){const r=t.context,a=r.gl,o="globe"===t.transform.projection.name,s=i.projMatrix,c=t.useProgram("debug",null,o?["PROJECTION_GLOBE_VIEW"]:null),l=n.getTileByID(i.key);t.terrain&&t.terrain.setupElevationDraw(l,c);const u=e.DepthMode.disabled,d=e.StencilMode.disabled,p=t.colorModeForRenderPass(),h="$debug";r.activeTexture.set(a.TEXTURE0),t.emptyTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),o?l._makeGlobeTileDebugBuffers(t.context,t.transform.projection):l._makeDebugTileBoundsBuffers(t.context,t.transform.projection);const m=l._tileDebugBuffer||t.debugBuffer,f=l._tileDebugIndexBuffer||t.debugIndexBuffer,g=l._tileDebugSegments||t.debugSegments;c.draw(r,a.LINE_STRIP,u,d,p,e.CullFaceMode.disabled,Pn(s,e.Color.red),h,m,f,g,null,null,null,l._globeTileDebugBorderBuffer);const b=l.latestRawTileData,v=Math.floor((b&&b.byteLength||0)/1024),y=n.getTile(i).tileSize,x=512/Math.min(y,512)*(i.overscaledZ/t.transform.zoom)*.5;let _=i.canonical.toString();i.overscaledZ!==i.canonical.z&&(_+=" => "+i.overscaledZ),function(e,t){e.initDebugOverlayCanvas();const n=e.debugOverlayCanvas,i=e.context.gl,r=e.debugOverlayCanvas.getContext("2d");r.clearRect(0,0,n.width,n.height),r.shadowColor="white",r.shadowBlur=2,r.lineWidth=1.5,r.strokeStyle="white",r.textBaseline="top",r.font="bold 36px Open Sans, sans-serif",r.fillText(t,5,5),r.strokeText(t,5,5),e.debugOverlayTexture.update(n),e.debugOverlayTexture.bind(i.LINEAR,i.CLAMP_TO_EDGE)}(t,`${_} ${v}kb`);const w=l._tileDebugTextBuffer||t.debugBuffer,O=l._tileDebugTextIndexBuffer||t.quadTriangleIndexBuffer,j=l._tileDebugTextSegments||t.debugSegments;c.draw(r,a.TRIANGLES,u,d,e.ColorMode.alphaBlended,e.CullFaceMode.disabled,Pn(s,e.Color.transparent,x),h,w,O,j,null,null,null,l._globeTileDebugTextBuffer)}const xi=e.createLayout([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:_i}=xi;function wi(e,t,n,i){e.emplaceBack(t,n,i)}class Oi{constructor(t){this.vertexArray=new e.StructArrayLayout3f12,this.indices=new e.StructArrayLayout3ui6,wi(this.vertexArray,-1,-1,1),wi(this.vertexArray,1,-1,1),wi(this.vertexArray,-1,1,1),wi(this.vertexArray,1,1,1),wi(this.vertexArray,-1,-1,-1),wi(this.vertexArray,1,-1,-1),wi(this.vertexArray,-1,1,-1),wi(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=t.createVertexBuffer(this.vertexArray,_i),this.indexBuffer=t.createIndexBuffer(this.indices),this.segment=e.SegmentVector.simpleSegment(0,0,36,12)}}function ji(t,n,i,r,a,o){const s=t.gl,c=n.paint.get("sky-atmosphere-color"),l=n.paint.get("sky-atmosphere-halo-color"),u=n.paint.get("sky-atmosphere-sun-intensity"),d=((e,t,n,i,r)=>({u_matrix_3f:e,u_sun_direction:t,u_sun_intensity:n,u_color_tint_r:[i.r,i.g,i.b,i.a],u_color_tint_m:[r.r,r.g,r.b,r.a],u_luminance:5e-5}))(e.fromMat4(e.create$1(),r),a,u,c,l);s.framebufferTexture2D(s.FRAMEBUFFER,s.COLOR_ATTACHMENT0,s.TEXTURE_CUBE_MAP_POSITIVE_X+o,n.skyboxTexture,0),i.draw(t,s.TRIANGLES,e.DepthMode.disabled,e.StencilMode.disabled,e.ColorMode.unblended,e.CullFaceMode.frontCW,d,"skyboxCapture",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}function Ci(t,n){return e.transformMat4(t,t,n)}const Ei={symbol:function(t,n,i,r,a){if("translucent"!==t.renderPass)return;const o=e.StencilMode.disabled,s=t.colorModeForRenderPass();i.layout.get("text-variable-anchor")&&function(t,n,i,r,a,o,s){const c=n.transform,l="map"===a,u="map"===o;for(const d of t){const t=r.getTile(d),a=t.getBucket(i);if(!a||a.projection!==c.projection.name||!a.text||!a.text.segments.get().length)continue;const o=e.evaluateSizeForZoom(a.textSizeData,c.zoom),p=n.transform.calculatePixelsToTileUnitsMatrix(t),h=$e(d.projMatrix,t.tileID.canonical,u,l,n.transform,p),m="none"!==i.layout.get("icon-text-fit")&&a.hasIconData();if(o){const n=Math.pow(2,c.zoom-t.tileID.overscaledZ);ri(a,l,u,s,e.symbolSize,c,h,d,n,o,m,c.projection)}}}(r,t,i,n,i.layout.get("text-rotation-alignment"),i.layout.get("text-pitch-alignment"),a),0!==i.paint.get("icon-opacity").constantOr(1)&&oi(t,n,i,r,!1,i.paint.get("icon-translate"),i.paint.get("icon-translate-anchor"),i.layout.get("icon-rotation-alignment"),i.layout.get("icon-pitch-alignment"),i.layout.get("icon-keep-upright"),o,s),0!==i.paint.get("text-opacity").constantOr(1)&&oi(t,n,i,r,!0,i.paint.get("text-translate"),i.paint.get("text-translate-anchor"),i.layout.get("text-rotation-alignment"),i.layout.get("text-pitch-alignment"),i.layout.get("text-keep-upright"),o,s),n.map.showCollisionBoxes&&(ti(t,n,i,r,i.paint.get("text-translate"),i.paint.get("text-translate-anchor"),!0),ti(t,n,i,r,i.paint.get("icon-translate"),i.paint.get("icon-translate-anchor"),!1))},circle:function(t,n,i,r){if("translucent"!==t.renderPass)return;const a=i.paint.get("circle-opacity"),o=i.paint.get("circle-stroke-width"),s=i.paint.get("circle-stroke-opacity"),c=void 0!==i.layout.get("circle-sort-key").constantOr(1);if(0===a.constantOr(1)&&(0===o.constantOr(1)||0===s.constantOr(1)))return;const l=t.context,u=l.gl,d=t.transform,p=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),h=e.StencilMode.disabled,m=t.colorModeForRenderPass(),f="globe"===d.projection.name,g=[e.mercatorXfromLng(d.center.lng),e.mercatorYfromLat(d.center.lat)],b=[];for(let y=0;y<r.length;y++){const a=r[y],o=n.getTile(a),s=o.getBucket(i);if(!s)continue;const l=s.programConfigurations.get(i.id),u=Rn(i);f&&u.push("PROJECTION_GLOBE_VIEW");const p=t.useProgram("circle",l,u),h=s.layoutVertexBuffer,m=s.globeExtVertexBuffer,v=s.indexBuffer,x=d.projection.createInversionMatrix(d,a.canonical),_={programConfiguration:l,program:p,layoutVertexBuffer:h,globeExtVertexBuffer:m,indexBuffer:v,uniformValues:Bn(t,a,o,x,g,i),tile:o};if(c){const t=s.segments.get();for(const n of t)b.push({segments:new e.SegmentVector([n]),sortKey:n.sortKey,state:_})}else b.push({segments:s.segments,sortKey:0,state:_})}c&&b.sort((e,t)=>e.sortKey-t.sortKey);const v={useDepthForOcclusion:!f};for(const y of b){const{programConfiguration:n,program:r,layoutVertexBuffer:a,globeExtVertexBuffer:o,indexBuffer:s,uniformValues:c,tile:g}=y.state,b=y.segments;t.terrain&&t.terrain.setupElevationDraw(g,r,v),t.prepareDrawProgram(l,r,g.tileID.toUnwrapped()),r.draw(l,u.TRIANGLES,p,h,m,e.CullFaceMode.disabled,c,i.id,a,s,b,i.paint,d.zoom,n,f?o:null)}},heatmap:function(t,n,i,r){if(0!==i.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){const a=t.context,o=a.gl,s=e.StencilMode.disabled,c=new e.ColorMode([o.ONE,o.ONE],e.Color.transparent,[!0,!0,!0,!0]);!function(e,t,n){const i=e.gl;e.activeTexture.set(i.TEXTURE1),e.viewport.set([0,0,t.width/4,t.height/4]);let r=n.heatmapFbo;if(r)i.bindTexture(i.TEXTURE_2D,r.colorAttachment.get()),e.bindFramebuffer.set(r.framebuffer);else{const a=i.createTexture();i.bindTexture(i.TEXTURE_2D,a),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_S,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_WRAP_T,i.CLAMP_TO_EDGE),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,i.LINEAR),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,i.LINEAR),r=n.heatmapFbo=e.createFramebuffer(t.width/4,t.height/4,!1),function(e,t,n,i){const r=e.gl;r.texImage2D(r.TEXTURE_2D,0,r.RGBA,t.width/4,t.height/4,0,r.RGBA,e.extRenderToTextureHalfFloat?e.extTextureHalfFloat.HALF_FLOAT_OES:r.UNSIGNED_BYTE,null),i.colorAttachment.set(n)}(e,t,a,r)}}(a,t,i),a.clear({color:e.Color.transparent});const l=t.transform,u="globe"===l.projection.name,d=u?["PROJECTION_GLOBE_VIEW"]:null,p=[e.mercatorXfromLng(l.center.lng),e.mercatorYfromLat(l.center.lat)];for(let h=0;h<r.length;h++){const m=r[h];if(n.hasRenderableParent(m))continue;const f=n.getTile(m),g=f.getBucket(i);if(!g)continue;const b=g.programConfigurations.get(i.id),v=t.useProgram("heatmap",b,d),{zoom:y}=t.transform;t.terrain&&t.terrain.setupElevationDraw(f,v),t.prepareDrawProgram(a,v,m.toUnwrapped());const x=l.projection.createInversionMatrix(l,m.canonical);v.draw(a,o.TRIANGLES,e.DepthMode.disabled,s,c,e.CullFaceMode.disabled,Fn(t,m,f,x,p,y,i.paint.get("heatmap-intensity")),i.id,g.layoutVertexBuffer,g.indexBuffer,g.segments,i.paint,t.transform.zoom,b,u?g.globeExtVertexBuffer:null)}a.viewport.set([0,0,t.width,t.height])}else"translucent"===t.renderPass&&(t.context.setColorMode(t.colorModeForRenderPass()),function(t,n){const i=t.context,r=i.gl,a=n.heatmapFbo;if(!a)return;i.activeTexture.set(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,a.colorAttachment.get()),i.activeTexture.set(r.TEXTURE1);let o=n.colorRampTexture;o||(o=n.colorRampTexture=new e.Texture(i,n.colorRamp,r.RGBA)),o.bind(r.LINEAR,r.CLAMP_TO_EDGE),t.useProgram("heatmapTexture").draw(i,r.TRIANGLES,e.DepthMode.disabled,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.disabled,((e,t,n,i)=>({u_image:0,u_color_ramp:1,u_opacity:t.paint.get("heatmap-opacity")}))(0,n),n.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,n.paint,t.transform.zoom)}(t,i))},line:function(t,n,i,r){if("translucent"!==t.renderPass)return;const a=i.paint.get("line-opacity"),o=i.paint.get("line-width");if(0===a.constantOr(1)||0===o.constantOr(1))return;const s=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),c=t.colorModeForRenderPass(),l=t.terrain&&t.terrain.renderingToTexture?1:e.exported.devicePixelRatio,u=i.paint.get("line-dasharray"),d=u.constantOr(1),p=i.layout.get("line-cap"),h=i.paint.get("line-pattern"),m=h.constantOr(1),f=i.paint.get("line-gradient"),g=i.getCrossfadeParameters(),b=m?"linePattern":"line",v=t.context,y=v.gl,x=(e=>{const t=[];qn(e)&&t.push("RENDER_LINE_DASH"),e.paint.get("line-gradient")&&t.push("RENDER_LINE_GRADIENT");const n=e.paint.get("line-pattern").constantOr(1),i=1!==e.paint.get("line-opacity").constantOr(1);return!n&&i&&t.push("RENDER_LINE_ALPHA_DISCARD"),t})(i);let _=x.includes("RENDER_LINE_ALPHA_DISCARD");t.terrain&&t.terrain.clipOrMaskOverlapStencilType()&&(_=!1);for(const w of r){const r=n.getTile(w);if(m&&!r.patternsLoaded())continue;const a=r.getBucket(i);if(!a)continue;t.prepareDrawTile();const o=a.programConfigurations.get(i.id),O=t.useProgram(b,o,x),j=h.constantOr(null);if(j&&r.imageAtlas){const e=r.imageAtlas,t=e.patternPositions[j.to.toString()],n=e.patternPositions[j.from.toString()];t&&n&&o.setConstantPatternPositions(t,n)}const C=u.constantOr(null),E=p.constantOr(null);if(!m&&C&&E&&r.lineAtlas){const e=r.lineAtlas,t=e.getDash(C.to,E),n=e.getDash(C.from,E);t&&n&&o.setConstantPatternPositions(t,n)}const T=t.terrain?w.projMatrix:null,k=m?Un(t,r,i,g,T,l):Nn(t,r,i,g,T,a.lineClipsArray.length,l);if(f){const r=a.gradients[i.id];let o=r.texture;if(i.gradientVersion!==r.version){let s=256;if(i.stepInterpolant){const i=n.getSource().maxzoom,r=w.canonical.z===i?Math.ceil(1<<t.transform.maxZoom-w.canonical.z):1;s=e.clamp(e.nextPowerOfTwo(a.maxLineLength/e.EXTENT*1024*r),256,v.maxTextureSize)}r.gradient=e.renderColorRamp({expression:i.gradientExpression(),evaluationKey:"lineProgress",resolution:s,image:r.gradient||void 0,clips:a.lineClipsArray}),r.texture?r.texture.update(r.gradient):r.texture=new e.Texture(v,r.gradient,y.RGBA),r.version=i.gradientVersion,o=r.texture}v.activeTexture.set(y.TEXTURE1),o.bind(i.stepInterpolant?y.NEAREST:y.LINEAR,y.CLAMP_TO_EDGE)}d&&(v.activeTexture.set(y.TEXTURE0),r.lineAtlasTexture.bind(y.LINEAR,y.REPEAT),o.updatePaintBuffers(g)),m&&(v.activeTexture.set(y.TEXTURE0),r.imageAtlasTexture.bind(y.LINEAR,y.CLAMP_TO_EDGE),o.updatePaintBuffers(g)),t.prepareDrawProgram(v,O,w.toUnwrapped());const S=n=>{O.draw(v,y.TRIANGLES,s,n,c,e.CullFaceMode.disabled,k,i.id,a.layoutVertexBuffer,a.indexBuffer,a.segments,i.paint,t.transform.zoom,o,a.layoutVertexBuffer2)};if(_){const n=t.stencilModeForClipping(w).ref;0===n&&t.terrain&&v.clear({stencil:0});const i={func:y.EQUAL,mask:255};k.u_alpha_discard_threshold=.8,S(new e.StencilMode(i,n,255,y.KEEP,y.KEEP,y.INVERT)),k.u_alpha_discard_threshold=0,S(new e.StencilMode(i,n,255,y.KEEP,y.KEEP,y.KEEP))}else S(t.stencilModeForClipping(w))}_&&(t.resetStencilClippingMasks(),t.terrain&&v.clear({stencil:0}))},fill:function(t,n,i,r){const a=i.paint.get("fill-color"),o=i.paint.get("fill-opacity");if(0===o.constantOr(1))return;const s=t.colorModeForRenderPass(),c=i.paint.get("fill-pattern"),l=t.opaquePassEnabledForLayer()&&!c.constantOr(1)&&1===a.constantOr(e.Color.transparent).a&&1===o.constantOr(0)?"opaque":"translucent";if(t.renderPass===l){const a=t.depthModeForSublayer(1,"opaque"===t.renderPass?e.DepthMode.ReadWrite:e.DepthMode.ReadOnly);ci(t,n,i,r,a,s,!1)}if("translucent"===t.renderPass&&i.paint.get("fill-antialias")){const a=t.depthModeForSublayer(i.getPaintProperty("fill-outline-color")?2:0,e.DepthMode.ReadOnly);ci(t,n,i,r,a,s,!0)}},"fill-extrusion":function(t,n,i,r){const a=i.paint.get("fill-extrusion-opacity");if(0!==a&&"translucent"===t.renderPass){const o=new e.DepthMode(t.context.gl.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D);if(1!==a||i.paint.get("fill-extrusion-pattern").constantOr(1))li(t,n,i,r,o,e.StencilMode.disabled,e.ColorMode.disabled),li(t,n,i,r,o,t.stencilModeFor3D(),t.colorModeForRenderPass()),t.resetStencilClippingMasks();else{const a=t.colorModeForRenderPass();li(t,n,i,r,o,e.StencilMode.disabled,a)}}},hillshade:function(t,n,i,r){if("offscreen"!==t.renderPass&&"translucent"!==t.renderPass)return;const a=t.context,o=t.depthModeForSublayer(0,e.DepthMode.ReadOnly),s=t.colorModeForRenderPass(),c=t.terrain&&t.terrain.renderingToTexture,[l,u]="translucent"!==t.renderPass||c?[{},r]:t.stencilConfigForOverlap(r);for(const d of u){const r=n.getTile(d);if(r.needsHillshadePrepare&&"offscreen"===t.renderPass)cn(t,r,i,o,e.StencilMode.disabled,s);else if("translucent"===t.renderPass){const e=c&&t.terrain?t.terrain.stencilModeForRTTOverlap(d):l[d.overscaledZ];on(t,d,r,i,o,e,s)}}a.viewport.set([0,0,t.width,t.height]),t.resetStencilClippingMasks()},raster:function(t,n,i,r,a,o){if("translucent"!==t.renderPass)return;if(0===i.paint.get("raster-opacity"))return;if(!r.length)return;const s=t.context,c=s.gl,l=n.getSource(),u=t.useProgram("raster"),d=t.colorModeForRenderPass(),p=t.terrain&&t.terrain.renderingToTexture,[h,m]=l instanceof ke||p?[{},r]:t.stencilConfigForOverlap(r),f=m[m.length-1].overscaledZ,g=!t.options.moving;for(const b of m){const r=p?e.DepthMode.disabled:t.depthModeForSublayer(b.overscaledZ-f,1===i.paint.get("raster-opacity")?e.DepthMode.ReadWrite:e.DepthMode.ReadOnly,c.LESS),a=b.toUnwrapped(),m=n.getTile(b);if(p&&(!m||!m.hasData()))continue;const v=p?b.projMatrix:t.transform.calculateProjMatrix(a,g),y=t.terrain&&p?t.terrain.stencilModeForRTTOverlap(b):h[b.overscaledZ],x=o?0:i.paint.get("raster-fade-duration");m.registerFadeDuration(x);const _=n.findLoadedParent(b,0),w=bn(m,_,n,t.transform,x);let O,j;t.terrain&&t.terrain.prepareDrawTile();const C="nearest"===i.paint.get("raster-resampling")?c.NEAREST:c.LINEAR;s.activeTexture.set(c.TEXTURE0),m.texture.bind(C,c.CLAMP_TO_EDGE),s.activeTexture.set(c.TEXTURE1),_?(_.texture.bind(C,c.CLAMP_TO_EDGE),O=Math.pow(2,_.tileID.overscaledZ-m.tileID.overscaledZ),j=[m.tileID.canonical.x*O%1,m.tileID.canonical.y*O%1]):m.texture.bind(C,c.CLAMP_TO_EDGE);const E=Gn(v,j||[0,0],O||1,w,i,l instanceof ke?l.perspectiveTransform:[0,0]);if(t.prepareDrawProgram(s,u,a),l instanceof ke)l.boundsBuffer&&l.boundsSegments&&u.draw(s,c.TRIANGLES,r,e.StencilMode.disabled,d,e.CullFaceMode.disabled,E,i.id,l.boundsBuffer,t.quadTriangleIndexBuffer,l.boundsSegments);else{const{tileBoundsBuffer:n,tileBoundsIndexBuffer:a,tileBoundsSegments:o}=t.getTileBoundsBuffers(m);u.draw(s,c.TRIANGLES,r,y,d,e.CullFaceMode.disabled,E,i.id,n,a,o)}}t.resetStencilClippingMasks()},background:function(t,n,i,r){const a=i.paint.get("background-color"),o=i.paint.get("background-opacity");if(0===o)return;const s=t.context,c=s.gl,l=t.transform,u=l.tileSize,d=i.paint.get("background-pattern");if(t.isPatternMissing(d))return;const p=!d&&1===a.a&&1===o&&t.opaquePassEnabledForLayer()?"opaque":"translucent";if(t.renderPass!==p)return;const h=e.StencilMode.disabled,m=t.depthModeForSublayer(0,"opaque"===p?e.DepthMode.ReadWrite:e.DepthMode.ReadOnly),f=t.colorModeForRenderPass(),g=t.useProgram(d?"backgroundPattern":"background");let b,v=r;v||(b=t.getBackgroundTiles(),v=Object.values(b).map(e=>e.tileID)),d&&(s.activeTexture.set(c.TEXTURE0),t.imageManager.bind(t.context));const y=i.getCrossfadeParameters();for(const x of v){const p=x.toUnwrapped(),v=r?x.projMatrix:t.transform.calculateProjMatrix(p);t.prepareDrawTile();const _=n?n.getTile(x):b?b[x.key]:new e.Tile(x,u,l.zoom,t),w=d?Qn(v,o,t,d,{tileID:x,tileSize:u},y):Jn(v,o,a);t.prepareDrawProgram(s,g,p);const{tileBoundsBuffer:O,tileBoundsIndexBuffer:j,tileBoundsSegments:C}=t.getTileBoundsBuffers(_);g.draw(s,c.TRIANGLES,m,h,f,e.CullFaceMode.disabled,w,i.id,O,j,C)}},sky:function(t,n,i){const r=t.transform,a="mercator"===r.projection.name||"globe"===r.projection.name?1:e.smoothstep(7,8,r.zoom),o=i.paint.get("sky-opacity")*a;if(0===o)return;const s=t.context,c=i.paint.get("sky-type"),l=new e.DepthMode(s.gl.LEQUAL,e.DepthMode.ReadOnly,[0,1]),u=t.frameCounter/1e3%1;"atmosphere"===c?"offscreen"===t.renderPass?i.needsSkyboxCapture(t)&&(function(t,n,i,r){const a=t.context,o=a.gl;let s=n.skyboxFbo;if(!s){s=n.skyboxFbo=a.createFramebuffer(32,32,!1),n.skyboxGeometry=new Oi(a),n.skyboxTexture=a.gl.createTexture(),o.bindTexture(o.TEXTURE_CUBE_MAP,n.skyboxTexture),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_WRAP_S,o.CLAMP_TO_EDGE),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_WRAP_T,o.CLAMP_TO_EDGE),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_MIN_FILTER,o.LINEAR),o.texParameteri(o.TEXTURE_CUBE_MAP,o.TEXTURE_MAG_FILTER,o.LINEAR);for(let e=0;e<6;++e)o.texImage2D(o.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,o.RGBA,32,32,0,o.RGBA,o.UNSIGNED_BYTE,null)}a.bindFramebuffer.set(s.framebuffer),a.viewport.set([0,0,32,32]);const c=n.getCenter(t,!0),l=t.useProgram("skyboxCapture"),u=new Float64Array(16);e.identity(u),e.rotateY(u,u,.5*-Math.PI),ji(a,n,l,u,c,0),e.identity(u),e.rotateY(u,u,.5*Math.PI),ji(a,n,l,u,c,1),e.identity(u),e.rotateX(u,u,.5*-Math.PI),ji(a,n,l,u,c,2),e.identity(u),e.rotateX(u,u,.5*Math.PI),ji(a,n,l,u,c,3),e.identity(u),ji(a,n,l,u,c,4),e.identity(u),e.rotateY(u,u,Math.PI),ji(a,n,l,u,c,5),a.viewport.set([0,0,t.width,t.height])}(t,i),i.markSkyboxValid(t)):"sky"===t.renderPass&&function(t,n,i,r,a){const o=t.context,s=o.gl,c=t.transform,l=t.useProgram("skybox");o.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_CUBE_MAP,n.skyboxTexture);const u=((e,t,n,i,r)=>({u_matrix:e,u_sun_direction:t,u_cubemap:0,u_opacity:i,u_temporal_offset:r}))(c.skyboxMatrix,n.getCenter(t,!1),0,r,a);t.prepareDrawProgram(o,l),l.draw(o,s.TRIANGLES,i,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.backCW,u,"skybox",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}(t,i,l,o,u):"gradient"===c&&"sky"===t.renderPass&&function(t,n,i,r,a){const o=t.context,s=o.gl,c=t.transform,l=t.useProgram("skyboxGradient");n.skyboxGeometry||(n.skyboxGeometry=new Oi(o)),o.activeTexture.set(s.TEXTURE0);let u=n.colorRampTexture;u||(u=n.colorRampTexture=new e.Texture(o,n.colorRamp,s.RGBA)),u.bind(s.LINEAR,s.CLAMP_TO_EDGE);const d=((t,n,i,r,a)=>({u_matrix:t,u_color_ramp:0,u_center_direction:n,u_radius:e.degToRad(i),u_opacity:r,u_temporal_offset:a}))(c.skyboxMatrix,n.getCenter(t,!1),n.paint.get("sky-gradient-radius"),r,a);t.prepareDrawProgram(o,l),l.draw(o,s.TRIANGLES,i,e.StencilMode.disabled,t.colorModeForRenderPass(),e.CullFaceMode.backCW,d,"skyboxGradient",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}(t,i,l,o,u)},debug:function(e,t,n){for(let i=0;i<n.length;i++)yi(e,t,n[i])},custom:function(t,n,i){const r=t.context,a=i.implementation;if(t.transform.projection.unsupportedLayers&&t.transform.projection.unsupportedLayers.includes("custom"))e.warnOnce("Custom layers are not yet supported with non-mercator projections. Use mercator to enable custom layers.");else if("offscreen"===t.renderPass){const e=a.prerender;e&&(t.setCustomLayerDefaults(),r.setColorMode(t.colorModeForRenderPass()),e.call(a,r.gl,t.transform.customLayerMatrix()),r.setDirty(),t.setBaseState())}else if("translucent"===t.renderPass){t.setCustomLayerDefaults(),r.setColorMode(t.colorModeForRenderPass()),r.setStencilMode(e.StencilMode.disabled);const n="3d"===a.renderingMode?new e.DepthMode(t.context.gl.LEQUAL,e.DepthMode.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,e.DepthMode.ReadOnly);r.setDepthMode(n),a.render(r.gl,t.transform.customLayerMatrix()),r.setDirty(),t.setBaseState(),r.bindFramebuffer.set(null)}}};class Ti{constructor(t,n){this.context=new je(t),this.transform=n,this._tileTextures={},this.frameCopies=[],this.loadTimeStamps=[],this.setup(),this.numSublayers=e.SourceCache.maxUnderzooming+e.SourceCache.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Vt,this.gpuTimers={},this.frameCounter=0,this._backgroundTiles={},this._tileClippingMaskIDs=new Map,this._skippedStencilTileIDs=new Set}updateTerrain(e,t){const n=!!e&&!!e.terrain&&this.transform.projection.supportsTerrain;if(!(n||this._terrain&&this._terrain.enabled))return;this._terrain||(this._terrain=new wn(this,e));const i=this._terrain;this.transform.elevation=n?i:null,i.update(e,this.transform,t)}_updateFog(e){const t=e.fog;if(!t||t.getOpacity(this.transform.pitch)<1||t.properties.get("horizon-blend")<.03)return void(this.transform.fogCullDistSq=null);const[n,i]=t.getFovAdjustedRange(this.transform._fov);if(n>i)return void(this.transform.fogCullDistSq=null);const r=n+.78*(i-n);this.transform.fogCullDistSq=r*r}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled?this._terrain:null}resize(t,n){if(this.width=t*e.exported.devicePixelRatio,this.height=n*e.exp
2orted.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const e of this.style.order)this.style._layers[e].resize()}setup(){const t=this.context,n=new e.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(e.EXTENT,0),n.emplaceBack(0,e.EXTENT),n.emplaceBack(e.EXTENT,e.EXTENT),this.tileExtentBuffer=t.createVertexBuffer(n,e.posAttributes.members),this.tileExtentSegments=e.SegmentVector.simpleSegment(0,0,4,2);const i=new e.StructArrayLayout2i4;i.emplaceBack(0,0),i.emplaceBack(e.EXTENT,0),i.emplaceBack(0,e.EXTENT),i.emplaceBack(e.EXTENT,e.EXTENT),this.debugBuffer=t.createVertexBuffer(i,e.posAttributes.members),this.debugSegments=e.SegmentVector.simpleSegment(0,0,4,5);const r=new e.StructArrayLayout2i4;r.emplaceBack(-1,-1),r.emplaceBack(1,-1),r.emplaceBack(-1,1),r.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(r,e.posAttributes.members),this.viewportSegments=e.SegmentVector.simpleSegment(0,0,4,2);const a=new e.StructArrayLayout4i8;a.emplaceBack(0,0,0,0),a.emplaceBack(e.EXTENT,0,e.EXTENT,0),a.emplaceBack(0,e.EXTENT,0,e.EXTENT),a.emplaceBack(e.EXTENT,e.EXTENT,e.EXTENT,e.EXTENT),this.mercatorBoundsBuffer=t.createVertexBuffer(a,e.boundsAttributes.members),this.mercatorBoundsSegments=e.SegmentVector.simpleSegment(0,0,4,2);const o=new e.StructArrayLayout3ui6;o.emplaceBack(0,1,2),o.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(o);const s=new e.StructArrayLayout1ui2;for(const e of[0,1,3,2,0])s.emplaceBack(e);this.debugIndexBuffer=t.createIndexBuffer(s),this.emptyTexture=new e.Texture(t,new e.RGBAImage({width:1,height:1},Uint8Array.of(0,0,0,0)),t.gl.RGBA),this.identityMat=e.create();const c=this.context.gl;this.stencilClearMode=new e.StencilMode({func:c.ALWAYS,mask:0},0,255,c.ZERO,c.ZERO,c.ZERO),this.loadTimeStamps.push(e.window.performance.now())}getMercatorTileBoundsBuffers(){return{tileBoundsBuffer:this.mercatorBoundsBuffer,tileBoundsIndexBuffer:this.quadTriangleIndexBuffer,tileBoundsSegments:this.mercatorBoundsSegments}}getTileBoundsBuffers(e){return e._makeTileBoundsBuffers(this.context,this.transform.projection),e._tileBoundsBuffer?{tileBoundsBuffer:e._tileBoundsBuffer,tileBoundsIndexBuffer:e._tileBoundsIndexBuffer,tileBoundsSegments:e._tileBoundsSegments}:this.getMercatorTileBoundsBuffers()}clearStencil(){const t=this.context,n=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs.clear(),this._skippedStencilTileIDs.clear(),this.useProgram("clippingMask").draw(t,n.TRIANGLES,e.DepthMode.disabled,this.stencilClearMode,e.ColorMode.disabled,e.CullFaceMode.disabled,gn(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs.clear(),this._skippedStencilTileIDs.clear())}_renderTileClippingMasks(t,n,i){if(!n||this.currentStencilSource===n.id||!t.isTileClipped()||!i||0===i.length)return;const r=[];let a=!1;if(this._tileClippingMaskIDs&&!this.terrain){for(const e of i)if(this._tileClippingMaskIDs.has(e.key)||(a=!0),this._skippedStencilTileIDs.has(e.key)){if(!n.getTile(e).getBucket(t))continue;this._skippedStencilTileIDs.delete(e.key),r.push(e)}if(!a&&0===r.length)return}const o=this.context,s=o.gl;o.setColorMode(e.ColorMode.disabled),o.setDepthMode(e.DepthMode.disabled);const c=this.useProgram("clippingMask"),l=t=>{const i=n.getTile(t),{tileBoundsBuffer:r,tileBoundsIndexBuffer:a,tileBoundsSegments:l}=this.getTileBoundsBuffers(i);c.draw(o,s.TRIANGLES,e.DepthMode.disabled,new e.StencilMode({func:s.GREATER,mask:255},this._tileClippingMaskIDs.get(t.key)||0,255,s.KEEP,s.KEEP,s.REPLACE),e.ColorMode.disabled,e.CullFaceMode.disabled,gn(t.projMatrix),"$clipping",r,a,l)};if(!a&&r.length>0)for(const e of r)l(e);else{(0===this._tileClippingMaskIDs.size||this.nextStencilID+i.length>256)&&this.clearStencil(),this._tileClippingMaskIDs.clear(),this._skippedStencilTileIDs.clear();for(const e of i)this._tileClippingMaskIDs.set(e.key,this.nextStencilID++),n.getTile(e).getBucket(t)?l(e):this._skippedStencilTileIDs.add(e.key)}0===this._skippedStencilTileIDs.size&&(this.currentStencilSource=n.id)}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const t=this.nextStencilID++,n=this.context.gl;return new e.StencilMode({func:n.NOTEQUAL,mask:255},t,255,n.KEEP,n.KEEP,n.REPLACE)}stencilModeForClipping(t){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(t);const n=this.context.gl;return new e.StencilMode({func:n.EQUAL,mask:255},this._tileClippingMaskIDs.get(t.key)||0,0,n.KEEP,n.KEEP,n.REPLACE)}stencilConfigForOverlap(t){const n=this.context.gl,i=t.sort((e,t)=>
2t.overscaledZ-e.overscaledZ),r=i[i.length-1].overscaledZ,a=i[0].overscaledZ-r+1;if(a>1){this.currentStencilSource=void 0,this.nextStencilID+a>256&&this.clearStencil();const t={};for(let i=0;i<a;i++)t[i+r]=new e.StencilMode({func:n.GEQUAL,mask:255},i+this.nextStencilID,255,n.KEEP,n.KEEP,n.REPLACE);return this.nextStencilID+=a,[t,i]}return[{[r]:e.StencilMode.disabled},i]}colorModeForRenderPass(){const t=this.context.gl;if(this._showOverdrawInspector){const n=1/8;return new e.ColorMode([t.CONSTANT_COLOR,t.ONE],new e.Color(n,n,n,0),[!0,!0,!0,!0])}return"opaque"===this.renderPass?e.ColorMode.unblended:e.ColorMode.alphaBlended}depthModeForSublayer(t,n,i){if(!this.opaquePassEnabledForLayer())return e.DepthMode.disabled;const r=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new e.DepthMode(i||this.context.gl.LEQUAL,n,[r,r])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}render(t,n){this.style=t,this.options=n,this.lineAtlas=t.lineAtlas,this.imageManager=t.imageManager,this.glyphManager=t.glyphManager,this.symbolFadeChange=t.placement.symbolFadeChange(e.exported.now()),this.imageManager.beginFrame();const i=this.style.order,r=this.style._sourceCaches;for(const e in r){const t=r[e];t.used&&t.prepare(this.context)}const a={},o={},s={};for(const e in r){const t=r[e];a[e]=t.getVisibleCoordinates(),o[e]=a[e].slice().reverse(),s[e]=t.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(let e=0;e<i.length;e++)if(this.style._layers[i[e]].is3D()){this.opaquePassCutoff=e;break}if(this.terrain&&(this.terrain.updateTileBinding(s),this.opaquePassCutoff=0),"globe"!==this.transform.projection.name||this.globeSharedBuffers||(this.globeSharedBuffers=new e.GlobeSharedBuffers(this.context)),!e.isMapAuthenticated(this.context.gl))return;this.renderPass="offscreen";for(const e of i){const n=this.style._layers[e],i=t._getLayerSourceCache(n);if(!n.hasOffscreenPass()||n.isHidden(this.transform.zoom))continue;const r=i?o[i.id]:void 0;("custom"===n.type||n.isSky()||r&&r.length)&&this.renderLayer(this,i,n,r)}this.depthRangeFor3D=[0,1-(t.order.length+2)*this.numSublayers*this.depthEpsilon],this.terrain&&(this.style.hasSymbolLayers()||this.style.hasCircleLayers())&&this.terrain.drawDepth(),this.context.bindFramebuffer.set(null),this.context.viewport.set([0,0,this.width,this.height]);let c=e.Color.transparent;if(this.style.fog&&this.style.fog.getOpacity(this.transform.pitch)&&(c=this.style.fog.properties.get("color")),this.context.clear({color:n.showOverdrawInspector?e.Color.black:c,depth:1}),this.clearStencil(),this._showOverdrawInspector=n.showOverdrawInspector,this.renderPass="opaque",!this.terrain)for(this.currentLayer=i.length-1;this.currentLayer>=0;this.currentLayer--){const e=this.style._layers[i[this.currentLayer]],n=t._getLayerSourceCache(e);if(e.isSky())continue;const r=n?o[n.id]:void 0;this._renderTileClippingMasks(e,n,r),this.renderLayer(this,n,e,r)}if(this.renderPass="sky",(e.globeToMercatorTransition(this.transform.zoom)>0||"globe"!==this.transform.projection.name)&&this.transform.isHorizonVisible())for(this.currentLayer=0;this.currentLayer<i.length;this.currentLayer++){const e=this.style._layers[i[this.currentLayer]],n=t._getLayerSourceCache(e);e.isSky()&&this.renderLayer(this,n,e,n?o[n.id]:void 0)}for("globe"===this.transform.projection.name&&function(t){const n=t.context,i=n.gl,r=t.transform,a=new e.DepthMode(i.LEQUAL,e.DepthMode.ReadOnly,[0,1]),o=t.useProgram("globeAtmosphere"),s=r.centerOffset,c=r._camera.getCameraToClipPerspective(r._fov,r.width/r.height,r._nearZ,r._farZ);c[8]=2*-s.x/r.width,c[9]=2*s.y/r.height;const l=e.invert([],c),u=e.mul([],l,r.projMatrix),d={u_frustum_tl:Ci([-1,1,1],l),u_frustum_tr:Ci([1,1,1],l),u_frustum_br:Ci([1,-1,1],l),u_frustum_bl:Ci([-1,-1,1],l),u_globe_pos:Ci([r.globeMatrix[12],r.globeMatrix[13],r.globeMatrix[14]],u),u_globe_radius:r.worldSize/2/Math.PI-1,u_opacity:1-e.globeToMercatorTransition(r.zoom),u_fadeout_range:2,u_start_color:[1,1,1],u_end_color:[.0118,.7451,.9882]};t.prepareDrawProgram(n,o);const p=t.globeSharedBuffers;p&&o.draw(n,i.TRIANGLES,a,e.StencilMode.disabled,e.ColorMode.alphaBlended,e.CullFaceMode.backCW,d,"skybox",p.atmosphereVertexBuffer,p.atmosphereIndexBuffer,p.atmosphereSegments)}(this),this.renderPass="translucent",this.currentLayer=0;this.currentLayer<i.length;){const e=this.style._layers[i[this.currentLayer]],n=t._getLayerSourceCache(e);if(e.isSky()){++this.currentLayer;continue}if(this.terrain&&this.style.isLayerDraped(e)){if(e.isHidden(this.transform.zoom)){++this.currentLayer;continue}this.currentLayer=this.terrain.renderBatch(this.currentLayer);continue}const r=n?("symbol"===e.type?s:o)[n.id]:void 0;this._renderTileClippingMasks(e,n,n?a[n.id]:void 0),this.renderLayer(this,n,e,r),++this.currentLayer}if(this.terrain&&this.terrain.postRender(),this.options.showTileBoundaries||this.options.showQueryGeometry){let n=null;
vendor: 12,610 bytes, line 2
2e.values(this.style._layers).forEach(e=>{const i=t._getLayerSourceCache(e);i&&!e.isHidden(this.transform.zoom)&&(!n||n.getSource().maxzoom<i.getSource().maxzoom)&&(n=i)}),n&&this.options.showTileBoundaries&&Ei.debug(this,n,n.getVisibleCoordinates())}this.options.showPadding&&function(e){const t=e.transform.padding;gi(e,e.transform.height-(t.top||0),3,di),gi(e,t.bottom||0,3,pi),bi(e,t.left||0,3,hi),bi(e,e.transform.width-(t.right||0),3,mi);const n=e.transform.centerPoint;!function(e,t,n,i){vi(e,t-1,n-10,2,20,i),vi(e,t-10,n-1,20,2,i)}(e,n.x,e.transform.height-n.y,fi)}(this),this.context.setDefault(),this.frameCounter=(this.frameCounter+1)%Number.MAX_SAFE_INTEGER,this.tileLoaded&&this.options.speedIndexTiming&&(this.loadTimeStamps.push(e.window.performance.now()),this.saveCanvasCopy())}renderLayer(e,t,n,i){n.isHidden(this.transform.zoom)||("background"===n.type||"sky"===n.type||"custom"===n.type||i&&i.length)&&(this.id=n.id,this.gpuTimingStart(n),e.transform.projection.unsupportedLayers&&e.transform.projection.unsupportedLayers.includes(n.type)||Ei[n.type](e,t,n,i,this.style.placement.variableOffsets,this.options.isInitialLoad),this.gpuTimingEnd())}gpuTimingStart(e){if(!this.options.gpuTiming)return;const t=this.context.extTimerQuery;let n=this.gpuTimers[e.id];n||(n=this.gpuTimers[e.id]={calls:0,cpuTime:0,query:t.createQueryEXT()}),n.calls++,t.beginQueryEXT(t.TIME_ELAPSED_EXT,n.query)}gpuTimingEnd(){if(!this.options.gpuTiming)return;const e=this.context.extTimerQuery;e.endQueryEXT(e.TIME_ELAPSED_EXT)}collectGpuTimers(){const e=this.gpuTimers;return this.gpuTimers={},e}queryGpuTimers(e){const t={};for(const n in e){const i=e[n],r=this.context.extTimerQuery,a=r.getQueryObjectEXT(i.query,r.QUERY_RESULT_EXT)/1e6;r.deleteQueryEXT(i.query),t[n]=a}return t}translatePosMatrix(t,n,i,r,a){if(!i[0]&&!i[1])return t;const o=a?"map"===r?this.transform.angle:0:"viewport"===r?-this.transform.angle:0;if(o){const e=Math.sin(o),t=Math.cos(o);i=[i[0]*t-i[1]*e,i[0]*e+i[1]*t]}const s=[a?i[0]:L(n,i[0],this.transform.zoom),a?i[1]:L(n,i[1],this.transform.zoom),0],c=new Float32Array(16);return e.translate(c,t,s),c}saveTileTexture(e){const t=this._tileTextures[e.size[0]];t?t.push(e):this._tileTextures[e.size[0]]=[e]}getTileTexture(e){const t=this._tileTextures[e];return t&&t.length>0?t.pop():null}isPatternMissing(e){if(!e)return!1;if(!e.from||!e.to)return!0;const t=this.imageManager.getPattern(e.from.toString()),n=this.imageManager.getPattern(e.to.toString());return!t||!n}currentGlobalDefines(){const e=this.terrain&&this.terrain.renderingToTexture,t=this.style&&this.style.fog,n=[];return this.terrain&&!this.terrain.renderingToTexture&&n.push("TERRAIN"),t&&!e&&0!==t.getOpacity(this.transform.pitch)&&n.push("FOG"),e&&n.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&n.push("OVERDRAW_INSPECTOR"),n}useProgram(e,t,n){this.cache=this.cache||{};const i=n||[],r=this.currentGlobalDefines().concat(i),a=jn.cacheKey(e,r,t);return this.cache[a]||(this.cache[a]=new jn(this.context,e,tn[e],t,$n[e],r)),this.cache[a]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=e.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new e.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this._terrain&&this._terrain.destroy(),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}prepareDrawTile(){this.terrain&&this.terrain.prepareDrawTile()}prepareDrawProgram(e,t,n){if(this.terrain&&this.terrain.renderingToTexture)return;const i=this.style.fog;if(i){const r=i.getOpacity(this.transform.pitch);0!==r&&t.setFogUniformValues(e,((e,t,n,i)=>{const r=t.properties.get("color"),a=e.frameCounter/1e3%1,o=[r.r/r.a,r.g/r.a,r.b/r.a,i];return{u_fog_matrix:n?e.transform.calculateFogTileMatrix(n):e.identityMat,u_fog_range:t.getFovAdjustedRange(e.transform._fov),u_fog_color:o,u_fog_horizon_blend:t.properties.get("horizon-blend"),u_fog_temporal_offset:a}})(this,i,n,r))}}setTileLoadedFlag(e){this.tileLoaded=e}saveCanvasCopy(){this.frameCopies.push(this.canvasCopy()),this.tileLoaded=!1}canvasCopy(){const e=this.context.gl,t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.copyTexImage2D(e.TEXTURE_2D,0,e.RGBA,0,0,e.drawingBufferWidth,e.drawingBufferHeight,0),t}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;const e=this.style&&this.style.fog;return!!e&&0!==e.getOpacity(this.transform.pitch)}getBackgroundTiles(){const t=this._backgroundTiles,n=this._backgroundTiles={},i=this.transform.coveringTiles({tileSize:512});for(const r of i)n[r.key]=t[r.key]||new e.Tile(r,512,this.transform.tileZoom,this);return n}clearBackgroundTiles(){this._backgroundTiles={}}}class ki{constructor(e=0,t=0,n=0,i=0){if(isNaN(e)||e<0||isNaN(t)||t<0||isNaN(n)||n<0||isNaN(i)||i<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=t,this.left=n,this.right=i}interpolate(t,n,i){return null!=n.top&&null!=t.top&&(this.top=e.number(t.top,n.top,i)),null!=n.bottom&&null!=t.bottom&&(this.bottom=e.number(t.bottom,n.bottom,i)),null!=n.left&&null!=t.left&&(this.left=e.number(t.left,n.left,i)),null!=n.right&&null!=t.right&&(this.right=e.number(t.right,n.right,i)),this}getCenter(t,n){const i=e.clamp((this.left+t-this.right)/2,0,t),r=e.clamp((this.top+n-this.bottom)/2,0,n);return new e.pointGeometry(i,r)}equals(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}clone(){return new ki(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function Si(t,n){const i=e.getColumn(t,3);e.fromQuat(t,n),e.setColumn(t,3,i)}function Ai(t,n){const i=e.identity$1([]);return e.rotateZ$1(i,i,-n),e.rotateX$1(i,i,-t),i}function Ii(t,n){const i=[t[0],t[1],0],r=[n[0],n[1],0];if(e.length(i)>=1e-15){const t=e.normalize([],i);e.scale$2(r,t,e.dot(r,t)),n[0]=r[0],n[1]=r[1]}const a=e.cross([],n,t);if(e.len(a)<1e-15)return null;const o=Math.atan2(-a[1],a[0]);return Ai(Math.atan2(Math.sqrt(t[0]*t[0]+t[1]*t[1]),-t[2]),o)}class Mi{constructor(e,t){this.position=e,this.orientation=t}get position(){return this._position}set position(t){if(t){const n=t instanceof e.MercatorCoordinate?t:new e.MercatorCoordinate(t[0],t[1],t[2]);this._renderWorldCopies&&(n.x=e.wrap(n.x,0,1)),this._position=n}else this._position=null}lookAtPoint(t,n){if(this.orientation=null,!this.position)return;const i=this._elevation?this._elevation.getAtPointOrZero(e.MercatorCoordinate.fromLngLat(t)):0,r=this.position,a=e.MercatorCoordinate.fromLngLat(t,i),o=[a.x-r.x,a.y-r.y,a.z-r.z];n||(n=[0,0,1]),n[2]=Math.abs(n[2]),this.orientation=Ii(o,n)}setPitchBearing(t,n){this.orientation=Ai(e.degToRad(t),e.degToRad(-n))}}class Li{constructor(t,n){this._transform=e.identity([]),this.orientation=n,this.position=t}get mercatorPosition(){const t=this.position;return new e.MercatorCoordinate(t[0],t[1],t[2])}get position(){const t=e.getColumn(this._transform,3);return[t[0],t[1],t[2]]}set position(t){var n;t&&e.setColumn(this._transform,3,[(n=t)[0],n[1],n[2],1])}get orientation(){return this._orientation}set orientation(t){this._orientation=t||e.identity$1([]),t&&Si(this._transform,this._orientation)}getPitchBearing(){const e=this.forward(),t=this.right();return{bearing:Math.atan2(-t[1],t[0]),pitch:Math.atan2(Math.sqrt(e[0]*e[0]+e[1]*e[1]),-e[2])}}setPitchBearing(e,t){this._orientation=Ai(e,t),Si(this._transform,this._orientation)}forward(){const t=e.getColumn(this._transform,2);return[-t[0],-t[1],-t[2]]}up(){const t=e.getColumn(this._transform,1);return[-t[0],-t[1],-t[2]]}right(){const t=e.getColumn(this._transform,0);return[t[0],t[1],t[2]]}getCameraToWorld(t,n){const i=new Float64Array(16);return e.invert(i,this.getWorldToCamera(t,n)),i}getWorldToCameraPosition(t,n,i){const r=this.position;e.scale$2(r,r,-t);const a=new Float64Array(16);return e.fromScaling(a,[i,i,i]),e.translate(a,a,r),a[10]*=n,a}getWorldToCamera(t,n){const i=new Float64Array(16),r=new Float64Array(4),a=this.position;return e.conjugate(r,this._orientation),e.scale$2(a,a,-t),e.fromQuat(i,r),e.translate(i,i,a),i[1]*=-1,i[5]*=-1,i[9]*=-1,i[13]*=-1,i[8]*=n,i[9]*=n,i[10]*=n,i[11]*=n,i}getCameraToClipPerspective(t,n,i,r){const a=new Float64Array(16);return e.perspective(a,t,n,i,r),a}getDistanceToElevation(t){const n=0===t?0:e.mercatorZfromAltitude(t,this.position[1]),i=this.forward();return(n-this.position[2])/i[2]}clone(){return new Li([...this.position],[...this.orientation])}}function Bi(t,n){const i=Di(t),r=function(t,n,i,r,a){const o=new e.LngLat(i.lng-180*Pi,i.lat),s=new e.LngLat(i.lng+180*Pi,i.lat),c=t.project(o.lng,o.lat),l=t.project(s.lng,s.lat),u=-Math.atan2(l.y-c.y,l.x-c.x),d=e.MercatorCoordinate.fromLngLat(i);d.y=e.clamp(d.y,-.999975,.999975);const p=d.toLngLat(),h=t.project(p.lng,p.lat),m=e.MercatorCoordinate.fromLngLat(p);m.x+=Pi;const f=m.toLngLat(),g=t.project(f.lng,f.lat),b=Fi(g.x-h.x,g.y-h.y,u),v=e.MercatorCoordinate.fromLngLat(p);v.y+=Pi;const y=v.toLngLat(),x=t.project(y.lng,y.lat),_=Fi(x.x-h.x,x.y-h.y,u),w=Math.abs(b.x)/Math.abs(_.y),O=e.identity([]);e.rotateZ(O,O,-u*(1-(a?0:r)));const j=e.identity([]);return e.scale(j,j,[1,1-(1-w)*r,1]),j[4]=-_.x/_.y*r,e.rotateZ(j,j,u),e.multiply$1(j,O,j),j}(t.projection,0,t.center,i,n),a=Ri(t);return e.scale(r,r,[a,a,1]),r}function Ri(t){const n=t.projection,i=Di(t),r=zi(n,t.center),a=zi(n,e.LngLat.convert(n.center));return Math.pow(2,r*i+(1-i)*a)}function Di(t){const n=t.projection.range;if(!n)return 0;const i=Math.max(t.width,t.height),r=Math.log(i/1024)/Math.LN2;return e.smoothstep(n[0]+r,n[1]+r,t.zoom)}const Pi=1/4e4;function zi(t,n){const i=e.clamp(n.lat,-e.MAX_MERCATOR_LATITUDE,e.MAX_MERCATOR_LATITUDE),r=new e.LngLat(n.lng-180*Pi,i),a=new e.LngLat(n.lng+180*Pi,i),o=t.project(r.lng,i),s=t.project(a.lng,i),c=e.MercatorCoordinate.fromLngLat(r),l=e.MercatorCoordinate.fromLngLat(a),u=s.x-o.x,d=s.y-o.y,p=l.x-c.x,h=l.y-c.y,m=Math.sqrt((p*p+h*h)/(u*u+d*d));return Math.log(m)/Math.LN2}function Fi(e,t,n){const i=Math.cos(n),r=Math.sin(n);return{x:e*i-t*r,y:e*r+t*i}}class Ni{constructor(t,n,i,r,a,o,s){this.tileSize=512,this._renderWorldCopies=void 0===a||a,this._minZoom=t||0,this._maxZoom=n||22,this._minPitch=null==i?0:i,this._maxPitch=null==r?60:r,this.setProjection(o),this.setMaxBounds(s),this.width=0,this.height=0,this._center=new e.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new ki,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._distanceTileDataCache={},this._camera=new Li,this._centerAltitude=0,this._centerAltitudeValidForExaggeration=0,this._averageElevation=0,this.cameraElevationReference="ground",this._projectionScaler=1,this._horizonShift=.1}clone(){const e=new Ni(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies,this.getProjection());return e._elevation=this._elevation,e._centerAltitude=this._centerAltitude,e._centerAltitudeValidForExaggeration=this._centerAltitudeValidForExaggeration,e.tileSize=this.tileSize,e.width=this.width,e.height=this.height,e.cameraElevationReference=this.cameraElevationReference,e._center=this._center,e._setZoom(this.zoom),e._seaLevelZoom=this._seaLevelZoom,e.angle=this.angle,e._fov=this._fov,e._pitch=this._pitch,e._nearZ=this._nearZ,e._farZ=this._farZ,e._averageElevation=this._averageElevation,e._unmodified=this._unmodified,e._edgeInsets=this._edgeInsets.clone(),e._camera=this._camera.clone(),e._calcMatrices(),e.freezeTileCoverage=this.freezeTileCoverage,e}get elevation(){return this._elevation}set elevation(e){this._elevation!==e&&(this._elevation=e,this._updateCameraOnTerrain(),this._calcMatrices())}updateElevation(e){const t=this._elevation&&this._elevation.exaggeration()!==this._centerAltitudeValidForE
2xaggeration;(null==this._seaLevelZoom||t)&&this._updateCameraOnTerrain(),(e||t)&&this._constrainCameraAltitude(),this._calcMatrices()}getProjection(){return e.pick(this.projection,["name","center","parallels"])}setProjection(t){null==t&&(t={name:"mercator"}),this.projectionOptions=t;const n=this.projection?this.getProjection():void 0;this.projection=e.getProjection(t);const i=this.getProjection();return r(n,i)?null:(this._calcMatrices(),i)}get minZoom(){return this._minZoom}set minZoom(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))}get maxZoom(){return this._maxZoom}set maxZoom(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))}get minPitch(){return this._minPitch}set minPitch(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))}get maxPitch(){return this._maxPitch}set maxPitch(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))}get renderWorldCopies(){return this._renderWorldCopies&&!0===this.projection.supportsWorldCopies}set renderWorldCopies(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e}get worldSize(){return this.tileSize*this.scale}get cameraWorldSize(){const e=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(e))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.cameraWorldSize)}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new e.pointGeometry(this.width,this.height)}get bearing(){return e.wrap(this.rotation,-180,180)}set bearing(e){this.rotation=e}get rotation(){return-this.angle/Math.PI*180}set rotation(t){const n=-t*Math.PI/180;var i;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=(i=new e.ARRAY_TYPE(4),e.ARRAY_TYPE!=Float32Array&&(i[1]=0,i[2]=0),i[0]=1,i[3]=1,i),function(e,t,n){var i=t[0],r=t[1],a=t[2],o=t[3],s=Math.sin(n),c=Math.cos(n);e[0]=i*c+a*s,e[1]=r*c+o*s,e[2]=i*-s+a*c,e[3]=r*-s+o*c}(this.rotationMatrix,this.rotationMatrix,this.angle))}get pitch(){return this._pitch/Math.PI*180}set pitch(t){const n=e.clamp(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(e){this._averageElevation=e,this._calcFogMatrices(),this._distanceTileDataCache={}}get zoom(){return this._zoom}set zoom(e){const t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._setZoom(t),this._updateSeaLevelZoom(),this._constrain(),this._calcMatrices())}_setZoom(e){this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom}_updateCameraOnTerrain(){if(!this._elevation||!this._elevation.isDataAvailableAtPoint(this.locationCoordinate(this.center)))return this._centerAltitude=0,this._seaLevelZoom=null,void(this._centerAltitudeValidForE
vendor: 57,491 bytes, line 2
2xaggeration=0);const e=this._elevation;this._centerAltitude=e.getAtPointOrZero(this.locationCoordinate(this.center)),this._centerAltitudeValidForExaggeration=e.exaggeration(),this._updateSeaLevelZoom()}_updateSeaLevelZoom(){0!==this._centerAltitudeValidForExaggeration&&(this._seaLevelZoom=this._zoomFromMercatorZ((this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize))}sampleAverageElevation(){if(!this._elevation)return 0;const t=this._elevation,n=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],i=this.horizonLineFromTop();let r=0,a=0;for(let o=0;o<n.length;o++){const s=new e.pointGeometry(n[o][0]*this.width,i+n[o][1]*(this.height-i)),c=t.pointCoordinate(s);if(!c)continue;const l=1/Math.hypot(c[0]-this._camera.position[0],c[1]-this._camera.position[1]);r+=c[3]*l,a+=l}return 0===a?NaN:r/a}get center(){return this._center}set center(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._terrainEnabled()&&("ground"===this.cameraElevationReference?this._updateCameraOnTerrain():this._updateZoomFromElevation()),this._constrain(),this._calcMatrices())}_updateZoomFromElevation(){if(null==this._seaLevelZoom||!this._elevation)return;const e=this._seaLevelZoom,t=this._elevation.getAtPointOrZero(this.locationCoordinate(this.center)),n=this.pixelsPerMeter/this.worldSize*t,i=this._mercatorZfromZoom(e),r=this._mercatorZfromZoom(this._maxZoom),a=Math.max(i-n,r);this._setZoom(this._zoomFromMercatorZ(a))}get padding(){return this._edgeInsets.toJSON()}set padding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}computeZoomRelativeTo(t){const n=this.rayIntersectionCoordinate(this.pointRayIntersection(this.centerPoint,t.toAltitude()));let i;i=t.z<this._camera.position[2]?[n.x,n.y,n.z]:[t.x,t.y,t.z];const r=e.length(e.sub([],this._camera.position,i));return e.clamp(this._zoomFromMercatorZ(r),this._minZoom,this._maxZoom)}setFreeCameraOptions(t){if(!this.height)return;if(!t.position&&!t.orientation)return;this._updateCameraState();let n=!1;if(t.orientation&&!e.exactEquals(t.orientation,this._camera.orientation)&&(n=this._setCameraOrientation(t.orientation)),t.position){const i=[t.position.x,t.position.y,t.position.z];e.exactEquals$1(i,this._camera.position)||(this._setCameraPosition(i),n=!0)}n&&(this._updateStateFromCamera(),this.recenterOnTerrain())}getFreeCameraOptions(){this._updateCameraState();const t=this._camera.position,n=new Mi;return n.position=new e.MercatorCoordinate(t[0],t[1],t[2]),n.orientation=this._camera.orientation,n._elevation=this.elevation,n._renderWorldCopies=this.renderWorldCopies,n}_setCameraOrientation(t){if(!e.length$1(t))return!1;e.normalize$1(t,t);const n=e.transformQuat([],[0,0,-1],t),i=e.transformQuat([],[0,-1,0],t);if(i[2]<0)return!1;const r=Ii(n,i);return!!r&&(this._camera.orientation=r,!0)}_setCameraPosition(t){const n=this.zoomScale(this.minZoom)*this.tileSize,i=this.zoomScale(this.maxZoom)*this.tileSize,r=this.cameraToCenterDistance;t[2]=e.clamp(t[2],r/i,r/n),this._camera.position=t}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}get fovAboveCenter(){return this._fov*(.5+this.centerOffset.y/this.height)}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,n){this._unmodified=!1,this._edgeInsets.interpolate(e,t,n),this._constrain(),this._calcMatrices()}coveringZoomLevel(e){const t=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,t)}getVisibleUnwrappedCoordinates(t){const n=[new e.UnwrappedTileID(0,t)];if(this.renderWorldCopies){const i=this.pointCoordinate(new e.pointGeometry(0,0)),r=this.pointCoordinate(new e.pointGeometry(this.width,0)),a=this.pointCoordinate(new e.pointGeometry(this.width,this.height)),o=this.pointCoordinate(new e.pointGeometry(0,this.height)),s=Math.floor(Math.min(i.x,r.x,a.x,o.x)),c=Math.floor(Math.max(i.x,r.x,a.x,o.x)),l=1;for(let u=s-l;u<=c+l;u++)0!==u&&n.push(new e.UnwrappedTileID(u,t))}return n}coveringTiles(t){let n=this.coveringZoomLevel(t);const i=n,r=this.elevation&&!t.isTerrainDEM,a="mercator"===this.projection.name;if(void 0!==t.minzoom&&n<t.minzoom)return[];void 0!==t.maxzoom&&n>t.maxzoom&&(n=t.maxzoom);const o=this.locationCoordinate(this.center),s=this.center.lat,c=1<<n,l=[c*o.x,c*o.y,0],u="globe"===this.projection.name,d=!u,p=e.Frustum.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,n,d),h=u?this._camera.mercatorPosition:this.pointCoordinate(this.getCameraPoint()),m=c*e.mercatorZfromAltitude(1,this.center.lat),f=this._camera.position[2]/e.mercatorZfromAltitude(1,this.center.lat),g=[c*h.x,c*h.y,f*(d?1:m)],b=this.cameraToCenterDistance/t.tileSize*(t.roundZoom?1:.502),v=this.pitch<=60&&this._edgeInsets.top<=this._edgeInsets.bottom&&!this._elevation&&!this.projection.isReprojectedInTileSpace?n:0,y=t.isTerrainDEM&&this._elevation?1e4*this._elevation.exaggeration():this._centerAltitude,x=t.isTerrainDEM?-y:this._elevation?this._elevation.getMinElevationBelowMSL():0,_=this.projection.isReprojectedInTileSpace?Ri(this):1,w=t=>{const n=1/4e4,i=new e.MercatorCoordinate(t.x+n,t.y,t.z),r=new e.MercatorCoordinate(t.x,t.y+n,t.z),a=t.toLngLat(),o=i.toLngLat(),s=r.toLngLat(),c=this.locationCoordinate(a),l=this.locationCoordinate(o),u=this.locationCoordinate(s),d=Math.hypot(l.x-c.x,l.y-c.y),p=Math.hypot(u.x-c.x,u.y-c.y);return Math.sqrt(d*p)*_/n},O=t=>{const n=y,i=x;return{aabb:e.tileAABB(this,c,0,0,0,t,i,n,this.projection),zoom:0,x:0,y:0,minZ:i,maxZ:n,wrap:t,fullyVisible:!1}},j=[];let C=[];const E=n,T=t.reparseOverscaled?i:n,k=e=>e*e,S=k((f-this._centerAltitude)*m),A=e=>{if(!this._elevation||!e.tileID||!a)return;const t=this._elevation.getMinMaxForTile(e.tileID),n=e.aabb;t?(n.min[2]=t.min,n.max[2]=t.max,n.center[2]=(n.min[2]+n.max[2])/2):(e.shouldSplit=I(e),e.shouldSplit||(n.min[2]=n.max[2]=n.center[2]=this._centerAltitude))},I=t=>{if(t.zoom<v)return!0;if(t.zoom===E)return!1;if(null!=t.shouldSplit)return t.shouldSplit;const n=t.aabb.distanceX(g),a=t.aabb.distanceY(g);let o=S,c=1;if(u){o=k(t.aabb.distanceZ(g));const n=Math.pow(2,t.zoom),i=e.latFromMercatorY((t.y+1)/n),r=e.latFromMercatorY(t.y/n),a=Math.min(Math.max(s,i),r),l=e.circumferenceAtLatitude(a)/e.circumferenceAtLatitude(s);c=Math.min(l,1)}else if(r&&(o=k(t.aabb.distanceZ(g)*m)),this.projection.isReprojectedInTileSpace&&i<=5){const n=Math.pow(2,t.zoom),i=w(new e.MercatorCoordinate((t.x+.5)/n,(t.y+.5)/n));c=i>.85?1:i}const l=n*n+a*a+o;return l<k((1<<E-t.zoom)*b*c*((e,t)=>{if(t*k(.707)<e)return 1;const n=Math.sqrt(t/e);return n/(1.4144271570014144+(Math.pow(1.1,n-1.4144271570014144+1)-1)/(1.1-1)-1)})(Math.max(o,S),l))};if(this.renderWorldCopies)for(let e=1;e<=3;e++)j.push(O(-e)),j.push(O(e));for(j.push(O(0));j.length>0;){const i=j.pop(),o=i.x,s=i.y;let d=i.fullyVisible;if(!d){const e=i.aabb.intersects(p);if(0===e)continue;d=2===e}if(i.zoom!==E&&I(i))for(let t=0;t<4;t++){const n=(o<<1)+t%2,l=(s<<1)+(t>>1),p={aabb:a?i.aabb.quadrant(t):e.tileAABB(this,c,i.zoom+1,n,l,i.wrap,i.minZ,i.maxZ,this.projection),zoom:i.zoom+1,x:n,y:l,wrap:i.wrap,fullyVisible:d,tileID:void 0,shouldSplit:void 0,minZ:i.minZ,maxZ:i.maxZ};r&&!u&&(p.tileID=new e.OverscaledTileID(i.zoom+1===E?T:i.zoom+1,i.wrap,i.zoom+1,n,l),A(p)),j.push(p)}else{const r=i.zoom===E?T:i.zoom;if(t.minzoom&&t.minzoom>r)continue;const a=l[0]-(.5+o+(i.wrap<<i.zoom))*(1<<n-i.zoom),c=l[1]-.5-s,u=i.tileID?i.tileID:new e.OverscaledTileID(r,i.wrap,i.zoom,o,s);C.push({tileID:u,distanceSq:a*a+c*c})}}if(this.fogCullDistSq){const n=this.fogCullDistSq,i=this.horizonLineFromTop();C=C.filter(r=>{const a=[0,0,0,1],o=[e.EXTENT,e.EXTENT,0,1],s=this.calculateFogTileMatrix(r.tileID.toUnwrapped());e.transformMat4$1(a,a,s),e.transformMat4$1(o,o,s);const c=e.getAABBPointSquareDist(a,o);if(0===c)return!0;let l=!1;const u=this._elevation;if(u&&c>n&&0!==i){const n=this.calculateProjMatrix(r.tileID.toUnwrapped());let a;t.isTerrainDEM||(a=u.getMinMaxForTile(r.tileID)),a||(a={min:x,max:y});const o=e.furthestTileCorner(this.rotation),s=[o[0]*e.EXTENT,o[1]*e.EXTENT,a.max];e.transformMat4(s,s,n),l=(1-s[1])*this.height*.5<i}return c<n||l})}return C.sort((e,t)=>e.distanceSq-t.distanceSq).map(e=>e.tileID)}resize(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(e){return Math.pow(2,e)}scaleZoom(e){return Math.log(e)/Math.LN2}project(t){const n=e.clamp(t.lat,-e.MAX_MERCATOR_LATITUDE,e.MAX_MERCATOR_LATITUDE),i=this.projection.project(t.lng,n);return new e.pointGeometry(i.x*this.worldSize,i.y*this.worldSize)}unproject(e){return this.projection.unproject(e.x/this.worldSize,e.y/this.worldSize)}get point(){return this.project(this.center)}setLocationAtPoint(t,n){let i,r;const a=this.centerPoint;if("globe"===this.projection.name){const e=this.worldSize;i=(n.x-a.x)/e,r=(n.y-a.y)/e}else{const e=this.pointCoordinate(n),t=this.pointCoordinate(a);i=e.x-t.x,r=e.y-t.y}const o=this.locationCoordinate(t);this.setLocation(new e.MercatorCoordinate(o.x-i,o.y-r))}setLocation(e){this.center=this.coordinateLocation(e),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(e){return this.projection.locationPoint(this,e)}locationPoint3D(e){return this._coordinatePoint(this.locationCoordinate(e),!0)}pointLocation(e){return this.coordinateLocation(this.pointCoordinate(e))}pointLocation3D(e){return this.coordinateLocation(this.pointCoordinate3D(e))}locationCoordinate(t,n){const i=n?e.mercatorZfromAltitude(n,t.lat):void 0,r=this.projection.project(t.lng,t.lat);return new e.MercatorCoordinate(r.x,r.y,i)}coordinateLocation(e){return this.projection.unproject(e.x,e.y)}pointRayIntersection(t,n){const i=null!=n?n:this._centerAltitude,r=[t.x,t.y,0,1],a=[t.x,t.y,1,1];e.transformMat4$1(r,r,this.pixelMatrixInverse),e.transformMat4$1(a,a,this.pixelMatrixInverse);const o=a[3];e.scale$1(r,r,1/r[3]),e.scale$1(a,a,1/o);const s=r[2],c=a[2];return{p0:r,p1:a,t:s===c?0:(i-s)/(c-s)}}screenPointToMercatorRay(t){const n=[t.x,t.y,0,1],i=[t.x,t.y,1,1];return e.transformMat4$1(n,n,this.pixelMatrixInverse),e.transformMat4$1(i,i,this.pixelMatrixInverse),e.scale$1(n,n,1/n[3]),e.scale$1(i,i,1/i[3]),n[2]=e.mercatorZfromAltitude(n[2],this._center.lat)*this.worldSize,i[2]=e.mercatorZfromAltitude(i[2],this._center.lat)*this.worldSize,e.scale$1(n,n,1/this.worldSize),e.scale$1(i,i,1/this.worldSize),new e.Ray([n[0],n[1],n[2]],e.normalize([],e.sub([],i,n)))}rayIntersectionCoordinate(t){const{p0:n,p1:i,t:r}=t,a=e.mercatorZfromAltitude(n[2],this._center.lat),o=e.mercatorZfromAltitude(i[2],this._center.lat);return new e.MercatorCoordinate(e.number(n[0],i[0],r)/this.worldSize,e.number(n[1],i[1],r)/this.worldSize,e.number(a,o,r))}pointCoordinate(e,t=this._centerAltitude){return this.projection.pointCoordinate(this,e.x,e.y,t)}pointCoordinate3D(t){if(!this.elevation)return this.pointCoordinate(t);const n=this.elevation;let i=this.elevation.pointCoordinate(t);if(i)return new e.MercatorCoordinate(i[0],i[1],i[2]);let r=0,a=this.horizonLineFromTop();if(t.y>a)return this.pointCoordinate(t);const o=.02*a,s=t.clone();for(let c=0;c<10&&a-r>o;c++){s.y=e.number(r,a,.66);const t=n.pointCoordinate(s);t?(a=s.y,i=t):r=s.y}return i?new e.MercatorCoordinate(i[0],i[1],i[2]):this.pointCoordinate(t)}isPointAboveHorizon(e){if(this.elevation)return!this.elevation.pointCoordinate(e);{const t=this.horizonLineFromTop();return e.y<t}}_coordinatePoint(t,n){const i=n&&this.elevation?this.elevation.getAtPointOrZero(t,this._centerAltitude):this._centerAltitude,r=[t.x*this.worldSize,t.y*this.worldSize,i+t.toAltitude(),1];return e.transformMat4$1(r,r,this.pixelMatrix),r[3]>0?new e.pointGeometry(r[0]/r[3],r[1]/r[3]):new e.pointGeometry(Number.MAX_VALUE,Number.MAX_VALUE)}_getBounds(t,n){const i=new e.pointGeometry(this._edgeInsets.left,this._edgeInsets.top),r=new e.pointGeometry(this.width-this._edgeInsets.right,this._edgeInsets.top),a=new e.pointGeometry(this.width-this._edgeInsets.right,this.height-this._edgeInsets.bottom),o=new e.pointGeometry(this._edgeInsets.left,this.height-this._edgeInsets.bottom);let s=this.pointCoordinate(i,t),c=this.pointCoordinate(r,t);const l=this.pointCoordinate(a,n),u=this.pointCoordinate(o,n),d=(e,t)=>(t.y-e.y)/(t.x-e.x);return s.y>1&&c.y>=0?s=new e.MercatorCoordinate((1-u.y)/d(u,s)+u.x,1):s.y<0&&c.y<=1&&(s=new e.MercatorCoordinate(-u.y/d(u,s)+u.x,0)),c.y>1&&s.y>=0?c=new e.MercatorCoordinate((1-l.y)/d(l,c)+l.x,1):c.y<0&&s.y<=1&&(c=new e.MercatorCoordinate(-l.y/d(l,c)+l.x,0)),(new e.LngLatBounds).extend(this.coordinateLocation(s)).extend(this.coordinateLocation(c)).extend(this.coordinateLocation(u)).extend(this.coordinateLocation(l))}_getBounds3D(){const e=this.elevation;if(!e.visibleDemTiles.length)return this._getBounds(0,0);const t=e.visibleDemTiles.reduce((e,t)=>{if(t.dem){const n=t.dem.tree;e.min=Math.min(e.min,n.minimums[0]),e.max=Math.max(e.max,n.maximums[0])}return e},{min:Number.MAX_VALUE,max:0});return this._getBounds(t.min*e.exaggeration(),t.max*e.exaggeration())}getBounds(){return this._terrainEnabled()?this._getBounds3D():this._getBounds(0,0)}horizonLineFromTop(e=!0){const t=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))+this.centerOffset.y,n=this.height/2-t*(1-this._horizonShift);return e?Math.max(0,n):n}getMaxBounds(){return this.maxBounds}setMaxBounds(t){this.maxBounds=t,this.minLat=-e.MAX_MERCATOR_LATITUDE,this.maxLat=e.MAX_MERCATOR_LATITUDE,this.minLng=-180,this.maxLng=180,t&&(this.minLat=t.getSouth(),this.maxLat=t.getNorth(),this.minLng=t.getWest(),this.maxLng=t.getEast(),this.maxLng<this.minLng&&(this.maxLng+=360)),this.worldMinX=e.mercatorXfromLng(this.minLng)*this.tileSize,this.worldMaxX=e.mercatorXfromLng(this.maxLng)*this.tileSize,this.worldMinY=e.mercatorYfromLat(this.maxLat)*this.tileSize,this.worldMaxY=e.mercatorYfromLat(this.minLat)*this.tileSize,this._constrain()}calculatePosMatrix(e,t){return this.projection.createTileMatrix(this,t,e)}calculateDistanceTileData(t){const n=t.key,i=this._distanceTileDataCache;if(i[n])return i[n];const r=t.canonical,a=1/this.height,o=this.cameraWorldSize/this.zoomScale(r.z),s=(r.x+Math.pow(2,r.z)*t.wrap)*o,c=r.y*o,l=this.point,u=this.angle,d=Math.sin(-u),p=-Math.cos(-u);return i[n]={bearing:[d,p],center:[(l.x-s)*a,(l.y-c)*a],scale:o/e.EXTENT*a},i[n]}calculateFogTileMatrix(t){const n=t.key,i=this._fogTileMatrixCache;if(i[n])return i[n];const r=this.calculatePosMatrix(t,this.cameraWorldSize);return e.multiply$1(r,this.worldToFogMatrix,r),i[n]=new Float32Array(r),i[n]}calculateProjMatrix(t,n=!1){const i=t.key,r=n?this._alignedProjMatrixCache:this._projMatrixCache;if(r[i])return r[i];const a=this.calculatePosMatrix(t,this.worldSize);return e.multiply$1(a,this.projection.isReprojectedInTileSpace?this.mercatorMatrix:n?this.alignedProjMatrix:this.projMatrix,a),r[i]=new Float32Array(a),r[i]}calculatePixelsToTileUnitsMatrix(t){const n=t.tileID.key,i=this._pixelsToTileUnitsCache;if(i[n])return i[n];const r=function(t,n){const{scale:i}=t.tileTransform,r=i*e.EXTENT/(t.tileSize*Math.pow(2,n.zoom-t.tileID.overscaledZ+t.tileID.canonical.z));return a=new Float32Array(4),c=(o=n.inverseAdjustmentMatrix)[1],l=o[2],u=o[3],p=(s=[r,r])[1],a[0]=o[0]*(d=s[0]),a[1]=c*d,a[2]=l*p,a[3]=u*p,a;var a,o,s,c,l,u,d,p}(t,this);return i[n]=r,i[n]}customLayerMatrix(){return this.mercatorMatrix.slice()}recenterOnTerrain(){if(!this._elevation)return;const t=this._elevation;this._updateCameraState();const n=e.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,i=this._computeCameraPosition(n),r=this._camera.forward(),a=e.mercatorZfromAltitude(1,this._center.lat);i[2]/=a,r[2]/=a,e.normalize(r,r);const o=t.raycast(i,r,t.exaggeration());if(o){const t=e.scaleAndAdd([],i,r,o),n=new e.MercatorCoordinate(t[0],t[1],e.mercatorZfromAltitude(t[2],e.latFromMercatorY(t[1]))),s=(n.z+e.length([n.x-i[0],n.y-i[1],n.z-i[2]*a]))*this._projectionScaler;this._seaLevelZoom=this._zoomFromMercatorZ(s),this._centerAltitude=n.toAltitude(),this._center=this.coordinateLocation(n),this._updateZoomFromElevation(),this._constrain(),this._calcMatrices()}}_constrainCameraAltitude(){if(!this._elevation)return;const t=this._elevation;this._updateCameraState();const n=e.mercatorZfromAltitude(1,this._center.lat)*this.worldSize,i=this._computeCameraPosition(n),r=t.getAtPointOrZero(new e.MercatorCoordinate(...i)),a=this._minimumHeightOverTerrain()*Math.cos(e.degToRad(this._maxPitch)),o=this._camera.position[2]-this.pixelsPerMeter/this.worldSize*r;if(o<a){const t=this.locationCoordinate(this._center,this._centerAltitude),n=[t.x-i[0],t.y-i[1],t.z-i[2]],r=e.length(n);n[2]-=(a-o)/this._projectionScaler;const s=e.length(n);if(0===s)return;e.scale$2(n,n,r/s*this._projectionScaler),this._camera.position=[t.x-n[0],t.y-n[1],t.z*this._projectionScaler-n[2]],this._camera.orientation=Ii(n,this._camera.up()),this._updateStateFromCamera()}}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;if(this._constraining=!0,this.projection.isReprojectedInTileSpace){const t=this.center;return t.lat=e.clamp(t.lat,this.minLat,this.maxLat),!this.maxBounds&&this.renderWorldCopies||(t.lng=e.clamp(t.lng,this.minLng,this.maxLng)),this.center=t,void(this._constraining=!1)}const t=this._unmodified,{x:n,y:i}=this.point;let r=0,a=n,o=i;const s=this.width/2,c=this.height/2,l=this.worldMinY*this.scale,u=this.worldMaxY*this.scale;if(i-c<l&&(o=l+c),i+c>u&&(o=u-c),u-l<this.height&&(r=Math.max(r,this.height/(u-l)),o=(u+l)/2),this.maxBounds||!this._renderWorldCopies||!this.projection.wrap){const e=this.worldMinX*this.scale,t=this.worldMaxX*this.scale,i=this.worldSize/2-(e+t)/2;a=(n+i+this.worldSize)%this.worldSize-i,a-s<e&&(a=e+s),a+s>t&&(a=t-s),t-e<this.width&&(r=Math.max(r,this.width/(t-e)),a=(t+e)/2)}a===n&&o===i||(this.center=this.unproject(new e.pointGeometry(a,o))),r&&(this.zoom+=this.scaleZoom(r)),this._constrainCameraAltitude(),this._unmodified=t,this._constraining=!1}_minZoomForBounds(){let e=Math.max(0,this.scaleZoom(this.height/(this.worldMaxY-this.worldMinY)));return this.maxBounds&&(e=Math.max(e,this.scaleZoom(this.width/(this.worldMaxX-this.worldMinX)))),e}_maxCameraBoundsDistance(){return this._mercatorZfromZoom(this._minZoomForBounds())}_calcMatrices(){if(!this.height)return;const t=this._fov/2,n=this.centerOffset,i=this.pixelsPerMeter;this._projectionScaler=i/(e.mercatorZfromAltitude(1,this.center.lat)*this.worldSize),this.cameraToCenterDistance=.5/Math.tan(t)*this.height*this._projectionScaler,this._updateCameraState(),this._farZ=this.projection.farthestPixelDistance(this),this._nearZ=this.height/50;const r=this._camera.getWorldToCamera(this.worldSize,"meters"===this.projection.zAxisUnit?i:1),a=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,this._nearZ,this._farZ);a[8]=2*-n.x/this.width,a[9]=2*n.y/this.height;let o=e.mul([],a,r);if(this.projection.isReprojectedInTileSpace){const t=this.locationCoordinate(this.center),n=e.identity([]);e.translate(n,n,[t.x*this.worldSize,t.y*this.worldSize,0]),e.multiply$1(n,n,Bi(this)),e.translate(n,n,[-t.x*this.worldSize,-t.y*this.worldSize,0]),e.multiply$1(o,o,n),this.inverseAdjustmentMatrix=function(e){const t=Bi(e,!0);return v([],[t[0],t[1],t[4],t[5]])}(this)}else this.inverseAdjustmentMatrix=[1,0,0,1];this.mercatorMatrix=e.scale([],o,[this.worldSize,this.worldSize,this.worldSize/i,1]),this.projMatrix=o,this.invProjMatrix=e.invert(new Float64Array(16),this.projMatrix);const s=new Float32Array(16);e.identity(s),e.scale(s,s,[1,-1,1]),e.rotateX(s,s,this._pitch),e.rotateZ(s,s,this.angle);const c=e.perspective(new Float32Array(16),this._fov,this.width/this.height,this._nearZ,this._farZ),l=(Math.PI/2-this._pitch)*(this.height/this._fov)*this._horizonShift;c[8]=2*-n.x/this.width,c[9]=2*(n.y+l)/this.height,this.skyboxMatrix=e.multiply$1(s,c,s);const u=this.point,d=u.x,p=u.y,h=this.width%2/2,m=this.height%2/2,f=Math.cos(this.angle),g=Math.sin(this.angle),b=d-Math.round(d)+f*h+g*m,y=p-Math.round(p)+f*m+g*h,x=new Float64Array(o);if(e.translate(x,x,[b>.5?b-1:b,y>.5?y-1:y,0]),this.alignedProjMatrix=x,o=e.create(),e.scale(o,o,[this.width/2,-this.height/2,1]),e.translate(o,o,[1,-1,0]),this.labelPlaneMatrix=o,o=e.create(),e.scale(o,o,[1,-1,1]),e.translate(o,o,[-1,-1,0]),e.scale(o,o,[2/this.width,2/this.height,1]),this.glCoordMatrix=o,this.pixelMatrix=e.multiply$1(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),this._calcFogMatrices(),this._distanceTileDataCache={},o=e.invert(new Float64Array(16),this.pixelMatrix),!o)throw new Error("failed to invert matrix");this.pixelMatrixInverse=o,this.globeMatrix="globe"===this.projection.name?e.calculateGlobeMatrix(this):o,this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};const t=this.cameraWorldSize,n=this.cameraPixelsPerMeter,i=this._camera.position,r=1/this.height,a=[t,t,n];e.scale$2(a,a,r),e.scale$2(i,i,-1),e.multiply$2(i,i,a);const o=e.create();e.translate(o,o,i),e.scale(o,o,a),this.mercatorFogMatrix=o,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(t,n,r)}_computeCameraPosition(e){const t=(e=e||this.pixelsPerMeter)/this.pixelsPerMeter,n=this._camera.forward(),i=this.point,r=this._mercatorZfromZoom(this._seaLevelZoom?this._seaLevelZoom:this._zoom)*t-e/this.worldSize*this._centerAltitude;return[i.x/this.worldSize-n[0]*r,i.y/this.worldSize-n[1]*r,e/this.worldSize*this._centerAltitude-n[2]*r]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(t){const n=this._maxCameraBoundsDistance()*Math.cos(this._pitch),i=t[2];let r=1;i>0&&(r=Math.min((n-this._camera.position[2])/i,1)),this._camera.position=e.scaleAndAdd([],this._camera.position,t,r),this._updateStateFromCamera(),this.projection.wrap&&(this.center=this.center.wrap())}_updateStateFromCamera(){const t=this._camera.position,n=this._camera.forward(),{pitch:i,bearing:r}=this._camera.getPitchBearing(),a=e.mercatorZfromAltitude(this._centerAltitude,this.center.lat)*this._projectionScaler,o=this._mercatorZfromZoom(this._maxZoom)*Math.cos(e.degToRad(this._maxPitch)),s=Math.max((t[2]-a)/Math.cos(i),o),c=this._zoomFromMercatorZ(s);e.scaleAndAdd(t,t,n,s),this._pitch=e.clamp(i,e.degToRad(this.minPitch),e.degToRad(this.maxPitch)),this.angle=e.wrap(r,-Math.PI,Math.PI),this._setZoom(e.clamp(c,this._minZoom,this._maxZoom)),this._updateSeaLevelZoom(),this._center=this.coordinateLocation(new e.MercatorCoordinate(t[0],t[1],t[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(e){return Math.pow(2,e)*this.tileSize}_mercatorZfromZoom(e){return this.cameraToCenterDistance/this._worldSizeFromZoom(e)}_minimumHeightOverTerrain(){const e=Math.min((null!=this._seaLevelZoom?this._seaLevelZoom:this._zoom)+2,this._maxZoom);return this._mercatorZfromZoom(e)}_zoomFromMercatorZ(e){return this.scaleZoom(this.cameraToCenterDistance/(e*this.tileSize))}_terrainEnabled(){return!(!this._elevation||!this.projection.supportsTerrain&&(e.warnOnce("Terrain is not yet supported with alternate projections. Use mercator to enable terrain."),1))}anyCornerOffEdge(t,n){const i=Math.min(t.x,n.x),r=Math.max(t.x,n.x),a=Math.min(t.y,n.y),o=Math.max(t.y,n.y);if(a<this.horizonLineFromTop(!1))return!0;if("mercator"!==this.projection.name)return!1;const s=[new e.pointGeometry(i,a),new e.pointGeometry(r,o),new e.pointGeometry(i,o),new e.pointGeometry(r,a)],c=this.renderWorldCopies?-3:0,l=this.renderWorldCopies?4:1;for(const e of s){const t=this.pointRayIntersection(e);if(t.t<0)return!0;const n=this.rayIntersectionCoordinate(t);if(n.x<c||n.y<0||n.x>l||n.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+e.radToDeg(this.fovAboveCenter)>88||this.anyCornerOffEdge(new e.pointGeometry(0,0),new e.pointGeometry(this.width,this.height))}zoomDeltaToMovement(t,n){const i=e.length(e.sub([],this._camera.position,t)),r=this._zoomFromMercatorZ(i)+n;return i-this._mercatorZfromZoom(r)}getCameraPoint(){const t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.pointGeometry(0,t))}}function Ui(e,t){let n=!1,i=null;const r=()=>{i=null,n&&(e(),i=setTimeout(r,t),n=!1)};return()=>(n=!0,i||r(),i)}class Vi{constructor(t){this._hashName=t&&encodeURIComponent(t),e.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=Ui(this._updateHashUnthrottled.bind(this),300)}addTo(t){return this._map=t,e.window.addEventListener("hashchange",this._onHashChange,!1),t.on("moveend",this._updateHash),this}remove(){return this._map?(this._map.off("moveend",this._updateHash),e.window.removeEventListener("hashchange",this._onHashChange,!1),clearTimeout(this._updateHash()),this._map=void 0,this):this}getHashString(t){const n=this._map;if(!n)return"";const i=n.getCenter(),r=Math.round(100*n.getZoom())/100,a=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),o=Math.pow(10,a),s=Math.round(i.lng*o)/o,c=Math.round(i.lat*o)/o,l=n.getBearing(),u=n.getPitch();let d="";if(d+=t?`/${s}/${c}/${r}`:`${r}/${c}/${s}`,(l||u)&&(d+="/"+Math.round(10*l)/10),u&&(d+="/"+Math.round(u)),this._hashName){const t=this._hashName;let n=!1;const i=e.window.location.hash.slice(1).split("&").map(e=>{const i=e.split("=")[0];return i===t?(n=!0,`${i}=${d}`):e}).filter(e=>e);return n||i.push(`${t}=${d}`),"#"+i.join("&")}return"#"+d}_getCurrentHash(){const t=e.window.location.hash.replace("#","");if(this._hashName){let e;return t.split("&").map(e=>e.split("=")).forEach(t=>{t[0]===this._hashName&&(e=t)}),(e&&e[1]||"").split("/")}return t.split("/")}_onHashChange(){const e=this._map;if(!e)return!1;const t=this._getCurrentHash();if(t.length>=3&&!t.some(e=>isNaN(e))){const n=e.dragRotate.isEnabled()&&e.touchZoomRotate.isEnabled()?+(t[3]||0):e.getBearing();return e.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:n,pitch:+(t[4]||0)}),!0}return!1}_updateHashUnthrottled(){const t=e.window.location.href.replace(/(#.+)?$/,this.getHashString());e.window.history.replaceState(e.window.history.state,null,t)}}const Wi={linearity:.3,easing:e.bezier(0,0,.3,1)},qi=e.extend({deceleration:2500,maxSpeed:1400},Wi),Gi=e.extend({deceleration:20,maxSpeed:1400},Wi),Zi=e.extend({deceleration:1e3,maxSpeed:360},Wi),Hi=e.extend({deceleration:1e3,maxSpeed:90},Wi);class Xi{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.exported.now(),settings:t})}_drainInertiaBuffer(){const t=this._inertiaBuffer,n=e.exported.now();for(;t.length>0&&n-t[0].time>160;)t.shift()}_onMoveEnd(t){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const n={zoom:0,bearing:0,pitch:0,pan:new e.pointGeometry(0,0),pinchAround:void 0,around:void 0};for(const{settings:e}of this._inertiaBuffer)n.zoom+=e.zoomDelta||0,n.bearing+=e.bearingDelta||0,n.pitch+=e.pitchDelta||0,e.panDelta&&n.pan._add(e.panDelta),e.around&&(n.around=e.around),e.pinchAround&&(n.pinchAround=e.pinchAround);const i=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,r={};if(n.pan.mag()){const a=Yi(n.pan.mag(),i,e.extend({},qi,t||{}));r.offset=n.pan.mult(a.amount/n.pan.mag()),r.center=this._map.transform.center,Ki(r,a)}if(n.zoom){const e=Yi(n.zoom,i,Gi);r.zoom=this._map.transform.zoom+e.amount,Ki(r,e)}if(n.bearing){const t=Yi(n.bearing,i,Zi);r.bearing=this._map.transform.bearing+e.clamp(t.amount,-179,179),Ki(r,t)}if(n.pitch){const e=Yi(n.pitch,i,Hi);r.pitch=this._map.transform.pitch+e.amount,Ki(r,e)}if(r.zoom||r.bearing){const e=void 0===n.pinchAround?n.around:n.pinchAround;r.around=e?this._map.unproject(e):this._map.getCenter()}return this.clear(),r.noMoveStart=!0,r}}function Ki(e,t){(!e.duration||e.duration<t.duration)&&(e.duration=t.duration,e.easing=t.easing)}function Yi(t,n,i){const{maxSpeed:r,linearity:a,deceleration:o}=i,s=e.clamp(t*a/(n/1e3),-r,r),c=Math.abs(s)/(o*a);return{easing:i.easing,duration:1e3*c,amount:s*(c/2)}}class Ji extends e.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,n,i,r={}){const a=m(n.getCanvasContainer(),i),o=n.unproject(a);super(t,e.extend({point:a,lngLat:o,originalEvent:i},r)),this._defaultPrevented=!1,this.target=n}}class Qi extends e.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,n,i){const r="touchend"===t?i.changedTouches:i.touches,a=f(n.getCanvasContainer(),r),o=a.map(e=>n.unproject(e)),s=a.reduce((e,t,n,i)=>e.add(t.div(i.length)),new e.pointGeometry(0,0));super(t,{points:a,point:s,lngLats:o,lngLat:n.unproject(s),originalEvent:i}),this._defaultPrevented=!1}}class $i extends e.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,n){super(e,{originalEvent:n}),this._defaultPrevented=!1}}class er{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){this._mousedownPos=void 0}wheel(e){return this._firePreventable(new $i(e.type,this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new Ji(e.type,this._map,e))}mouseup(e){this._map.fire(new Ji(e.type,this._map,e))}preclick(t){const n=e.extend({},t);n.type="preclick",this._map.fire(new Ji(n.type,this._map,n))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||(this.preclick(e),this._map.fire(new Ji(e.type,this._map,e)))}dblclick(e){return this._firePreventable(new Ji(e.type,this._map,e))}mouseover(e){this._map.fire(new Ji(e.type,this._map,e))}mouseout(e){this._map.fire(new Ji(e.type,this._map,e))}touchstart(e){return this._firePreventable(new Qi(e.type,this._map,e))}touchmove(e){this._map.fire(new Qi(e.type,this._map,e))}touchend(e){this._map.fire(new Qi(e.type,this._map,e))}touchcancel(e){this._map.fire(new Qi(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class tr{constructor(e){this._map=e}reset(){this._delayContextMenu=!1,this._contextMenuEvent=void 0}mousemove(e){this._map.fire(new Ji(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Ji("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(e){this._delayContextMenu?this._contextMenuEvent=e:this._map.fire(new Ji(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class nr{constructor(e,t){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(u(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;const n=t;if(this._lastPos.equals(n)||!this._box&&n.dist(this._startPos)<this._clickTolerance)return;const i=this._startPos;this._lastPos=n,this._box||(this._box=a("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",e));const r=Math.min(i.x,n.x),o=Math.max(i.x,n.x),s=Math.min(i.y,n.y),c=Math.max(i.y,n.y);this._map._requestDomTask(()=>{this._box&&(this._box.style.transform=`translate(${r}px,${s}px)`,this._box.style.width=o-r+"px",this._box.style.height=c-s+"px")})}mouseupWindow(t,n){if(!this._active)return;if(0!==t.button)return;const i=this._startPos,r=n;if(this.reset(),h(),i.x!==r.x||i.y!==r.y)return this._map.fire(new e.Event("boxzoomend",{originalEvent:t})),{cameraAnimation:e=>e.fitScreenCoordinates(i,r,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",t)}keydown(e){this._active&&27===e.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",e))}blur(){this.reset()}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(this._box.remove(),this._box=null),d(),delete this._startPos,delete this._lastPos}_fireEvent(t,n){return this._map.fire(new e.Event(t,{originalEvent:n}))}}function ir(e,t){const n={};for(let i=0;i<e.length;i++)n[e[i].identifier]=t[i];return n}class rr{constructor(e){this.reset(),this.numTouches=e.numTouches}reset(){this.centroid=void 0,this.startTime=0,this.touches={},this.aborted=!1}touchstart(t,n,i){(this.centroid||i.length>this.numTouches)&&(this.aborted=!0),this.aborted||(0===this.startTime&&(this.startTime=t.timeStamp),i.length===this.numTouches&&(this.centroid=function(t){const n=new e.pointGeometry(0,0);for(const e of t)n._add(e);return n.div(t.length)}(n),this.touches=ir(i,n)))}touchmove(e,t,n){if(this.aborted||!this.centroid)return;const i=ir(n,t);for(const r in this.touches){const e=this.touches[r],t=i[r];(!t||t.dist(e)>30)&&(this.aborted=!0)}}touchend(e,t,n){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){const e=!this.aborted&&this.centroid;if(this.reset(),e)return e}}}class ar{constructor(e){this.singleTap=new rr(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,this.lastTap=void 0,this.count=0,this.singleTap.reset()}touchstart(e,t,n){this.singleTap.touchstart(e,t,n)}touchmove(e,t,n){this.singleTap.touchmove(e,t,n)}touchend(e,t,n){const i=this.singleTap.touchend(e,t,n);if(i){const t=e.timeStamp-this.lastTime<500,n=!this.lastTap||this.lastTap.dist(i)<30;if(t&&n||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=i,this.count===this.numTaps)return this.reset(),i}}}class or{constructor(){this._zoomIn=new ar({numTouches:1,numTaps:2}),this._zoomOut=new ar({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,n){this._zoomIn.touchstart(e,t,n),this._zoomOut.touchstart(e,t,n)}touchmove(e,t,n){this._zoomIn.touchmove(e,t,n),this._zoomOut.touchmove(e,t,n)}touchend(e,t,n){const i=this._zoomIn.touchend(e,t,n),r=this._zoomOut.touchend(e,t,n);return i?(this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()+1,around:t.unproject(i)},{originalEvent:e})}):r?(this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()-1,around:t.unproject(r)},{originalEvent:e})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const sr={0:1,2:2};class cr{constructor(e){this.reset(),this._clickTolerance=e.clickTolerance||1}blur(){this.reset()}reset(){this._active=!1,this._moved=!1,this._lastPoint=void 0,this._eventButton=void 0}_correctButton(e,t){return!1}_move(e,t){return{}}mousedown(e,t){if(this._lastPoint)return;const n=g(e);this._correctButton(e,n)&&(this._lastPoint=t,this._eventButton=n)}mousemoveWindow(e,t){const n=this._lastPoint;if(n)if(e.preventDefault(),null!=this._eventButton&&function(e,t){const n=sr[t];return void 0===e.buttons||(e.buttons&n)!==n}(e,this._eventButton))this.reset();else if(this._moved||!(t.dist(n)<this._clickTolerance))return this._moved=!0,this._lastPoint=t,this._move(n,t)}mouseupWindow(e){this._lastPoint&&g(e)===this._eventButton&&(this._moved&&h(),this.reset())}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class lr extends cr{mousedown(e,t){super.mousedown(e,t),this._lastPoint&&(this._active=!0)}_correctButton(e,t){return 0===t&&!e.ctrlKey}_move(e,t){return{around:t,panDelta:t.sub(e)}}}class ur extends cr{_correctButton(e,t){return 0===t&&e.ctrlKey||2===t}_move(e,t){const n=.8*(t.x-e.x);if(n)return this._active=!0,{bearingDelta:n}}contextmenu(e){e.preventDefault()}}class dr extends cr{_correctButton(e,t){return 0===t&&e.ctrlKey||2===t}_move(e,t){const n=-.5*(t.y-e.y);if(n)return this._active=!0,{pitchDelta:n}}contextmenu(e){e.preventDefault()}}class pr{constructor(t,n){this._map=t,this._el=t.getCanvasContainer(),this._minTouches=1,this._clickTolerance=n.clickTolerance||1,this.reset(),e.bindAll(["_addTouchPanBlocker","_showTouchPanBlockerAlert"],this)}reset(){this._active=!1,this._touches={},this._sum=new e.pointGeometry(0,0)}touchstart(e,t,n){return this._calculateTransform(e,t,n)}touchmove(e,t,n){if(this._active&&!(n.length<this._minTouches)){if(this._map._cooperativeGestures&&!this._map.isMoving()){if(1===n.length)return void this._showTouchPanBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}return e.preventDefault(),this._calculateTransform(e,t,n)}}touchend(e,t,n){this._calculateTransform(e,t,n),this._active&&n.length<this._minTouches&&this.reset()}touchcancel(){this.reset()}_calculateTransform(t,n,i){i.length>0&&(this._active=!0);const r=ir(i,n),a=new e.pointGeometry(0,0),o=new e.pointGeometry(0,0);let s=0;for(const e in r){const t=r[e],n=this._touches[e];n&&(a._add(t),o._add(t.sub(n)),s++,r[e]=t)}if(this._touches=r,s<this._minTouches||!o.mag())return;const c=o.div(s);return this._sum._add(c),this._sum.mag()<this._clickTolerance?void 0:{around:a.div(s),panDelta:c}}enable(){this._enabled=!0,this._map._cooperativeGestures&&(this._addTouchPanBlocker(),this._el.classList.add("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page"))}disable(){this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove(),this._el.classList.remove("mapboxgl-touch-pan-blocker-override","mapboxgl-scrollable-page")),this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}_addTouchPanBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=a("div","mapboxgl-touch-pan-blocker",this._map._container),this._alertContainer.textContent=this._map._getUIString("TouchPanBlocker.Message"),this._alertContainer.style.fontSize=Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))+"px")}_showTouchPanBlockerAlert(){"hidden"===this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="visible"),this._alertContainer.classList.add("mapboxgl-touch-pan-blocker-show"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show")},500)}}class hr{constructor(){this.reset()}reset(){this._active=!1,this._firstTwoTouches=void 0}_start(e){}_move(e,t,n){return{}}touchstart(e,t,n){this._firstTwoTouches||n.length<2||(this._firstTwoTouches=[n[0].identifier,n[1].identifier],this._start([t[0],t[1]]))}touchmove(e,t,n){const i=this._firstTwoTouches;if(!i)return;e.preventDefault();const[r,a]=i,o=mr(n,t,r),s=mr(n,t,a);if(!o||!s)return;const c=this._aroundCenter?null:o.add(s).div(2);return this._move([o,s],c,e)}touchend(e,t,n){if(!this._firstTwoTouches)return;const[i,r]=this._firstTwoTouches,a=mr(n,t,i),o=mr(n,t,r);a&&o||(this._active&&h(),this.reset())}touchcancel(){this.reset()}enable(e){this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function mr(e,t,n){for(let i=0;i<e.length;i++)if(e[i].identifier===n)return t[i]}function fr(e,t){return Math.log(e/t)/Math.LN2}class gr extends hr{reset(){super.reset(),this._distance=0,this._startDistance=0}_start(e){this._startDistance=this._distance=e[0].dist(e[1])}_move(e,t){const n=this._distance;if(this._distance=e[0].dist(e[1]),this._active||!(Math.abs(fr(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:fr(this._distance,n),pinchAround:t}}}function br(e,t){return 180*e.angleWith(t)/Math.PI}class vr extends hr{reset(){super.reset(),this._minDiameter=0,this._startVector=void 0,this._vector=void 0}_start(e){this._startVector=this._vector=e[0].sub(e[1]),this._minDiameter=e[0].dist(e[1])}_move(e,t){const n=this._vector;if(this._vector=e[0].sub(e[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:br(this._vector,n),pinchAround:t}}_isBelowThreshold(e){this._minDiameter=Math.min(this._minDiameter,e.mag());const t=25/(Math.PI*this._minDiameter)*360,n=br(e,this._startVector);return Math.abs(n)<t}}function yr(e){return Math.abs(e.y)>Math.abs(e.x)}class xr extends hr{constructor(e){super(),this._map=e}reset(){super.reset(),this._valid=void 0,this._firstMove=void 0,this._lastPoints=void 0}_start(e){this._lastPoints=e,yr(e[0].sub(e[1]))&&(this._valid=!1)}_move(e,t,n){const i=this._lastPoints;if(!i)return;const r=e[0].sub(i[0]),a=e[1].sub(i[1]);return this._map._cooperativeGestures&&n.touches.length<3||(this._valid=this.gestureBeginsVertically(r,a,n.timeStamp),!this._valid)?void 0:(this._lastPoints=e,this._active=!0,{pitchDelta:(r.y+a.y)/2*-.5})}gestureBeginsVertically(e,t,n){if(void 0!==this._valid)return this._valid;const i=e.mag()>=2,r=t.mag()>=2;if(!i&&!r)return;if(!i||!r)return null==this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;const a=e.y>0==t.y>0;return yr(e)&&yr(t)&&a}}const _r={panStep:100,bearingStep:15,pitchStep:10};class wr{constructor(){const e=_r;this._panStep=e.panStep,this._bearingStep=e.bearingStep,this._pitchStep=e.pitchStep,this._rotationDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,n=0,i=0,r=0,a=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?n=-1:(e.preventDefault(),r=-1);break;case 39:e.shiftKey?n=1:(e.preventDefault(),r=1);break;case 38:e.shiftKey?i=1:(e.preventDefault(),a=-1);break;case 40:e.shiftKey?i=-1:(e.preventDefault(),a=1);break;default:return}return this._rotationDisabled&&(n=0,i=0),{cameraAnimation:o=>{const s=o.getZoom();o.easeTo({duration:300,easeId:"keyboardHandler",easing:Or,zoom:t?Math.round(s)+t*(e.shiftKey?2:1):s,bearing:o.getBearing()+n*this._bearingStep,pitch:o.getPitch()+i*this._pitchStep,offset:[-r*this._panStep,-a*this._panStep],center:o.getCenter()},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function Or(e){return e*(2-e)}const jr=4.000244140625;class Cr{constructor(t,n){this._map=t,this._el=t.getCanvasContainer(),this._handler=n,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,e.bindAll(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert","_isFullscreen"],this)}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return!!this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around,this._map._cooperativeGestures&&this._addScrollZoomBlocker())}disable(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}wheel(t){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!(t.ctrlKey||t.metaKey||this.isZooming()||this._isFullscreen()))return void this._showBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let n=t.deltaMode===e.window.WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY;const i=e.exported.now(),r=i-(this._lastWheelEventTime||0);this._lastWheelEventTime=i,0!==n&&n%jr==0?this._type="wheel":0!==n&&Math.abs(n)<4?this._type="trackpad":r>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(r*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),t.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=t,this._delta-=n,this._active||this._start(t)),t.preventDefault()}_onTimeout(e){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)}_start(e){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const t=m(this._el,e);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:t,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId)return;if(this._frameId=null,!this.isActive())return;const t=this._map.transform,n=()=>t._terrainEnabled()&&this._aroundCoord?t.computeZoomRelativeTo(this._aroundCoord):t.zoom;if(0!==this._delta){const e="wheel"===this._type&&Math.abs(this._delta)>jr?this._wheelZoomRate:this._defaultZoomRate;let i=2/(1+Math.exp(-Math.abs(this._delta*e)));this._delta<0&&0!==i&&(i=1/i);const r=n(),a=Math.pow(2,r),o="number"==typeof this._targetZoom?t.zoomScale(this._targetZoom):a;this._targetZoom=Math.min(t.maxZoom,Math.max(t.minZoom,t.scaleZoom(o*i))),"wheel"===this._type&&(this._startZoom=n(),this._easing=this._smoothOutEasing(200)),this._delta=0}const i="number"==typeof this._targetZoom?this._targetZoom:n(),r=this._startZoom,a=this._easing;let o,s=!1;if("wheel"===this._type&&r&&a){const t=Math.min((e.exported.now()-this._lastWheelEventTime)/200,1),n=a(t);o=e.number(r,i,n),t<1?this._frameId||(this._frameId=!0):s=!0}else o=i,s=!0;return this._active=!0,s&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!s,zoomDelta:o-n(),around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(t){let n=e.ease;if(this._prevEase){const t=this._prevEase,i=(e.exported.now()-t.start)/t.duration,r=t.easing(i+.01)-t.easing(i),a=.27/Math.sqrt(r*r+1e-4)*.01,o=Math.sqrt(.0729-a*a);n=e.bezier(a,o,.25,1)}return this._prevEase={start:e.exported.now(),duration:t,easing:n},n}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=a("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=/(Mac|iPad)/i.test(e.window.navigator.userAgent)?this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize=Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))+"px")}_isFullscreen(){return!!e.window.document.fullscreenElement||!!e.window.document.webkitFullscreenElement}_showBlockerAlert(){"hidden"===this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="visible"),this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show")},200)}}class Er{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Tr{constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(e,t){return e.preventDefault(),{cameraAnimation:n=>{n.easeTo({duration:300,zoom:n.getZoom()+(e.shiftKey?-1:1),around:n.unproject(t)},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class kr{constructor(){this._tap=new ar({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,this._swipePoint=void 0,this._swipeTouch=0,this._tapTime=0,this._tap.reset()}touchstart(e,t,n){this._swipePoint||(this._tapTime&&e.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?n.length>0&&(this._swipePoint=t[0],this._swipeTouch=n[0].identifier):this._tap.touchstart(e,t,n))}touchmove(e,t,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;const i=t[0],r=i.y-this._swipePoint.y;return this._swipePoint=i,e.preventDefault(),this._active=!0,{zoomDelta:r/128}}}else this._tap.touchmove(e,t,n)}touchend(e,t,n){this._tapTime?this._swipePoint&&0===n.length&&this.reset():this._tap.touchend(e,t,n)&&(this._tapTime=e.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Sr{constructor(e,t,n){this._el=e,this._mousePan=t,this._touchPan=n}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Ar{constructor(e,t,n){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=n}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class Ir{constructor(e,t,n,i){this._el=e,this._touchZoom=t,this._touchRotate=n,this._tapDragZoom=i,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const Mr=e=>e.zoom||e.drag||e.pitch||e.rotate;class Lr extends e.Event{}class Br{constructor(){this.constants=[1,1,.01],this.radius=0}setup(t,n){const i=e.sub([],n,t);this.radius=e.length(i[2]<0?e.div([],i,this.constants):[i[0],i[1],0])}projectRay(t){e.div(t,t,this.constants),e.normalize(t,t),e.mul$1(t,t,this.constants);const n=e.scale$2([],t,this.radius);if(n[2]>0){const t=e.scale$2([],[0,0,1],e.dot(n,[0,0,1])),i=e.scale$2([],e.normalize([],[n[0],n[1],0]),this.radius),r=e.add([],n,e.scale$2([],e.sub([],e.add([],i,t),n),2));n[0]=r[0],n[1]=r[1]}return n}}function Rr(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}class Dr{constructor(t,n){this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Xi(t),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new Br,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(n),e.bindAll(["handleEvent","handleWindowEvent"],this);const i=this._el;this._listeners=[[i,"touchstart",{passive:!0}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[e.window.document,"mousemove",{capture:!0}],[e.window.document,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[e.window,"blur",void 0]];for(const[r,a,o]of this._listeners)r.addEventListener(a,r===e.window.document?this.handleWindowEvent:this.handleEvent,o)}destroy(){for(const[t,n,i]of this._listeners)t.removeEventListener(n,t===e.window.document?this.handleWindowEvent:this.handleEvent,i)}_addDefaultHandlers(e){const t=this._map,n=t.getCanvasContainer();this._add("mapEvent",new er(t,e));const i=t.boxZoom=new nr(t,e);this._add("boxZoom",i);const r=new or,a=new Tr;t.doubleClickZoom=new Er(a,r),this._add("tapZoom",r),this._add("clickZoom",a);const o=new kr;this._add("tapDragZoom",o);const s=t.touchPitch=new xr(t);this._add("touchPitch",s);const c=new ur(e),l=new dr(e);t.dragRotate=new Ar(e,c,l),this._add("mouseRotate",c,["mousePitch"]),this._add("mousePitch",l,["mouseRotate"]);const u=new lr(e),d=new pr(t,e);t.dragPan=new Sr(n,u,d),this._add("mousePan",u),this._add("touchPan",d,["touchZoom","touchRotate"]);const p=new vr,h=new gr;t.touchZoomRotate=new Ir(n,h,p,o),this._add("touchRotate",p,["touchPan","touchZoom"]),this._add("touchZoom",h,["touchPan","touchRotate"]),this._add("blockableMapEvent",new tr(t));const m=t.scrollZoom=new Cr(t,this);this._add("scrollZoom",m,["mousePan"]);const f=t.keyboard=new wr;this._add("keyboard",f);for(const g of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])e.interactive&&e[g]&&t[g].enable(e[g])}_add(e,t,n){this._handlers.push({handlerName:e,handler:t,allowed:n}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(const{handler:e}of this._handlers)e.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(const{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Mr(this._eventsInProgress)||this.isZooming()}_blockedByActive(e,t,n){for(const i in e)if(i!==n&&(!t||t.indexOf(i)<0))return!0;return!1}handleWindowEvent(e){this.handleEvent(e,e.type+"Window")}_getMapTouches(e){const t=[];for(const n of e)this._el.contains(n.target)&&t.push(n);return t}handleEvent(e,t){this._updatingCamera=!0;const n="renderFrame"===e.type,i=n?void 0:e,r={needsRenderFrame:!1},a={},o={},s=e.touches?this._getMapTouches(e.touches):void 0,c=s?f(this._el,s):n?void 0:m(this._el,e);for(const{handlerName:d,handler:p,allowed:h}of this._handlers){if(!p.isEnabled())continue;let n;this._blockedByActive(o,h,d)?p.reset():p[t||e.type]&&(n=p[t||e.type](e,c,s),this.mergeHandlerResult(r,a,n,d,i),n&&n.needsRenderFrame&&this._triggerRenderFrame()),(n||p.isActive())&&(o[d]=p)}const l={};for(const d in this._previousActiveHandlers)o[d]||(l[d]=i);this._previousActiveHandlers=o,(Object.keys(l).length||Rr(r))&&(this._changes.push([r,a,l]),this._triggerRenderFrame()),(Object.keys(o).length||Rr(r))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:u}=r;u&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],u(this._map))}mergeHandlerResult(t,n,i,r,a){if(!i)return;e.extend(t,i);const o={handlerName:r,originalEvent:i.originalEvent||a};void 0!==i.zoomDelta&&(n.zoom=o),void 0!==i.panDelta&&(n.drag=o),void 0!==i.pitchDelta&&(n.pitch=o),void 0!==i.bearingDelta&&(n.rotate=o)}_applyChanges(){const t={},n={},i={};for(const[r,a,o]of this._changes)r.panDelta&&(t.panDelta=(t.panDelta||new e.pointGeometry(0,0))._add(r.panDelta)),r.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+r.zoomDelta),r.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+r.bearingDelta),r.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+r.pitchDelta),void 0!==r.around&&(t.around=r.around),void 0!==r.aroundCoord&&(t.aroundCoord=r.aroundCoord),void 0!==r.pinchAround&&(t.pinchAround=r.pinchAround),r.noInertia&&(t.noInertia=r.noInertia),e.extend(n,a),e.extend(i,o);this._updateMapTransform(t,n,i),this._changes=[]}_updateMapTransform(t,n,i){const r=this._map,a=r.transform,o=e=>[e.x,e.y,e.z];if((e=>{const t=this._eventsInProgress.drag;return t&&!this._handlersById[t.handlerName].isActive()})()&&!Rr(t)){const e=a.zoom;a.cameraElevationReference="sea",a.recenterOnTerrain(),a.cameraElevationReference="ground",e!==a.zoom&&this._map._update(!0)}if(!Rr(t))return void this._fireEvents(n,i,!0);let{panDelta:s,zoomDelta:c,bearingDelta:l,pitchDelta:u,around:d,aroundCoord:p,pinchAround:h}=t;void 0!==h&&(d=h),(e=>n.drag&&!this._eventsInProgress.drag)()&&d&&(this._dragOrigin=o(a.pointCoordinate3D(d)),this._trackingEllipsoid.setup(a._camera.position,this._dragOrigin)),a.cameraElevationReference="sea",r._stop(!0),d=d||r.transform.centerPoint,l&&(a.bearing+=l),u&&(a.pitch+=u),a._updateCameraState();const m=[0,0,0];if(s){const t=a.pointCoordinate(d);if("globe"===a.projection.name){const n=e.latFromMercatorY(t.y),i=a.center.lat,r=Math.min(e.mercatorZfromAltitude(1,n)/e.mercatorZfromAltitude(1,i),2);s=s.rotate(-a.angle),m[0]=-s.x/a.worldSize*r,m[1]=-s.y/a.worldSize*r}else{const e=a.pointCoordinate(d.sub(s));t&&e&&(m[0]=e.x-t.x,m[1]=e.y-t.y)}}const f=a.zoom,g=[0,0,0];if(c){const t=o(p||a.pointCoordinate3D(d)),n={dir:e.normalize([],e.sub([],t,a._camera.position))};if(n.dir[2]<0){const i=a.zoomDeltaToMovement(t,c);e.scale$2(g,n.dir,i)}}const b=e.add(m,m,g);a._translateCameraConstrained(b),c&&Math.abs(a.zoom-f)>1e-4&&a.recenterOnTerrain(),a.cameraElevationReference="ground",this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(n,i,!0)}
2_fireEvents(t,n,i){const r=Mr(this._eventsInProgress),a=Mr(t),o={};for(const e in t){const{originalEvent:n}=t[e];this._eventsInProgress[e]||(o[e+"start"]=n),this._eventsInProgress[e]=t[e]}!r&&a&&this._fireEvent("movestart",a.originalEvent);for(const e in o)this._fireEvent(e,o[e]);a&&this._fireEvent("move",a.originalEvent);for(const e in t){const{originalEvent:n}=t[e];this._fireEvent(e,n)}const s={};let c;for(const e in this._eventsInProgress){const{handlerName:t,originalEvent:i}=this._eventsInProgress[e];this._handlersById[t].isActive()||(delete this._eventsInProgress[e],c=n[t]||i,s[e+"end"]=c)}for(const e in s)this._fireEvent(e,s[e]);const l=Mr(this._eventsInProgress);if(i&&(r||a)&&!l){this._updatingCamera=!0;const t=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),n=e=>0!==e&&-this._bearingSnap<e&&e<this._bearingSnap;t?(n(t.bearing||this._map.getBearing())&&(t.bearing=0),this._map.easeTo(t,{originalEvent:c})):(this._map.fire(new e.Event("moveend",{originalEvent:c})),n(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}}_fireEvent(t,n){this._map.fire(new e.Event(t,n?{originalEvent:n}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add(e=>{this._frameId=void 0,this.handleEvent(new Lr("renderFrame",{timeStamp:e})),this._applyChanges()})}
vendor: 24,797 bytes, line 2
2_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}const Pr="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class zr extends e.Evented{constructor(t,n){super(),this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=n.bearingSnap,e.bindAll(["_renderFrameCallback"],this)}getCenter(){return new e.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}panBy(t,n,i){return t=e.pointGeometry.convert(t).mult(-1),this.panTo(this.transform.center,e.extend({offset:t},n),i)}panTo(t,n,i){return this.easeTo(e.extend({center:t},n),i)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(t,n,i){return this.easeTo(e.extend({zoom:t},n),i)}zoomIn(e,t){return this.zoomTo(this.getZoom()+1,e,t),this}zoomOut(e,t){return this.zoomTo(this.getZoom()-1,e,t),this}getBearing(){return this.transform.bearing}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(t,n,i){return this.easeTo(e.extend({bearing:t},n),i)}resetNorth(t,n){return this.rotateTo(0,e.extend({duration:1e3},t),n),this}resetNorthPitch(t,n){return this.easeTo(e.extend({bearing:0,pitch:0,duration:1e3},t),n),this}snapToNorth(e,t){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(e,t):this}getPitch(){return this.transform.pitch}setPitch(e,t){return this.jumpTo({pitch:e},t),this}cameraForBounds(t,n){t=e.LngLatBounds.convert(t);const i=n&&n.bearing||0;return this._cameraForBoxAndBearing(t.getNorthWest(),t.getSouthEast(),i,n)}_extendCameraOptions(t){const n={top:0,bottom:0,right:0,left:0};if("number"==typeof(t=e.extend({padding:n,offset:[0,0],maxZoom:this.transform.maxZoom},t)).padding){const e=t.padding;t.padding={top:e,bottom:e,right:e,left:e}}return t.padding=e.extend(n,t.padding),t}_cameraForBoxAndBearing(t,n,i,r){const a=this._extendCameraOptions(r),o=this.transform,s=o.padding,c=o.project(e.LngLat.convert(t)),l=o.project(e.LngLat.convert(n)),u=new e.pointGeometry(c.x,l.y),d=new e.pointGeometry(l.x,c.y),p=-e.degToRad(i),h=c.rotate(p),m=l.rotate(p),f=u.rotate(p),g=d.rotate(p),b=new e.pointGeometry(Math.max(h.x,m.x,f.x,g.x),Math.max(h.y,m.y,f.y,g.y)),v=new e.pointGeometry(Math.min(h.x,m.x,f.x,g.x),Math.min(h.y,m.y,f.y,g.y)),y=b.sub(v),x=(o.width-((s.left||0)+(s.right||0)+a.padding.left+a.padding.right))/y.x,_=(o.height-((s.top||0)+(s.bottom||0)+a.padding.top+a.padding.bottom))/y.y;if(_<0||x<0)return void e.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.");const w=Math.min(o.scaleZoom(o.scale*Math.min(x,_)),a.maxZoom),O="number"==typeof a.offset.x&&"number"==typeof a.offset.y?new e.pointGeometry(a.offset.x,a.offset.y):e.pointGeometry.convert(a.offset),j=new e.pointGeometry((a.padding.left-a.padding.right)/2,(a.padding.top-a.padding.bottom)/2).rotate(i*Math.PI/180),C=O.add(j).mult(o.scale/o.zoomScale(w));return{center:o.unproject(c.add(l).div(2).sub(C)),zoom:w,bearing:i}}_cameraForBox(t,n,i,r,a){const o=this._extendCameraOptions(a);i=i||0,r=r||0,t=e.LngLat.convert(t),n=e.LngLat.convert(n);const s=this.transform.clone();s.padding=o.padding;const c=this.getFreeCameraOptions(),l=new e.LngLat(.5*(t.lng+n.lng),.5*(t.lat+n.lat)),u=.5*(i+r);if(s._camera.position[2]<e.mercatorZfromAltitude(u,l.lat))return void e.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.");c.lookAtPoint(l),s.setFreeCameraOptions(c);const d=e.MercatorCoordinate.fromLngLat(t),p=e.MercatorCoordinate.fromLngLat(n),h=s.pointRayIntersection(s.centerPoint,u),m=[(f=s.rayIntersectionCoordinate(h)).x,f.y,f.z];var f;const g=s.screenPointToMercatorRay(s.centerPoint),b="globe"!==s.projection.name;let v,y=0;do{const n=Math.floor(s.zoom),a=1<<n,o=Math.min(a*d.x,a*p.x),c=Math.min(a*d.y,a*p.y),l=Math.max(a*d.x,a*p.x),u=Math.max(a*d.y,a*p.y),h=new e.Aabb([o,c,i],[l,u,r]),f=e.Frustum.fromInvProjectionMatrix(s.invProjMatrix,s.worldSize,n,b);if(2!==h.intersects(f)){v&&(s._camera.position=e.scaleAndAdd([],s._camera.position,g.dir,-v),s._updateStateFromCamera());break}const y=e.sub([],s._camera.position,m);v=.5*e.length(y),s._camera.position=e.scaleAndAdd([],s._camera.position,g.dir,v);try{s._updateStateFromCamera()}catch(t){return void e.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")}}while(++y<10);return{center:s.center,zoom:s.zoom,bearing:s.bearing,pitch:s.pitch}}fitBounds(e,t,n){return this._fitInternal(this.cameraForBounds(e,t),t,n)}_raycastElevationBox(t,n){const i=this.transform.elevation;if(!i)return;const r=new e.pointGeometry(t.x,n.y),a=new e.pointGeometry(n.x,t.y),o=i.pointCoordinate(t);if(!o)return;const s=i.pointCoordinate(n);if(!s)return;const c=i.pointCoordinate(r);if(!c)return;const l=i.pointCoordinate(a);if(!l)return;const u=new e.MercatorCoordinate(o[0],o[1]).toLngLat(),d=new e.MercatorCoordinate(s[0],s[1]).toLngLat(),p=new e.MercatorCoordinate(c[0],c[1]).toLngLat(),h=new e.MercatorCoordinate(l[0],l[1]).toLngLat(),m=Math.min(u.lng,Math.min(d.lng,Math.min(p.lng,h.lng))),f=Math.min(u.lat,Math.min(d.lat,Math.min(p.lat,h.lat))),g=Math.max(u.lng,Math.max(d.lng,Math.max(p.lng,h.lng))),b=Math.max(u.lat,Math.max(d.lat,Math.max(p.lat,h.lat))),v=Math.min(o[3],Math.min(s[3],Math.min(c[3],l[3]))),y=Math.max(o[3],Math.max(s[3],Math.max(c[3],l[3])));return{minLngLat:new e.LngLat(m,f),maxLngLat:new e.LngLat(g,b),minAltitude:v,maxAltitude:y}}fitScreenCoordinates(t,n,i,r,a){let o,s,c,l;const u=e.pointGeometry.convert(t),d=e.pointGeometry.convert(n),p=this._raycastElevationBox(u,d);if(p)o=p.minLngLat,s=p.maxLngLat,c=p.minAltitude,l=p.maxAltitude;else{if(this.transform.anyCornerOffEdge(u,d))return this;o=this.transform.pointLocation(u),s=this.transform.pointLocation(d)}return this._fitInternal(0===this.transform.pitch?this._cameraForBoxAndBearing(this.transform.pointLocation(e.pointGeometry.convert(t)),this.transform.pointLocation(e.pointGeometry.convert(n)),i,r):this._cameraForBox(o,s,c,l,r),r,a)}_fitInternal(t,n,i){return t?(delete(n=e.extend(t,n)).padding,n.linear?this.easeTo(n,i):this.flyTo(n,i)):this}jumpTo(t,n){this.stop();const i=t.preloadOnly?this.transform.clone():this.transform;let r=!1,a=!1,o=!1;return"zoom"in t&&i.zoom!==+t.zoom&&(r=!0,i.zoom=+t.zoom),void 0!==t.center&&(i.center=e.LngLat.convert(t.center)),"bearing"in t&&i.bearing!==+t.bearing&&(a=!0,i.bearing=+t.bearing),"pitch"in t&&i.pitch!==+t.pitch&&(o=!0,i.pitch=+t.pitch),null==t.padding||i.isPaddingEqual(t.padding)||(i.padding=t.padding),t.preloadOnly?(this._preloadTiles(i),this):(this.fire(new e.Event("movestart",n)).fire(new e.Event("move",n)),r&&this.fire(new e.Event("zoomstart",n)).fire(new e.Event("zoom",n)).fire(new e.Event("zoomend",n)),a&&this.fire(new e.Event("rotatestart",n)).fire(new e.Event("rotate",n)).fire(new e.Event("rotateend",n)),o&&this.fire(new e.Event("pitchstart",n)).fire(new e.Event("pitch",n)).fire(new e.Event("pitchend",n)),this.fire(new e.Event("moveend",n)))}getFreeCameraOptions(){return this.transform.projection.supportsFreeCamera||e.warnOnce(Pr),this.transform.getFreeCameraOptions()}setFreeCameraOptions(t,n){const i=this.transform;if(!i.projection.supportsFreeCamera)return e.warnOnce(Pr),this;this.stop();const r=i.zoom,a=i.pitch,o=i.bearing;i.setFreeCameraOptions(t);const s=r!==i.zoom,c=a!==i.pitch,l=o!==i.bearing;return this.fire(new e.Event("movestart",n)).fire(new e.Event("move",n)),s&&this.fire(new e.Event("zoomstart",n)).fire(new e.Event("zoom",n)).fire(new e.Event("zoomend",n)),l&&this.fire(new e.Event("rotatestart",n)).fire(new e.Event("rotate",n)).fire(new e.Event("rotateend",n)),c&&this.fire(new e.Event("pitchstart",n)).fire(new e.Event("pitch",n)).fire(new e.Event("pitchend",n)),this.fire(new e.Event("moveend",n)),this}easeTo(t,n){this._stop(!1,t.easeId),(!1===(t=e.extend({offset:[0,0],duration:500,easing:e.ease},t)).animate||!t.essential&&e.exported.prefersReducedMotion)&&(t.duration=0);const i=this.transform,r=this.getZoom(),a=this.getBearing(),o=this.getPitch(),s=this.getPadding(),c="zoom"in t?+t.zoom:r,l="bearing"in t?this._normalizeBearing(t.bearing,a):a,u="pitch"in t?+t.pitch:o,d="padding"in t?t.padding:i.padding,p=e.pointGeometry.convert(t.offset);let h,m,f;if("globe"===i.projection.name){const n=e.MercatorCoordinate.fromLngLat(i.center),r=p.rotate(-i.angle);n.x+=r.x/i.worldSize,n.y+=r.y/i.worldSize;const a=n.toLngLat(),o=e.LngLat.convert(t.center||a);this._normalizeCenter(o),h=i.centerPoint.add(r),m=new e.pointGeometry(n.x,n.y).mult(i.worldSize),f=new e.pointGeometry(e.mercatorXfromLng(o.lng),e.mercatorYfromLat(o.lat)).mult(i.worldSize).sub(m)}else{h=i.centerPoint.add(p);const n=i.pointLocation(h),r=e.LngLat.convert(t.center||n);this._normalizeCenter(r),m=i.project(n),f=i.project(r).sub(m)}const g=i.zoomScale(c-r);let b,v;t.around&&(b=e.LngLat.convert(t.around),v=i.locationPoint(b));const y=this._zooming||c!==r,x=this._rotating||a!==l,_=this._pitching||u!==o,w=!i.isPaddingEqual(d),O=i=>O=>{if(y&&(i.zoom=e.number(r,c,O)),x&&(i.bearing=e.number(a,l,O)),_&&(i.pitch=e.number(o,u,O)),w&&(i.interpolatePadding(s,d,O),h=i.centerPoint.add(p)),b)i.setLocationAtPoint(b,v);else{const e=i.zoomScale(i.zoom-r),t=c>r?Math.min(2,g):Math.max(.5,g),n=Math.pow(t,1-O),a=i.unproject(m.add(f.mult(O*n)).mult(e));i.setLocationAtPoint(i.renderWorldCopies?a.wrap():a,h)}return t.preloadOnly||this._fireMoveEvents(n),i};if(t.preloadOnly){const e=this._emulate(O,t.duration,i);return this._preloadTiles(e),this}const j={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=y,this._rotating=x,this._pitching=_,this._padding=w,this._easeId=t.easeId,this._prepareEase(n,t.noMoveStart,j),this._ease(O(i),e=>{i.recenterOnTerrain(),this._afterEase(n,e)},t),this}_prepareEase(t,n,i={}){this._moving=!0,this.transform.cameraElevationReference="sea",n||i.moving||this.fire(new e.Event("movestart",t)),this._zooming&&!i.zooming&&this.fire(new e.Event("zoomstart",t)),this._rotating&&!i.rotating&&this.fire(new e.Event("rotatestart",t)),this._pitching&&!i.pitching&&this.fire(new e.Event("pitchstart",t))}_fireMoveEvents(t){this.fire(new e.Event("move",t)),this._zooming&&this.fire(new e.Event("zoom",t)),this._rotating&&this.fire(new e.Event("rotate",t)),this._pitching&&this.fire(new e.Event("pitch",t))}_afterEase(t,n){if(this._easeId&&n&&this._easeId===n)return;this._easeId=void 0,this.transform.cameraElevationReference="ground";const i=this._zooming,r=this._rotating,a=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,i&&this.fire(new e.Event("zoomend",t)),r&&this.fire(new e.Event("rotateend",t)),a&&this.fire(new e.Event("pitchend",t)),this.fire(new e.Event("moveend",t))}flyTo(t,n){if(!t.essential&&e.exported.prefersReducedMotion){const i=e.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(i,n)}this.stop(),t=e.extend({offset:[0,0],speed:1.2,curve:1.42,easing:e.ease},t);const i=this.transform,r=this.getZoom(),a=this.getBearing(),o=this.getPitch(),s=this.getPadding(),c="zoom"in t?e.clamp(+t.zoom,i.minZoom,i.maxZoom):r,l="bearing"in t?this._normalizeBearing(t.bearing,a):a,u="pitch"in t?+t.pitch:o,d="padding"in t?t.padding:i.padding,p=i.zoomScale(c-r),h=e.pointGeometry.convert(t.offset);let m=i.centerPoint.add(h);const f=i.pointLocation(m),g=e.LngLat.convert(t.center||f);this._normalizeCenter(g);const b=i.project(f),v=i.project(g).sub(b);let y=t.curve;const x=Math.max(i.width,i.height),_=x/p,w=v.mag();if("minZoom"in t){const n=e.clamp(Math.min(t.minZoom,r,c),i.minZoom,i.maxZoom),a=x/i.zoomScale(n-r);y=Math.sqrt(a/w*2)}const O=y*y;function j(e){const t=(_*_-x*x+(e?-1:1)*O*O*w*w)/(2*(e?_:x)*O*w);return Math.log(Math.sqrt(t*t+1)-t)}function C(e){return(Math.exp(e)-Math.exp(-e))/2}function E(e){return(Math.exp(e)+Math.exp(-e))/2}const T=j(0);let k=function(e){return E(T)/E(T+y*e)},S=function(e){return x*((E(T)*(C(t=T+y*e)/E(t))-C(T))/O)/w;var t},A=(j(1)-T)/y;if(Math.abs(w)<1e-6||!isFinite(A)){if(Math.abs(x-_)<1e-6)return this.easeTo(t,n);const e=_<x?-1:1;A=Math.abs(Math.log(_/x))/y,S=function(){return 0},k=function(t){return Math.exp(e*y*t)}}t.duration="duration"in t?+t.duration:1e3*A/("screenSpeed"in t?+t.screenSpeed/y:+t.speed),t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0);const I=a!==l,M=u!==o,L=!i.isPaddingEqual(d),B=i=>p=>{const f=p*A,y=1/k(f);i.zoom=1===p?c:r+i.scaleZoom(y),I&&(i.bearing=e.number(a,l,p)),M&&(i.pitch=e.number(o,u,p)),L&&(i.interpolatePadding(s,d,p),m=i.centerPoint.add(h));const x=1===p?g:i.unproject(b.add(v.mult(S(f))).mult(y));return i.setLocationAtPoint(i.renderWorldCopies?x.wrap():x,m),i._updateCameraOnTerrain(),t.preloadOnly||this._fireMoveEvents(n),i};if(t.preloadOnly){const e=this._emulate(B,t.duration,i);return this._preloadTiles(e),this}return this._zooming=!0,this._rotating=I,this._pitching=M,this._padding=L,this._prepareEase(n,!1),this._ease(B(i),()=>this._afterEase(n),t),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),this._easeFrameId=void 0,this._onEaseFrame=void 0),this._onEaseEnd){const e=this._onEaseEnd;this._onEaseEnd=void 0,e.call(this,t)}if(!e){const e=this.handlers;e&&e.stop(!1)}return this}_ease(t,n,i){!1===i.animate||0===i.duration?(t(1),n()):(this._easeStart=e.exported.now(),this._easeOptions=i,this._onEaseFrame=t,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const t=Math.min((e.exported.now()-this._easeStart)/this._easeOptions.duration,1),n=this._onEaseFrame;n&&n(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(t,n){t=e.wrap(t,-180,180);const i=Math.abs(t-n);return Math.abs(t-360-n)<i&&(t-=360),Math.abs(t+360-n)<i&&(t+=360),t}_normalizeCenter(e){const t=this.transform;if(!t.renderWorldCopies||t.maxBounds)return;const n=e.lng-t.center.lng;e.lng+=n>180?-360:n<-180?360:0}_emulate(e,t,n){const i=Math.ceil(15*t/1e3),r=[],a=e(n.clone());for(let o=0;o<=i;o++){const e=a(o/i);r.push(e.clone())}return r}}class Fr{constructor(t={}){this.options=t,e.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(e){const t=this.options&&this.options.compact;return this._map=e,this._container=a("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=a("button","mapboxgl-ctrl-attrib-button",this._container),a("span","mapboxgl-ctrl-icon",this._compactButton).setAttribute("aria-hidden","true"),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=a("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),t&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===t&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_setElementTitle(e,t){const n=this._map._getUIString("AttributionControl."+t);e.setAttribute("aria-label",n),e.removeAttribute("title"),e.firstElementChild&&e.firstElementChild.setAttribute("title",n)}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}_updateEditLink(){let t=this._editLink;t||(t=this._editLink=this._container.querySelector(".mapbox-improve-map"));const n=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||e.config.ACCESS_TOKEN}];if(t){const i=n.reduce((e,t,i)=>(t.value&&(e+=`${t.key}=${t.value}${i<n.length-1?"&":""}`),e),"?");t.href=`${e.config.FEEDBACK_URL}/${i}${this._map._hash?this._map._hash.getHashString(!0):""}`,t.rel="noopener nofollow",this._setElementTitle(t,"MapFeedback")}}_updateData(e){!e||"metadata"!==e.sourceDataType&&"visibility"!==e.sourceDataType&&"style"!==e.dataType||(this._updateAttributions(),this._updateEditLink())}_updateAttributions(){if(!this._map.style)return;let e=[];if(this._map.style.stylesheet){const e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}const t=this._map.style._sourceCaches;for(const i in t){const n=t[i];if(n.used){const t=n.getSource();t.attribution&&e.indexOf(t.attribution)<0&&e.push(t.attribution)}}e.sort((e,t)=>e.length-t.length),e=e.filter((t,n)=>{for(let i=n+1;i<e.length;i++)if(e[i].indexOf(t)>=0)return!1;return!0}),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=[...this.options.customAttribution,...e]:e.unshift(this.options.customAttribution));const n=e.join(" | ");n!==this._attribHTML&&(this._attribHTML=n,e.length?(this._innerContainer.innerHTML=n,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class Nr{constructor(){e.bindAll(["_updateLogo","_updateCompact"],this)}onAdd(e){this._map=e,this._container=a("div","mapboxgl-ctrl");const t=a("a","mapboxgl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://www.mapbox.com/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(e){e&&"metadata"!==e.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;const e=this._map.style._sourceCaches;if(0===Object.entries(e).length)return!0;for(const t in e){const n=e[t].getSource();if(n.hasOwnProperty("mapbox_logo")&&!n.mapbox_logo)return!1}return!0}_updateCompact(){const e=this._container.children;if(e.length){const t=e[0];this._map.getCanvasContainer().offsetWidth<250?t.classList.add("mapboxgl-compact"):t.classList.remove("mapboxgl-compact")}}}class Ur{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){const t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){const t=this._currentlyRunning,n=t?this._queue.concat(t):this._queue;for(const i of n)if(i.id===e)return void(i.cancelled=!0)}run(e=0){const t=this._currentlyRunning=this._queue;this._queue=[];for(const n of t)if(!n.cancelled&&(n.callback(e),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function Vr(t,n,i){if(t=new e.LngLat(t.lng,t.lat),n){const r=new e.LngLat(t.lng-360,t.lat),a=new e.LngLat(t.lng+360,t.lat),o=360*Math.ceil(Math.abs(t.lng-i.center.lng)/360),s=i.locationPoint(t).distSqr(n),c=n.x<0||n.y<0||n.x>i.width||n.y>i.height;i.locationPoint(r).distSqr(n)<s&&(c||Math.abs(r.lng-i.center.lng)<o)?t=r:i.locationPoint(a).distSqr(n)<s&&(c||Math.abs(a.lng-i.center.lng)<o)&&(t=a)}for(;Math.abs(t.lng-i.center.lng)>180;){const e=i.locationPoint(t);if(e.x>=0&&e.y>=0&&e.x<=i.width&&e.y<=i.height)break;t.lng>i.center.lng?t.lng-=360:t.lng+=360}return t}const Wr={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};class qr extends e.Evented{constructor(t,n){if(super(),(t instanceof e.window.HTMLElement||n)&&(t=e.extend({element:t},n)),e.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],this),this._anchor=t&&t.anchor||"center",this._color=t&&t.color||"#3FB1CE",this._scale=t&&t.scale||1,this._draggable=t&&t.draggable||!1,this._clickTolerance=t&&t.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=t&&t.rotation||0,this._rotationAlignment=t&&t.rotationAlignment||"auto",this._pitchAlignment=t&&t.pitchAlignment&&"auto"!==t.pitchAlignment?t.pitchAlignment:this._rotationAlignment,this._updateMoving=()=>this._update(!0),t&&t.element)this._element=t.element,this._offset=e.pointGeometry.convert(t&&t.offset||[0,0]);else{this._defaultMarker=!0,this._element=a("div");const n=41,i=27,r=o("svg",{display:"block",height:n*this._scale+"px",width:i*this._scale+"px",viewBox:`0 0 ${i} ${n}`},this._element),s=o("radialGradient",{id:"shadowGradient"},o("defs",{},r));o("stop",{offset:"10%","stop-opacity":.4},s),o("stop",{offset:"100%","stop-opacity":.05},s),o("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},r),o("path",{fill:this._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},r),o("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},r),o("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},r),this._offset=e.pointGeometry.convert(t&&t.offset||[0,-14])}this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",e=>{e.preventDefault()}),this._element.addEventListener("mousedown",e=>{e.preventDefault()});const i=this._element.classList;for(const e in Wr)i.remove("mapboxgl-marker-anchor-"+e);i.add("mapboxgl-marker-anchor-"+this._anchor),this._popup=null}addTo(e){return e===this._map||(this.remove(),this._map=e,e.getCanvasContainer().appendChild(this._element),e.on("move",this._updateMoving),e.on("moveend",this._update),e.on("remove",this._clearFadeTimer),e._addMarker(this),this.setDraggable(this._draggable),this._update(),e.on("click",this._onMapClick)),this}remove(){const e=this._map;return e&&(e.off("click",this._onMapClick),e.off("move",this._updateMoving),e.off("moveend",this._update),e.off("mousedown",this._addDragHandler),e.off("touchstart",this._addDragHandler),e.off("mouseup",this._onUp),e.off("touchend",this._onUp),e.off("mousemove",this._onMove),e.off("touchmove",this._onMove),e.off("remove",this._clearFadeTimer),e._removeMarker(this),this._map=void 0),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),e){if(!("offset"in e.options)){const t=38.1,n=13.5,i=Math.sqrt(Math.pow(n,2)/2);e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-t],"bottom-left":[i,-1*(t-n+i)],"bottom-right":[-i,-1*(t-n+i)],left:[n,-1*(t-n)],right:[-n,-1*(t-n)]}:this._offset}this._popup=e,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","fal
2se")}return this}_onKeyPress(e){const t=e.code,n=e.charCode||e.keyCode;"Space"!==t&&"Enter"!==t&&32!==n&&13!==n||this.togglePopup()}_onMapClick(e){const t=e.originalEvent.target,n=this._element;this._popup&&(t===n||n.contains(t))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const e=this._popup;return e?(e.isOpen()?(e.remove(),this._element.setAttribute("aria-expanded","false")):this._map&&(e.addTo(this._map),this._element.setAttribute("aria-expanded","true")),this):this}_evaluateOpacity(){const e=this._map;if(!e)return;const t=this._pos;if(!t||t.x<0||t.x>e.transform.width||t.y<0||t.y>e.transform.height)return void this._clearFadeTimer();const n=e.unproject(t);let i=!1;if(e.transform._terrainEnabled()&&e.getTerrain()){const t=e.getFreeCameraOptions();if(t.position){const e=t.position.toLngLat();i=e.distanceTo(n)<.9*e.distanceTo(this._lngLat)}}const r=(1-e._queryFogOpacity(n))*(i?.2:1);this._element.style.opacity=""+r,this._popup&&this._popup._setOpacity(""+r),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_updateDOM(){const e=this._pos;if(!e)return;const t=this._offset.mult(this._scale),n=this._calculatePitch(),i=this._calculateRotation();this._element.style.transform=`\n            translate(${e.x}px, ${e.y}px) ${Wr[this._anchor]}\n            rotateX(${n}deg) rotateZ(${i}deg)\n            translate(${t.x}px, ${t.y}px)\n        `}_calculatePitch(){return"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?0:this._map&&"map"===this._pitchAlignment?this._map.getPitch():0}_calculateRotation(){return"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?this._rotation:this._map&&"map"===this._rotationAlignment?this._rotation-this._map.getBearing():0}_update(t){e.window.cancelAnimationFrame(this._updateFrameId);const n=this._map;
2n&&(n.transform.renderWorldCopies&&(this._lngLat=Vr(this._lngLat,this._pos,n.transform)),this._pos=n.project(this._lngLat),!0===t?this._updateFrameId=e.window.requestAnimationFrame(()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())}):this._pos=this._pos.round(),n._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),!n.getTerrain()&&!n.getFog()||this._fadeTimer||(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))}))}getOffset(){return this._offset}setOffset(t){return this._offset=e.pointGeometry.convert(t),this._update(),this}_onMove(t){const n=this._map;if(n){if(!this._isDragging){const e=this._clickTolerance||n._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=e}this._isDragging&&(this._pos=t.point.sub(this._positionDelta),this._lngLat=n.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new e.Event("dragstart"))),this.fire(new e.Event("drag")))}}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1;const t=this._map;t&&(t.off("mousemove",this._onMove),t.off("touchmove",this._onMove)),"active"===this._state&&this.fire(new e.Event("dragend")),this._state="inactive"}_addDragHandler(e){const t=this._map;t&&this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(this._pos),this._pointerdownPos=e.point,this._state="pending",t.on("mousemove",this._onMove),t.on("touchmove",this._onMove),t.once("mouseup",this._onUp),t.once("touchend",this._onUp))}setDraggable(e){this._draggable=!!e;const t=this._map;return t&&(e?(t.on("mousedown",this._addDragHandler),t.on("touchstart",this._addDragHandler)):(t.off("mousedown",this._addDragHandler),t.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e&&"auto"!==e?e:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}}class Gr{constructor(e){this.jumpTo(e)}getValue(t){if(t<=this._startTime)return this._start;if(t>=this._endTime)return this._end;const n=e.easeCubicInOut((t-this._startTime)/(this._endTime-this._startTime));return this._start*(1-n)+this._end*n}isEasing(e){return e>=this._startTime&&e<=this._endTime}jumpTo(e){this._startTime=-1/0,this._endTime=-1/0,this._start=e,this._end=e}easeTo(e,t,n){this._start=this.getValue(t),this._end=e,this._startTime=t,this._endTime=t+n}}const Zr={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use \u2318 + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},Hr={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,optimizeForTerrain:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileC
vendor: 6,976 bytes, line 2
2acheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0};function Xr(e){e.parentNode&&e.parentNode.removeChild(e)}const Kr={showCompass:!0,showZoom:!0,visualizePitch:!1};class Yr{constructor(t,n,i=!1){this._clickTolerance=10,this.element=n,this.mouseRotate=new ur({clickTolerance:t.dragRotate._mouseRotate._clickTolerance}),this.map=t,i&&(this.mousePitch=new dr({clickTolerance:t.dragRotate._mousePitch._clickTolerance})),e.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),n.addEventListener("mousedown",this.mousedown),n.addEventListener("touchstart",this.touchstart,{passive:!1}),n.addEventListener("touchmove",this.touchmove),n.addEventListener("touchend",this.touchend),n.addEventListener("touchcancel",this.reset)}down(e,t){this.mouseRotate.mousedown(e,t),this.mousePitch&&this.mousePitch.mousedown(e,t),u()}move(e,t){const n=this.map,i=this.mouseRotate.mousemoveWindow(e,t),r=i&&i.bearingDelta;if(r&&n.setBearing(n.getBearing()+r),this.mousePitch){const i=this.mousePitch.mousemoveWindow(e,t),r=i&&i.pitchDelta;r&&n.setPitch(n.getPitch()+r)}}off(){const e=this.element;e.removeEventListener("mousedown",this.mousedown),e.removeEventListener("touchstart",this.touchstart,{passive:!1}),e.removeEventListener("touchmove",this.touchmove),e.removeEventListener("touchend",this.touchend),e.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){d(),e.window.removeEventListener("mousemove",this.mousemove),e.window.removeEventListener("mouseup",this.mouseup)}mousedown(t){this.down(e.extend({},t,{ctrlKey:!0,preventDefault:()=>t.preventDefault()}),m(this.element,t)),e.window.addEventListener("mousemove",this.mousemove),e.window.addEventListener("mouseup",this.mouseup)}mousemove(e){this.move(e,m(this.element,e))}mouseup(e){this.mouseRotate.mouseupWindow(e),this.mousePitch&&this.mousePitch.mouseupWindow(e),this.offTemp()}touchstart(e){1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=f(this.element,e.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>e.preventDefault()},this._startPos))}touchmove(e){1!==e.targetTouches.length?this.reset():(this._lastPos=f(this.element,e.targetTouches)[0],this.move({preventDefault:()=>e.preventDefault()},this._lastPos))}touchend(e){0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()}reset(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()}}const Jr={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1};let Qr,$r=0,ea=!1;const ta={maxWidth:100,unit:"metric"};function na(e,t,n){const i=n&&n.maxWidth||100,r=e._containerHeight/2,a=e._containerWidth/2-i/2,o=e.unproject([a,r]),s=e.unproject([a+i,r]),c=o.distanceTo(s);if(n&&"imperial"===n.unit){const n=3.2808*c;n>5280?ia(t,i,n/5280,e._getUIString("ScaleControl.Miles"),e):ia(t,i,n,e._getUIString("ScaleControl.Feet"),e)}else n&&"nautical"===n.unit?ia(t,i,c/1852,e._getUIString("ScaleControl.NauticalMiles"),e):c>=1e3?ia(t,i,c/1e3,e._getUIString("ScaleControl.Kilometers"),e):ia(t,i,c,e._getUIString("ScaleControl.Meters"),e)}function ia(e,t,n,i,r){const a=function(e){const t=Math.pow(10,(""+Math.floor(e)).length-1);let n=e/t;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:n>=1?1:function(e){const t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(n),t*n}(n),o=a/n;r._requestDomTask(()=>{e.style.width=t*o+"px",e.innerHTML=`${a}&nbsp;${i}`})}const ra={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},aa=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function oa(t=new e.pointGeometry(0,0),n="bottom"){if("number"==typeof t){const i=Math.round(Math.sqrt(.5*Math.pow(t,2)));switch(n){case"top":return new e.pointGeometry(0,t);case"top-left":return new e.pointGeometry(i,i);case"top-right":return new e.pointGeometry(-i,i);case"bottom":return new e.pointGeometry(0,-t);case"bottom-left":return new e.pointGeometry(i,-i);case"bottom-right":return new e.pointGeometry(-i,-i);case"left":return new e.pointGeometry(t,0);case"right":return new e.pointGeometry(-t,0)}return new e.pointGeometry(0,0)}return t instanceof e.pointGeometry||Array.isArray(t)?e.pointGeometry.convert(t):e.pointGeometry.convert(t[n]||[0,0])}const sa={version:e.version,supported:t,setRTLTextPlugin:e.setRTLTextPlugin,getRTLTextPluginStatus:e.getRTLTextPluginStatus,Map:class extends zr{constructor(t){if(null!=(t=e.extend({},Hr,t)).minZoom&&null!=t.maxZoom&&t.minZoom>t.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=t.maxPitch&&t.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(t.antialias&&e.isSafariWithAntialiasingBug(e.window)&&(t.antialias=!1,e.warnOnce("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new Ni(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies),t),this._interactive=t.interactive,this._minTileCacheSize=t.minTileCacheSize,this._maxTileCacheSize=t.maxTileCacheSize,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=t.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=t.collectResourceTiming,this._optimizeForTerrain=t.optimizeForTerrain,this._renderTaskQueue=new Ur,this._domRenderTaskQueue=new Ur,this._controls=[],this._markers=[],this._mapId=e.uniqueId(),this._locale=e.extend({},Zr,t.locale),this._clickTolerance=t.clickTolerance,this._cooperativeGestures=t.cooperativeGestures,this._containerWidth=0,this._containerHeight=0,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new Gr(0),this._explicitProjection=null,this._requestManager=new e.RequestManager(t.transformRequest,t.accessToken,t.testMode),this._silenceAuthErrors=!!t.testMode,"string"==typeof t.container){if(this._container=e.window.document.getElementById(t.container),!this._container)throw new Error(`Container '${t.container}' not found.`)}
2else{if(!(t.container instanceof e.window.HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(this._container.childNodes.length>0&&e.warnOnce("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),t.maxBounds&&this.setMaxBounds(t.maxBounds),e.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),void 0!==e.window&&(e.window.addEventListener("online",this._onWindowOnline,!1),e.window.addEventListener("resize",this._onWindowResize,!1),e.window.addEventListener("orientationchange",this._onWindowResize,!1),e.window.addEventListener("webkitfullscreenchange",this._onWindowResize,!1)),this.handlers=new Dr(this,t),this._localFontFamily=t.localFontFamily,this._localIdeographFontFamily=t.localIdeographFontFamily,t.style&&this.setStyle(t.style,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),t.projection&&this.setProjection(t.projection),this._hash=t.hash&&new Vi("string"==typeof t.hash&&t.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,e.extend({},t.fitBoundsOptions,{duration:0})))),this.resize(),t.attributionControl&&this.addControl(new Fr({customAttribution:t.customAttribution})),this._logoControl=new Nr,this.addControl(this._logoControl,t.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",t=>{this._update("style"===t.dataType),this.fire(new e.Event(t.dataType+"data",t))}),this.on("dataloading",t=>{this.fire(new e.Event(t.dataType+"dataloading",t))})}_getMapId(){return this._mapId}addControl(t,n){if(void 0===n&&(n=t.getDefaultPosition?t.getDefaultPosition():"top-right"),!t||!t.onAdd)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const i=t.onAdd(this);this._controls.push(t);const r=this._controlPositions[n];return-1!==n.indexOf("bottom")?r.insertBefore(i,r.firstChild):r.appendChild(i),this}removeControl(t){if(!t||!t.onRemove)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const n=this._controls.indexOf(t);return n>-1&&this._controls.splice(n,1),t.onRemove(this),this}hasControl(e){return this._controls.indexOf(e)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(t){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const n=!this._moving;return n&&this.fire(new e.Event("movestart",t)).fire(new e.Event("move",t)),this.fire(new e.Event("resize",t)),n&&this.fire(new e.Event("moveend",t)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(t){return this.transform.setMaxBounds(e.LngLatBounds.convert(t)),this._update()}setMinZoom(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t?this.setZoom(t):this.fire(new e.Event("zoomstart")).fire(new e.Event("zoom")).fire(new e.Event("zoomend")),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(t){if((t=null==t?22:t)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t?this.setZoom(t):this.fire(new e.Event("zoomstart")).fire(new e.Event("zoom")).fire(new e.Event("zoomend")),this;
vendor: 12,136 bytes, line 2
2throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()<t?this.setPitch(t):this.fire(new e.Event("pitchstart")).fire(new e.Event("pitch")).fire(new e.Event("pitchend")),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(t){if((t=null==t?85:t)>85)throw new Error("maxPitch must be less than or equal to 85");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t?this.setPitch(t):this.fire(new e.Event("pitchstart")).fire(new e.Event("pitch")).fire(new e.Event("pitchend")),this;throw new Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(e){return this.transform.renderWorldCopies=e,this._update()}getProjection(){return this._explicitProjection?this._explicitProjection:this.style&&this.style.stylesheet&&this.style.stylesheet.projection?this.style.stylesheet.projection:{name:"mercator",center:[0,0]}}setProjection(e){return this._lazyInitEmptyStyle(),e?"string"==typeof e&&(e={name:e}):e=null,this._updateProjection(e)}_updateProjection(e){null===e&&(this._explicitProjection=null);const t=e||this.getProjection(),n=this.transform.setProjection(t);if(e&&(this._explicitProjection=this.transform.getProjection()),n){this.painter.clearBackgroundTiles();for(const e in this.style._sourceCaches)this.style._sourceCaches[e].clearTiles();this.style.applyProjectionUpdate(),this._update(!0)}return this}project(t){return this.transform.locationPoint3D(e.LngLat.convert(t))}unproject(t){return this.transform.pointLocation3D(e.pointGeometry.convert(t))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_createDelegatedListener(e,t,n){if("mouseenter"===e||"mouseover"===e){let i=!1;const r=r=>{const a=t.filter(e=>this.getLayer(e)),o=a.length?this.queryRenderedFeatures(r.point,{layers:a}):[];o.length?i||(i=!0,n.call(this,new Ji(e,this,r.originalEvent,{features:o}))):i=!1},a=()=>{i=!1};return{layers:new Set(t),listener:n,delegates:{mousemove:r,mouseout:a}}}if("mouseleave"===e||"mouseout"===e){let i=!1;const r=r=>{const a=t.filter(e=>this.getLayer(e));(a.length?this.queryRenderedFeatures(r.point,{layers:a}):[]).length?i=!0:i&&(i=!1,n.call(this,new Ji(e,this,r.originalEvent)))},a=t=>{i&&(i=!1,n.call(this,new Ji(e,this,t.originalEvent)))};return{layers:new Set(t),listener:n,delegates:{mousemove:r,mouseout:a}}}{const i=e=>{const i=t.filter(e=>this.getLayer(e)),r=i.length?this.queryRenderedFeatures(e.point,{layers:i}):[];r.length&&(e.features=r,n.call(this,e),delete e.features)};return{layers:new Set(t),listener:n,delegates:{[e]:i}}}}on(e,t,n){if(void 0===n)return super.on(e,t);Array.isArray(t)||(t=[t]);const i=this._createDelegatedListener(e,t,n);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(i);for(const r in i.delegates)this.on(r,i.delegates[r]);return this}once(e,t,n){if(void 0===n)return super.once(e,t);Array.isArray(t)||(t=[t]);const i=this._createDelegatedListener(e,t,n);for(const r in i.delegates)this.once(r,i.delegates[r]);return this}off(e,t,n){if(void 0===n)return super.off(e,t);t=new Set(Array.isArray(t)?t:[t]);const i=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0},r=this._delegatedListeners?this._delegatedListeners[e]:void 0;return r&&(e=>{for(let r=0;r<e.length;r++){const a=e[r];if(a.listener===n&&i(a.layers,t)){for(const e in a.delegates)this.off(e,a.delegates[e]);return e.splice(r,1),this}}})(r),this}queryRenderedFeatures(t,n){return this.style?(void 0!==n||void 0===t||t instanceof e.pointGeometry||Array.isArray(t)||(n=t,t=void 0),this.style.queryRenderedFeatures(t=t||[[0,0],[this.transform.width,this.transform.height]],n=n||{},this.transform)):[]}querySourceFeatures(e,t){return this.style.querySourceFeatures(e,t)}queryTerrainElevation(t,n){const i=this.transform.elevation;return i?(n=e.extend({},{exaggerated:!0},n),i.getAtPoint(e.MercatorCoordinate.fromLngLat(t),null,n.exaggerated)):null}setStyle(t,n){return!1!==(n=e.extend({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},n)).diff&&n.localIdeographFontFamily===this._localIdeographFontFamily&&n.localFontFamily===this._localFontFamily&&this.style&&t?(this._diffStyle(t,n),this):(this._localIdeographFontFamily=n.localIdeographFontFamily,this._localFontFamily=n.localFontFamily,this._updateStyle(t,n))}_getUIString(e){const t=this._locale[e];if(null==t)throw new Error(`Missing UI string '${e}'`);return t}_updateStyle(e,t){return this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),e&&(this.style=new Xt(this,t||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof e?this.style.loadURL(e):this.style.loadJSON(e)),this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new Xt(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(t,n){if("string"==typeof t){const i=this._requestManager.normalizeStyleURL(t),r=this._requestManager.transformRequest(i,e.ResourceType.Style);e.getJSON(r,(t,i)=>{t?this.fire(new e.ErrorEvent(t)):i&&this._updateDiff(i,n)})}else"object"==typeof t&&this._updateDiff(t,n)}_updateDiff(t,n){try{this.style.setState(t)&&this._update(!0)}catch(i){e.warnOnce(`Unable to perform style diff: ${i.message||i.error||i}.  Rebuilding the style from scratch.`),this._updateStyle(t,n)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(e.warnOnce("There is no style added to the map."),!1)}addSource(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)}isSourceLoaded(e){return!!this.style&&this.style._isSourceCacheLoaded(e)}areTilesLoaded(){const e=this.style&&this.style._sourceCaches;for(const t in e){const n=e[t]._tiles;for(const e in n){const t=n[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}}return!0}addSourceType(e,t,n){this._lazyInitEmptyStyle(),this.style.addSourceType(e,t,n)}removeSource(e){return this.style.removeSource(e),this._updateTerrain(),this._update(!0)}getSource(e){return this.style.getSource(e)}addImage(t,n,{pixelRatio:i=1,sdf:r=!1,stretchX:a,stretchY:o,content:s}={}){if(this._lazyInitEmptyStyle(),n instanceof e.window.HTMLImageElement||e.window.ImageBitmap&&n instanceof e.window.ImageBitmap){const{width:c,height:l,data:u}=e.exported.getImageData(n);this.style.addImage(t,{data:new e.RGBAImage({width:c,height:l},u),pixelRatio:i,stretchX:a,stretchY:o,content:s,sdf:r,version:0})}else if(void 0===n.width||void 0===n.height)this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{const{width:c,height:l}=n,u=n;this.style.addImage(t,{data:new e.RGBAImage({width:c,height:l},new Uint8Array(u.data)),pixelRatio:i,stretchX:a,stretchY:o,content:s,sdf:r,version:0,userImage:u}),u.onAdd&&u.onAdd(this,t)}}updateImage(t,n){const i=this.style.getImage(t);if(!i)return void this.fire(new e.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const r=n instanceof e.window.HTMLImageElement||e.window.ImageBitmap&&n instanceof e.window.ImageBitmap?e.exported.getImageData(n):n,{width:a,height:o}=r;void 0!==a&&void 0!==o?a===i.data.width&&o===i.data.height?(i.data.replace(r.data,!(n instanceof e.window.HTMLImageElement||e.window.ImageBitmap&&n instanceof e.window.ImageBitmap)),this.style.updateImage(t,i)):this.fire(new e.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image"))):this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")))}hasImage(t){return t?!!this.style.getImage(t):(this.fire(new e.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(t,n){e.getImage(this._requestManager.transformRequest(t,e.ResourceType.Image),(t,i)=>{n(t,i instanceof e.window.HTMLImageElement?e.exported.getImageData(i):i)})}listImages(){return this.style.listImages()}addLayer(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)}moveLayer(e,t){return this.style.moveLayer(e,t),this._update(!0)}removeLayer(e){return this.style.removeLayer(e),this._update(!0)}getLayer(e){return this.style.getLayer(e)}setLayerZoomRange(e,t,n){return this.style.setLayerZoomRange(e,t,n),this._update(!0)}setFilter(e,t,n={}){return this.style.setFilter(e,t,n),this._update(!0)}getFilter(e){return this.style.getFilter(e)}setPaintProperty(e,t,n,i={}){return this.style.setPaintProperty(e,t,n,i),this._update(!0)}getPaintProperty(e,t){return this.style.getPaintProperty(e,t)}setLayoutProperty(e,t,n,i={}){return this.style.setLayoutProperty(e,t,n,i),this._update(!0)}getLayoutProperty(e,t){return this.style.getLayoutProperty(e,t)}setLight(e,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)}getLight(){return this.style.getLight()}setTerrain(e){return this._lazyInitEmptyStyle(),!e&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(e),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(e){return this._lazyInitEmptyStyle(),this.style.setFog(e),this._update(!0)}getFog(){return this.style?this.style.getFog():null}_queryFogOpacity(t){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(e.LngLat.convert(t),this.transform):0}setFeatureState(e,t){return this.style.setFeatureState(e,t),this._update()}removeFeatureState(e,t){return this.style.removeFeatureState(e,t),this._update()}getFeatureState(e){return this.style.getFeatureState(e)}_updateContainerDimensions(){if(!this._container)return;const t=this._container.getBoundingClientRect().width||400,n=this._container.getBoundingClientRect().height||300;let i,r,a,o=this._container;for(;o&&(!r||!a);){const t=e.window.getComputedStyle(o).transform;t&&"none"!==t&&(i=t.match(/matrix.*\((.+)\)/)[1].split(", "),i[0]&&"0"!==i[0]&&"1"!==i[0]&&(r=i[0]),i[3]&&"0"!==i[3]&&"1"!==i[3]&&(a=i[3])),o=o.parentElement}this._containerWidth=r?Math.abs(t/r):t,this._containerHeight=a?Math.abs(n/a):n}_detectMissingCSS(){"rgb(250, 128, 114)"!==e.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&e.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const e=this._container;e.classList.add("mapboxgl-map"),(this._missingCSSCanary=a("div","mapboxgl-canary",e)).style.visibility="hidden",this._detectMissingCSS();const t=this._canvasContainer=a("div","mapboxgl-canvas-container",e);this._interactive&&t.classList.add("mapboxgl-interactive"),this._canvas=a("canvas","mapboxgl-canvas",t),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","regi
2on"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const n=this._controlContainer=a("div","mapboxgl-control-container",e),i=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(e=>{i[e]=a("div","mapboxgl-ctrl-"+e,n)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(t,n){const i=e.exported.devicePixelRatio||1;this._canvas.width=i*Math.ceil(t),this._canvas.height=i*Math.ceil(n),this._canvas.style.width=t+"px",this._canvas.style.height=n+"px"}_addMarker(e){this._markers.push(e)}_removeMarker(e){const t=this._markers.indexOf(e);-1!==t&&this._markers.splice(t,1)}_setupPainter(){const n=e.extend({},t.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),i=this._canvas.getContext("webgl",n)||this._canvas.getContext("experimental-webgl",n);i?(e.storeAuthState(i,!0),this.painter=new Ti(i,this.transform),this.on("data",e=>{"source"===e.dataType&&this.painter.setTileLoadedFlag(!0)}),e.exported$1.testSupport(i)):this.fire(new e.ErrorEvent(new Error("Failed to initialize WebGL")))}_contextLost(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new e.Event("webglcontextlost",{originalEvent:t}))}_contextRestored(t){this._setupPainter(),this.resize(),this._update(),this.fire(new e.Event("webglcontextrestored",{originalEvent:t}))}_onMapScroll(e){if(e.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(e){return this.style?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_requestDomTask(e){!this.loaded()||this.loaded()&&!this.isMoving()?e():this._domRenderTaskQueue.add(e)}_render(t){let n;const i=this.painter.context.extTimerQuery,r=e.exported.now();if(this.listens("gpu-timing-frame")&&(n=i.createQueryEXT(),i.beginQueryEXT(i.TIME_ELAPSED_EXT,n)),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(t),this._domRenderTaskQueue.run(t),this._removed)return;let a=!1;const o=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const t=this.transform.zoom,n=this.transform.pitch,i=e.exported.now();this.style.zoomHistory.update(t,i);const r=new e.EvaluationParameters(t,{now:i,fadeDuration:o,pitch:n,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),s=r.crossFadingFactor();1===s&&s===this._crossFadingFactor||(a=!0,this._crossFadingFactor=s),this.style.update(r)}this.style&&this.style.fog&&this.style.fog.hasTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let s=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),s=this._updateAverageElevation(r),this.style._updateSources(this.transform),this._forceMarkerUpdate()):s=this._updateAverageElevation(r),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,o,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showTerrainWireframe:this.showTerrainWireframe,showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:o,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),speedIndexTiming:this.speedIndexTiming}),this.fire(new e.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new e.Event("load"))),this.style&&(this.style.hasTransitions()||a)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){const t=e.exported.now()-r;i.endQueryEXT(i.TIME_ELAPSED_EXT,n),setTimeout(()=>{const r=i.getQueryObjectEXT(n,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(n),this.fire(new e.Event("gpu-timing-frame",{cpuTime:t,gpuTime:r}))},50)}if(this.listens("gpu-timing-layer")){const t=this.painter.collectGpuTimers();setTimeout(()=>{const n=this.painter.queryGpuTimers(t);this.fire(new e.Event("gpu-timing-layer",{layerTimes:n}
vendor: 5,778 bytes, line 2
2))},50)}const c=this._sourcesDirty||this._styleDirty||this._placementDirty||s;if(c||this._repaint)this.triggerRepaint();else{const t=!this.isMoving()&&this.loaded();if(t&&(s=this._updateAverageElevation(r,!0)),s)this.triggerRepaint();else if(this._triggerFrame(!1),t&&(this.fire(new e.Event("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const t=this._calculateSpeedIndex();this.fire(new e.Event("speedindexcompleted",{speedIndex:t})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||c||(this._fullyLoaded=!0,this._authenticate())}_forceMarkerUpdate(){for(const e of this._markers)e._update()}_updateAverageElevation(e,t=!1){const n=e=>(this.transform.averageElevation=e,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return 0!==this.transform.averageElevation&&n(0);if((t||e-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(e)){const t=this.transform.averageElevation;let i=this.transform.sampleAverageElevation(),r=!1;this.transform.elevation&&(r=this.transform.elevation.exaggeration()!==this._averageElevationExaggeration,this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(i)?i=0:this._averageElevationLastSampledAt=e;const a=Math.abs(t-i);if(a>1){if(this._isInitialLoad||r)return this._averageElevation.jumpTo(i),n(i);this._averageElevation.easeTo(i,e,300)}else if(a>1e-4)return this._averageElevation.jumpTo(i),n(i)}return!!this._averageElevation.isEasing(e)&&n(this._averageElevation.getValue(e))}_authenticate(){e.getMapSessionAPI(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,t=>{if(t&&(t.message===e.AUTH_ERR_MSG||401===t.status)){const t=this.painter.context.gl;e.storeAuthState(t,!1),this._logoControl instanceof Nr&&this._logoControl._updateLogo(),t&&t.clear(t.DEPTH_BUFFER_BIT|t.COLOR_BUFFER_BIT|t.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new e.ErrorEvent(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),e.postMapLoadEvent(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_updateTerrain(){this.painter.updateTerrain(this.style,this.isMoving()||this.isRotating()||this.isZooming())}_calculateSpeedIndex(){const e=this.painter.canvasCopy(),t=this.painter.getCanvasCopiesAndTimestamps();t.timeStamps.push(performance.now());const n=this.painter.context.gl,i=n.createFramebuffer();function r(e){n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,e,0);const t=new Uint8Array(n.drawingBufferWidth*n.drawingBufferHeight*4);return n.readPixels(0,0,n.drawingBufferWidth,n.drawingBufferHeight,n.RGBA,n.UNSIGNED_BYTE,t),t}return n.bindFramebuffer(n.FRAMEBUFFER,i),this._canvasPixelComparison(r(e),t.canvasCopies.map(r),t.timeStamps)}_canvasPixelComparison(e,t,n){let i=n[1]-n[0];const r=e.length/4;for(let a=0;a<t.length;a++){const o=t[a];let s=0;for(let t=0;t<o.length;t+=4)o[t]===e[t]&&o[t+1]===e[t+1]&&o[t+2]===e[t+2]&&o[t+3]===e[t+3]&&(s+=1);i+=(n[a+2]-n[a+1])*(1-s/r)}return i}remove(){this._hash&&this._hash.remove();for(const e of this._controls)e.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),void 0!==e.window&&(e.window.removeEventListener("resize",this._onWindowResize,!1),e.window.removeEventListener("orientationchange",this._onWindowResize,!1),e.window.removeEventListener("webkitfullscreenchange",this._onWindowResize,!1),e.window.removeEventListener("online",this._onWindowOnline,!1));const t=this.painter.context.gl.getExtension("WEBGL_lose_context");t&&t.loseContext(),Xr(this._canvasContainer),Xr(this._controlContainer),Xr(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),e.removeAuthState(this.painter.context.gl),this._removed=!0,this.fire(new e.Event("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(t){this._renderNextFrame=this._renderNextFrame||t,this.style&&!this._frame&&(this._frame=e.exported.frame(e=>{const t=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,t&&this._render(e)}))}_preloadTiles(t){const n=this.style?Object.values(this.style._sourceCaches):[];return e.asyncAll(n,(e,n)=>e._preloadTiles(t,n),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(e){this._trackResize&&this.resize({originalEvent:e})._update()}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(e){this._showTerrainWireframe!==e&&(this._showTerrainWireframe=e,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(e){this._speedIndexTiming!==e&&(this._speedIndexTiming=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}
2_setCacheLimits(t,n){e.setCacheLimits(t,n)}get version(){return e.version}},NavigationControl:class{constructor(t){this.options=e.extend({},Kr,t),this._container=a("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",e=>e.preventDefault()),this.options.showZoom&&(e.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",e=>{this._map&&this._map.zoomIn({},{originalEvent:e})}),a("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",e=>{this._map&&this._map.zoomOut({},{originalEvent:e})}),a("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(e.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",e=>{const t=this._map;t&&(this.options.visualizePitch?t.resetNorthPitch({},{originalEvent:e}):t.resetNorth({},{originalEvent:e}))}),this._compassIcon=a("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const e=this._map;if(!e)return;const t=e.getZoom(),n=t===e.getMaxZoom(),i=t===e.getMinZoom();this._zoomInButton.disabled=n,this._zoomOutButton.disabled=i,this._zoomInButton.setAttribute("aria-disabled",n.toString()),this._zoomOutButton.setAttribute("aria-disabled",i.toString())}_rotateCompassArrow(){const e=this._map;if(!e)return;const t=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(e.transform.pitch*(Math.PI/180)),.5)}) rotateX(${e.transform.pitch}deg) rotateZ(${e.transform.angle*(180/Math.PI)}deg)`:`rotate(${e.transform.angle*(180/Math.PI)}deg)`;e._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=t)})}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),e.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&e.on("pitch",this._rotateCompassArrow),e.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Yr(e,this._compass,this.options.visualizePitch)),this._container}onRemove(){const e=this._map;e&&(this._container.remove(),this.options.showZoom&&e.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&e.off("pitch",this._rotateCompassArrow),e.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(e,t){const n=a("button",e,this._container);return n.type="button",n.addEventListener("click",t),n}_setButtonTitle(e,t){if(!this._map)return;const n=this._map._getUIString("NavigationControl."+t);e.setAttribute("aria-label",n),e.firstElementChild&&e.firstElementChild.setAttribute("title",n)}},GeolocateControl:class extends e.Evented{constructor(t){super(),this.options=e.extend({},Jr,t),e.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=Ui(this._updateMarkerRotation,20)}onAdd(t){var n;return this._map=t,this._container=a("div","mapboxgl-ctrl mapboxgl-ctrl-group"),n=this._setupUI,void 0!==Qr?n(Qr):void 0!==e.window.navigator.permissions?e.window.navigator.permissions.query({name:"geolocation"}).then(e=>{Qr="denied"!==e.state,n(Qr)}):(Qr=!!e.window.navigator.geolocation,n(Qr)),this._container}onRemove(){void 0!==this._geolocationWatchID&&(e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,$r=0,ea=!1}_isOutOfMapMaxBounds(e){const t=this._map.getMaxBounds(),n=e.coords;return!!t&&(n.longitude<t.getWest()||n.longitude>t.getEast()||n.latitude<t.getSouth()||n.latitude>t.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_E
2RROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.Event("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("geolocate",t)),this._finish()}}_updateCamera(t){const n=new e.LngLat(t.coords.longitude,t.coords.latitude),i=t.coords.accuracy,r=this._map.getBearing(),a=e.extend({bearing:r},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(i),a,{geolocateSource:!0})}_updateMarker(t){if(t){const n=new e.LngLat(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const e=this._map._containerHeight/2,t=this._map.unproject([0,e]),n=this._map.unproject([100,e]),i=t.distanceTo(n)/100,r=Math.ceil(2*this._accuracy/i);this._circleElement.style.width=r+"px",this._circleElement.style.height=r+"px"}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&"number"==typeof this._heading?(this._userLocationDotMarker.setRotation(this._heading),this._dotElement.classList.add("mapboxgl-user-location-show-heading")):(this._dotElement.classList.remove("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(t){if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&ea)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("error",t)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(t){if(this._container.addEventListener("contextmenu",e=>e.preventDefault()),this._geolocateButton=a("button","mapboxgl-ctrl-geolocate",this._container),a("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===t){e.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",t),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",t)}else{const e=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",e),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",e)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","fal
2se"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=a("div","mapboxgl-user-location"),this._dotElement.appendChild(a("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(a("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new qr({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=a("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new qr({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",t=>{t.geolocateSource||"ACTIVE_LOCK"!==this._watchState||t.originalEvent&&"resize"===t.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new e.Event("trackuserlocationend")))})}_onDeviceOrientation(e){this._userLocationDotMarker&&(e.webkitCompassHeading?this._heading=e.webkitCompassHeading:!0===e.absolute&&(this._heading=-1*e.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return e.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":$r--,ea=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new e.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let t;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),$r++,$r>1?(t={maximumAge:6e5,timeout:0},ea=!0):(t=this.options.positionOptions,ea=!1),this._geolocationWatchID=e.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,t),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else e.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const t=()=>{e.window.addEventListener("ondeviceorientationabsolute"in e.window?"deviceorientationabsolute":"deviceorientation",this._onDeviceOrientation)};void 0!==e.window.DeviceMotionEvent&&"function"==typeof e.window.DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then(e=>{"granted"===e&&t()}).catch(console.error):t()}_clearWatch(){e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),e.window.removeEventListener("deviceorientation",this._onDeviceOrientation),e.window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","fal
2se"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:Fr,ScaleControl:class{constructor(t){this.options=e.extend({},ta,t),e.bindAll(["_onMove","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_onMove(){na(this._map,this._container,this.options)}onAdd(e){return this._map=e,this._container=a("div","mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._onMove),this._map=void 0}setUnit(e){this.options.unit=e,na(this._map,this._container,this.options)}},FullscreenControl:class{constructor(t){this._fullscreen=!1,t&&t.container&&(t.container instanceof e.window.HTMLElement?this._container=t.container:e.warnOnce("Full screen control 'container' must be a DOM element.")),e.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in e.window.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in e.window.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=a("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,e.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!e.window.document.fullscreenEnabled&&!e.window.document.webkitFullscreenEnabled)}_setupUI(){const t=this._fullscreenButton=a("button","mapboxgl-ctrl-fullscreen",this._controlContainer);a("span","mapboxgl-ctrl-icon",t).setAttribute("aria-hidden","true"),t.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),e.window.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",e)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(e.window.document.fullscreenElement||e.window.document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?e.window.document.exitFullscreen?e.window.document.exitFullscreen():e.window.document.webkitCancelFullScreen&&e.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends e.Evented{constructor(t){super(),this.options=e.extend(Object.create(ra),t),e.bindAll(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(t&&t.className?t.className.trim().split(/\s+/):[])}addTo(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&t.on("preclick",this._onClose),this.options.closeOnMove&&t.on("move",this._onClose),t.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(t.on("mousemove",this._onMouseEvent),t.on("mouseup",this._onMouseEvent),t._canvasContainer.classList.add("mapboxgl-track-pointer")):t.on("move",this._update),this.fire(new e.Event("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const t=this._map;return t&&(t.off("move",this._update),t.off("move",this._onClose),t.off("preclick",this._onClose),t.off("click",this._onClose),t.off("remove",this.remove),t.off("mousemove",this._onMouseEvent),t.off("mouseup",this._onMouseEvent),t.off("drag",this._onMouseEvent),this._map=void 0),this.fire(new e.Event("close")),this}getLngLat(){return this._lngLat}setLngLat(t){this._lngLat=e.LngLat.convert(t),this._pos=null,this._trackPointer=!1,this._update();const n=this._map;return n&&(n.on("move",this._update),n.off("mousemove",this._onMouseEvent),n._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const e=this._map;return e&&(e.off("move",this._update),e.on("mousemove",this._onMouseEvent),e.on("drag",this._onMouseEvent),e._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(t){return this.setDOMContent(e.window.document.createTextNode(t))}setHTML(t){const n=e.window.document.createDocumentFragment(),i=e.window.document.createElement("body");let r;for(i.innerHTML=t;r=i.firstChild,r;)n.appendChild(r);return this.setDOMContent(n)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){let t=this._content;if(t)for(;t.hasChildNodes();)t.firstChild&&t.removeChild(t.firstChild);else t=this._content=a("div","mapboxgl-popup-content",this._container||void 0);if(t.appendChild(e),this.options.closeButton){const e=this._closeButton=a("button","mapboxgl-popup-close-button",t);e.type="button",e.setAttribute("aria-label","Close popup"),e.setAttribute("aria-hidden","true"),e.innerHTML="&#215;",e.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(e){return this._classList.add(e),this._updateClassList(),this}removeClassName(e){return this._classList.delete(e),this._updateClassList(),this}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){let t;return this._classList.delete(e)?t=!1:(this._classList.add(e),t=!0),this._updateClassList(),t}_onMouseEvent(e){this._update(e.point)}_getAnchor(e){if(this.options.anchor)return this.options.anchor;const t=this._map,n=this._container,i=this._pos;if(!t||!n||!i)return"bottom";const r=n.offsetWidth,a=n.offsetHeight,o=i.x<r/2,s=i.x>t.transform.width-r/2;if(i.y+e<a)return o?"top-left":s?"top-right":"top";if(i.y>t.transform.height-a){if(o)return"bottom-left";if(s)return"bottom-right"}return o?"left":s?"right":"bottom"}_updateClassList(){const e=this._container;if(!e)return;const t=[...this._classList];t.push("mapboxgl-popup"),this._anchor&&t.push("mapboxgl-popup-anchor-"+this._anchor),this._trackPointer&&t.push("mapboxgl-popup-track-pointer"),e.className=t.join(" ")}_update(e){const t=this._map,n=this._content;if(!t||!this._lngLat&&!this._trackPointer||!n)return;let i=this._container;if(i||(i=this._container=a("div","mapboxgl-popup",t.getContainer()),this._tip=a("div","mapboxgl-popup-tip",i),i.appendChild(n)),this.options.maxWidth&&i.style.maxWidth!==this.options.maxWidth&&(i.style.maxWidth=this.options.maxWidth),t.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Vr(this._lngLat,this._pos,t.transform)),!this._trackPointer||e){const n=this._pos=this._trackPointer&&e?e:t.project(this._lngLat),i=oa(this.options.offset),r=this._anchor=this._getAnchor(i.y),a=oa(this.options.offset,r),o=n.add(a).round();t._requestDomTask(()=>{this._container&&r&&(this._container.style.transform=`${Wr[r]} translate(${o.x}px,${o.y}px)`)})}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const e=this._container.querySelector(aa);e&&e.focus()}_onClose(){this.remove()}_setOpacity(e){this._content&&(this._content.style.opacity=e),this._tip&&(this._tip.style.opacity=e)}},Marker:qr,Style:Xt,LngLat:e.LngLat,LngLatBounds:e.LngLatBounds,Point:e.pointGeometry,MercatorCoordinate:e.MercatorCoordinate,FreeCameraOptions:Mi,Evented:e.Evented,config:e.config,prewarm:function(){Fe().acquire(De)},clearPrewarmedResources:function(){const e=ze;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(De),ze=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return e.config.ACCESS_TOKEN},set accessToken(t){e.config.ACCESS_TOKEN=t},get baseApiUrl(){return e.config.API_URL},set baseApiUrl(t){e.config.API_URL=t},get workerCount(){return Pe.workerCount},set workerCount(e){Pe.workerCount=e},get maxParallelImageRequests(){return e.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){e.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage(t){e.clearTileCache(t)},workerUrl:"",workerClass:null,setNow:e.exported.setNow,restoreNow:e.exported.restoreNow};return sa})),n}()},1675:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var i={latitude:24.430599756,longitude:54.33820719,zoom:10}},1682:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(0),r=n.n(i),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";switch(e){case"listingIcon":return r.a.createElement("svg",{className:t,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}
2,r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.33301 3.99967C1.33301 3.63148 1.63148 3.33301 1.99967 3.33301H2.00634C2.37453 3.33301 2.67301 3.63148 2.67301 3.99967C2.67301 4.36786 2.37453 4.66634 2.00634 4.66634H1.99967C1.63148 4.66634 1.33301 4.36786 1.33301 3.99967ZM4.66634 3.99967C4.66634 3.63148 4.96482 3.33301 5.33301 3.33301H13.9997C14.3679 3.33301 14.6663 3.63148 14.6663 3.99967C14.6663 4.36786 14.3679 4.66634 13.9997 4.66634H5.33301C4.96482 4.66634 4.66634 4.36786 4.66634 3.99967ZM1.33301 7.99967C1.33301 7.63148 1.63148 7.33301 1.99967 7.33301H2.00634C2.37453 7.33301 2.67301 7.63148 2.67301 7.99967C2.67301 8.36786 2.37453 8.66634 2.00634 8.66634H1.99967C1.63148 8.66634 1.33301 8.36786 1.33301 7.99967ZM4.66634 7.99967C4.66634 7.63148 4.96482 7.33301 5.33301 7.33301H13.9997C14.3679 7.33301 14.6663 7.63148 14.6663 7.99967C14.6663 8.36786 14.3679 8.66634 13.9997 8.66634H5.33301C4.96482 8.66634 4.66634 8.36786 4.66634 7.99967ZM1.33301 11.9997C1.33301 11.6315 1.63148 11.333 1.99967 11.333H2.00634C2.37453 11.333 2.67301 11.6315 2.67301 11.9997C2.67301 12.3679 2.37453 12.6663 2.00634 12.6663H1.99967C1.63148 12.6663 1.33301 12.3679 1.33301 11.9997ZM4.66634 11.9997C4.66634 11.6315 4.96482 11.333 5.33301 11.333H13.9997C14.3679 11.333 14.6663 11.6315 14.6663 11.9997C14.6663 12.3679 14.3679 12.6663 13.9997 12.6663H5.33301C4.96482 12.6663 4.66634 12.3679 4.66634 11.9997Z",fill:"#00605F"}));case"chevronDown":return r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},r.a.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.8536 3.64645C11.0488 3.84171 11.0488 4.15829 10.8536 4.35355L6.35355 8.85355C6.15829 9.04882 5.84171 9.04882 5.64645 8.85355L1.14645 4.35355C0.951184 4.15829 0.951184 3.84171 1.14645 3.64645C1.34171 3.45118 1.65829 3.45118 1.85355 3.64645L6 7.79289L10.1464 3.64645C10.3417 3.45118 10.6583 3.45118 10.8536 3.64645Z",fill:"#00605F"}));case"filterIcon":return r.a.createElement("svg",{className:t,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.66699 4.66667C6.66699 4.29848 6.96547 4 7.33366 4H13.3337C13.7018 4 14.0003 4.29848 14.0003 4.66667C14.0003 5.03486 13.7018 5.33333 13.3337 5.33333H7.33366C6.96547 5.33333 6.66699 5.03486 6.66699 4.66667Z",fill:"white"}),r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.66699 11.3337C2.66699 10.9655 2.96547 10.667 3.33366 10.667H9.33366C9.70185 10.667 10.0003 10.9655 10.0003 11.3337C10.0003 11.7018 9.70185 12.0003 9.33366 12.0003H3.33366C2.96547 12.0003 2.66699 11.7018 2.66699 11.3337Z",fill:"white"}),r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3337 10.0003C10.5973 10.0003 10.0003 10.5973 10.0003 11.3337C10.0003 12.07 10.5973 12.667 11.3337 12.667C12.07 12.667 12.667 12.07 12.667 11.3337C12.667 10.5973 12.07 10.0003 11.3337 10.0003ZM8.66699 11.3337C8.66699 9.8609 9.8609 8.66699 11.3337 8.66699C12.8064 8.66699 14.0003 9.8609 14.0003 11.3337C14.0003 12.8064 12.8064 14.0003 11.3337 14.0003C9.8609 14.0003 8.66699 12.8064 8.66699 11.3337Z",fill:"white"}),r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.66667 3.33333C3.93029 3.33333 3.33333 3.93029 3.33333 4.66667C3.33333 5.40305 3.93029 6 4.66667 6C5.40305 6 6 5.40305 6 4.66667C6 3.93029 5.40305 3.33333 4.66667 3.33333ZM2 4.66667C2 3.19391 3.19391 2 4.66667 2C6.13943 2 7.33333 3.19391 7.33333 4.66667C7.33333 6.13943 6.13943 7.33333 4.66667 7.33333C3.19391 7.33333 2 6.13943 2 4.66667Z",fill:"white"}));case"filterCloseIcon":return r.a.createElement("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.29289 3.29289C3.68342 2.90237 4.31658 2.90237 4.70711 3.29289L12 10.5858L19.2929 3.29289C19.6834 2.90237 20.3166 2.90237 20.7071 3.29289C21.0976 3.68342 21.0976 4.31658 20.7071 4.70711L13.4142 12L20.7071 19.2929C21.0976 19.6834 21.0976 20.3166 20.7071 20.7071C20.3166 21.0976 19.6834 21.0976 19.2929 20.7071L12 13.4142L4.70711 20.7071C4.31658 21.0976 3.68342 21.0976 3.29289 20.7071C2.90237 20.3166 2.90237 19.6834 3.29289 19.2929L10.5858 12L3.29289 4.70711C2.90237 4.31658 2.90237 3.68342 3.29289 3.29289Z",fill:"#00605F"}));case"plusIcon":return r.a.createElement("svg",{className:t,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"}
2,r.a.createElement("path",{d:"M8 1.33301C8.36819 1.33301 8.66699 1.63181 8.66699 2V7.33301H14C14.3682 7.33301 14.667 7.63181 14.667 8C14.667 8.36819 14.3682 8.66699 14 8.66699H8.66699V14C8.66699 14.3682 8.36819 14.667 8 14.667C7.63181 14.667 7.33301 14.3682 7.33301 14V8.66699H2C1.63181 8.66699 1.33301 8.36819 1.33301 8C1.33301 7.63181 1.63181 7.33301 2 7.33301H7.33301V2C7.33301 1.63181 7.63181 1.33301 8 1.33301Z",fill:"#00605F"}));case"minusIcon":return r.a.createElement("svg",{className:t,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.33325 7.99967C1.33325 7.63148 1.63173 7.33301 1.99992 7.33301H13.9999C14.3681 7.33301 14.6666 7.63148 14.6666 7.99967C14.6666 8.36786 14.3681 8.66634 13.9999 8.66634H1.99992C1.63173 8.66634 1.33325 8.36786 1.33325 7.99967Z",fill:"#00605F"}));case"plus":return r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},r.a.createElement("path",{d:"M10 1.66699C10.4602 1.66699 10.833 2.03976 10.833 2.5V9.16699H17.5C17.9602 9.16699 18.333 9.53976 18.333 10C18.333 10.4602 17.9602 10.833 17.5 10.833H10.833V17.5C10.833 17.9602 10.4602 18.333 10 18.333C9.53976 18.333 9.16699 17.9602 9.16699 17.5V10.833H2.5C2.03976 10.833 1.66699 10.4602 1.66699 10C1.66699 9.53976 2.03976 9.16699 2.5 9.16699H9.16699V2.5C9.16699 2.03976 9.53976 1.66699 10 1.66699Z",fill:"black"}));case"minus":return r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.5 10C2.5 9.53978 2.8731 9.16669 3.33333 9.16669H16.6667C17.1269 9.16669 17.5 9.53978 17.5 10C17.5 10.4603 17.1269 10.8334 16.6667 10.8334H3.33333C2.8731 10.8334 2.5 10.4603 2.5 10Z",fill:"black"}));case"mapIcon":return r.a.createElement("svg",{className:t,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99916 0.33301L8.00068 0.333008C9.63541 0.334864 11.2027 0.98508 12.3586 2.14101C13.5145 3.29694 14.1647 4.86419 14.1666 6.49892V6.49968C14.1666 8.67006 13.1634 10.8991 11.3786 12.9521C10.576 13.8805 9.67261 14.7167 8.68515 15.4455C8.68074 15.4487 8.67628 15.4519 8.67179 15.4551C8.47563 15.5925 8.24193 15.6662 8.00242 15.6662C7.76291 15.6662 7.52921 15.5925 7.33305 15.4551L7.32026 15.4459C6.33091 14.7174 5.42572 13.8811 4.62145 12.9523C2.83355 10.8988 1.83325 8.66968 1.83325 6.49968L1.83325 6.49892C1.83511 4.86419 2.48532 3.29694 3.64125 2.14101C4.79718 0.98508 6.36443 0.334864 7.99916 0.33301ZM7.99992 1.66634C6.71856 1.668 5.49014 2.17775 4.58406 3.08382C3.6779 3.98998 3.16814 5.21855 3.16659 6.50005C3.1667 8.25467 3.97989 10.1851 5.62769 12.0775L5.62891 12.0789C6.33902 12.899 7.13468 13.6408 8.00229 14.2916C8.86809 13.6406 9.66203 12.899 10.3706 12.0793L10.3718 12.0779C12.0178 10.1849 12.8332 8.25422 12.8333 6.49989C12.8317 5.21845 12.3219 3.98995 11.4158 3.08382C10.5097 2.17775 9.28128 1.668 7.99992 1.66634ZM7.99992 5.33301C7.26354 5.33301 6.66659 5.92996 6.66659 6.66634C6.66659 7.40272 7.26354 7.99968 7.99992 7.99968C8.7363 7.99968 9.33325 7.40272 9.33325 6.66634C9.33325 5.92996 8.7363 5.33301 7.99992 5.33301ZM5.33325 6.66634C5.33325 5.19358 6.52716 3.99968 7.99992 3.99968C9.47268 3.99968 10.6666 5.19358 10.6666 6.66634C10.6666 8.1391 9.47268 9.33301 7.99992 9.33301C6.52716 9.33301 5.33325 8.1391 5.33325 6.66634Z",fill:"#00605F"}));case"favoriteIcon":return r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",className:t},r.a.createElement("defs",null,r.a.createElement("clipPath",{id:"bgblurClip",clipPathUnits:"userSpaceOnUse"},r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 1.97371C5.42054 1.49982 4.72322 1.16178 4.00984 1.0448C3.13337 0.901079 2.2103 1.09179 1.50305 1.8041C0.165649 3.15108 0.165649 5.3335 1.50305 6.68048L5.64519 10.8523C5.73906 10.9468 5.86677 11 6 11C6.13323 11 6.26094 10.9468 6.35481 10.8523L10.4969 6.68048C11.8344 5.3335 11.8344 3.15108 10.4969 1.8041C9.7897 1.09179 8.86663 0.901079 7.99016 1.0448C7.27678 1.16178 6.57946 1.49982 6 1.97371Z"}))),r.a.createElement("foreignObject",{x:"-9.5",y:"-9",width:"31",height:"30"},r.a.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",style:{backdropFilter:"blur(5px)",WebkitBackdropFilter:"blur(5px)",clipPath:"url(#bgblurClip)",height:"100%",width:"100%"}})),r.a.createElement("path",{fill:"#00605F",fillRule:"evenodd",clipRule:"evenodd",d:"M6 1.97371C5.42054 1.49982 4.72322 1.16178 4.00984 1.0448C3.13337 0.901079 2.2103 1.09179 1.50305 1.8041C0.165649 3.15108 0.165649 5.3335 1.50305 6.68048L5.64519 10.8523C5.73906 10.9468 5.86677 11 6 11C6.13323 11 6.26094 10.9468 6.35481 10.8523L10.4969 6.68048C11.8344 5.3335 11.8344 3.15108 10.4969 1.8041C9.7897 1.09179 8.86663 0.901079 7.99016 1.0448C7.27678 1.16178 6.57946 1.49982 6 1.97371Z"}));case"inItineraryIcon":return r.a.createElement("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"}
2,r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6036 3.14645C10.7988 3.34171 10.7988 3.65829 10.6036 3.85355L5.10355 9.35355C4.90829 9.54882 4.59171 9.54882 4.39645 9.35355L1.64645 6.60355C1.45118 6.40829 1.45118 6.09171 1.64645 5.89645C1.84171 5.70118 2.15829 5.70118 2.35355 5.89645L4.75 8.29289L9.89645 3.14645C10.0917 2.95118 10.4083 2.95118 10.6036 3.14645Z",fill:"white"}));case"triangleIcon":return r.a.createElement("svg",{className:t,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"6",viewBox:"0 0 12 6",fill:"none"},r.a.createElement("path",{d:"M12 0H0L6 6L12 0Z",fill:"white"}));case"stickyButtonIcon":return r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"},r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 4.66667C2 4.29848 2.29848 4 2.66667 4H13.3333C13.7015 4 14 4.29848 14 4.66667C14 5.03486 13.7015 5.33333 13.3333 5.33333H2.66667C2.29848 5.33333 2 5.03486 2 4.66667Z",fill:"#00605F"}),r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 8C4 7.63181 4.29848 7.33333 4.66667 7.33333H11.3333C11.7015 7.33333 12 7.63181 12 8C12 8.36819 11.7015 8.66667 11.3333 8.66667H4.66667C4.29848 8.66667 4 8.36819 4 8Z",fill:"#00605F"}),r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.66667 11.3333C6.66667 10.9651 6.96514 10.6667 7.33333 10.6667H9.33333C9.70152 10.6667 10 10.9651 10 11.3333C10 11.7015 9.70152 12 9.33333 12H7.33333C6.96514 12 6.66667 11.7015 6.66667 11.3333Z",fill:"#00605F"}));case"mapMarker":return r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"36",viewBox:"0 0 32 36",fill:"none"},r.a.createElement("path",{d:"M16 1.25C24.1183 1.25 30.75 7.55875 30.75 15.4922C30.7499 20.486 28.2499 25.2795 25.2363 28.7988C23.724 30.5649 22.0605 32.0372 20.4727 33.0732C18.9079 34.0942 17.3279 34.75 16 34.75C14.6721 34.75 13.0921 34.0942 11.5273 33.0732C9.9395 32.0372 8.27602 30.5649 6.76367 28.7988C3.7501 25.2795 1.2501 20.486 1.25 15.4922C1.25 7.55875 7.88167 1.25 16 1.25Z",fill:"#00605F",stroke:"white",strokeWidth:"1.5"}),r.a.createElement("path",{d:"M20 16C20 18.2091 18.2091 20 16 20C13.7909 20 12 18.2091 12 16C12 13.7909 13.7909 12 16 12C18.2091 12 20 13.7909 20 16Z",fill:"white"}));case"spot":return r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13",fill:"none"},r.a.createElement("g",{clipPath:"url(#clip0_11211_11384)"},r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.18311 1.62146C8.63082 1.62146 8.18311 2.06918 8.18311 2.62146C8.18311 3.17374 8.63082 3.62146 9.18311 3.62146C9.73539 3.62146 10.1831 3.17374 10.1831 2.62146C10.1831 2.06918 9.73539 1.62146 9.18311 1.62146ZM7.24611 2.12146C7.46814 1.25885 8.25119 0.62146 9.18311 0.62146C10.2877 0.62146 11.1831 1.51689 11.1831 2.62146C11.1831 3.72603 10.2877 4.62146 9.18311 4.62146C8.25119 4.62146 7.46814 3.98407 7.24611 3.12146H4.43311C4.10158 3.12146 3.78364 3.25316 3.54922 3.48758C3.3148 3.722 3.18311 4.03994 3.18311 4.37146C3.18311 4.70298 3.3148 5.02092 3.54922 5.25534C3.78364 5.48976 4.10158 5.62146 4.43311 5.62146H8.93311C9.52984 5.62146 10.1021 5.85851 10.5241 6.28047C10.9461 6.70243 11.1831 7.27472 11.1831 7.87146C11.1831 8.4682 10.9461 9.04049 10.5241 9.46245C10.1021 9.88441 9.52984 10.1215 8.93311 10.1215H6.1201C5.89808 10.9841 5.11503 11.6215 4.18311 11.6215C3.07854 11.6215 2.18311 10.726 2.18311 9.62146C2.18311 8.51689 3.07854 7.62146 4.18311 7.62146C5.11503 7.62146 5.89808 8.25885 6.1201 9.12146H8.93311C9.26463 9.12146 9.58257 8.98977 9.81699 8.75534C10.0514 8.52092 10.1831 8.20298 10.1831 7.87146C10.1831 7.53994 10.0514 7.222 9.81699 6.98758C9.58257 6.75316 9.26463 6.62146 8.93311 6.62146H4.43311C3.83637 6.62146 3.26407 6.38441 2.84212 5.96245C2.42016 5.54049 2.18311 4.9682 2.18311 4.37146C2.18311 3.77472 2.42016 3.20243 2.84212 2.78047C3.26407 2.35851 3.83637 2.12146 4.43311 2.12146H7.24611ZM4.18311 8.62146C3.63082 8.62146 3.18311 9.06918 3.18311 9.62146C3.18311 10.1737 3.63082 10.6215 4.18311 10.6215C4.73539 10.6215 5.18311 10.1737 5.18311 9.62146C5.18311 9.06918 4.73539 8.62146 4.18311 8.62146Z",fill:"#565A5C"})),r.a.createElement("defs",null,r.a.createElement("clipPath",{id:"clip0_11211_11384"}
2,r.a.createElement("rect",{width:"12",height:"12",fill:"white",transform:"translate(0.683105 0.12146)"}))));case"date":return r.a.createElement("svg",{width:"10",height:"11",viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.22203 0.408936C3.47056 0.408936 3.67203 0.610407 3.67203 0.858936V1.30894H6.32758V0.858936C6.32758 0.610407 6.52905 0.408936 6.77758 0.408936C7.02611 0.408936 7.22758 0.610407 7.22758 0.858936V1.30894H8.11092C8.85562 1.30894 9.4498 1.91864 9.4498 2.65894V8.95893C9.4498 9.69923 8.85562 10.3089 8.11092 10.3089H1.88869C1.14399 10.3089 0.549805 9.69923 0.549805 8.95893V2.65894C0.549805 1.91864 1.14399 1.30894 1.88869 1.30894H2.77203V0.858936C2.77203 0.610407 2.9735 0.408936 3.22203 0.408936ZM2.77203 2.20894H1.88869C1.65156 2.20894 1.4498 2.40512 1.4498 2.65894V4.00894H8.5498V2.65894C8.5498 2.40512 8.34805 2.20894 8.11092 2.20894H7.22758V2.65894C7.22758 2.90746 7.02611 3.10894 6.77758 3.10894C6.52905 3.10894 6.32758 2.90746 6.32758 2.65894V2.20894H3.67203V2.65894C3.67203 2.90746 3.47056 3.10894 3.22203 3.10894C2.9735 3.10894 2.77203 2.90746 2.77203 2.65894V2.20894ZM8.5498 4.90894H1.4498V8.95893C1.4498 9.21275 1.65156 9.40894 1.88869 9.40894H8.11092C8.34805 9.40894 8.5498 9.21275 8.5498 8.95893V4.90894Z",fill:"#565A5C"}));default:return r.a.createElement(r.a.Fragment,null)}}},1690:function(e,t,n){"use strict";var i=n(3),r=n(0),a=n.n(r),o=n(84),s=n(16),c=n.n(s),l=n(1541),u=n(352),d=n(2),p=n(865),h=n(1),m=Object(p.a)((function(e){var t,n=e.mixins.marginLR;return{pagesLinkSection:Object(d.a)({display:"flex",flexDirection:"column"},e.breakpoints.up("lg"),{flexDirection:"row",flexWrap:"wrap"}),subTitle:{"& h2":Object(d.a)({marginTop:Object(h.p)(48),marginBottom:Object(h.p)(40)},e.breakpoints.down("md"),{marginTop:Object(h.p)(28),marginBottom:Object(h.p)(28)})},pageLinks:(t={color:e.mixins.AbuDhabiOrange(),marginBottom:Object(h.p)(12),flexBasis:"100%"},Object(d.a)(t,e.breakpoints.up("lg"),{flexBasis:"50%","&:hover":{color:e.mixins.AbuDhabiOrange(500),"& .MuiAvatar-root":{backgroundColor:e.mixins.AbuDhabiOrange(),"& .animateIcon":{animationName:"$arrowMove",animationDuration:".5s",animationIterationCount:"1"}},"& .MuiSvgIcon-root":{color:e.mixins.White()}}}),Object(d.a)(t,"& .MuiAvatar-root",Object(i.a)({width:Object(h.p)(32),height:Object(h.p)(32)},n(0,Object(h.p)(8)))),Object(d.a)(t,"& .MuiSvgIcon-root",{color:e.mixins.AbuDhabiOrange(),marginTop:2,width:Object(h.p)(20),height:Object(h.p)(20)}),t),"@keyframes arrowMove":{"0%":{transform:"translateX(0)"},"50%":{transform:"translateX(".concat(e.mixins.translateX(130),"%)")},"51%":{transform:"translateX(".concat(e.mixins.translateX(-130),"%)")},"100%":{transform:"translateX(0)"}}}})),f=n(31),g=n(1615),b=n(105),v=n(119),y=Object(r.forwardRef)((function(e,t){var n=e.popularSearch,s=e.pageName,d=e.componentName,p=m(),h=n&&n.fields,y=h.listItems,x=h.title,_=function(e,t){!function(e){var t=Object(i.a)(Object(i.a)({},c()(v.a,"pageBodyInteraction.arrowClick")),{label:Object(b.a)([s,d,"".concat(x&&x.value," - ").concat(e)])});Object(b.c)(t)}(c()(t,"value.text",""))},w=Object(r.useRef)(null),O=Object(r.useRef)(null);Object(r.useImperativeHandle)(t,(function(){return{popTitleElem:w,popLinksWrapper:O}}));return a.a.createElement(l.a,{item:!0},x&&a.a.createElement(f.a,{className:p.subTitle,variant:"h5Bold",component:"h2",noWrap:!0,ref:w,animateSettings:{selfTrigger:!1,willAnimate:!0,rotateReversed:!0,duration:"300ms"}},a.a.createElement(o.Text,{field:x})),a.a.createElement(l.a,{item:!0,className:p.pagesLinkSection,ref:O},y&&y.length>0&&function(e){return e.map((function(e,t){var n=(e.fields||"").cta,i=c()(n,"value.text","");return i?a.a.createElement(u.a,{key:t,className:p.pageLinks,link:n,onClick:function(e){return _(0,n)}},a.a.createElement(g.a,{iconType:"ArrowForwardSharpIcon",iconWithCircle:!1,isAnimate:!0},a.a.createElement(f.a,{component:"div",variant:"body2Bold",animateSettings:{selfTrigger:!1,willAnimate:!1,duration:"250ms"}},a.a.createElement(o.Text,{field:{value:i}})))):null}))}(y)))}));y.displayName="PopularSearch";t.a=y},1694:function(e,t,n){(function(t){var n=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,l=s||c||Function("return this")(),u=Object.prototype.toString,d=Math.max,p=Math.min,h=function(){return l.Date.now()};function m(e,t,n){var i,r,a,o,s,c,l=0,u=!1,m=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=i,a=r;return i=r=void 0,l=t,o=e.apply(a,n)}function y(e){return l=e,s=setTimeout(_,t),u?v(e):o}function x(e){var n=e-c;return void 0===c||n>=t||n<0||m&&e-l>=a}function _(){var e=h();if(x(e))return w(e);
2s=setTimeout(_,function(e){var n=t-(e-c);return m?p(n,a-(e-l)):n}(e))}function w(e){return s=void 0,b&&i?v(e):(i=r=void 0,o)}function O(){var e=h(),n=x(e);if(i=arguments,r=this,c=e,n){if(void 0===s)return y(c);if(m)return s=setTimeout(_,t),v(c)}return void 0===s&&(s=setTimeout(_,t)),o}return t=g(t)||0,f(n)&&(u=!!n.leading,a=(m="maxWait"in n)?d(g(n.maxWait)||0,t):a,b="trailing"in n?!!n.trailing:b),O.cancel=function(){void 0!==s&&clearTimeout(s),l=0,i=c=r=s=void 0},O.flush=function(){return void 0===s?o:w(h())},O}function f(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(f(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=f(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=r.test(e);return s||a.test(e)?o(e.slice(2),s?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return f(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),m(e,t,{leading:i,maxWait:t,trailing:r})}}).call(this,n(211))},1695:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o}));var i=n(0),r=n.n(i).a.createContext({}),a=r.Provider,o=r.Consumer},1700:function(e,t,n){"use strict";var i=n(2),r=n(3),a=n(0),o=n.n(a),s=n(20),c=n(84),l=n(120),u=n(5),d=n(31),p=n(105),h=n(119),m=n(99),f=n(243),g=n(865),b=Object(g.a)((function(e){var t;return{overlay:{overflow:"hidden",position:"relative",transition:"all 1s ease",height:"100%",backgroundColor:function(e){return e.bgColor},borderBottom:function(e){return"4px solid ".concat(e.stripColor)},"& .img-to-animate-wrapper":{transition:"all 1s ease"},"&:hover":{boxShadow:"0px 2px 20px 0px ".concat(e.mixins.Black(800)),"& :not(.img-to-animate-wrapper) picture, & .img-to-animate-wrapper":{transform:"scale3d(1.1, 1.1, 1.1)","&::before":{background:e.mixins.Black(800)}}},"&.disableHover":{boxShadow:"none"}},cardPicture:{transition:"all 1s ease",display:"flex",height:"100%"},cardPictureWithLink:{"&::before":{position:"absolute",width:"100%",height:"100%",content:"''",display:"inline",transition:"all 1s ease",background:e.mixins.Black(400),top:"0",left:"0",zIndex:"10"}},cardContentWrapper:(t={position:"absolute",left:0,right:0,top:"50%",transform:"translateY(-50%)",textAlign:"center",zIndex:"11",padding:"0 ".concat(e.spacing(4)),display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},Object(i.a)(t,e.breakpoints.up("lg"),{padding:"0 ".concat(e.spacing(7))}),Object(i.a)(t,e.breakpoints.down("md"),{padding:"0"}),t)}})),v=n(49),y=function(e){var t=e.media,n=e.pictureClass,g=e.title,y=e.titleClass,x=e.titleVariant,_=e.titleComponent,w=e.count,O=e.countVariant,j=e.countClass,C=e.segmentHeading,E=e.subTitle,T=e.background,k=e.strip,S=e.isPriceCard,A=e.pageName,I=e.componentName,M=e.disableHover,L=e.animate,B=void 0===L||L,R=Object(v.get)(T,"fields.colorCode.value"),D=Object(v.get)(k,"fields.colorCode.value"),P=b({bgColor:R,stripColor:D}),z=Object(a.useRef)(),F=Object(a.useRef)(),N=Object(a.useRef)(),U=Object(a.useRef)();return Object(a.useEffect)((function(){if(m.b.registerPlugin(f.ScrollTrigger),z.current){var e=!1;setTimeout((function(){m.b.timeline({scrollTrigger:{trigger:z.current,start:"top bottom",end:"+=".concat(.2*(window.androidHeight||window.innerHeight),"px bottom"),scrub:!0,once:!0,onUpdate:function(t){t.progress>.5?(F&&F.current&&F.current.animYPlay(),N&&N.current&&N.current.animYPlay(),U&&U.current&&U.current.animYPlay(),e=!0):e&&(F&&F.current&&F.current.animYReverse(),N&&N.current&&N.current.animYReverse(),U&&U.current&&U.current.animYReverse())}}})}),2e3)}}),[]),o.a.createElement(u.a,{onClick:function(){return function(){var e=Object(r.a)(Object(r.a)({},h.a.pageBodyInteraction.tileClick),{label:Object(p.a)([A,I,"".concat(C&&C.value," - ").concat(g&&g.value)])});Object(p.c)(e)}()},className:Object(s.a)(P.overlay,{disableHover:M},"AdcardContent"),ref:z},!S&&o.a.createElement(u.a,{className:n},o.a.createElement(l.a,{media:t,className:Object(s.a)(P.cardPicture,n,Object(i.a)({},P.cardPictureWithLink,!M)),alternateAltText:g&&g.value,isParalax:B})),o.a.createElement(u.a,{className:"".concat(P.cardContentWrapper," cardContentWrapper")},(null===g||void 0===g?void 0:g.value)&&o.a.createElement(d.a,{variant:x,component:_,classes:{root:"".concat(P.cardTitle," ").concat(y)},ref:F,animateSettings:{selfTrigger:!1,willAnimate:!0,animateType:"y"}},o.a.createElement(c.Text,{field:g})),(null===E||void 0===E?void 0:E.value)&&o.a.createElement(d.a,{variant:"body2",component:"div",classes:{root:"fare"},ref:N,animateSettings:{selfTrigger:!1,willAnimate:!0,animateType:"y"}},o.a.createElement(c.Text,{field:E})),w&&o.a.createElement(d.a,{variant:O,component:"span",classes:{root:"".concat(P.cardCount," ").concat(j)},ref:U,animateSettings:{selfTrigger:!1,willAnimate:!0,animateType:"y"}},o.a.createElement(c.Text,{field:w}))))};y.defaultProps={pictureClass:"",titleClass:"",titleVariant:"h4",titleComponent:"h3",countVariant:"body1",countClass:"",segmentHeading:""};t.a=y},1712:function(e,t,n){"use strict";(function(e,i){var r=n(0),a=n.n(r),o=n(22),s=n.n(o),c=n(60),l=n.n(c),u="undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{};
2function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function p(e,t){return e(t={exports:{}},t.exports),t.exports}var h=p((function(e,t){t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=0);return t},e.exports=t.default}));d(h);var m=p((function(e,t){t.__esModule=!0,t.default=function(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]="number"===typeof e[n]?e[n]:e[n].val);return t},e.exports=t.default}));d(m);var f=p((function(e,t){t.__esModule=!0,t.default=function(e,t,i,r,a,o,s){var c=i+(-a*(t-r)+-o*i)*e,l=t+c*e;if(Math.abs(c)<s&&Math.abs(l-r)<s)return n[0]=r,n[1]=0,n;return n[0]=l,n[1]=c,n};var n=[0,0];e.exports=t.default}));d(f);for(var g=p((function(e){(function(){var t,n,r;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof i&&null!==i&&i.hrtime?(e.exports=function(){return(t()-r)/1e6},n=i.hrtime,r=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})()):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(u)})),b=p((function(e){(function(){var t,n,r,a,o,s;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof i&&null!==i&&i.hrtime?(e.exports=function(){return(t()-o)/1e6},n=i.hrtime,a=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),s=1e9*i.uptime(),o=a-s):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(u)})),v="undefined"===typeof window?u:window,y=["moz","webkit"],x="AnimationFrame",_=v["request"+x],w=v["cancel"+x]||v["cancelRequest"+x],O=0;!_&&O<y.length;O++)_=v[y[O]+"Request"+x],w=v[y[O]+"Cancel"+x]||v[y[O]+"CancelRequest"+x];if(!_||!w){var j=0,C=0,E=[];_=function(e){if(0===E.length){var t=b(),n=Math.max(0,1e3/60-(t-j));j=n+t,setTimeout((function(){var e=E.slice(0);E.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(j)}catch(n){setTimeout((function(){throw n}),0)}}),Math.round(n))}return E.push({handle:++C,callback:e,cancelled:!1}),C},w=function(e){for(var t=0;t<E.length;t++)E[t].handle===e&&(E[t].cancelled=!0)}}var T=function(e){return _.call(v,e)};T.cancel=function(){w.apply(v,arguments)},T.polyfill=function(e){e||(e=v),e.requestAnimationFrame=_,e.cancelAnimationFrame=w};var k=p((function(e,t){t.__esModule=!0,t.default=function(e,t,n){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){if(0!==n[i])return!1;var r="number"===typeof t[i]?t[i]:t[i].val;if(e[i]!==r)return!1}return!0},e.exports=t.default}));d(k);var S=p((function(e,t){t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e){return e&&e.__esModule?e:{default:e}}var o=r(h),c=r(m),l=r(f),u=r(g),d=r(T),p=r(k),b=r(a.a),v=r(s.a),y=function(e){function t(i){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,i),this.wasAnimating=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyle=null,this.clearUnreadPropStyle=function(e){var t=!1,i=r.state,a=i.currentStyle,o=i.currentVelocity,s=i.lastIdealStyle,c=i.lastIdealVelocity;for(var l in e)if(Object.prototype.hasOwnProperty.call(e,l)){var u=e[l];"number"===typeof u&&(t||(t=!0,a=n({},a),o=n({},o),s=n({},s),c=n({},c)),a[l]=u,o[l]=0,s[l]=u,c[l]=0)}t&&r.setState({currentStyle:a,currentVelocity:o,lastIdealStyle:s,lastIdealVelocity:c})},this.startAnimationIfNecessary=function(){r.animationID=d.default((function(e){var t=r.props.style;if(p.default(r.state.currentStyle,t,r.state.currentVelocity))return r.wasAnimating&&r.props.onRest&&r.props.onRest(),r.animationID=null,r.wasAnimating=!1,void(r.accumulatedTime=0);r.wasAnimating=!0;var n=e||u.default(),i=n-r.prevTime;if(r.prevTime=n,r.accumulatedTime=r.accumulatedTime+i,r.accumulatedTime>1e3/60*10&&(r.accumulatedTime=0),0===r.accumulatedTime)return r.animationID=null,void r.startAnimationIfNecessary();var a=(r.accumulatedTime-Math.floor(r.accumulatedTime/(1e3/60))*(1e3/60))/(1e3/60),o=Math.floor(r.accumulatedTime/(1e3/60)),s={},c={},d={},h={};for(var m in t)if(Object.prototype.hasOwnProperty.call(t,m)){var f=t[m];
2if("number"===typeof f)d[m]=f,h[m]=0,s[m]=f,c[m]=0;else{for(var g=r.state.lastIdealStyle[m],b=r.state.lastIdealVelocity[m],v=0;v<o;v++){var y=l.default(1e3/60/1e3,g,b,f.val,f.stiffness,f.damping,f.precision);g=y[0],b=y[1]}var x=l.default(1e3/60/1e3,g,b,f.val,f.stiffness,f.damping,f.precision),_=x[0],w=x[1];d[m]=g+(_-g)*a,h[m]=b+(w-b)*a,s[m]=g,c[m]=b}}r.animationID=null,r.accumulatedTime-=o*(1e3/60),r.setState({currentStyle:d,currentVelocity:h,lastIdealStyle:s,lastIdealVelocity:c}),r.unreadPropStyle=null,r.startAnimationIfNecessary()}))},this.state=this.defaultState()}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"propTypes",value:{defaultStyle:v.default.objectOf(v.default.number),style:v.default.objectOf(v.default.oneOfType([v.default.number,v.default.object])).isRequired,children:v.default.func.isRequired,onRest:v.default.func},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyle,n=e.style,i=t||c.default(n),r=o.default(i);return{currentStyle:i,currentVelocity:r,lastIdealStyle:i,lastIdealVelocity:r}},t.prototype.componentDidMount=function(){this.prevTime=u.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyle&&this.clearUnreadPropStyle(this.unreadPropStyle),this.unreadPropStyle=e.style,null==this.animationID&&(this.prevTime=u.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(d.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyle);return e&&b.default.Children.only(e)},t}(b.default.Component);t.default=y,e.exports=t.default}));d(S);var A=p((function(e,t){t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function r(e){return e&&e.__esModule?e:{default:e}}var o=r(h),c=r(m),l=r(f),u=r(g),d=r(T),p=r(k),b=r(a.a),v=r(s.a);var y=function(e){function t(i){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,i),this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=r.state,i=t.currentStyles,a=t.currentVelocities,o=t.lastIdealStyles,s=t.lastIdealVelocities,c=!1,l=0;l<e.length;l++){var u=e[l],d=!1;for(var p in u)if(Object.prototype.hasOwnProperty.call(u,p)){var h=u[p];"number"===typeof h&&(d||(d=!0,c=!0,i[l]=n({},i[l]),a[l]=n({},a[l]),o[l]=n({},o[l]),s[l]=n({},s[l])),i[l][p]=h,a[l][p]=0,o[l][p]=h,s[l][p]=0)}}c&&r.setState({currentStyles:i,currentVelocities:a,lastIdealStyles:o,lastIdealVelocities:s})},this.startAnimationIfNecessary=function(){r.animationID=d.default((function(e){var t=r.props.styles(r.state.lastIdealStyles);if(function(e,t,n){for(var i=0;i<e.length;i++)if(!p.default(e[i],t[i],n[i]))return!1;return!0}(r.state.currentStyles,t,r.state.currentVelocities))return r.animationID=null,void(r.accumulatedTime=0);var n=e||u.default(),i=n-r.prevTime;if(r.prevTime=n,r.accumulatedTime=r.accumulatedTime+i,r.accumulatedTime>1e3/60*10&&(r.accumulatedTime=0),0===r.accumulatedTime)return r.animationID=null,void r.startAnimationIfNecessary();for(var a=(r.accumulatedTime-Math.floor(r.accumulatedTime/(1e3/60))*(1e3/60))/(1e3/60),o=Math.floor(r.accumulatedTime/(1e3/60)),s=[],c=[],d=[],h=[],m=0;m<t.length;m++){var f=t[m],g={},b={},v={},y={};for(var x in f)if(Object.prototype.hasOwnProperty.call(f,x)){var _=f[x];if("number"===typeof _)g[x]=_,b[x]=0,v[x]=_,y[x]=0;else{for(var w=r.state.lastIdealStyles[m][x],O=r.state.lastIdealVelocities[m][x],j=0;j<o;j++){var C=l.default(1e3/60/1e3,w,O,_.val,_.stiffness,_.damping,_.precision);w=C[0],O=C[1]}var E=l.default(1e3/60/1e3,w,O,_.val,_.stiffness,_.damping,_.precision),T=E[0],k=E[1];g[x]=w+(T-w)*a,b[x]=O+(k-O)*a,v[x]=w,y[x]=O}}d[m]=g,h[m]=b,s[m]=v,c[m]=y}r.animationID=null,r.accumulatedTime-=o*(1e3/60),r.setState({currentStyles:d,currentVelocities:h,lastIdealStyles:s,lastIdealVelocities:c}),r.unreadPropStyles=null,r.startAnimationIfNecessary()}))},this.state=this.defaultState()}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"propTypes",value:{defaultStyles:v.default.arrayOf(v.default.objectOf(v.default.number)),styles:v.default.func.isRequired,children:v.default.func.isRequired},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,n=e.styles,i=t||n().map(c.default),r=i.map((function(e){return o.default(e)}));return{currentStyles:i,currentVelocities:r,lastIdealStyles:i,lastIdealVelocities:r}},t.prototype.componentDidMount=function(){this.prevTime=u.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){null!=this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles),this.unreadPropStyles=e.styles(this.state.lastIdealStyles),null==this.animationID&&(this.prevTime=u.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){null!=this.animationID&&(d.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=this.props.children(this.state.currentStyles);return e&&b.default.Children.only(e)},t}(b.default.Component);t.default=y,e.exports=t.default}));d(A);var I=p((function(e,t){t.__esModule=!0,t.default=function(e,t,n){for(var i={},r=0;r<e.length;r++)i[e[r].key]=r;var a={};for(r=0;r<t.length;r++)a[t[r].key]=r;var o=[];for(r=0;r<t.length;r++)o[r]=t[r];for(r=0;r<e.length;r++)if(!Object.prototype.hasOwnProperty.call(a,e[r].key)){var s=n(r,e[r]);null!=s&&o.push(s)}return o.sort((function(e,n){var r=a[e.key],o=a[n.key],s=i[e.key],c=i[n.key];if(null!=r&&null!=o)return a[e.key]-a[n.key];if(null!=s&&null!=c)return i[e.key]-i[n.key];if(null!=r){for(var l=0;l<t.length;l++){var u=t[l].key;if(Object.prototype.hasOwnProperty.call(i,u)){if(r<a[u]&&c>i[u])return-1;if(r>a[u]&&c<i[u])return 1}}return 1}for(l=0;l<t.length;l++){u=t[l].key;if(Object.prototype.hasOwnProperty.call(i,u)){if(o<a[u]&&s>i[u])return 1;if(o>a[u]&&s<i[u])return-1}}return-1}))},e.exports=t.default}));d(I);var M=p((function(e,t){t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();
2function r(e){return e&&e.__esModule?e:{default:e}}var o=r(h),c=r(m),l=r(f),u=r(I),d=r(g),p=r(T),b=r(k),v=r(a.a),y=r(s.a);function x(e,t,n){var i=t;return null==i?e.map((function(e,t){return{key:e.key,data:e.data,style:n[t]}})):e.map((function(e,t){for(var r=0;r<i.length;r++)if(i[r].key===e.key)return{key:i[r].key,data:i[r].data,style:n[t]};return{key:e.key,data:e.data,style:n[t]}}))}function _(e,t,n,i,r,a,s,c,l){for(var d=u.default(i,r,(function(e,i){var r=t(i);return null==r||b.default(a[e],r,s[e])?(n({key:i.key,data:i.data}),null):{key:i.key,data:i.data,style:r}})),p=[],h=[],m=[],f=[],g=0;g<d.length;g++){for(var v=d[g],y=null,x=0;x<i.length;x++)if(i[x].key===v.key){y=x;break}if(null==y){var _=e(v);p[g]=_,m[g]=_;var w=o.default(v.style);h[g]=w,f[g]=w}else p[g]=a[y],m[g]=c[y],h[g]=s[y],f[g]=l[y]}return[d,p,h,m,f]}var w=function(e){function t(i){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.call(this,i),this.unmounting=!1,this.animationID=null,this.prevTime=0,this.accumulatedTime=0,this.unreadPropStyles=null,this.clearUnreadPropStyle=function(e){for(var t=_(r.props.willEnter,r.props.willLeave,r.props.didLeave,r.state.mergedPropsStyles,e,r.state.currentStyles,r.state.currentVelocities,r.state.lastIdealStyles,r.state.lastIdealVelocities),i=t[0],a=t[1],o=t[2],s=t[3],c=t[4],l=0;l<e.length;l++){var u=e[l].style,d=!1;for(var p in u)if(Object.prototype.hasOwnProperty.call(u,p)){var h=u[p];"number"===typeof h&&(d||(d=!0,a[l]=n({},a[l]),o[l]=n({},o[l]),s[l]=n({},s[l]),c[l]=n({},c[l]),i[l]={key:i[l].key,data:i[l].data,style:n({},i[l].style)}),a[l][p]=h,o[l][p]=0,s[l][p]=h,c[l][p]=0,i[l].style[p]=h)}}r.setState({currentStyles:a,currentVelocities:o,mergedPropsStyles:i,lastIdealStyles:s,lastIdealVelocities:c})},this.startAnimationIfNecessary=function(){r.unmounting||(r.animationID=p.default((function(e){if(!r.unmounting){var t=r.props.styles,n="function"===typeof t?t(x(r.state.mergedPropsStyles,r.unreadPropStyles,r.state.lastIdealStyles)):t;if(function(e,t,n,i){if(i.length!==t.length)return!1;for(var r=0;r<i.length;r++)if(i[r].key!==t[r].key)return!1;for(r=0;r<i.length;r++)if(!b.default(e[r],t[r].style,n[r]))return!1;return!0}(r.state.currentStyles,n,r.state.currentVelocities,r.state.mergedPropsStyles))return r.animationID=null,void(r.accumulatedTime=0);var i=e||d.default(),a=i-r.prevTime;if(r.prevTime=i,r.accumulatedTime=r.accumulatedTime+a,r.accumulatedTime>1e3/60*10&&(r.accumulatedTime=0),0===r.accumulatedTime)return r.animationID=null,void r.startAnimationIfNecessary();for(var o=(r.accumulatedTime-Math.floor(r.accumulatedTime/(1e3/60))*(1e3/60))/(1e3/60),s=Math.floor(r.accumulatedTime/(1e3/60)),c=_(r.props.willEnter,r.props.willLeave,r.props.didLeave,r.state.mergedPropsStyles,n,r.state.currentStyles,r.state.currentVelocities,r.state.lastIdealStyles,r.state.lastIdealVelocities),u=c[0],p=c[1],h=c[2],m=c[3],f=c[4],g=0;g<u.length;g++){var v=u[g].style,y={},w={},O={},j={};for(var C in v)if(Object.prototype.hasOwnProperty.call(v,C)){var E=v[C];if("number"===typeof E)y[C]=E,w[C]=0,O[C]=E,j[C]=0;else{for(var T=m[g][C],k=f[g][C],S=0;S<s;S++){var A=l.default(1e3/60/1e3,T,k,E.val,E.stiffness,E.damping,E.precision);T=A[0],k=A[1]}var I=l.default(1e3/60/1e3,T,k,E.val,E.stiffness,E.damping,E.precision),M=I[0],L=I[1];y[C]=T+(M-T)*o,w[C]=k+(L-k)*o,O[C]=T,j[C]=k}}m[g]=O,f[g]=j,p[g]=y,h[g]=w}r.animationID=null,r.accumulatedTime-=s*(1e3/60),r.setState({currentStyles:p,currentVelocities:h,lastIdealStyles:m,lastIdealVelocities:f,mergedPropsStyles:u}),r.unreadPropStyles=null,r.startAnimationIfNecessary()}})))},this.state=this.defaultState()}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"propTypes",value:{defaultStyles:y.default.arrayOf(y.default.shape({key:y.default.string.isRequired,data:y.default.any,style:y.default.objectOf(y.default.number).isRequired})),styles:y.default.oneOfType([y.default.func,y.default.arrayOf(y.default.shape({key:y.default.string.isRequired,data:y.default.any,style:y.default.objectOf(y.default.oneOfType([y.default.number,y.default.object])).isRequired}))]).isRequired,children:y.default.func.isRequired,willEnter:y.default.func,willLeave:y.default.func,didLeave:y.default.func},enumerable:!0},{key:"defaultProps",value:{willEnter:function(e){return c.default(e.style)}
2,willLeave:function(){return null},didLeave:function(){}},enumerable:!0}]),t.prototype.defaultState=function(){var e=this.props,t=e.defaultStyles,n=e.styles,i=e.willEnter,r=e.willLeave,a=e.didLeave,s="function"===typeof n?n(t):n,l=void 0;l=null==t?s:t.map((function(e){for(var t=0;t<s.length;t++)if(s[t].key===e.key)return s[t];return e}));var u=null==t?s.map((function(e){return c.default(e.style)})):t.map((function(e){return c.default(e.style)})),d=null==t?s.map((function(e){return o.default(e.style)})):t.map((function(e){return o.default(e.style)})),p=_(i,r,a,l,s,u,d,u,d),h=p[0];return{currentStyles:p[1],currentVelocities:p[2],lastIdealStyles:p[3],lastIdealVelocities:p[4],mergedPropsStyles:h}},t.prototype.componentDidMount=function(){this.prevTime=d.default(),this.startAnimationIfNecessary()},t.prototype.componentWillReceiveProps=function(e){this.unreadPropStyles&&this.clearUnreadPropStyle(this.unreadPropStyles);var t=e.styles;this.unreadPropStyles="function"===typeof t?t(x(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.lastIdealStyles)):t,null==this.animationID&&(this.prevTime=d.default(),this.startAnimationIfNecessary())},t.prototype.componentWillUnmount=function(){this.unmounting=!0,null!=this.animationID&&(p.default.cancel(this.animationID),this.animationID=null)},t.prototype.render=function(){var e=x(this.state.mergedPropsStyles,this.unreadPropStyles,this.state.currentStyles),t=this.props.children(e);return t&&v.default.Children.only(t)},t}(v.default.Component);t.default=w,e.exports=t.default}));d(M);var L=p((function(e,t){t.__esModule=!0,t.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},e.exports=t.default}));d(L);var B=p((function(e,t){t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};t.default=function(e,t){return n({},a,t,{val:e})};var i,r=(i=L)&&i.__esModule?i:{default:i},a=n({},r.default.noWobble,{precision:.01});e.exports=t.default}));d(B);var R=p((function(e,t){t.__esModule=!0,t.default=function(){0};e.exports=t.default}));d(R);var D=p((function(e,t){function n(e){return e&&e.__esModule?e.default:e}t.__esModule=!0,t.Motion=n(S),t.StaggeredMotion=n(A),t.TransitionMotion=n(M),t.spring=n(B),t.presets=n(L),t.stripStyle=n(m),t.reorderKeys=n(R)}));d(D);var P=D.Motion,z=(D.StaggeredMotion,D.TransitionMotion,D.spring),F=D.presets,N=(D.stripStyle,D.reorderKeys,function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}()),U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},V=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.componentDidUpdate=function(e){if(e.animValues!==n.props.animValues){var t=n.state.animValues;n.setState({animValues:t+n.props.animValues},n.calculate())}else n.calculate()},n.state={animValues:0},n.onScrollStart=n.onScrollStart.bind(n),n.resetMin=n.resetMin.bind(n),n.resetMax=n.resetMax.bind(n),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),N(t,[{key:"componentDidMount",value:function(){if(this.props.pageLock){var e=document.firstElementChild.className;document.firstElementChild.className=e+(e?" ":"")+"locked__"}l.a.findDOMNode(this.hScrollParent).addEventListener("wheel",this.onScrollStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.props.pageLock&&(document.firstElementChild.className=document.firstElementChild.className.replace(/ ?locked__/,"")),l.a.findDOMNode(this.hScrollParent).removeEventListener("wheel",this.onScrollStart)}},{key:"onScrollStart",value:function(e){var t=this;e.preventDefault();var n=e.deltaY?e.deltaY:e.deltaX,i=Math.floor(n),r=this.state.animValues,a=r+i,o=r-i;if(this.caniscroll()){window.requestAnimationFrame((function(){t.props.reverseScroll?t.setState({animValues:o}):t.setState({animValues:a})}))}}},{key:"shouldComponentUpdate",value:function(e,t){return(void 0===this.calculate.t
2imer||this.props.children!==e.children||this.state.animValues!==t.animValues||this.props.animValues!==e.animValues)&&(this.props.children!==e.children||!1!==this.caniscroll())}},{key:"caniscroll",value:function(){var e=l.a.findDOMNode(this.hScrollParent),t=e.getBoundingClientRect(),n=e.firstElementChild;return n.offsetLeft<t.left||n.offsetLeft+n.offsetWidth>t.width}},{key:"calculate",value:function(){var e=this;clearTimeout(this.calculate.timer),this.calculate.timer=setTimeout((function(){var t=l.a.findDOMNode(e.hScrollParent),n=t.lastElementChild.scrollWidth,i=t.offsetWidth,r=e.state.animValues,a=-(n-i);if(r>=1)e.resetMin();else if(r<=a){var o=a+1;e.resetMax(o)}}))}},{key:"resetMin",value:function(){this.setState({animValues:0})}},{key:"resetMax",value:function(e){this.setState({animValues:e})}},{key:"render",value:function(){var e=this,t=this.props,n=t.config,i=t.style,r=t.children,o=i.width,s=i.height,c=n||F.noWobble,l=U({height:s||"100%",width:o||"100%",overflow:"hidden",position:"relative"},i);return a.a.createElement("div",{ref:function(t){e.hScrollParent=t},style:l,className:"scroll-horizontal "+(this.props.className||"")},a.a.createElement(P,{style:{z:z(this.state.animValues,c)}},(function(e){var t={transform:"translate3d("+e.z+"px, 0,0)",display:"inline-flex",height:"100%",position:"absolute",willChange:"transform"};return a.a.createElement("div",{style:t},r)})))}}]),t}(r.Component);V.propTypes={reverseScroll:s.a.bool,pageLock:s.a.bool,config:s.a.object,style:s.a.object,className:s.a.string,children:s.a.array.isRequired,animValues:s.a.number},V.defaultProps={reverseScroll:!1,pageLock:!1,config:null,style:{width:"100%",height:"100%"},className:null,animValues:null},t.a=V}).call(this,n(211),n(305))},1713:function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"i",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return d})),n.d(t,"j",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"a",(function(){return m}));var i=n(239),r=function(e){return e},a=Object(i.a)(r,(function(e){return e.ExploreMapReducer.places})),o=(Object(i.a)(r,(function(e){return e.ExploreMapReducer.placesInView})),Object(i.a)(r,(function(e){return e.ExploreMapReducer.geoJsonData}))),s=Object(i.a)(r,(function(e){return e.ExploreMapReducer.selectedCategories})),c=Object(i.a)(r,(function(e){return e.ExploreMapReducer.completePlaces})),l=Object(i.a)(r,(function(e){return e.ExploreMapReducer.isCellReselected})),u=Object(i.a)(r,(function(e){return e.ExploreMapReducer.loading})),d=Object(i.a)(r,(function(e){return e.ExploreMapReducer.mapStep})),p=Object(i.a)(r,(function(e){return e.ExploreMapReducer.shouldMapZoom})),h=Object(i.a)(r,(function(e){return e.ExploreMapReducer.isMapPanning})),m=Object(i.a)(r,(function(e){return e.ExploreMapReducer.clearAllClick}))},1729:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOnSURBVHgB1ZrPTxNBFMffbFoO9VAOcAATaNM2QRKUoERNNILRM/wJejTGkzEeKX8J+heIFxO9CJGjv02QZNt024Mc4GAP7aGbtL7vuNOUsvTnzG77SZZuJ1v6vjPvvXkzU0EXkMvlNoUQG3y7xleCQqDRaHxnGxzLsnaTyeRrv2dEe4Nt22v8gR0KyegOQEi2XYjV+iafz2/xQx9p9IwHiXq9/qpQKGy1NjZHAMbzS5bGAG8ktnEvBbC/P2Jf26ExgkdjPZPJ7EkXYuO3aMzw4pREL71fqVTp5PSUyuUy1VyXqtWqbI/FYnSJr+mpKZqenqKgYRGbES9VnsNlQ+1cnpxSqWlwJyAmMTdH8/NzUlQQsBttYgS+sYhl1agMt/N5ed8vELJ8dYlmZ2YoABzB2aeh3sHww6OjgQxvZ3FhgRavLJBpIvhTYRf5/OWr9HNdoCOi0Shl0ikyiXVyckr7nw60Gq+AiL8c+Cax9g8OegrSQYArYmRNYpFhMAKILVMYFwB0JQY/AhEA451iiUwQiADw5/iYTBCYAGQ5lCS6idCQINfLWoiv6ERUtrk1l4pcgrSnULTpntwGFgCDUfvMzs5IEe1gAkMd9ePnr2YAm5hr+haAWmf1+ooU0A0IRGGHiRJAAMT4CR6UvmIAvfrw/npPxivwLOoiBWZ+nfQkAD127+4dura0NFDvQbj6nG436ipgMh6nB332ejuyqEv9L+p010YdBWBxgp7XsUBRVWlgAvCFqysr2gJOpVsEsc75wFcAcjX8XTdwR1DWOArnBMD41qyhExVHlaqhETBpPFA7FzrroqYA+LxJ4wHiABOhrIs0jAJiSc7E2EEw4fN+IA6q3hocGa4XYCjiBqKRxdQ9EkIE/xClQVColIxRePf+gyw3MCoTPDrYNHO9jTNlbLflbuT2rZtaa5NuxCfjzXsYh9XaMFhB7aIphpnR/QhsQaNAh8U0dlrgAsBljduOoQjAIkgXoQhQS1AdhCIAoNLVAQQ4FAIq/w+D4GNY
2i89i9ykkhp1A67zRgRHYpZCQ6+UhtlmEsN7IU0o+5ChQiGfDmI0Pf/c5IzfIefnieVIGMZ81PaYQQRV8g92pr5gQIitf1HvbtrN86hfqcSsKOKwVisWS79oZNRtm8lrN3X729EkWbWd+KzEKIhRy7eyVzMpwr+jcTqVSWfXcuR97eOfGEJGg0cKBq+N0vrVRXPS0J2SD02yi9Rg2YBy+9tiGt+l02jdb/gOKSIYmz+4g2gAAAABJRU5ErkJggg=="},1743:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAA8CAYAAAAUufjgAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAApJJREFUeNrsmYFtwjAQRQ1iAJiAMEGZoIQJgAkKG8AErScgTFA2gE5A6AJNJyBswAg9S0eFUjvxnR0HVZxkRUghfrk7/zs7Qjzsn1uL+8dP8TSFywjGEEZsuC3DcYSxfxbfl1oBAaoLlyWMFxgRcS4Ft4chATT3DghwCuwVRtdD5BIEvTgDotd2JWHkmvLiDCCzspvaFXAqv041wAlMkQPMMWd5EOEOnkJaZQvw5NYaEMN6CgR3XUBjXbhNId4FhBM41w4dUw6IqzUW4S1ClTCHuIHQ6mxwq5NFDy4bhhNFLxY9eGJUiNsqccbffUyTiAnZu4p4p1BbOQ+UqjLoqgJq3JoRFcWyLYZ4xNSvN1PJQm0bo4cpNtLl4JDqOZO4FiCVts2Izx7qAGNiziW2NwNkCpfUFZBinN7ugzMRF/DM+E8WEjCYcQH7zFIWDJBTqyeugJQciaoaTU1vOSU8P3UFVLbGiW22DO/cBdV2kIEutuyxRVdOLQLHP82CY6uV4gtmNwtiQgzrbxEAje2ZuhkVinnDyrIFwIVpFcs7kD5plBnsZLdNwhVPHVqaxI4wF0NbDnCDSqHGN0gaAFxRKolkNJkuloJj9taA2ErJpr1XevThuIliywq1WVgEOPJYsbsZbNX3NQJuqjpzm/PBumRHKyvkfhBlR4ZcGJyGNfEsO0ZZYQFinqxCe4/U8uMmPfMkK5l3QOqbc2XFCdCD7Ejqhp/8pclBdqxkxXnb6SA7rKrE3RdTZSfF9AgDyJAddk1nn80QZCehfDz0BmgpO859pROghexIzjdiJ5kxyM6XZsPPkhXfIb7KzqauZtfXAaaSndyHrNQCqNlk1b1VYOejOu1a+3xmp4YuORcPuyP7EWAAKZfRNcRqyTIAAAAASUVORK5CYII="},1747:function(e,t,n){(function(e,n){var i="[object Arguments]",r="[object Map]",a="[object Object]",o="[object Set]",s=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,l={};l["[object Float32Array]"]=l["[object Float64Array]"]=l["[object Int8Array]"]=l["[object Int16Array]"]=l["[object Int32Array]"]=l["[object Uint8Array]"]=l["[object Uint8ClampedArray]"]=l["[object Uint16Array]"]=l["[object Uint32Array]"]=!0,l[i]=l["[object Array]"]=l["[object ArrayBuffer]"]=l["[object Boolean]"]=l["[object DataView]"]=l["[object Date]"]=l["[object Error]"]=l["[object Function]"]=l[r]=l["[object Number]"]=l[a]=l["[object RegExp]"]=l[o]=l["[object String]"]=l["[object WeakMap]"]=!1;var u="object"==typeof e&&e&&e.Object===Object&&e,d="object"==typeof self&&self&&self.Object===Object&&self,p=u||d||Function("return this")(),h=t&&!t.nodeType&&t,m=h&&"object"==typeof n&&n&&!n.nodeType&&n,f=m&&m.exports===h,g=f&&u.process,b=function(){try{return g&&g.binding&&g.binding("util")}catch(e){}}(),v=b&&b.isTypedArray;function y(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function x(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function _(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var w,O,j=Array.prototype,C=Function.prototype,E=Object.prototype,T=p["__core-js_shared__"],k=C.toString,S=E.hasOwnProperty,A=function(){var e=/[^.]+$/.exec(T&&T.keys&&T.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),I=E.toString,M=RegExp("^"+k.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=f?p.Buffer:void 0,B=p.Symbol,R=p.Uint8Array,D=E.propertyIsEnumerable,P=j.splice,z=B?B.toStringTag:void 0,F=Object.getOwnPropertySymbols,N=L?L.isBuffer:void 0,U=(w=Object.keys,O=Object,function(e){return w(O(e))}),V=ge(p,"DataView"),W=ge(p,"Map"),q=ge(p,"Promise"),G=ge(p,"Set"),Z=ge(p,"WeakMap"),H=ge(Object,"create"),X=xe(V),K=xe(W),Y=xe(q),J=xe(G),Q=xe(Z),$=B?B.prototype:void 0,ee=$?$.valueOf:void 0;function te(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ne(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function ie(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function re(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ie;++t<n;)this.add(e[t])}function ae(e){var t=this.__data__=new ne(e);this.size=t.size}function oe(e,t){var n=Oe(e),i=!n&&we(e),r=!n&&!i&&je(e),a=!n&&!i&&!r&&Se(e),o=n||i||r||a,s=o?function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}(e.length,String):[],c=s.length;for(var l in e)!t&&!S.call(e,l)||o&&("length"==l||r&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ye(l,c))||s.push(l);return s}function se(e,t){for(var n=e.length;n--;)if(_e(e[n][0],t))return n;return-1}
vendor: 1,378 bytes, line 2
2function ce(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":z&&z in Object(e)?function(e){var t=S.call(e,z),n=e[z];try{e[z]=void 0;var i=!0}catch(a){}var r=I.call(e);i&&(t?e[z]=n:delete e[z]);return r}(e):function(e){return I.call(e)}(e)}function le(e){return ke(e)&&ce(e)==i}function ue(e,t,n,s,c){return e===t||(null==e||null==t||!ke(e)&&!ke(t)?e!==e&&t!==t:function(e,t,n,s,c,l){var u=Oe(e),d=Oe(t),p=u?"[object Array]":ve(e),h=d?"[object Array]":ve(t),m=(p=p==i?a:p)==a,f=(h=h==i?a:h)==a,g=p==h;if(g&&je(e)){if(!je(t))return!1;u=!0,m=!1}if(g&&!m)return l||(l=new ae),u||Se(e)?he(e,t,n,s,c,l):function(e,t,n,i,a,s,c){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new R(e),new R(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _e(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case r:var l=x;case o:var u=1&i;if(l||(l=_),e.size!=t.size&&!u)return!1;var d=c.get(e);if(d)return d==t;i|=2,c.set(e,t);var p=he(l(e),l(t),i,a,s,c);return c.delete(e),p;case"[object Symbol]":if(ee)return ee.call(e)==ee.call(t)}return!1}(e,t,p,n,s,c,l);if(!(1&n)){var b=m&&S.call(e,"__wrapped__"),v=f&&S.call(t,"__wrapped__");
2if(b||v){var y=b?e.value():e,w=v?t.value():t;return l||(l=new ae),c(y,w,n,s,l)}}if(!g)return!1;return l||(l=new ae),function(e,t,n,i,r,a){var o=1&n,s=me(e),c=s.length,l=me(t).length;if(c!=l&&!o)return!1;var u=c;for(;u--;){var d=s[u];if(!(o?d in t:S.call(t,d)))return!1}var p=a.get(e);if(p&&a.get(t))return p==t;var h=!0;a.set(e,t),a.set(t,e);var m=o;for(;++u<c;){d=s[u];var f=e[d],g=t[d];if(i)var b=o?i(g,f,d,t,e,a):i(f,g,d,e,t,a);if(!(void 0===b?f===g||r(f,g,n,i,a):b)){h=!1;break}m||(m="constructor"==d)}if(h&&!m){var v=e.constructor,y=t.constructor;v==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof y&&y instanceof y||(h=!1)}return a.delete(e),a.delete(t),h}(e,t,n,s,c,l)}(e,t,n,s,ue,c))}function de(e){return!(!Te(e)||function(e){return!!A&&A in e}(e))&&(Ce(e)?M:s).test(xe(e))}function pe(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||E;return e===n}(e))return U(e);var t=[];for(var n in Object(e))S.call(e,n)&&"constructor"!=n&&t.push(n);return t}function he(e,t,n,i,r,a){var o=1&n,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,p=2&n?new re:void 0;for(a.set(e,t),a.set(t,e);++u<s;){var h=e[u],m=t[u];if(i)var f=o?i(m,h,u,t,e,a):i(h,m,u,e,t,a);if(void 0!==f){if(f)continue;d=!1;break}if(p){if(!y(t,(function(e,t){if(o=t,!p.has(o)&&(h===e||r(h,e,n,i,a)))return p.push(t);var o}))){d=!1;break}}else if(h!==m&&!r(h,m,n,i,a)){d=!1;break}}return a.delete(e),a.delete(t),d}function me(e){return function(e,t,n){var i=t(e);return Oe(e)?i:function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}(i,n(e))}(e,Ae,be)}function fe(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function ge(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return de(n)?n:void 0}te.prototype.clear=function(){this.__data__=H?H(null):{},this.size=0},te.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},te.prototype.get=function(e){var t=this.__data__;if(H){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return S.call(t,e)?t[e]:void 0},te.prototype.has=function(e){var t=this.__data__;return H?void 0!==t[e]:S.call(t,e)},te.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=H&&void 0===t?"__lodash_hash_undefined__":t,this},ne.prototype.clear=function(){this.__data__=[],this.size=0},ne.prototype.delete=function(e){var t=this.__data__,n=se(t,e);return!(n<0)&&(n==t.length-1?t.pop():P.call(t,n,1),--this.size,!0)},ne.prototype.get=function(e){var t=this.__data__,n=se(t,e);return n<0?void 0:t[n][1]},ne.prototype.has=function(e){return se(this.__data__,e)>-1},ne.prototype.set=function(e,t){var n=this.__data__,i=se(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},ie.prototype.clear=function(){this.size=0,this.__data__={hash:new te,map:new(W||ne),string:new te}},ie.prototype.delete=function(e){var t=fe(this,e).delete(e);return this.size-=t?1:0,t},ie.prototype.get=function(e){return fe(this,e).get(e)},ie.prototype.has=function(e){return fe(this,e).has(e)},ie.prototype.set=function(e,t){var n=fe(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},re.prototype.add=re.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},re.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.clear=function(){this.__data__=new ne,this.size=0},ae.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ae.prototype.get=function(e){return this.__data__.get(e)},ae.prototype.has=function(e){return this.__data__.has(e)},ae.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ne){var i=n.__data__;if(!W||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new ie(i)}return n.set(e,t),this.size=n.size,this};var be=F?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,a=[];++n<i;){var o=e[n];t(o,n,e)&&(a[r++]=o)}return a}(F(e),(function(t){return D.call(e,t)})))}:function(){return[]},ve=ce;function ye(e,t){return!!(t=null==t?9007199254740991:t)&&("number"==typeof e||c.test(e))&&e>-1&&e%1==0&&e<t}function xe(e){if(null!=e){try{return k.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function _e(e,t){return e===t||e!==e&&t!==t}(V&&"[object DataView]"!=ve(new V(new ArrayBuffer(1)))||W&&ve(new W)!=r||q&&"[object Promise]"!=ve(q.resolve())||G&&ve(new G)!=o||Z&&"[object WeakMap]"!=ve(new Z))&&(ve=function(e){var t=ce(e),n=t==a?e.constructor:void 0,i=n?xe(n):"";if(i)switch(i){case X:return"[object DataView]";case K:return r;case Y:return"[object Promise]";case J:return o;case Q:return"[object WeakMap]"}return t});var we=le(function(){return arguments}())?le:function(e){return ke(e)&&S.call(e,"callee")&&!D.call(e,"callee")},Oe=Array.isArray;var je=N||function(){return!1};function Ce(e){if(!Te(e))return!1;var t=ce(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ee(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Te(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ke(e){return null!=e&&"object"==typeof e}var Se=v?function(e){return function(t){return e(t)}}(v):function(e){return ke(e)&&Ee(e.length)&&!!l[ce(e)]};function Ae(e){return null!=(t=e)&&Ee(t.length)&&!Ce(t)?oe(e):pe(e);var t}n.exports=function(e,t){return ue(e,t)}}).call(this,n(211),n(306)(e))},1756:function(e,t,n){"use strict";var i=n(2),r=n(106),a=n(0),o=n.n(a),s=n(49),c=n(84),l=n(1601),u=n(47),d=n(538),p=n(1590),h=n(120),m=n(159),f=n(5),g=n(865),b=n(27),v=n(3),y=n(1),x=function(e){var t;return{listItem:Object(i.a)({position:"relative",border:"1px solid #CCCECE",padding:"var(--mfd-spacing-xs)",display:"flex",cursor:"pointer",width:Object(y.p)(327),"& a, .listItemContainer":{width:"100%",display:"flex"},"& .rating-img":{width:"auto",maxHeight:Object(y.p)(13)},"& .rating-sec":{display:"flex",alignItems:"center",marginTop:Object(y.p)(6)},"& .open-close-sec":{display:"flex"}},e.breakpoints.down("md"),{width:Object(y.q)(327),"& .rating-img":{maxHeight:Object(y.q)(13)},"& .rating-sec":{marginTop:Object(y.q)(6)}}),listItemTextWrap:Object(v.a)(Object(v.a)({minWidth:Object(y.p)(189),height:"100%",width:Object(y.p)(189)},e.mixins.paddingLeft("var(--mfd-spacing-s)")),{},Object(i.a)({display:"flex",flexDirection:"column"},e.breakpoints.down("md"),{width:Object(y.q)(189),minWidth:Object(y.q)(189)})),expTitle:Object(v.a)({},e.palette.common.ellipsis(1)),ltGray:{color:e.palette.common.UnselectedColor},monthTag:{textTransform:"uppercase"},pr12:Object(v.a)({},e.mixins.paddingRight("var(--mfd-spacing-s)")),mt4:{marginTop:"var(--mfd-spacing-xxxs)"},mx8:{marginLeft:"var(--mfd-spacing-xxs)",marginRight:"var(--mfd-spacing-xxs)"},dateWrap:{display:"flex",flexDirection:"row",alignItems:"baseline",marginBottom:"var(--mfd-spacing-xxxs)"},tagsWrapper:{marginTop:"var(--mfd-spacing-xxs)"},commonTagWrapper:{display:"flex",flexWrap:"nowrap"},categoryTag:Object(i.a)({textTransform:"uppercase",marginRight:"var(--mfd-spacing-xxs)",marginLeft:0,marginTop:"var(--mfd-spacing-xxs)",maxWidth:Object(y.p)(84),height:Object(y.p)(24),"& .MuiTypography-labelBlack2":{fontSize:Object(y.p)(10)}},e.breakpoints.down("md"),{maxWidth:Object(y.q)(84),height:Object(y.q)(24),"& .MuiTypography-labelBlack2":{fontSize:Object(y.q)(10)}}),eventTag:{color:e.mixins.SeaGreen(),border:"1px solid rgba(0, 144, 134, 1)","&:hover":{background:e.mixins.SeaGreen(100)}},listTag:{cursor:"pointer","&:hover":{background:e.mixins.CategortTagColor(100)}},ratingImageWithLogo:{display:"flex","& .MuiSvgIcon-root":Object(i.a)({width:Object(y.p)(40),height:Object(y.p)(40)},e.breakpoints.down("md"),{width:Object(y.q)(40),height:Object(y.q)(40)})},totalReviews:{padding:"0",color:e.palette.text.tertiary1},ratingTripAdvisor:Object(v.a)(Object(v.a)({display:"inline-flex",background:e.palette.background.transparent},e.mixins.marginLeft(Object(y.p)(-5))),{},Object(i.a)({marginTop:Object(y.p)(-1)},e.breakpoints.down("md"),Object(v.a)(Object(v.a)({},e.mixins.marginLeft(Object(y.q)(-5))),{},{marginTop:Object(y.q)(-1)}))),width95pc:Object(v.a)(Object(v.a)({width:"calc(100% - ".concat(Object(y.p)(24),")")},e.mixins.paddingLeft("var(--mfd-spacing-m)")),{},(t={},Object(i.a)(t,e.breakpoints.down("md"),{width:"calc(100% - ".concat(Object(y.q)(24),")"),borderBottom:0}),Object(i.a)(t,"& picture",{"& img":{backgroundSize:"90% auto"}}),t))}},_=function(e){var t;return{listItem:{position:"relative",border:"1px solid #CCCECE",padding:"".concat(Object(y.p)(12),"}"),display:"flex",cursor:"pointer",width:"327px","& a, .listItemContainer":{width:"100%",display:"flex"},"& .rating-img":{width:"auto",maxHeight:Object(y.p)(13)},"& .rating-sec":{display:"flex",alignItems:"center",marginTop:Object(y.p)(6)},"& .open-close-sec":{display:"flex"}},listItemTextWrap:Object(v.a)(Object(v.a)({minWidth:"189px",height:"100%",width:"189px"},e.mixins.paddingLeft(Object(y.p)(16))),{},{display:"flex",flexDirection:"column"}),expTitle:Object(v.a)({},e.palette.common.ellipsis(1)),ltGray:{color:e.palette.common.UnselectedColor},monthTag:{textTransform:"uppercase"},pr12:Object(v.a)({},e.mixins.paddingRight(12)),mt4:{marginTop:Object(y.p)(4)},mx8:{marginLeft:Object(y.p)(8),marginRight:Object(y.p)(8)},dateWrap:{display:"flex",flexDirection:"row",alignItems:"baseline",marginBottom:Object(y.p)(4)},tagsWrapper:{marginTop:Object(y.p)(8)},commonTagWrapper:{display:"flex",flexWrap:"nowrap"},categoryTag:{textTransform:"uppercase",marginRight:Object(y.p)(8),marginLeft:0,marginTop:Object(y.p)(8),maxWidth:Object(y.p)(84),height:"24px","& .MuiTypography-labelBlack2":{fontSize:"10px"}},eventTag:{color:e.mixins.SeaGreen(),border:e.borders.DarkTurquoiseBorder,"&:hover":{background:e.mixins.SeaGreen(100)}},listTag:{cursor:"pointer","&:hover":{background:e.mixins.CategortTagColor(100)}},ratingImageWithLogo:{display:"flex","& .MuiSvgIcon-root":{width:e.spacing(5),height:e.spacing(5)}},totalReviews:{padding:"0",color:e.palette.text.tertiary1},ratingTripAdvisor:Object(v.a)(Object(v.a)({display:"inline-flex",background:e.palette.background.transparent},e.mixins.marginLeft(Object(y.p)(-5))),{},{marginTop:Object(y.p)(-1)}),width95pc:Object(v.a)(Object(v.a)({width:"calc(100% - 24px)"},e.mixins.paddingLeft(24)),{},(t={},Object(i.a)(t,e.breakpoints.down("md"),{borderBottom:0}),Object(i.a)(t,"& picture",{"& img":{backgroundSize:"90% auto"}}),t))}},w=Object(g.a)((function(e){return Object(b.c)(e)?x(e):_(e)})),O=n(20),j=n(31),C=n(353),E=function(e){var t=e.day,n=e.month,i=e.year,r=w();return o.a.createElement(o.a.Fragment,null,o.a.createElement(j.a,{variant:"body4Bold",component:"span"},t," \xa0"),o.a.createElement(j.a,{component:"span",variant:"labelLight",classes:{root:Object(O.a)(r.ltGray,r.monthTag)}},n," ",i))},T=function(e){var t=w(),n=e.startDate,i=e.endDate,r=e.language,a=n&&"0001-01-01T00:00:00"!==n?Object(C.m)(n,r):null,s=i&&"0001-01-01T00:00:00"!==i?Object(C.m)(i,r):null;return a||s?a&&s?o.a.createElement("div",{className:t.dateWrap},o.a.createElement(E,a),o.a.createElement(j.a,{variant:"body2Bold",classes:{root:t.mx8}
2,component:"span"},"-"),o.a.createElement(E,s)):o.a.createElement("div",{className:t.dateWrap},o.a.createElement(E,a)):o.a.createElement("span",null)},k=n(1580),S=n(1553),A=n(1583),I=n(1545),M=n(130),L=["startDate","endDate","name","location","time","googlePlaceId","defaultGooglePlaceId","contentType","viewsCount"];t.a=o.a.memo((function(e){var t,n,a=e.item,g=e.googlePlacesAPI,v=void 0===g?"":g,y=e.language,x=e.onClickItem,_=e.disableToast,C=void 0!==_&&_,E=e.customClass,B=void 0===E?"":E,R=e&&e.dictionary,D=w(),P=Object(M.a)(),z=(a.startDate,a.endDate,a.name),F=(a.location,a.time,a.googlePlaceId),N=a.defaultGooglePlaceId,U=a.contentType,V=(a.viewsCount,Object(r.a)(a,L),Object(p.a)(a,R&&R("".concat(U).concat(u.ib)))||[]),W=u.P,q="",G={},Z=a.contentType?a.contentType.toLowerCase():a.category.toLowerCase();if(U===u.w||Z===u.w){W=u.w;var H=a.isFeatured?R&&R("featuredText"):"";(G={openTime:a.openTime,closeTime:a.closeTime,umbrellaEventCount:a.umbrellaEventCount,isEventListing:!0,peopleInterested:a.interestedCount&&"".concat(a.interestedCount," ").concat(R&&R("interestedText")),eventType:{featured:H,isPaid:a.eventType},locationTitle:a.location_Titles&&a.location_Titles.length>0&&a.location_Titles[0],region:a.location_Regions&&a.location_Regions.length>0&&a.location_Regions[0],urlSlug:a.urlSlug}).eventType&&G.eventType.isPaid&&(V&&V.length>0?V[1]=G.eventType.isPaid:V[0]=G.eventType.isPaid),Array.isArray(a.eventCategories)&&a.eventCategories.length>0&&(V=V.concat(a.eventCategories)),Object(d.a)(a,y)}else V=Object(p.a)(a,R&&R("".concat(Z).concat(u.ib))),a.suitableForTags&&V.length<1&&(V=a.suitableForTags),V=V.filter((function(e){return e})),n=a.tripAdvisorNumberOfReviews,q=a.tripAdvisorRatingImageURL,Object(s.get)(a,"itemUrl","");var X={value:(null===(t=a.thumbnailImage)||void 0===t?void 0:t.src)?{src:Object(s.get)(a,"thumbnailImage.3x2-card.small",""),alt:Object(s.get)(a,"thumbnailImage.alt","")}:"string"===typeof a.thumbnailImage?{src:a.thumbnailImage,alt:Object(s.get)(a,"name","")}:{src:"",alt:Object(s.get)(a,"name","")}},K={value:{src:Object(k.a)(q),alt:G.rating}},Y=a.priceTagsKeys;"string"===typeof Y&&Y.startsWith("[")&&(Y=JSON.parse(Y)),Y=Y&&Y.length>0?Object(l.a)(Y):[];var J=V&&Array.isArray(V)?V.slice(0,2):[];return J.join("").length>14&&J.length>1&&(J=[J[0],"".concat(J[1].substring(0,2),"...")]).push("+".concat(V.length-1)),o.a.createElement(o.a.Fragment,null,o.a.createElement("li",{className:"".concat(D.listItem," ").concat(B),id:"mitem_".concat(a.id),onClick:function(){return x(a.itemUrl)}},o.a.createElement(f.a,{width:"98px",height:"98px",position:"relative"},o.a.createElement(I.a,{itemUniqueKey:a.id,isShowFavorite:!0,componentName:"mapComponent",ariaLabel:z,isMfdToast:Object(b.c)(P),disableToast:C,className:"favoriteComponent"}),o.a.createElement(h.a,{media:{image:X,mobileImage:X,aspectRatio:m.a["1x1"],forcedRatio:"1x1"},alternateAltText:"object"===typeof z&&z?z.value:z,isParalax:!1})),o.a.createElement(f.a,{width:"189px",height:"100%",className:"cardBox"},o.a.createElement("div",{className:"".concat(D.listItemTextWrap," itemContainer")},W===u.w&&o.a.createElement(T,{startDate:G.startDate,endDate:G.endDate,language:y}),o.a.createElement("div",null,o.a.createElement(j.a,{component:"p",variant:"body4Bold",className:D.expTitle},z)),"",o.a.createElement(f.a,{className:D.overViewSection},o.a.createElement(o.a.Fragment,null,K&&K.value.src&&o.a.createElement("div",{className:"rating-sec"},K.value.src&&o.a.createElement(f.a,{component:"div",className:D.ratingImageWithLogo},o.a.createElement(h.a,{className:"".concat(D.ratingTripAdvisor," rating-img"),media:{image:K,renditionNeeded:!1,fallbackBackgroundNeeded:!1,forcedRatio:!0},alternateAltText:K&&K.value&&K.value.rating,isParalax:!1})),n&&""!==n&&o.a.createElement(j.a,{variant:"labelRegular",component:"span",className:D.totalReviews},o.a.createElement(c.Text,{field:{value:Math.round(n).toLocaleString("en-US")}})))),F&&o.a.createElement("div",{className:"open-close-sec"},function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return e?o.a.createElement(A.a,{setReviewSpace:function(){},isAlone:i,googlePlacesAPI:v,googlePlaceId:e,defaultGooglePlaceId:t,language:n,openNowText:r}):null}(F,N,y,!1,"Open"))),J.length>0&&o.a.createElement("div",{className:Object(O.a)(D.commonTagWrapper,Object(i.a)({}
2,D.tagsWrapper,W===u.w))},J.map((function(e){var t;return o.a.createElement(S.a,{text:e,key:e,from:"favoritesNav",className:Object(O.a)(D.categoryTag,(t={},Object(i.a)(t,D.eventTag,W===u.w),Object(i.a)(t,D.listTag,W===u.P),t))})})))))))}),(function(e,t){return e.item&&t.item&&e.item.itemUniqueKey===t.item.itemUniqueKey}))},1779:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var i=n(9),r=n(131),a=n(114),o=n(115);function s(e,t,n,i,r,a){if(!(r-i<=n)){var o=i+r>>1;!function e(t,n,i,r,a,o){for(;a>r;){if(a-r>600){var s=a-r+1,l=i-r+1,u=Math.log(s),d=.5*Math.exp(2*u/3),p=.5*Math.sqrt(u*d*(s-d)/s)*(l-s/2<0?-1:1),h=Math.max(r,Math.floor(i-l*d/s+p)),m=Math.min(a,Math.floor(i+(s-l)*d/s+p));e(t,n,i,h,m,o)}var f=n[2*i+o],g=r,b=a;for(c(t,n,r,i),n[2*a+o]>f&&c(t,n,r,a);g<b;){for(c(t,n,g,b),g++,b--;n[2*g+o]<f;)g++;for(;n[2*b+o]>f;)b--}n[2*r+o]===f?c(t,n,r,b):(b++,c(t,n,b,a)),b<=i&&(r=b+1),i<=b&&(a=b-1)}}(e,t,o,i,r,a%2),s(e,t,n,i,o-1,a+1),s(e,t,n,o+1,r,a+1)}}function c(e,t,n,i){l(e,n,i),l(t,2*n,2*i),l(t,2*n+1,2*i+1)}function l(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function u(e,t,n,i){var r=e-n,a=t-i;return r*r+a*a}var d,p=function(e){return e[0]},h=function(e){return e[1]},m=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:64,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Float64Array;Object(a.a)(this,e),this.nodeSize=r,this.points=t;for(var c=t.length<65536?Uint16Array:Uint32Array,l=this.ids=new c(t.length),u=this.coords=new o(2*t.length),d=0;d<t.length;d++)l[d]=d,u[2*d]=n(t[d]),u[2*d+1]=i(t[d]);s(l,u,r,0,l.length-1,0)}return Object(o.a)(e,[{key:"range",value:function(e,t,n,i){return function(e,t,n,i,r,a,o){for(var s,c,l=[0,e.length-1,0],u=[];l.length;){var d=l.pop(),p=l.pop(),h=l.pop();if(p-h<=o)for(var m=h;m<=p;m++)s=t[2*m],c=t[2*m+1],s>=n&&s<=r&&c>=i&&c<=a&&u.push(e[m]);else{var f=Math.floor((h+p)/2);s=t[2*f],c=t[2*f+1],s>=n&&s<=r&&c>=i&&c<=a&&u.push(e[f]);var g=(d+1)%2;(0===d?n<=s:i<=c)&&(l.push(h),l.push(f-1),l.push(g)),(0===d?r>=s:a>=c)&&(l.push(f+1),l.push(p),l.push(g))}}return u}(this.ids,this.coords,e,t,n,i,this.nodeSize)}},{key:"within",value:function(e,t,n){return function(e,t,n,i,r,a){for(var o=[0,e.length-1,0],s=[],c=r*r;o.length;){var l=o.pop(),d=o.pop(),p=o.pop();if(d-p<=a)for(var h=p;h<=d;h++)u(t[2*h],t[2*h+1],n,i)<=c&&s.push(e[h]);else{var m=Math.floor((p+d)/2),f=t[2*m],g=t[2*m+1];u(f,g,n,i)<=c&&s.push(e[m]);var b=(l+1)%2;(0===l?n-r<=f:i-r<=g)&&(o.push(p),o.push(m-1),o.push(b)),(0===l?n+r>=f:i+r>=g)&&(o.push(m+1),o.push(d),o.push(b))}}return s}(this.ids,this.coords,e,t,n,this.nodeSize)}}]),e}(),f={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(e){return e}},g=Math.fround||(d=new Float32Array(1),function(e){return d[0]=+e,d[0]}),b=function(){function e(t){Object(a.a)(this,e),this.options=C(Object.create(f),t),this.trees=new Array(this.options.maxZoom+1)}return Object(o.a)(e,[{key:"load",value:function(e){var t=this.options,n=t.log,i=t.minZoom,r=t.maxZoom,a=t.nodeSize;n&&console.time("total time");var o="prepare ".concat(e.length," points");n&&console.time(o),this.points=e;for(var s=[],c=0;c<e.length;c++)e[c].geometry&&s.push(y(e[c],c));this.trees[r+1]=new m(s,E,T,a,Float32Array),n&&console.timeEnd(o);for(var l=r;l>=i;l--){var u=+Date.now();s=this._cluster(s,l),this.trees[l]=new m(s,E,T,a,Float32Array),n&&console.log("z%d: %d clusters in %dms",l,s.length,+Date.now()-u)}return n&&console.timeEnd("total time"),this}},{key:"getClusters",value:function(e,t){var n=((e[0]+180)%360+360)%360-180,i=Math.max(-90,Math.min(90,e[1])),a=180===e[2]?180:((e[2]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,a=180;else if(n>a){var s=this.getClusters([n,i,180,o],t),c=this.getClusters([-180,i,a,o],t);return s.concat(c)}var l,u=this.trees[this._limitZoom(t)],d=u.range(w(n),O(o),w(a),O(i)),p=[],h=Object(r.a)(d);try{for(h.s();!(l=h.n()).done;){var m=l.value,f=u.points[m];p.push(f.numPoints?x(f):this.points[f.index])}}catch(g){h.e(g)}finally{h.f()}return p}},{key:"getChildren",value:function(e){var t=this._getOriginId(e),n=this._getOriginZoom(e),i="No cluster with the specified id.",a=this.trees[n];if(!a)throw new Error(i);var o=a.points[t];if(!o)throw new Error(i);var s,c=this.options.radius/(this.options.extent*Math.pow(2,n-1)),l=a.within(o.x,o.y,c),u=[],d=Object(r.a)(l);try{for(d.s();!(s=d.n()).done;){var p=s.value,h=a.points[p];h.parentId===e&&u.push(h.numPoints?x(h):this.points[h.index])}}catch(m){d.e(m)}finally{d.f()}if(0===u.length)throw new Error(i);return u}},{key:"getLeaves",value:function(e,t,n){t=t||10,n=n||0;var i=[];return this._appendLeaves(i,e,t,n,0),i}},{key:"getTile",value:function(e,t,n){var i=this.trees[this._limitZoom(e)],r=Math.pow(2,e),a=this.options,o=a.extent,s=a.radius/o,c=(n-s)/r,l=(n+1+s)/r,u={features:[]};return this._addTileFeatures(i.range((t-s)/r,c,(t+1+s)/r,l),i.points,t,n,r,u),0===t&&this._addTileFeatures(i.range(1-s/r,c,1,l),i.points,r,n,r,u),t===r-1&&this._addTileFeatures(i.range(0,c,s/r,l),i.points,-1,n,r,u),u.features.length?u:null}},{key:"getClusterExpansionZoom",value:function(e){for(var t=this._getOriginZoom(e)-1;t<=this.options.maxZoom;){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t}},{key:"_appendLeaves",value:function(e,t,n,i,a){var o,s=this.getChildren(t),
2c=Object(r.a)(s);try{for(c.s();!(o=c.n()).done;){var l=o.value,u=l.properties;if(u&&u.cluster?a+u.point_count<=i?a+=u.point_count:a=this._appendLeaves(e,u.cluster_id,n,i,a):a<i?a++:e.push(l),e.length===n)break}}catch(d){c.e(d)}finally{c.f()}return a}},{key:"_addTileFeatures",value:function(e,t,n,i,a,o){var s,c=Object(r.a)(e);try{for(c.s();!(s=c.n()).done;){var l=t[s.value],u=l.numPoints,d=void 0,p=void 0,h=void 0;if(u)d=_(l),p=l.x,h=l.y;else{var m=this.points[l.index];d=m.properties,p=w(m.geometry.coordinates[0]),h=O(m.geometry.coordinates[1])}var f={type:1,geometry:[[Math.round(this.options.extent*(p*a-n)),Math.round(this.options.extent*(h*a-i))]],tags:d},g=void 0;u?g=l.id:this.options.generateId?g=l.index:this.points[l.index].id&&(g=this.points[l.index].id),void 0!==g&&(f.id=g),o.features.push(f)}}catch(b){c.e(b)}finally{c.f()}}},{key:"_limitZoom",value:function(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}},{key:"_cluster",value:function(e,t){for(var n=[],i=this.options,a=i.radius,o=i.extent,s=i.reduce,c=i.minPoints,l=a/(o*Math.pow(2,t)),u=0;u<e.length;u++){var d=e[u];if(!(d.zoom<=t)){d.zoom=t;var p,h=this.trees[t+1],m=h.within(d.x,d.y,l),f=d.numPoints||1,g=f,b=Object(r.a)(m);try{for(b.s();!(p=b.n()).done;){var y=p.value,x=h.points[y];x.zoom>t&&(g+=x.numPoints||1)}}catch(B){b.e(B)}finally{b.f()}if(g>f&&g>=c){var _,w=d.x*f,O=d.y*f,j=s&&f>1?this._map(d,!0):null,C=(u<<5)+(t+1)+this.points.length,E=Object(r.a)(m);try{for(E.s();!(_=E.n()).done;){var T=_.value,k=h.points[T];if(!(k.zoom<=t)){k.zoom=t;var S=k.numPoints||1;w+=k.x*S,O+=k.y*S,k.parentId=C,s&&(j||(j=this._map(d,!0)),s(j,this._map(k)))}}}catch(B){E.e(B)}finally{E.f()}d.parentId=C,n.push(v(w/g,O/g,C,g,j))}else if(n.push(d),g>1){var A,I=Object(r.a)(m);try{for(I.s();!(A=I.n()).done;){var M=A.value,L=h.points[M];L.zoom<=t||(L.zoom=t,n.push(L))}}catch(B){I.e(B)}finally{I.f()}}}}return n}},{key:"_getOriginId",value:function(e){return e-this.points.length>>5}},{key:"_getOriginZoom",value:function(e){return(e-this.points.length)%32}},{key:"_map",value:function(e,t){if(e.numPoints)return t?C({},e.properties):e.properties;var n=this.points[e.index].properties,i=this.options.map(n);return t&&i===n?C({},i):i}}]),e}();function v(e,t,n,i,r){return{x:g(e),y:g(t),zoom:1/0,id:n,parentId:-1,numPoints:i,properties:r}}function y(e,t){var n=Object(i.a)(e.geometry.coordinates,2),r=n[0],a=n[1];return{x:g(w(r)),y:g(O(a)),zoom:1/0,index:t,parentId:-1}}function x(e){return{type:"Feature",id:e.id,properties:_(e),geometry:{type:"Point",coordinates:[(t=e.x,360*(t-.5)),j(e.y)]}};var t}function _(e){var t=e.numPoints,n=t>=1e4?"".concat(Math.round(t/1e3),"k"):t>=1e3?"".concat(Math.round(t/100)/10,"k"):t;return C(C({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function w(e){return e/360+.5}function O(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function j(e){var t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function C(e,t){for(var n in t)e[n]=t[n];return e}function E(e){return e.x}function T(e){return e.y}},1781:function(e,t,n){"use strict";var i=n(0),r=n.n(i),a=n(1622),o=n(2),s=n(3),c=n(865),l=n(199),u=n(4),d=n(27),p=n(1),h=Object(c.a)((function(e){var t;return Object(d.c)(e)?{root:Object(s.a)(Object(s.a)({display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid ".concat(e.palette.common.DisabledGrey),borderRadius:Object(p.p)(53),textTransform:"uppercase",padding:"".concat(Object(p.p)(12)," ").concat(Object(p.p)(6)),height:Object(p.p)(40),background:e.palette.common.WhiteUpd()},e.mixins.marginRight("var(--mfd-spacing-xxs)")),{},(t={marginBottom:"var(--mfd-spacing-xxs)",cursor:"pointer"},Object(o.a)(t,e.breakpoints.down("md"),{height:Object(p.q)(40),borderRadius:Object(p.q)(53),padding:"".concat(Object(p.q)(12)," ").concat(Object(p.q)(6))}),Object(o.a)(t,"&:focus",{background:e.palette.common.WhiteUpd()}),Object(o.a)(t,"& .MuiTypography-labelBlack",{"&.labelTextRU":{fontSize:Object(p.p)(10.4),"@media (max-width: 767px)":{fontSize:Object(p.q)(9.12)}}}),t))}:{root:Object(s.a)(Object(s.a)({display:"inline-flex",alignItems:"center",justifyContent:"center",border:"1px solid ".concat(e.palette.common.DisabledGrey),borderRadius:l.a.b53px,textTransform:"uppercase",padding:"12px 6px",height:"40px",background:e.mixins.White()},e.mixins.marginRight(8)),{},{marginBottom:"8px",cursor:"pointer","&:focus":{background:"white"},"& .MuiTypography-labelBlack":{"&.labelTextRU":{fontSize:u.g.s10point4Rem,"@media (max-width: 767px)":{fontSize:u.g.s9point12Rem}}}})}})),m=n(31),f=(n(12),function(e){var t=e.className,n=e.text,i=e.icon,o=e.iconClass,s=e.isLangRussian,c=h(),l=s?"labelTextRU":"";return r.a.createElement(r.a.Fragment,null,r.a.createElement(a.a,Object.assign({component:"div",icon:i,label:r.a.createElement(m.a,{className:l,variant:"labelBlack",component:"span"},n),classes:{root:"".concat(c.root," ").concat(t),icon:o}},e)))});f.defaultProps={className:"",text:""};t.a=r.a.memo(f)},1799:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n(0),r=n.n(i),a=n(15),o=n(304),s=n(93),c=n.n(s),l=n(16),u=n.n(l);function d(){return{isDebugMode:r.a.useMemo((function(){if(!a.a)return!1;var e=window.location.origin;if(!["localhost","dev","uat","staging"].some((function(t){return e.includes(t)})))return!1;var t=Object(o.i)();return!c()(t)&&"true"===String(u()(t,"debug","")).toLowerCase()}),[])}}},1806:function(e,t,n){"use strict";var i=n(106),r=n(0),a=n.n(r),o=n(49),s=n(1601),c=n(443),l=n(1589),u=n(47),d=n(538),p=n(1590),h=["startDate","endDate","name","location","time","googlePlaceId","defaultGooglePlaceId","contentType","viewsCount"];t.a=a.a.memo((function(e){var t,n=e.item,r=e.googlePlacesAPI,m=void 0===r?"":r,f=e.language,g=e.onClickItem,b=e&&e.dictionary,v=b&&b("outOf5")||"",y=n.startDate,x=n.endDate,_=n.name,w=n.location,O=(n.time,n.googlePlaceId),j=n.defaultGooglePlaceId,C=n.
2contentType,E=n.viewsCount,T=Object(i.a)(n,h),k=Object(p.a)(n,b&&b("".concat(C).concat(u.ib)))||[],S=u.P,A="",I="",M={},L=n.contentType?n.contentType.toLowerCase():n.category.toLowerCase();if(C===u.w||L===u.w){S=u.w;var B=n.isFeatured?b&&b("featuredText"):"";M={openTime:n.openTime,closeTime:n.closeTime,umbrellaEventCount:n.umbrellaEventCount,isEventListing:!0,peopleInterested:n.interestedCount&&"".concat(n.interestedCount," ").concat(b&&b("interestedText")),eventType:{featured:B,isPaid:n.eventType},locationTitle:n.location_Titles&&n.location_Titles.length>0&&n.location_Titles[0],region:n.location_Regions&&n.location_Regions.length>0&&n.location_Regions[0],urlSlug:n.urlSlug},n.contentType&&n.contentType.toLowerCase()===u.w&&k.push(n.isPaid?"Ticketed":"Free"),n.eventCategories&&n.eventCategories.length>0&&(k=k.concat(n.eventCategories)),M.eventType&&M.eventType.isPaid&&(k&&k.length>0?k[1]=M.eventType.isPaid:k[0]=M.eventType.isPaid),I=Object(d.a)(n,f)}else(k=Object(p.a)(n,b&&b("".concat(L).concat(u.ib)))).length<1&&(k=n.suitableForTags),t=n.tripAdvisorNumberOfReviews,A=n.tripAdvisorRatingImageURL,I=Object(o.get)(n,"itemUrl","");var R={value:function(){var e;return L==u.w?{src:Object(o.get)(n,"thumbnailImage.src",""),alt:Object(o.get)(n,"name","")}:(null===(e=n.thumbnailImage)||void 0===e?void 0:e.src)?{src:Object(o.get)(n,"thumbnailImage.3x2-card.small",""),alt:Object(o.get)(n,"thumbnailImage.alt","")}:"string"===typeof n.thumbnailImage?{src:n.thumbnailImage,alt:Object(o.get)(n,"name","")}:{src:"",alt:Object(o.get)(n,"name","")}}()},D=n.priceTagsKeys;return"string"===typeof D&&D.startsWith("[")&&(D=JSON.parse(D)),D=D&&D.length>0?Object(s.a)(D):[],a.a.createElement(a.a.Fragment,null,a.a.createElement(l.a,Object.assign({title:_,desktopImage:R,mobileImage:R,aspectRatioNeeded:!1,imageCtaUrl:I,ctaLink:k,cardType:S,isFavoriteItem:!0,description:"",ratingOutOf:v,pageName:Object(c.b)(e),componentName:e.componentName,startDate:y,endDate:x,location:w,highlightWords:"",viewsCount:E,expenseRange:D,num_reviews:t,rating_image_url:A,googlePlaceId:O,defaultGooglePlaceId:j,language:f,googlePlacesAPI:m,onClickItem:g,itemUniqueKey:n.id},T,M)))}),(function(e,t){return e.item&&t.item&&e.item.itemUniqueKey===t.item.itemUniqueKey}))},1808:function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=void 0;var r=n(1747),a=n(1809),o=n(0),s=n(60),c=function(e){function t(t){var n=e.call(this,t)||this;return n.canvas=o.createRef(),n}return i(t,e),t.utf16to8=function(e){var t,n,i="",r=e.length;for(t=0;t<r;t++)(n=e.charCodeAt(t))>=1&&n<=127?i+=e.charAt(t):n>2047?(i+=String.fromCharCode(224|n>>12&15),i+=String.fromCharCode(128|n>>6&63),i+=String.fromCharCode(128|n>>0&63)):(i+=String.fromCharCode(192|n>>6&31),i+=String.fromCharCode(128|n>>0&63));return i},t.prototype.drawRoundedSquare=function(e,t,n,i,r,a,o,s){s.lineWidth=e,s.fillStyle=r,s.strokeStyle=r,n+=e/2,t+=e/2,i-=e,Array.isArray(a)||(a=[a,a,a,a]);var c=(a=a.map((function(e){return(e=Math.min(e,i/2))<0?0:e}
2)))[0]||0,l=a[1]||0,u=a[2]||0,d=a[3]||0;s.beginPath(),s.moveTo(t+c,n),s.lineTo(t+i-l,n),l&&s.quadraticCurveTo(t+i,n,t+i,n+l),s.lineTo(t+i,n+i-u),u&&s.quadraticCurveTo(t+i,n+i,t+i-u,n+i),s.lineTo(t+d,n+i),d&&s.quadraticCurveTo(t,n+i,t,n+i-d),s.lineTo(t,n+c),c&&s.quadraticCurveTo(t,n,t+c,n),s.closePath(),s.stroke(),o&&s.fill()},t.prototype.drawPositioningPattern=function(e,t,n,i,r,a,o){void 0===o&&(o=[0,0,0,0]);var s,c,l,u,d=Math.ceil(t);"number"===typeof o||Array.isArray(o)?c=s=o:(s=o.outer||0,c=o.inner||0),"string"!==typeof a?(l=a.outer,u=a.inner):(l=a,u=a);var p=i*t+n,h=r*t+n,m=7*t;this.drawRoundedSquare(d,h,p,m,l,s,!1,e),m=3*t,p+=2*t,h+=2*t,this.drawRoundedSquare(d,h,p,m,u,c,!0,e)},t.prototype.isInPositioninZone=function(e,t,n){return n.some((function(n){return t>=n.row&&t<=n.row+7&&e>=n.col&&e<=n.col+7}))},t.prototype.transformPixelLengthIntoNumberOfCells=function(e,t){return e/t},t.prototype.isCoordinateInImage=function(e,t,n,i,r,a,o,s){if(s){var c=this.transformPixelLengthIntoNumberOfCells(r,o),l=this.transformPixelLengthIntoNumberOfCells(a,o),u=this.transformPixelLengthIntoNumberOfCells(n,o)-1,d=this.transformPixelLengthIntoNumberOfCells(i,o)-1;return t>=c-2&&t<=c+u+2&&e>=l-2&&e<=l+d+2}return!1},t.prototype.shouldComponentUpdate=function(e){return!r(this.props,e)},t.prototype.componentDidMount=function(){this.update()},t.prototype.componentDidUpdate=function(){this.update()},t.prototype.update=function(){var e=this.props,n=e.value,i=e.ecLevel,r=e.enableCORS,o=e.bgColor,c=e.fgColor,l=e.logoImage,u=e.logoOpacity,d=e.logoOnLoad,p=e.removeQrCodeBehindLogo,h=e.qrStyle,m=e.eyeRadius,f=e.eyeColor,g=e.logoPaddingStyle,b=+this.props.size,v=+this.props.quietZone,y=this.props.logoWidth?+this.props.logoWidth:0,x=this.props.logoHeight?+this.props.logoHeight:0,_=this.props.logoPadding?+this.props.logoPadding:0,w=a(0,i);w.addData(t.utf16to8(n)),w.make();var O=s.findDOMNode(this.canvas.current),j=O.getContext("2d"),C=b+2*v,E=w.getModuleCount(),T=b/E,k=window.devicePixelRatio||1;O.height=O.width=C*k,j.scale(k,k),j.fillStyle=o,j.fillRect(0,0,C,C);var S=v,A=[{row:0,col:0},{row:0,col:E-7},{row:E-7,col:0}];if(j.strokeStyle=c,"dots"===h){j.fillStyle=c;for(var I=T/2,M=0;M<E;M++)for(var L=0;L<E;L++)w.isDark(M,L)&&!this.isInPositioninZone(M,L,A)&&(j.beginPath(),j.arc(Math.round(L*T)+I+S,Math.round(M*T)+I+S,I/100*75,0,2*Math.PI,!1),j.closePath(),j.fill())}else if("fluid"===h){for(I=Math.ceil(T/2),M=0;M<E;M++)for(L=0;L<E;L++)if(w.isDark(M,L)&&!this.isInPositioninZone(M,L,A)){var B=[!1,!1,!1,!1];M>0&&!w.isDark(M-1,L)&&L>0&&!w.isDark(M,L-1)&&(B[0]=!0),M>0&&!w.isDark(M-1,L)&&L<E-1&&!w.isDark(M,L+1)&&(B[1]=!0),M<E-1&&!w.isDark(M+1,L)&&L<E-1&&!w.isDark(M,L+1)&&(B[2]=!0),M<E-1&&!w.isDark(M+1,L)&&L>0&&!w.isDark(M,L-1)&&(B[3]=!0);var R=Math.ceil((L+1)*T)-Math.floor(L*T),D=Math.ceil((M+1)*T)-Math.floor(M*T);j.fillStyle=c,j.beginPath(),j.arc(Math.round(L*T)+I+S,Math.round(M*T)+I+S,I,0,2*Math.PI,!1),j.closePath(),j.fill(),B[0]||j.fillRect(Math.round(L*T)+S,Math.round(M*T)+S,R/2,D/2),B[1]||j.fillRect(Math.round(L*T)+S+Math.floor(R/2),Math.round(M*T)+S,R/2,D/2),B[2]||j.fillRect(Math.round(L*T)+S+Math.floor(R/2),Math.round(M*T)+S+Math.floor(D/2),R/2,D/2),B[3]||j.fillRect(Math.round(L*T)+S,Math.round(M*T)+S+Math.floor(D/2),R/2,D/2)}}else for(M=0;M<E;M++)for(L=0;L<E;L++)if(w.isDark(M,L)&&!this.isInPositioninZone(M,L,A)){j.fillStyle=c;R=Math.ceil((L+1)*T)-Math.floor(L*T),D=Math.ceil((M+1)*T)-Math.floor(M*T);j.fillRect(Math.round(L*T)+S,Math.round(M*T)+S,R,D)}for(var P=0;P<3;P++){var z=A[P],F=(M=z.row,L=z.col,m),N=void 0;Array.isArray(F)&&(F=F[P]),"number"==typeof F&&(F=[F,F,F,F]),N=f?Array.isArray(f)?f[P]:f:c,this.drawPositioningPattern(j,T,S,M,L,N,F)}if(l){var U=new Image;r&&(U.crossOrigin="Anonymous"),U.onload=function(){j.save();var e=y||.2*b,t=x||e,n=(b-e)/2,i=(b-t)/2;if(p||_){j.beginPath(),j.strokeStyle=o,j.fillStyle=o;var r=e+2*_,a=t+2*_,s=n+S-_,c=i+S-_;if("circle"===g){var l=s+r/2,h=c+a/2;j.ellipse(l,h,r/2,a/2,0,0,2*Math.PI),j.stroke(),j.fill()}else j.fillRect(s,c,r,a)}j.globalAlpha=u,j.drawImage(U,n+S,i+S,e,t),j.restore(),d&&d()},U.src=l}},t.prototype.render=function(){var e,t=+this.props.size+2*+this.props.quietZone;return o.createElement("canvas",{id:null!==(e=this.props.id)&&void 0!==e?e:"react-qrcode-logo",height:t,width:t,style:{height:t+"px",width:t+"px"},ref:this.canvas})},t.defaultProps={value:"https://reactjs.org/",ecLevel:"M",enableCORS:!1,size:150,quietZone:10,bgColor:"#FFFFFF",fgColor:"#000000",logoOpacity:1,qrStyle:"squares",eyeRadius:[0,0,0],logoPaddingStyle:"square"},t}(o.Component);t.QRCode=c},1809:function(e,t,n){var i,r,a,o=function(){var e=function(e,t){var n=e,i=a[t],r=null,o=0,s=null,c=[],l={},u=function(e,t){r=function(e){for(var t=new Array(e),n=0;n<e;n+=1){t[n]=new Array(e);for(var i=0;i<e;i+=1)t[n][i]=null}return t}(o=4*n+17),d(0,0),d(o-7,0),d(0,o-7),h(),p(),O(e,t),n>=7&&f(e),null==s&&(s=E(n,i,c)),j(s,t)},d=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||o<=e+n))for(var i=-1;i<=7;i+=1)t+i<=-1||o<=t+i||(r[e+n][t+i]=0<=n&&n<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=i&&i<=4)},p=function(){for(var e=8;e<o-8;e+=1)null==r[e][6]&&(r[e][6]=e%2==0);for(var t=8;t<o-8;t+=1)null==r[6][t]&&(r[6][t]=t%2==0)},h=function(){for(var e=m.getPatternPosition(n),t=0;t<e.length;t+=1)for(var i=0;i<e.length;i+=1){var a=e[t],o=e[i];if(null==r[a][o])for(var s=-2;s<=2;s+=1)for(var c=-2;c<=2;c+=1)r[a+s][o+c]=-2==s||2==s||-2==c||2==c||0==s&&0==c}},f=function(e){for(var t=m.getBCHTypeNumber(n),i=0;i<18;i+=1){var a=!e&&1==(t>>i&1);r[Math.floor(i/3)][i%3+o-8-3]=a}for(i=0;i<18;i+=1){a=!e&&1==(t>>i&1);r[i%3+o-8-3][Math.floor(i/3)]=a}},O=function(e,t){for(var n=i<<3|t,a=m.getBCHTypeInfo(n),s=0;s<15;s+=1){var c=!e&&1==(a>>s&1);s<6?r[s][8]=c:s<8?r[s+1][8]=c:r[o-15+s][8]=c}for(s=0;s<15;s+=1){c=!e&&1==(a>>s&1);s<8?r[8][o-s-1]=c:s<9?r[8][15-s-1+1]=c:r[8][15-s-1]=c}r[o-8][8]=!e},j=function(e,t){for(var n=-1,i=o-1,a=7,s=0,c=m.getMaskFunction(t),l=o-1;l>0;l-=2)for(6==l&&(l-=1);;){for(var u=0;u<2;u+=1)if(null==r[i][l-u]){var d=!1;s<e.length&&(d=1==(e[s]>>>a&1)),c(i,l-u)&&(d=!d),r[i][l-u]=d,-1==(a-=1)&&(s+=1,a=7)}if((i+=n)<0||o<=i){i-=n,n=-n;break}}},E=function(e,t,n){for(var i=b.getRSBlocks(e,t),r=v(),a=0;a<n.length;a+=1){var o=n[a];r.put(o.getMode(),4),r.put(o.getLength(),m.getLengthInBits(o.getMode(),e)),o.write(r)}var s=0;for(a=0;a<i.length;a+=1)s+=i[a].dataCount;if(r.getLengthInBits()>8*s)throw"code length overflow. ("+r.getLengthInBits()+">"+8*s+")";for(r.getLengthInBits()+4<=8*s&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(!1);for(;!(r.getLengthInBits()>=8*s)&&(r.put(236,8),!(r.getLengthInBits()>=8*s));)r.put(17,8);return function(e,t){for(var n=0,i=0,r=0,a=new Array(t.length),o=new Array(t.length),s=0;s<t.length;s+=1){var c=t[s].dataCount,l=t[s].totalCount-c;i=Math.max(i,c),r=Math.max(r,l),a[s]=new Array(c);for(var u=0;u<a[s].length;u+=1)a[s][u]=255&e.getBuffer()[u+n];n+=c;var d=m.getErrorCorrectPolynomial(l),p=g(a[s],d.getLength()-1).mod(d);o[s]=new Array(d.getLength()-1);for(u=0;
vendor: 5,288 bytes, line 2
2u<o[s].length;u+=1){var h=u+p.getLength()-o[s].length;o[s][u]=h>=0?p.getAt(h):0}}var f=0;for(u=0;u<t.length;u+=1)f+=t[u].totalCount;var b=new Array(f),v=0;for(u=0;u<i;u+=1)for(s=0;s<t.length;s+=1)u<a[s].length&&(b[v]=a[s][u],v+=1);for(u=0;u<r;u+=1)for(s=0;s<t.length;s+=1)u<o[s].length&&(b[v]=o[s][u],v+=1);return b}(r,i)};l.addData=function(e,t){var n=null;switch(t=t||"Byte"){case"Numeric":n=y(e);break;case"Alphanumeric":n=x(e);break;case"Byte":n=_(e);break;case"Kanji":n=w(e);break;default:throw"mode:"+t}c.push(n),s=null},l.isDark=function(e,t){if(e<0||o<=e||t<0||o<=t)throw e+","+t;return r[e][t]},l.getModuleCount=function(){return o},l.make=function(){if(n<1){for(var e=1;e<40;e++){for(var t=b.getRSBlocks(e,i),r=v(),a=0;a<c.length;a++){var o=c[a];r.put(o.getMode(),4),r.put(o.getLength(),m.getLengthInBits(o.getMode(),e)),o.write(r)}var s=0;for(a=0;a<t.length;a++)s+=t[a].dataCount;if(r.getLengthInBits()<=8*s)break}n=e}u(!1,function(){for(var e=0,t=0,n=0;n<8;n+=1){u(!0,n);var i=m.getLostPoint(l);(0==n||e>i)&&(e=i,t=n)}return t}())},l.createTableTag=function(e,t){e=e||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(t="undefined"==typeof t?4*e:t)+"px;",n+='">',n+="<tbody>";for(var i=0;i<l.getModuleCount();i+=1){n+="<tr>";for(var r=0;r<l.getModuleCount();r+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+e+"px;",n+=" height: "+e+"px;",n+=" background-color: ",n+=l.isDark(i,r)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return n+="</tbody>",n+="</table>"},l.createSvgTag=function(e,t,n,i){var r={};"object"==typeof arguments[0]&&(e=(r=arguments[0]).cellSize,t=r.margin,n=r.alt,i=r.title),e=e||2,t="undefined"==typeof t?4*e:t,(n="string"===typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(i="string"===typeof i?{text:i}:i||{}).text=i.text||null,i.id=i.text?i.id||"qrcode-title":null;var a,o,s,c,u=l.getModuleCount()*e+2*t,d="";for(c="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",d+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',d+=r.scalable?"":' width="'+u+'px" height="'+u+'px"',d+=' viewBox="0 0 '+u+" "+u+'" ',d+=' preserveAspectRatio="xMinYMin meet"',d+=i.text||n.text?' role="img" aria-labelledby="'+T([i.id,n.id].join(" ").trim())+'"':"",d+=">",d+=i.text?'<title id="'+T(i.id)+'">'+T(i.text)+"</title>":"",d+=n.text?'<description id="'+T(n.id)+'">'+T(n.text)+"</description>":"",d+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',d+='<path d="',o=0;o<l.getModuleCount();o+=1)for(s=o*e+t,a=0;a<l.getModuleCount();a+=1)l.isDark(o,a)&&(d+="M"+(a*e+t)+","+s+c);return d+='" stroke="transparent" fill="black"/>',d+="</svg>"},l.createDataURL=function(e,t){e=e||2,t="undefined"==typeof t?4*e:t;var n=l.getModuleCount()*e+2*t,i=t,r=n-t;return C(n,n,(function(t,n){if(i<=t&&t<r&&i<=n&&n<r){var a=Math.floor((t-i)/e),o=Math.floor((n-i)/e);return l.isDark(o,a)?0:1}return 1}))},l.createImgTag=function(e,t,n){e=e||2,t="undefined"==typeof t?4*e:t;var i=l.getModuleCount()*e+2*t,r="";return r+="<img",r+=' src="',r+=l.createDataURL(e,t),r+='"',r+=' width="',r+=i,r+='"',r+=' height="',r+=i,r+='"',n&&(r+=' alt="',r+=T(n),r+='"'),r+="/>"};var T=function(e){for(var t="",n=0;n<e.length;n+=1){var i=e.charAt(n);switch(i){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=i}}return t};return l.createASCII=function(e,t){if((e=e||1)<2)return function(e){e="undefined"==typeof e?2:e;var t,n,i,r,a,o=1*l.getModuleCount()+2*e,s=e,c=o-e,u={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584","  ":" "},d={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" ","  ":" "},p="";for(t=0;t<o;t+=2){for(i=Math.floor((t-s)/1),r=Math.floor((t+1-s)/1),n=0;n<o;n+=1)a="\u2588",s<=n&&n<c&&s<=t&&t<c&&l.isDark(i,Math.floor((n-s)/1))&&(a=" "),s<=n&&n<c&&s<=t+1&&t+1<c&&l.isDark(r,Math.floor((n-s)/1))?a+=" ":a+="\u2588",p+=e<1&&t+1>=c?d[a]:u[a];p+="\n"}return o%2&&e>0?p.substring(0,p.length-o-1)+Array(o+1).join("\u2580"):p.substring(0,p.length-1)}(t);e-=1,t="undefined"==typeof t?2*e:t;var n,i,r,a,o=l.getModuleCount()*e+2*t,s=t,c=o-t,u=Array(e+1).join("\u2588\u2588"),d=Array(e+1).join("  "),p="",h="";for(n=0;n<o;n+=1){for(r=Math.floor((n-s)/e),h="",i=0;i<o;i+=1)a=1,s<=i&&i<c&&s<=n&&n<c&&l.isDark(r,Math.floor((i-s)/e))&&(a=0),h+=a?u:d;for(r=0;r<e;r+=1)p+=h+"\n"}return p.substring(0,p.length-1)},l.renderTo2dContext=function(e,t){t=t||2;for(var n=l.getModuleCount(),i=0;i<n;i++)for(var r=0;r<n;r++)e.fillStyle=l.isDark(i,r)?"black":"white",e.fillRect(i*t,r*t,t,t)},l};e.stringToBytes=(e.stringToBytesFuncs={default:function(e){for(var t=[],n=0;n<e.length;n+=1){var i=e.charCodeAt(n);t.push(255&i)}return t}}).default,e.createStringToBytes=function(e,t){var n=function(){for(var n=j(e),i=function(){var e=n.read();if(-1==e)throw"eof";return e},r=0,a={};;){var o=n.read();if(-1==o)break;var s=i(),c=i()<<8|i();a[String.fromCharCode(o<<8|s)]=c,r+=1}if(r!=t)throw r+" != "+t;return a}(),i="?".charCodeAt(0);return function(e){for(var t=[],r=0;r<e.length;r+=1){var a=e.charCodeAt(r);if(a<128)t.push(a);else{var o=n[e.charAt(r)];"number"==typeof o?(255&o)==o?t.push(o):(t.push(o>>>
28),t.push(255&o)):t.push(i)}}return t}};var t=1,n=2,i=4,r=8,a={L:1,M:0,Q:3,H:2},o=0,s=1,c=2,l=3,u=4,d=5,p=6,h=7,m=function(){var e=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],a={},m=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t};return a.getBCHTypeInfo=function(e){for(var t=e<<10;m(t)-m(1335)>=0;)t^=1335<<m(t)-m(1335);return 21522^(e<<10|t)},a.getBCHTypeNumber=function(e){for(var t=e<<12;m(t)-m(7973)>=0;)t^=7973<<m(t)-m(7973);return e<<12|t},a.getPatternPosition=function(t){return e[t-1]},a.getMaskFunction=function(e){switch(e){case o:return function(e,t){return(e+t)%2==0};case s:return function(e,t){return e%2==0};case c:return function(e,t){return t%3==0};case l:return function(e,t){return(e+t)%3==0};case u:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case d:return function(e,t){return e*t%2+e*t%3==0};case p:return function(e,t){return(e*t%2+e*t%3)%2==0};case h:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},a.getErrorCorrectPolynomial=function(e){for(var t=g([1],0),n=0;n<e;n+=1)t=t.multiply(g([1,f.gexp(n)],0));return t},a.getLengthInBits=function(e,a){if(1<=a&&a<10)switch(e){case t:return 10;case n:return 9;case i:case r:return 8;default:throw"mode:"+e}else if(a<27)switch(e){case t:return 12;case n:return 11;case i:return 16;case r:return 10;default:throw"mode:"+e}else{if(!(a<41))throw"type:"+a;switch(e){case t:return 14;case n:return 13;case i:return 16;case r:return 12;default:throw"mode:"+e}}},a.getLostPoint=function(e){for(var t=e.getModuleCount(),n=0,i=0;i<t;i+=1)for(var r=0;r<t;r+=1){for(var a=0,o=e.isDark(i,r),s=-1;s<=1;s+=1)if(!(i+s<0||t<=i+s))for(var c=-1;c<=1;c+=1)r+c<0||t<=r+c||0==s&&0==c||o==e.isDark(i+s,r+c)&&(a+=1);a>5&&(n+=3+a-5)}for(i=0;i<t-1;i+=1)for(r=0;r<t-1;r+=1){var l=0;e.isDark(i,r)&&(l+=1),e.isDark(i+1,r)&&(l+=1),e.isDark(i,r+1)&&(l+=1),e.isDark(i+1,r+1)&&(l+=1),0!=l&&4!=l||(n+=3)}for(i=0;i<t;i+=1)for(r=0;r<t-6;r+=1)e.isDark(i,r)&&!e.isDark(i,r+1)&&e.isDark(i,r+2)&&e.isDark(i,r+3)&&e.isDark(i,r+4)&&!e.isDark(i,r+5)&&e.isDark(i,r+6)&&(n+=40);for(r=0;r<t;r+=1)for(i=0;i<t-6;i+=1)e.isDark(i,r)&&!e.isDark(i+1,r)&&e.isDark(i+2,r)&&e.isDark(i+3,r)&&e.isDark(i+4,r)&&!e.isDark(i+5,r)&&e.isDark(i+6,r)&&(n+=40);var u=0;for(r=0;r<t;r+=1)for(i=0;i<t;i+=1)e.isDark(i,r)&&(u+=1);return n+=10*(Math.abs(100*u/t/t-50)/5)},a}(),f=function(){for(var e=new Array(256),t=new Array(256),n=0;n<8;n+=1)e[n]=1<<n;for(n=8;n<256;n+=1)e[n]=e[n-4]^e[n-5]^e[n-6]^e[n-8];for(n=0;n<255;n+=1)t[e[n]]=n;var i={glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]}};return i}();function g(e,t){if("undefined"==typeof e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n<e.length&&0==e[n];)n+=1;for(var i=new Array(e.length-n+t),r=0;r<e.length-n;r+=1)i[r]=e[r+n];return i}(),i={getAt:function(e){return n[e]},getLength:function(){return n.length},multiply:function(e){for(var t=new Array(i.getLength()+e.getLength()-1),n=0;n<i.getLength();n+=1)for(var r=0;r<e.getLength();r+=1)t[n+r]^=f.gexp(f.glog(i.getAt(n))+f.glog(e.getAt(r)));return g(t,0)},mod:function(e){if(i.getLength()-e.getLength()<0)return i;for(var t=f.glog(i.getAt(0))-f.glog(e.getAt(0)),n=new Array(i.getLength()),r
vendor: 8,292 bytes, line 2
2=0;r<i.getLength();r+=1)n[r]=i.getAt(r);for(r=0;r<e.getLength();r+=1)n[r]^=f.gexp(f.glog(e.getAt(r))+t);return g(n,0).mod(e)}};return i}var b=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var n={};return n.totalCount=e,n.dataCount=t,n},n={};return n.getRSBlocks=function(n,i){var r=function(t,n){switch(n){case a.L:return e[4*(t-1)+0];case a.M:return e[4*(t-1)+1];case a.Q:return e[4*(t-1)+2];case a.H:return e[4*(t-1)+3];default:return}}(n,i);if("undefined"==typeof r)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+i;for(var o=r.length/3,s=[],c=0;c<o;c+=1)for(var l=r[3*c+0],u=r[3*c+1],d=r[3*c+2],p=0;p<l;p+=1)s.push(t(u,d));return s},n}(),v=function(){var e=[],t=0,n={getBuffer:function(){return e},getAt:function(t){var n=Math.floor(t/8);return 1==(e[n]>>>7-t%8&1)},put:function(e,t){for(var i=0;i<t;i+=1)n.putBit(1==(e>>>t-i-1&1))},getLengthInBits:function(){return t},putBit:function(n){var i=Math.floor(t/8);e.length<=i&&e.push(0),n&&(e[i]|=128>>>t%8),t+=1}};return n},y=function(e){var n=t,i=e,r={getMode:function(){return n},getLength:function(e){return i.length},write:function(e){for(var t=i,n=0;n+2<t.length;)e.put(a(t.substring(n,n+3)),10),n+=3;n<t.length&&(t.length-n==1?e.put(a(t.substring(n,n+1)),4):t.length-n==2&&e.put(a(t.substring(n,n+2)),7))}},a=function(e){for(var t=0,n=0;n<e.length;n+=1)t=10*t+o(e.charAt(n));return t},o=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return r},x=function(e){var t=n,i=e,r={getMode:function(){return t},getLength:function(e){return i.length},write:function(e){for(var t=i,n=0;n+1<t.length;)e.put(45*a(t.charAt(n))+a(t.charAt(n+1)),11),n+=2;n<t.length&&e.put(a(t.charAt(n)),6)}},a=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);if("A"<=e&&e<="Z")return e.charCodeAt(0)-"A".charCodeAt(0)+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return r},_=function(t){var n=i,r=e.stringToBytes(t),a={getMode:function(){return n},getLength:function(e){return r.length},write:function(e){for(var t=0;t<r.length;t+=1)e.put(r[t],8)}};return a},w=function(t){var n=r,i=e.stringToBytesFuncs.SJIS;if(!i)throw"sjis not supported.";!function(e,t){var n=i("\u53cb");if(2!=n.length||38726!=(n[0]<<8|n[1]))throw"sjis not supported."}();var a=i(t),o={getMode:function(){return n},getLength:function(e){return~~(a.length/2)},write:function(e){for(var t=a,n=0;n+1<t.length;){var i=(255&t[n])<<8|255&t[n+1];if(33088<=i&&i<=40956)i-=33088;else{if(!(57408<=i&&i<=60351))throw"illegal char at "+(n+1)+"/"+i;i-=49472}i=192*(i>>>8&255)+(255&i),e.put(i,13),n+=2}if(n<t.length)throw"illegal char at "+(n+1)}};return o},O=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,n,i){n=n||0,i=i||e.length;for(var r=0;r<i;r+=1)t.writeByte(e[r+n])},writeString:function(e){for(var n=0;n<e.length;n+=1)t.writeByte(e.charCodeAt(n))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var n=0;n<e.length;n+=1)n>0&&(t+=","),t+=e[n];return t+="]"}};return t},j=function(e){var t=e,n=0,i=0,r=0,a={read:function(){for(;r<8;){if(n>=t.length){if(0==r)return-1;throw"unexpected end of file./"+r}var e=t.charAt(n);if(n+=1,"="==e)return r=0,-1;e.match(/^\s$/)||(i=i<<6|o(e.charCodeAt(0)),r+=6)}var a=i>>>r-8&255;return r-=8,a}},o=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return a},C=function(e,t,n){for(var i=function(e,t){var n=e,i=t,r=new Array(e*t),a={setPixel:function(e,t,i){r[t*n+e]=i},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(i),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(i),e.writeByte(0);var t=o(2);e.writeByte(2);for(var r=0;t.length-r>255;)e.writeByte(255),e.writeBytes(t,r,255),r+=255;e.writeByte(t.length-r),e.writeBytes(t,r,t.length-r),e.writeByte(0),e.writeString(";")}},o=function(e){for(var t=1<<e,n=1+(1<<e),i=e+1,a=s(),o=0;o<t;o+=1)a.add(String.fromCharCode(o));a.add(String.fromCharCode(t)),a.add(String.fromCharCode(n));var c=O(),l=function(e){var t=e,n=0,i=0,r={write:function(e,r){if(e>>>r!=0)throw"length over";for(;n+r>=8;)t.writeByte(255&(e<<n|i)),r-=8-n,e>>>=8-n,i=0,n=0;i|=e<<n,n+=r},flush:function(){n>0&&t.writeByte(i)}};return r}(c);l.write(t,i);var u=0,d=String.fromCharCode(r[u]);for(u+=1;u<r.length;){var p=String.fromCharCode(r[u]);u+=1,a.contains(d+p)?d+=p:(l.write(a.indexOf(d),i),a.size()<4095&&(a.size()==1<<i&&(i+=1),a.add(d+p)),d=p)}return l.write(a.indexOf(d),i),l.write(n,i),l.flush(),c.toByteArray()},s=function(){var e={},t=0,n={add:function(i){if(n.contains(i))throw"dup key:"+i;e[i]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return"undefined"!=typeof e[t]}};return n};return a}(e,t),r=0;r<t;r+=1)for(var a=0;a<e;a+=1)i.setPixel(a,r,n(a,r));var o=O();i.write(o);for(var s=function(){var e=0,t=0,n=0,i="",r={},a=function(e){i+=String.fromCharCode(o(63&e))},o=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;
2if(63==e)return 47}throw"n:"+e};return r.writeByte=function(i){for(e=e<<8|255&i,t+=8,n+=1;t>=6;)a(e>>>t-6),t-=6},r.flush=function(){if(t>0&&(a(e<<6-t),e=0,t=0),n%3!=0)for(var r=3-n%3,o=0;o<r;o+=1)i+="="},r.toString=function(){return i},r}(),c=o.toByteArray(),l=0;l<c.length;l+=1)s.writeByte(c[l]);return s.flush(),"data:image/gif;base64,"+s};return e}();o.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||i>=57344?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}(e)},r=[],void 0===(a="function"===typeof(i=function(){return o})?i.apply(t,r):i)||(e.exports=a)},1810:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAACECAYAAAB1cc4iAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA9fSURBVHgB7Z1tcFTVGcefe3fJLgpkOygIDhCcSfSDSKYTalTApMYZBKfUOr7Uvkio/QDUMflSG6xDGNtC/RIcB/jiS5DaSh21zBirU1JSRYeXTIlYOzbMtFsHsXF0JghKdmHv7fmf7A2b5Jy7Z9/uPXezv5lMQu7esLm/nOc85znnnktUoUKFChXSGBQwOnc31kyzUk2GbceMUGipYVPMIqphv0iM2PfIMGLjTrDtYfa9YZto2DBomH0nbln2fy2DBkzbjj+26dgABQithXV2NcVC4XP106aF1toW1bOLXz9JSKFAqGkMMJkDFy6k9qcuzhjobO8bJk3RThgkVU07t84wQ2vZP5vIDwzqsyxrj5kM9XW0H46TRmghTAtJMtLyWOjsJg3wVRhERaJfP0IWtRU91BWfOOTRiLHVz1bni7BtXY01RtTeYtu0joKIQd1+ifNUGFpUNHq+qxBR0chMmjO7ln/EqudT9Yx5NGvWPIpWzeAfEXY8k0TiLI0kz9GZs5+yr9nnc5/S8JnT9NkXJ/nHCDueNz6I80RYIaEPgmprVtLcK+v45+qZ86iYDEHc54M0+J+3+WeIzRnD7uzYcHQreUDJhT3xdENTOBR6nn1Zo3oOJF1ft5rqrrmVFs7/JnnJx6f/Th981MM/5ygvTqlUa8fD/X1UQkomjIe/yPktbMDapnoO5Cxf9pDnkmScZK3uxL962Oe/KZ9jkLXjFxuPtVOJKIkwJBUUsQ+SQqtyWtOypfcXPdwVC7S0Q8eeoQ+YPEXilDCaS9G3FV3Yb3Y1PmjY1g6VvqrhhvtoRcNDkxIFXclRHMphWzdvPLKDikhRhW3b3biFlXo6s70OIW/Ntx/XtkVlIydxRU5IiiKMZ4FV57vYT1vn9joIuu2WNqpbfCuVAxAGcVmTE5u6E8np7cWoURYsjJeVIucPsh9U7/a6JdetoZab2wIT/lRRbW0sPA4kE9ObC5VWkDAVWUgqljf8hPVX91M503/iJTrU/6zrQLwY0vIWpiILIfCBtbsC21flClrb7/dvdA2RhUoLUR6oyELp6MHvPUOXXzabpgqIJuifPz59nL76+gvha9g1uyoUvrhqRUvtvr634iOUIyblARIMN1nor9bfu7fs+isVEE3W3/MCvwYycO14kpYHObcwnrq7VC8wtlq18lGa6qCljSTP0umhD8UvMKi+5c6rqbfnE/UyCuUobPvOGx/BJ9lxyGq5pWRVmcBxzcKb3KWR0XTbmgXx3p5T75MiysJ4uSlkv8QqGFHRcYSASsuaDKRhSuezz08Kj7Pw2NTSsmBf71unlJIQ9T4MtUFJuQkJxprmx6mCGFybOVfUyQ7HcG2RyJECSsK277oRHWSN6Bg62bvveJIquPPAd1yHNzXRyFdbSIGs47D0fNZB0TGksa0sI5oq46xCwfjs+Zd/LB9cp1LN2ebTsraw9OSjEFQwKrLUwbXCNZPCrnW20OgqLJ3C14iOLbl2TdmXm0oBrpnLGK1mWtXXrhO+UmE8K5RMlfC/FDYzXCE/bru5XRqZTMN4xK2VSYVhGZrsGGRVQmH+RCMz3MarsUhUXgURCkPrki1FQyjER4XCqF28Ur52hV17HuEECIVla10VigNm3aVIHEwSlq11VUJh8cC1RDlPCHMg6ssmCau0Lm9Z3vBTPp4VIcoYJwljratJdHK5tS4s4T5wqIt2/+4u2r67kXY8dzv1/PWJ/Fb+FgASkOuvXS08JsoYxwnbtnPZOpKMu8qpdUHKc6zi0P/BvjFBqD5gXcZzL/+Ir7n3kmXy8SwmitdlfmN8CzPNB0Vn1bK5nXJqXW7T+Lhh4sX9G3gL9ApcW1nGaBi0NvPfY9Mro9MnJFz02HzTJpodW0R+0X9iH/2xp52Of/ja2DRFOByRxn430IqyrXBKpZKsJBehhVd7t2S8etY82fuqWdFS+5SznCA89u2qVJMoy4d93DXiF7gp4cC7o+NIJ2w5vximdeayaQv8deLiqkSBwX+rTfAOeRwW8TvgD1BUGE6HRd6YLglDOLTFP8hPkAjIcO7xcgQ6oQW1ukLft5ch0QHJB6LJRNJhkQvjTaqzqz5GsuzwOv+qGhCRS9aG1+Ic9FHI/kRZH0KPCn4sIJKuiGZunGyRCwuFo8IVUG6doRdgRW2+OPIg7sC7O8ZajOoy8Rt8+EN1wqKISPgcd8SFhU37u6IXuUxrlxxR60Jrz+cmCqzKRRqPn4eLIq0upMFxv/pt2f9rmSHuaDTLMGmp6EV1i/1LNia2LkjC2nwM4Df88DW+ojiXIrSzKhctDZVy2bjS75VfcyWNxEw7Gk06LL7DjPLJpUbUutCyMvsVnhmm79iEXJVbXHH8lTcf5bKXNzzEhfPzvvyUotGZtKRute+LX1HFd7LicdijC3eNX++8ud40UscnHo+wkkn7+gPkB+h3Mi8+LqxrZZuBX1KUYYlouaVN69lylMlE6X2qKlRjGtbFGtFJc2fr0bpUZrdxE7mqLPBO/zM5ZZ9eg/GlCCNxodm0TfEaedlJpSZaNT4kZZvdhqyeg/KxmgiUnwrJQEvNnCskwgwzxgrC4mJvbJY/tUPEcGcnAYQut8QC/U+ushzQknG+jsRmzhd+n7laGjYMY5GowlE9S3ySFyAhoAb316B09OqbhS0NRytDAqIbLhHlGybfFFJApGoG6Qpk/YGl6CMFlo/QwnRsZdUzrxIfsO1FbBwmXi+v854Zr/755znJQoitlVQ4dOzL5EMLIyZtYVENW5jKLakTgSiEWNyQIPoj1LGVRaqkY0EmTHJHim53T+YjC4LubP4l/xpT8bKxnGhGABURDBUw0M71/y0UvFcJsTAFhHxkIaGYWB1B6WnimA0/F/VGZKSD8bfHNgfLBKEz2+DdCwIhLNed1VDxlu1egDohbhrHVnuZoKLvtm1D9Sw9+vS8bkr3mo8/ya2PwW47bknT3at+K5zGEMni+4ywpIUPNTQgnN7XfVI/hhgexF0AcHGzVfGd237QqmRAFMLnsiX3eX4dRlglRsJwGJvwE27bnHhS8pw2wvhimH7FF9tqL0PxF+M59FcTgXA/b/hIJKVDFiaMWAsT3IiZSEote44zlaKSfh9ihV1caJWlDbjtB+HW6R912WBT3l/bw2HDNOL8qQuCk/wqAItAhqaaKR54r4vvEZzt/SN9xmQodh7FdJIuO6EmZCGRRUPTsuwzomNnvjxNOuCsxUCrab1nr9Iss7MYVDWzdL31xwdc3nfcJMsYEB0Z/tL/+aKxJdVsjAScwa/KsnFI83rAWyyGz4obCx7yw6ZXLOGGHl6vL58IWpZzwZHNOdIAUuzWe/dmTQpwrtu6Rl2RbsJi0YBJZqhPdHDoi0Hyk9cP/mpc64C0zDR8LuufMDjOtrJrdOVwUbfdLTmyxmKbdtzs2HA4zsdiE+BPUfApnKAMJNp6HK0Mrc7B2TktW4jEebpOVk4EFRhJtWUYzzpLL3MT92O57NdeLCALqbkICBLV8xAi7171pGuI1HlJQCbSNf0GcUejwiwS7iY29Lm3/dgg+wNxk+W2uykyPTdhQUk+ZDdrWGlHaWHGn4Qnx71rYbigb7B+S4TKVrRY5uYW9nRK292Q9V+mleKOuLDExRFhSEQ/5kXsd+a6RLF7Tjq5yBbu3Ja5OUu8dcdtViJxccalkNjZPjDMH2YmQPV+qnxB+v4Km/IXvVH
2I+kEWWagFysIoQAE3KFsDiuqaHObG2dR5bHrFTtF+4Q8ZVH7eSF4g5RaFAUeWWwEaHXTve/KUHdljkHZIlUUzyzL2OF+PCUteSHSLXlzKsCjboF9FVrbFODrNYamAeqYsHJrmpeg3JswtLJYiJcacjyiUob/JJiuzCiIiaLLAiY9eFx9gTvhYOc24GWdZWMzj4Wd5wZOD5sezzsMhjMreD681BkwWfpeT8beFxzLDIRgnjIdFQdUDHHv/JSomozuaXdroxZGlgiiMOus4grhxmUsEiz+26XB35jfGCUNYtMh8SnQmko9i36iNWd/29X/hc1K5ZHITx1SQ9X0mKyhjrUycW3uFCLqoSYtwLiRHhGkXko93+p+lYoPwl+tUfOZts6PzZC/wYnAQcc8PjEnPHRNu0rxt17e62SHhrjhoDbos48Zfp+hRwEEB7x83LwoxqLtjw5HWid8WL3MzzE6SoNP8Ev5wgvx8l1xbFxAKG00j7T2iY8gYB32o4pcbrlso8dYlfuCpdCFpIpFsk2WMvRn7XlTIHeepfnIM6TMzpcLcMkZn2r5Cfrg+N9O2t8paF3B9WM7K268YCIfDuN1+0kJT1P8wlpo/93qqoA5mFQ4ff0F2ON6x6ehdbue7rq3n5aqU0So7rvvd+LrBQ6HLzILbtXbIejNEx8OH+8gmYWh0lpJV+rPsuM35cdg15tc6C0p3rySSiU7C49olb+TFjIUxFcTI5vzSsFB4pI0UUBI2Wsk3mmVZI/qzIK7/8wpcG+k6z9G7h5pJEeUn9PX2nBpuWbNgiI0RhDu/4Q3hjpdrFjZShUtgrcnAP1+THrcNo2PzxiNvkiI5PQOz941TAy2rFxhMWpPo+Omhf/DPXu6VqzNI3w8f3yt/AUvhN286up1yIOenzDJpfS13XL2YNWPhlkfO7PRUl+a2vpJj2Xs6fnZUqd/KJK9bZhMXWBWE7AHZcbzRoCzcLAXZZOFp6YnLL8tZFsjrSel9b/1vZEXLlfvC4dAqVkYRbtsyVVuaiqzk9OnNna0ePtoeVKRNptSyQN7CQEXaJbyQBQoSBirSvJMFChYGprI0L2WBoggDU1Ga17JA0YSBqSTND1mgqMLAVJDmlyxQdGGgnKX5KQuURBgoR2l+ywIlEwbKSZoOskBJhYFykKaLLFByYSDI0nSSBTwRBoIoTTdZwDNhIEjSdJQFPBUGgiBNV1nAc2FAZ2k6ywK+CAM6StNdFvBNGNBJWhBkAV+FAR2kBUUW8F0Y8FNakGQBLYQBP6QFTRbQRhjwUloQZQGthAEvpAVVFtBOGCiltCDLAloKA6WQFnRZQFthoJjSykEW0FoYKIa0cpEFtBcGCpFWTrKAQQGis6s+FolUHWRvu172Gjx44Ib0jm7YAMZtc86gyQKBEgZUpKkQRFkgcMJAodKCKgsEUhjIV1qQZYFAPLRUBHY2SCSSzbJ9iiX0BVkWCGwLy2TbzsZ1ZNhb2Jc1whfY9rBtGFs3bzyygwJOWQhz2PZ0Y5NlWk2maSzCv/kD0iyzT2WHmQoVKlQg+j8nIcXnVNrqZgAAAABJRU5ErkJggg=="},1811:function(e,t){e.exports="data:image/png;base64,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"},1812:function(e,t){e.exports="data:image/png;base64,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"},1813:function(e,t){e.exports="data:image/png;base64,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"},1814:function(e,t){e.exports="data:image/png;base64,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"},1815:function(e,t){e.exports="data:image/png;base64,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"},1816:function(e,t){e.exports="data:image/png;base64,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"},1817:function(e,t){e.exports="data:image/png;base64,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"},1818:function(e,t){e.exports="data:image/png;base64,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"},1819:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGwAAACECAYAAAB1cc4iAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAsSSURBVHgB7Z1PbB3FHcd//kcd4lSOBA09VHkBUamVmtAekJKTXYmqN9p7q7ycqOBAItpeQ3qsRDGHVvRkR829cKuKhH0CCSRiggQSiNgRSIQ/kg12sJM4fsx3d+bx/N7Mb2b/zO7se/ORlg3e3bf2ft785jezM7tEkUgkEpGMUcPodDotsZoTy6xYTsl1S67V0stm37IulhtiWcW/x8bGVqlBBC1MyMHFf0wsT8o1llkqF0hclcurWAuJmxQowQmTktqUSpqjelgRy2Wshbx1ihwEksRyXizLnfBYFkubIl1RF8Wy0QmfNbEsdtI6dLTAHy3/+Kay2KlJXKV1WCetn16ktI7K9xl7t+je9sd0b+tj2t/9gvZ3bibrzt62XG4d2H9s8rBYZmj80DEamzgs1g/R+PSPaOLIIzQx80iyvQBLYrlUZT1XiTAp6lmxnKeMWR4E3P3yDSHperLe3/2cygTSJo48TFMPnEnW49PHKAfPC2mXqAK8CxOy5sRqkdK2ktsxQtKdz/4vBL1Je5vXqEomj56k+x56IllnlLculnNC3Ap5xJswWaouUlqqnICc3etXKpdkYuqB03Tfj39DUw+eznLYgpB2gTzhRZiskJfJoVSp0nT7k1dKD3dlgZI2feIPQt4Troesi2XeR91WujAh66xYLZBDXXX7k//S7tqVgUQhVDKKQ28JEpIFKpFShQlZCIHP2/ZDyPv2/ReCLVE2MoorNSEpRZhrug5BOx+9nCQTwwCEQZxDcrIklgtl9FEWFiZlob56jNvvzmevJbKaEv5cyVDa0Lk8X1RaIWEusiBod+0/SVIxzPzgJ78T4v5oa4gXlpZbmIsshMDtd/7a2LoqKyhtM7/6uy1EFpKWS5iLLHQfQdawhUAbkHX4FxeTXhOG3NLGKR9IMIyyUF9tvfXMyMkCiCZbbz+dXAMGXLsXKQeZhcnUvW3ajrbVtx+8QKMOrgGuBUNbXstMZAqJ4gTowDU2BPEL7nz0b4p8z6FHnxIJye+5XdoiNF4mR5yFye6mq2TowUAIiCVLz/0/e45L+1GP/dK1GytLSESSoZWFBCPKMoNrc2/rumlzksDJRM6KkzDxYaggW7ptqGRvXfsbRXi2r/6Fa960KL2zYcUaEuX9rGXtNpEFbr319Mi0s4qClP/I4//iGtfztvtpLiVs0bQBPRhRlju4VrhmDIu20MgKk2lnS7cNScawdzf5ANeMaaO1yHLD1xgSZVa4pts2al1OZYOQiNBo6MJC1njC1AvClTBjJYibjlFWflD373z4smmzulWlRStMlq62bhuKs6XbJeLA3a/YAUZt07hHbUjEQEkyCPvmjbPeSheGnB366VM0OXsybdu9/49krcB9J9VroO6vuR7rCsIVzoGBN/jMdMzJwXOVBULiD88YOzmWRFg81//DAWFc3eWzN0OX8mJgKL4guGi6Lh6EZiy2Y12B7Pt//py2blHnKhtL19XR/rpMFxLZussXUw+eGWifYMSu6tLBcLN+cNPQ5Vi3859m72Wpc5WNZRDSQMaoEzan+VlSunwmGhg+zaFrbEIKB0Ka27mPif6+PxN/fv5ceVHD/Aw8298uOyCsk06raemO9Fm6AMa668C4eRsIfzpcL/LhkxeLjrEvBNOeVXPluvSXsLO6ozDKyXcab7q4+zv282JihA7LXd8EhM2JGft+PsG1ZTLGJ3v/pyus8/3c4QHu3PSfxpsu2v7uTbJh+jK5jI3PUs/5hIlgc71hsbeEzen2xsXArBGfmC6sbvqQfr9bxv04adiGzDAE9jaucX9rW/2jV9hZ0wf5BnO3dGCKkSumUmaqGwFmqIQEk3x0w2IiTBa5Of2H+A+HxhJ2170NZarHuGQCs1NCAr0fBrphUZUw7QgoS2VYGiZhWXoqTJkil1BgNmZIWMJi4kgJ07YKmdvapWJOONwzU1P45FL7nLMtvcLkC4kjJeyU9uCv/CYbirGp/Cm9wljCmDqszraXCabeThyxIbG6EmZqNGcoYYbf1daDEhpMCUtDoqjMtI8Dwjc2T293HkzfdFOp0WGS66tLyRf4Owz1GJ5pchwlrKXbmiWlLorpYmdp1Jp6vLNIDwWmoMxDmCEcVlO6uHO5znJUE+t07G28R02Dufazk8SMN6yK25++ktwi6QfhzDJqNrklwvVWVJU4lQnT4X0KJex4xoNKB+0Prr3HCeG24UvXxOEMTP/pUQjTjoPr3K029mOSepnTk/BZGNnVRJjmzHGjsKpHRamhc2VIU7KaOrKLuQaz5hJWQ3aF7Kjo0G8lvqomiQ+Ya58kHQZh9cyexAXH4JkMj1RIwO+L+WlYmj7zkythkxQoavwjetRxG6T/cXn4o5LO6Y13a3mIWF0EK0yBWw7MbYeRI++k9EhNQJh20H2IPdmjAnPtNxESIWx28KCZoCrv2V//T/vzzdd/S8MG02G9yZSwZvVyDxOmMS4kha1nPCjiGS4kQtjXui1Nu/E3TIxPG8earEPYqv6gWMLqgiksN4x1GDcWIuIX5tqvIktc0R5U83jzKgg1w2Rm3ayPy0fmDJSy5G0KMSxWDgqKIenYxLvOVE+Hth7L+Lz2SAlw4RD/UX2J75JmqLbrhLhho85GOjN8HI66fYnaGWWxhFUPU8ISR2xIRD0WynScUcDyvpfEUSJMzlRf0e0VS1l14CU9BlbU0wR6b6+8qv2QQGYojgLMfLXuwzx6hS3p9oxhsRoQyZhwuKL+0RXGhcXph/WjaiPlYQmH6+p/+u84a8MiSlhsRPsD11Y38lly4NlG/cKWyNC36OtJMBEyzgug9E3uS70/OCBMhsWXdEci+ahz2IDu7revsZNVnguli0nsVgb21+y0oPlZknzgZTB1oXtov69x81WeiyldYOC9YwPCZCnTPhMOYbGuugwPHlGDRNM3Jl3x9lKDqs5lKV1LumfZm56X2CLDI/gwYLOpkwxCwzKV6oROmHZcotxRW8qQMcbej+JAVNbSBbiBpHhWnzZjPPTon+K4xQKot/oxGN+ZaRTGZYw4IaRF8mGZ5HGJew8L+2YI+bgcvCCnpduO5+DGZ9dnA5Pn8dhYA2h3neCOZ8fWy1J2zrQ9y3SgiFMoPEe2z7DtIN8Fog2NaJthUnisz+yo92My1+ol23tXgNP7w2yhMZ05+QxFzBx5/J/saChbKFQ4TTeSoXGeTGMYxS+CNkVED64NI0tdWyec54fJzOWCaTvaFDFzHAQJhuUm8CXXt/OBTBP6ZM+xsY2Qvnw63jtT9L7JwgBkLVAG8r7HeYkMj5wFvt6i0CQgy/LlvSxktSkj3l68PcrSHGTlfvG211fbj6I0n7JAbmEgSjuIb1mgkDAQpaVUIQsUFgZGXVpVskApwsCoSqtSFihNGBg1aVXLAqUKA6MirQ5ZoHRhYNil1SULeBEGhlVanbKAN2Fg2KTVLQt4FQaGRVoIsoB3YaDp0kKRBSoRBpoqLSRZoDJhoGnSQpMFKhUGmiItRFmgcmEgdGmhygK1CAOhSgtZFqhNGAhNWuiyQK3CQCjSmiAL1C4M1C2tKbJAEMJAXdKaJAsEIwxULa1pskBQwkBV0pooCwQnDPiW1lRZIEhhwJe0JssCwQoDZUtruiwQtDBQlrRhkAWCFwaKShsWWaARwkBeacMkCzRGGHCRdm/7eve5UHgAjOXhnI2S1UggTSxXO8W5Kr8AEd+UIC3KqpoC0qKsupDSljPIWo6yAkBIaItljRG1IZbzNAQ0Kku0IaTMUfoOmePyRzcofSr1CkUikYiV7wDkxPMEQfXhyQAAAABJRU5ErkJggg=="},1820:function(e,t){e.exports="data:image/png;base64,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"},1821:function(e,t){e.exports="data:image/png;base64,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"},1822:function(e,t){e.exports="data:image/png;base64,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"},1823:function(e,t){e.exports="data:image/png;base64,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"},1824:function(e,t){e.exports="data:image/png;base64,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"},1825:function(e,t){e.exports="data:image/png;base64,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"},1826:function(e,t){e.exports="data:image/png;base64,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"},1827:function(e,t){e.exports="data:image/png;base64,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"},1828:function(e,t){e.exports="data:image/png;base64,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"},1829:function(e,t){e.exports="data:image/png;base64,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"},1830:function(e,t,n){"use strict";n.d(t,"b",(function(){return o}
2)),n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return c}));var i=n(15),r=function(e){if(!e)return"";var t=String(e).trim();if(/^(?:https?:)?\/\//i.test(t)||/^data:image\//i.test(t))return t;if(i.a){var n=String(window.location.origin||"").replace(/\/+$/,""),r=t.replace(/^\/+/,"");return n&&r?"".concat(n,"/").concat(r):t}return t},a=function(e){return e?{id:e.id,name:e.title,category:e.category||"Activity",coordinates:e.coordinates||[54.3773,24.4539],thumbnailImage:r(e.image),location:e.location||"",suitableForTags:e.subcategory?[e.subcategory]:[],itemUrl:e.itemUrl||e.websiteUrl||null,description:e.description||"",rating:e.rating||0,reviewCount:e.reviewCount||0,distance:e.distance||"",phone:e.phone||"",websiteUrl:e.websiteUrl||"",openingHours:e.openingHours||"",priceRange:e.priceRange||"",originalChatCard:e}:null},o=function(e){return e&&Array.isArray(e)?e.filter((function(e){return e.coordinates&&("event"===e.variant||"location"===e.variant)})).map(a):[]},s=function(e){return{type:"FeatureCollection",features:o(e).map((function(e){return{type:"Feature",properties:{id:e.id,name:e.name,category:e.category,thumbnailImage:e.thumbnailImage,location:e.location,suitableForTags:e.suitableForTags,itemUrl:e.itemUrl,originalChatCard:e.originalChatCard},geometry:{type:"Point",coordinates:e.coordinates}}})),crs:null}},c=function(){if("undefined"===typeof window)return null;try{var e=sessionStorage.getItem("askAbuDhabiChatMapCarousel");if(e)return JSON.parse(e)}catch(t){console.error("Error getting chat carousel for map:",t)}return null}},1847:function(e,t,n){"use strict";var i=n(3),r=n(2),a=n(9),o=n(0),s=n.n(o),c=n(865),l=n(27),u=n(1),d=function(e){var t,n,a,o,s,c;return{root:(t={width:Object(u.p)(336),filter:"drop-shadow(0px 4px 30px ".concat(e.palette.common.Black(180),")")},Object(r.a)(t,e.breakpoints.down("md"),{width:"100%",height:"calc(100vh - ".concat(Object(u.q)(128),")"),backgroundColor:e.palette.common.WhiteUpd(),filter:"none",display:"flex",flexDirection:"column"}),Object(r.a)(t,"&.rootWrapper",Object(r.a)({width:Object(u.p)(300),"@media (max-width: 3840px) and (max-height: 2160px)":{width:Object(u.p)(450)},"@media (max-width: 1920px) and (max-height: 1080px)":{width:Object(u.p)(300)}},e.breakpoints.down("md"),{width:Object(u.q)(300)})),t),imgSection:(n={width:Object(u.p)(336),height:Object(u.p)(224)},Object(r.a)(n,e.breakpoints.down("md"),{width:"100%",height:"41.24vh"}),Object(r.a)(n,"&.imgSection",Object(r.a)({width:Object(u.p)(300),height:Object(u.p)(180),"@media (max-width: 3840px) and (max-height: 2160px)":{width:Object(u.p)(450),height:Object(u.p)(220)},"@media (max-width: 1920px) and (max-height: 1080px)":{width:Object(u.p)(300),height:Object(u.p)(180)}},e.breakpoints.down("md"),{width:Object(u.q)(336),height:Object(u.q)(224)})),n),infoSection:(o={display:"flex",flexDirection:"column",alignItems:"flex-start",padding:"var(--mfd-spacing-m)",width:Object(u.p)(336),background:e.palette.common.WhiteUpd()},Object(r.a)(o,e.breakpoints.down("md"),{width:"100%",height:"calc(58vh - ".concat(Object(u.q)(184),")"),position:"relative"}),Object(r.a)(o,"&.infoSection",(a={width:Object(u.p)(300),paddingTop:Object(u.p)(20),"@media (max-width: 3840px) and (max-height: 2160px)":{width:Object(u.p)(450)},"@media (max-width: 1920px) and (max-height: 1080px)":{width:Object(u.p)(300)}},Object(r.a)(a,e.breakpoints.down("md"),{width:Object(u.q)(300)}),Object(r.a)(a,"& a",{"& span":{"&.MuiTypography-root":Object(r.a)({fontSize:Object(u.p)(22)},e.breakpoints.down("md"),{fontSize:Object(u.q)(22)})}}),Object(r.a)(a,"& canvas",Object(r.a)({width:"".concat(Object(u.p)(200)," !important"),"@media (max-width: 3840px) and (max-height: 2160px)":{width:"".concat(Object(u.p)(300)," !important")},"@media (max-width: 1920px) and (max-height: 1080px)":{width:"".concat(Object(u.p)(200)," !important")}},e.breakpoints.down("md"),{width:"".concat(Object(u.q)(200)," !important")})),Object(r.a)(a,"& p",Object(r.a)({marginTop:Object(u.p)(2)},e.breakpoints.down("md"),{marginTop:Object(u.q)(2)})),a)),o),imgAnchor:{height:"100%",width:"100%",display:"flex","& picture":{"& img":{display:"flex"}}},ltGray:Object(i.a)({color:e.palette.common.UnselectedColor,marginTop:"var(--mfd-spacing-xxs)"},e.palette.common.ellipsis(1)),directionRTL:{direction:"rtl"},tagsWrapper:{display:"flex",width:"100%",flexWrap:"wrap",gridGap:"var(--mfd-spacing-xxs)"},tagHeight:Object(r.a)({height:Object(u.p)(24)},e.breakpoints.down("md"),{height:Object(u.q)(24)}),noPadding:{"& .mapboxgl-popup-content":{padding:0,boxShadow:"none"}},tipMarginLeft:{"& .mapboxgl-popup-tip":Object(i.a)({},e.mixins.marginLeft("var(--mfd-spacing-m)"))},mt20:Object(r.a)({marginTop:Object(u.p)(20)},e.breakpoints.down("md"),{marginTop:Object(u.q)(20)}),mtNegative20:Object(r.a)({marginTop:Object(u.p)(-20)},e.breakpoints.down("md"),{marginTop:Object(u.q)(-20)}),bottomWrap:{display:"flex",alignItems:"center",marginTop:"var(--mfd-spacing-m)",width:"100%","&.bottomWrap":Object(r.a)({marginTop:"0",position:"relative",paddingTop:Object(u.p)(49),justifyContent:"center","&::before":{width:"100%",height:Object(u.p)(1),content:"''",position:"absolute",top:Object(u.p)(28),backgroundColor:"#DDDEDE"}},e.breakpoints.down("md"),{paddingTop:Object(u.q)(49),"&::before":{height:Object(u.q)(1),top:Object(u.q)(28)}}),"& .primaryCTA, & .secondaryCTA .MuiButton-label":Object(i.a)({},e.palette.common.ellipsis(1)),"& .secondaryCTA .MuiButton-endIcon":{display:"none"},"& a:nth-child(2)":Object(i.a)({},e.mixins.marginLeft("var(--mfd-spacing-s)")),"& canvas":{height:"auto !important"}},bottomArrow:Object(r.a)({width:0,height:0,left:"50%",borderLeft:"".concat(Object(u.p)(20)," solid transparent"),borderRight:"".concat(Object(u.p)(20)," solid transparent"),borderTop:"".concat(Object(u.p)(20)," solid ").concat(e.palette.common.WhiteUpd()),position:"absolute",transform:"translateX(-50%)"},e.breakpoints.down("md"),{borderLeft:"".concat(Object(u.q)(20)," solid transparent"),borderRight:"".concat(Object(u.q)(20)," solid transparent"),borderTop:"".concat(Object(u.q)(20)," solid ").concat(e.palette.common.WhiteUpd())}),AdMiniMapPopup:Object(i.a)(Object(i.a)(Object(i.a)({height:"100% !important"},e.mixins.left("unset !important")),e.mixins.right("0 !important")),{},{transform:"unset !important","& .mapboxgl-popup-tip":{display:"none"},"& .mapboxgl-popup-content":Object(r.a)({background:"#F7F7F7 !important",minWidth:Object(u.p)(332)},e.breakpoints.down("md"),{minWidth:Object(u.q)(332)}),"& .AdMiniMapRoot":(c={height:Object(u.p)(444),filter:"unset !important"},Object(r.a)(c,e.breakpoints.down("md"),{height:Object(u.q)(444)}
2),Object(r.a)(c,"& .AdMiniMapImgSection",(s={height:Object(u.p)(224)},Object(r.a)(s,e.breakpoints.down("md"),{height:Object(u.q)(224)}),Object(r.a)(s,"& .heartIcon",Object(i.a)({marginTop:"var(--mfd-spacing-s)"},e.mixins.marginRight("var(--mfd-spacing-s)"))),s)),Object(r.a)(c,"& .placesNearbyInfoSection",{background:"transparent !important",maxHeight:Object(u.p)(220),"& .placesNearbyInfoSectionHeading":Object(i.a)({},e.palette.common.ellipsis(1)),"& p":{marginTop:"var(--mfd-spacing-xxxs)",color:"rgba(120, 123, 125, 1)"},"& .tags":{marginTop:"var(--mfd-spacing-s)","& .MuiChip-root":{marginTop:0,border:"1px solid ".concat(e.palette.common.Midnight())}},"& .booknow-btn":{background:"#009086","& .MuiButton-endIcon":Object(i.a)({},e.mixins.marginLeft("var(--mfd-spacing-xxs) !important"))},"& .secondaryCTA":{"& .MuiButton-label":{color:"#009086"}},"& .mfdPlacesNearybyBottomWrap":{marginTop:Object(u.p)(24)}}),c)})}},p=function(e){var t,n,a,o;return{root:(t={width:"336px",filter:"drop-shadow(0px 4px 30px ".concat(e.mixins.Black(180),")")},Object(r.a)(t,e.breakpoints.down("md"),{width:"100%",height:"calc(100vh - 128px)",backgroundColor:e.mixins.White(),filter:"none",display:"flex",flexDirection:"column"}),Object(r.a)(t,"&.rootWrapper",{width:"300px","@media (max-width: 3840px) and (max-height: 2160px)":{width:"450px"},"@media (max-width: 1920px) and (max-height: 1080px)":{width:"300px"}}),t),imgSection:(n={width:"336px",height:"224px"},Object(r.a)(n,e.breakpoints.down("md"),{width:"100%",height:"41.24vh"}),Object(r.a)(n,"&.imgSection",{width:"300px",height:"180px","@media (max-width: 3840px) and (max-height: 2160px)":{width:"450px",height:"220px"},"@media (max-width: 1920px) and (max-height: 1080px)":{width:"300px",height:"180px"}}),n),infoSection:(a={display:"flex",flexDirection:"column",alignItems:"flex-start",padding:"24px",width:"336px",background:e.mixins.White()},Object(r.a)(a,e.breakpoints.down("md"),{width:"100%",height:"calc(58vh - 184px)",position:"relative"}),Object(r.a)(a,"&.infoSection",{width:"300px",paddingTop:"20px","@media (max-width: 3840px) and (max-height: 2160px)":{width:"450px"},"@media (max-width: 1920px) and (max-height: 1080px)":{width:"300px"},"& a":{"& span":{"&.MuiTypography-root":{fontSize:Object(u.p)(22)}}},"& canvas":{width:"200px !important","@media (max-width: 3840px) and (max-height: 2160px)":{width:"300px !important"},"@media (max-width: 1920px) and (max-height: 1080px)":{width:"200px !important"}},"& p":{marginTop:Object(u.p)(2)}}),a),imgAnchor:{height:"100%",width:"100%",display:"flex","& picture":{"& img":{display:"flex"}}},ltGray:{color:e.palette.common.UnselectedColor,marginTop:"8px"},directionRTL:{direction:"rtl"},tagsWrapper:{display:"flex",width:"100%",flexWrap:"wrap",gridGap:"8px"},tagHeight:{height:"24px"},noPadding:{"& .mapboxgl-popup-content":{padding:0,boxShadow:"none"}},tipMarginLeft:{"& .mapboxgl-popup-tip":Object(i.a)({},e.mixins.marginLeft(24))},mt20:{marginTop:"20px"},mtNegative20:{marginTop:"-20px"},bottomWrap:{display:"flex",alignItems:"center",marginTop:"24px",width:"100%","&.bottomWrap":{marginTop:"0",position:"relative",paddingTop:Object(u.p)(49),justifyContent:"center","&::before":{width:"100%",height:"1px",content:"''",position:"absolute",top:"28px",backgroundColor:"#DDDEDE"}},"& .primaryCTA, & .secondaryCTA .MuiButton-label":Object(i.a)({},e.palette.common.ellipsis(1)),"& .secondaryCTA .MuiButton-endIcon":{display:"none"},"& a:nth-child(2)":Object(i.a)({},e.mixins.marginLeft(Object(u.p)(16))),"& canvas":{height:"auto !important"}},bottomArrow:{width:0,height:0,left:"50%",borderLeft:"20px solid transparent",borderRight:"20px solid transparent",borderTop:"20px solid ".concat(e.mixins.White()),position:"absolute",transform:"translateX(-50%)"},AdMiniMapPopup:Object(i.a)(Object(i.a)(Object(i.a)({height:"100% !important"},e.mixins.left("unset !important")),e.mixins.right("0 !important")),{},{transform:"unset !important","& .mapboxgl-popup-tip":{display:"none"},"& .mapboxgl-popup-content":{background:"#F7F7F7 !important",minWidth:"332px"},"& .AdMiniMapRoot":{height:"444px",filter:"unset !important","& .AdMiniMapImgSection":(o={},Object(r.a)(o,e.breakpoints.down("md"),{height:"224px"}),Object(r.a)(o,"& .heartIcon",Object(i.a)({marginTop:Object(u.p)(16)},e.mixins.marginRight(Object(u.p)(16)))),o),"& .placesNearbyInfoSection":{background:"transparent !important",paddingRight:"14px","& p":{marginTop:"4px",color:"rgba(120, 123, 125, 1)"},"& .tags":{marginTop:Object(u.p)(16)},"& .booknow-btn":{background:"#009086","& .MuiButton-endIcon":Object(i.a)({},e.mixins.marginLeft("".concat(Object(u.p)(8)," !important")))},"& .secondaryCTA":{"& .MuiButton-label":{color:"#009086"}}}}})}},h=Object(c.a)((function(e){return Object(l.c)(e)?d(e):p(e)})),m=n(31),f=n(1553),g=n(528),b=n(84),v=n(1545),y=n(120),x=n(47),_=n(159),w=n(1590),O=n(49),j=n(20),C=n(352),E=n(1808),T=n(1604),k=n(15),S=n(119),A=n(105),I=n(130),M=function(e){var t=e.condition,n=e.wrapper,i=e.children;return t?n(i):i};t.a=s.a.memo((function(e){var t=e.item,n=e.popupInfo,c=e.setPopupInfo,u=e.isMobile,d=void 0!==u&&u,p=e.language,L=e.dictionary,B=e.type,R=e.isAdMiniMap,D=void 0!==R&&R,P=h(),z=Object(o.useState)({value:{src:""}}),F=Object(a.a)(z,2),N=F[0],U=F[1],V="ar"==p||"he"==p,W=Object(I.a)(),q=Object(l.c)(W),G=B===x.X,Z=t.category.toLowerCase(),H=t.ticketWebURL,X=Object(w.a)(t,L&&L("".concat(Z).concat(x.ib)))||[];Z===x.w?(X=t.eventCategories,t.eventType&&(X&&X.length>0?X[1]=t.eventType:X[0]=t.eventType)):X.length<1&&(X=t.suitableForTags),Object(o.useEffect)((function(){var e=function(){var e;return Z==x.w?{src:Object(O.get)(t,"thumbnailImage.src",""),alt:Object(O.get)(t,"name","")}:(null===(e=t.thumbnailImage)||void 0===e?void 0:e.src)?{src:Object(O.get)(t,"thumbnailImage.3x2-card.small",""),alt:Object(O.get)(t,"thumbnailImage.alt","")}:"string"===typeof t.thumbnailImage?t.thumbnailImage.startsWith("{")?{src:JSON.parse(t.thumbnailImage).src}:{src:t.thumbnailImage,alt:Object(O.get)(t,"name","")}:{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAACCAQAAAA3fa6RAAAADklEQVR42mNkAANGCAUAACMAA2w/AMgAAAAASUVORK5CYII=",alt:Object(O.get)(t,"name","")}}();U({value:e})}),[t]);var K=Object(o.useCallback)((function(){return s.a.createElement(y.a,{media:{image:N,mobileImage:N,aspectRatio:_.a["3x2-card"],forcedRatio:"3x2"},isParalax:!1,alternateAltText:t.name})}),[N]),Y=function(e){var t=e.logoImage,n=k.a&&window.location.origin||"";
2return s.a.createElement(E.QRCode,{removeQrCodeBehindLogo:"false",download:function(){},qrStyle:"fluid",size:"150",ecLevel:"M",fgColor:"black",value:n+t,logoPadding:0,style:{padding:0}})};return s.a.createElement("div",null,s.a.createElement(M,{condition:!d,wrapper:function(e){var t,i,a;return s.a.createElement(T.c,{anchor:n.anchor||"top",longitude:Number(n.longitude),latitude:Number(n.latitude),onClose:function(){return c(null)},maxWidth:q?void 0:"350px",focusAfterOpen:!0,closeButton:!1,className:Object(j.a)(P.noPadding,P.tipMarginLeft,(a={},Object(r.a)(a,P.mtNegative20,null===(t=n.anchor)||void 0===t?void 0:t.includes("bottom")),Object(r.a)(a,P.mt20,(null===(i=n.anchor)||void 0===i?void 0:i.includes("top"))||!n.anchor),Object(r.a)(a,P.AdMiniMapPopup,D),a))},e)}},s.a.createElement("div",{className:"".concat(P.root," ").concat(G?"rootWrapper":""," ").concat(D?"AdMiniMapRoot":"")},s.a.createElement("div",{className:"".concat(P.imgSection," ").concat(G?"imgSection":""," ").concat(D?"AdMiniMapImgSection":"")},!G&&s.a.createElement(v.a,{itemUniqueKey:t.id,isMfdToast:q,isShowFavorite:q,disableToast:!q&&!!D}),s.a.createElement(M,{condition:t.itemUrl&&!G,wrapper:function(e){return s.a.createElement(C.a,{customHref:t.itemUrl,isCustom:!0,className:P.imgAnchor},e)}},s.a.createElement(K,null))),s.a.createElement("div",{className:"".concat(P.infoSection," ").concat(V&&P.directionRTL," ").concat(G?"infoSection":""," ").concat(D?"placesNearbyInfoSection":"")},s.a.createElement(M,{condition:t.itemUrl&&!G,wrapper:function(e){return s.a.createElement(C.a,{customHref:t.itemUrl,isCustom:!0},e)}},s.a.createElement(m.a,{className:"placesNearbyInfoSectionHeading",variant:"h51"},t.name)),s.a.createElement(m.a,{variant:"body5",className:P.ltGray},t.location||t.regionTag&&"".concat(t.regionTag[0])),X&&X.length>0&&s.a.createElement("div",{className:"".concat(P.tagsWrapper," tags")}
2,X.slice(0,2).map((function(e){return s.a.createElement(f.a,{text:e,className:P.tagHeight})}))),s.a.createElement("div",{className:"".concat(P.bottomWrap," mfdPlacesNearybyBottomWrap ").concat(G?"bottomWrap":"")},!G&&s.a.createElement(s.a.Fragment,null,H&&s.a.createElement(g.a,{className:"booknow-btn",field:L("BookNow"),type:"button",buttonType:"form",size:"small",hasBorder:!1,href:H,target:"_blank",onClick:function(){Object(A.b)(Object(i.a)(Object(i.a)({},S.a.pageBodyInteraction.bookNowCTA),{},{cta_location:"".concat(H)}))}},s.a.createElement(m.a,{variant:"subtitle2",component:"span",color:"inherit",className:"primaryCTA",title:L("BookNow")},s.a.createElement(b.Text,{field:{value:L("BookNow")}}))),s.a.createElement(g.a,{component:"span",field:{value:{text:L("ViewDetails"),href:t.itemUrl,target:"_blank"}},hasBorder:!1,size:"small",buttonType:"secondary",className:"secondaryCTA",title:L("ViewDetails"),onClick:function(){var e;Object(A.b)(Object(i.a)(Object(i.a)({},S.a.pageBodyInteraction.viewDetailsCTA),{},{cta_location:"".concat(k.a&&(null===(e=window.location)||void 0===e?void 0:e.origin)||"").concat(t.itemUrl)}))}})),G&&s.a.createElement(Y,{logoImage:t.itemUrl}))))))}))},1851:function(e,t,n){"use strict";n.d(t,"c",(function(){return y})),n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return x}));var i=n(106),r=n(0),a=n.n(r),o=n(1604),s=n(2),c=n(865),l=n(1),u=n(98),d=Object(c.a)((function(e){var t;return{root:{position:"relative",cursor:"pointer",display:"flex",transition:"all 0.2s ease-in","&.hovered , &.active":{"& svg":Object(s.a)({transition:"all 0.2s ease-in",width:Object(l.p)(45),height:Object(l.p)(45),"& path:first-of-type":{fill:e.palette.common.Mangrove()}},Object(l.e)("lg"),{width:Object(l.q)(45),height:Object(l.q)(45)})},"& svg":Object(s.a)({transition:"all 0.2s ease-in",width:Object(l.p)(32),height:Object(l.p)(32),"& path:first-of-type":{fill:e.palette.common.Palm()},"& path":{fill:e.palette.common.WhiteUpd(),stroke:e.palette.common.WhiteUpd()}},Object(l.e)("lg"),{width:Object(l.q)(32),height:Object(l.q)(32)})},cluster:(t={transition:"all 0.2s ease-in",position:"relative",cursor:"pointer",width:Object(l.p)(48),height:Object(l.p)(48),borderRadius:"50%",boxShadow:u.a.raised,backgroundColor:e.palette.common.WhiteUpd(),display:"flex",justifyContent:"center",alignItems:"center",fontFamily:e.custom.fontFamily.primaryBold,fontSize:Object(l.p)(16),lineHeight:1.3},Object(s.a)(t,e.breakpoints.down("lg"),{width:Object(l.q)(48),height:Object(l.q)(48),fontSize:Object(l.q)(16)}),Object(s.a)(t,"&:hover",Object(s.a)({},Object(l.f)("lg"),Object(s.a)({transition:"all 0.2s ease-in",width:Object(l.p)(72),height:Object(l.p)(72)},e.breakpoints.down("lg"),{width:Object(l.q)(72),height:Object(l.q)(72)}))),Object(s.a)(t,"& span",{color:"".concat(e.palette.common.Palm()," !important")}),t),currentLocationMarker:{width:Object(l.p)(23),height:Object(l.p)(23),borderRadius:"100%",backgroundColor:e.palette.common.Pacific(),border:"4px solid ".concat(e.palette.common.WhiteUpd()),boxShadow:"0px 4px 8px 0px #0000007A"}}}
2)),p=n(1519),h=n(1694),m=n.n(h);function f(e,t){return Object(r.useMemo)((function(){return m()(e,t)}),[e,t])}var g=n(1682),b=["longitude","latitude","title","onClick","isActive","itemUniqueKey"],v=["longitude","latitude"],y=function(e){var t=e.longitude,n=e.latitude,r=(e.title,e.onClick),s=e.isActive,c=e.itemUniqueKey,l=void 0===c?"":c,u=Object(i.a)(e,b),h=d(),m=f((function(e){r(e)}),300);return a.a.createElement(o.b,{onClick:m,longitude:t,latitude:n},a.a.createElement(p.a,Object.assign({className:"".concat(h.root," location ").concat(Boolean(s)?"active":""),id:l},u),Object(g.a)("mapMarker","mapMarker")))},x=function(e){var t=e.longitude,n=e.latitude,r=Object(i.a)(e,v),s=d();return a.a.createElement(o.b,{longitude:t,latitude:n},a.a.createElement(p.a,Object.assign({className:s.currentLocationMarker},r)))},_=function(e){var t=e.type,n=void 0===t?"location":t,i=e.count,r=void 0===i?0:i,s=e.longitude,c=void 0===s?0:s,l=e.latitude,u=void 0===l?0:l,h=e.onClick,m=void 0===h?function(){}:h,g=d(),b=f((function(e){m(e)}),300);return a.a.createElement(o.b,{longitude:c,latitude:u},a.a.createElement(p.a,{onClick:b,className:"".concat(g.cluster," ").concat(function(){switch(n){case"activity":return"activityCluster";case"facility":return"facilityCluster";default:return""}}())},a.a.createElement("span",{style:{color:function(){switch(n){case"facility":return"#003451";default:return"#FFFFFF"}}()}},r)))}},1867:function(e,t,n){"use strict";n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return f}));var i=n(34),r=n(3),a=n(9),o=n(0),s=n.n(o),c=n(16),l=n.n(c),u=n(15),d=n(545),p=n(1799);function h(){h=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",o=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(T){s=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var r=t&&t.prototype instanceof d?t:d,a=Object.create(r.prototype),o=new j(i||[]);return a._invoke=function(e,t,n){var i="suspendedStart";return function(r,a){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw a;return E()}for(n.method=r,n.arg=a;;){var o=n.delegate;if(o){var s=_(o,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var c=l(e,t,n);if("normal"===c.type){if(i=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i="completed",n.method="throw",n.arg=c.arg)}}}(e,n,o),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}e.wrap=c;var u={};function d(){}function p(){}function m(){}var f={};s(f,r,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(C([])));b&&b!==t&&n.call(b,r)&&(f=b);var v=m.prototype=d.prototype=Object.create(f);function y(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){var i;this._invoke=function(r,a){function o(){return new t((function(i,o){!function i(r,a,o,s){var c=l(e[r],e,a);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){i("next",e,o,s)}),(function(e){i("throw",e,o,s)})):t.resolve(d).then((function(e){u.value=e,o(u)}),(function(e){return i("throw",e,o,s)}))}s(c.arg)}(r,a,i,o)}))}return i=i?i.then(o,o):o()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var i=l(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,u;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function C(e){if(e){var t=e[r];if(t)return t.call(e);
2if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:E}}function E(){return{value:void 0,done:!0}}return p.prototype=m,s(v,"constructor",m),s(m,"constructor",p),p.displayName=s(m,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,s(e,o,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},y(x.prototype),s(x.prototype,a,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new x(c(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},y(v),s(v,o,"Generator"),s(v,r,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=C,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return o.type="throw",o.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,u):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}var m=function(e){var t,n=Object(p.a)().isDebugMode,o=s.a.useState({isUserInsideAbudhabi:!1,currentLocationMarker:null}),c=Object(a.a)(o,2),u=c[0],m=c[1],f=s.a.useCallback((function(e,t){m((function(n){return Object(r.a)(Object(r.a)({},n),{},{isUserInsideAbudhabi:e,currentLocationMarker:Object(d.d)(t)})}))}),[]);return s.a.useEffect((function(){function t(){return(t=Object(i.a)(h().mark((function t(){var i,r,a,o,s;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=l()(e,"appConfig.FETCH_USER_COUNTRY",""),t.t0=n,t.t0){t.next=6;break}return t.next=5,Object(d.b)(i);case 5:t.t0=t.sent;case 6:if(r=t.t0){t.next=9;break}return t.abrupt("return");case 9:a=l()(e,"LnglatSW",[]),o=l()(e,"LnglatNE",[]),s=a&&"string"===typeof(null===a||void 0===a?void 0:a.value)&&o&&"string"===typeof(null===o||void 0===o?void 0:o.value)?[a.value.split(","),o.value.split(",")]:[[0,0],[0,0]],Object(d.e)({callback:f,abuDhabiBounds:s,currentLocationDataFromApi:r,forcePosition:n});case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}!function(){t.apply(this,arguments)}()}),[null===(t=e.appConfig)||void 0===t?void 0:t.FETCH_USER_COUNTRY,e.LnglatSW,e.LnglatNE,f,n]),u},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e&&u.a&&("geolocation"in navigator?window.navigator.geolocation.getCurrentPosition((function(n){var i=n.coords,r=i.latitude,a=i.longitude;t&&t(!0),e.flyTo({center:[a,r],zoom:9,speed:1.2,curve:1.42,essential:!0})}),(function(e){console.error("Error getting user location:",e)}),{enableHighAccuracy:!0,timeout:1e4,maximumAge:0}):console.error("Geolocation is not supported by this browser."))}},1868:function(e,t,n){},1869:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var i=n(9),r=n(3),a=n(106),o=n(0),s=n.n(o),c=["count","wrapper","className","containerClassName","containerTestId","circle","style"],l=s.a.createContext({});function u(e){for(var t,n,o,u=e.count,d=void 0===u?1:u,p=e.wrapper,h=e.className,m=e.containerClassName,f=e.containerTestId,g=e.cir
2cle,b=void 0!==g&&g,v=e.style,y=Object(a.a)(e,c),x=s.a.useContext(l),_=Object(r.a)({},y),w=0,O=Object.entries(y);w<O.length;w++){var j=Object(i.a)(O[w],2),C=j[0];"undefined"===typeof j[1]&&delete _[C]}var E=Object(r.a)(Object(r.a)(Object(r.a)({},x),_),{},{circle:b}),T=Object(r.a)(Object(r.a)({},v),function(e){var t=e.baseColor,n=e.highlightColor,i=e.width,r=e.height,a=e.borderRadius,o=e.circle,s=e.direction,c=e.duration,l=e.enableAnimation,u=void 0===l||l,d=e.customHighlightBackground,p={};return"rtl"===s&&(p["--animation-direction"]="reverse"),"number"===typeof c&&(p["--animation-duration"]="".concat(c,"s")),u||(p["--pseudo-element-display"]="none"),"string"!==typeof i&&"number"!==typeof i||(p.width=i),"string"!==typeof r&&"number"!==typeof r||(p.height=r),"string"!==typeof a&&"number"!==typeof a||(p.borderRadius=a),o&&(p.borderRadius="50%"),"undefined"!==typeof t&&(p["--base-color"]=t),"undefined"!==typeof n&&(p["--highlight-color"]=n),"string"===typeof d&&(p["--custom-highlight-background"]=d),p}(E)),k="react-loading-skeleton";h&&(k+=" ".concat(h));for(var S=null!==(t=E.inline)&&void 0!==t&&t,A=[],I=Math.ceil(d),M=0;M<I;M++){var L=T;if(I>d&&M===I-1){var B=null!==(n=L.width)&&void 0!==n?n:"100%",R=d%1,D="number"===typeof B?B*R:"calc(".concat(B," * ").concat(R,")");L=Object(r.a)(Object(r.a)({},L),{},{width:D})}var P=s.a.createElement("span",{className:k,style:L,key:M},"\u200c");S?A.push(P):A.push(s.a.createElement(s.a.Fragment,{key:M},P,s.a.createElement("br",null)))}return s.a.createElement("span",{className:m,"data-testid":f,"aria-live":"polite","aria-busy":null===(o=E.enableAnimation)||void 0===o||o},p?A.map((function(e,t){return s.a.createElement(p,{key:t},e)})):A)}},1870:function(e,t,n){},1871:function(e,t,n){"use strict";var i=n(3),r=n(9),a=n(0),o=n.n(a),s=n(1604),c=n(1672),l=n.n(c),u=n(15),d=n(1675),p=n(209),h=n(1885),m=n(1867),f=n(1511);t.a=Object(p.a)((function(e){var t=e.mapBoxStyle,n=e.token,c=e.geoJsonData,p=e.selectedItem,g=e.LnglatSW,b=e.LnglatNE,v=e.defaultLatlng,y=e.language,x=(e.dictionary,e.setIsFlying),_=e.isFlying,w=e.appConfig,O=e.onShowMapPopup,j=Object(a.useMemo)((function(){if(v&&"string"===typeof v&&v.includes(",")){var e=v.split(",");return{latitude:parseFloat(e[0])||24.4539,longitude:parseFloat(e[1])||54.3773}}return{latitude:24.4539,longitude:54.3773}}),[v]),C=Object(a.useState)(j),E=Object(r.a)(C,1)[0],T=Object(a.useState)(null),k=Object(r.a)(T,2),S=k[0],A=k[1],I=Object(a.useState)(null),M=Object(r.a)(I,2),L=M[0],B=M[1],R=Object(a.useState)(!1),D=Object(r.a)(R,2),P=D[0],z=D[1],F=Object(a.useState)(!1),N=Object(r.a)(F,2),U=(N[0],N[1]),V=Object(a.useRef)(),W=(Object(f.a)("(max-width:".concat(1023.85,"px)")),Object(a.useMemo)((function(){return"ar"===y||"he"===y}),[y]),Object(m.b)({appConfig:w,LnglatSW:g,LnglatNE:b})),q=Object(a.useCallback)((function(){u.a&&(U(window.innerWidth<1024),P||z(!0))}),[P]);Object(a.useEffect)((function(){if(q(),u.a)return window.addEventListener("resize",q),function(){return window.removeEventListener("resize",q)}}),[q]),Object(a.useEffect)((function(){c&&"none"!==c.type&&c.features&&(A(c),V.current&&setTimeout((function(){V.current.resize()}),200))}),[c]),Object(a.useEffect)((function(){p?(B(p),p.coordinates&&V.current&&G(p.coordinates,15)):B(null)}),[p]);var G=Object(a.useCallback)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;V.current&&!_&&(x(!0),V.current.flyTo({center:e,zoom:t,bearing:0,screenSpeed:2,curve:1.35,easing:function(e){return e},essential:!0}))}),[_,x]),Z=Object(a.useCallback)((function(){V.current.on("moveend",(function(){x(!1)}));var e=document.getElementById("zoomIn"),t=document.getElementById("zoomOut");if(e&&e.addEventListener("click",(function(){V.current.zoomIn()})),t&&t.addEventListener("click",(function(){V.current.zoomOut()})),"ar"===y&&"loaded"!==l.a.getRTLTextPluginStatus()&&l.a.setRTLTextPlugin("https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js",null,!0),V.current.getStyle().layers.forEach((function(e){if(e.layout&&e.layout["text-field"]&&"cluster-count"!==e.id){var t="zh"===y?"zh-Hant":y;V.current.getMap().setLayoutProperty(e.id,"text-field",["coalesce",["get","name_".concat(t)],["get","name_en"]])}})),S&&S.features&&S.features.length>0){var n=S.features.map((function(e){return e.geometry.coordinates}));if(n.length>0){var i=n.reduce((function(e,t){return e.extend(t)}),new l.a.LngLatBounds(n[0],n[0]));V.current.fitBounds(i,{padding:{top:100,bottom:200,left:50,right:50},maxZoom:14})}}}),[y,S,x]),H=Object(a.useCallback)((function(e,t){B(t.properties),O&&O(Object(i.a)(Object(i.a)({},t.properties),{},{coordinates:t.geometry.coordinates}))}),[O]),X=Object(a.useMemo)((function(){return(null===g||void 0===g?void 0:g.value)&&(null===b||void 0===b?void 0:b.value)?[g.value.split(","),b.value.split(",")]:null}),[g,b]),K=Object(a.useMemo)((function(){return{latitude:E.latitude,longitude:E.longitude,zoom:d.a.zoom||10}}),[E]),Y=Object(a.useMemo)((function(){return{radius:140,maxZoom:20}}),[]);return P&&S?o.a.createElement("div",{style:{pointerEvents:_?"none":"auto",height:"100vh",width:"100%"}},o.a.createElement(s.e,{mapLib:l.a,initialViewState:K,style:{height:"100%",width:"100%"},mapboxAccessToken:n,mapStyle:t,ref:V,onLoad:Z,maxBounds:X,dragPan:!0,scrollZoom:!0,doubleClickZoom:!0,reuseMaps:!0,minZoom:3,maxZoom:22,pitchWithRotate:!1,touchZoomRotate:!0},o.a.createElement(h.a,{detailPageType:"",onClickMarker:H,geojsonData:S.features,selectedItem:L,sItemGeoJson:"",clusterProps:Y,currentLocationMarker:null===W||void 0===W?void 0:W.currentLocationMarker}))):null}))},1884:function(e,t,n){"use strict";n.d(t,"a",(function(){return Fa}));var i=n(0),r=n.n(i),a=n(570),o=n.n(a),s=c()?i.useLayoutEffect:i.useEffect;o.a,"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math&&self;function c(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}var l=n(60);var u=function(e){var t=e.children,n=e.type,r=void 0===n?"reach-portal":n,a=Object(i.useRef)(null),o=Object(i.useRef)(null),c=function(){var e=Object(i.useState)(Object.create(null))[1];return Object(i.useCallback)((function(){e(Object.create(null))}),[])}();return s((function(){if(a.current){var e=a.current.ownerDocument;return o.current=null==e?void 0:e.createElement(r),e.body.appendChild(o.current),c(),function(){o.current&&o.current.ownerDocument&&o.current.ownerDocument.body.removeChild(o.current)}}}),[r,c]),o.current?Object(l.createPortal)(t,o.current):Object(i.createElement)("span",{ref:a})},d=function(){return(d=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function p(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function h(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);
2if(e&&"number"===typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o}function f(e,t,n){if(n||2===arguments.length)for(var i,r=0,a=t.length;r<a;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var g,b,v={};!function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}(g||(g={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(b||(b={}));var y,x=g.Start,_=g.Stop,w=g.Raise,O=g.Send,j=g.Cancel,C=g.NullEvent,E=g.Assign,T=(g.After,g.DoneState,g.Log),k=g.Init,S=g.Invoke,A=(g.ErrorExecution,g.ErrorPlatform),I=g.ErrorCustom,M=g.Update,L=g.Choose,B=g.Pure,R=n(1652);function D(e,t,n){void 0===n&&(n=".");var i=F(e,n),r=F(t,n);return te(r)?!!te(i)&&r===i:te(i)?i in r:Object.keys(i).every((function(e){return e in r&&D(i[e],r[e])}))}function P(e){try{return te(e)||"number"===typeof e?"".concat(e):e.type}catch(t){throw new Error("Events must be strings or objects with a string event.type property.")}}function z(e,t){try{return $(e)?e:e.toString().split(t)}catch(n){throw new Error("'".concat(e,"' is not a valid state path."))}}function F(e,t){return"object"===typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:$(e)?N(e):"string"!==typeof e?e:N(z(e,t));var n}function N(e){if(1===e.length)return e[0];for(var t={},n=t,i=0;i<e.length-1;i++)i===e.length-2?n[e[i]]=e[i+1]:(n[e[i]]={},n=n[e[i]]);return t}function U(e,t){for(var n={},i=Object.keys(e),r=0;r<i.length;r++){var a=i[r];n[a]=t(e[a],a,e,r)}return n}function V(e,t,n){var i,r,a={};try{for(var o=h(Object.keys(e)),s=o.next();!s.done;s=o.next()){var c=s.value,l=e[c];n(l)&&(a[c]=t(l,c,e))}}catch(u){i={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}var W=function(e){return function(t){var n,i,r=t;try{for(var a=h(e),o=a.next();!o.done;o=a.next()){r=r[o.value]}}catch(s){n={error:s}}finally{try{o&&!o.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return r}};function q(e){return e?te(e)?[[e]]:G(Object.keys(e).map((function(t){var n=e[t];return"string"===typeof n||n&&Object.keys(n).length?q(e[t]).map((function(e){return[t].concat(e)})):[[t]]}))):[[]]}function G(e){var t;return(t=[]).concat.apply(t,f([],m(e),!1))}function Z(e){return $(e)?e:[e]}function H(e){return void 0===e?[]:Z(e)}function X(e,t,n){var i,r;if(ee(e))return e(t,n.data);var a={};try{for(var o=h(Object.keys(e)),s=o.next();!s.done;s=o.next()){var c=s.value,l=e[c];ee(l)?a[c]=l(t,n.data):a[c]=l}}catch(u){i={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function K(e){return e instanceof Promise||!(null===e||!ee(e)&&"object"!==typeof e||!ee(e.then))}function Y(e,t){return U(e.states,(function(e,n){if(e){var i=(te(t)?void 0:t[n])||(e?e.current:void 0);if(i)return{current:i,states:Y(e,i)}}}))}function J(e,t,n,i){return R.a||Q(!!e,"Attempting to update undefined context"),e?n.reduce((function(e,n){var r,a,o=n.assignment,s={state:i,action:n,_event:t},c={};if(ee(o))c=o(e,t.data,s);else try{for(var l=h(Object.keys(o)),u=l.next();!u.done;u=l.next()){var d=u.value,p=o[d];c[d]=ee(p)?p(e,t.data,s):p}}catch(m){r={error:m}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(r)throw r.error}}return Object.assign({},e,c)}),e):e}var Q=function(){};function $(e){return Array.isArray(e)}function ee(e){return"function"===typeof e}function te(e){return"string"===typeof e}function ne(e,t){if(e)return te(e)?{type:"xstate.guard",name:e,predicate:t?t[e]:void 0}:ee(e)?{type:"xstate.guard",name:e.name,predicate:e}:e}R.a||(Q=function(e,t){var n=e instanceof Error?e:void 0;if((n||!e)&&void 0!==console){var i=["Warning: ".concat(t)];n&&i.push(n),console.warn.apply(console,i)}});var ie=function(){return"function"===typeof Symbol&&Symbol.observable||"@@observable"}();(y={})[ie]=function(){return this},y[Symbol.observable]=function(){return this};function re(e){return!!e&&"__xstatenode"in e}function ae(e,t){return te(e)||"number"===typeof e?d({type:e},t):e}function oe(e,t){if(!te(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var n=ae(e);
2return d({name:n.type,data:n,$$type:"scxml",type:"external"},t)}function se(e,t){return Z(t).map((function(t){return"undefined"===typeof t||"string"===typeof t||re(t)?{target:t,event:e}:d(d({},t),{event:e})}))}function ce(e,t,n,i,r){var a=e.options.guards,o={state:r,cond:t,_event:i};if("xstate.guard"===t.type)return((null===a||void 0===a?void 0:a[t.name])||t.predicate)(n,i.data,o);var s=null===a||void 0===a?void 0:a[t.type];if(!s)throw new Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return s(n,i.data,o)}function le(e){return"string"===typeof e?{type:e}:e}function ue(e,t,n){var i=function(){},r="object"===typeof e,a=r?e:null;return{next:((r?e.next:e)||i).bind(a),error:((r?e.error:t)||i).bind(a),complete:((r?e.complete:n)||i).bind(a)}}function de(e,t){return"".concat(e,":invocation[").concat(t,"]")}function pe(e){return(e.type===w||e.type===O&&e.to===b.Internal)&&"number"!==typeof e.delay}var he=function(e){return"atomic"===e.type||"final"===e.type};function me(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function fe(e){return me(e).filter((function(e){return"history"!==e.type}))}function ge(e){var t=[e];return he(e)?t:t.concat(G(fe(e).map(ge)))}function be(e,t){var n,i,r,a,o,s,c,l,u=ve(new Set(e)),d=new Set(t);try{for(var p=h(d),m=p.next();!m.done;m=p.next())for(var f=(j=m.value).parent;f&&!d.has(f);)d.add(f),f=f.parent}catch(C){n={error:C}}finally{try{m&&!m.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}
2var g=ve(d);try{for(var b=h(d),v=b.next();!v.done;v=b.next()){if("compound"!==(j=v.value).type||g.get(j)&&g.get(j).length){if("parallel"===j.type)try{for(var y=(o=void 0,h(fe(j))),x=y.next();!x.done;x=y.next()){var _=x.value;d.has(_)||(d.add(_),u.get(_)?u.get(_).forEach((function(e){return d.add(e)})):_.initialStateNodes.forEach((function(e){return d.add(e)})))}}catch(E){o={error:E}}finally{try{x&&!x.done&&(s=y.return)&&s.call(y)}finally{if(o)throw o.error}}}else u.get(j)?u.get(j).forEach((function(e){return d.add(e)})):j.initialStateNodes.forEach((function(e){return d.add(e)}))}}catch(T){r={error:T}}finally{try{v&&!v.done&&(a=b.return)&&a.call(b)}finally{if(r)throw r.error}}try{for(var w=h(d),O=w.next();!O.done;O=w.next()){var j;for(f=(j=O.value).parent;f&&!d.has(f);)d.add(f),f=f.parent}}catch(k){c={error:k}}finally{try{O&&!O.done&&(l=w.return)&&l.call(w)}finally{if(c)throw c.error}}return d}function ve(e){var t,n,i=new Map;try{for(var r=h(e),a=r.next();!a.done;a=r.next()){var o=a.value;i.has(o)||i.set(o,[]),o.parent&&(i.has(o.parent)||i.set(o.parent,[]),i.get(o.parent).push(o))}}catch(s){t={error:s}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return i}function ye(e,t){return function e(t,n){var i=n.get(t);if(!i)return{};if("compound"===t.type){var r=i[0];if(!r)return{};if(he(r))return r.key}var a={};return i.forEach((function(t){a[t.key]=e(t,n)})),a}(e,ve(be([e],t)))}function xe(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function _e(e,t){return"compound"===t.type?fe(t).some((function(t){return"final"===t.type&&xe(e,t)})):"parallel"===t.type&&fe(t).every((function(t){return _e(e,t)}))}function we(e){return new Set(G(e.map((function(e){return e.tags}))))}var Oe=oe({type:k});function je(e,t){return t&&t[e]||void 0}function Ce(e,t){var n;if(te(e)||"number"===typeof e)n=ee(i=je(e,t))?{type:e,exec:i}:i||{type:e,exec:void 0};else if(ee(e))n={type:e.name||e.toString(),exec:e};else{var i;if(ee(i=je(e.type,t)))n=d(d({},e),{exec:i});else if(i){var r=i.type||e.type;n=d(d(d({},i),e),{type:r})}else n=e}return n}var Ee=function(e,t){return e?($(e)?e:[e]).map((function(e){return Ce(e,t)})):[]};function Te(e){var t=Ce(e);return d(d({id:te(e)?e:t.id},t),{type:t.type})}function ke(e,t){return{type:w,event:"function"===typeof e?e:ae(e),delay:t?t.delay:void 0,id:null===t||void 0===t?void 0:t.id}}function Se(e,t){return{to:t?t.to:void 0,type:O,event:ee(e)?e:ae(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:ee(e)?e.name:P(e)}}var Ae=function(e){return{type:j,sendId:e}};function Ie(e){var t=ee(e)?e:Te(e);return{type:g.Stop,activity:t,exec:void 0}}function Me(e,t){var n="".concat(g.DoneState,".").concat(e),i={type:n,data:t,toString:function(){return n}};return i}function Le(e,t){var n="".concat(g.DoneInvoke,".").concat(e),i={type:n,data:t,toString:function(){return n}};return i}function Be(e,t){var n="".concat(g.ErrorPlatform,".").concat(e),i={type:n,data:t,toString:function(){return n}};return i}function Re(e,t,n,i,r,a,o){void 0===o&&(o=!1);var s=o?[]:function(e){var t,n,i=[];try{for(var r=h(e),a=r.next();!a.done;a=r.next())for(var o=a.value,s=0;s<o.actions.length;)o.actions[s].type!==E?s++:(i.push(o.actions[s]),o.actions.splice(s,1))}catch(c){t={error:c}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return i}(r),c=s.length?J(n,i,s,t):n,l=o?[n]:void 0,u=[];function p(r,s){var p;switch(s.type){case w:var h=function(e,t,n,i){var r,a={_event:n},o=oe(ee(e.event)?e.event(t,n.data,a):e.event);if(te(e.delay)){var s=i&&i[e.delay];r=ee(s)?s(t,n.data,a):s}else r=ee(e.delay)?e.delay(t,n.data,a):e.delay;return d(d({},e),{type:w,_event:o,delay:r})}(s,c,i,e.options.delays);return a&&"number"===typeof h.delay&&a(h,c,i),h;case O:var v=function(e,t,n,i){var r,a={_event:n},o=oe(ee(e.event)?e.event(t,n.data,a):e.event);if(te(e.delay)){var s=i&&i[e.delay];r=ee(s)?s(t,n.data,a):s}else r=ee(e.delay)?e.delay(t,n.data,a):e.delay;var c=ee(e.to)?e.to(t,n.data,a):e.to;return d(d({},e),{to:c,_event:o,event:o.data,delay:r})}(s,c,i,e.options.delays);if(!R.a){var y=s.delay;Q(!te(y)||"number"===typeof v.delay,"No delay reference for delay expression '".concat(y,"' was found on machine '").concat(e.id,"'"))}return a&&v.to!==b.Internal&&("entry"===r?u.push(v):a(v,c,i)),v;case T:var x=function(e,t,n){return d(d({},e),{value:te(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})}(s,c,i);return null===a||void 0===a||a(x,c,i),x;case L:if(!(S=null===(p=s.conds.find((function(n){var r=ne(n.cond,e.o
2ptions.guards);return!r||ce(e,r,c,i,a?void 0:t)})))||void 0===p?void 0:p.actions))return[];var j=m(Re(e,t,c,i,[{type:r,actions:Ee(H(S),e.options.actions)}],a,o),2),C=j[0],k=j[1];return c=k,null===l||void 0===l||l.push(c),C;case B:var S;if(!(S=s.get(c,i.data)))return[];var A=m(Re(e,t,c,i,[{type:r,actions:Ee(H(S),e.options.actions)}],a,o),2),I=A[0],M=A[1];return c=M,null===l||void 0===l||l.push(c),I;case _:x=function(e,t,n){var i=ee(e.activity)?e.activity(t,n.data):e.activity,r="string"===typeof i?{id:i}:i;return{type:g.Stop,activity:r}}(s,c,i);return null===a||void 0===a||a(x,n,i),x;case E:c=J(c,i,[s],a?void 0:t),null===l||void 0===l||l.push(c);break;default:var D=Ce(s,e.options.actions),P=D.exec;if(a)a(D,c,i);else if(P&&l){var z=l.length-1;D=d(d({},D),{exec:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];P.apply(void 0,f([l[z]],m(t),!1))}})}return D}}return[G(r.map((function(e){var t,n,r=[];try{for(var o=h(e.actions),s=o.next();!s.done;s=o.next()){var l=s.value,d=p(e.type,l);d&&(r=r.concat(d))}}catch(m){t={error:m}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return u.forEach((function(e){a(e,c,i)})),u.length=0,r}))),c]}function De(e){return"object"===typeof e&&null!==e&&("value"in e&&"_event"in e)}var Pe,ze=function(){function e(e){var t,n,i=this;this.actions=[],this.activities=v,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||v,this.meta=(void 0===(n=e.configuration)&&(n=[]),n.reduce((function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e}),{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return function(e){return f([],m(new Set(G(f([],m(e.map((function(e){return e.ownEvents}))),!1)))),!1)}(i.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:Oe,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var i=Oe;return new e({value:t.value,context:n,_event:i,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),te(e))return[e];var i=Object.keys(e);return i.concat.apply(i,f([],m(i.map((function(i){return n.toStrings(e[i],t).map((function(e){return i+t+e}))}))),!1))},e.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var t=e.tags;e.machine;var n=p(e,["configuration","transitions","tags","machine"]);return d(d({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return D(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;R.a&&Q(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null===n||void 0===n?void 0:n.transitions.length)&&n.transitions.some((function(e){return void 0!==e.target||e.actions.length}))},e}();!function(e){e[e.Effect=1]="Effect",e[e.LayoutEffect=2]="LayoutEffect"}(Pe||(Pe={}));var Fe=i.useLayoutEffect,Ne={deferEvents:!1},Ue=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=d(d({},Ne),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents)return void this.schedule(e);this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(this.initialized&&!this.processingEvent){if(0!==this.queue.length)throw new Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()}else this.queue.push(e)},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(t){throw this.clear(),t}finally{this.processingEvent=!1}},e}(),Ve=[],We=function(e,t){Ve.push(e);var n=t(e);return Ve.pop(),n};function qe(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[ie]=function(){return this},t}function Ge(e,t,n){var i=qe(t);if(i.deferred=!0,re(e)){var r=i.state=We(void 0,(function(){return(n?e.withContext(n):e).initialState}));i.getSnapshot=function(){return r}}return i}var Ze=new Map,He=0,Xe=function(){return"x:".concat(He++)},Ke=function(e,t){return Ze.set(e,t),e},Ye=function(e){return Ze.get(e)},Je=function(e){Ze.delete(e)},Qe=n(1958);function $e(e,t){void 0===t&&(t={});var n=e.initialState,i=new Set,r=[],a=!1,o=function(e){var t;return d(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[ie]=function(){return this},t),e)}({id:t.id,send:function(t){r.push(t),function(){if(!a){for(a=!0;r.length>0;){var t=r.shift();
2n=e.transition(n,t,s),i.forEach((function(e){return e.next(n)}))}a=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,r){var a=ue(e,t,r);return i.add(a),a.next(n),{unsubscribe:function(){i.delete(a)}}}}),s={parent:t.parent,self:o,id:t.id||"anonymous",observers:i};return n=e.start?e.start(s):n,o}var et,tt={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(et||(et={}));var nt=function(){function e(t,n){void 0===n&&(n=e.defaultOptions);var i=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=et.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if($(e))return i.batch(e),i.state;var n=oe(ae(e,t));if(i.status===et.Stopped)return R.a||Q(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(i.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),i.state;if(i.status!==et.Running&&!i.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(i.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return i.scheduler.schedule((function(){i.forward(n);var e=i._nextState(n);i.update(e,n)})),i._state},this.sendTo=function(e,t,n){var r,a=i.parent&&(t===b.Parent||i.parent.id===t),o=a?i.parent:te(t)?t===b.Internal?i:i.children.get(t)||Ye(t):(r=t)&&"function"===typeof r.send?t:void 0;if(o)if("machine"in o){if(i.status!==et.Stopped||i.parent!==o||i.state.done){var s=d(d({},e),{name:e.name===I?"".concat(Be(i.id)):e.name,origin:i.sessionId});!n&&i.machine.config.predictableActionArguments?i._outgoingQueue.push([o,s]):o.send(s)}}else!n&&i.machine.config.predictableActionArguments?i._outgoingQueue.push([o,e.data]):o.send(e.data);else{if(!a)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(i.id,"'."));R.a||Q(!1,"Service '".concat(i.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,r){void 0===r&&(r=i.machine.options.actions);var a=e.exec||je(e.type,r),o=ee(a)?a:a?a.exec:e.exec;if(o)try{return o(t,n.data,i.machine.config.predictableActionArguments?{action:e,_event:n}:{action:e,state:i.state,_event:n})}catch(k){throw i.parent&&i.parent.send({type:"xstate.error",data:k}),k}switch(e.type){case w:var s=e;i.defer(s);break;case O:var c=e;if("number"===typeof c.delay)return void i.defer(c);c.to?i.sendTo(c._event,c.to,n===Oe):i.send(c._event);break;case j:i.cancel(e.sendId);break;case x:if(i.status!==et.Running)return;var l=e.activity;if(!i.machine.config.predictableActionArguments&&!i.state.activities[l.id||l.type])break;if(l.type===g.Invoke){var u=le(l.src),d=i.machine.options.services?i.machine.options.services[u.type]:void 0,p=l.id,h=l.data;R.a||Q(!("forward"in l),"`forward` property is deprecated (found in invocation of '".concat(l.src,"' in in machine '").concat(i.machine.id,"'). ")+"Please use `autoForward` instead.");var m="autoForward"in l?l.autoForward:!!l.forward;if(!d)return void(R.a||Q(!1,"No service found for invocation '".concat(l.src,"' in machine '").concat(i.machine.id,"'.")));var f=h?X(h,t,n):void 0;if("string"===typeof d)return;var b=ee(d)?d(t,n.data,{data:f,src:u,meta:l.meta}):d;if(!b)return;var v=void 0;
2re(b)&&(b=f?b.withContext(f):b,v={autoForward:m}),i.spawn(b,p,v)}else i.spawnActivity(l);break;case _:i.stopChild(e.activity.id);break;case T:var y=e,C=y.label,E=y.value;C?i.logger(C,E):i.logger(E);break;default:R.a||Q(!1,"No implementation found for action type '".concat(e.type,"'"))}};var r=d(d({},e.defaultOptions),n),a=r.clock,o=r.logger,s=r.parent,c=r.id,l=void 0!==c?c:t.id;this.id=l,this.logger=o,this.clock=a,this.parent=s,this.options=r,this.scheduler=new Ue({deferEvents:this.options.deferEvents}),this.sessionId=Xe()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:We(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return R.a||Q(this.status!==et.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var n,i;try{for(var r=h(e.actions),a=r.next();!a.done;a=r.next()){var o=a.value;this.exec(o,e,t)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,i,r,a,o,s,c,l,u=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==Oe||!this.options.execute)for(var d=void 0;d=this._outgoingQueue.shift();)d[0].send(d[1]);else this.execute(this.state);if(this.children.forEach((function(e){u.state.children[e.id]=e})),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var p=h(this.eventListeners),m=p.next();!m.done;m=p.next()){(0,m.value)(e.event)}}catch(O){n={error:O}}finally{try{m&&!m.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}try{for(var f=h(this.listeners),g=f.next();!g.done;g=f.next()){(0,g.value)(e,e.event)}}catch(j){r={error:j}}finally{try{g&&!g.done&&(a=f.return)&&a.call(f)}finally{if(r)throw r.error}}try{for(var b=h(this.contextListeners),v=b.next();!v.done;v=b.next()){(0,v.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(C){o={error:C}}finally{try{v&&!v.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}if(this.state.done){var y=e.configuration.find((function(e){return"final"===e.type&&e.parent===u.machine})),x=y&&y.doneData?X(y.doneData,e.context,t):void 0;this._doneEvent=Le(this.id,x);try{for(var _=h(this.doneListeners),w=_.next();!w.done;w=_.next()){(0,w.value)(this._doneEvent)}}catch(E){c={error:E}}finally{try{w&&!w.done&&(l=_.return)&&l.call(_)}finally{if(c)throw c.error}}this._stop(),this._stopChildren(),Je(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===et.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var i=this,r=ue(e,t,n);this.listeners.add(r.next),this.status!==et.NotStarted&&r.next(this.state);var a=function e(){i.doneListeners.delete(e),i.stopListeners.delete(e),r.complete()};return this.status===et.Stopped?r.complete():(this.onDone(a),this.onStop(a)),{unsubscribe:function(){i.listeners.delete(r.next),i.doneListeners.delete(a),i.stopListeners.delete(a)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===et.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===et.Running)return this;this.machine._init(),Ke(this.sessionId,this),this.initialized=!0,this.status=et.Running;var n=void 0===e?this.initialState:We(this,(function(){return De(e)?t.machine.resolveState(e):t.machine.resolveState(ze.from(e,t.machine.context))}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,Oe)})),this}
2,e.prototype._stopChildren=function(){this.children.forEach((function(e){ee(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,i,r,a,o,s,c,l;try{for(var u=h(this.listeners),d=u.next();!d.done;d=u.next()){var p=d.value;this.listeners.delete(p)}}catch(O){e={error:O}}finally{try{d&&!d.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}try{for(var m=h(this.stopListeners),f=m.next();!f.done;f=m.next()){(p=f.value)(),this.stopListeners.delete(p)}}catch(j){n={error:j}}finally{try{f&&!f.done&&(i=m.return)&&i.call(m)}finally{if(n)throw n.error}}try{for(var g=h(this.contextListeners),b=g.next();!b.done;b=g.next()){p=b.value;this.contextListeners.delete(p)}}catch(C){r={error:C}}finally{try{b&&!b.done&&(a=g.return)&&a.call(g)}finally{if(r)throw r.error}}try{for(var v=h(this.doneListeners),y=v.next();!y.done;y=v.next()){p=y.value;this.doneListeners.delete(p)}}catch(E){o={error:E}}finally{try{y&&!y.done&&(s=v.return)&&s.call(v)}finally{if(o)throw o.error}}if(!this.initialized)return this;this.initialized=!1,this.status=et.Stopped,this._initialState=void 0;try{for(var x=h(Object.keys(this.delayedEventsMap)),_=x.next();!_.done;_=x.next()){var w=_.value;this.clock.clearTimeout(this.delayedEventsMap[w])}}catch(T){c={error:T}}finally{try{_&&!_.done&&(l=x.return)&&l.call(x)}finally{if(c)throw c.error}}this.scheduler.clear(),this.scheduler=new Ue({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule((function(){var t;if(!(null===(t=e._state)||void 0===t?void 0:t.done)){var n=oe({type:"xstate.stop"}),i=We(e,(function(){var t=G(f([],m(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return Ee(t.onExit,e.machine.options.actions)}))),i=m(Re(e.machine,e.state,e.state.context,n,[{type:"exit",actions:t}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),r=i[0],a=i[1],o=new ze({value:e.state.value,context:a,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:r.filter((function(e){return!pe(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return o.changed=!0,o}));e.update(i,n),e._stopChildren(),Je(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===et.NotStarted&&this.options.deferEvents)R.a||Q(!1,"".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==et.Running)throw new Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule((function(){var i,r,a=t.state,o=!1,s=[],c=function(e){var i=oe(e);t.forward(i),a=We(t,(function(){return t.machine.transition(a,i,void 0,n||void 0)})),s.push.apply(s,f([],m(t.machine.config.predictableActionArguments?a.actions:a.actions.map((function(e){return function(e,t){var n=e.exec;return d(d({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}(e,a)}))),!1)),o=o||!!a.changed};try{for(var l=h(e),u=l.next();!u.done;u=l.next()){c(u.value)}}catch(p){i={error:p}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(i)throw i.error}}a.changed=o,a.actions=s,t.update(a,oe(e[e.length-1]))}))}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var n=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var i=oe(e);if(0===i.name.indexOf(A)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(A)})))throw i.data.data;return We(this,(function(){return n.machine.transition(n.state,i,void 0,t||void 0)}))},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,n;try{for(var i=h(this.forwardTo),r=i.next();!r.done;r=i.next()){var a=r.value,o=this.children.get(a);if(!o)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(a,"'."));o.send(e)}}catch(s){t={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,n=this.clock.setTimeout((function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)}),e.delay);e.id&&(this.delayedEventsMap[e.id]=n)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions),this._exec(e,t.context,t._event,n)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),ee(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==et.Running)return Ge(e,t);
2if(K(e))return this.spawnPromise(Promise.resolve(e),t);if(ee(e))return this.spawnCallback(e,t);if(function(e){try{return"function"===typeof e.send}catch(t){return!1}}(r=e)&&"id"in r)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&ee(e.subscribe)}catch(t){return!1}}(e))return this.spawnObservable(e,t);if(re(e))return this.spawnMachine(e,d(d({},n),{id:t}));if(null!==(i=e)&&"object"===typeof i&&"transition"in i&&"function"===typeof i.transition)return this.spawnBehavior(e,t);throw new Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'));var i,r},e.prototype.spawnMachine=function(t,n){var i=this;void 0===n&&(n={});var r=new e(t,d(d({},this.options),{parent:this,id:n.id||t.id})),a=d(d({},tt),n);a.sync&&r.onTransition((function(e){i.send(M,{state:e,id:r.id})}));var o=r;return this.children.set(r.id,o),a.autoForward&&this.forwardTo.add(r.id),r.onDone((function(e){i.removeChild(r.id),i.send(oe(e,{origin:r.id}))})).start(),o},e.prototype.spawnBehavior=function(e,t){var n=$e(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,i,r=this,a=!1;e.then((function(e){a||(i=e,r.removeChild(t),r.send(oe(Le(t,e),{origin:t})))}),(function(e){if(!a){r.removeChild(t);var n=Be(t,e);try{r.send(oe(n,{origin:t}))}catch(i){!function(e,t,n){if(!R.a){var i=e.stack?" Stacktrace was '".concat(e.stack,"'"):"";if(e===t)console.error("Missing onError handler for invocation '".concat(n,"', error was '").concat(e,"'.").concat(i));else{var r=t.stack?" Stacktrace was '".concat(t.stack,"'"):"";console.error("Missing onError handler and/or unhandled exception/promise rejection for invocation '".concat(n,"'. ")+"Original error: '".concat(e,"'. ").concat(i," Current error is '").concat(t,"'.").concat(r))}}}(e,i,t),r.devTools&&r.devTools.send(n,r.state),r.machine.strict&&r.stop()}}}));var o=((n={id:t,send:function(){},subscribe:function(t,n,i){var r=ue(t,n,i),a=!1;return e.then((function(e){a||(r.next(e),a||r.complete())}),(function(e){a||r.error(e)})),{unsubscribe:function(){return a=!0}}},stop:function(){a=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return i}})[ie]=function(){return this},n);return this.children.set(t,o),o},e.prototype.spawnCallback=function(e,t){var n,i,r,a=this,o=!1,s=new Set,c=new Set;try{r=e((function(e){i=e,c.forEach((function(t){return t(e)})),o||a.send(oe(e,{origin:t}))}),(function(e){s.add(e)}))}catch(u){this.send(Be(t,u))}if(K(r))return this.spawnPromise(r,t);var l=((n={id:t,send:function(e){return s.forEach((function(t){return t(e)}))},subscribe:function(e){var t=ue(e);return c.add(t.next),{unsubscribe:function(){c.delete(t.next)}}},stop:function(){o=!0,ee(r)&&r()},toJSON:function(){return{id:t}},getSnapshot:function(){return i}})[ie]=function(){return this},n);return this.children.set(t,l),l},e.prototype.spawnObservable=function(e,t){var n,i,r=this,a=e.subscribe((function(e){i=e,r.send(oe(e,{origin:t}))}),(function(e){r.removeChild(t),r.send(oe(Be(t,e),{origin:t}))}),(function(){r.removeChild(t),r.send(oe(Le(t),{origin:t}))})),o=((n={id:t,send:function(){},subscribe:function(t,n,i){return e.subscribe(t,n,i)},stop:function(){return a.unsubscribe()},getSnapshot:function(){return i},toJSON:function(){return{id:t}}})[ie]=function(){return this},n);return this.children.set(t,o),o},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var n=t(this.state.context,e);this.spawnEffect(e.id,n)}else R.a||Q(!1,"No implementation found for activity '".concat(e.type,"'"))},e.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[ie]=function(){return this},n))},e.prototype.attachDev=function(){var e=Object(Qe.a)();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"===typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(d(d({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:d({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}Object(Qe.b)(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[ie]=function(){return this},e.prototype.getSnapshot=function(){return this.status===et.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){return setTimeout(e,t)})),clearTimeout:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return clearTimeout(e)}))},logger:console.log.bind(console),devTools:!1},e.interpret=it,e}();function it(e,t){return new nt(e,t)}function rt(e){var t=i.useRef();return t.current||(t.current={v:e()}),t.current.v}var at=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},ot=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);
2if(e&&"number"===typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var st=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o},ct=function(e,t,n){if(n||2===arguments.length)for(var i,r=0,a=t.length;r<a;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};function lt(e,t){(0,e.exec)(t.context,t._event.data,{action:e,state:t,_event:t._event})()}function ut(e){var t=Object(i.useRef)([]),n=Object(i.useRef)([]);Fe((function(){var i=e.subscribe((function(e){var i,r;if(e.actions.length){var a=e.actions.filter((function(e){return"function"===typeof e.exec&&"__effect"in e.exec})),o=st(function(e,t){var n,i,r=at([[],[]],2),a=r[0],o=r[1];try{for(var s=ot(e),c=s.next();!c.done;c=s.next()){var l=c.value;t(l)?a.push(l):o.push(l)}}catch(u){n={error:u}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return[a,o]}(a,(function(e){return e.exec.__effect===Pe.Effect})),2),s=o[0],c=o[1];(i=t.current).push.apply(i,ct([],st(s.map((function(t){return[t,e]}))),!1)),(r=n.current).push.apply(r,ct([],st(c.map((function(t){return[t,e]}))),!1))}}));return function(){i.unsubscribe()}}),[]),Fe((function(){for(;n.current.length;){var e=st(n.current.shift(),2);lt(e[0],e[1])}})),Object(i.useEffect)((function(){for(;t.current.length;){var e=st(t.current.shift(),2);lt(e[0],e[1])}}))}var dt=function(){return(dt=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},pt=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};var ht=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=a.next()).done;)o.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return o};function mt(e,t){void 0===t&&(t={});var n=Object(i.useCallback)((function(e){var t=void 0===e.changed&&Object.keys(e.children).length;(e.changed||t)&&s(e)}),[]),r=function(e,t,n){void 0===t&&(t={});var i=rt((function(){return"function"===typeof e?e():e})),r=t.context,a=t.guards,o=t.actions,s=t.activities,c=t.services,l=t.delays,u=t.state,d=pt(t,["context","guards","actions","activities","services","delays","state"]),p=rt((function(){var e={context:r,guards:a,actions:o,activities:s,services:c,delays:l};return it(i.withConfig(e,(function(){return dt(dt({},i.context),r)})),dt({deferEvents:!0},d))}));return Fe((function(){var e;return n&&(e=p.subscribe(function(e,t,n){if("object"===typeof e)return e;var i=function(){};return{next:e,error:t||i,complete:n||i}}(n))),function(){null===e||void 0===e||e.unsubscribe()}}),[n]),Fe((function(){return p.start(u?ze.create(u):void 0),function(){p.stop()}}),[]),Fe((function(){Object.assign(p.machine.options.actions,o),Object.assign(p.machine.options.guards,a),Object.assign(p.machine.options.activities,s),Object.assign(p.machine.options.services,c),Object.assign(p.machine.options.delays,l)}),[o,a,s,c,l]),ut(p),p}(e,t,n),a=ht(Object(i.useState)((function(){var e=r.machine.initialState;return t.state?ze.create(t.state):e})),2),o=a[0],s=a[1];return[o,r.send,r]}var ft=n(19),gt=n(131),bt=n(246),vt=n(182),yt=n(183),xt=n(114),_t=n(115),wt=n(2),Ot=n(6),jt=n(77),Ct={arr:Array.isArray,obj:function(e){return"[object Object]"===Object.prototype.toString.call(e)},fun:function(e){return"function"===typeof e},str:function(e){return"string"===typeof e},num:function(e){return"number"===typeof e},und:function(e){return void 0===e},nul:function(e){return null===e},set:function(e){return e instanceof Set},map:function(e){return e instanceof Map},equ:function(e,t){if(typeof e!==typeof t)return!1;if(Ct.str(e)||Ct.num(e))return e===t;if(Ct.obj(e)&&Ct.obj(t)&&Object.keys(e).length+Object.keys(t).length===0)return!0;var n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return!Ct.und(n)||e===t}};function Et(){var e=Object(i.useState)(!1)[1];return Object(i.useCallback)((function(){return e((function(e){return!e}))}),[])}function Tt(e,t){return Ct.und(e)||Ct.nul(e)?t:e}function kt(e){return Ct.und(e)?[]:Ct.arr(e)?e:[e]}function St(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Ct.fun(e)?e.apply(void 0,n):e}function At(e){var t=function(e){return e.to,e.from,e.config,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.delay,e.attach,e.destroyed,e.interpolateTo,e.ref,e.lazy,Object(jt.a)(e,["to","from","config","onStart","onRest","onFrame","children","reset","reverse","force","immediate","delay","attach","destroyed","interpolateTo","ref","lazy"])}(e);if(Ct.und(t))return Object(Ot.a)({to:t},e);var n=Object.keys(e).reduce((function(n,i){return Ct.und(t[i])?Object(Ot.a)({},n,Object(wt.a)({},i,e[i])):n}),{});return Object(Ot.a)({to:t},n)}var It,Mt,Lt=function(){function e(){Object(xt.a)(this,e),this.payload=void 0,this.children=[]}return Object(_t.a)(e,[{key:"getAnimatedValue",value:function(){return this.getValue()}},{key:"getPayload",value:function(){return this.payload||this}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"getChildren",value:function(){return this.children}},{key:"addChild",value:function(e){0===this.children.length&&this.attach(),this.children.push(e)}},{key:"removeChild",value:function(e){var t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}]),e}(),Bt=function(e){Object(vt.a)(n,e);var t=Object(yt.a)(n);function n(){var e;return Object(xt.a)(this,n),(e=t.apply(this,arguments)).payload=[],e.attach=function(){return e.payload.forEac
2h((function(t){return t instanceof Lt&&t.addChild(Object(bt.a)(e))}))},e.detach=function(){return e.payload.forEach((function(t){return t instanceof Lt&&t.removeChild(Object(bt.a)(e))}))},e}return Object(_t.a)(n)}(Lt),Rt=function(e){Object(vt.a)(n,e);var t=Object(yt.a)(n);function n(){var e;return Object(xt.a)(this,n),(e=t.apply(this,arguments)).payload={},e.attach=function(){return Object.values(e.payload).forEach((function(t){return t instanceof Lt&&t.addChild(Object(bt.a)(e))}))},e.detach=function(){return Object.values(e.payload).forEach((function(t){return t instanceof Lt&&t.removeChild(Object(bt.a)(e))}))},e}return Object(_t.a)(n,[{key:"getValue",value:function(e){void 0===e&&(e=!1);var t={};for(var n in this.payload){var i=this.payload[n];(!e||i instanceof Lt)&&(t[n]=i instanceof Lt?i[e?"getAnimatedValue":"getValue"]():i)}return t}},{key:"getAnimatedValue",value:function(){return this.getValue(!0)}}]),n}(Lt);function Dt(e,t){It={fn:e,transform:t}}function Pt(e){Mt=e}var zt,Ft=function(e){return"undefined"!==typeof window?window.requestAnimationFrame(e):-1};function Nt(e){zt=e}var Ut=function(){return Date.now()};function Vt(e){e}var Wt,qt,Gt=function(e){return e.current};function Zt(e){Wt=e}var Ht=function(e){Object(vt.a)(n,e);var t=Object(yt.a)(n);function n(e,i){var r;return Object(xt.a)(this,n),(r=t.call(this)).update=void 0,r.payload=e.style?Object(Ot.a)({},e,{style:Wt(e.style)}):e,r.update=i,r.attach(),r}return Object(_t.a)(n)}(Rt),Xt=!1,Kt=new Set,Yt=function e(){if(!Xt)return!1;var t,n=Ut(),i=Object(gt.a)(Kt);try{for(i.s();!(t=i.n()).done;){for(var r=t.value,a=!1,o=0;o<r.configs.length;o++){for(var s=r.configs[o],c=void 0,l=void 0,u=0;u<s.animatedValues.length;u++){var d=s.animatedValues[u];if(!d.done){var p=s.fromValues[u],h=s.toValues[u],m=d.lastPosition,f=h instanceof Lt,g=Array.isArray(s.initialVelocity)?s.initialVelocity[u]:s.initialVelocity;if(f&&(h=h.getValue()),s.immediate)d.setValue(h),d.done=!0;else if("string"!==typeof p&&"string"!==typeof h){if(void 0!==s.duration)m=p+s.easing((n-d.startTime)/s.duration)*(h-p),c=n>=d.startTime+s.duration;else if(s.decay)m=p+g/(1-.998)*(1-Math.exp(-(1-.998)*(n-d.startTime))),(c=Math.abs(d.lastPosition-m)<.1)&&(h=m);else{l=void 0!==d.lastTime?d.lastTime:n,g=void 0!==d.lastVelocity?d.lastVelocity:s.initialVelocity,n>l+64&&(l=n);for(var b=Math.floor(n-l),v=0;v<b;++v){m+=1*(g+=1*((-s.tension*(m-h)+-s.friction*g)/s.mass)/1e3)/1e3}var y=!(!s.clamp||0===s.tension)&&(p<h?m>h:m<h),x=Math.abs(g)<=s.precision,_=0===s.tension||Math.abs(h-m)<=s.precision;c=y||x&&_,d.lastVelocity=g,d.lastTime=n}f&&!s.toValues[u].done&&(c=!1),c?(d.value!==h&&(m=h),d.done=!0):a=!0,d.setValue(m),d.lastPosition=m}else d.setValue(h),d.done=!0}}r.props.onFrame&&(r.values[s.name]=s.interpolation.getValue())}r.props.onFrame&&r.props.onFrame(r.values),a||(Kt.delete(r),r.stop(!0))}}catch(w){i.e(w)}finally{i.f()}return Kt.size?qt?qt():Ft(e):Xt=!1,Xt};function Jt(e,t,n){if("function"===typeof e)return e;if(Array.isArray(e))return Jt({range:e,output:t,extrapolate:n});if(zt&&"string"===typeof e.output[0])return zt(e);var i=e,r=i.output,a=i.range||[0,1],o=i.extrapolateLeft||i.extrapolate||"extend",s=i.extrapolateRight||i.extrapolate||"extend",c=i.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,a);return function(e,t,n,i,r,a,o,s,c){var l=c?c(e):e;if(l<t){if("identity"===o)return l;"clamp"===o&&(l=t)}if(l>n){if("identity"===s)return l;"clamp"===s&&(l=n)}if(i===r)return i;if(t===n)return e<=t?i:r;t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t);l=a(l),i===-1/0?l=-l:r===1/0?l+=i:l=l*(r-i)+i;return l}(e,a[t],a[t+1],r[t],r[t+1],c,o,s,i.map)}}var Qt=function(e){Object(vt.a)(n,e);var t=Object(yt.a)(n);function n(e,i,r,a){var o;return Object(xt.a)(this,n),(o=t.call(this)).calc=void 0,o.payload=e instanceof Bt&&!(e instanceof n)?e.getPayload():Array.isArray(e)?e:[e],o.calc=Jt(i,r,a),o}return Object(_t.a)(n,[{key:"getValue",value:function(){return this.calc.apply(this,Object(ft.a)(this.payload.map((function(e){return e.getValue()}))))}},{key:"updateConfig",value:function(e,t,n){this.calc=Jt(e,t,n)}},{key:"interpolate",value:function(e,t,i){return new n(this,e,t,i)}}]),n}(Bt),$t=function(e,t,n){return e&&new Qt(e,t,n)};var en=function(e){Object(vt.a)(n,e);var t=Object(yt.a)(n);function n(e){var i,r;return Object(xt.a)(this,n),i=t.call(this),r=Object(bt.a)(i),i.animatedStyles=new Set,i.value=void 0,i.startPosition=void 0,i.lastPosition=void 0,i.lastVelocity=void 0,i.startTime=void 0,i.lastTime=void 0,i.done=!1,i.setValue=function(e,t){void 0===t&&(t=!0),r.value=e,t&&r.flush()},i.value=e,i.startPosition=e,i.lastPosition=e,i}return Object(_t.a)(n,[{key:"flush",value:function(){0===this.animatedStyles.size&&function e(t,n){"update"in t?n.add(t):t.getChildren().forEac
2h((function(t){return e(t,n)}))}(this,this.animatedStyles),this.animatedStyles.forEach((function(e){return e.update()}))}},{key:"clearStyles",value:function(){this.animatedStyles.clear()}},{key:"getValue",value:function(){return this.value}},{key:"interpolate",value:function(e,t,n){return new Qt(this,e,t,n)}}]),n}(Lt),tn=function(e){Object(vt.a)(n,e);var t=Object(yt.a)(n);function n(e){var i;return Object(xt.a)(this,n),(i=t.call(this)).payload=e.map((function(e){return new en(e)})),i}return Object(_t.a)(n,[{key:"setValue",value:function(e,t){var n=this;void 0===t&&(t=!0),Array.isArray(e)?e.length===this.payload.length&&e.forEach((function(e,i){return n.payload[i].setValue(e,t)})):this.payload.forEach((function(n){return n.setValue(e,t)}))}},{key:"getValue",value:function(){return this.payload.map((function(e){return e.getValue()}))}},{key:"interpolate",value:function(e,t){return new Qt(this,e,t)}}]),n}(Bt),nn=0,rn=function(){function e(){var t=this;Object(xt.a)(this,e),this.id=void 0,this.idle=!0,this.hasChanged=!1,this.guid=0,this.local=0,this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.listeners=[],this.queue=[],this.localQueue=void 0,this.getValues=function(){return t.interpolations},this.id=nn++}return Object(_t.a)(e,[{key:"update",value:function(e){if(!e)return this;var t=At(e),n=t.delay,i=void 0===n?0:n,r=t.to,a=Object(jt.a)(t,["delay","to"]);if(Ct.arr(r)||Ct.fun(r))this.queue.push(Object(Ot.a)({},a,{delay:i,to:r}));else if(r){var o={};Object.entries(r).forEach((function(e){var t=e[0],n=e[1],r=Object(Ot.a)({to:Object(wt.a)({},t,n),delay:St(i,t)},a),s=o[r.delay]&&o[r.delay].to;o[r.delay]=Object(Ot.a)({},o[r.delay],r,{to:Object(Ot.a)({},s,r.to)})})),this.queue=Object.values(o)}return this.queue=this.queue.sort((function(e,t){return e.delay-t.delay})),this.diff(a),this}},{key:"start",value:function(e){var t,n=this;if(this.queue.length){this.idle=!1,this.localQueue&&this.localQueue.forEach((function(e){var t=e.from,i=void 0===t?{}:t,r=e.to,a=void 0===r?{}:r;Ct.obj(i)&&(n.merged=Object(Ot.a)({},i,n.merged)),Ct.obj(a)&&(n.merged=Object(Ot.a)({},n.merged,a))}));var i=this.local=++this.guid,r=this.localQueue=this.queue;this.queue=[],r.forEach((function(t,a){var o=t.delay,s=Object(jt.a)(t,["delay"]),c=function(t){a===r.length-1&&i===n.guid&&t&&(n.idle=!0,n.props.onRest&&n.props.onRest(n.merged)),e&&e()},l=Ct.arr(s.to)||Ct.fun(s.to);o?setTimeout((function(){i===n.guid&&(l?n.runAsync(s,c):n.diff(s).start(c))}),o):l?n.runAsync(s,c):n.diff(s).start(c)}))}else Ct.fun(e)&&this.listeners.push(e),this.props.onStart&&this.props.onStart(),t=this,Kt.has(t)||Kt.add(t),Xt||(Xt=!0,Ft(qt||Yt));return this}},{key:"stop",value:function(e){return this.listeners.forEach((function(t){return t(e)})),this.listeners=[],this}},{key:"pause",value:function(e){var t;return this.stop(!0),e&&(t=this,Kt.has(t)&&Kt.delete(t)),this}},{key:"runAsync",value:function(e,t){var n=this,i=this,r=(e.delay,Object(jt.a)(e,["delay"])),a=this.local,o=Promise.resolve(void 0);if(Ct.arr(r.to))for(var s=function(e){var t=e,i=Object(Ot.a)({},r,At(r.to[t]));Ct.arr(i.config)&&(i.config=i.config[t]),o=o.then((function(){if(a===n.guid)return new Promise((function(e){return n.diff(i).start(e)}))}))},c=0;c<r.to.length;c++)s(c);else if(Ct.fun(r.to)){var l,u=0;o=o.then((function(){return r.to((function(e){var t=Object(Ot.a)({},r,At(e));if(Ct.arr(t.config)&&(t.config=t.config[u]),u++,a===n.guid)return l=new Promise((function(e){return n.diff(t).start(e)}))}),(function(e){return void 0===e&&(e=!0),i.stop(e)})).then((function(){return l}))}))}o.then(t)}},{key:"diff",value:function(e){var t=this;this.props=Object(Ot.a)({},this.props,e);var n=this.props,i=n.from,r=void 0===i?{}:i,a=n.to,o=void 0===a?{}:a,s=n.config,c=void 0===s?{}:s,l=n.reverse,u=n.attach,d=n.reset,p=n.immediate;if(l){var h=[o,r];r=h[0],o=h[1]}this.merged=Object(Ot.a)({},r,this.merged,o),this.hasChanged=!1;var m=u&&u(this);if(this.animations=Object.entries(this.merged).reduce((function(e,n){var i=n[0],a=n[1],o=e[i]||{},s=Ct.num(a),l=Ct.str(a)&&!a.startsWith("#")&&!/\d/.test(a)&&!Mt[a],u=Ct.arr(a),h=!s&&!u&&!l,f=Ct.und(r[i])?a:r[i],g=s||u||l?a:1,b=St(c,i);m&&(g=m.animations[i].parent);var v,y=o.parent,x=o.interpolation,_=kt(m?g.getPayload():g),w=a;h&&(w=zt({range:[0,1],output:[a,a]})(1));var O=x&&x.getValue(),j=!Ct.und(y)&&o.animatedValues.some((function(e){return!e.done})),C=!Ct.equ(w,O),E=!Ct.equ(w,o.previous),T=!Ct.equ(b,o.config);if(d||E&&C||T){if(s||l)y=x=o.parent||new en(f);else if(u)y=x=o.parent||new tn(f);else if(h){var k=o.interpolation&&o.interpolation.calc(o.parent.value);k=void 0===k||d?f:k,o.parent?(y=o.parent).setValue(0,!1):y=new en(0);var S={output:[k,a]};o.interpolation?(x=o.interpolation,o.interpolation.updateConfig(S)):x=y.interpolate(S)}return _=kt(m?g.getPayload():g),v=kt(y.getPayload()),d&&!h&&y.setValue(f,!1),t.hasChanged=!0,v.forEach((function(e){e.startPosition=e.value,e.lastPosition=e.value,e.lastVelocity=j?e.lastVelocity:void 0,e.lastTime=j?e.lastTime:void 0,e.startTime=Ut(),e.done=!1,e.animatedStyles.clear()}
2)),St(p,i)&&y.setValue(h?g:a,!1),Object(Ot.a)({},e,Object(wt.a)({},i,Object(Ot.a)({},o,{name:i,parent:y,interpolation:x,animatedValues:v,toValues:_,previous:w,config:b,fromValues:kt(y.getValue()),immediate:St(p,i),initialVelocity:Tt(b.velocity,0),clamp:Tt(b.clamp,!1),precision:Tt(b.precision,.01),tension:Tt(b.tension,170),friction:Tt(b.friction,26),mass:Tt(b.mass,1),duration:b.duration,easing:Tt(b.easing,(function(e){return e})),decay:b.decay})))}return C?e:(h&&(y.setValue(1,!1),x.updateConfig({output:[w,w]})),y.done=!0,t.hasChanged=!0,Object(Ot.a)({},e,Object(wt.a)({},i,Object(Ot.a)({},e[i],{previous:w}))))}),this.animations),this.hasChanged)for(var f in this.configs=Object.values(this.animations),this.values={},this.interpolations={},this.animations)this.interpolations[f]=this.animations[f].interpolation,this.values[f]=this.animations[f].interpolation.getValue();return this}},{key:"destroy",value:function(){this.stop(),this.props={},this.merged={},this.animations={},this.interpolations={},this.values={},this.configs=[],this.local=0}}]),e}(),an=function(e,t){var n=Object(i.useRef)(!1),r=Object(i.useRef)(),a=Ct.fun(t),o=Object(i.useMemo)((function(){var n;return r.current&&(r.current.map((function(e){return e.destroy()})),r.current=void 0),[new Array(e).fill().map((function(e,i){var r=new rn,o=a?St(t,i,r):t[i];return 0===i&&(n=o.ref),r.update(o),n||r.start(),r})),n]}),[e]),s=o[0],c=o[1];r.current=s;Object(i.useImperativeHandle)(c,(function(){return{start:function(){return Promise.all(r.current.map((function(e){return new Promise((function(t){return e.start(t)}))})))},stop:function(e){return r.current.forEach((function(t){return t.stop(e)}))},get controllers(){return r.current}}}));var l=Object(i.useMemo)((function(){return function(e){return r.current.map((function(t,n){t.update(a?St(e,n,t):e[n]),c||t.start()}))}}),[e]);Object(i.useEffect)((function(){n.current?a||l(t):c||r.current.forEach((function(e){return e.start()}))})),Object(i.useEffect)((function(){return n.current=!0,function(){return r.current.forEach((function(e){return e.destroy()}))}}),[]);var u=r.current.map((function(e){return e.getValues()}));return a?[u,l,function(e){return r.current.forEach((function(t){return t.pause(e)}))}]:u};var on=function(e){Object(vt.a)(n,e);var t=Object(yt.a)(n);function n(e){var i;return Object(xt.a)(this,n),void 0===e&&(e={}),i=t.call(this),!e.transform||e.transform instanceof Lt||(e=It.transform(e)),i.payload=e,i}return Object(_t.a)(n)}(Rt),sn={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},cn="[-+]?\\d*\\.?\\d+";function ln(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var un=new RegExp("rgb"+ln(cn,cn,cn)),dn=new RegExp("rgba"+ln(cn,cn,cn,cn)),pn=new RegExp("hsl"+ln(cn,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),hn=new RegExp("hsla"
2+ln(cn,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",cn)),mn=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,fn=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,gn=/^#([0-9a-fA-F]{6})$/,bn=/^#([0-9a-fA-F]{8})$/;function vn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function yn(e,t,n){var i=n<.5?n*(1+t):n+t-n*t,r=2*n-i,a=vn(r,i,e+1/3),o=vn(r,i,e),s=vn(r,i,e-1/3);return Math.round(255*a)<<24|Math.round(255*o)<<16|Math.round(255*s)<<8}function xn(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function _n(e){return(parseFloat(e)%360+360)%360/360}function wn(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function On(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function jn(e){var t=function(e){var t;return"number"===typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=gn.exec(e))?parseInt(t[1]+"ff",16)>>>0:sn.hasOwnProperty(e)?sn[e]:(t=un.exec(e))?(xn(t[1])<<24|xn(t[2])<<16|xn(t[3])<<8|255)>>>0:(t=dn.exec(e))?(xn(t[1])<<24|xn(t[2])<<16|xn(t[3])<<8|wn(t[4]))>>>0:(t=mn.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=bn.exec(e))?parseInt(t[1],16)>>>0:(t=fn.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=pn.exec(e))?(255|yn(_n(t[1]),On(t[2]),On(t[3])))>>>0:(t=hn.exec(e))?(yn(_n(t[1]),On(t[2]),On(t[3]))|wn(t[4]))>>>0:null}(e);if(null===t)return e;var n=(16711680&(t=t||0))>>>16,i=(65280&t)>>>8,r=(255&t)/255;return"rgba(".concat((4278190080&t)>>>24,", ").concat(n,", ").concat(i,", ").concat(r,")")}var Cn=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,En=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Tn=new RegExp("(".concat(Object.keys(sn).join("|"),")"),"g"),kn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sn=["Webkit","Ms","Moz","O"];function An(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||kn.hasOwnProperty(e)&&kn[e]?(""+t).trim():t+"px"}kn=Object.keys(kn).reduce((function(e,t){return Sn.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),kn);var In={};Zt((function(e){return new on(e)})),Vt("div"),Nt((function(e){var t=e.output.map((function(e){return e.replace(En,jn)})).map((function(e){return e.replace(Tn,jn)})),n=t[0].match(Cn).map((function(){return[]}));t.forEach((function(e){e.match(Cn).forEach((function(e,t){return n[t].push(+e)}))}));var i=t[0].match(Cn).map((function(t,i){return Jt(Object(Ot.a)({},e,{output:n[i]}))}));return function(e){var n=0;return t[0].replace(Cn,(function(){return i[n++](e)})).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,(function(e,t,n,i,r){return"rgba(".concat(Math.round(t),", ").concat(Math.round(n),", ").concat(Math.round(i),", ").concat(r,")")}))}})),Pt(sn),Dt((function(e,t){if(!e.nodeType||void 0===e.setAttribute)return!1;var n=t.style,i=t.children,r=t.scrollTop,a=t.scrollLeft,o=Object(jt.a)(t,["style","children","scrollTop","scrollLeft"]),s="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName;for(var c in void 0!==r&&(e.scrollTop=r),void 0!==a&&(e.scrollLeft=a),void 0!==i&&(e.textContent=i),n)if(n.hasOwnProperty(c)){var l=0===c.indexOf("--"),u=An(c,n[c],l);"float"===c&&(c="cssFloat"),l?e.style.setProperty(c,u):e.style[c]=u}for(var d in o){var p=s?d:In[d]||(In[d]=d.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})));"undefined"!==typeof e.getAttribute(p)&&e.setAttribute(p,o[d])}}),(function(e){return e}));var Mn,Ln,Bn=(Mn=function(e){return Object(i.forwardRef)((function(t,n){var a=Et(),o=Object(i.useRef)(!0),s=Object(i.useRef)(null),c=Object(i.useRef)(null),l=Object(i.useCallback)((function(e){var t=s.current;
2s.current=new Ht(e,(function(){var e=!1;c.current&&(e=It.fn(c.current,s.current.getAnimatedValue())),c.current&&!1!==e||a()})),t&&t.detach()}),[]);Object(i.useEffect)((function(){return function(){o.current=!1,s.current&&s.current.detach()}}),[]),Object(i.useImperativeHandle)(n,(function(){return Gt(c,o,a)})),l(t);var u,d=s.current.getValue(),p=(d.scrollTop,d.scrollLeft,Object(jt.a)(d,["scrollTop","scrollLeft"])),h=(u=e,!Ct.fun(u)||u.prototype instanceof r.a.Component?function(e){return c.current=function(e,t){return t&&(Ct.fun(t)?t(e):Ct.obj(t)&&(t.current=e)),e}(e,n)}:void 0);return r.a.createElement(e,Object(Ot.a)({},p,{ref:h}))}))},void 0===(Ln=!1)&&(Ln=!0),function(e){return(Ct.arr(e)?e:Object.keys(e)).reduce((function(e,t){var n=Ln?t[0].toLowerCase()+t.substring(1):t;return e[n]=Mn(n),e}),Mn)})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]);function Rn(e,t){return e.map((function(e,n){return e+t[n]}))}function Dn(e,t){return e.map((function(e,n){return e-t[n]}))}function Pn(e){return Math.hypot.apply(Math,e)}function zn(e,t,n){var i=Pn(t),r=0===i?0:1/i,a=0===n?0:1/n,o=a*i,s=t.map((function(e){return a*e})),c=t.map((function(e){return r*e}));return{velocities:s,velocity:o,distance:Pn(e),direction:c}}function Fn(e){return Math.sign?Math.sign(e):Number(e>0)-Number(e<0)||+e}function Nn(e,t,n){return 0===t||Math.abs(t)===1/0?function(e,t){return Math.pow(e,5*t)}(e,n):e*t*n/(t+n*e)}function Un(e,t,n,i){return void 0===i&&(i=.15),0===i?function(e,t,n){return Math.max(t,Math.min(e,n))}(e,t,n):e<t?-Nn(t-e,n-t,i)+t:e>n?+Nn(e-n,n-t,i)+n:e}function Vn(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Wn(){return(Wn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function qn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Gn(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}function Zn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Xn(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return Hn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Hn(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}function Kn(){}function Yn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?Kn:1===t.length?t[0]:function(){for(var e,n,i=Xn(t);!(n=i()).done;){var r=n.value;e=r.apply(this,arguments)||e}return e}}function Jn(e,t){if(void 0===e){if(void 0===t)throw new Error("Mu
2st define fallback value if undefined is expected");e=t}return Array.isArray(e)?e:[e,e]}function Qn(e){if("function"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e.apply(void 0,n)}return e}function $n(e,t){void 0===e&&(e={});for(var n={},i=0,r=Object.entries(t);i<r.length;i++){var a=r[i],o=a[0],s=a[1];switch(typeof s){case"function":n[o]=s.call(n,e[o],o,e);break;case"object":n[o]=$n(e[o],s);break;case"boolean":s&&(n[o]=e[o])}}return n}var ei={threshold:function(e){return void 0===e&&(e=0),Jn(e)},rubberband:function(e){switch(void 0===e&&(e=0),e){case!0:return Jn(.15);case!1:return Jn(0);default:return Jn(e)}},enabled:function(e){return void 0===e&&(e=!0),e},triggerAllEvents:function(e){return void 0===e&&(e=!1),e},initial:function(e){return void 0===e&&(e=0),"function"===typeof e?e:Jn(e)}},ti=Wn({},ei,{axis:!0,lockDirection:function(e){return void 0===e&&(e=!1),e},bounds:function(e){if(void 0===e&&(e={}),"function"===typeof e)return function(t){return ti.bounds(e(t))};var t=e,n=t.left,i=void 0===n?-1/0:n,r=t.right,a=void 0===r?1/0:r,o=t.top,s=void 0===o?-1/0:o,c=t.bottom;return[[i,a],[s,void 0===c?1/0:c]]}}),ni="undefined"!==typeof window&&window.document&&window.document.createElement,ii={enabled:function(e){return void 0===e&&(e=!0),e},domTarget:!0,window:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return void 0===e&&(e=ni?window:void 0),e})),eventOptions:function(e){var t=void 0===e?{}:e,n=t.passive,i=void 0===n||n,r=t.capture;
2return{passive:i,capture:void 0!==r&&r}}},ri=Wn({},ti,{threshold:function(e,t,n){var i=n.filterTaps,r=void 0!==i&&i,a=n.lockDirection,o=void 0!==a&&a,s=n.axis,c=Jn(e,r?3:o||(void 0===s?void 0:s)?1:0);return this.filterTaps=r||c[0]+c[1]>0,c},swipeVelocity:function(e){return void 0===e&&(e=.5),Jn(e)},swipeDistance:function(e){return void 0===e&&(e=60),Jn(e)},delay:function(e){switch(void 0===e&&(e=0),e){case!0:return 180;case!1:return 0;default:return e}}});function ai(e){return void 0===e&&(e={}),$n(e,ii)}function oi(e){return void 0===e&&(e={}),$n(e,ri)}function si(e){var t=e.domTarget,n=e.eventOptions,i=e.window,r=e.enabled,a=Gn(e,["domTarget","eventOptions","window","enabled"]),o=ai({domTarget:t,eventOptions:n,window:i,enabled:r});return o.drag=oi(a),o}function ci(e){return Wn({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:Kn,canceled:!1,memo:void 0,args:void 0},e)}function li(){return{shared:{hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},drag:ci({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),pinch:ci({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),wheel:ci({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),move:ci({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),scroll:ci({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0})}}var ui=new Map,di=function(){function e(e,t){var n=this;void 0===t&&(t=[]),this.controller=e,this.args=t,this.debounced=!0,this.setTimeout=function(e,t){var i;void 0===t&&(t=140),clearTimeout(n.controller.timeouts[n.stateKey]);for(var r=arguments.length,a=new Array(r>2?r-2:0),o=2;o<r;o++)a[o-2]=arguments[o];n.controller.timeouts[n.stateKey]=(i=window).setTimeout.apply(i,[e,t].concat(a))},this.clearTimeout=function(){clearTimeout(n.controller.timeouts[n.stateKey])},this.fireGestureHandler=function(e){if(void 0===e&&(e=!1),n.state._blocked)return n.debounced||(n.state._active=!1,n.clean()),null;if(!e&&!n.state.intentional&&!n.config.triggerAllEvents)return null;if(n.state.intentional){var t=n.state.active,i=n.state._active;n.state.active=i,n.state.first=i&&!t,n.state.last=t&&!i,n.controller.state.shared[n.ingKey]=i}var r=Wn({},n.controller.state.shared,n.state,n.mapStateValues(n.state)),a=n.handler(r);return n.state.memo=void 0!==a?a:n.state.memo,n.state._active||n.clean(),r}}var t,n,i,r=e.prototype;return r.updateSharedState=function(e){Object.assign(this.controller.state.shared,e)},r.updateGestureState=function(e){Object.assign(this.state,e)},r.checkIntentionality=function(e,t){return{_intentional:e,_blocked:!1}},r.getMovement=function(e){var t=this.config,n=t.initial,i=t.bounds,r=t.rubberband,a=t.threshold,o=this.state,s=o._bounds,c=o._initial,l=o._active,u=o._intentional,d=o.lastOffset,p=o.movement,h=this.getInternalMovement(e,this.state),m=!1===u[0]?pi(h[0],a[0]):u[0],f=!1===u[1]?pi(h[1],a[1]):u[1],g=this.checkIntentionality([m,f],h);if(g._blocked)return Wn({},g,{_movement:h,delta:[0,0]});var b,v,y,x,_=g._intentional,w=h;(!1!==_[0]&&!1===u[0]&&(v=Qn(n,this.state),b=Qn(i,this.state),c[0]=v[0],s[0]=b[0]),!1!==_[1]&&!1===u[1])&&(v=null!=(y=v)?y:Qn(n,this.state),b=null!=(x=b)?x:Qn(i,this.state),c[1]=v[1],s[1]=b[1]);var O=[!1!==_[0]?h[0]-_[0]:c[0],!1!==_[1]?h[1]-_[1]:c[1]],j=Rn(O,d),C=l?r:[0,0];return O=hi(s,Rn(O,c),C),Wn({},g,{intentional:!1!==_[0]||!1!==_[1],_initial:c,_movement:w,movement:O,values:e,offset:hi(s,j,C),delta:Dn(O,p)})},r.clean=function(){this.clearTimeout()},t=e,(n=[{key:"config",get:function(){return this.controller.config[this.stateKey]}},{key:"enabled",get:function(){return this.controller.config.enabled&&this.config.enabled}},{key:"state",get:function(){return this.controller.state[this.stateKey]}},{key:"handler",get:function(){return this.controller.handlers[this.stateKey]}}])&&Vn(t.prototype,n),i&&Vn(t,i),e}();function pi(e,t){return Math.abs(e)>=t&&Fn(e)*t}function hi(e,t,n){var i=t[0],r=t[1],a=n[0],o=n[1],s=e[0],c=s[0],l=s[1],u=e[1],d=u[0],p=u[1];return[Un(i,c,l,a),Un(r,d,p,o)]}
2function mi(e,t,n){var i=e.state,r=e.args,a=t.timeStamp,o=t.type,s=i.values;return{_lastEventType:o,event:t,timeStamp:a,elapsedTime:n?0:a-i.startTime,args:r,previous:s}}function fi(e,t,n){var i=e.state.offset,r=n.timeStamp;return Wn({},li()[e.stateKey],{_active:!0,values:t,initial:t,offset:i,lastOffset:i,startTime:r})}function gi(e,t){return function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];return e.call.apply(e,[this,Wn({},t,{event:n})].concat(r))}}var bi=function(e){var t=this;this.classes=e,this.bind=function(){for(var e={},n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];for(var a,o=Xn(t.classes);!(a=o()).done;){var s=a.value;new s(t,i).addBindings(e)}for(var c=0,l=Object.entries(t.nativeRefs);c<l.length;c++){var u=l[c],d=u[0],p=u[1];ji(e,d,gi(p,Wn({},t.state.shared,{args:i})))}return t.config.domTarget?xi(t,e):_i(t,e)},this.effect=function(){return t.config.domTarget&&t.bind(),t.clean},this.clean=function(){var e=Oi(t.config),n=t.config.eventOptions;e&&Ei(e,wi(t.domListeners),n),Object.values(t.timeouts).forEach(clearTimeout),function(e){var t=e.config,n=t.window,i=t.eventOptions,r=e.windowListeners;if(!n)return;for(var a in r){var o=r[a];Ei(n,o,i)}e.windowListeners={}}(t)},this.state=li(),this.timeouts={},this.domListeners=[],this.windowListeners={}};function vi(e,t){var n=e.config,i=e.windowListeners;n.window&&(Ei(n.window,i[t],n.eventOptions),delete i[t])}function yi(e,t,n){var i=e.config,r=e.windowListeners;void 0===n&&(n=[]),i.window&&(Ei(i.window,r[t],i.eventOptions),Ci(i.window,r[t]=n,i.eventOptions))}function xi(e,t){var n=e.config,i=e.domListeners,r=Oi(n);if(!r)throw new Error("domTarget must be defined");var a=n.eventOptions;Ei(r,wi(i),a);for(var o=0,s=Object.entries(t);o<s.length;o++){var c=s[o],l=c[0],u=c[1],d=l.slice(2).toLowerCase();i.push([d,Yn.apply(void 0,u)])}Ci(r,i,a)}function _i(e,t){for(var n={},i=e.config.eventOptions.capture?"Capture":"",r=0,a=Object.entries(t);r<a.length;r++){var o=a[r],s=o[0],c=o[1],l=Array.isArray(c)?c:[c];n[s+i]=Yn.apply(void 0,l)}return n}function wi(e){return void 0===e&&(e=[]),e.splice(0,e.length)}function Oi(e){var t=e.domTarget;return t&&"current"in t?t.current:t}function ji(e,t,n){e[t]||(e[t]=[]),e[t].push(n)}function Ci(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var i,r=Xn(t);!(i=r()).done;){var a=i.value,o=a[0],s=a[1];e.addEventListener(o,s,n)}}function Ei(e,t,n){void 0===t&&(t=[]),void 0===n&&(n={});for(var i,r=Xn(t);!(i=r()).done;){var a=i.value,o=a[0],s=a[1];e.removeEventListener(o,s,n)}}function Ti(e,t,n){void 0===n&&(n={});var i=function(e){var t=new Set;e.drag&&t.add(ui.get("drag"));e.wheel&&t.add(ui.get("wheel"));e.scroll&&t.add(ui.get("scroll"));e.move&&t.add(ui.get("move"));e.pinch&&t.add(ui.get("pinch"));e.hover&&t.add(ui.get("hover"));return t}(e),a=r.a.useMemo((function(){return new bi(i)}),[]);return a.config=t,a.handlers=e,a.nativeRefs=n,r.a.useEffect(a.effect,[]),a.config.domTarget?ki:a.bind}function ki(){0}var Si=function(e){function t(){return e.apply(this,arguments)||this}qn(t,e);var n=t.prototype;return n.getInternalMovement=function(e,t){return Dn(e,t.initial)},n.checkIntentionality=function(e,t){if(!1===e[0]&&!1===e[1])return{_intentional:e,axis:this.state.axis};var n=t.map(Math.abs),i=n[0],r=n[1],a=this.state.axis||(i>r?"x":i<r?"y":void 0);return this.config.axis||this.config.lockDirection?a?this.config.axis&&a!==this.config.axis?{_intentional:e,_blocked:!0,axis:a}:(e["x"===a?1:0]=!1,{_intentional:e,_blocked:!1,axis:a}):{_intentional:[!1,!1],_blocked:!1,axis:a}:{_intentional:e,_blocked:!1,axis:a}},n.getKinematics=function(e,t){var n=this.getMovement(e);if(!n._blocked){var i=t.timeStamp-this.state.timeStamp;Object.assign(n,zn(n.movement,n.delta,i))}return n},n.mapStateValues=function(e){return{xy:e.values,vxvy:e.velocities}},t}(di);function Ai(e){if("touches"in e){var t=e.targetTouches,n=e.changedTouches;return t.length>0?t:n}return null}function Ii(e){var t="buttons"in e?e.buttons:0,n=Ai(e),i=n&&n.length||0;return{touches:i,down:i>0||t>0,buttons:t,shiftKey:e.shiftKey,altKey:e.altKey,metaKey:e.metaKey,ctrlKey:e.ctrlKey}}function Mi(e){var t=Ai(e),n=t?t[0]:e;return[n.clientX,n.clientY]}var Li=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).ingKey="dragging",t.stateKey="drag",t.onDragStart=function(e){t.enabled&&!t.state._active&&(yi(t.controller,t.stateKey,[["pointermove",t.onDragChange],["pointerup",t.onDragEnd],["pointercancel",t.onDragEnd]]),t.updateGestureState({_pointerId:e.pointerId}),t.config.delay>0?(t.state._delayedEvent=!0,"persist"in e&&"function"===typeof e.persist&&e.persist(),t.setTimeout(t.startDrag.bind(Zn(t)),t.config.delay,e)):t.startDrag(e))},t.onDragChange=function(e){if(!t.state.canceled&&e.pointerId===t.state._pointerId)if(t.state._active){var n=Ii(e);if(n.down){t.updateSharedState(n);var i=Mi(e),r=t.getKinematics(i,e),a=mi(Zn(t),e),o=t.state._isTap,s=Pn(r._movement);o&&s>=3&&(o=!1),t.updateGestureState(Wn({},a,r,{_isTap:o})),t.fireGestureHandler()}else t.onDragEnd(e)}else t.state._delayedEvent&&(t.clearTimeout(),t.startDrag(e))},t.onDragEnd=function(e){if(e.pointerId===t.state._pointerId){t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0});var n=t.state._isTap,i=t.state.velocities,r=i[0],a=i[1],o=t.state.movement,s=o[0],c=o[1],l=t.state._intentional,u=l[0],d=l[1],p=t.config.swipeVelocity,h=p[0],m=p[1],f=t.config.swipeDistance,g=f[0],b=f[1],v=Wn({},mi(Zn(t),e),t.getMovement(t.state.values)),y=[0,0];v.elapsedTime<220&&(!1!==u&&Math.abs(r)>h&&Math.abs(s)>g&&(y[0]=Fn(r)),!1!==d&&Math.abs(a)>m&&Math.abs(c)>b&&(y[1]=Fn(a))),t.updateGestureState(Wn({},v,{tap:n,swipe:y})),t.fireGestureHandler(!0===n)}}
2,t.clean=function(){e.prototype.clean.call(Zn(t)),t.state._delayedEvent=!1,vi(t.controller,t.stateKey)},t.onCancel=function(){t.state.canceled||(t.updateGestureState({canceled:!0}),t.state._active=!1,t.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame((function(){return t.fireGestureHandler()})))},t.onClick=function(e){t.state._isTap||e.stopPropagation()},t}qn(t,e);var n=t.prototype;return n.startDrag=function(e){var t=Mi(e);this.updateSharedState(Ii(e)),this.updateGestureState(Wn({},fi(this,t,e),mi(this,e,!0),{_pointerId:e.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(t)),this.fireGestureHandler()},n.addBindings=function(e){(ji(e,"onPointerDown",this.onDragStart),this.config.filterTaps)&&ji(e,this.controller.config.eventOptions.capture?"onClick":"onClickCapture",this.onClick)},t}(Si);function Bi(e,t){var n,i,r=[],a=!1;return function(){for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return a&&n===this&&t(s,r)||(i=e.apply(this,s),a=!0,n=this,r=s),i}}function Ri(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var i,r,a,o;if(Array.isArray(t)){if((i=t.length)!==n.length)return!1;for(r=i;0!==r--;)if(!e(t[r],n[r]))return!1;return!0}if("function"===typeof Map&&t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(o=t.entries();!(r=o.next()).done;)if(!n.has(r.value[0]))return!1;for(o=t.entries();!(r=o.next()).done;)if(!e(r.value[1],n.get(r.value[0])))return!1;return!0}if("function"===typeof Set&&t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(o=t.entries();!(r=o.next()).done;)if(!n.has(r.value[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((i=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=i;0!==r--;)if(!Object.prototype.hasOwnProperty.call(n,a[r]))return!1;if("undefined"!==typeof Element&&t instanceof Element)return!1;for(r=i;0!==r--;)if(("_owner"!==a[r]||!t.$$typeof)&&!e(t[a[r]],n[a[r]]))return!1;return!0}return t!==t&&n!==n}(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}var Di=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],Pi=Di.join(","),zi="undefined"===typeof Element,Fi=zi?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ni=!zi&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},Ui=function(e,t,n){var i=Array.prototype.slice.apply(e.querySelectorAll(Pi));return t&&Fi.call(e,Pi)&&i.unshift(e),i=i.filter(n)},Vi=function e(t,n,i){for(var r=[],a=Array.from(t);a.length;){var o=a.shift();if("SLOT"===o.tagName){var s=o.assignedElements(),c=e(s.length?s:o.children,!0,i);
2i.flatten?r.push.apply(r,c):r.push({scope:o,candidates:c})}else{Fi.call(o,Pi)&&i.filter(o)&&(n||!t.includes(o))&&r.push(o);var l=o.shadowRoot||"function"===typeof i.getShadowRoot&&i.getShadowRoot(o),u=!i.shadowRootFilter||i.shadowRootFilter(o);if(l&&u){var d=e(!0===l?o.children:l.children,!0,i);i.flatten?r.push.apply(r,d):r.push({scope:o,candidates:d})}else a.unshift.apply(a,o.children)}}return r},Wi=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},qi=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Gi=function(e){return"INPUT"===e.tagName},Zi=function(e){return function(e){return Gi(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||Ni(e),i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!==typeof window&&"undefined"!==typeof window.CSS&&"function"===typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(a){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",a.message),!1}var r=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!r||r===e}(e)},Hi=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return 0===n&&0===i},Xi=function(e,t){return!(t.disabled||function(e){return Gi(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var r=Fi.call(e,"details>summary:first-of-type")?e.parentElement:e;if(Fi.call(r,"details:not([open]) *"))return!0;var a=Ni(e).host,o=(null===a||void 0===a?void 0:a.ownerDocument.contains(a))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return Hi(e)}else{if("function"===typeof i){for(var s=e;e;){var c=e.parentElement,l=Ni(e);if(c&&!c.shadowRoot&&!0===i(c))return Hi(e);e=e.assignedSlot?e.assignedSlot:c||l===e.ownerDocument?c:l.host}e=s}if(o)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if("LEGEND"===i.tagName)return!!Fi.call(t,"fieldset[disabled] *")||!i.contains(e)}return!0}t=t.parentElement}return!1}(t))},Ki=function(e,t){return!(Zi(t)||Wi(t)<0||!Xi(e,t))},Yi=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Ji=function(e,t){return function e(t){var n=[],i=[];return t.forEach((function(t,r){var a=!!t.scope,o=a?t.scope:t,s=Wi(o,a),c=a?e(t.candidates):o;0===s?a?n.push.apply(n,c):n.push(o):i.push({documentOrder:r,tabIndex:s,item:t,isScope:a,content:c})})),i.sort(qi).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)}((t=t||{}).getShadowRoot?Vi([e],t.includeContainer,{filter:Ki.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Yi}):Ui(e,t.includeContainer,Ki.bind(null,t)))},Qi=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Fi.call(e,Pi)&&Ki(t,e)},$i=Di.concat("iframe").join(","),er=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==Fi.call(e,$i)&&Xi(t,e)};function tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(n),!0).forEach((function(t){ir(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rr=function(){var e=[];return{activateTrap:function(t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var i=e.indexOf(t);-1===i||e.splice(i,1),e.push(t)},deactivateTrap:function(t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()}}}(),ar=function(e){return setTimeout(e,0)},or=function(e,t){var n=-1;return e.every((function(e,i){return!t(e)||(n=i,!1)})),n},sr=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return"function"===typeof e?e.apply(void 0,n):e},cr=function(e){return e.target.shadowRoot&&"function"===typeof e.composedPath?e.composedPath()[0]:e.target},lr=function(e,t){var n,i=(null===t||void 0===t?void 0:t.document)||document,r=nr({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},o=function(e,t,n){return e&&void 0!==e[t]?e[t]:r[n||t]},s=function(e){return a.containerGroups.findIndex((function(t){var n=t.container,i=t.tabbableNodes;return n.contains(e)||i.find((function(t){return t===e}))}))},c=function(e){var t=r[e];if("function"===typeof t){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];t=t.apply(void 0,a)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=t;if("string"===typeof t&&!(s=i.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return s},l=function(){var e=c("initialFocus");if(!1===e)return!1;if(void 0===e)if(s(i.activeElement)>=0)e=i.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},u=function(){if(a.containerGroups=a.containers.map((function(e){var t,n,i=Ji(e,r.tabbableOptions),a=(t=e,(n=(n=r.tabbableOptions)||{}).getShadowRoot?Vi([t],n.includeContainer,{filter:Xi.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):Ui(t,n.includeContainer,Xi.bind(null,n)));return{container:e,tabbableNodes:i,focusableNodes:a,firstTabbableNode:i.length>0?i[0]:null,lastTabbableNode:i.length>0?i[i.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=a.findIndex((function(t){return t===e}));if(!(n<0))return t?a.slice(n+1).find((function(e){return Qi(e,r.tabbableOptions)})):a.slice(0,n).reverse().find((function(e){return Qi(e,r.tabbableOptions)}))}}})),a.tabbableGroups=a.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),a.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},d=function e(t){!1!==t&&t!==i.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!r.preventScroll}),a.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"===typeof e.select}(t)&&t.select()):e(l()))},p=function(e){var t=c("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=cr(e);s(t)>=0||(sr(r.clickOutsideDeactivates,e)?n.deactivate({returnFocus:r.returnFocusOnDeactivate&&!er(t,r.tabbableOptions)}):sr(r.allowOutsideClick,e)||e.preventDefault())},m=function(e){var t=cr(e),n=s(t)>=0;n||t instanceof Document?n&&(a.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),d(a.mostRecentlyFocusedNode||l()))},f=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.ke
2yCode}(e)&&!1!==sr(r.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=cr(e);u();var n=null;if(a.tabbableGroups.length>0){var i=s(t),o=i>=0?a.containerGroups[i]:void 0;if(i<0)n=e.shiftKey?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var l=or(a.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(l<0&&(o.container===t||er(t,r.tabbableOptions)&&!Qi(t,r.tabbableOptions)&&!o.nextTabbableNode(t,!1))&&(l=i),l>=0){var p=0===l?a.tabbableGroups.length-1:l-1;n=a.tabbableGroups[p].lastTabbableNode}}else{var h=or(a.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(h<0&&(o.container===t||er(t,r.tabbableOptions)&&!Qi(t,r.tabbableOptions)&&!o.nextTabbableNode(t))&&(h=i),h>=0){var m=h===a.tabbableGroups.length-1?0:h+1;n=a.tabbableGroups[m].firstTabbableNode}}}else n=c("fallbackFocus");n&&(e.preventDefault(),d(n))}(e)},g=function(e){var t=cr(e);s(t)>=0||sr(r.clickOutsideDeactivates,e)||sr(r.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},b=function(){if(a.active)return rr.activateTrap(n),a.delayInitialFocusTimer=r.delayInitialFocus?ar((function(){d(l())})):d(l()),i.addEventListener("focusin",m,!0),i.addEventListener("mousedown",h,{capture:!0,passive:!1}),i.addEventListener("touchstart",h,{capture:!0,passive:!1}),i.addEventListener("click",g,{capture:!0,passive:!1}),i.addEventListener("keydown",f,{capture:!0,passive:!1}),n},v=function(){if(a.active)return i.removeEventListener("focusin",m,!0),i.removeEventListener("mousedown",h,!0),i.removeEventListener("touchstart",h,!0),i.removeEventListener("click",g,!0),i.removeEventListener("keydown",f,!0),n};return(n={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=o(e,"onActivate"),n=o(e,"onPostActivate"),r=o(e,"checkCanFocusTrap");r||u(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=i.activeElement,t&&t();var s=function(){r&&u(),b(),n&&n()};return r?(r(a.containers.concat()).then(s,s),this):(s(),this)},deactivate:function(e){if(!a.active)return this;var t=nr({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,v(),a.active=!1,a.paused=!1,rr.deactivateTrap(n);var i=o(t,"onDeactivate"),s=o(t,"onPostDeactivate"),c=o(t,"checkCanReturnFocus"),l=o(t,"returnFocus","returnFocusOnDeactivate");i&&i();var u=function(){ar((function(){l&&d(p(a.nodeFocusedBeforeActivation)),s&&s()}))};return l&&c?(c(p(a.nodeFocusedBeforeActivation)).then(u,u),this):(u(),this)},pause:function(){return a.paused||!a.active||(a.paused=!0,v()),this},unpause:function(){return a.paused&&a.active?(a.paused=!1,u(),b(),this):this}
2,updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return a.containers=t.map((function(e){return"string"===typeof e?i.querySelector(e):e})),a.active&&u(),this}}).updateContainerElements(e),n};var ur=!1;if("undefined"!==typeof window){var dr={get passive(){ur=!0}};window.addEventListener("testPassive",null,dr),window.removeEventListener("testPassive",null,dr)}var pr,hr="undefined"!==typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),mr=[],fr=!1,gr=-1,br=void 0,vr=void 0,yr=function(e){return mr.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(e))}))},xr=function(e){var t=e||window.event;return!!yr(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))},_r=function(){void 0!==vr&&(document.body.style.paddingRight=vr,vr=void 0),void 0!==br&&(document.body.style.overflow=br,br=void 0)},wr=function(e,t){if(e){if(!mr.some((function(t){return t.targetElement===e}))){var n={targetElement:e,options:t||{}};mr=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(mr),[n]),hr?(e.ontouchstart=function(e){1===e.targetTouches.length&&(gr=e.targetTouches[0].clientY)},e.ontouchmove=function(t){1===t.targetTouches.length&&function(e,t){var n=e.targetTouches[0].clientY-gr;!yr(e.target)&&(t&&0===t.scrollTop&&n>0||function(e){return!!e&&e.scrollHeight-e.scrollTop<=e.clientHeight}(t)&&n<0?xr(e):e.stopPropagation())}(t,e)},fr||(document.addEventListener("touchmove",xr,ur?{passive:!1}:void 0),fr=!0)):function(e){if(void 0===vr){var t=!!e&&!0===e.reserveScrollBarGap,n=window.innerWidth-document.documentElement.clientWidth;t&&n>0&&(vr=document.body.style.paddingRight,document.body.style.paddingRight=n+"px")}void 0===br&&(br=document.body.style.overflow,document.body.style.overflow="hidden")}(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")},Or=[],jr="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(pr||(pr={}));var Cr,Er=function(e){return Object.freeze(e)},Tr=function(e,t){this.inlineSize=e,this.blockSize=t,Er(this)},kr=function(){function e(e,t,n,i){return this.x=e,this.y=t,this.width=n,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Er(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Sr=function(e){return e instanceof SVGElement&&"getBBox"in e},Ar=function(e){if(Sr(e)){var t=e.getBBox(),n=t.width,i=t.height;return!n&&!i}var r=e,a=r.offsetWidth,o=r.offsetHeight;return!(a||o||e.getClientRects().length)},Ir=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null===e||void 0===e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Mr="undefined"!==typeof window?window:{},Lr=new WeakMap,Br=/auto|scroll/,Rr=/^tb|vertical/,Dr=/msie|trident/i.test(Mr.navigator&&Mr.navigator.userAgent),Pr=function(e){return parseFloat(e||"0")},zr=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new Tr((n?t:e)||0,(n?e:t)||0)},Fr=Er({devicePixelContentBoxSize:zr(),borderBoxSize:zr(),contentBoxSize:zr(),contentRect:new kr(0,0,0,0)}),Nr=function(e,t){if(void 0===t&&(t=!1),Lr.has(e)&&!t)return Lr.get(e);if(Ar(e))return Lr.set(e,Fr),Fr;var n=getComputedStyle(e),i=Sr(e)&&e.ownerSVGElement&&e.getBBox(),r=!Dr&&"border-box"===n.boxSizing,a=Rr.test(n.writingMode||""),o=!i&&Br.test(n.overflowY||""),s=!i&&Br.test(n.overflowX||""),c=i?0:Pr(n.paddingTop),l=i?0:Pr(n.paddingRight),u=i?0:Pr(n.paddingBottom),d=i?0:Pr(n.paddingLeft),p=i?0:Pr(n.borderTopWidth),h=i?0:Pr(n.borderRightWidth),m=i?0:Pr(n.borderBottomWidth),f=d+l,g=c+u,b=(i?0:Pr(n.borderLeftWidth))+h,v=p+m,y=s?e.offsetHeight-v-e.clientHeight:0,x=o?e.offsetWidth-b-e.clientWidth:0,_=r?f+b:0,w=r?g+v:0,O=i?i.width:Pr(n.width)-_-x,j=i?i.height:Pr(n.height)-w-y,C=O+f+x+b,E=j+g+y+v,T=Er({devicePixelContentBoxSize:zr(Math.round(O*devicePixelRatio),Math.round(j*devicePixelRatio),a),borderBoxSize:zr(C,E,a),contentBoxSize:zr(O,j,a),contentRect:new kr(d,c,O,j)});return Lr.set(e,T),T},Ur=function(e,t,n){var i=Nr(e,n),r=i.borderBoxSize,a=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(t){case pr.DEVICE_PIXEL_CONTENT_BOX:return o;case pr.BORDER_BOX:return r;default:return a}},Vr=function(e){var t=Nr(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Er([t.borderBoxSize]),this.contentBoxSize=Er([t.contentBoxSize]),this.devicePixelContentBoxSize=Er([t.devicePixelContentBoxSize])},Wr=function(e){if(Ar(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},qr=function(){var e=1/0,t=[];Or.forEach((function(n){if(0!==n.activeTargets.length){var i=[];
2n.activeTargets.forEach((function(t){var n=new Vr(t.target),r=Wr(t.target);i.push(n),t.lastReportedSize=Ur(t.target,t.observedBox),r<e&&(e=r)})),t.push((function(){n.callback.call(n.observer,i,n.observer)})),n.activeTargets.splice(0,n.activeTargets.length)}}));for(var n=0,i=t;n<i.length;n++){(0,i[n])()}return e},Gr=function(e){Or.forEach((function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach((function(n){n.isActive()&&(Wr(n.target)>e?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},Zr=function(){var e=0;for(Gr(e);Or.some((function(e){return e.activeTargets.length>0}));)e=qr(),Gr(e);return Or.some((function(e){return e.skippedTargets.length>0}))&&function(){var e;"function"===typeof ErrorEvent?e=new ErrorEvent("error",{message:jr}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=jr),window.dispatchEvent(e)}(),e>0},Hr=[],Xr=function(e){if(!Cr){var t=0,n=document.createTextNode("");new MutationObserver((function(){return Hr.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),Cr=function(){n.textContent="".concat(t?t--:t++)}}Hr.push(e),Cr()},Kr=0,Yr={attributes:!0,characterData:!0,childList:!0,subtree:!0},Jr=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Qr=function(e){return void 0===e&&(e=0),Date.now()+e},$r=!1,ea=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!$r){$r=!0;var n,i=Qr(e);n=function(){var n=!1;try{n=Zr()}finally{if($r=!1,e=i-Qr(),!Kr)return;n?t.run(1e3):e>0?t.run(e):t.start()}},Xr((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Yr)};document.body?t():Mr.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Jr.forEach((function(t){return Mr.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Jr.forEach((function(t){return Mr.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}()),ta=function(e){!Kr&&e>0&&ea.start(),!(Kr+=e)&&ea.stop()},na=function(){function e(e,t){this.target=e,this.observedBox=t||pr.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=Ur(this.target,this.observedBox,!0);return function(e){return!Sr(e)&&!function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)&&"inline"===getComputedStyle(e).display}(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),ia=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},ra=new WeakMap,aa=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},oa=function(){function e(){}return e.connect=function(e,t){var n=new ia(e,t);ra.set(e,n)},e.observe=function(e,t,n){var i=ra.get(e),r=0===i.observationTargets.length;aa(i.observationTargets,t)<0&&(r&&Or.push(i),i.observationTargets.push(new na(t,n&&n.box)),ta(1),ea.schedule())},e.unobserve=function(e,t){var n=ra.get(e),i=aa(n.observationTargets,t),r=1===n.observationTargets.length;i>=0&&(r&&Or.splice(Or.indexOf(n),1),n.observationTargets.splice(i,1),ta(-1))},e.disconnect=function(e){var t=this,n=ra.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),sa=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!==typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");oa.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ir(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");oa.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ir(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");oa.unobserve(this,e)},e.prototype.disconnect=function(){oa.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();function ca(e){if("string"===typeof e){var t={type:e,toString:function(){return e}};return t}return e}function la(e){return d(d({type:S},e),{toJSON:function(){e.onDone,e.onError;var t=p(e,["onDone","onError"]);return d(d({},t),{type:S,src:ca(e.src)})}})}var ua={},da=function(e){return"#"===e[0]},pa=function(){function e(t,n,i,r){void 0===i&&(i="context"in t?t.context:void 0);var a,o=this;this.config=t,this._context=i,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null===r||void 0===r?void 0:r.parent,this.key=this.config.key||(null===r||void 0===r?void 0:r.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||f([this.machine.key],m(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(a=this.config.schema)&&void 0!==a?a:{},this.description=this.config.description,R.a||Q(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.t
2ype,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?U(this.config.states,(function(t,n){var i,r=new e(t,{},void 0,{parent:o,key:n});return Object.assign(o.idMap,d(((i={})[r.id]=r,i),r.idMap)),r})):ua;var s=0;!function e(t){var n,i;t.order=s++;try{for(var r=h(me(t)),a=r.next();!a.done;a=r.next()){e(a.value)}}catch(o){n={error:o}}finally{try{a&&!a.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(e){return""===e.event})):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=H(this.config.entry||this.config.onEntry).map((function(e){return Ce(e)})),this.onExit=H(this.config.exit||this.config.onExit).map((function(e){return Ce(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=H(this.config.invoke).map((function(e,t){var n,i;if(re(e)){var r=de(o.id,t);return o.machine.options.services=d(((n={})[r]=e,n),o.machine.options.services),la({src:r,id:r})}if(te(e.src)){r=e.id||de(o.id,t);return la(d(d({},e),{id:r,src:e.src}))}if(re(e.src)||ee(e.src)){r=e.id||de(o.id,t);return o.machine.options.services=d(((i={})[r]=e.src,i),o.machine.options.services),la(d(d({id:r},e),{src:r}))}var a=e.src;return la(d(d({id:de(o.id,t)},e),{src:a}))})),this.activities=H(this.config.activities).concat(this.invoke).map((function(e){return Te(e)})),this.transition=this.transition.bind(this),this.tags=H(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||ge(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var i=this.options,r=i.actions,a=i.activities,o=i.guards,s=i.services,c=i.delays;return new e(this.config,{actions:d(d({},r),t.actions),activities:d(d({},a),t.activities),guards:d(d({},o),t.guards),services:d(d({},s),t.services),delays:d(d({},c),t.delays)},null!==n&&void 0!==n?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return ee(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:U(this.states,(function(e){return e.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce((function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=""===e,n=this.transitions.filter((function(n){var i=n.eventType===e;return t?i:i||"*"===n.eventType}));return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var i=function(e,t){var n=t?"#".concat(t):"";return"".concat(g.After,"(").concat(e,")").concat(n)}
2(ee(t)?"".concat(e.id,":delay[").concat(n,"]"):t,e.id);return e.onEntry.push(Se(i,{delay:t})),e.onExit.push(Ae(i)),i};return($(t)?t.map((function(e,t){var i=n(e.delay,t);return d(d({},e),{event:i})})):G(Object.keys(t).map((function(e,i){var r=t[e],a=te(r)?{target:r}:r,o=isNaN(+e)?e:+e,s=n(o,i);return H(a).map((function(e){return d(d({},e),{event:s,delay:o})}))})))).map((function(t){var n=t.delay;return d(d({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var i=e instanceof ze?e.value:F(e,this.delimiter);if(te(i)){var r=this.getStateNode(i).initial;return void 0!==r?this.getStateNodes(((t={})[i]=r,t)):[this,this.states[i]]}var a=Object.keys(i),o=[this];return o.push.apply(o,f([],m(G(a.map((function(e){return n.getStateNode(e).getStateNodes(i[e])})))),!1)),o},e.prototype.handles=function(e){var t=P(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof ze?e:ze.create(e),n=Array.from(be([],this.getStateNodes(t.value)));return new ze(d(d({},t),{value:this.resolve(t.value),configuration:n,done:_e(n,this),tags:we(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,n){var i=this.getStateNode(e).next(t,n);return i&&i.transitions.length?i:this.next(t,n)},e.prototype.transitionCompoundNode=function(e,t,n){var i=Object.keys(e),r=this.getStateNode(i[0])._transition(e[i[0]],t,n);return r&&r.transitions.length?r:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var i,r,a={};try{for(var o=h(Object.keys(e)),s=o.next();!s.done;s=o.next()){var c=s.value,l=e[c];if(l){var u=this.getStateNode(c)._transition(l,t,n);u&&(a[c]=u)}}}catch(f){i={error:f}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}var d=Object.keys(a).map((function(e){return a[e]})),p=G(d.map((function(e){return e.transitions})));if(!d.some((function(e){return e.transitions.length>0})))return this.next(t,n);var m=G(Object.keys(a).map((function(e){return a[e].configuration})));return{transitions:p,exitSet:G(d.map((function(e){return e.exitSet}))),configuration:m,source:t,actions:G(Object.keys(a).map((function(e){return a[e].actions})))}},e.prototype._transition=function(e,t,n){return te(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,oe(t))},e.prototype.next=function(e,t){var n,i,r,a=this,o=t.name,s=[],c=[];try{for(var l=h(this.getCandidates(o)),u=l.next();!u.done;u=l.next()){var d=u.value,p=d.cond,g=d.in,b=e.context,v=!g||(te(g)&&da(g)?e.matches(F(this.getStateNodeById(g).path,this.delimiter)):D(F(g,this.delimiter),W(this.path.slice(0,-2))(e.value))),y=!1;try{y=!p||ce(this.machine,p,b,t,e)}catch(_){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(o,"' in state node '").concat(this.id,"':\n").concat(_.message))}if(y&&v){void 0!==d.target&&(c=d.target),s.push.apply(s,f([],m(d.actions),!1)),r=d;break}}}catch(w){n={error:w}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}if(r){if(!c.length)return{transitions:[r],exitSet:[],configuration:e.value?[this]:[],source:e,actions:s};var x=G(c.map((function(t){return a.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[r],exitSet:!!r.internal?[]:G(c.map((function(e){return a.getPotentiallyReenteringNodes(e)}))),configuration:x,source:e,actions:s}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],n=this,i=e;n&&n!==i;)t.push(n),n=n.parent;return n!==i?[]:(t.push(i),t)},e.prototype.getActions=function(e,t,n,i,r,a,o){var s,c,l,u,d=this,p=a?be([],this.getStateNodes(a.value)):[],b=new Set;try{for(var v=h(Array.from(e).sort((function(e,t){return e.order-t.order}))),y=v.next();!y.done;y=v.next()){(!xe(p,w=y.value)||xe(n.exitSet,w)||w.parent&&b.has(w.parent))&&b.add(w)}}catch(S){s={error:S}}finally{try{y&&!y.done&&(c=v.return)&&c.call(v)}finally{if(s)throw s.error}}try{for(var x=h(p),_=x.next();!_.done;_=x.next()){var w;xe(e,w=_.value)&&!xe(n.exitSet,w.parent)||n.exitSet.push(w)}}catch(A){l={error:A}}finally{try{_&&!_.done&&(u=x.return)&&u.call(x)}finally{if(l)throw l.error}}n.exitSet.sort((function(e,t){return t.order-e.order}));var O=Array.from(b).sort((function(e,t){return e.order-t.order})),j=new Set(n.exitSet),C=G(O.map((function(e){var t=[];if("final"!==e.type)return t;var a=e.parent;if(!a.parent)return t;
2t.push(Me(e.id,e.doneData),Me(a.id,e.doneData?X(e.doneData,i,r):void 0));var o=a.parent;return"parallel"===o.type&&fe(o).every((function(e){return _e(n.configuration,e)}))&&t.push(Me(o.id)),t}))),E=O.map((function(e){var t=e.onEntry,n=e.activities.map((function(e){return function(e){var t=Te(e);return{type:g.Start,activity:t,exec:void 0}}(e)}));return{type:"entry",actions:Ee(o?f(f([],m(t),!1),m(n),!1):f(f([],m(n),!1),m(t),!1),d.machine.options.actions)}})).concat({type:"state_done",actions:C.map((function(e){return ke(e)}))}),T=Array.from(j).map((function(e){return{type:"exit",actions:Ee(f(f([],m(e.onExit),!1),m(e.activities.map((function(e){return Ie(e)}))),!1),d.machine.options.actions)}})).concat({type:"transition",actions:Ee(n.actions,this.machine.options.actions)}).concat(E);if(t){var k=Ee(G(f([],m(e),!1).sort((function(e,t){return t.order-e.order})).map((function(e){return e.onExit}))),this.machine.options.actions).filter((function(e){return!pe(e)}));return T.concat({type:"stop",actions:k})}return T},e.prototype.transition=function(e,t,n,i){void 0===e&&(e=this.initialState);var r,a,o=oe(t);if(e instanceof ze)r=void 0===n?e:this.resolveState(ze.from(e,n));else{var s=te(e)?this.resolve(N(this.getResolvedPath(e))):this.resolve(e),c=null!==n&&void 0!==n?n:this.machine.context;r=this.resolveState(ze.from(s,c))}if(!R.a&&"*"===o.name)throw new Error("An event cannot have the wildcard type ('".concat("*","')"));if(this.strict&&!this.events.includes(o.name)&&(a=o.name,!/^(done|error)\./.test(a)))throw new Error("Machine '".concat(this.id,"' does not accept event '").concat(o.name,"'"));var l=this._transition(r.value,r,o)||{transitions:[],configuration:[],exitSet:[],source:r,actions:[]},u=be([],this.getStateNodes(r.value)),d=l.configuration.length?be(u,l.configuration):u;return l.configuration=f([],m(d),!1),this.resolveTransition(l,r,r.context,i,o)},e.prototype.resolveRaisedTransition=function(e,t,n,i){var r,a=e.actions;return(e=this.transition(e,t,void 0,i))._event=n,e.event=n.data,(r=e.actions).unshift.apply(r,f([],m(a),!1)),e},e.prototype.resolveTransition=function(e,t,n,i,r){var a,o,s,c,l=this;void 0===r&&(r=Oe);var u=e.configuration,p=!t||e.transitions.length>0,f=p?e.configuration:t?t.configuration:[],g=_e(f,this),b=p?ye(this.machine,u):void 0,v=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,y=this.getActions(new Set(f),g,e,n,r,t,i),w=t?d({},t.activities):{};try{for(var O=h(y),j=O.next();!j.done;j=O.next()){var E=j.value;try{for(var T=(s=void 0,h(E.actions)),k=T.next();!k.done;k=T.next()){var A=k.value;A.type===x?w[A.activity.id||A.activity.type]=A:A.type===_&&(w[A.activity.id||A.activity.type]=!1)}}catch(K){s={error:K}}finally{try{k&&!k.done&&(c=T.return)&&c.call(T)}finally{if(s)throw s.error}}}}catch(J){a={error:J}}finally{try{j&&!j.done&&(o=O.return)&&o.call(O)}finally{if(a)throw a.error}}var I,L,B=m(Re(this,t,n,r,y,i,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),R=B[0],D=B[1],P=m(function(e,t){var n,i,r=m([[],[]],2),a=r[0],o=r[1];try{for(var s=h(e),c=s.next();!c.done;c=s.next()){var l=c.value;t(l)?a.push(l):o.push(l)}}catch(J){n={error:J}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return[a,o]}(R,pe),2),z=P[0],F=P[1],N=R.filter((function(e){var t;return e.type===x&&(null===(t=e.activity)||void 0===t?void 0:t.type)===S})).reduce((function(e,t){return e[t.activity.id]=function(e,t,n,i){var r,a=le(e.src),o=null===(r=null===t||void 0===t?void 0:t.options.services)||void 0===r?void 0:r[a.type],s=e.data?X(e.data,n,i):void 0,c=o?Ge(o,e.id,s):qe(e.id);return c.meta=e,c}(t.activity,l.machine,D,r),e}),t?d({},t.children):{}),U=new ze({value:b||t.value,context:D,_event:r,_sessionid:t?t._sessionid:null,historyValue:b?v?(I=v,L=b,{current:L,states:Y(I,L)}):void 0:t?t.historyValue:void 0,history:!b||e.source?t:void 0,actions:b?F:[],activities:b?w:t?t.activities:{},events:[],configuration:f,transitions:e.transitions,children:N,done:g,tags:we(f),machine:this}),V=n!==D;U.changed=r.name===M||V;var W=U.history;W&&delete W.history;var q=!g&&(this._transient||u.some((function(e){return e._transient})));if(!p&&(!q||""===r.name))return U;var G=U;if(!g)for(q&&(G=this.resolveRaisedTransition(G,{type:C},r,i));z.length;){var Z=z.shift();G=this.resolveRaisedTransition(G,Z._event,r,i)}var H=G.changed||(W?!!G.actions.length||V||typeof W.value!==typeof G.value||!function e(t,n){if(t===n)return!0;
2if(void 0===t||void 0===n)return!1;if(te(t)||te(n))return t===n;var i=Object.keys(t),r=Object.keys(n);return i.length===r.length&&i.every((function(i){return e(t[i],n[i])}))}(G.value,W.value):void 0);return G.changed=H,G.history=W,G},e.prototype.getStateNode=function(e){if(da(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=da(e)?e.slice("#".length):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw new Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(e){if("string"===typeof e&&da(e))try{return this.getStateNodeById(e.slice(1))}catch(r){}for(var t=z(e,this.delimiter).slice(),n=this;t.length;){var i=t.shift();if(!i.length)break;n=n.getStateNode(i)}return n},e.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||ua;switch(this.type){case"parallel":return U(this.initialStateValue,(function(t,i){return t?n.getStateNode(i).resolve(e[i]||t):ua}));case"compound":if(te(e)){var i=this.getStateNode(e);return"parallel"===i.type||"compound"===i.type?((t={})[e]=i.initialStateValue,t):e}return Object.keys(e).length?U(e,(function(e,t){return e?n.getStateNode(t).resolve(e):ua})):this.initialStateValue||{};default:return e||ua}},e.prototype.getResolvedPath=function(e){if(da(e)){var t=this.machine.idMap[e.slice("#".length)];if(!t)throw new Error("Unable to find state node '".concat(e,"'"));return t.path}return z(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=V(this.states,(function(e){return e.initialStateValue||ua}),(function(e){return!("history"===e.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=he(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!==t&&void 0!==t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=te(t.target)&&da(t.target)?N(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return he(this)?[this]:"compound"!==this.type||this.initial?G(q(this.initialStateValue).map((function(t){return e.getFromRelativePath(t)}))):(R.a||Q(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this])},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=m(e),n=t[0],i=t.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var r=this.getStateNode(n);if("history"===r.type)return r.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(i)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:V(this.states,(function(t,n){if(!e)return t.historyValue();var i=te(e)?void 0:e[n];return t.historyValue(i||t.initialStateValue)}),(function(e){return!e.history}))}},e.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var i=this.target;return i?G(q(i).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var r,a,o=(r=n.path,a="states",function(e){var t,n,i=e;try{for(var o=h(r),s=o.next();!s.done;s=o.next()){var c=s.value;i=i[a][c]}}
2catch(l){t={error:l}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i})(e).current;return te(o)?[n.getStateNode(o)]:G(q(o).map((function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]})))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=G(Object.keys(this.states).map((function(t){return e.states[t].stateIds})));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var e,t,n,i;if(this.__cache.events)return this.__cache.events;var r=this.states,a=new Set(this.ownEvents);if(r)try{for(var o=h(Object.keys(r)),s=o.next();!s.done;s=o.next()){var c=r[s.value];if(c.states)try{for(var l=(n=void 0,h(c.events)),u=l.next();!u.done;u=l.next()){var d=u.value;a.add("".concat(d))}}catch(p){n={error:p}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}}}catch(m){e={error:m}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(a)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter((function(e){return!(!e.target&&!e.actions.length&&e.internal)})).map((function(e){return e.eventType})));return Array.from(e)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map((function(e){if(!te(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var i=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(i);try{return t.parent.getStateNodeByPath(i)}catch(r){throw new Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(r.message))}}))},e.prototype.formatTransition=function(e){var t=this,n=function(e){if(void 0!==e&&""!==e)return H(e)}(e.target),i="internal"in e?e.internal:!n||n.some((function(e){return te(e)&&e[0]===t.delimiter})),r=this.machine.options.guards,a=this.resolveTarget(n),o=d(d({},e),{actions:Ee(H(e.actions)),cond:ne(e.cond,r),target:a,source:this,internal:i,eventType:e.event,toJSON:function(){return d(d({},o),{target:o.target?o.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return o},e.prototype.formatTransitions=function(){var e,t,n,i=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var r=this.config.on,a=r["*"],o=void 0===a?[]:a,s=p(r,["*"]);n=G(Object.keys(s).map((function(e){R.a||""!==e||Q(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(i.id,'".'));var t=se(e,s[e]);return R.a||function(e,t,n){var i=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&(te(e.target)||re(e.target))})),r=""===t?"the transient event":"event '".concat(t,"'");Q(!i,"One or more transitions for ".concat(r," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(i,e,t),t})).concat(se("*",o)))}else n=[];var c=this.config.always?se("",this.config.always):[],l=this.config.onDone?se(String(Me(this.id)),this.config.onDone):[];R.a||Q(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var u=G(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,f([],m(se(String(Le(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,f([],m(se(String(Be(e.id)),e.onError)),!1)),t}))),d=this.after,g=G(f(f(f(f([],m(l),!1),m(u),!1),m(n),!1),m(c),!1).map((function(e){return H(e).map((function(e){return i.formatTransition(e)}))})));try{for(var b=h(d),v=b.next();!v.done;v=b.next()){var y=v.value;g.push(y)}}catch(x){e={error:x}}finally{try{v&&!v.done&&(t=b.return)&&t.call(b)}finally{if(e)throw e.error}}return g},e}();var ha=function(e){return{type:E,assignment:e}};function ma(){return(ma=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(this,arguments)}function fa(e,t){if(null==e)return{};var n,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)t.indexOf(n=a[i])>=0||(r[n]=e[n]);return r}var ga="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;function ba(e,t,n){return t=(t=+t)==t?t:0,n=(n=+n)==n?n:0,(e=+e)==e&&(e=(e=e<=n?e:n)>=t?e:t),e}function va(e){var t=Math.round(e);if(Number.isNaN(e))throw new TypeError("Found a NaN! Check your snapPoints / defaultSnap / snapTo ");return t}var ya={box:"border-box"};function xa(e,t){var n=t.label,r=t.enabled,a=t.resizeSourceRef,o=Object(i.useState)(0),s=o[0],c=o[1];Object(i.useDebugValue)(n+": "+s);var l=Object(i.useCallback)((function(e){c(e[0].borderBoxSize[0].blockSize),a.current="element"}),[a]);return ga((function(){if(e.current&&r){var t=new sa(l);return t.observe(e.current,ya),function(){t.disconnect()}}}),[e,l,r]),r?s:0}function _a(e){return void 0===e&&(e=1e3),new Promise((function(t){return setTimeout(t,e)}))}var wa,Oa,ja,Ca={DRAG:{target:"#overlay.dragging",actions:"onOpenEnd"}},Ea={RESIZE:{target:"#overlay.resizing",actions:"onOpenEnd"}},Ta=(wa={id:"overlay",initial:"closed",context:{initialState:"CLOSED"},states:{closed:{on:{OPEN:"opening",CLOSE:void 0}},opening:{initial:"start",states:{start:{invoke:{src:"onOpenStart",onDone:"transition"}},transition:{always:[{target:"immediately",cond:"initiallyOpen"},{target:"smoothly",cond:"initiallyClosed"}]},immediately:{initial:"open",states:{open:{invoke:{src:"openImmediately",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"#overlay.opening.end"},on:ma({},Ca,Ea)}}},smoothly:{initial:"visuallyHidden",states:{visuallyHidden:{invoke:{src:"renderVisuallyHidden",onDone:"activating"}},activating:{invoke:{src:"activate",onDone:"open"}},open:{invoke:{src:"openSmoothly",onDone:"#overlay.opening.end"},on:ma({},Ca,Ea)}}},end:{invoke:{src:"onOpenEnd",onDone:"done"},on:{CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:ma({},{CLOSE:{target:"#overlay.closing",actions:"onOpenCancel"}}),onDone:"open"},open:{on:{DRAG:"#overlay.dragging",SNAP:"snapping",RESIZE:"resizing"}},dragging:{on:{SNAP:"snapping"}},snapping:{initial:"start",states:{start:{invoke:{src:"onSnapStart",onDone:"snappingSmoothly"},entry:[ha({y:function(e,t){return t.payload.y},velocity:function(e,t){return t.payload.velocity},snapSource:function(e,t){var n=t.payload.source;
2return void 0===n?"custom":n}})]},snappingSmoothly:{invoke:{src:"snapSmoothly",onDone:"end"}},end:{invoke:{src:"onSnapEnd",onDone:"done"},on:{RESIZE:"#overlay.resizing",SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{SNAP:{target:"snapping",actions:"onSnapEnd"},RESIZE:{target:"#overlay.resizing",actions:"onSnapCancel"},DRAG:{target:"#overlay.dragging",actions:"onSnapCancel"},CLOSE:{target:"#overlay.closing",actions:"onSnapCancel"}},onDone:"open"},resizing:{initial:"start",states:{start:{invoke:{src:"onResizeStart",onDone:"resizingSmoothly"}},resizingSmoothly:{invoke:{src:"resizeSmoothly",onDone:"end"}},end:{invoke:{src:"onResizeEnd",onDone:"done"},on:{SNAP:"#overlay.snapping",CLOSE:"#overlay.closing",DRAG:"#overlay.dragging"}},done:{type:"final"}},on:{RESIZE:{target:"resizing",actions:"onResizeEnd"},SNAP:{target:"snapping",actions:"onResizeCancel"},DRAG:{target:"#overlay.dragging",actions:"onResizeCancel"},CLOSE:{target:"#overlay.closing",actions:"onResizeCancel"}},onDone:"open"},closing:{initial:"start",states:{start:{invoke:{src:"onCloseStart",onDone:"deactivating"},on:{OPEN:{target:"#overlay.open",actions:"onCloseCancel"}}},deactivating:{invoke:{src:"deactivate",onDone:"closingSmoothly"}},closingSmoothly:{invoke:{src:"closeSmoothly",onDone:"end"}},end:{invoke:{src:"onCloseEnd",onDone:"done"},on:{OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}}},done:{type:"final"}},on:{CLOSE:void 0,OPEN:{target:"#overlay.opening",actions:"onCloseCancel"}},onDone:"closed"}},on:{CLOSE:"closing"}},Oa={actions:{onOpenCancel:function(e,t){},onSnapCancel:function(e,t){},onResizeCancel:function(e,t){},onCloseCancel:function(e,t){},onOpenEnd:function(e,t){},onSnapEnd:function(e,t){},onRezizeEnd:function(e,t){}},services:{onSnapStart:function(){try{return Promise.resolve(_a()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenStart:function(){try{return Promise.resolve(_a()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseStart:function(){try{return Promise.resolve(_a()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeStart:function(){try{return Promise.resolve(_a()).then((function(){}))}catch(e){return Promise.reject(e)}},onSnapEnd:function(){try{return Promise.resolve(_a()).then((function(){}))}catch(e){return Promise.reject(e)}},onOpenEnd:function(){try{return Promise.resolve(_a()).then((function(){}))}catch(e){return Promise.reject(e)}},onCloseEnd:function(){try{return Promise.resolve(_a()).then((function(){}))}catch(e){return Promise.reject(e)}},onResizeEnd:function(){try{return Promise.resolve(_a()).then((function(){}))}catch(e){return Promise.reject(e)}},renderVisuallyHidden:function(e,t){try{return Promise.resolve(_a()).then((function(){}))}catch(e){return Promise.reject(e)}},activate:function(e,t){try{return Promise.resolve(_a()).then((function(){}))}catch(e){return Promise.reject(e)}},deactivate:function(e,t){try{return Promise.resolve(_a()).then((function(){}))}catch(e){return Promise.reject(e)}},openSmoothly:function(e,t){try{return Promise.resolve(_a()).then((function(){}))}catch(e){return Promise.reject(e)}},openImmediately:function(e,t){try{return Promise.resolve(_a()).then((function(){}))}catch(e){return Promise.reject(e)}},snapSmoothly:function(e,t){try{return Promise.resolve(_a()).then((function(){}))}catch(e){return Promise.reject(e)}},resizeSmoothly:function(e,t){try{return Promise.resolve(_a()).then((function(){}))}catch(e){return Promise.reject(e)}},closeSmoothly:function(e,t){try{return Promise.resolve(_a()).then((function(){}))}catch(e){return Promise.reject(e)}}},guards:{initiallyClosed:function(e){return"CLOSED"===e.initialState},initiallyOpen:function(e){return"OPEN"===e.initialState}}},void 0===ja&&(ja=wa.context),new pa(wa,Oa,ja)),ka=["children","sibling","className","footer","header","open","initialState","lastSnapRef","initialFocusRef","onDismiss","maxHeight","defaultSnap","snapPoints","blocking","scrollLocking","style","onSpringStart","onSpringCancel","onSpringEnd","reserveScrollBarGap","expandOnContentDrag"],Sa=["velocity"],Aa=["onRest","config"],Ia={tension:170,friction:26},Ma=Ia.tension,La=Ia.friction,Ba=r.a.forwardRef((function(e,t){var n=e.children,a=e.sibling,o=e.className,s=e.footer,c=e.header,l=e.open,u=e.initialState,d=e.lastSnapRef,p=e.initialFocusRef,h=e.onDismiss,m=e.maxHeight,f=e.defaultSnap,g=void 0===f?Da:f,b=e.snapPoints,v=void 0===b?Pa:b,y=e.blocking,x=void 0===y||y,_=e.scrollLocking,w=void 0===_||_,O=e.style,j=e.onSpringStart,C=e.onSpringCancel,E=e.onSpringEnd,T=e.reserveScrollBarGap,k=void 0===T?x:T,S=e.expandOnContentDrag,A=void 0!==S&&S,I=fa(e,ka),M=function(){var e=Object(i.useState)(!1),t=e[0],n=e[1],r=Object(i.useState)({}),a=r[0],o=r[1],s=Object(i.useCallback)((function(e){return o((function(t){var n;return ma({},t,((n={})[e]=!1,n))})),function(){o((function(t){var n;return ma({},t,((n={})[e]=!0,n))}))}}),[]);return Object(i.useEffect)((function(){var e=Object.values(a);0!==e.length&&e.every(Boolean)&&n(!0)}),[a]),{ready:t,registerReady:s}}(),L=M.ready,B=M.registerReady,R=Object(i.useRef)(!1),D=Object(i.useRef)(j),P=Object(i.useRef)(C),z=Object(i.useRef)(E);Object(i.useEffect)((function(){D.current=j,P.current=C,z.current=E}),[C,j,E]);var F,N,U=function(e){var t=Ct.fun(e),n=an(1,t?e:[e]),i=n[0],r=n[1],a=n[2];return t?[i[0],r,a]:i}((function(){return{y:0,ready:0,maxHeight:0,minSnap:0,maxSnap:0}})),V=U[0],W=U[1],q=Object(i.useRef)(null),G=Object(i.useRef)(null),Z=Object(i.useRef)(null),H=Object(i.useRef)(null),X=Object(i.useRef)(null),K=Object(i.useRef)(null),Y=Object(i.useRef)(0),J=Object(i.useRef)(),Q=Object(i.useRef)(!1),$=(F=Object(i.useMemo)((function(){return"undefined"!=typeof window?window.matchMedia("(prefers-reduced-motion: reduce)"):null}),[]),N=Object(i.useRef)(null==F?void 0:F.matches),Object(i.useDebugValue)(N.current?"reduce":"no-preference"),Object(i.useEffect)((function(){var e=function(e){N.current=e.matches};return null==F||F.addListener(e),function(){return null==F?void 0:F.removeListener(e)}}),[F]),N),ee=function(e){var t=e.targetRef,n=e.enabled,r=e.reserveScrollBarGap,a=Object(i.useRef)({activate:function(){throw new TypeError("Tried to activate scroll lock too early")},deactivate:function(){}});return Object(i.useDebugValue)(n?"Enabled":"Disabled"),Object(i.useEffect)((function(){if(!n)return a.current.deactivate(),void(a.current={activate:function(){},deactivate:function(){}});var e=t.current,i=!1;a.current={activate:function(){i||(i=!0,wr(e,{allowTouchMove:function(e){return e.closest("[data-body-scroll-lock-ignore]")},reserveScrollBarGap:r}))},deactivate:function(){var t;i&&(i=!1,(t=e)?(mr=mr.filter((function(e){return e.targetElement!==t})),hr?(t.ontouchstart=null,t.ontouchmove=null,fr&&0===mr.length&&(document.removeEventListener("touchmove",xr,ur?{passive:!1}:void 0),fr=!1)):mr.length||_r()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices."))}}}),[n,t,r]),a}
2({targetRef:G,enabled:L&&w,reserveScrollBarGap:k}),te=function(e){var t=e.targetRef,n=e.enabled,r=Object(i.useRef)({activate:function(){throw new TypeError("Tried to activate aria hider too early")},deactivate:function(){}});return Object(i.useDebugValue)(n?"Enabled":"Disabled"),Object(i.useEffect)((function(){if(!n)return r.current.deactivate(),void(r.current={activate:function(){},deactivate:function(){}});var e=t.current,i=!1,a=[],o=[];r.current={activate:function(){if(!i){i=!0;var t=e.parentNode;document.querySelectorAll("body > *").forEach((function(e){if(e!==t){var n=e.getAttribute("aria-hidden");null!==n&&"false"!==n||(a.push(n),o.push(e),e.setAttribute("aria-hidden","true"))}}))}},deactivate:function(){i&&(i=!1,o.forEach((function(e,t){var n=a[t];null===n?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n)})),a=[],o=[])}}}),[t,n]),r}({targetRef:q,enabled:L&&x}),ne=function(e){var t=e.targetRef,n=e.fallbackRef,r=e.initialFocusRef,a=e.enabled,o=Object(i.useRef)({activate:function(){throw new TypeError("Tried to activate focus trap too early")},deactivate:function(){}});return Object(i.useDebugValue)(a?"Enabled":"Disabled"),Object(i.useEffect)((function(){if(!a)return o.current.deactivate(),void(o.current={activate:function(){},deactivate:function(){}});var e=n.current,i=lr(t.current,{onActivate:void 0,initialFocus:r?function(){return(null==r?void 0:r.current)||e}:void 0,fallbackFocus:e,escapeDeactivates:!1,clickOutsideDeactivates:!1}),s=!1;o.current={activate:function(){try{return s?Promise.resolve():(s=!0,Promise.resolve(i.activate()).then((function(){return Promise.resolve(new Promise((function(e){return setTimeout((function(){return e(void 0)}),0)}))).then((function(){}))})))}catch(e){return Promise.reject(e)}},deactivate:function(){s&&(s=!1,i.deactivate())}}}),[a,n,r,t]),o}({targetRef:q,fallbackRef:K,initialFocusRef:p||void 0,enabled:L&&x&&!1!==p}),ie=function(e){var t=e.getSnapPoints,n=e.heightRef,r=e.lastSnapRef,a=e.ready,o=function(e){var t=e.contentRef,n=e.controlledMaxHeight,r=e.footerEnabled,a=e.footerRef,o=e.headerEnabled,s=e.headerRef,c=e.registerReady,l=e.resizeSourceRef,u=Object(i.useMemo)((function(){return c("contentHeight")}),[c]),d=function(e,t,n){var r=Object(i.useMemo)((function(){return t("maxHeight")}),[t]),a=Object(i.useState)((function(){return va(e)||"undefined"!=typeof window?window.innerHeight:0})),o=a[0],s=a[1],c=o>0,l=Object(i.useRef)(0);return Object(i.useDebugValue)(e?"controlled":"auto"),Object(i.useEffect)((function(){c&&r()}),[c,r]),ga((function(){if(e)return s(va(e)),void(n.current="maxheightprop");var t=function(){l.current||(l.current=requestAnimationFrame((function(){s(window.innerHeight),n.current="window",l.current=0})))};return window.addEventListener("resize",t),s(window.innerHeight),n.current="window",r(),function(){window.removeEventListener("resize",t),cancelAnimationFrame(l.current)}}),[e,r,n]),o}(n,c,l),p=xa(s,{label:"headerHeight",enabled:o,resizeSourceRef:l}),h=xa(t,{label:"contentHeight",enabled:!0,resizeSourceRef:l}),m=xa(a,{label:"footerHeight",enabled:r,resizeSourceRef:l}),f=Math.min(d-p-m,h)+p+m;Object(i.useDebugValue)("minHeight: "+f);var g=h>0;return Object(i.useEffect)((function(){g&&u()}),[g,u]),{maxHeight:d,minHeight:f,headerHeight:p,footerHeight:m}}({contentRef:e.contentRef,controlledMaxHeight:e.controlledMaxHeight,footerEnabled:e.footerEnabled,footerRef:e.footerRef,headerEnabled:e.headerEnabled,headerRef:e.headerRef,registerReady:e.registerReady,resizeSourceRef:e.resizeSourceRef}),s=o.maxHeight,c=o.minHeight,l=o.headerHeight,u=o.footerHeight,d=function(e,t){var n=[].concat(e).map(va).reduce((function(e,n){return e.add(ba(n,0,t)),e}),new Set),i=Array.from(n),r=Math.min.apply(Math,i);if(Number.isNaN(r))throw new TypeError("minSnap is NaN");var a=Math.max.apply(Math,i);if(Number.isNaN(a))throw new TypeError("maxSnap is NaN");return{snapPoints:i,minSnap:r,maxSnap:a}}(a?t({height:n.current,footerHeight:u,headerHeight:l,minHeight:c,maxHeight:s}):[0],s),p=d.snapPoints,h=d.minSnap,m=d.maxSnap;return Object(i.useDebugValue)("minSnap: "+h+", maxSnap:"+m),{minSnap:h,maxSnap:m,findSnap:function(e){var t=va("function"==typeof e?e({footerHeight:u,headerHeight:l,height:n.current,minHeight:c,maxHeight:s,snapPoints:p,lastSnap:r.current}):e);return p.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}),h)},maxHeight:s}}({contentRef:Z,controlledMaxHeight:m,footerEnabled:!!s,footerRef:X,getSnapPoints:v,headerEnabled:!1!==c,headerRef:H,heightRef:Y,lastSnapRef:d,ready:L,registerReady:B,resizeSourceRef:J}),re=ie.minSnap,ae=ie.maxSnap,oe=ie.maxHeight,se=ie.findSnap,ce=Object(i.useRef)(oe),le=Object(i.useRef)(re),ue=Object(i.useRef)(ae),de=Object(i.useRef)(se),pe=Object(i.useRef)(0);ga((function(){ce.current=oe,ue.current=ae,le.current=re,de.current=se,pe.current=se(g)}),[se,g,oe,ae,re]);var he=Object(i.useCallback)((function(e){var t=e.onRest,n=e.config,i=(n=void 0===n?{}:n).velocity,r=void 0===i?1:i,a=fa(n,Sa),o=fa(e,Aa);return new Promise((function(e){return W(ma({},o,{config:ma({velocity:r},a,{mass:1,tension:Ma,friction:Math.max(La,La+(La-La*r))}),onRest:function(){var n=[].slice.call(arguments);e.apply(void 0,n),null==t||t.apply(void 0,n)}}))}))}),[W]),me=mt(Ta,{devTools:!1,actions:{onOpenCancel:Object(i.useCallback)((function(){return null==P.current?void 0:P.current({type:"OPEN"})}),[]),onSnapCancel:Object(i.useCallback)((function(e){return null==P.current?void 0:P.current({type:"SNAP",source:e.snapSource})}),[]),onCloseCancel:Object(i.useCallback)((function(){return null==P.current?void 0:P.current({type:"CLOSE"})}),[]),onResizeCancel:Object(i.useCallback)((function(){return null==P.current?void 0:P.current({type:"RESIZE",source:J.current})}),[]),onOpenEnd:Object(i.useCallback)((function(){return null==z.current?void 0:z.current({type:"OPEN"})}),[]),onSnapEnd:Object(i.useCallback)((function(e,t){return null==z.current?void 0:z.current({type:"SNAP",source:e.snapSource})}),[]),onResizeEnd:Object(i.useCallback)((function(){return null==z.current?void 0:z.current({type:"RESIZE",source:J.current})}),[])},context:{initialState:u},services:{onSnapStart:Object(i.useCallback)((function(e,t){try{return Promise.resolve(null==D.current?void 0:D.current({type:"SNAP",source:t.payload.source||"custom"}))}catch(e){return Promise.reject(e)}}),[]),onOpenStart:Object(i.useCallback)((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseStart:Object(i.useCallback)((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeStart:Object(i.useCallback)((function(){try{return Promise.resolve(null==D.current?void 0:D.current({type:"RESIZE",source:J.current}))}catch(e){return Promise.reject(e)}}),[]),onSnapEnd:Object(i.useCallback)((function(e,t){try{return Promise.resolve(null==z.current?void 0:z.current({type:"SNAP",source:e.snapSource}))}catch(e){return Promise.reject(e)}}),[]),onOpenEnd:Object(i.useCallback)((function(){try{return Promise.resolve(null==z.current?void 0:z.current({type:"OPEN"}))}catch(e){return Promise.reject(e)}}),[]),onCloseEnd:Object(i.useCallback)((function(){try{return Promise.resolve(null==z.current?void 0:z.current({type:"CLOSE"}))}catch(e){return Promise.reject(e)}}),[]),onResizeEnd:Object(i.useCallback)((function(){try{return Promise.resolve(null==z.current?void 0:z.current({type:"RESIZE",source:J.current}))}catch(e){return Promise.reject(e)}}),[]),renderVisuallyHidden:Object(i.useCallback)((function(e,t){try{return Promise.resolve(he({y:pe.current,ready:0,maxHeight:ce.current,maxSnap:ue.current,minSnap:pe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[he]),activate:Object(i.useCallback)((function(e,t){try{return R.current=!0,Promise.resolve(Promise.all([ee.current.activate(),ne.current.activate(),te.current.activate()])).then((function(){}))}catch(e){return Promise.reject(e)}}),[te,ne,ee]),deactivate:Object(i.useCallback)((function(){try{return ee.current.deactivate(),ne.current.deactivate(),te.current.deactivate(),R.current=!1,Promise.resolve()}catch(e){return Promise.reject(e)}}),[te,ne,ee]),openImmediately:Object(i.useCallback)((function(){try{return Y.current=pe.current,Promise.resolve(he({y:pe.current,ready:1,maxHeight:ce.current,maxSnap:ue.current,minSnap:pe.current,immediate:!0})).then((function(){}))}catch(e){return Promise.reject(e)}}),[he]),openSmoothly:Object(i.useCallback)((function(){try{return Promise.resolve(he({y:0,ready:1,maxHeight:ce.current,maxSnap:ue.current,minSnap:pe.current,immediate:!0})).then((function(){return Y.current=pe.current,Promise.resolve(he({y:pe.current,ready:1,maxHeight:ce.current,maxSnap:ue.current,minSnap:pe.current,immediate:$.current})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[he,$]),snapSmoothly:Object(i.useCallback)((function(e,t){try{var n=de.current(e.y);return Y.current=n,d.current=n,Promise.resolve(he({y:n,ready:1,maxHeight:ce.current,maxSnap:ue.current,minSnap:le.current,immediate:$.current,config:{velocity:e.velocity}})).then((function(){}))}catch(e){return Promise.reject(e)}}),[he,d,$]),resizeSmoothly:Object(i.useCallback)((function(){try{var e=de.current(Y.current);return Y.current=e,d.current=e,Promise.resolve(he({y:e,ready:1,maxHeight:ce.current,maxSnap:ue.current,minSnap:le.current,immediate:"element"!==J.current||$.current})).then((function(){}))}catch(e){return Promise.reject(e)}}),[he,d,$]),closeSmoothly:Object(i.useCallback)((function(e,t){try{return he({minSnap:Y.current,immediate:!0}),Y.current=0,Promise.resolve(he({y:0,maxHeight:ce.current,maxSnap:ue.current,immediate:$.current})).then((function(){return Promise.resolve(he({ready:0,immediate:!0})).then((function(){}))}))}catch(e){return Promise.reject(e)}}),[he,$])}}),fe=me[0],ge=me[1];Object(i.useEffect)((function(){L&&ge(l?"OPEN":"CLOSE")}),[l,ge,L]),ga((function(){(oe||ae||re)&&ge("RESIZE")}),[oe,ae,re,ge]),Object(i.useEffect)((function(){return function(){ee.current.deactivate(),ne.current.deactivate(),te.current.deactivate()}}
2),[te,ne,ee]),Object(i.useImperativeHandle)(t,(function(){return{snapTo:function(e,t){var n=void 0===t?{}:t,i=n.velocity,r=void 0===i?1:i,a=n.source,o=void 0===a?"custom":a;ge("SNAP",{payload:{y:de.current(e),velocity:r,source:o}})},get height(){return Y.current}}}),[ge]),Object(i.useEffect)((function(){var e=G.current,t=function(e){Q.current&&e.preventDefault()},n=function(t){e.scrollTop<0&&(requestAnimationFrame((function(){e.style.overflow="hidden",e.scrollTop=0,e.style.removeProperty("overflow")})),t.preventDefault())};return A&&(e.addEventListener("scroll",t),e.addEventListener("touchmove",t),e.addEventListener("touchstart",n)),function(){e.removeEventListener("scroll",t),e.removeEventListener("touchmove",t),e.removeEventListener("touchstart",n)}}),[A,G]);var be=function(e,t){void 0===t&&(t={}),ui.set("drag",Li);var n=Object(i.useRef)();return n.current||(n.current=Bi(si,Ri)),Ti({drag:e},n.current(t))}((function(e){var t=e.args,n=(t=void 0===t?[]:t)[0],i=(n=void 0===n?{}:n).closeOnTap,r=void 0!==i&&i,a=n.isContentDragging,o=void 0!==a&&a,s=e.cancel,c=e.direction[1],l=e.down,u=e.first,d=e.last,p=e.memo,m=void 0===p?V.y.getValue():p,f=e.tap,g=e.velocity,b=-1*e.movement[1];if(!R.current)return s(),m;if(h&&r&&f)return s(),setTimeout((function(){return h()}),0),m;if(f)return m;var v=m+b,y=b*g,x=Math.max(le.current,Math.min(ue.current,v+2*y));if(!l&&h&&c>0&&v+y<le.current/2)return s(),h(),m;var _=l?h||le.current!==ue.current?Un(v,h?0:le.current,ue.current,.55):v<le.current?Un(v,le.current,2*ue.current,.55):Un(v,le.current/2,ue.current,.55):x;return A&&o?(_>=ue.current&&(_=ue.current),m===ue.current&&G.current.scrollTop>0&&(_=ue.current),Q.current=_<ue.current):Q.current=!1,u&&ge("DRAG"),d?(ge("SNAP",{payload:{y:_,velocity:g>.05?g:1,source:"dragging"}}),m):(W({y:_,ready:1,maxHeight:ce.current,maxSnap:ue.current,minSnap:le.current,immediate:!0,config:{velocity:g}}),m)}),{filterTaps:!0});if(Number.isNaN(ue.current))throw new TypeError("maxSnapRef is NaN!!");if(Number.isNaN(le.current))throw new TypeError("minSnapRef is NaN!!");var ve=function(e){var t,n=e.spring,i=$t([n.y,n.maxHeight],(function(e,t){return Math.round(ba(t-e,0,16))+"px"})),r=$t([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return ba(e,t,n)+"px"})),a=$t([n.y,n.minSnap,n.maxSnap],(function(e,t,n){return e<t?t-e+"px":e>n?n-e+"px":"0px"})),o=$t([n.y,n.maxSnap],(function(e,t){return e>=t?Math.ceil(e-t):0})),s=$t([n.y,n.minSnap],(function(e,t){if(!t)return 0;var n=Math.max(t/2-45,0);return ba((e-n)*(1/(Math.min(t/2+45,t)-n)+0),0,1)})),c=$t([n.y,n.minSnap],(function(e,t){return t?ba(e/t,0,1):0}));return(t={})["--rsbs-content-opacity"]=s,t["--rsbs-backdrop-opacity"]=c,t["--rsbs-antigap-scale-y"]=o,t["--rsbs-overlay-translate-y"]=a,t["--rsbs-overlay-rounded"]=i,t["--rsbs-overlay-h"]=r,t}({spring:V});return r.a.createElement(Bn.div,ma({},I,{"data-rsbs-root":!0,"data-rsbs-state":Ra.find(fe.matches),"data-rsbs-is-blocking":x,"data-rsbs-is-dismissable":!!h,"data-rsbs-has-header":!!c,"data-rsbs-has-footer":!!s,className:o,ref:q,style:ma({},ve,O,{opacity:V.ready})}),a,x&&r.a.createElement("div",ma({key:"backdrop","data-rsbs-backdrop":!0},be({closeOnTap:!0}))),r.a.createElement("div",{key:"overlay","aria-modal":"true",role:"dialog","data-rsbs-overlay":!0,tabIndex:-1,ref:K,onKeyDown:function(e){"Escape"===e.key&&(e.stopPropagation(),h&&h())}},!1!==c&&r.a.createElement("div",ma({key:"header","data-rsbs-header":!0,ref:H},be()),c),r.a.createElement("div",ma({key:"scroll","data-rsbs-scroll":!0,ref:G},A?be({isContentDragging:!0}):{}),r.a.createElement("div",{"data-rsbs-content":!0,ref:Z},n)),s&&r.a.createElement("div",ma({key:"footer",ref:X,"data-rsbs-footer":!0},be()),s)))})),Ra=["closed","opening","open","closing","dragging","snapping","resizing"];function Da(e){var t=e.lastSnap;return null!=t?t:Math.min.apply(Math,e.snapPoints)}function Pa(e){return e.minHeight}var za=["onSpringStart","onSpringEnd","skipInitialTransition"],Fa=Object(i.forwardRef)((function(e,t){var n=e.onSpringStart,a=e.onSpringEnd,o=e.skipInitialTransition,s=fa(e,za),c=Object(i.useState)(!1),l=c[0],d=c[1],p=Object(i.useRef)(),h=Object(i.useRef)(null),m=Object(i.useRef)(o&&s.open?"OPEN":"CLOSED");ga((function(){if(s.open)return cancelAnimationFrame(p.current),d(!0),function(){m.current="CLOSED"}}),[s.open]);var f=Object(i.useCallback)((function(e){return Promise.resolve(null==n?void 0:n(e)).then((function(){"OPEN"===e.type&&cancelAnimationFrame(p.current)}))}),[n]),g=Object(i.useCallback)((function(e){return Promise.resolve(null==a?void 0:a(e)).then((function(){"CLOSE"===e.type&&(p.current=requestAnimationFrame((function(){return d(!1)})))}))}),[a]);return l?r.a.createElement(u,{"data-rsbs-portal":!0}
2,r.a.createElement(Ba,ma({},s,{lastSnapRef:h,ref:t,initialState:m.current,onSpringStart:f,onSpringEnd:g}))):null}))},1885:function(e,t,n){"use strict";var i=n(19),r=n(3),a=n(9),o=n(0),s=n.n(o),c=n(1604),l=n(1779),u=n(2),d=n(865),p=n(1),h=Object(d.a)((function(e){var t,n;return{root:{position:"relative",cursor:"pointer",display:"flex","& .markerSvgWrapper":{position:"relative"},"& .fav-icon":Object(r.a)(Object(r.a)({backgroundColor:"#fff",width:Object(p.p)(24),height:Object(p.p)(24),display:"flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",position:"absolute",top:Object(p.p)(-3)},e.mixins.right(-3)),{},Object(u.a)({boxShadow:"0 4px 64px 0 rgba(41, 38, 47, 0.20)",transition:"all .3s ease-in"},Object(p.e)("mdUpd"),Object(r.a)({width:Object(p.q)(24),height:Object(p.q)(24),top:Object(p.q)(-3)},e.mixins.right(-3)))),"& .customMarkerSvg":Object(u.a)({width:Object(p.p)(48),height:Object(p.p)(53),maxWidth:"100%",maxHeight:"100%",transition:"all .3s ease-in"},Object(p.e)("mdUpd"),{width:Object(p.q)(48),height:Object(p.q)(53)}),"& .text":Object(r.a)(Object(r.a)({position:"absolute",top:"50%"},e.mixins.left(Object(p.p)(52))),{},Object(u.a)({transform:"translateY(-50%)",pointerEvents:"none",fontFamily:e.custom.fontFamily.primaryBold,color:"#000",fontSize:Object(p.p)(10),fontWeight:400,lineHeight:1,WebkitTextStrokeWidth:Object(p.p)(0),WebkitTextStrokeColor:"#fff",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",textShadow:"1px 0 0 #fff,-1px 0 0 #fff,0 1px 0 #fff,0 -1px 0 #fff,1px 1px 0 #fff,-1px 1px 0 #fff,1px -1px 0 #fff,-1px -1px 0 #fff !important","@supports (-webkit-text-stroke: 1px white)":{textShadow:"none"},'[dir="rtl"] &':{direction:"rtl"},width:Object(p.p)(88),transition:"all .3s ease-in",textAlign:e.mixins.textLeft()},Object(p.e)("mdUpd"),Object(r.a)(Object(u.a)({fontSize:Object(p.q)(10),width:Object(p.q)(88)},"fontSize",Object(p.q)(10)),e.mixins.left(Object(p.q)(52))))),"&.active":{pointerEvents:"none","& .fav-icon":Object(r.a)(Object(r.a)({transform:"scale(1.3)",top:Object(p.p)(-1)},e.mixins.right(-1)),{},Object(u.a)({},Object(p.e)("mdUpd"),Object(r.a)({top:Object(p.q)(-1)},e.mixins.right(-1)))),"& .customMarkerSvg":Object(u.a)({width:Object(p.p)(72),height:Object(p.p)(77)},Object(p.e)("mdUpd"),{width:Object(p.q)(72),height:Object(p.q)(77)}),"& .text":(t={top:"auto",width:Object(p.p)(72),transform:"translate(-50%, 0)",bottom:Object(p.p)(-31),left:"50%"},Object(u.a)(t,"transform","translate(-50%, 0)"),Object(u.a)(t,"textAlign","center"),Object(u.a)(t,"fontSize",Object(p.p)(12)),Object(u.a)(t,"minHeight",Object(p.p)(22)),Object(u.a)(t,Object(p.e)("mdUpd"),{fontSize:Object(p.q)(12),minHeight:Object(p.q)(22),width:Object(p.q)(72),bottom:Object(p.q)(-31)}),t)},"@media (hover: hover) and (pointer: fine)":{"& .markerSvgWrapper:hover":{"& .fav-icon":Object(r.a)(Object(r.a)({transform:"scale(1.3)",top:Object(p.p)(-1)},e.mixins.right(-1)),{},Object(u.a)({},Object(p.e)("mdUpd"),Object(r.a)({top:Object(p.q)(-1)},e.mixins.right(-1)))),"& .customMarkerSvg":Object(u.a)({width:Object(p.p)(72),height:Object(p.p)(77)},Object(p.e)("mdUpd"),{width:Object(p.q)(72),height:Object(p.q)(77)}),"& ~ .text":Object(r.a)(Object(r.a)({},e.mixins.left(0)),{},Object(u.a)({width:Object(p.p)(72),top:"125%",textAlign:"center",fontSize:Object(p.p)(12),minHeight:Object(p.p)(22)},Object(p.e)("mdUpd"),{fontSize:Object(p.q)(12),minHeight:Object(p.q)(22),width:Object(p.q)(72),bottom:Object(p.q)(-31)}))}}},cluster:(n={position:"relative",cursor:"pointer",width:Object(p.p)(48),height:Object(p.p)(48),borderRadius:"50%",boxShadow:"0 4px 16px 0 rgba(41, 38, 47, 0.20)",backgroundColor:"#fff",display:"flex",justifyContent:"center",alignItems:"center",fontSize:Object(p.p)(16),color:e.palette.common.Palm(),fontFamily:e.custom.fontFamily.primaryBold,transition:"all .2s ease-in"},Object(u.a)(n,Object(p.e)("mdUpd"),{width:Object(p.q)(48),height:Object(p.q)(48),fontSize:Object(p.q)(16)}),Object(u.a)(n,"@media (hover: hover) and (pointer: fine)",{"&:hover":Object(u.a)({width:Object(p.p)(72),height:Object(p.p)(72)}
2,Object(p.e)("mdUpd"),{width:Object(p.q)(72),height:Object(p.q)(72)})}),n)}})),m=n(1519),f=n(1694),g=n.n(f);function b(e,t){return Object(o.useMemo)((function(){return g()(e,t)}),[e,t])}var v=n(1729),y=n.n(v),x=n(16),_=n.n(x),w=n(93),O=n.n(w),j=n(15),C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1x1",n=function(){try{return j.a?window.location.origin.includes("localhost")?"https://dev.visitabudhabi.ae":window.location.origin:""}catch(e){return console.error(e),""}},i=function(e){if(!e)return"";var t=String(e).trim();if(/^(?:https?:)?\/\//i.test(t)||/^data:image\//i.test(t))return t;var i=String(n()||"").replace(/\/+$/,""),r=t.replace(/^\/+/,"");return i&&r?"".concat(i,"/").concat(r):t};if("string"===typeof e){var r=e.trim();return r?i(r):y.a}if(!e||"object"!==typeof e)return y.a;var a=_()(e,t);if(a&&!O()(a)){var o=Object.values(a).find((function(e){return"string"===typeof e&&e.trim().length>0}));if(o)return i(o)}var s=_()(e,"src","")||_()(e,"url","")||_()(e,"href","");return s?i(s):y.a};function E(e){var t=e.imgSrc,n=e.avatarDiameter,i=void 0===n?48:n,r=e.ringThickness,c=void 0===r?3:r,l=e.tailWidth,u=void 0===l?12:l,d=e.tailHeight,p=void 0===d?6:d,h=e.id,m=y.a,f=Object(o.useState)(C(t,"1x1")),g=Object(a.a)(f,2),b=g[0],v=g[1];Object(o.useEffect)((function(){v(C(t,"1x1"))}),[t]);var x=i/2,_=x+c,w=2*_+p,O=_,j=_+2,E=j+_;return s.a.createElement("svg",{viewBox:"0 0 ".concat(E+2," ").concat(w+2),role:"img","aria-label":"marker",style:{display:"block"},className:"customMarkerSvg"},s.a.createElement("defs",null,s.a.createElement("clipPath",{id:"".concat(h,"-clip")},s.a.createElement("circle",{cx:j,cy:O,r:x})),s.a.createElement("filter",{id:"".concat(h,"-shadow"),width:"200%",height:"200%"},s.a.createElement("feDropShadow",{dx:"0",dy:"1.5",stdDeviation:"2.5",floodOpacity:"0.25"}))),s.a.createElement("g",{filter:"url(#".concat(h,"-shadow)")},s.a.createElement("circle",{cx:j,cy:O,r:_,fill:"#fff"}),s.a.createElement("path",{d:"M ".concat(j-u/2," ").concat(O+_-1,"\n             L ").concat(j," ").concat(O+_+p,"\n             L ").concat(j+u/2," ").concat(O+_-1," Z"),fill:"#fff"})),s.a.createElement("image",{href:b,x:j-x,y:O-x,width:i,height:i,preserveAspectRatio:"xMidYMid slice",clipPath:"url(#".concat(h,"-clip)"),onError:function(){b!==m&&v(m)}}))}var T=n(354),k=function(e){var t=e.longitude,n=e.latitude,i=e.title,r=e.image,a=e.onClick,l=e.isActive,u=e.id,d=(0,Object(o.useContext)(T.b).isFavorite)(u),p=h(),f=b((function(e){a(e)}),300);return s.a.createElement(c.b,{onClick:f,longitude:t,latitude:n},s.a.createElement(m.a,{className:"".concat(p.root," ").concat(Boolean(l)?"active":"")},s.a.createElement(m.a,{className:"markerSvgWrapper"},d&&s.a.createElement(m.a,{className:"fav-icon"},s.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},s.a.createElement("path",{dataFigmaBgBlurRadius:"10",fillRule:"evenodd","clip-rule":"evenodd",d:"M6 1.97352C5.42054 1.49964 4.72322 1.16159 4.00984 1.04462C3.13337 0.900896 2.2103 1.0916 1.50305 1.80392C0.165649 3.1509 0.165649 5.33332 1.50305 6.6803L5.64519 10.8521C5.73906 10.9466 5.86677 10.9998 6 10.9998C6.13323 10.9998 6.26094 10.9466 6.35481 10.8521L10.4969 6.6803C11.8344 5.33332 11.8344 3.1509 10.4969 1.80392C9.7897 1.0916 8.86663 0.900896 7.99016 1.04462C7.27678 1.16159 6.57946 1.49964 6 1.97352Z",fill:"#00605F"}),s.a.createElement("defs",null,s.a.createElement("clipPath",{id:"bgblur_0_20255_7343_clip_path",transform:"translate(9.5 9)"},s.a.createElement("path",{fillRule:"evenodd","clip-rule":"evenodd",d:"M6 1.97352C5.42054 1.49964 4.72322 1.16159 4.00984 1.04462C3.13337 0.900896 2.2103 1.0916 1.50305 1.80392C0.165649 3.1509 0.165649 5.33332 1.50305 6.6803L5.64519 10.8521C5.73906 10.9466 5.86677 10.9998 6 10.9998C6.13323 10.9998 6.26094 10.9466 6.35481 10.8521L10.4969 6.6803C11.8344 5.33332 11.8344 3.1509 10.4969 1.80392C9.7897 1.0916 8.86663 0.900896 7.99016 1.04462C7.27678 1.16159 6.57946 1.49964 6 1.97352Z"}))))),s.a.createElement(E,{imgSrc:r,id:u})),i&&s.a.createElement(m.a,{className:"text"},i)))},S=function(e){var t=e.count,n=void 0===t?0:t,i=e.longitude,r=void 0===i?0:i,a=e.latitude,o=void 0===a?0:a,l=e.onClick,u=void 0===l?function(){}:l,d=h(),p=b((function(e){u(e)}),300);return s.a.createElement(c.b,{longitude:r,latitude:o},s.a.createElement(m.a,{onClick:p,className:"".concat(d.cluster)},s.a.createElement("span",null,n)))},A="activity",I={PRIVATE:"Private"},M=n(1851);t.a=s.a.memo((function(e){e.detailPageType;var t=e.geojsonData,n=e.onClickMarker,u=e.selectedItem,d=void 0===u?null:u,p=e.sItemGeoJson,h=void 0===p?null:p,m=e.clusterProps,f=void 0===m?{radius:100,maxZoom:19}:m,g=e.currentLocationMarker,b=void 0===g?null:g,v=Object(c.f)().current,y=Object(o.useState)(null),x=Object(a.a)(y,2),w=x[0],O=x[1],j=Object(o.useState)([]),C=Object(a.a)(j,2),E=C[0],T=C[1],L=Object(o.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e&&"number"===typeof e?e<=180?64:e<=500?128:e<=2e3?256:512:64}),[]);Object(o.useEffect)((function(){if(!t||!t.length)return O(null),void T([]);var e=t.filter((function(e){return"facility"!==e.properties.type})),n=new l.a(Object(r.a)(Object(r.a)({},f),{},{nodeSize:L(_()(e,"length",0))}));n.load(e),O(n)}),[t,f,L]);var B=Object(o.useCallback)((function(){if(v){var e=Math.round(v.getZoom()),t=v.getBounds().toArray().flat();w&&T(w.getClusters(t,e))}}),[v,w]);Object(o.useEffect)((function(){if(v)return B(),v.on("zoom",B),function(){v.off("zoom",B)}}),[v,B]);var R=Object(o.useCallback)((function(e,t,n){var i=w;if(i&&v){var r=Math.min(i.getClusterExpansionZoom(n),25);v.flyTo({center:[e,t],zoom:r})}}),[w,v]),D=Object(o.useCallback)((function(e){var t=_()(e,"properties.id","markerId");return _()(d,"id","selectedItemId")===t}),[d]),P=Object(o.useMemo)((function(){return!!Array.isArray(t)&&t.some((function(e){return _()(e,"properties.type","")===A}))}),[t]),z=Object(o.useMemo)((function(){return _()(t,"[0].properties.type","")!==A}),[t]),F=(Object(o.useCallback)((function(e){var t=w;if(!z||!t||!h)return!1;var n=t.getLeaves(e,1/0);return n.some((function(e){var t,n;return(null===e||void 0===e||null===(t=e.properties)||void 0===t?void 0:t.id)===(null===h||void 0===h||null===(n=h.properties)||void 0===n?void 0:n.id)}))}),[w,z,h]),Object(o.useCallback)((function(e){var t=e.type,n=e.longitude,i=e.latitude,r=e.count,a=e.onClick;return s.a.createElement(S,{type:t,longitude:n,latitude:i,count:r,onClick:a})}),[])),N=Object(o.useCallback)((function(e){return function(t){return n(t,e)}}),[n]),U=Object(o.useCallback)((function(e,t,n){return function(){return R(e,t,n)}}),[R]),V=Object(o.useCallback)((function(e){return(e||"").toLowerCase().includes(I.PRIVATE.toLowerCase())}),[]),W=Object(o.useMemo)((function(){return E.map((function(e){var t=e.properties,n=t.cluster,i=t.point_count,r=t.cluster_id,o=Object(a.a)(e.geometry.coordinates,2),c=o[0],l=o[1],u=V(_()(e,"properties.placesType",""));if(n)return s.a.createElement(F,{key:"cluster-general-".concat(r),type:P?"activity":"location",longitude:c,latitude:l,count:i,onClick:U(c,l,r)});var d=e.properties,p=(d.type,d.name),h=d.thumbnailImage,m=d.id,f="marker-".concat(e.id||"".concat(c,"-").concat(l)),g=D(e);return s.a.createElement(k,{isPrivateIsland:u,onClick:N(e),key:f,longitude:c,latitude:l,isActive:g,title:p,image:h,id:m})}))}),[E,P,U,D,N,F,V]),q=Object(o.useMemo)((function(){return b?s.a.createElement(M.b,{key:_()(b,"properties.id",""),longitude:_()(b,"geometry.coordinates[0]",""),latitude:_()(b,"geometry.coordinates[1]","")}):null}),[b]),G=Object(o.useMemo)((function(){var e;
2if(!d||!h)return null;var t=null===d||void 0===d||null===(e=d.properties)||void 0===e?void 0:e.id;if(Object(i.a)(E).some((function(e){return!e.properties.cluster&&e.properties.id===t})))return null;var n=h.geometry,r=h.properties,o=Object(a.a)(n.coordinates,2),c=o[0],l=o[1],u="selected-marker-".concat(r.id);return s.a.createElement(k,{onClick:N(h),key:u,longitude:c,latitude:l,isActive:!0,title:r.name,image:r.thumbnailImage})}),[d,h,E,N]),Z=Object(o.useMemo)((function(){var e=Object(i.a)(W);return q&&e.push(q),G&&e.push(G),e}),[W,q,G]);return s.a.createElement(s.a.Fragment,null,Z)}))},1894:function(e,t,n){"use strict";var i=n(25),r=n(6),a=n(0),o=n(60),s=n(866),c=n(1305),l=n(110),u=n(136),d=n(160),p=n(130),h=n(142),m=n(1516),f=n(97),g=n(20),b=n(35),v=n(59),y=a.forwardRef((function(e,t){var n=e.anchor,o=e.classes,s=e.className,l=e.width,u=Object(i.a)(e,["anchor","classes","className","width"]);return a.createElement("div",Object(r.a)({className:Object(g.a)(o.root,o["anchor".concat(Object(v.a)(n))],s),ref:t,style:Object(f.a)({},Object(c.c)(n)?"width":"height",l)},u))})),x=Object(b.a)((function(e){return{root:{position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1},anchorLeft:{right:"auto"},anchorRight:{left:"auto",right:0},anchorTop:{bottom:"auto",right:0},anchorBottom:{top:"auto",bottom:0,right:0}}}),{name:"PrivateSwipeArea"})(y),_=null;function w(e,t){return"right"===e?document.body.offsetWidth-t[0].pageX:t[0].pageX}function O(e,t){return"bottom"===e?window.innerHeight-t[0].clientY:t[0].clientY}function j(e,t){return e?t.clientWidth:t.clientHeight}function C(e,t,n,i){return Math.min(Math.max(n?t-e:i+t-e,0),i)}var E="undefined"!==typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),T={enter:d.b.enteringScreen,exit:d.b.leavingScreen},k="undefined"!==typeof window?a.useLayoutEffect:a.useEffect,S=a.forwardRef((function(e,t){var n=Object(p.a)(),d=Object(s.a)({name:"MuiSwipeableDrawer",props:Object(r.a)({},e),theme:n}),f=d.anchor,g=void 0===f?"left":f,b=d.disableBackdropTransition,v=void 0!==b&&b,y=d.disableDiscovery,S=void 0!==y&&y,A=d.disableSwipeToOpen,I=void 0===A?E:A,M=d.hideBackdrop,L=d.hysteresis,B=void 0===L?.52:L,R=d.minFlingVelocity,D=void 0===R?450:R,P=d.ModalProps,z=(P=void 0===P?{}:P).BackdropProps,F=Object(i.a)(P,["BackdropProps"]),N=d.onClose,U=d.onOpen,V=d.open,W=d.PaperProps,q=void 0===W?{}:W,G=d.SwipeAreaProps,Z=d.swipeAreaWidth,H=void 0===Z?20:Z,X=d.transitionDuration,K=void 0===X?T:X,Y=d.variant,J=void 0===Y?"temporary":Y,Q=Object(i.a)(d,["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"]),$=a.useState(!1),ee=$[0],te=$[1],ne=a.useRef({isSwiping:null}),ie=a.useRef(),re=a.useRef(),ae=a.useRef(),oe=a.useRef(!1),se=a.useRef();k((function(){se.current=null}),[V]);var ce=a.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.mode,r=void 0===i?null:i,a=t.changeTransition,o=void 0===a||a,s=Object(c.b)(n,g),l=-1!==["right","bottom"].indexOf(s)?1:-1,u=Object(c.c)(g),d=u?"translate(".concat(l*e,"px, 0)"):"translate(0, ".concat(l*e,"px)"),p=ae.current.style;p.webkitTransform=d,p.transform=d;var m="";if(r&&(m=n.transitions.create("all",Object(h.a)({timeout:K},{mode:r}))),o&&(p.webkitTransition=m,p.transition=m),!v&&!M){var f=re.current.style;f.opacity=1-e/j(u,ae.current),o&&(f.webkitTransition=m,f.transition=m)}}),[g,v,M,n,K]),le=Object(u.a)((function(e){if(oe.current)if(_=null,oe.current=!1,te(!1),ne.current.isSwiping){ne.current.isSwiping=null;var t,i=Object(c.b)(n,g),r=Object(c.c)(g);t=r?w(i,e.changedTouches):O(i,e.changedTouches);var a=r?ne.current.startX:ne.current.startY,o=j(r,ae.current),s=C(t,a,V,o),l=s/o;Math.abs(ne.current.velocity)>D&&(se.current=1e3*Math.abs((o-s)/ne.current.velocity)),V?ne.current.velocity>D||l>B?N():ce(0,{mode:"exit"}):ne.current.velocity<-D||1-l>B?U():ce(j(r,ae.current),{mode:"enter"})}else ne.current.isSwiping=null})),ue=Object(u.a)((function(e){if(ae.current&&oe.current&&(null==_||_===ne.current)){var t=Object(c.b)(n,g),i=Object(c.c)(g),r=w(t,e.touches),a=O(t,e.touches);if(V&&ae.current.contains(e.target)&&null==_){var o=function(e){var t=e.domTreeShapes,n=e.start,i=e.current,r=e.anchor,a={x:"scrollLeft",y:"scrollTop"},o={x:"scrollWidth",y:"scrollHeight"},s={x:"clientWidth",y:"clientHeight"};return t.some((function(e){var t=i>=n;"top"!==r&&"left"!==r||(t=!t);var c="left"===r||"right"===r?"x":"y",l=e[a[c]],u=l>0,d=l+e[s[c]]<e[o[c]];return t&&d||!t&&u?e:null}))}({domTreeShapes:function(e,t){for(var n=[];e&&e!==t;){var i=window.getComputedStyle(e);"absolute"===i.getPropertyValue("position")||"hidden"===i.getPropertyValue("overflow-x")?n=[]:(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&n.push(e),e=e.parentElement}return n}(e.target,ae.current),start:i?ne.current.startX:ne.current.startY,current:i?r:a,anchor:g});if(o)return void(_=o);_=ne.current}if(null==ne.current.isSwiping){var s=Math.abs(r-ne.current.startX),l=Math.abs(a-ne.current.startY);s>l&&e.cancelable&&e.preventDefault();var u=i?s>l&&s>3:l>s&&l>3;if(!0===u||(i?l>3:s>3)){if(ne.current.isSwiping=u,!u)return void le(e);ne.current.startX=r,ne.current.startY=a,S||V||(i?ne.current.startX-=H:ne.current.startY-=H)}}if(ne.current.isSwiping){var d=j(i,ae.current),p=i?ne.current.startX:ne.current.startY;V&&!ne.current.paperHit&&(p=Math.min(p,d));var h=C(i?r:a,p,V,d);if(V)if(ne.current.paperHit)0===h&&(ne.current.startX=r,ne.current.startY=a);else{if(!(i?r<d:a<d))return;ne.current.paperHit=!0,ne.current.startX=r,ne.current.startY=a}null===ne.current.lastTranslate&&(ne.current.lastTranslate=h,ne.current.lastTime=performance.now()+1);var m=(h-ne.current.lastTranslate)/(performance.now()-ne.current.lastTime)*1e3;ne.current.velocity=.4*ne.current.velocity+.6*m,ne.current.lastTranslate=h,ne.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),ce(h)}}})),de=Object(u.a)((function(e){if(!e.defaultPrevented&&!e.muiHandled&&(!V||re.current.contains(e.target)||ae.current.contains(e.target))){var t=Object(c.b)(n,g),i=Object(c.c)(g),r=w(t,e.touches),a=O(t,e.touches);if(!V){if(I||e.target!==ie.current)return;if(i){if(r>H)return}else if(a>H)return}e.muiHandled=!0,_=null,ne.current.startX=r,ne.current.startY=a,te(!0),!V&&ae.current&&ce(j(i,ae.current)+(S?20:-H),{changeTransition:!1}),ne.current.velocity=0,ne.current.lastTime=null,ne.current.lastTranslate=null,ne.current.paperHit=!1,oe.current=!0}}));a.useEffect((function(){if("temporary"===J){var e=Object(l.a)(ae.current);return e.addEventListener("touchstart",de),e.addEventListener("touchmove",ue,{passive:!1}),e.addEventListener("touchend",le),function(){e.removeEventListener("touchstart",de),e.removeEventListener("touchmove",ue,{passive:!1}),e.removeEventListener("touchend",le)}}}),[J,de,ue,le]),a.useEffect((function(){return function(){_===ne.current&&(_=null)}}),[]),a.useEffect((function(){V||te(!1)}),[V]);var pe=a.useCallback((function(e){re.current=o.findDOMNode(e)}),[]);return a.createElement(a.Fragment,null,a.createElement(c.a,Object(r.a)({open:!("temporary"!==J||!ee)||V,variant:J,ModalProps:Object(r.a)({BackdropProps:Object(r.a)({},z,{ref:pe})},F),PaperProps:Object(r.a)({},q,{style:Object(r.a)({pointerEvents:"temporary"!==J||V?"":"none"},q.style),ref:ae}),anchor:g,transitionDuration:se.current||K,onClose:N,ref:t},Q)),!I&&"temporary"===J&&a.createElement(m.a,null,a.createElement(x,Object(r.a)({anchor:g,ref:ie,width:H},G))))}));t.a=S},1895:function(e,t,n){"use strict";var i=n(3),r=n(9),a=n(1294),o=n(870),s=n(0),c=n.n(s),l=n(2),u=n(358),d=n.n(u),p=n(1),h=n(98),m=d()((function(e){var t,n,r,a,o,s;return{root:{width:"100%",borderRadius:"var(--mfd-rounding-s)","& .input
2Label":Object(i.a)(Object(i.a)(Object(i.a)({},e.typography.body3Upd),{},{transform:"translateY(".concat(Object(p.p)(16),") scale(1)"),zIndex:1,color:e.palette.common.Black()},e.mixins.left(Object(p.p)(16))),{},(t={pointerEvents:"none"},Object(l.a)(t,e.breakpoints.between(769,1024.25),Object(i.a)({},e.mixins.left(Object(p.p)(21)))),Object(l.a)(t,Object(p.e)("mdUpd"),Object(i.a)({transform:"translateY(".concat(Object(p.q)(16),") scale(1)")},e.mixins.left(Object(p.q)(16)))),Object(l.a)(t,'[dir="rtl"] &',{transformOrigin:"top right"}),Object(l.a)(t,"&.inputLabelShrink",Object(l.a)({color:e.palette.common.Grey1Upd(),transform:"translateY(".concat(Object(p.p)(8.5),") scale(0.7)"),fontSize:"initial"},Object(p.e)("mdUpd"),{transform:"translateY(".concat(Object(p.q)(8.5),") scale(0.7)")})),t)),"& .inputWrapper":Object(i.a)(Object(i.a)({transition:"all 0.3s ease-in-out",background:e.palette.common.WhiteUpd(),border:"1px solid ".concat(e.palette.common.Grey3()),borderRadius:"var(--mfd-rounding-s)"},e.mixins.paddingLR("var(--mfd-spacing-s)","var(--mfd-spacing-s)")),{},(r={height:Object(p.p)(56),marginTop:0,"&::before, &::after":{content:"none",border:"0 !important"},"&:hover":{boxShadow:h.a.raised}},Object(l.a)(r,Object(p.e)("mdUpd"),{height:Object(p.q)(52)}),Object(l.a)(r,"& .inputField",Object(i.a)(Object(i.a)({},e.typography.body3Upd),{},Object(l.a)({color:e.mixins.Black(),padding:"".concat(Object(p.p)(25.5)," 0 ").concat(Object(p.p)(8.5))},Object(p.e)("mdUpd"),{padding:"".concat(Object(p.q)(24.5)," 0 ").concat(Object(p.q)(7.5))}))),Object(l.a)(r,"& .inputEndSvgWrapper",Object(i.a)(Object(i.a)({},e.mixins.marginLeft("var(--mfd-spacing-s)")),{},(n={width:"".concat(Object(p.p)(16)),height:"".concat(Object(p.p)(16))},Object(l.a)(n,Object(p.e)("mdUpd"),{width:"".concat(Object(p.q)(16)),height:"".concat(Object(p.q)(16))}),Object(l.a)(n,"& svg",Object(l.a)({width:"".concat(Object(p.q)(16)),height:"".concat(Object(p.q)(16))},Object(p.e)("mdUpd"),{width:"".concat(Object(p.q)(16)),height:"".concat(Object(p.q)(16))})),n))),Object(l.a)(r,"&.disabled",{"&:hover":{boxShadow:"none"},"& .inputField":{color:e.palette.common.Grey2Upd()}}),Object(l.a)(r,"&.readOnly",{borderColor:"transparent","&:hover":{boxShadow:"none"},"&::before":{content:"none"}}),Object(l.a)(r,"&.success",{borderColor:e.palette.common.feedbackPositive(),"& .inputField":Object(i.a)({},e.typography.body3Upd)}),Object(l.a)(r,"&.error",{borderColor:"".concat(e.palette.common.feedbackNegative()),"& .inputField":Object(i.a)({},e.typography.body3Upd)}),Object(l.a)(r,"&.focused",{"&::before":Object(i.a)(Object(i.a)({content:'""',position:"absolute",top:"".concat(Object(p.p)(-7)),width:"calc(100% + ".concat(Object(p.p)(14),")"),height:"calc(100% + ".concat(Object(p.p)(14),")"),borderRadius:"var(--mfd-rounding-s)"},e.mixins.left(Object(p.p)(-6.5))),{},Object(l.a)({border:"3px solid ".concat(e.palette.common.Palm())},Object(p.e)("mdUpd"),Object(i.a)({top:"".concat(Object(p.q)(-7)),width:"calc(100% + ".concat(Object(p.q)(14),")"),height:"calc(100% + ".concat(Object(p.q)(14),")")},e.mixins.left(Object(p.q)(-6.5)))))}),Object(l.a)(r,"&.focused.error",{borderColor:"".concat(e.palette.common.feedbackNegative())}),r)),"& .inputWrapperHelperText":Object(i.a)(Object(i.a)({},e.typography.labelUpd),{},{marginTop:"var(--mfd-spacing-xxs)",marginLeft:0,marginRight:0,'[dir="rtl"] &':{textAlign:"right"}}),"&.exploreMapSearch":{borderRadius:"var(--mfd-rounding-xxxxl)","& .inputWrapper":(s={borderRadius:"var(--mfd-rounding-xxxxl)",background:e.palette.common.SurfaceSunken(),borderColor:"".concat(e.palette.common.Grey3(),"!important"),height:Object(p.p)(48)},Object(l.a)(s,Object(p.e)("sm"),{height:Object(p.q)(40),width:"100%"}),Object(l.a)(s,"&:focus-within",{borderColor:"".concat(e.palette.common.DarkTurquoise," !important")}),Object(l.a)(s,"&:hover",{boxShadow:"none"}),Object(l.a)(s,"&:focus",{borderColor:e.palette.common.feedbackPositive()}),Object(l.a)(s,"& .inputField",{padding:0}),Object(l.a)(s,"& .inputEndSvgWrapper",(a={display:"flex",justifyContent:"center",alignItems:"center",background:"transparent",borderRadius:"100%",width:"auto",height:"auto",padding:"var(--mfd-spacing-xxxs)",cursor:"pointer"},Object(l.a)(a,Object(p.e)("mdUpd"),{width:"".concat(Object(p.q)(20)),height:"".concat(Object(p.q)(20)),background:e.palette.common.Grey4(),'[dir="rtl"] &':{"&.MuiInputAdornment-positionEnd":{marginLeft:0}}}),Object(l.a)(a,"& svg",Object(l.a)({width:"".concat(Object(p.p)(15)),height:"".concat(Object(p.p)(15))},Object(p.e)("mdUpd"),{width:"".concat(Object(p.q)(12)),height:"".concat(Object(p.q)(12))})),a)),Object(l.a)(s,"& .inputStartSvgWrapper",Object(i.a)(Object(i.a)({},e.mixins.marginRight("var(--mfd-spacing-xs)")),{},(o={borderRadius:"unset",background:"transparent",width:"".concat(Object(p.p)(16)),height:"".concat(Object(p.p)(16))}
2,Object(l.a)(o,Object(p.e)("mdUpd"),{width:"".concat(Object(p.q)(16)),height:"".concat(Object(p.q)(16)),'[dir="rtl"] &':{"&.MuiInputAdornment-positionStart":{marginRight:0}}}),Object(l.a)(o,"& svg",Object(l.a)({width:"".concat(Object(p.p)(16)),height:"".concat(Object(p.p)(16))},Object(p.e)("mdUpd"),{width:"".concat(Object(p.q)(16)),height:"".concat(Object(p.q)(16))})),o))),s)}}}})),f=n(105),g=n(119),b=(n(49),Object(s.forwardRef)((function(e,t){var n=e.fieldLabel,l=void 0===n?"":n,u=e.fieldName,d=void 0===u?"":u,p=e.placeholderText,h=void 0===p?"":p,b=e.isRequired,v=void 0!==b&&b,y=e.isDisabled,x=void 0!==y&&y,_=e.isError,w=void 0!==_&&_,O=(e.isSuccess,e.isReadOnly),j=void 0!==O&&O,C=e.type,E=void 0===C?"text":C,T=e.variant,k=void 0===T?"":T,S=e.className,A=void 0===S?"":S,I=e.onChange,M=void 0===I?function(){}:I,L=e.isReset,B=void 0!==L&&L,R=e.onFocus,D=void 0===R?function(){}:R,P=e.onBlur,z=void 0===P?function(){}:P,F=e.helperTextMessage,N=void 0===F?"":F,U=e.id,V=void 0===U?"":U,W=e.inputValue,q=void 0===W?"":W,G=e.inputEndSvg,Z=void 0===G?"":G,H=e.inputStartSvg,X=void 0===H?"":H,K=e.onClickEndSvg,Y=void 0===K?function(){}:K,J=e.enableSearch,Q=void 0!==J&&J,$=e.onSearch,ee=void 0===$?function(){}:$,te=e.searchDelay,ne=void 0===te?300:te,ie=e.clearOnSearch,re=void 0!==ie&&ie,ae=e.onClear,oe=void 0===ae?function(){}:ae,se=e.onEnterKeyPress,ce=void 0===se?function(){}:se,le=e.pageTitleEn,ue=e.COMPONENT_NAME,de=e.handleSetInternalComponentFunctionsRef,pe=void 0===de?function(){}:de,he=m(),me=Object(s.useState)(q||""),fe=Object(r.a)(me,2),ge=fe[0],be=fe[1],ve=Object(s.useState)(!1),ye=Object(r.a)(ve,2),xe=(ye[0],ye[1]),_e=Object(s.useCallback)(function(){var e;return function(t){clearTimeout(e),e=setTimeout((function(){Q&&t&&t.trim()&&(xe(!0),ee(t.trim()))}),ne)}}(),[Q,ee,ne]),we=Object(s.useCallback)(function(){var e;return function(t){clearTimeout(e),e=setTimeout((function(){var e;Q&&t&&t.trim()&&(e=Object(i.a)(Object(i.a)({},g.a.pageBodyInteraction.on_page_search),{},{internal_search_term:t,page_name_eng:le,UX_component_name:ue}),Object(f.b)(e))}),2e3)}}(),[Q,2e3]),Oe=function(){be(""),xe(!1),oe(),Y()};Object(s.useEffect)((function(){void 0!==q&&(be(q),q&&q.trim()||xe(!1))}),[q]),Object(s.useEffect)((function(){B&&(be(""),xe(!1))}),[B]),pe("handleClear",Oe);var je=function(){return Q&&ge&&!w&&!Z?c.a.createElement("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{cursor:"pointer"},onClick:Oe},c.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.64645 1.64645C1.84171 1.45118 2.15829 1.45118 2.35355 1.64645L6 5.29289L9.64645 1.64645C9.84171 1.45118 10.1583 1.45118 10.3536 1.64645C10.5488 1.84171 10.5488 2.15829 10.3536 2.35355L6.70711 6L10.3536 9.64645C10.5488 9.84171 10.5488 10.1583 10.3536 10.3536C10.1583 10.5488 9.84171 10.5488 9.64645 10.3536L6 6.70711L2.35355 10.3536C2.15829 10.5488 1.84171 10.5488 1.64645 10.3536C1.45118 10.1583 1.45118 9.84171 1.64645 9.64645L5.29289 6L1.64645 2.35355C1.45118 2.15829 1.45118 1.84171 1.64645 1.64645Z",fill:"#00605F"})):!ge||w||Z?w&&!Z?c.a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.00008 2.00002C4.68637 2.00002 2.00008 4.68631 2.00008 8.00002C2.00008 11.3137 4.68637 14 8.00008 14C11.3138 14 14.0001 11.3137 14.0001 8.00002C14.0001 4.68631 11.3138 2.00002 8.00008 2.00002ZM0.666748 8.00002C0.666748 3.94993 3.94999 0.666687 8.00008 0.666687C12.0502 0.666687 15.3334 3.94993 15.3334 8.00002C15.3334 12.0501 12.0502 15.3334 8.00008 15.3334C3.94999 15.3334 0.666748 12.0501 0.666748 8.00002Z",fill:"#C20618"}),c.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99992 4C8.36811 4 8.66659 4.29848 8.66659 4.66667L8.66659 8.66667C8.66659 9.03486 8.36811 9.33333 7.99992 9.33333C7.63173 9.33333 7.33325 9.03486 7.33325 8.66667L7.33325 4.66667C7.33325 4.29848 7.63173 4 7.99992 4Z",fill:"#C20618"}),c.a.createElement("ellipse",{cx:"7.99992",cy:"11.3334",rx:"0.666667",ry:"0.666667",fill:"#C20618"})):Z:c.a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.1381 4.19526C14.3984 4.45561 14.3984 4.87772 14.1381 5.13807L6.80474 12.4714C6.54439 12.7318 6.12228 12.7318 5.86193 12.4714L2.19526 8.80474C1.93491 8.54439 1.93491 8.12228 2.19526 7.86193C2.45561 7.60158 2.87772 7.60158 3.13807 7.86193L6.33333 11.0572L13.1953 4.19526C13.4556 3.93491 13.8777 3.93491 14.1381 4.19526Z",fill:"#007018"}))};return c.a.createElement(a.a,{inputRef:t,classes:{root:"".concat(he.root," ").concat(k," ").concat(A," ").concat(x?"disabledRoot":""," ").concat(ge&&!w?"successRoot":""," ").concat(w?"errorRoot":"")},InputLabelProps:{htmlFor:d,classes:{root:"inputLabel",shrink:"inputLabelShrink"}},InputProps:{classes:{root:"inputWrapper ".concat(x?"disabled":""," ").concat(j?"readOnly":""," ").concat(ge&&!w?"success":""),input:"inputField",error:"error",focused:"focused"},onChange:function(e){var t=e.target.value;be(t),M(e),Q&&(t&&t.trim()?(_e(t),we(t)):oe())},onKeyPress:function(e){if(Q&&"Enter"===e.key){e.preventDefault();var t=e.target.value.trim();t&&(ce(t),xe(!0),re&&be(""))}},readOnly:j,value:ge,endAdornment:je()&&c.a.createElement(o.a,{className:"inputEndSvgWrapper",position:"end",onClick:Q&&ge?Oe:Y},je()),startAdornment:X&&c.a.createElement(o.a,{className:"inputStartSvgWrapper",position:"start"},X)},FormHelperTextProps:{classes:{root:"inputWrapperHelperText"}},id:V,error:w,label:l,type:E,placeholder:h,helperText:N,disabled:x,required:v,onFocus:D,onBlur:z,name:d,autoComplete:"off"})})));t.a=b},1956:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return m}));var i=n(6),r=n(152),a=(n(218),n(0)),o=n(1640),s=n(267),c=n(136),l=n(223);function u(e){return"undefined"!==typeof e.normalize?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.ignoreAccents,n=void 0===t||t,i=e.ignoreCase,r=void 0===i||i,a=e.limit,o=e.matchFrom,s=void 0===o?"any":o,c=e.stringify,l=e.trim,d=void 0!==l&&l;return function(e,t){var i=t.inputValue,o=t.getOptionLabel,l=d?i.trim():i;r&&(l=l.toLowerCase()),n&&(l=u(l));var p=e.filter((function(e){var t=(c||o)(e);return r&&(t=t.toLowerCase()),n&&(t=u(t)),"start"===s?0===t.indexOf(l):t.indexOf(l)>-1}));return"number"===typeof a?p.slice(0,a):p}}function p(e,t){for(var n=0;n<e.length;n+=1)if(t(e[n]))return n;return-1}var h=d();function m(e){var t=e.autoComplete,n=void 0!==t&&t,u=e.autoHighlight,d=void 0!==u&&u,m=e.autoSelect,f=void 0!==m&&m,g
2=e.blurOnSelect,b=void 0!==g&&g,v=e.clearOnBlur,y=void 0===v?!e.freeSolo:v,x=e.clearOnEscape,_=void 0!==x&&x,w=e.componentName,O=void 0===w?"useAutocomplete":w,j=e.debug,C=void 0!==j&&j,E=e.defaultValue,T=void 0===E?e.multiple?[]:null:E,k=e.disableClearable,S=void 0!==k&&k,A=e.disableCloseOnSelect,I=void 0!==A&&A,M=e.disabledItemsFocusable,L=void 0!==M&&M,B=e.disableListWrap,R=void 0!==B&&B,D=e.filterOptions,P=void 0===D?h:D,z=e.filterSelectedOptions,F=void 0!==z&&z,N=e.freeSolo,U=void 0!==N&&N,V=e.getOptionDisabled,W=e.getOptionLabel,q=void 0===W?function(e){return e}:W,G=e.getOptionSelected,Z=void 0===G?function(e,t){return e===t}:G,H=e.groupBy,X=e.handleHomeEndKeys,K=void 0===X?!e.freeSolo:X,Y=e.id,J=e.includeInputInList,Q=void 0!==J&&J,$=e.inputValue,ee=e.multiple,te=void 0!==ee&&ee,ne=e.onChange,ie=e.onClose,re=e.onHighlightChange,ae=e.onInputChange,oe=e.onOpen,se=e.open,ce=e.openOnFocus,le=void 0!==ce&&ce,ue=e.options,de=e.selectOnFocus,pe=void 0===de?!e.freeSolo:de,he=e.value,me=Object(o.a)(Y),fe=q;var ge=a.useRef(!1),be=a.useRef(!0),ve=a.useRef(null),ye=a.useRef(null),xe=a.useState(null),_e=xe[0],we=xe[1],Oe=a.useState(-1),je=Oe[0],Ce=Oe[1],Ee=d?0:-1,Te=a.useRef(Ee),ke=Object(s.a)({controlled:he,default:T,name:O}),Se=Object(r.a)(ke,2),Ae=Se[0],Ie=Se[1],Me=Object(s.a)({controlled:$,default:"",name:O,state:"inputValue"}),Le=Object(r.a)(Me,2),Be=Le[0],Re=Le[1],De=a.useState(!1),Pe=De[0],ze=De[1],Fe=Object(c.a)((function(e,t){var n;if(te)n="";else if(null==t)n="";else{var i=fe(t);n="string"===typeof i?i:""}Be!==n&&(Re(n),ae&&ae(e,n,"reset"))}));a.useEffect((function(){Fe(null,Ae)}),[Ae,Fe]);var Ne=Object(s.a)({controlled:se,default:!1,name:O,state:"open"}),Ue=Object(r.a)(Ne,2),Ve=Ue[0],We=Ue[1],qe=!te&&null!=Ae&&Be===fe(Ae),Ge=Ve,Ze=Ge?P(ue.filter((function(e){return!F||!(te?Ae:[Ae]).some((function(t){return null!==t&&Z(e,t)}))})),{inputValue:qe?"":Be,getOptionLabel:fe}):[],He=Object(c.a)((function(e){-1===e?ve.current.focus():_e.querySelector('[data-tag-index="'.concat(e,'"]')).focus()}));a.useEffect((function(){te&&je>Ae.length-1&&(Ce(-1),He(-1))}),[Ae,te,je,He]);var Xe=Object(c.a)((function(e){var t=e.event,n=e.index,i=e.reason,r=void 0===i?"auto":i;if(Te.current=n,-1===n?ve.current.removeAttribute("aria-activedescendant"):ve.current.setAttribute("aria-activedescendant","".concat(me,"-option-").concat(n)),re&&re(t,-1===n?null:Ze[n],r),ye.current){var a=ye.current.querySelector("[data-focus]");a&&a.removeAttribute("data-focus");var o=ye.current.parentElement.querySelector('[role="listbox"]');if(o)if(-1!==n){var s=ye.current.querySelector('[data-option-index="'.concat(n,'"]'));if(s&&(s.setAttribute("data-focus","true"),o.scrollHeight>o.clientHeight&&"mouse"!==r)){var c=s,l=o.clientHeight+o.scrollTop,u=c.offsetTop+c.offsetHeight;u>l?o.scrollTop=u-o.clientHeight:c.offsetTop-c.offsetHeight*(H?1.3:0)<o.scrollTop&&(o.scrollTop=c.offsetTop-c.offsetHeight*(H?1.3:0))}}else o.scrollTop=0}})),Ke=Object(c.a)((function(e){var t=e.event,i=e.diff,r=e.direction,a=void 0===r?"next":r,o=e.reason,s=void 0===o?"auto":o;if(Ge){var c=function(e,t){if(!ye.current||-1===e)return-1;for(var n=e;;){if("next"===t&&n===Ze.length||"previous"===t&&-1===n)return-1;var i=ye.current.querySelector('[data-option-index="'.concat(n,'"]')),r=!L&&(i&&(i.disabled||"true"===i.getAttribute("aria-disabled")));if(!(i&&!i.hasAttribute("tabindex")||r))return n;n+="next"===t?1:-1}}(function(){var e=Ze.length-1;if("reset"===i)return Ee;if("start"===i)return 0;if("end"===i)return e;var t=Te.current+i;return t<0?-1===t&&Q?-1:R&&-1!==Te.current||Math.abs(i)>1?0:e:t>e?t===e+1&&Q?-1:R||Math.abs(i)>1?e:0:t}(),a);if(Xe({index:c,reason:s,event:t}),n&&"reset"!==i)if(-1===c)ve.current.value=Be;else{var l=fe(Ze[c]);ve.current.value=l,0===l.toLowerCase().indexOf(Be.toLowerCase())&&Be.length>0&&ve.current.setSelectionRange(Be.length,l.length)}}})),Ye=a.useCallback((function(){if(Ge){var e=te?Ae[0]:Ae;if(0!==Ze.length&&null!=e){if(ye.current)if(F||null==e)Te.current>=Ze.length-1?Xe({index:Ze.length-1}):Xe({index:Te.current});else{var t=Ze[Te.current];if(te&&t&&-1!==p(Ae,(function(e){return Z(t,e)})))return;var n=p(Ze,(function(t){return Z(t,e)}));-1===n?Ke({diff:"reset"}):Xe({index:n})}}else Ke({diff:"reset"})}}),[0===Ze.length,!te&&Ae,F,Ke,Xe,Ge,Be,te]),Je=Object(c.a)((function(e){Object(l.a)(ye,e),e&&Ye()}));a.useEffect((function(){Ye()}),[Ye]);var Qe=function(e){Ve||(We(!0),oe&&oe(e))},$e=function(e,t){Ve&&(We(!1),ie&&ie(e,t))},et=function(e,t,n,i){Ae!==t&&(ne&&ne(e,t,n,i),Ie(t))},tt=a.useRef(!1),nt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"select-option",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"options",r=n,a=t;if(te){var o=p(a=Array.isArray(Ae)?Ae.slice():[],(function(e){return Z(t,e)}));-1===o?a.push(t):"freeSolo"!==i&&(a.splice(o,1),r="remove-option")}Fe(e,a),et(e,a,r,{option:t}),I||$e(e,r),(!0===b||"touch"===b&&tt.current||"mouse"===b&&!tt.current)&&ve.current.blur()};var it=function(e,t){if(te){$e(e,"toggleInput");var n=je;-1===je?""===Be&&"previous"===t&&(n=Ae.length-1):((n+="next"===t?1:-1)<0&&(n=0),n===Ae.length&&(n=-1)),n=function(e,t){if(-1===e)return-1;for(var n=e;;){if("next"===t&&n===Ae.length||"previous"===t&&-1===n)return-1;var i=_e.querySelector('[data-tag-index="'.concat(n,'"]'));if(!i||i.hasAttribute("tabindex")&&!i.disabled&&"true"!==i.getAttribute("aria-disabled"))return n;n+="next"===t?1:-1}}(n,t),Ce(n),He(n)}},rt=function(e){ge.current=!0,Re(""),ae&&ae(e,"","clear"),et(e,te?[]:null,"clear")},at=function(e){return function(t){switch(-1!==je&&-1===["ArrowLeft","ArrowRight"].indexOf(t.key)&&(Ce(-1),He(-1)),t.key){case"Home":Ge&&K&&(t.preventDefault(),Ke({diff:"start",direction:"next",reason:"keyboard",event:t}));break;case"End":Ge&&K&&(t.preventDefault(),Ke({diff:"end",direction:"previous",reason:"keyboard",event:t}));break;case"PageUp":t.preventDefault(),Ke({diff:-5,direction:"previous",reason:"keyboard",event:t}),Qe(t);break;case"PageDown":t.preventDefault(),Ke({diff:5,direction:"next",reason:"keyboard",event:t}),Qe(t);break;case"ArrowDown":t.preventDefault(),Ke({diff:1,direction:"next",reason:"keyboard",event:t}),Qe(t);break;case"ArrowUp":t.preventDefault(),Ke({diff:-1,direction:"previous",reason:"keyboard",event:t}),Qe(t);break;case"ArrowLeft":it(t,"previous");break;case"ArrowRight":it(t,"next");break;case"Enter":if(229===t.which)break;if(-1!==Te.current&&Ge){var i=Ze[Te.current],r=!!V&&V(i);if(t.preventDefault(),r)return;nt(t,i,"select-option"),n&&ve.current.setSelectionRange(ve.current.value.length,ve.current.value.length)}else U&&""!==Be&&!1===qe&&(te&&t.preventDefault(),nt(t,Be,"create-option","freeSolo"));break;case"Escape":Ge?(t.preventDefault(),t.stopPropagation(),$e(t,"escape")):_&&(""!==Be||te&&Ae.length>0)&&(t.preventDefault(),t.stopPropagation(),rt(t));break;case"Backspace":if(te&&""===Be&&Ae.length>0){var a=-1===je?Ae.length-1:je,o=Ae.slice();o.splice(a,1),et(t,o,"remove-option",{option:Ae[a]})}}e.onKeyDown&&e.onKeyDown(t)}},ot=function(e){ze(!0),le&&!ge.current&&Qe(e)},st=function(e){null===ye.current||document.activeElement!==ye.current.parentElement?(ze(!1),be.current=!0,ge.current=!1,C&&""!==Be||(f&&-1!==Te.current&&Ge?nt(e,Ze[Te.current],"blur"):f&&U&&""!==Be?nt(e,Be,"blur","freeSolo"):y&&Fe(e,Ae),$e(e,"blur"))):ve.current.focus()},ct=function(e){var t=e.target.value;Be!==t&&(Re(t),ae&&ae(e,t,"input")),""===t?S||te||et(e,null,"clear"):Qe(e)},lt=function(e){Xe({event:e,index:Number(e.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},ut=function(){tt.current=!0},dt=function(e){var t=Number(e.currentTarget.getAttribute("data-option-index"));nt(e,Ze[t],"select-option"),tt.current=!1},pt=function(e){return function(t){var n=Ae.slice();n.splice(e,1),et(t,n,"remove-option",{option:Ae[e]})}},ht=function(e){Ve?$e(e,"toggleInput"):Qe(e)},mt=function(e){e.target.getAttribute("id")!==me&&e.preventDefault()}
2,ft=function(){ve.current.focus(),pe&&be.current&&ve.current.selectionEnd-ve.current.selectionStart===0&&ve.current.select(),be.current=!1},gt=function(e){""!==Be&&Ve||ht(e)},bt=U&&Be.length>0;bt=bt||(te?Ae.length>0:null!==Ae);var vt=Ze;if(H){new Map;vt=Ze.reduce((function(e,t,n){var i=H(t);return e.length>0&&e[e.length-1].group===i?e[e.length-1].options.push(t):e.push({key:n,index:n,group:i,options:[t]}),e}),[])}return{getRootProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(i.a)({"aria-owns":Ge?"".concat(me,"-popup"):null,role:"combobox","aria-expanded":Ge},e,{onKeyDown:at(e),onMouseDown:mt,onClick:ft})},getInputLabelProps:function(){return{id:"".concat(me,"-label"),htmlFor:me}},getInputProps:function(){return{id:me,value:Be,onBlur:st,onFocus:ot,onChange:ct,onMouseDown:gt,"aria-activedescendant":Ge?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Ge?"".concat(me,"-popup"):null,autoComplete:"off",ref:ve,autoCapitalize:"none",spellCheck:"false"}},getClearProps:function(){return{tabIndex:-1,onClick:rt}},getPopupIndicatorProps:function(){return{tabIndex:-1,onClick:ht}},getTagProps:function(e){var t=e.index;return{key:t,"data-tag-index":t,tabIndex:-1,onDelete:pt(t)}},getListboxProps:function(){return{role:"listbox",id:"".concat(me,"-popup"),"aria-labelledby":"".concat(me,"-label"),ref:Je,onMouseDown:function(e){e.preventDefault()}}},getOptionProps:function(e){var t=e.index,n=e.option,i=(te?Ae:[Ae]).some((function(e){return null!=e&&Z(n,e)})),r=!!V&&V(n);return{key:t,tabIndex:-1,role:"option",id:"".concat(me,"-option-").concat(t),onMouseOver:lt,onClick:dt,onTouchStart:ut,"data-option-index":t,"aria-disabled":r,"aria-selected":i}},id:me,inputValue:Be,value:Ae,dirty:bt,popupOpen:Ge,focused:Pe||-1!==je,anchorEl:_e,setAnchorEl:we,focusedTag:je,groupedOptions:vt}}},1957:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return r}));var i="Explore Map",r="97d8c0b8-9fe3-498a-9aed-3485ab93c648"},1958:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));var i=n(1652);function r(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:void(i.a||console.warn("XState could not find a global object in this environment. Please let the maintainers know and raise an issue here: https://github.com/statelyai/xstate/issues"))}function a(e){if(r()){var t=function(){var e=r();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}}).call(this,n(211))},2020:function(e,t,n){"use strict";var i=n(2),r=n(9),a=n(0),o=n.n(a),s=n(865),c=n(1),l=n(98),u=Object(s.a)((function(e){return{directionLtr:{direction:"ltr"},mapWrapper:{position:"relative",width:"100%",height:"100vh"},loadingContainer:{display:"flex",alignItems:"center",justifyContent:"center",height:"100vh",width:"100%"},loadingSpinner:{width:Object(c.p)(40),height:Object(c.p)(40),border:"3px solid ".concat(e.palette.common.Grey3()),borderTopColor:e.palette.common.SeaGreen,borderRadius:"50%",animation:"$spin 1s linear infinite"},"@keyframes spin":{to:{transform:"rotate(360deg)"}},mainNavContainer:Object(i.a)({position:"fixed",bottom:Object(c.p)(100),right:Object(c.p)(24),zIndex:10},Object(c.e)("mdUpd"),{bottom:Object(c.q)(180),right:Object(c.q)(16)}),buttonContainer:{display:"flex",flexDirection:"column",gap:Object(c.p)(1),backgroundColor:"#fff",borderRadius:Object(c.p)(8),boxShadow:l.a.raised,overflow:"hidden","& .buttonIcon":Object(i.a)({display:"flex",alignItems:"center",justifyContent:"center",width:Object(c.p)(40),height:Object(c.p)(40),cursor:"pointer",transition:"background-color 0.2s ease","&:hover":{backgroundColor:e.palette.common.Grey1},"& svg":{width:Object(c.p)(20),height:Object(c.p)(20)}},Object(c.e)("mdUpd"),{width:Object(c.q)(40),height:Object(c.q)(40),"& svg":{width:Object(c.q)(20),height:Object(c.q)(20)}}),"& .leftRadius":{borderBottom:"1px solid ".concat(e.palette.common.Grey3())}},topCrossIc:Object(i.a)({position:"fixed",top:Object(c.p)(24),right:Object(c.p)(24),zIndex:10,display:"flex",alignItems:"center",justifyContent:"center",width:Object(c.p)(40),height:Object(c.p)(40),backgroundColor:"#fff",borderRadius:"50%",boxShadow:l.a.raised,cursor:"pointer",transition:"background-color 0.2s ease","&:hover":{backgroundColor:e.palette.common.Grey1},"& svg":{width:Object(c.p)(16),height:Object(c.p)(16)}},Object(c.e)("mdUpd"),{top:Object(c.q)(16),right:Object(c.q)(16),width:Object(c.q)(40),height:Object(c.q)(40),"& svg":{width:Object(c.q)(16),height:Object(c.q)(16)}})}})),d=n(112),p=n(20),h=n(1871),m=n(3),f=n(106),g=n(1884),b=(n(1870),n(242)),v=(n(1712),n(1511)),y=Object(s.a)((function(e){return{desktopPanel:{position:"absolute",top:Object(c.p)(24),left:Object(c.p)(24),width:Object(c.p)(38
20),maxHeight:"calc(100vh - ".concat(Object(c.p)(48),")"),backgroundColor:"#fff",borderRadius:Object(c.p)(16),boxShadow:l.a.raised,zIndex:10,display:"flex",flexDirection:"column",overflow:"hidden"},desktopPanelHeader:{padding:"".concat(Object(c.p)(20)," ").concat(Object(c.p)(24)),borderBottom:"1px solid ".concat(e.palette.common.Grey3())},desktopCardList:{flex:1,overflow:"hidden"},desktopCardListInner:{display:"flex",flexDirection:"column",gap:Object(c.p)(12),padding:Object(c.p)(16)},desktopCardWrapper:{cursor:"pointer",transition:"transform 0.2s ease","&:hover":{transform:"translateY(-2px)"}},chatCarouselDrawer:{backgroundColor:"#fff","& [aria-modal]":{marginBottom:Object(c.q)(16),marginLeft:Object(c.q)(25),marginRight:Object(c.q)(23),width:"calc(100% - ".concat(Object(c.q)(48),")"),borderRadius:Object(c.q)(16),backgroundColor:"#fff",boxShadow:"".concat(l.a.raised," !important"),overflow:"hidden","&:before":{content:'""',display:"block",position:"absolute",top:Object(c.q)(8),left:"50%",transform:"translateX(-50%)",width:Object(c.q)(32),height:Object(c.q)(4),backgroundColor:e.palette.common.Grey3(),borderRadius:Object(c.q)(6),zIndex:2}},"&.hideHeader":{"& [data-rsbs-header]":{height:Object(c.q)(70),"& .cardListingDrawerHeaderWrapper":{opacity:0,pointerEvents:"none",visibility:"hidden",transition:"opacity 0.3s ease-out, visibility 0.3s ease-out"}},"& .cardTitleBody":{opacity:1,visibility:"visible"},"& .cardListingDrawerBody":{opacity:1,pointerEvents:"all",visibility:"visible"}},"&.showBody":{"& [data-rsbs-scroll]":{overflow:"hidden"}},"& [data-rsbs-header]":{padding:0,position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"#fff",boxShadow:"none","&:before":{display:"none"},"& .cardListingDrawerHeaderWrapper":{opacity:1,pointerEvents:"all",visibility:"visible",transition:"opacity 0.4s ease-in, visibility 0.4s ease-in"},"& .cardHorizontalListing":{paddingTop:Object(c.q)(20),"& > div":{minHeight:"calc(2px + ".concat(Object(c.q)(100),")"),width:"100%"},"& > div > div":{paddingLeft:Object(c.q)(25),WebkitOverflowScrolling:"touch",touchAction:"pan-x pinch-zoom",overscrollBehavior:"contain"}}},"& [data-rsbs-content]":{padding:0,minHeight:Object(c.q)(127)},"& [data-rsbs-scroll]":{borderTopLeftRadius:0,borderTopRightRadius:0,marginTop:Object(c.q)(76),overflow:"clip"},"& .cardVerticalListing":{display:"flex",flexDirection:"column",gap:Object(c.q)(12),paddingBottom:Object(c.q)(100)},"& .cardListingDrawerBody":{height:"90.5svh",width:"100%",backgroundColor:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",paddingInline:Object(c.q)(25),opacity:0,pointerEvents:"none",visibility:"hidden",transition:"opacity 0.5s ease-in-out, visibility 0.5s ease-in-out"},"& .cardTitleBody":{position:"absolute",top:Object(c.q)(32),left:0,width:"100%",zIndex:9,opacity:0,pointerEvents:"none",visibility:"hidden",transition:"opacity 0.1s ease-in-out, visibility 0.1s ease-in-out",paddingInline:Object(c.q)(25)}},"@global":{".chatCardWrapper":{flexShrink:0,marginRight:Object(c.q)(12),cursor:"pointer","&:last-child":{marginRight:Object(c.q)(25)}},".chatCardVerticalWrapper":{width:"100%",marginBottom:Object(c.q)(12),cursor:"pointer"},".chatCarouselMode":{"& .cardHorizontalListing":{paddingLeft:Object(c.q)(25),paddingRight:Object(c.q)(23)}},".chatCardListing":{"& > div > div":{paddingLeft:"".concat(Object(c.q)(25)," !important")}},".ios-horizontal-scroll-fix":{WebkitOverflowScrolling:"touch !important",touchAction:"pan-x pinch-zoom !important",overscrollBehavior:"contain !important","&::-webkit-scrollbar":{display:"none !important"}}}}})),x=n(557),_=n(31),w=n(15),O=n(12),j=["style"],C=["style"],E=["style"],T=o.a.memo((function(e){var t=e.chatCarouselCards,n=void 0===t?[]:t,i=e.lang,s=void 0===i?"en":i,c=e.onCardClick,l=(e.selectedItem,y()),u=Object(v.a)("(max-width:".concat(1023.85,"px)")),d="ar"===s||"he"===s,p=Object(a.useRef)(null),h=Object(a.useRef)(null),T=Object(a.useRef)(null),k=Object(a.useState)(!1),S=Object(r.a)(k,2),A=S[0],I=S[1],M=Object(a.useState)(!1),L=Object(r.a)(M,2),B=L[0],R=L[1],D=Object(a.useState)(217),P=Object(r.a)(D,2),z=P[0],F=P[1],N=Object(a.useState)(0),U=Object(r.a)(N,2),V=U[0],W=U[1],q=Object(a.useState)(!1),G=Object(r.a)(q,2),Z=G[0],H=G[1],X=Object(a.useRef)(null);Object(a.useEffect)((function(){if(w.a){var e=/iPad|iPhone|iPod/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;H(e)}}),[]);var K=Object(a.useCallback)((function(){if(w.a){var e=h.current;if(e){var t=e.offsetHeight+24;F(t||217),W(window.innerHeight||0)}}}),[]);Object(a.useEffect)((function(){if(w.a){var e=setTimeout(K,100);return window.addEventListener("resize",K),function(){clearTimeout(e),window.removeEventListener("resize",K)}}}),[K]);var Y=Object(a.useCallback)((function(){if(p.current&&"number"===typeof p.current.height){var e=p.current.height;e>z?I(!0):e<=z&&I(!1)}B&&(X.current=requestAnimationFrame(Y))}),[z,B]),J=Object(a.useCallback)((function(){R(!0),X.current&&cancelAnimationFrame(X.current),X.current=requestAnimationFrame(Y)}),[Y]),Q=Object(a.useCallback)((function(){R(!1),X.current&&(cancelAnimationFrame(X.current),X.current=null)}),[]);Object(a.useEffect)((function(){return function(){X.current&&cancelAnimationFrame(X.current)}}),[]);var $=Object(a.useMemo)((function(){var e=V?Math.ceil(.95*V):640;return function(t){var n=t&&"number"===typeof t.maxHeight?t.maxHeight:e;return[Math.min(z,n),Math.min(e,n)]}}),[z,V]),ee=Object(a.useCallback)((function(e){return d?{marginLeft:null===e||void 0===e?void 0:e.marginRight,marginRight:0}:{}}),[d]),te=Object(a.useCallback)((function(e){c&&c(e)}),[c]),ne=Object(a.useCallback)((function(e){var t=e.style,n=Object(f.a)(e,j
2);return o.a.createElement("div",Object.assign({},n,{style:Object(m.a)({},t),className:"destinationHorizontalScrollTrack"}))}),[]),ie=Object(a.useCallback)((function(e){var t=e.style,n=Object(f.a)(e,C);return o.a.createElement("div",Object.assign({},n,{style:Object(m.a)({},t),className:"destinationHorizontalThumb"}))}),[]),re=Object(a.useCallback)((function(e){return o.a.createElement("div",Object.assign({},e,{className:"track-vertical"}))}),[]),ae=Object(a.useCallback)((function(e){var t=e.style,n=Object(f.a)(e,E);return o.a.createElement("div",Object.assign({},n,{style:Object(m.a)(Object(m.a)({},t),{},{display:"flex",scrollBehavior:"smooth",overflowY:"hidden",overflowX:"auto",WebkitOverflowScrolling:Z?"touch":"auto",touchAction:Z?"pan-x pinch-zoom":"auto"},ee(t)),className:"ios-horizontal-scroll-fix ".concat(Z?"ios-device":"")}))}),[ee,Z]),oe=Object(a.useMemo)((function(){return o.a.createElement("div",{className:"cardListingDrawerHeaderWrapper chatCarouselMode"},n.length>0&&o.a.createElement("div",{className:"cardHorizontalListing chatCardListing",ref:h},o.a.createElement(b.Scrollbars,{ref:T,autoHide:!1,id:"chatMapScroll",universal:!0,style:Object(m.a)({width:"100%"},Z&&{WebkitOverflowScrolling:"touch",touchAction:"pan-x pinch-zoom"}),renderTrackHorizontal:ne,renderThumbHorizontal:ie,renderTrackVertical:re,renderView:ae,thumbMinSize:Z?30:20,hideTracksWhenNotNeeded:!0},n.map((function(e){return o.a.createElement("div",{key:e.id,className:"chatCardWrapper",onClick:function(){return te(e)}},o.a.createElement(x.a,{image:e.image,title:e.title,variant:e.variant||"event",category:e.category,subcategory:e.subcategory,distance:e.distance,date:e.date,reviewCount:e.reviewCount,rating:e.rating,isFavorite:e.isFavorite}))})))))}),[n,Z,ne,ie,re,ae,te]),se=Object(a.useMemo)((function(){return n.length>0&&A&&o.a.createElement(o.a.Fragment,null,n.map((function(e){return o.a.createElement("div",{key:e.id,className:"chatCardVerticalWrapper",onClick:function(){return te(e)}},o.a.createElement(x.a,{image:e.image,title:e.title,variant:e.variant||"event",category:e.category,subcategory:e.subcategory,distance:e.distance,date:e.date,reviewCount:e.reviewCount,rating:e.rating,isFavorite:e.isFavorite}))})))}),[n,A,te]);return u?o.a.createElement(g.a,{ref:p,open:!0,blocking:!1,header:oe,expandOnContentDrag:!0,snapPoints:$,defaultSnap:function(e){var t=e.snapPoints,n=e.lastSnap;return"number"===typeof n?n:t[0]},onSpringEnd:Q,onSpringStart:J,onSpringCancel:Q,skipInitialTransition:!0,className:"".concat(l.chatCarouselDrawer," ").concat(A?"hideHeader":""," ").concat(A?"":"showBody")},o.a.createElement(_.a,{animateSettings:{willAnimate:!1},component:"h5",variant:"h5Upd",className:"cardTitleBody"},Object(O.a)("mfdExploreMapExploreAbuDhabi")||"Explore Abu Dhabi"),o.a.createElement("div",{className:"cardListingDrawerBody"},o.a.createElement("div",{className:"cardVerticalListing"},se))):o.a.createElement("div",{className:l.desktopPanel},o.a.createElement("div",{className:l.desktopPanelHeader},o.a.createElement(_.a,{variant:"h5Upd",component:"h5"},Object(O.a)("mfdExploreMapExploreAbuDhabi")||"Explore Abu Dhabi")),o.a.createElement("div",{className:l.desktopCardList},o.a.createElement(b.Scrollbars,{autoHide:!0,universal:!0,style:{height:"100%",width:"100%"}},o.a.createElement("div",{className:l.desktopCardListInner},n.map((function(e){return o.a.createElement("div",{key:e.id,className:l.desktopCardWrapper,onClick:function(){return te(e)}},o.a.createElement(x.a,{image:e.image,title:e.title,variant:e.variant||"event",category:e.category,subcategory:e.subcategory,distance:e.distance,date:e.date,reviewCount:e.reviewCount,rating:e.rating,isFavorite:e.isFavorite}))}))))))})),k=n(209);t.a=Object(k.a)((function(e){var t=e.language,n=e.COMPONENT_NAME,s=(e.pageTitleEn,e.uid),c=e.dictionary,l=e.defaultLatlng,m=e.mapBoxStyle,f=e.mapBoxToken,g=e.LnglatSW,b=e.LnglatNE,v=e.appConfig,y=e.chatCarouselCards,x=(e.chatCarouselPlaces,e.chatGeoJSON),_=e.isLoading,O=u(),j=Object(a.useState)(null),C=Object(r.a)(j,2),E=C[0],k=C[1],S=Object(a.useState)(!1),A=Object(r.a)(S,2),I=A[0],M=A[1],L="ar"===t||"he"===t,B=Object(a.useCallback)((function(e){k(e)}),[]),R=Object(a.useCallback)((function(e){e&&e.coordinates&&k({id:e.id,name:e.title,coordinates:e.coordinates,thumbnailImage:e.image,location:e.location,category:e.category})}),[]),D=Object(a.useCallback)((function(){w.a&&(window.history.length>1?window.history.back():window.open("".concat(window.location.origin,"/").concat(t),"_parent"))}),[t]);return _?o.a.createElement("div",{className:O.loadingContainer},o.a.createElement("div",{className:O.loadingSpinner})):o.a.createElement("div",{"data-locator":n,uid:s},o.a.createElement("div",null,o.a.createElement("div",{className:Object(p.a)("mapboxgl-map-wrapper-wrapper",Object(i.a)({},O.directionLtr,L))},o.a.createElement(T,{chatCarouselCards:y,lang:t,onCardClick:R,selectedItem:E}),o.a.createElement("div",{className:O.mapWrapper},o.a.createElement(h.a,{mapBoxStyle:m,token:f,selectedItem:E,geoJsonData:x,LnglatSW:g,LnglatNE:b,onShowMapPopup:B,defaultLatlng:l,language:t,dictionary:c,setIsFlying:M,isFlying:I,appConfig:v}))),o.a.createElement("div",{className:O.mainNavContainer},o.a.createElement("div",{className:O.buttonContainer},o.a.createElement("div",{className:"buttonIcon leftRadius",id:"zoomOut"},o.a.createElement(d.a,{name:"mapzoomout"})),o.a.createElement("div",{className:"buttonIcon rightRadius",id:"zoomIn"},o.a.createElement(d.a,{name:"mapzoomin"})))),o.a.createElement("div",{className:O.topCrossIc,onClick:D},o.a.createElement(d.a,{name:"closeiconnew"}))))}))},2026:function(e,t,n){"use strict";var i=n(25),r=n(97),a=n(6),o=n(0),s=n(20),c=n(35),l=n(2096),u=n(59),d=o.forwardRef((function(e,t){var n=e.classes,r=e.className,c=e.color,l=void 0===c?"default":c,d=e.component,p=void 0===d?"li":d,h=e.disableGutters,m=void 0!==h&&h,f=e.disableSticky,g=void 0!==f&&f,b=e.inset,v=void 0!==b&&b,y=Object(i.a)(e,["classes","className","color","component","disableGutters","disableSticky","inset"]);return o.createElement(p,Object(a.a)({className:Object(s.a)(n.root,r,"default"!==l&&n["color".concat(Object(u.a)(l))],v&&n.inset,!g&&n.sticky,!m&&n.gutters),ref:t},y))})),p=Object(c.a)((function(e){return{root:{boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:e.palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},colorPrimary:{color:e.palette.primary.main},colorInherit:{color:"inherit"},gutters:{paddingLeft:16,paddingRight:16},inset:{paddingLeft:72},sticky:{position:"sticky",top:0,zIndex:1,backgroundColor:"inherit"}}}),{name:"MuiListSubheader"})(d),h=n(869),m=n(868),f=n(1622),g=n(551),b=n(241),v=Object(b.a)(o.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),y=n(1956);function x(e){e.anchorEl,e.open;var t=Object(i.a)(e,["anchorEl","open"]);return o.createElement("div",t)}var _=o.createElement(g.a,{fontSize:"small"}),w=o.createElement(v,null),O=o.forwardRef((function(e,t){e.autoComplete,e.autoHighlight,e.autoSelect,e.blurOnSelect;var n,r=e.ChipProps,c=e.classes,u=e.className,d=e.clearOnBlur,g=(void 0===d&&e.freeSolo,e.clearOnEscape,e.clearText),b=void 0===g?"Clear":g,v=e.closeIcon,O=void 0===v?_:v,j=e.closeText,C=void 0===j?"Close":j,E=(e.debug,e.defaultValue),T=(void 0===E&&e.multiple,e.disableClearable),k=void 0!==T&&T,S=(e.disableCloseOnSelect,e.disabled),A=void 0!==S&&S,I=(e.disabledItemsFocusable,e.disableListWrap,e.disablePortal),M=void 0!==I&&I,L=(e.f
2ilterOptions,e.filterSelectedOptions,e.forcePopupIcon),B=void 0===L?"auto":L,R=e.freeSolo,D=void 0!==R&&R,P=e.fullWidth,z=void 0!==P&&P,F=e.getLimitTagsText,N=void 0===F?function(e){return"+".concat(e)}:F,U=(e.getOptionDisabled,e.getOptionLabel),V=void 0===U?function(e){return e}:U,W=(e.getOptionSelected,e.groupBy),q=e.handleHomeEndKeys,G=(void 0===q&&e.freeSolo,e.id,e.includeInputInList,e.inputValue,e.limitTags),Z=void 0===G?-1:G,H=e.ListboxComponent,X=void 0===H?"ul":H,K=e.ListboxProps,Y=e.loading,J=void 0!==Y&&Y,Q=e.loadingText,$=void 0===Q?"Loading\u2026":Q,ee=e.multiple,te=void 0!==ee&&ee,ne=e.noOptionsText,ie=void 0===ne?"No options":ne,re=(e.onChange,e.onClose,e.onHighlightChange,e.onInputChange,e.onOpen,e.open,e.openOnFocus,e.openText),ae=void 0===re?"Open":re,oe=(e.options,e.PaperComponent),se=void 0===oe?h.a:oe,ce=e.PopperComponent,le=void 0===ce?l.a:ce,ue=e.popupIcon,de=void 0===ue?w:ue,pe=e.renderGroup,he=e.renderInput,me=e.renderOption,fe=e.renderTags,ge=e.selectOnFocus,be=(void 0===ge&&e.freeSolo,e.size),ve=void 0===be?"medium":be,ye=(e.value,Object(i.a)(e,["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","classes","className","clearOnBlur","clearOnEscape","clearText","closeIcon","closeText","debug","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","getOptionSelected","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"])),xe=M?x:le,_e=Object(y.b)(Object(a.a)({},e,{componentName:"Autocomplete"})),we=_e.getRootProps,Oe=_e.getInputProps,je=_e.getInputLabelProps,Ce=_e.getPopupIndicatorProps,Ee=_e.getClearProps,Te=_e.getTagProps,ke=_e.getListboxProps,Se=_e.getOptionProps,Ae=_e.value,Ie=_e.dirty,Me=_e.id,Le=_e.popupOpen,Be=_e.focused,Re=_e.focusedTag,De=_e.anchorEl,Pe=_e.setAnchorEl,ze=_e.inputValue,Fe=_e.groupedOptions;if(te&&Ae.length>0){var Ne=function(e){return Object(a.a)({className:Object(s.a)(c.tag,"small"===ve&&c.tagSizeSmall),disabled:A},Te(e))};n=fe?fe(Ae,Ne):Ae.map((function(e,t){return o.createElement(f.a,Object(a.a)({label:V(e),size:ve},Ne({index:t}),r))}))}if(Z>-1&&Array.isArray(n)){var Ue=n.length-Z;!Be&&Ue>0&&(n=n.splice(0,Z)).push(o.createElement("span",{className:c.tag,key:n.length},N(Ue)))}var Ve=pe||function(e){return o.createElement("li",{key:e.key},o.createElement(p,{className:c.groupLabel,component:"div"},e.group),o.createElement("ul",{className:c.groupUl},e.children))},We=me||V,qe=function(e,t){var n=Se({option:e,index:t});return o.createElement("li",Object(a.a)({},n,{className:c.option}),We(e,{selected:n["aria-selected"],inputValue:ze}))},Ge=!k&&!A,Ze=(!D||!0===B)&&!1!==B;return o.createElement(o.Fragment,null,o.createElement("div",Object(a.a)({ref:t,className:Object(s.a)(c.root,u,Be&&c.focused,z&&c.fullWidth,Ge&&c.hasClearIcon,Ze&&c.hasPopupIcon)},we(ye)),he({id:Me,disabled:A,fullWidth:!0,size:"small"===ve?"small":void 0,InputLabelProps:je(),InputProps:{ref:Pe,className:c.inputRoot,startAdornment:n,endAdornment:o.createElement("div",{className:c.endAdornment},Ge?o.createElement(m.a,Object(a.a)({},Ee(),{"aria-label":b,title:b,className:Object(s.a)(c.clearIndicator,Ie&&c.clearIndicatorDirty)}),O):null,Ze?o.createElement(m.a,Object(a.a)({},Ce(),{disabled:A,"aria-label":Le?C:ae,title:Le?C:ae,className:Object(s.a)(c.popupIndicator,Le&&c.popupIndicatorOpen)}),de):null)},inputProps:Object(a.a)({className:Object(s.a)(c.input,-1===Re&&c.inputFocused),disabled:A},Oe())})),Le&&De?o.createElement(xe,{className:Object(s.a)(c.popper,M&&c.popperDisablePortal),style:{width:De?De.clientWidth:null},role:"presentation",anchorEl:De,open:!0},o.createElement(se,{className:c.paper},J&&0===Fe.length?o.createElement("div",{className:c.loading},$):null,0!==Fe.length||D||J?null:o.createElement("div",{className:c.noOptions},ie),Fe.length>0?o.createElement(X,Object(a.a)({className:c.listbox},ke(),K),Fe.map((function(e,t){return W?Ve({key:e.key,group:e.group,children:e.options.map((function(t,n){return qe(t,e.index+n)}))}):qe(e,t)}))):null)):null)}));t.a=Object(c.a)((function(e){var t;return{root:{"&$focused $clearIndicatorDirty":{visibility:"visible"},"@media (pointer: fine)":{"&:hover $clearIndicatorDirty":{visibility:"visible"}}},fullWidth:{width:"100%"},focused:{},tag:{margin:3,maxWidth:"calc(100% - 6px)"},tagSizeSmall:{margin:2,maxWidth:"calc(100% - 4px)"},hasPopupIcon:{},hasClearIcon:{},inputRoot:{flexWrap:"wrap","$hasPopupIcon &, $hasClearIcon &":{paddingRight:30},"$hasPopupIcon$hasClearIcon &":{paddingRight:56},"& $input":{width:0,minWidth:30},'&[class*="MuiInput-root"]':{paddingBottom:1,"& $input":{padding:4},"& $input:first-child":{padding:"6px 0"}},'&[class*="MuiInput-root"][class*="MuiInput-marginDense"]':{"& $input":{padding:"4px 4px 5px"},"& $input:first-child":{padding:"3px 0 6px"}},'&[class*="MuiOutlinedInput-root"]':{padding:9,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9.5px 4px"},"& $input:first-child":{paddingLeft:6},"& $endAdornment":{right:9}},'&[class*="MuiOutlinedInput-root"][class*="MuiOutlinedInput-marginDense"]':{padding:6,"& $input":{padding:"4.5px 4px"}},'&[class*="MuiFilledInput-root"]':{paddingTop:19,paddingLeft:8,"$hasPopupIcon &, $hasClearIcon &":{paddingRight:39},"$hasPopupIcon$hasClearIcon &":{paddingRight:65},"& $input":{padding:"9px 4px"},"& $endAdornment":{right:9}},'&[class*="MuiFilledInput-root"][class*="MuiFilledInput-marginDense"]':{paddingBottom:1,"& $input":{padding:"4.5px 4px"}}},input:{flexGrow:1,textOverflow:"ellipsis",opacity:0}
2,inputFocused:{opacity:1},endAdornment:{position:"absolute",right:0,top:"calc(50% - 14px)"},clearIndicator:{marginRight:-2,padding:4,visibility:"hidden"},clearIndicatorDirty:{},popupIndicator:{padding:2,marginRight:-2},popupIndicatorOpen:{transform:"rotate(180deg)"},popper:{zIndex:e.zIndex.modal},popperDisablePortal:{position:"absolute"},paper:Object(a.a)({},e.typography.body1,{overflow:"hidden",margin:"4px 0"}),listbox:{listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto"},loading:{color:e.palette.text.secondary,padding:"14px 16px"},noOptions:{color:e.palette.text.secondary,padding:"14px 16px"},option:(t={minHeight:48,display:"flex",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16},Object(r.a)(t,e.breakpoints.up("sm"),{minHeight:"auto"}),Object(r.a)(t,'&[aria-selected="true"]',{backgroundColor:e.palette.action.selected}),Object(r.a)(t,'&[data-focus="true"]',{backgroundColor:e.palette.action.hover}),Object(r.a)(t,"&:active",{backgroundColor:e.palette.action.selected}),Object(r.a)(t,'&[aria-disabled="true"]',{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"}),t),groupLabel:{backgroundColor:e.palette.background.paper,top:-8},groupUl:{padding:0,"& $option":{paddingLeft:24}}}}),{name:"MuiAutocomplete"})(O)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.