1(self["webpackChunkclient_app_main"]=self["webpackChunkclient_app_main"]||[]).push([[3222],{788:function(e,t,i){"use strict";var r=i(87081),n=i(29900),o=i(90648),s=i(90321),a=i(78132),l=i(20634);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=o(this),i=s(t),r=l(t,0);return r.length=n(r,t,t,i,0,void 0===e?1:a(e)),r}})},8602:function(e,t,i){"use strict";e.exports=i.p+"img/2.3e8a0313.png"},11511:function(e,t,i){"use strict";i.d(t,{A:function(){return M}});var r=function(){var e=this,t=e._self._c,i=e._self._setupProxy;return t("el-drawer",{attrs:{title:e.$t("nk_main.home.ç©æµå¨æ"),visible:i.visible,"with-header":!1,size:"1000px","append-to-body":""},on:{"update:visible":function(e){i.visible=e}}},[t("div",{staticClass:"drawer-box tw-overflow-x-hidden tw-flex tw-flex-col tw-overflow-hidden",class:i.logoMark&&"logo-mark"},[t("div",{staticClass:"tw-mb-2 tw-flex tw-items-center tw-justify-between"},[t("div",{staticClass:"tw-flex tw-gap-2 tw-items-center"},[t("h2",{staticClass:"tw-text-2xl tw-font-bold"},[e._v(e._s(e.$t("nk_main.common.orderLogSchedule")))]),t("el-dropdown",{staticClass:"tw-cursor-pointer tw-ml-2",attrs:{trigger:"click"},on:{command:i.langCommandHandle}},[t("div",{staticClass:"tw-p-2 tw-border tw-border-solid tw-border-gray-200 tw-rounded-md"},[t("i",{staticClass:"iconFont tw-text-xl"},[e._v("î")]),e._v(" è¯è¨ Language "),t("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t("el-dropdown-item",{attrs:{command:"䏿"}},[e._v("䏿")]),t("el-dropdown-item",{attrs:{command:"English"}},[e._v("English")])],1)],1),t("el-button",{attrs:{size:"mini",icon:"el-icon-bell",type:"primary"},on:{click:i.weChatSubscriptionSetting}},[e._v(" "+e._s(e.$t("nk_main.home.订é
"))+" ")])],1),t("div",{staticClass:"tw-flex tw-gap-2 tw-items-center"},[i.isLastOrderFlag||i.isFullContainerFlag?t("el-button",{attrs:{size:"mini",type:"primary",plain:"",loading:i.exportLoading},on:{click:i.exportTailLogisticsHandle}},[e._v(" 导åºè½¨è¿¹æç» ")]):e._e(),i.logoMark?t("el-button",{attrs:{size:"mini",type:"primary",plain:""},on:{click:i.removeLogoHandle}},[e._v(" "+e._s(e.$t("nk_main.home.廿LOGO"))+" ")]):e._e()],1)]),t(i.BaseQuickNode,{attrs:{visible:i.visible,orderNoOrPlanName:i.selectOrderNo,"is-last-order-flag":i.isLastOrderFlag}}),t("div",{staticClass:"tw-mb-2 tw-flex tw-items-center"},[t("div",{staticClass:"tw-flex tw-gap-2"},[t("span",{staticClass:"tw-text-lg tw-mr-2"},[e._v(e._s(e.$t("nk_main.common.clientNo"))+"ï¼"+e._s(i.selectClientNos))]),i.orbitBaseInfo.shipNo?t("span",[e._v(e._s("è¹åèªæ¬¡ï¼"+i.orbitBaseInfo.shipNo))]):e._e()]),1===i.problemFlag?t("el-button",{attrs:{size:"mini",type:"danger",plain:""},on:{click:i.problemHandle}},[e._v(" "+e._s(e.$t("nk_main.home.é®é¢ä»¶"))+" ")]):e._e(),i.isShowGPS?t(i.CargoTrackMap,{attrs:{"order-no":i.selectOrderNo}}):e._e()],1),i.isLastOrderFlag?t("nk-table",{staticClass:"tw-flex-1 tw-overflow-auto",attrs:{columns:i.lastContainerColumns,"table-data":i.lastContainerTableData,"expand-option":i.expandOption,"row-key-field-name":"innerOrderNo",height:"100%"}}
1):i.isFullContainerFlag?t("nk-table",{staticClass:"tw-flex-1 tw-overflow-auto",attrs:{columns:i.fullContainerColumns,"table-data":i.fullContainerTableData,"expand-option":i.fullContainerExpandOption,"row-key-field-name":"innerOrderNo",height:"100%"}}):t(i.BaseOrbitContent,{staticClass:"tw-flex-1 tw-overflow-auto",attrs:{statusTimeLineList:i.orbitList,planFileData:i.planFileData,signFileData:i.signFileData,langTitle:i.langTitle}})],1),t(i.WeChatSubscription,{ref:"WeChatSubscriptionRef"}),t(i.BaseProblemShipmentDetail,{ref:"baseProblemShipmentDetailRef"})],1)},n=[],o=(i(30318),i(94178),i(64792),i(3380),i(22694),i(74061)),s=i(79188),a=i(16997),l=i(98329),c=i(61133),h=i(204),u=i(56639),d=i(55058),f=function(){var e=this,t=e._self._c,r=e._self._setupProxy;return t("div",[t("el-link",{attrs:{type:"primary"},on:{click:r.show}},[e._v("è´§ç©è·¯çº¿å°å¾")]),t("el-dialog",{attrs:{title:" ",visible:r.modelValue.visible,top:"10px","append-to-body":"",width:"99vw"},on:{"update:visible":function(t){return e.$set(r.modelValue,"visible",t)}}},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:r.modelValue.loading,expression:"modelValue.loading"}],staticClass:"tw-w-full tw-h-[96vh] tw-flex"},[r.orderRouteInfoList.length?t("div",{staticClass:"tw-flex tw-flex-col tw-w-2/12"},[t("div",{staticClass:"tw-p-3 tw-pb-0"},[t("div",{staticClass:"tw-flex tw-place-items-start"},[t("div",{staticClass:"tw-text-blue-500 tw-text-[18px]"},[e._v(" "+e._s(r.licenseNumber)+" ")]),t("div",{staticStyle:{"flex-grow":"1"}}),t("div",{staticClass:"tw-flex"},[t("el-card",{staticClass:"tw-p-1"},[t("i",{staticClass:"el-icon-search tw-text-orange-500 tw-text-[18px]"})]),t("el-card",{staticClass:"tw-p-1"},[t("i",{staticClass:"el-icon-s-fold tw-text-orange-500 tw-text-[18px]"})])],1)]),t("el-timeline",{staticClass:"tw-mt-5"},e._l(r.orderRouteInfoList,function(i,n){return t("el-timeline-item",{key:n},[t("div",{staticClass:"tw-flex tw-gap-2 tw-flex-col"},[t("div",[e._v(" "+e._s(0===n?"å¼å§æ¶é´":n===r.orderRouteInfoList.length-1?"ç»ææ¶é´":"ä¸è½¬")+" ")]),t("div",[e._v(e._s(r.formatDate(i.time)))]),t("div",[e._v(e._s(i.address))])])])}),1)],1),t("el-divider"),t("div",{staticClass:"tw-p-3 tw-flex tw-flex-col tw-gap-6 tw-relative tw-pr-14"},[t("el-card",{staticClass:"tw-p-1 tw-absolute tw-top-1 tw-right-2"},[t("i",{staticClass:"el-icon-warning-outline tw-text-orange-500 tw-text-[18px]"})]),t("div",{staticClass:"tw-flex tw-items-center tw-gap-2"},[t("img",{attrs:{src:i(84849),alt:"",width:"24"}}),t("div",{staticClass:"tw-pl-2"},[e._v("è¡é©¶éç¨")]),t("div",{staticStyle:{"flex-grow":"1"}}),t("div",[e._v(e._s(r.orderRouteStatistics.driveTotalKm)+" km")])]),t("div",{staticClass:"tw-flex tw-items-center tw-gap-2"},[t("img",{attrs:{src:i(8602),alt:"",width:"24"}}),t("div",{staticClass:"tw-pl-2"},[e._v("ç»çº¬éç¨")]),t("div",{staticStyle:{"flex-grow":"1"}}),t("div",[e._v(e._s(r.orderRouteStatistics.mapTotalKm)+" km")])]),t("div",{staticClass:"tw-flex tw-items-center tw-gap-2"},[t("img",{attrs:{src:i(98435),alt:"",width:"24"}}),t("div",{staticClass:"tw-pl-2"},[e._v("ç»ç«¯å·®ç¨")]),t("div",{staticStyle:{"flex-grow":"1"}}),t("div",[e._v(e._s(r.orderRouteStatistics.destinationTotalKm)+" km")])]),t("div",{staticClass:"tw-flex tw-items-center tw-gap-2"},[t("img",{attrs:{src:i(60661),alt:"",width:"24"}}),t("div",{staticClass:"tw-pl-2"},[e._v("å车æ¶é¿")]),t("div",{staticStyle:{"flex-grow":"1"}}),t("div",[e._v(e._s(r.orderRouteStatistics.parkTime)+"åé")])]),t("div",{staticClass:"tw-flex tw-items-center tw-gap-2"},[t("img",{attrs:{src:i(40286),alt:"",width:"24"}}),t("div",{staticClass:"tw-pl-2"},[e._v("æ æå®ä½")]),t("div",{staticStyle:{"flex-grow":"1"}}),t("div",[e._v(e._s(r.orderRouteStatistics.invalidPositionCount)+" 个")])]),t("div",{staticClass:"tw-flex tw-items-center tw-gap-2"},[t("img",{attrs:{src:i(16071),alt:"",width:"24"}}),t("div",{staticClass:"tw-pl-2"},[e._v("è¡¥æ¥å®ä½")]),t("div",{staticStyle:{"flex-grow":"1"}}),t("div",[e._v(e._s(r.orderRouteStatistics.supplementPositionCount)+" 个")])]),t("div",{staticClass:"tw-flex tw-items-center tw-gap-2"},[t("img",{attrs:{src:i(71840),alt:"",width:"24"}}),t("div",{staticClass:"tw-pl-2"},[e._v("æé«é度")]),t("div",{staticStyle:{"flex-grow":"1"}}),t("div",[e._v(e._s(r.orderRouteStatistics.maxSpeed)+" km/h")])]),t("div",{staticClass:"tw-flex tw-items-center tw-gap-2"},[t("img",{attrs:{src:i(96041),alt:"",width:"24"}}),t("div",{staticClass:"tw-pl-2"},[e._v("å¹³åé度")]),t("div",{staticStyle:{"flex-grow":"1"}}),t("div",[e._v(e._s(r.orderRouteStatistics.avgSpeed)+" km/h")])])],1)],1):t("el-result",{attrs:{icon:"info",title:"","sub-title":"è·¯çº¿æ°æ®åªæå°è¾¾ç»ç¹ç
1头æä¸ä¼ GPSæ°æ®"},scopedSlots:e._u([{key:"extra",fn:function(){},proxy:!0}])}),t("div",{staticClass:"tw-w-10/12 tw-relative"},[t("div",{staticClass:"tw-absolute tw-top-2 tw-left-2 tw-z-10"},[t("el-card",{staticClass:"tw-py-2 tw-px-1"},[t("div",{staticClass:"tw-flex tw-items-center tw-flex-col"},[t("img",{attrs:{src:i(42199),alt:"",width:"22"}}),t("div",{staticClass:"tw-text-gray-500"},[e._v("å·¥å
·")])]),t("el-divider",{staticStyle:{margin:"0"}}),t("div",{staticClass:"tw-flex tw-items-center tw-flex-col"},[t("img",{attrs:{src:i(52206),alt:"",width:"22"}}),t("div",{staticClass:"tw-text-gray-500"},[e._v("æ¾ç¤º")])])],1),t("el-card",{staticClass:"tw-py-2 tw-px-1 tw-mt-1"},[t("div",{staticClass:"tw-flex tw-items-center tw-flex-col"},[t("img",{attrs:{src:i(35297),alt:"",width:"22"}}),t("div",{staticClass:"tw-text-gray-500"},[e._v("æµç®")])])])],1),t("div",{ref:"mapContainerRef",staticClass:"tw-w-full tw-h-full"})])],1)])],1)},p=[],A=(i(64471),i(64755),i(62067),i(50434),i(23327)),g=i.n(A),m=i(43469);const _="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABQ8AAAUGCAYAAAA/tkdnAAAAAXNSR0IArs4c6QAAIABJREFUeF7s3VGMFdedIPxTfSFgG0KTGRqbbyTIy2JZbtOjtSfSrhRwHuI8ASPteFZK1saJEskjTcw8rPPibq6bvMT7EJyRxtKMkmCvR9rPGWkMT4kfYoi0K3mS1TRuZJl5GVjth0MzCbTBNgS661M1dAwG3PfevlX3VJ1fS9ZkTdU5///vf26b+986dbLghwABAgQIECBAgAABAgQIECBAgAABArcRyKgQIECAAAECBAgQIECAAAECBAgQIEDgdgKah9YFAQIECBAgQIAAAQIECBAgQIAAAQK3FdA8tDAIECBAgAABAgQIECBAgAABAgQIENA8tAYIECBAgAABAgQIECBAgAABAgQIEOhcwJOHnVu5kgABAgQIECBAgAABAgQIECBAgEBSApqHSZVbsgQIECBAgAABAgQIECBAgAABAgQ6F9A87NzKlQQIECBAgAABAgQIECBAgAABAgSSEtA8TKrckiVAgAABAgQIECBAgAABAgQIECDQuYDmYedWriRAgAABAgQIECBAgAABAgQIECCQlIDmYVLlliwBAgQIECBAgAABAgQIECBAgACBzgU0Dzu3ciUBAgQIECBAgAABAgQIECBAgACBpAQ0D5Mqt2QJECBAgAABAgQIECBAgAABAgQIdC6gedi5lSsJECBAgAABAgQIECBAgAABAgQIJCWgeZhUuSVLgAABAgQIECBAgAABAgQIECBAoHMBzcPOrVxJgAABAgQIECBAgAABAgQIECBAICkBzcOkyi1ZAgQIECBAgAABAgQIECBAgAABAp0LaB52buVKAgQIECBAgAABAgQIECBAgAABAkkJaB4mVW7JEiBAgAABAgQIECBAgAABAgQIEOhcQPOwcytXEiBAgAABAgQIECBAgAABAgQIEEhKQPMwqXJLlgABAgQIECBAgAABAgQIECBAgEDnApqHnVu5kgABAgQIECBAgAABAgQIECBAgEBSApqHSZVbsgQIECBAgAABAgQIECBAgAABAgQ6F9A87NzKlQQIECBAgAABAgQIECBAgAABAgSSEtA8TKrckiVAgAABAgQIECBAgAABAgQIECDQuYDmYedWriRAgAABAgQIECBAgAABAgQIECCQlIDmYVLlliwBAgQIECBAgAABAgQIECBAgACBzgU0Dzu3ciUBAgQIECBAgAABAgQIECBAgACBpAQ0D5Mqt2QJECBAgAABAgQIECBAgAABAgQIdC6gedi5lSsJECBAgAABAgQIECBAgAABAgQIJCWgeZhUuSVLgAABAgQIECBAgAABAgQIECBAoHMBzcPOrVxJgAABAgQIECBAgAABAgQIECBAICkBzcOkyi1ZAgQIECBAgAABAgQIECBAgAABAp0LaB52buVKAgQIECBAgAABAgQIECBAgAABAkkJaB4mVW7JEiBAgAABAgQIECBAgAABAgQIEOhcQPOwcytXEiBAgAABAgQIECBAgAABAgQIEEhKQPMwqXJLlgABAgQIECBAgAABAgQIECBAgEDnApqHnVu5kgABAgQIECBAgAABAgQIECBAgEBSApqHSZVbsgQIECBAgAABAgQIECBAgAABAgQ6F9A87NzKlQQIECBAgAABAgQIECBAgAABAgSSEtA8TKrckiVAgAABAgQIECBAgAABAgQIECDQuYDmYedWriRAgAABAgQIECBAgAABAgQIECCQlIDmYVLlliwBAgQIECBAgAABAgQIECBAgACBzgU0Dzu3ciUBAgQIECBAgAABAgQIECBAgACBpAQ0D5Mqt2QJECBAgAABAgQIECBAgAABAgQIdC6gedi5lSsJECBAgAABAgQIECBAgAABAgQIJCWgeZhUuSVLgAABAgQIECBAgAABAgQIECBAoHMBzcPOrVxJgAABAgQIECBAgAABAgQIECBAICkBzcOkyi1ZAgQIECBAgAABAgQIECBAgAABAp0LaB52buVKAgQIECBAgAABAgQIECBAgAABAkkJaB4mVW7JEiBAgAABAgQIECBAgAABAgQIEOhcQPOwcytXEiBAgAABAgQIECBAgAABAgQIEEhKQPMwqXJLlgABAgQIECBAgAABAgQIECBAgEDnApqHnVu5kgABAgQIECBAgAABAgQIECBAgEBSApqHSZVbsgQIECBAgAABAgQIECBAgAABAg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mO3sEJECBAgEAzBMTDZszBLggQIECAAAEC2QgsbYw2BcRC4xYOCzF5iAABAgQIEKhTQDysU9faBAgQIECAAAECxwoIiKdeDOHwVCIPECBAgAABArMQEA9noewbBAgQIECAAAEC3xEQEJ97KYRD/70QIECAAAECjREQDxszChshQIAAAQIECOQnICB+Z+bCYX7/GTgxAQIECBBotIB42Ojx2BwBAgQIECBAoPsCAuK3MxYOu3/dnZAAAQIECLROQDxs3chsmAABAgQIECDQPQEBMW3398+sbg0vPOzedJ2IAAECBAgQaLOAeNjm6dk7AQIECBAgQKBDAq/fuD8c93rXO3SkokcRDotKeY4AAQIECBCYuYB4OHNyHyRAgAABAgQIEHiewNLN0dWU0q2MhITDjIbtqAQIECBAoI0C4mEbp2bPBAgQIECAAIEOC2QUEIXDDt9jRyNAgAABAl0REA+7MknnIECAAAECBAh0SCCDgCgcdui+OgoBAgQIEOiygHjY5ek6GwECBAgQIECgxQIdDogf9/fPXPbLUVp8OW2dAAECBAhkJCAeZjRsRyVAgAABAgQItE2gcwGxl27vrA0mf6+jfwgQIECAAAECrRAQD1sxJpskQIAAAQIECOQrcHE4WukvpDsppfOtVhAOWz0+mydAgAABArkKiIe5Tt65CRAgQIAAAQItEmh9QBQOW3TbbJUAAQIECBB4VkA8dB8IECBAgAABAgRaIdDagCgctuJ+2SQBAgQIECBwvIB46GYQIECAAAECBAi0RqBtAbE3Ht/43fWXh60BtlECBAgQIECAwBEB8dCVIECAAAECBAgQaJXAyvCzV/YW+h+klJYbvvFrO+uDzYbv0fYIECBAgAABAicKiIcuCAECBAgQIECAQOsEVoYPFvcWHk1+iUpTA6Jw2LpbZcMECBAgQIDAcQLioXtBgAABAgQIECDQSoEGB0ThsJU3yqYJECBAgAAB8dAdIECAAAECBAgQ6JRAwwLi7rjXu3x37aXJT0T6hwABAgQIECDQCQE/ediJMToEAQIECBAgQCBvgaWN0WYapytzVNjd20+r94aDrTnuwacJECBAgAABAuEC4mE4qQUJECBAgAABAgTmITDHgCgczmP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4gHhY3MqTBAgQIECAAAECBAgQIECAAAECBLISEA+zGrfDEiBAgAABAgQIECBAgAABAgQIECguIB4Wt/IkAQIECBAgQIAAAQIECBAgQIAAgawExMOsxu2wBAgQIECAAAECBAgQIECAAAECBIoLiIfFrTxJgAABAgQIECBAgAABAgQIECBAICsB8TCrcTssAQIECBAgQIAAAQIECBAgQIAAgeIC4mFxK08SIECAAAECBAgQIECAAAECBAgQyEpAPMxq3A5LgAABAgQIECBAgAABAgQIECBAoLiAeFjcypMECBAgQIAAAQIECBAgQIAAAQIEshIQD7Mat8MSIECAAAECBAgQIECAAAECBAgQKC4gHha38iQBAgQIECBAgAABAgQIECBAgACBrATEw6zG7bAECBAgQIAAAQIECBAgQIAAAQIEiguIh8WtPEmAAAECBAgQIECAAAECBAgQIEAgKwHxMKtxOywBAgQIECBAgAABAgQIECBAgACB4gLiYXErTxIgQIAAAQIECBAgQIAAAQIECBDISkA8zGrcDkuAAAECBAgQIECAAAECBAgQIECguIB4WNzKkwQIECBAgAABAgQIECBAgAABAgSyEhAPsxq3wxIgQIAAAQIECBAgQIAAAQIECBAoLiAeFrfyJAECBAgQIECAAAECBAgQIECAAIGsBMTDrMbtsAQIECBAgAABAgQIECBAgAABAgSKC4iHxa08SYAAAQIECBAgQIAAAQIECBAgQCArAfEwq3E7LAECBAgQIECAAAECBAgQIECAAIHiAuJhcStPEiBAgAABAgQIECBAgAABAgQIEMhKQDzMatwOS4AAAQIECBAgQIAAAQIECBAgQKC4gHhY3MqTBAgQIECAAAECBAgQIECAAAECBLISEA+zGrfDEiBAgAABAgQIECBAgAABAgQIECguIB4Wt/IkAQIECBAgQIAAAQIECBAgQIAAgawExMOsxu2wBAgQIECAAAECBAgQIECAAAECBIoLiIfFrTxJgAABAgQIECBAgAABAgQIECBAICsB8TCrcTssAQIECBAgQIAAAQIECBAgQIAAgeIC4mFxK08SIECAAAECBAgQIECAAAECBAgQyEpAPMxq3A5LgAABAgQIECBAgAABAgQIECBAoLiAeFjcypMECBAgQIAAAQIECBAgQIAAAQIEshIQD7Mat8MSIECAAAECBAgQIECAAAECBAgQKC4gHha38iQBAgQIECBAgAABAgQIECBAgACBrATEw6zG7bAECBAgQIAAAQIECBAgQIAAAQIEiguIh8WtPEmAAAECBAgQIECAAAECBAgQIEAgKwHxMKtxOywBAgQIECBAgAABAgQIECBAgACB4gLiYXErTxIgQIAAAQIECBAgQIAAAQIECBDISkA8zGrcDkuAAAECBAgQIECAAAECBAgQIECguIB4WNzKkwQIECBAgAABAgQIECBAgAABAgSyEhAPsxq3wxIgQIAAAQIECBAgQIAAAQIECBAoLiAeFrfyJAECBAgQIECAAAECBAgQIECAAIGsBMTDrMbtsAQIECBAgAABAgQIECBAgAABAgSKC4iHxa08SYAAAQIECBAgQIAAAQIECBAgQCArgf8H9yKhAmOGT8cAAAAASUVORK5CYII=",y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABQ8AAAUGCAYAAAA/tkdnAAAAAXNSR0IArs4c6QAAIABJREFUeF7s3W9sXdWd//vPdiYJmcSxaRju9UkuPnkAFH4SMaQV/ESlGKpyhyFSXEEHEEgxGaUqj3CgPE3sPC0Q8wg0UYkjUQEtqI4Epb9WKrZU9AO1gMPVQAsPss1NbN0OKXac/EKSiff9rWOb2Ints885+8/aa72PVHVG7L3W9/v6rrTly1p7BeKHAAIIIIAAAggggAACCCCAAAIIIIAAAggsIhCgggACCCCAAAIIIIAAAggggAACCCCAAAIILCZA85B1gQACCCCAAAIIIIAAAggggAACCCCAAAKLCtA8ZGEggAACCCCAAAIIIIAAAggggAACCCCAAM1D1gACCCCAAAIIIIAAAggggAACCCCAAAIIxBdg52F8K55EAAEEEEAAAQQQQAABBBBAAAEEEEDAKwGah16Vm2QRQAABBBBAAAEEEEAAAQQQQAABBBCIL0DzML4VTyKAAAIIIIAAAggggAACCCCAAAIIIOCVAM1Dr8pNsggggAACCCCAAAIIIIAAAggggAACCMQXoHkY34onEUAAAQQQQAABBBBAAAEEEEAAAQQQ8EqA5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3BrEWlnG+jM5yvjk7kKs+VFlj4YAAQIECBAg0AwB4WEz5uAUBAgQIECAAIFeCDwzQCxjc/lGrPUCwiUJECBAgAABAi0REB62ZFCOSYAAAQIECBDoisCRAaLgsCvjdQ8CBAgQIECgYwLCw44N1HUIECBAgAABAm0QuDmI1YUytiLidAgO2zAyZyRAgAABAgR6KiA87OngXZsAAQIECBAgMG+BwwDxuYjVpVFszPss9idAgAABAgQIEDhaQHjoZRAgQIAAAQIECBAgQIAAAQIECBAgcKSA8NDDIECAAAECBAgQIECAAAECBAgQIEBAeOgNECBAgAABAgQIECBAgAABAgQIECCQLuCTh+lWKgkQIECAAAECBAgQIECAAAECBAj0SkB42KtxuywBAgQIECBAgAABAgQIECBAgACBdAHhYbqVSgIECBAgQIAAAQIECBAgQIAAAQK9EhAe9mrcLkuAAAECBAgQIECAAAECBAgQIEAgXUB4mG6lkgABAgQIECBAgAABAgQIECBAgECvBISHvRq3yxIgQIAAAQIECBAgQIAAAQIECBBIFxAeplupJECAAAECBAgQIECAAAECBAgQINArAeFhr8btsgQIECBAgAABAgQIECBAgAABAgTSBYSH6VYqCRAgQIAAAQIECBAgQIAAAQIECPRKQHjYq3G7LAECBAgQIECAAAECBAgQIECAAIF0AeFhupVKAgQIECBAgAABAgQIECBAgAABAr0SEB72atwuS4AAAQIECBAgQIAAAQIECBAgQCBdQHiYbqWSAAECBAgQIECAAAECBAgQIECAQK8EhIe9GrfLEiBAgAABAgQIECBAgAABAgQIEEgXEB6mW6kkQIAAAQIECBAgQIAAAQIECBAg0CsB4WGvxu2yBAgQIECAAAECBAgQIECAAAECBNIFhIfpVioJECBAgAABAgQIECBAgAABAgQI9EpAeNircbssAQIECBAgQIAAAQIECBAgQIAAgXQB4WG6lUoCBAgQIECAAAECBAgQIECAAAECvRIQHvZq3C5LgAABAgQIECBAgAABAgQIECBAIF1AeJhupZIAAQIECBAgQIAAAQIECBAgQIBArwSEh70at8sSIECAAAECBAgQIECAAAECBAgQSBcQHqZbqSRAgAABAgQIECBAgAABAgQIECDQKwHhYa/G7bIECBAgQIAAAQIECBAgQIAAAQIE0gWEh+lWKgkQIECAAAECBAgQIECAAAECBAj0SkB42KtxuywBAgQIECBAgAABAgQIECBAgACBdAHhYbqVSgIECBAgQIAAAQIECBAgQIAAAQK9EhAe9mrcLkuAAAECBAgQIECAAAECBAgQIEAgXUB4mG6lkgABAgQIECBAgAABAgQIECBAgECvBISHvRq3yxIgQIAAAQIECBAgQIAAAQIECBBIFxAeplupJECAAAECBAgQIECAAAECBAgQINArAeFhr8btsgQIECBAgAABAgQIECBAgAABAgTSBYSH6VYqCRAgQIAAAQIECBAgQIAAAQIECPRKQHjYq3G7LAECBAgQIECAAAECBAgQIECAAIF0AeFhupVKAgQIECBAgAABAgQIECBAgAABAr0SEB72atwuS4AAAQIECBAgQIAAAQIECBAgQCBdQHiYbqWSAAECBAgQIECAAAECBAgQIECAQK8EhIe9GrfLEiBAgAABAgQIECBAgAABAgQIEEgXEB6mW6kkQIAAAQIECBAgQIAAAQIECBAg0CsB4WGvxu2yBAgQIECAAAECBAgQIECAAAECBNIFhIfpVioJECBAgAABAgQIECBAgAABAgQI9EpAeNircbssAQIECBAgQIAAAQIECBAgQIAAgXQB4WG6lUoCBAgQIECAAAECBAgQIECAAAECvRIQHvZq3C5LgAABAgQIECBAgAABAgQIECBAIF1AeJhupZIAAQIECBAgQIAAAQIECBAgQIBArwSEh70at8sSIECAAAECBAgQIECAAAECBAgQSBcQHqZbqSRAgAABAgQIECBAgAABAgQIECDQKwHhYa/G7bIECBAgQIAAAQIECBAgQIAAAQIE0gWEh+lWKgkQIECAAAECBAgQIECAAAECBAj0SkB42KtxuywBAgQIECBAgAABAgQIECBAgACBdAHhYbqVSgIECBAgQIAAAQIECBAgQIAAAQK9EhAe9mrcLkuAAAECBAgQIECAAAECBAgQIEAgXeD/A0yjq3ouTRDwAAAAAElFTkSuQmCC",x="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABQ8AAAUGCAYAA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+AKhZE8BAAAAABeNQAAAP//7NiBAAAAAMOg+VMf4AqFkTwEAAAAAF41AAAA///s2IEAAAAAw6D5Ux/gCoWRPAQAAAAAXjUAAAD//+zYgQAAAADDoPlTH+AKhZE8BAAAAABeNQAAAP//7NiBAAAAAMOg+VMf4AqFkTwEAAAAAF41AAAA///s2IEAAAAAw6D5Ux/gCoWRPAQAAAAAXjUAAAD//+zYgQAAAADDoPlTH+AKhZE8BAAAAABeNQAAAP//7NiBAAAAAMOg+VMf4AqFkTwEAAAAAF41AAAA///s2IEAAAAAw6D5Ux/gCoWRPAQAAAAAXjUAAAD//+zYgQAAAADDoPlTH+AKhZE8BAAAAABeNQAAAP//7NiBAAAAAMOg+VMf4AqFkTwEAAAAAF41AAAA///s2IEAAAAAw6D5Ux/gCoWRPAQAAAAAXjUAAAD//+zYgQAAAADDoPlTH+AKhZE8BAAAAABeNQAAAP//7NiBAAAAAMOg+VMf4AqFkTwEAAAAAF41AAAA///s2IEAAAAAw6D5Ux/gCoWRPAQAAAAAXjUAAAD//+zYgQAAAADDoPlTH+AKhZE8BAAAAABeNQAAAP//7NiBAAAAAMOg+VMf4AqFkTwEAAAAAF41AAAA///s2IEAAAAAw6D5Ux/gCoWRPAQAAAAAXjUAAAD//+zYgQAAAADDoPlTH+AKhZE8BAAAAABeNQAAAP//7NiBAAAAAMOg+VMf4AqFkTwEAAAAAF41AAAA///s2IEAAAAAw6D5Ux/gCoWRPAQAAAAAXjUAAAD//+zYgQAAAADDoPlTH+AKhZE8BAAAAABeNQAAAP//7NiBAAAAAMOg+VMf4AqFkTwEAAAAAF41AAAA///s2IEAAAAAw6D5Ux/gCoWRPAQAAAAAXjUAAAD//+zYgQAAAADDoPlTH+AKhZE8BAAAAABeNQAAAP//7NiBAAAAAMOg+VMf4AqFkTwEAAAAAF41AAAA//8DANFEFQTiSiq8AAAAAElFTkSuQmCC";var v={__name:"cargo-track-map",props:{orderNo:{type:String,required:!0}},setup(e){const t=e;g().accessToken="pk.eyJ1Ijoic2F2ZXBhbGxldCIsImEiOiJjbXVkZjNyNWswNmltMnpvZnZzYW9ydnRnIn0.hbh-Q1wK3Rd7WLPc_KL1ew";const i=(0,o.ref)(""),r=(0,o.shallowRef)(),n=(0,o.shallowRef)(),c=[114.0579,22.5431],h=(0,o.ref)([]),u=(0,o.ref)({startDate:"",startAddress:"",endDate:"",endAddress:""}),d=(0,o.ref)([]),f=(0,o.ref)({}),p=(0,o.ref)({visible:!1,loading:!0});function A(){p.value.visible=!0,v()}async function v(){if(!t.orderNo)return;d.value=[],h.value=[],p.value.loading=!0;const e=await(0,l.Tw)({orderNo:t.orderNo});if(p.value.loading=!1,e.success){const t=e.data.data||{};h.value=t.findOrderRouteInfoList||[],f.value=t.findOrderRouteStatisticsRecord||{},i.value=t.licenseNumber,h.value.forEach((e,t)=>{d.value.push([Number((0,m.M2)(e.longitude,4)),Number((0,m.M2)(e.latitude,4))]),0===t&&(u.value.startDate=e.time?(0,s.Yq)(e.time):"",u.value.startAddress=e.address),t===h.value.length-1&&(u.value.endDate=e.time?(0,s.Yq)(e.time):"",u.value.endAddress=e.address)}),(0,o.nextTick)(C)}else(0,a.QL)(e.data.message)}function w(e){const t=e.map(e=>e.join(",")).join(";");return`https://api.mapbox.com/directions/v5/mapbox/driving/${t}?geometries=geojson&access_token=${g().accessToken}`}async function E(e){const t=w(e),i=await fetch(t);if(!i.ok)throw new Error("Directions API 请æ±å¤±è´¥");const r=await i.json();if(!r.routes||0===r.routes.length)throw new Error("æ ææè·¯çº¿");return r.routes[0].geometry}function b(e,t=8e3){const i=window.turf.lineString(e.coordinates),r=window.turf.length(i,{units:"meters"}),n=Math.floor(r/t),o=1,s=1,a=[];for(let l=0;l<=n;l++){if(l<o||l>n-s)continue;const e=l*t;if(e>r)break;const c=window.turf.along(i,e,{units:"meters"});let h=0;const u=1;if(e+u<=r){const t=window.turf.along(i,e+u,{units:"meters"});h=window.turf.bearing(c,t)}else if(e-u>=0){const t=window.turf.along(i,e-u,{units:"meters"});h=window.turf.bearing(t,c)}a.push({type:"Feature",geometry:{type:"Point",coordinates:c.geometry.coordinates},properties:{bearing:h}})}return{type:"FeatureCollection",features:a}}function I({map:e,iconId:t,coordinate:i,iconImageSrc:r,labelText:n,markerOffset:o=[0,70],labelColor:s="#6CAFDC",geoJsonSourceId:a,layerId:l,iconSize:c=.035}){const h=document.createElement("div");h.textContent=n,Object.assign(h.style,{padding:"4px 4px",marginTop:"6px",backgroundColor:"white",border:`2px solid ${s}`,color:s,fontSize:"14px",fontWeight:"bold",whiteSpace:"pre",textAlign:"center",opacity:1}),new(g().Marker)(h,{anchor:"bottom",offset:o}).setLngLat(i).addTo(e);const u=window.turf.point(i,{icon:t}),d=window.turf.featureCollection([u]),f=new Image;f.onload=()=>{e.hasImage(t)||e.addImage(t,f),e.addSource(a,{type:"geojson",data:d}),e.addLayer({id:l,type:"symbol",source:a,layout:{"icon-image":["get","icon"],"icon-size":c,"icon-anchor":"center","icon-allow-overlap":!0}})},f.src=r}function C(){r.value=new(g().Map)({container:n.value,style:"mapbox://styles/mapbox/streets-v11",center:d.value.length>1?d.value[0]:c,zoom:10}),r.value.addControl(new window.MapboxLanguage({defaultLanguage:"zh-Hans"})),d.value.length>1&&r.value.on("load",async()=>{try{const e=await E(d.value),t=b(e,3e3),i="data:image/svg+xml;base64,"+btoa('\n<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <polygon points="12,0 24,24 0,24" fill="#3F95D1" stroke="#ffffff" stroke-width="3"/>\n</svg>\n'),n=new Image;n.onload=()=>{r.value.hasImage("arrow-triangle")||r.value.addImage("arrow-triangle",n),r.value.addSource("arrow-points",{type:"geojson",data:t}),r.value.addLayer({id:"arrow-points-layer",type:"symbol",source:"arrow-points",layout:{"icon-image":"arrow-triangle","icon-size":.5,"icon-allow-overlap":!0,"icon-rotation-alignment":"map","icon-anchor":"bottom","icon-rotate":["get","bearing"]}})},n.onerror=e=>{console.error("ç®å¤´å¾æ å 载失败",e)},n.src=i,r.value.addSource("route",{type:"geojson",data:e}),r.value.addLayer({id:"route-line",type:"line",source:"route",layout:{"line-join":"round","line-cap":"round"},paint:{"line-color":"#3F95D1","line-width":2.5}}),I({map:r.value,coordinate:d.value[0],iconId:"start-icon",iconImageSrc:_,labelText:`${u.value.startDate}\n${u.value.startAddress}`,geoJsonSourceId:"start-point",layerId:"start-point-layer"}),I({map:r.value,coordinate:d.value[d.value.length-1],iconId:"end-icon",iconImageSrc:y,labelText:`${u.value.endDate}\n${u.value.endAddress}`,geoJsonSourceId:"end-point",layerId:"end-point-layer"});for(let o=1;o<h.value.length-1;o++)I({map:r.value,coordinate:[Number((0,m.M2)(h.value[o].longitude,4)),Number((0,m.M2)(h.value[o].latitude,4))],markerOffset:[0,40],iconId:"mid-icon"+o,iconImageSrc:x,labelText:`${h.value[o].place}`,geoJsonSourceId:"mid-point"+o,layerId:"mid-point-layer"+o,iconSize:.02})}catch(e){console.error("è·å路线失败:",e)}})}return(0,o.watch)(()=>p.value.visible,()=>{r.value&&!p.value.visible&&r.value.remove()}),{__sfc:!0,props:t,licenseNumber:i,mapInstance:r,mapContainerRef:n,defaultCoordinate:c,orderRouteInfoList:h,mapMarkerState:u,coordinates:d,orderRouteStatistics:f,modelValue:p,show:A,bootstrap:v,getDirectionsUrl:w,fetchRoute:E,generateArrowPoints:b,addCustomMarker:I,createMap:C,formatDate:s.Yq}}},w=v,E=i(50247),b=(0,E.A)(w,f,p,!1,null,"7ab2a3f4",null),I=b.exports,C=i(42859),B={__name:"index",setup(e,{expose:t}){const i=(0,o.ref)(null),r=(0,o.ref)(!1),n=(0,o.ref)([]),f=(0,o.ref)(""),p=(0,o.ref)(""),A=(0,o.ref)([]),g=(0,o.ref)([]),m=(0,o.ref)("䏿"),_=(0,o.ref)(!1),y=(0,o.ref)(null),x=(0,o.ref)(null),v=(0,o.ref)(!0),w=(0,o.ref)({infoData:"",shipNo:"",blNo:"",shipCompanyCode:"",containerNo:""}),E=(0,o.ref)(!1),b=(0,o.ref)(!1),B=(0,o.ref)(!1),D=(0,o.computed)(()=>
1[{field:"expand",type:"expand",width:0},{field:"orderNo",title:"订åå·",render:({row:e})=>(0,o.h)("div",[(0,o.h)("p",{class:"tw-text-xl tw-font-bold"},[e.shipmentCodeTxt]),(0,o.h)("p",{class:"tw-text-sm"},[e.shipmentTypeTxt])])},{field:"fbaDeliveryTimeRangeList",title:"é¢è®¡éè¾¾æ¶æ®µ",width:220,render:({row:e})=>{var t;return null!==e&&void 0!==e&&null!==(t=e.fbaDeliveryTimeRangeList)&&void 0!==t&&t.length?(0,o.h)("div",[e.fbaDeliveryTimeRangeList.map((e,t)=>(0,o.h)("div",{key:`time_${t}`},[e]))]):""}},{field:"isaTime",title:"ISAå·ç æ¶é´",render:({row:e})=>e.isaTimeStr||(0,s.Yq)(e.isaTime)},...1===Number(x.value)?[{field:"appointmentId",title:"ISAå·ç ",render:({row:e})=>e.appointmentId?e.appointmentId.split(",").join("\n"):""}]:[],{field:"statusTxt",title:"ç¶æ"},...3!==x.value&&4!==x.value?[{field:"changeWarehouse",title:"转派ä»ç¹"}]:[],{field:"function",title:"详æ
",width:120,render:({row:e})=>(0,o.h)("div",[(0,o.h)("el-link",{attrs:{type:"primary"},on:{click:()=>G(e.innerOrderNo)}},[M.value.expandedRowKeys.includes(e.innerOrderNo)?"æ¶èµ·":"å±å¼"])])},{field:"lastUpdateTime",title:"æè¿æ´æ°æ¶é´",render:({row:e})=>(0,s.Yq)(e.lastUpdateTime)}].map(e=>({...e,key:e.field}))),T=(0,o.ref)([]),M=(0,o.ref)({expandedRowKeys:[],render:({row:e})=>(0,o.h)(C.A,{attrs:{statusTimeLineList:e.logisticsResponseList,planFileData:A.value,signFileData:g.value,langTitle:m.value,isLastOrderFlag:E.value}})}),Q=(0,o.ref)([{field:"expand",type:"expand",width:0},{field:"innerOrderNo",title:"订åå·"},{field:"fbaDeliveryTimeRangeList",title:"é¢è®¡éè¾¾æ¶æ®µ",width:220,render:({row:e})=>{var t;return null!==e&&void 0!==e&&null!==(t=e.fbaDeliveryTimeRangeList)&&void 0!==t&&t.length?(0,o.h)("div",[e.fbaDeliveryTimeRangeList.map((e,t)=>(0,o.h)("div",{key:`time_${t}`},[e]))]):""}},{field:"shipmentCodeTxt",title:"ç®çå°"},{field:"statusTxt",title:"ç¶æ"},{field:"function",title:"详æ
",width:120,render:({row:e})=>(0,o.h)("div",[(0,o.h)("el-link",{attrs:{type:"primary"},on:{click:()=>Y(e.innerOrderNo)}},[P.value.expandedRowKeys.includes(e.innerOrderNo)?"æ¶èµ·":"å±å¼"])])},{field:"lastUpdateTime",title:"æè¿æ´æ°æ¶é´",render:({row:e})=>(0,s.Yq)(e.lastUpdateTime)}].map(e=>({...e,key:e.field}))),S=(0,o.ref)([]),P=(0,o.ref)({expandedRowKeys:[],render:({row:e})=>(0,o.h)(C.A,{attrs:{statusTimeLineList:e.logisticsResponseList,planFileData:A.value,signFileData:g.value,langTitle:m.value,isLastOrderFlag:!0}})});function R(e){r.value=!0,v.value=!0,f.value=e.clientNo,p.value=e.orderNo,A.value=[],g.value=[],_.value=!1,x.value=null,z(e),O(e),L()}async function z(e){b.value=!1;const{data:{data:t}}=await(0,l.fE)({orderNo:e.orderNo});E.value=1===t;const i=E.value?l.vD:c.A.containerLogistics;i({params:{orderNo:e.orderNo}}).then(e=>{if("ok"===e.data.code){var t;if(E.value)T.value=e.data.data||[];else{const t=e.data.data||[],i=t.some(e=>"1"===e.freightMethod);i?(b.value=!0,S.value=t):n.value=t}null!==(t=e.data.data)&&void 0!==t&&t.length&&(x.value=e.data.data[0].businessLine)}else(0,a.QL)(e.data.message)}),O(e),L(),F(e)}async function L(){const e=await(0,l.tc)();"ok"===e.data.code&&(B.value=e.data.data||!1)}async function F(e){const{data:{data:t}}=await(0,l.Uz)({orderNoOrPlanName:e.orderNo});w.value.shipNo=t.shipNo}async function O(e){const{data:{data:t,code:i}}=await c.A.findOrderLogisticsFile({orderNo:e.orderNo});"ok"===i&&(A.value=t.planFileData||[],g.value=t.signFileData||[],_.value=t.problemFlag)}function k(e){m.value=e}function N(){y.value.onOpen({clientNo:f.value,orderNo:p.value})}function U(){i.value.onOpen(1,p.value)}function V(){v.value=!1}const H=(0,o.ref)(!1);async function j(){try{H.value=!0;const e=b.value?l.tX:l.AV,{data:t}=await e({orderNo:p.value});if("ok"===t.code&&t.data){const e=document.createElement("a");e.href=t.data,e.target="_blank",document.body.appendChild(e),e.click(),document.body.removeChild(e)}else t.message&&(0,a.QL)(t.message)}catch(e){console.error(e)}finally{H.value=!1}}function G(e){M.value.expandedRowKeys=M.value.expandedRowKeys.includes(e)?[]:[e]}function Y(e){P.value.expandedRowKeys=P.value.expandedRowKeys.includes(e)?[]:[e]}return t({setOpen:R}),{__sfc:!0,WeChatSubscriptionRef:i,visible:r,orbitList:n,selectClientNos:f,selectOrderNo:p,planFileData:A,signFileData:g,langTitle:m,problemFlag:_,baseProblemShipmentDetailRef:y,businessLine:x,logoMark:v,orbitBaseInfo:w,isLastOrderFlag:E,isFull
1ContainerFlag:b,isShowGPS:B,lastContainerColumns:D,lastContainerTableData:T,expandOption:M,fullContainerColumns:Q,fullContainerTableData:S,fullContainerExpandOption:P,setOpen:R,bootstrap:z,getIsShowGPS:L,getBaseInfoData:F,getOrderLogisticsFile:O,langCommandHandle:k,problemHandle:N,weChatSubscriptionSetting:U,removeLogoHandle:V,exportLoading:H,exportTailLogisticsHandle:j,showExpandOrbit:G,showFullContainerExpandOrbit:Y,BaseQuickNode:h.A,BaseProblemShipmentDetail:u.A,WeChatSubscription:d.A,CargoTrackMap:I,BaseOrbitContent:C.A}}},D=B,T=(0,E.A)(D,r,n,!1,null,"7fe45ed2",null),M=T.exports},14580:function(e,t,i){"use strict";var r=i(87081),n=i(87660),o=i(84189),s=i(32296),a=i(47862),l=i(77093),c=i(52104);r({target:"Promise",stat:!0,forced:c},{allSettled:function(e){var t=this,i=s.f(t),r=i.resolve,c=i.reject,h=a(function(){var i=o(t.resolve),s=[],a=0,c=1;l(e,function(e){var o=a++,l=!1;c++,n(i,t,e).then(function(e){l||(l=!0,s[o]={status:"fulfilled",value:e},--c||r(s))},function(e){l||(l=!0,s[o]={status:"rejected",reason:e},--c||r(s))})}),--c||r(s)});return h.error&&c(h.value),i.promise}})},16071:function(e,t,i){"use strict";e.exports=i.p+"img/7.873c2034.png"},22079:function(e,t,i){"use strict";var r=i(87081),n=i(87660),o=i(27453),s=i(47145),a=i(16368),l=i(69147),c=i(19861),h=i(22406),u=i(19197),d=i(89845),f=i(86597),p=i(57102),A=i(35498),g=p("replace"),m=TypeError,_=o("".indexOf),y=o("".replace),x=o("".slice),v=Math.max;r({target:"String",proto:!0},{replaceAll:function(e,t){var i,r,o,p,w,E,b,I,C,B,D=s(this),T=0,M="";if(l(e)){if(i=c(e),i&&(r=h(s(d(e))),!~_(r,"g")))throw new m("`.replaceAll` does not allow non-global regexes");if(o=u(e,g),o)return n(o,e,D,t);if(A&&i)return y(h(D),e,t)}p=h(D),w=h(e),E=a(t),E||(t=h(t)),b=w.length,I=v(1,b),C=_(p,w);while(-1!==C)B=E?h(t(w,C,p)):f(w,p,C,[],void 0,t),M+=x(p,T,C)+B,T=C+b,C=C+I>p.length?-1:_(p,w,C+I);return T<p.length&&(M+=x(p,T)),M}})},23327:function(e,t,i){i(64471),i(41982),i(788),i(99255),i(30318),i(64755),i(99241),i(12531),i(71839),i(11108),i(99026),i(39270),i(16103),i(51671),i(27334),i(94178),i(76881),i(79342),i(58471),i(62067),i(64792),i(85382),i(3380),i(21117),i(2637),i(99811),i(77696),i(56090),i(93718),i(14580),i(24781),i(2724),i(98628),i(91446),i(23029),i(22659),i(54726),i(9491),i(57748),i(2715),i(69351),i(75658),i(22801),i(22079),i(34564),i(66149),i(89560),i(38713),i(97806),i(94212),i(91136),i(49639),i(72260),i(20207),i(85143),i(87669),i(50493),i(95441),i(19137),i(16388),i(53718),i(22694),i(50434),i(53507),i(1908),i(91793),i(49289),i(35609),i(58681),i(89584),i(17535),i(10418),function(t,i){e.exports=i()}(0,function(){"use strict";let e,t,i;function r(r,n){if(e)if(t){const r={};e(void 0,r),i=n(r);const o="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+")(undefined, sharedChunk); ("+t+")(undefined, sharedChunk); self.onerror = null;";typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(i.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"})))}else t=n;else e=n}r(["require","exports"],function(e,t){var i=1e-6,r="undefined"!=typeof Float32Array?Float32Array:Array;function n(e,t){var i=t[0],r=t[1],n=t[2],o=t[3],s=i*o-n*r;return s?(e[0]=o*(s=1/s),e[1]=-r*s,e[2]=-n*s,e[3]=i*s,e):null}function o(){var e=new r(9);return r!=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 s(e,t){var i=t[0],r=t[1],n=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],h=t[8];return e[0]=s*h-a*c,e[1]=n*c-r*h,e[2]=r*a-n*s,e[3]=a*l-o*h,e[4]=i*h-n*l,e[5]=n*o-i*a,e[6]=o*c-s*l,e[7]=r*l-i*c,e[8]=i*s-r*o,e}function a(e,t,i){var r=t[0],n=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],h=t[7],u=t[8],d=i[0],f=i[1],p=i[2],A=i[3],g=i[4],m=i[5],_=i[6],y=i[7],x=i[8];return e[0]=d*r+f*s+p*c,e[1]=d*n+f*a+p*h,e[2]=d*o+f*l+p*u,e[3]=A*r+g*s+m*c,e[4]=A*n+g*a+m*h,e[5]=A*o+g*l+m*u,e[6]=_*r+y*s+x*c,e[7]=_*n+y*a+x*h,e[8]=_*o+y*l+x*u,e}function l(){var e=new r(16);return r!=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}function c(e){var t=new r(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}function h(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
vendor: 2,644 bytes, line 1
1]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function u(e,t){var i=t[0],r=t[1],n=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],h=t[8],u=t[9],d=t[10],f=t[11],p=t[12],A=t[13],g=t[14],m=t[15],_=i*a-r*s,y=i*l-n*s,x=i*c-o*s,v=r*l-n*a,w=r*c-o*a,E=n*c-o*l,b=h*A-u*p,I=h*g-d*p,C=h*m-f*p,B=u*g-d*A,D=u*m-f*A,T=d*m-f*g,M=_*T-y*D+x*B+v*C-w*I+E*b;return M?(e[0]=(a*T-l*D+c*B)*(M=1/M),e[1]=(n*D-r*T-o*B)*M,e[2]=(A*E-g*w+m*v)*M,e[3]=(d*w-u*E-f*v)*M,e[4]=(l*C-s*T-c*I)*M,e[5]=(i*T-n*C+o*I)*M,e[6]=(g*x-p*E-m*y)*M,e[7]=(h*E-d*x+f*y)*M,e[8]=(s*D-a*C+c*b)*M,e[9]=(r*C-i*D-o*b)*M,e[10]=(p*w-A*x+m*_)*M,e[11]=(u*x-h*w-f*_)*M,e[12]=(a*I-s*B-l*b)*M,e[13]=(i*B-r*I+n*b)*M,e[14]=(A*y-p*v-g*_)*M,e[15]=(h*v-u*y+d*_)*M,e):null}function d(e,t,i){var r=t[0],n=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],h=t[7],u=t[8],d=t[9],f=t[10],p=t[11],A=t[12],g=t[13],m=t[14],_=t[15],y=i[0],x=i[1],v=i[2],w=i[3];return e[0]=y*r+x*a+v*u+w*A,e[1]=y*n+x*l+v*d+w*g,e[2]=y*o+x*c+v*f+w*m,e[3]=y*s+x*h+v*p+w*_,e[4]=(y=i[4])*r+(x=i[5])*a+(v=i[6])*u+(w=i[7])*A,e[5]=y*n+x*l+v*d+w*g,e[6]=y*o+x*c+v*f+w*m,e[7]=y*s+x*h+v*p+w*_,e[8]=(y=i[8])*r+(x=i[9])*a+(v=i[10])*u+(w=i[11])*A,e[9]=y*n+x*l+v*d+w*g,e[10]=y*o+x*c+v*f+w*m,e[11]=y*s+x*h+v*p+w*_,e[12]=(y=i[12])*r+(x=i[13])*a+(v=i[14])*u+(w=i[15])*A,e[13]=y*n+x*l+v*d+w*g,e[14]=y*o+x*c+v*f+w*m,e[15]=y*s+x*h+v*p+w*_,e}function f(e,t,i){var r,n,o,s,a,l,c,h,u,d,f,p,A=i[0],g=i[1],m=i[2];return t===e?(e[12]=t[0]*A+t[4]*g+t[8]*m+t[12],e[13]=t[1]*A+t[5]*g+t[9]*m+t[13],e[14]=t[2]*A+t[6]*g+t[10]*m+t[14],e[15]=t[3]*A+t[7]*g+t[11]*m+t[15]):(n=t[1],o=t[2],s=t[3],a=t[4],l=t[5],c=t[6],h=t[7],u=t[8],d=t[9],f=t[10],p=t[11],e[0]=r=t[0],e[1]=n,e[2]=o,e[3]=s,e[4]=a,e[5]=l,e[6]=c,e[7]=h,e[8]=u,e[9]=d,e[10]=f,e[11]=p,e[12]=r*A+a*g+u*m+t[12],e[13]=n*A+l*g+d*m+t[13],e[14]=o*A+c*g+f*m+t[14],e[15]=s*A+h*g+p*m+t[15]),e}function p(e,t,i){var r=i[0],n=i[1],o=i[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*n,e[5]=t[5]*n,e[6]=t[6]*n,e[7]=t[7]*n,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function A(e,t,i){var r=Math.sin(i),n=Math.cos(i),o=t[4],s=t[5],a=t[6],l=t[7],c=t[8],h=t[9],u=t[10],d=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]=o*n+c*r,e[5]=s*n+h*r,e[6]=a*n+u*r,e[7]=l*n+d*r,e[8]=c*n-o*r,e[9]=h*n-s*r,e[10]=u*n-a*r,e[11]=d*n-l*r,e}function g(e,t,i){var r=Math.sin(i),n=Math.cos(i),o=t[0],s=t[1],a=t[2],l=t[3],c=t[8],h=t[9],u=t[10],d=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]=o*n-c*r,e[1]=s*n-h*r,e[2]=a*n-u*r,e[3]=l*n-d*r,e[8]=o*r+c*n,e[9]=s*r
vendor: 13,710 bytes, line 1
1+h*n,e[10]=a*r+u*n,e[11]=l*r+d*n,e}function m(e,t,i){var r=Math.sin(i),n=Math.cos(i),o=t[0],s=t[1],a=t[2],l=t[3],c=t[4],h=t[5],u=t[6],d=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]=o*n+c*r,e[1]=s*n+h*r,e[2]=a*n+u*r,e[3]=l*n+d*r,e[4]=c*n-o*r,e[5]=h*n-s*r,e[6]=u*n-a*r,e[7]=d*n-l*r,e}function _(e,t){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]=t[0],e[13]=t[1],e[14]=t[2],e[15]=1,e}function y(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}function x(e,t,r){var n,o,s,a=r[0],l=r[1],c=r[2],h=Math.sqrt(a*a+l*l+c*c);return h<i?null:(a*=h=1/h,l*=h,c*=h,n=Math.sin(t),o=Math.cos(t),e[0]=a*a*(s=1-o)+o,e[1]=l*a*s+c*n,e[2]=c*a*s-l*n,e[3]=0,e[4]=a*l*s-c*n,e[5]=l*l*s+o,e[6]=c*l*s+a*n,e[7]=0,e[8]=a*c*s+l*n,e[9]=l*c*s-a*n,e[10]=c*c*s+o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e)}function v(e,t){var i=t[0],r=t[1],n=t[2],o=t[4],s=t[5],a=t[6],l=t[8],c=t[9],h=t[10];return e[0]=Math.sqrt(i*i+r*r+n*n),e[1]=Math.sqrt(o*o+s*s+a*a),e[2]=Math.sqrt(l*l+c*c+h*h),e}function w(e,t){var i=t[0],r=t[1],n=t[2],o=t[3],s=i+i,a=r+r,l=n+n,c=i*s,h=r*s,u=r*a,d=n*s,f=n*a,p=n*l,A=o*s,g=o*a,m=o*l;return e[0]=1-u-p,e[1]=h+m,e[2]=d-g,e[3]=0,e[4]=h-m,e[5]=1-c-p,e[6]=f+A,e[7]=0,e[8]=d+g,e[9]=f-A,e[10]=1-c-u,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}var E=d;function b(){var e=new r(3);return r!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function I(e){var t=new r(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function C(e){var t=e[0],i=e[1],r=e[2];return Math.sqrt(t*t+i*i+r*r)}function B(e,t,i){var n=new r(3);return n[0]=e,n[1]=t,n[2]=i,n}function D(e,t,i,r){return e[0]=t,e[1]=i,e[2]=r,e}function T(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e[2]=t[2]+i[2],e}function M(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e}function Q(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e}function S(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e}function P(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e}function R(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function z(e,t,i,r){return e[0]=t[0]+i[0]*r,e[1]=t[1]+i[1]*r,e[2]=t[2]+i[2]*r,e}function L(e,t){var i=t[0]-e[0],r=t[1]-e[1],n=t[2]-e[2];return Math.sqrt(i*i+r*r+n*n)}function F(e,t){var i=t[0]-e[0],r=t[1]-e[1],n=t[2]-e[2];return i*i+r*r+n*n}function O(e){var t=e[0],i=e[1],r=e[2];return t*t+i*i+r*r}function k(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function N(e,t){var i=t[0],r=t[1],n=t[2],o=i*i+r*r+n*n;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e}function U(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function V(e,t,i){var r=t[0],n=t[1],o=t[2],s=i[0],a=i[1],l=i[2];return e[0]=n*l-o*a,e[1]=o*s-r*l,e[2]=r*a-n*s,e}function H(e,t,i,r){var n=t[0],o=t[1],s=t[2];return e[0]=n+r*(i[0]-n),e[1]=o+r*(i[1]-o),e[2]=s+r*(i[2]-s),e}function j(e,t,i){var r=t[0],n=t[1],o=t[2],s=i[3]*r+i[7]*n+i[11]*o+i[15];return e[0]=(i[0]*r+i[4]*n+i[8]*o+i[12])/(s=s||1),e[1]=(i[1]*r+i[5]*n+i[9]*o+i[13])/s,e[2]=(i[2]*r+i[6]*n+i[10]*o+i[14])/s,e}function G(e,t,i){var r=t[0],n=t[1],o=t[2];return e[0]=r*i[0]+n*i[3]+o*i[6],e[1]=r*i[1]+n*i[4]+o*i[7],e[2]=r*i[2]+n*i[5]+o*i[8],e}function Y(e,t,i){var r=i[0],n=i[1],o=i[2],s=i[3],a=t[0],l=t[1],c=t[2],h=n*c-o*l,u=o*a-r*c,d=r*l-n*a;return e[0]=a+s*(h+=h)+n*(d+=d)-o*(u+=u),e[1]=l+s*u+o*h-r*d,e[2]=c+s*d+r*u-n*h,e}function W(e){return e[0]=0,e[1]=0,e[2]=0,e}function J(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}var Z=M,q=Q,K=C;function X(){var e=new r(4);return r!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0),e}function $(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e[3]=t[3]*i,e}function ee(e,t){var i=t[0],r=t[1],n=t[2],o=t[3],s=i*i+r*r+n*n+o*o;return s>0&&(s=1/Math.sqrt(s)),e[0]=i*s,e[1]=r*s,e[2]=n*s,e[3]=o*s,e}function te(e,t,i){var r=t[0],n=t[1],o=t[2],s=t[3];return e[0]=i[0]*r+i[4]*n+i[8]*o+i[12]*s,e[1]=i[1]*r+i[5]*n+i[9]*o+i[13]*s,e[2]=i[2]*r+i[6]*n+i[10]*o+i[14]*s,e[3]=i[3]*r+i[7]*n+i[11]*o+i[15]*s,e}function ie(){var e=new r(4);return r!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e[3]=1,e}function re(e){return e[0]=0,e[1]=0,e[2]=0,e[3]=1,e}function ne(e,t,i){i*=.5;var r=t[0],n=t[1],o=t[2],s=t[3],a=Math.sin(i),l=Math.cos(i);return e[0]=r*l+s*a,e[1]=n*l+o*a,e[2]=o*l-n*a,e[3]=s*l-r*a,e}function oe(e,t,i){i*=.5;var r=t[0],n=t[1],o=t[2],s=t[3],a=Math.sin(i),l=Math.cos(i);return e[0]=r*l-o*a,e[1]=n*l+s*a,e[2]=o*l+r*a,e[3]=s*l-n*a,e}b(),X();var se,ae,le,ce=ee,he=(se=b(),ae=B(1,0,0),le=B(0,1,0),function(e,t,i){var r=U(t,i);return r<-.999999?(V(se,ae,t),K(se)<1e-6&&V(se,le,t),N(se,se),function(e,t,i){i*=.5;var r=Math.sin(i);e[0]=r*t[0],e[1]=r*t[1],e[2]=r*t[2],e[3]=Math.cos(i)}(e,se,Math.PI),e):r>.999999?(e[0]=0,e[1]=0,e[2]=0,e[3]=1,e):(V(se,t,i),e[0]=se[0],e[1]=se[1],e[2]=se[2],e[3]=1+r,ce(e,e))});function ue(){var e=new r(2);return r!=Float32Array&&(e[0]=0,e[1]=0),e}function de(e,t){var i=new r(2);return i[0]=e,i[1]=t,i}function fe(e,t,i){return e[0]=t,e[1]=i,e}function pe(e,t,i){return e[0]=t[0]+i[0],e[1]=t[1]+i[1],e}function Ae(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e}function ge(e,t,i){return e[0]=t[0]*i,e[1]=t[1]*i,e}function me(e){var t=e[0],i=e[1];return Math.sqrt(t*t+i*i)}function _e(e,t){var i=t[0],r=t[1],n=i*i+r*r;return n>0&&(n=1/Math.sqrt(n)),e[0]=t[0]*n,e[1]=t[1]*n,e}function ye(e,t){return e[0]*t[0]+e[1]*t[1]}ie(),ie(),o();var xe=Ae;function ve(e,t,i,r){const n=3*e,o=3*(i-e)-n,s=1-n-o,a=3*t,l=3*(r-t)-a,c=1-a-l;return function(e,t=1e-6){if(e<=0)return 0;if(e>=1)return 1;let i=e;for(let u=0;u<8;u++){const r=((s*i+o)*i+n)*i-e;if(Math.abs(r)<t)return((c*i+l)*i+a)*i;const h=(3*s*i+2*o)*i+n;if(Math.abs(h)<1e-6)break;i-=r/h}let r=0,h=1;i=e;for(let a=0;a<20;a++){const a=((s*i+o)*i+n)*i;if(Math.abs(a-e)<t)break;e>a?r=i:h=i,i=.5*(r+h)}return((c*i+l)*i+a)*i}}function we(e,t){this.x=e,this.y=t}function Ee(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(!Ee(e[i],t[i]))return!1;return!0}if("object"==typeof e&&null!==e&&null!==t){if("object"!=typeof t)return!1;const i=e,r=t;if(Object.keys(i).length!==Object.keys(r).length)return!1;for(const e in i)if(!Ee(i[e],r[e]))return!1;return!0}return e===t}function be(e,t,i=0,r=e.length-1,n=Ce){for(;r>i;){if(r-i>600){const o=r-i+1,s=t-i+1,a=Math.log(o),l=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*l*(o-l)/o)*(s-o/2<0?-1:1);be(e,t,Math.max(i,Math.floor(t-s*l/o+c)),Math.min(r,Math.floor(t+(o-s)*l/o+c)),n)}const o=e[t];let s=i,a=r;for(Ie(e,i,t),n(e[r],o)>0&&Ie(e,i,r);s<a;){for(Ie(e,s,a),s++,a--;n(e[s],o)<0;)s++;for(;n(e[a],o)>0;)a--}0===n(e[i],o)?Ie(e,i,a):(a++,Ie(e,a,r)),a<=t&&(i=a+1),t<=a&&(r=a-1)}}function Ie(e,t,i){const r=e[t];e[t]=e[i],e[i]=r}function Ce(e,t){return e<t?-1:e>t?1:0}function Be(e){let t=0;for(let i,r,n=0,o=e.length,s=o-1;n<o;s=n++)i=e[n],r=e[s],t+=(r.x-i.x)*(i.y+r.y);return t}function De(e,t){return t.area-e.area}function Te(e,t){const i=e.length;if(i<=1)return[e];const r=[];let n,o;for(let s=0;s<i;s++){const t=Be(e[s]);0!==t&&(e[s].area=Math.abs(t),void 0===o&&(o=t<0),o===t<0?(n&&r.push(n),n=[e[s]]):n.push(e[s]))}if(n&&r.push(n),t>1)for(let s=0;s<r.length;s++)r[s].length<=t||(be(r[s],t,1,r[s].length-1,De),r[s]=r[s].slice(0,t));return r}function Me(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 Qe(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function Se(e,t,i){const r=e[0]-t[0],n=e[1]-t[1],o=e[0]-i[0],s=e[1]-i[1];return r*s-o*n===0&&r*o<=0&&n*s<=0}function Pe(e,t,i){return t[1]>e[1]!=i[1]>e[1]&&e[0]<(i[0]-t[0])*(e[1]-t[1])/(i[1]-t[1])+t[0]}function Re(e,t,i=!1){let r=!1;for(let n=0,o=t.length;n<o;n++){const o=t[n];for(let t=0,n=o.length,s=n-1;t<n;s=t++){const n=o[s],a=o[t];if(Se(e,n,a))return i;Pe(e,n,a)&&(r=!r)}}return r}function ze(e,t,i,r){const n=r[0]-i[0],o=r[1]-i[1],s=(e[0]-i[0])*o-n*(e[1]-i[1]),a=(t[0]-i[0])*o-n*(t[1]-i[1]);return s>0&&a<0||s<0&&a>0}function Le(e,t,i,r){return 0!==(n=[r[0]-i[0],r[1]-i[1]])[0]*(o=[t[0]-e[0],t[1]-e[1]])[1]-n[1]*o[0]&&!(!ze(e,t,i,r)||!ze(i,r,e,t));var n,o}function Fe(e){const t=new we(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY),i=new we(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY);for(const r of e[0])t.x>r.x&&(t.x=r.x),t.y>r.y&&(t.y=r.y),i.x<r.x&&(i.x=r.x),i.y<r.y&&(i.y=r.y);return{min:t,max:i}}ue(),we.prototype={clone(){return new we(this.x,this.y)},add(e){return this.clone()._add(e)},sub(e){return this.clone()._sub(e)},multByPoint(e){return this.clone()._multByPoint(e)},divByPoint(e){return this.clone()._divByPoint(e)},mult(e){return this.clone()._mult(e)},div(e){return this.clone()._div(e)},rotate(e){return this.clone()._rotate(e)},rotateAround(e,t){return this.clone()._rotateAround(e,t)},matMult(e){return this.clone()._matMult(e)},unit(){return this.clone()._unit()},perp(){return this.clone()._perp()},round(){return this.clone()._round()},mag(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals(e){return this.x===e.x&&this.y===e.y},dist(e){return Math.sqrt(this.distSqr(e))},distSqr(e){const t=e.x-this.x,i=e.y-this.y;return t*t+i*i},angle(){return Math.atan2(this.y,this.x)},angleTo(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith(e){return this.angleWithSep(e.x,e.y)},angleWithSep(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult(e){const 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(e){return this.x+=e.x,this.y+=e.y,this},_sub(e){return this.x-=e.x,this.y-=e.y,this},_mult(e){return this.x*=e,this.y*=e,this},_div(e){return this.x/=e,this.y/=e,this},_multByPoint(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint(e){return this.x/=e.x,this.y/=e.y,this},_unit(){return this._div(this.mag()),this},_perp(){const e=this.y;return this.y=this.x,this.x=-e,this},_rotate(e){const t=Math.cos(e),i=Math.sin(e),r=i*this.x+t*this.y;return this.x=t*this.x-i*this.y,this.y=r,this},_rotateAround(e,t){const i=Math.cos(e),r=Math.sin(e),n=t.y+r*(this.x-t.x)+i*(this.y-t.y);return this.x=t.x+i*(this.x-t.x)-r*(this.y-t.y),this.y=n,this},_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},constructor:we},we.convert=function(e){if(e instanceof we)return e;if(Array.isArray(e))return new we(+e[0],+e[1]);if(void 0!==e.x&&void 0!==e.y)return new we(+e.x,+e.y);throw new Error("Expected [x, y] or {x, y} point format")};const Oe=Math.PI/180,ke=180/Math.PI,Ne=/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i,Ue=/\b(iPad|iPhone|iPod)\b/,Ve=/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/;function He(e){return e*Oe}function je(e){return e*ke}const Ge=[[0,0],[1,0],[1,1],[0,1]];function Ye(e){if(e<=0)return 0;if(e>=1)return 1;const t=e*e,i=t*e;return 4*(e<.5?i:3*(e-t)+i-.75)}const We=ve(.25,.1,.25,1);function Je(e,t,i){return Math.min(i,Math.max(t,e))}function Ze(e,t,i){return(i=Je((i-e)/(t-e),0,1))*i*(3-2*i)}function qe(e,t,i){const r=i-t,n=((e-t)%r+r)%r+t;return n===t?i:n}function Ke(e,t,i){if(!e.length)return i(null,[]);let r=e.length;const n=new Array(e.length);let o=null;e.forEach((e,s)=>{t(e,(e,t)=>{e&&(o=e),n[s]=t,0===--r&&i(o,n)})})}function Xe(e,t){const i={};for(let r=0;r<t.length;r++){const n=t[r];n in e&&(i[n]=e[n])}return i}let $e=1;function et(){return $e++}function tt(e){return e<=1?1:Math.pow(2,Math.ceil(Math.log2(e)))}function it(e,t){e.forEach(e=>{t[e]&&(t[e]=t[e].bind(t))})}function rt(e,t,i){const r={};for(const n in e)r[n]=t.call(this,e[n],n,e);return r}function nt(e,t,i){const r={};for(const n in e)t.call(this,e[n],n,e)&&(r[n]=e[n]);return r}function ot(e){return Array.isArray(e)?e.map(ot):"object"==typeof e&&e?rt(e,ot):e}function st(e,t){for(let i=0;i<e.length;i++)if(t.includes(e[i]))return!0;return!1}const at={};function lt(e){at[e]||("undefined"!=typeof console&&console.warn(e),at[e]=!0)}function ct(e,t,i){return(i.y-e.y)*(t.x-e.x)>(t.y-e.y)*(i.x-e.x)}function ht([e,t,i]){const r=He(t+90),n=He(i);return{x:e*Math.cos(r)*Math.sin(n),y:e*Math.sin(r)*Math.sin(n),z:e*Math.cos(n),azimuthal:t,polar:i}}function ut(e){return("undefined"!=typeof self||void 0!==e)&&"undefined"!=typeof WorkerGlobalScope&&(void 0!==e?e:self)instanceof WorkerGlobalScope}function dt(e){const t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(e,i,r,n)=>{const o=r||n;return t[i]=!o||o.toLowerCase(),""}),t["max-age"]){const e=parseInt(t["max-age"],10);isNaN(e)?delete t["max-age"]:t["max-age"]=e}return t}let ft,pt,At,gt,mt,_t,yt,xt=null;function vt(e,t){return[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]]}function wt(e,t,i,r){for(;t<i;){const n=t+i>>1;e[n]<r?t=n+1:i=n}return t}function Et(e,t,i,r){for(;t<i;){const n=t+i>>1;e[n]<=r?t=n+1:i=n}return t}function bt(e){return e>0?1/(1.001-e):1+e}function It(e){return e>0?1-1/(1.001-e):-e}function Ct(e,t,i){return(e-t.min)*(i.max-i.min)/(t.max-t.min)+i.min}function Bt(){return null==pt&&(pt=self.OffscreenCanvas&&!!new OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof self.createImageBitmap),pt}const Dt={requestIdleCallback:e=>{if("undefined"!=typeof requestIdleCallback)return requestIdleCallback(e);setTimeout(()=>e({didTimeout:!1,timeRemaining:()=>50}),0)},now:()=>void 0!==mt?mt:performance.now(),setNow(e){mt=e},restoreNow(){mt=void 0},frame(e){const t=requestAnimationFrame(e);return{cancel:()=>cancelAnimationFrame(t)}},getImageData(e,t=0){const{width:i,height:r}=e;_t||(_t=document.createElement("canvas"));const n=_t.getContext("2d",{willReadFrequently:!0});if(!n)throw new Error("failed to create canvas 2d context");return(i>_t.width||r>
1_t.height)&&(_t.width=i,_t.height=r),n.clearRect(-t,-t,i+2*t,r+2*t),n.drawImage(e,0,0,i,r),n.getImageData(-t,-t,i+2*t,r+2*t)},resolveURL:e=>(At||(At=document.createElement("a")),At.href=e,At.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(null==gt&&(gt=window.matchMedia("(prefers-reduced-motion: reduce)")),gt.matches)},hasCanvasFingerprintNoise(){if(void 0!==yt)return yt;if(!Bt())return yt=!1,!1;const e=new OffscreenCanvas(85,1),t=e.getContext("2d",{willReadFrequently:!0});let i=0;for(let n=0;n<e.width;++n)t.fillStyle=`rgba(${i++},${i++},${i++}, 255)`,t.fillRect(n,0,1,1);const r=t.getImageData(0,0,e.width,e.height);i=0;for(let n=0;n<r.data.length;++n)if(n%4!=3&&i++!==r.data[n])return yt=!0,!0;return yt=!1,!1}},Tt={API_URL:"https://api.mapbox.com",API_URL_REGEX:/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i,API_TILEJSON_REGEX:/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i,API_SPRITE_REGEX:/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i,API_FONTS_REGEX:/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i,API_STYLE_REGEX:/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i,API_CDN_URL_REGEX:/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i,get EVENTS_URL(){if(!Tt.API_URL)return null;try{const e=new URL(Tt.API_URL);return"api.mapbox.cn"===e.hostname?"https://events.mapbox.cn/events/v2":"api.mapbox.com"===e.hostname?"https://events.mapbox.com/events/v2":null}catch(e){return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"/mapbox-gl-js/meshopt_simd_v0.20.wasm",BUILDING_GEN_URL:"/mapbox-gl-js/building-gen/building_gen_v1.2.4.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf",TILES3D_URL_PREFIX:"3dtiles/v1",TILE_PROVIDER_URLS:Object.assign(Object.create(null),{pmtiles:"/mapbox-gl-js/plugins/mapbox-gl-pmtiles-provider/v0.0.2/mapbox-gl-pmtiles-provider.js"})};function Mt(){return new URL(Tt.DRACO_URL,Tt.API_URL).href}function Qt(){if("object"!=typeof WebAssembly)throw new Error("WebAssembly not supported, cannot instantiate meshoptimizer");return new URL(function(){if(void 0===ft){if("object"!=typeof WebAssembly)return!1;const e=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,3,2,0,0,5,3,1,0,1,12,1,0,10,22,2,12,0,65,0,65,0,65,0,252,10,0,0,11,7,0,65,0,253,15,26,11]);ft=WebAssembly.validate(e)}return ft}()?Tt.MESHOPT_SIMD_URL:Tt.MESHOPT_URL,Tt.API_URL).href}function St(){return new URL(Tt.BUILDING_GEN_URL,Tt.API_URL).href}function Pt(e){return Tt.API_URL_REGEX.test(e)}function Rt(e){return Tt.API_SPRITE_REGEX.test(e)}function zt(e,t){const i=e.indexOf("?");if(i<0)return`${e}?${new URLSearchParams(t).toString()}`;const r=new URLSearchParams(e.slice(i));for(const n in t)r.set(n,t[n]);return`${e.slice(0,i)}?${r.toString()}`}
1function Lt(e,t={persistentParams:[]}){const i=e.indexOf("?");if(i<0)return e;const r=new URLSearchParams,n=new URLSearchParams(e.slice(i));for(const s of t.persistentParams){const e=n.get(s);e&&r.set(s,e)}const o=r.toString();return`${e.slice(0,i)}${o.length>0?`?${o}`:""}`}const Ft="mapbox-tiles";let Ot=500,kt=50;const Nt=["language","worldview","jobid"];let Ut;function Vt(){try{return caches}catch(e){}}function Ht(){const e=Vt();e&&null==Ut&&(Ut=e.open(Ft))}let jt=1/0;const Gt={supported:!1,testSupport:function(e){!Jt&&Wt&&(Zt?Kt(e):Yt=e)}};let Yt,Wt,Jt=!1,Zt=!1;const qt="undefined"!=typeof self?self:{};function Kt(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,Wt),e.isContextLost())return;Gt.supported=!0}catch(e){}e.deleteTexture(t),Jt=!0}qt.document&&(Wt=qt.document.createElement("img"),Wt.onload=function(){Yt&&Kt(Yt),Yt=null,Zt=!0},Wt.onerror=function(){Jt=!0,Yt=null},Wt.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const Xt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Iconset:"Iconset",Image:"Image",Model:"Model"};Object.freeze(Xt);class $t extends Error{constructor(e,t,i){401===t&&Pt(i)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=t,this.url=i}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}function ei(e){return"object"==typeof e&&null!==e&&"status"in e&&404===e.status}const ti=ut()?()=>self.worker.referrer:()=>("blob:"===location.protocol?parent:self).location.href,ii=/^\w+:/,ri=/[\r\n]+/,ni=function(e,t){return(i=e.url).startsWith("file:")||ti().startsWith("file:")&&!ii.test(i)?function(e,t){const i=new XMLHttpRequest;i.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(i.responseType="arraybuffer");for(const r in e.headers)i.setRequestHeader(r,e.headers[r]);return"json"===e.type&&(i.responseType="text",i.setRequestHeader("Accept","application/json")),i.withCredentials="include"===e.credentials,i.onerror=()=>{t(new Error(i.statusText))},i.onload=()=>{if((i.status>=200&&i.status<300||0===i.status)&&null!==i.response){let r=i.response;if("json"===e.type)try{r=JSON.parse(i.response)}catch(e){return t(e)}const n=new Headers;i.getAllResponseHeaders().trim().split(ri).forEach(e=>{const t=e.split(": "),i=t.shift(),r=t.join(": ");n.append(i,r)}),t(null,r,n)}else t(new $t(i.statusText,i.status,e.url))},i.send(e.body),{cancel:()=>i.abort()}}(e,t):function(e,t){const i=new AbortController,r=new Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:ti(),referrerPolicy:e.referrerPolicy,signal:i.signal});let n=!1,o=!1;const s=(a=r.url).indexOf("sku=")>0&&Pt(a);var a;"json"===e.type&&r.headers.set("Accept","application/json");const l=(i,n,a)=>{if(o)return;if(i&&"SecurityError"!==i.message&<(i.toString()),n&&a)return c(n);const l=Date.now();fetch(r).then(i=>{if(i.ok){const e=s?i.clone():null;return c(i,e,l)}return t(new $t(i.statusText,i.status,e.url))}).catch(i=>{"AbortError"!==i.name&&t(new Error(`${i.message} ${e.url}`))})},c=(i,s,a)=>{("arrayBuffer"===e.type?i.arrayBuffer():"json"===e.type?i.json():i.text()).then(e=>{o||(s&&a&&function(e,t,i){if(Ht(),null==Ut)return;const r=dt(t.headers.get("cache-control")||"");if(r["no-store"])return;const n={status:t.status,statusText:t.statusText,headers:new Headers};t.headers.forEach((e,t)=>n.headers.set(t,e)),r["max-age"]&&n.headers.set("Expires",new Date(i+1e3*r["max-age"]).toUTCString());const o=n.headers.get("expires");if(!o)return;if(new Date(o).getTime()-i<42e4)return;
1let s=Lt(e.url,{persistentParams:Nt});if(206===t.status){const t=e.headers.get("Range");if(!t)return;n.status=200,s=zt(s,{range:t})}const a=new Response(200!==(l=t.status)&&404!==l&&[101,103,204,205,304].includes(l)?null:t.body,n);var l;Ht(),null!=Ut&&Ut.then(e=>e.put(s,a)).catch(e=>lt(e.message))}(r,s,a),n=!0,t(null,e,i.headers))}).catch(e=>{o||t(new Error(e.message))})};return s?function(e,t){if(Ht(),null==Ut)return t(null);Ut.then(i=>{let r=Lt(e.url,{persistentParams:Nt});const n=e.headers.get("Range");n&&(r=zt(r,{range:n})),i.match(r).then(e=>{const n=function(e){if(!e)return!1;const t=new Date(e.headers.get("expires")||0),i=dt(e.headers.get("cache-control")||"");return Number(t)>Date.now()&&!i["no-cache"]}(e);i.delete(r).catch(t),n&&i.put(r,e.clone()).catch(t),t(null,e,n)}).catch(t)}).catch(t)}(r,l):l(null,null),{cancel:()=>{o=!0,n||i.abort()}}}(e,t);var i},oi=function(e,t){return ni(Object.assign(e,{type:"json"}),t)},si=function(e,t){return ni(Object.assign(e,{type:"arrayBuffer"}),t)};function ai(e){const t=document.createElement("a");return t.href=e,t.protocol===location.protocol&&t.host===location.host}let li,ci;li=[],ci=0;const hi=function(e,t){if(Gt.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),ci>=Tt.MAX_PARALLEL_IMAGE_REQUESTS){const i={requestParameters:e,callback:t,cancelled:!1,cancel(){this.cancelled=!0}};return li.push(i),i}ci++;let i=!1;const r=()=>{if(!i)for(i=!0,ci--;li.length&&ci<Tt.MAX_PARALLEL_IMAGE_REQUESTS;){const e=li.shift(),{requestParameters:t,callback:i,cancelled:r}=e;r||(e.cancel=hi(t,i).cancel)}},n=si(e,(e,i,n)=>{r(),e?t(e):i&&function(e,t){const i=new Blob([new Uint8Array(e)],{type:"image/png"});createImageBitmap(i).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.`))})}(i,(e,i)=>t(e,i,n))});return{cancel:()=>{n.cancel(),r()}}};function ui(e,t=0){const i=3432918353,r=461845907,n=e.length,o=n-(3&n);let s,a=0|t,l=0;for(;l<o;)s=255&e.charCodeAt(l)|(255&e.charCodeAt(l+1))<<8|(255&e.charCodeAt(l+2))<<16|(255&e.charCodeAt(l+3))<<24,l+=4,s=Math.imul(s,i),s=s<<15|s>>>17,s=Math.imul(s,r),a^=s,a=a<<13|a>>>19,a=Math.imul(a,5)+3864292196|0;s=0;const c=3&n;return c>0&&(c>=3&&(s^=(255&e.charCodeAt(l+2))<<16),c>=2&&(s^=(255&e.charCodeAt(l+1))<<8),s^=255&e.charCodeAt(l),s=Math.imul(s,i),s=s<<15|s>>>17,s=Math.imul(s,r),a^=s),a^=n,a^=a>>>16,a=Math.imul(a,2246822507),a^=a>>>13,a=Math.imul(a,3266489909),a^=a>>>16,a>>>0}class di{constructor(e,...t){Object.assign(this,t[0]||{}),this.type=e}}class fi extends di{constructor(e,t={}){super("error",Object.assign({error:e},t))}}function pi(e,t,i){i[e]&&i[e].includes(t)||(i[e]=i[e]||[],i[e].push(t))}function Ai(e,t,i){if(i&&i[e]){const r=i[e].indexOf(t);-1!==r&&i[e].splice(r,1)}}class gi{on(e,t){return this._listeners=this._listeners||{},pi(e,t,this._listeners),this}off(e,t){return Ai(e,t,this._listeners),Ai(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners=this._oneTimeListeners||{},pi(e,t,this._oneTimeListeners),this):new Promise(t=>{this.once(e,t)})}fire(e,t){const i="string"==typeof e?new di(e,t):e,r=i.type;if(this.listens(r)){i.target=this;const e=this._listeners&&this._listeners[r]?this._listeners[r].slice():[];for(const r of e)r.call(this,i);const t=this._oneTimeListeners&&this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];for(const o of t)Ai(r,o,this._oneTimeListeners),o.call(this,i);const n=this._eventedParent;if(n){const e="function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData;Object.assign(i,e),n.fire(i)}}else i instanceof fi&&console.error(i.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}}class mi{constructor(e){"string"==typeof e?this.name=e:(this.name=e.name,this.iconsetId=e.iconsetId)}static from(e){return new mi(e)}static toString(e){return e.iconsetId?`${e.name}�${e.iconsetId}`:e.name}static parse(e){const[t,i]=e.split("�");return new mi({name:t,iconsetId:i})}static isEqual(e,t){return e.name===t.name&&e.iconsetId===t.iconsetId}toString(){return mi.toString(this)}serialize(){return{name:this.name,iconsetId:this.iconsetId}}}var _i,yi={},xi=function(){if(_i)return yi;_i=1;var e={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 t(e){return(e=Math.round(e))<0?0:e>255?255:e}function i(e){return t("%"===e[e.length-1]?parseFloat(e)/100*255:parseInt(e))}function r(e){return(t="%"===e[e.length-1]?parseFloat(e)/100:parseFloat(e))<0?0:t>1?1:t;var t}function n(e,t,i){return i<0?i+=1:i>1&&(i-=1),6*i<1?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}try{yi.parseCSSColor=function(o){var s,a=o.replace(/ /g,"").toLowerCase();if(a in e)return e[a].slice();if("#"===a[0])return 4===a.length?(s=parseInt(a.substr(1),16))>=0&&s<=4095?[(3840&s)>>4|(3840&s)>>8,240&s|(240&s)>>4,15&s|(15&s)<<4,1]:null:7===a.length&&(s=parseInt(a.substr(1),16))>=0&&s<=16777215?[(16711680&s)>>16,(65280&s)>>8,255&s,1]:null;var l=a.indexOf("("),c=a.indexOf(")");if(-1!==l&&c+1===a.length){var h=a.substr(0,l),u=a.substr(l+1,c-(l+1)).split(","),d=1;switch(h){case"rgba":if(4!==u.length)return null;d=r(u.pop());case"rgb":return 3!==u.length?null:[i(u[0]),i(u[1]),i(u[2]),d];case"hsla":if(4!==u.length)return null;d=r(u.pop());case"hsl":if(3!==u.length)return null;var f=(parseFloat(u[0])%360+360)%360/360,p=r(u[1]),A=r(u[2]),g=A<=.5?A*(p+1):A+p-A*p,m=2*A-g;return[t(255*n(m,g,f+1/3)),t(255*n(m,g,f)),t(255*n(m,g,f-1/3)),d];default:return null}}return null}}catch(e){}return yi}();function vi(e,t,i){return e*(1-i)+t*i}const wi=new Map;class Ei{constructor(e,t,i,r=1){this.r=e,this.g=t,this.b=i,this.a=r}static parse(e){if(!e)return;if(e instanceof Ei)return e;if("string"!=typeof e)return;const t=wi.get(e);if(t)return t;const i=xi.parseCSSColor(e);
vendor: 5,529 bytes, line 1
1if(!i)return;const r=new Ei(i[0]/255,i[1]/255,i[2]/255,i[3]);return wi.set(e,r),r}toString(){const{r:e,g:t,b:i,a:r}=this;return`rgba(${Math.round(255*e)},${Math.round(255*t)},${Math.round(255*i)},${r})`}toNonPremultipliedRenderColor(e){const{r:t,g:i,b:r,a:n}=this;return new Ii(e,t,i,r,n)}toPremultipliedRenderColor(e){const{r:t,g:i,b:r,a:n}=this;return new Ci(e,t*n,i*n,r*n,n)}clone(){return new Ei(this.r,this.g,this.b,this.a)}}class bi{constructor(e,t,i,r,n,o=!1){if(this.premultiplied=!1,this.premultiplied=o,e){const o=e.image.height,s=o*o;this.premultiplied?(t=0===n?0:t/n*(o-1),i=0===n?0:i/n*(o-1),r=0===n?0:r/n*(o-1)):(t*=o-1,i*=o-1,r*=o-1),t=Math.max(0,Math.min(o-1,t)),i=Math.max(0,Math.min(o-1,i)),r=Math.max(0,Math.min(o-1,r));const a=Math.floor(t),l=Math.floor(i),c=Math.floor(r),h=Math.ceil(t),u=Math.ceil(i),d=Math.ceil(r),f=t-a,p=i-l,A=r-c,g=e.image.data,m=4*(a+l*s+c*o),_=4*(a+l*s+d*o),y=4*(a+u*s+c*o),x=4*(a+u*s+d*o),v=4*(h+l*s+c*o),w=4*(h+l*s+d*o),E=4*(h+u*s+c*o),b=4*(h+u*s+d*o);this.r=vi(vi(vi(g[m],g[_],A),vi(g[y],g[x],A),p),vi(vi(g[v],g[w],A),vi(g[E],g[b],A),p),f)/255*(this.premultiplied?n:1),this.g=vi(vi(vi(g[m+1],g[_+1],A),vi(g[y+1],g[x+1],A),p),vi(vi(g[v+1],g[w+1],A),vi(g[E+1],g[b+1],A),p),f)/255*(this.premultiplied?n:1),this.b=vi(vi(vi(g[m+2],g[_+2],A),vi(g[y+2],g[x+2],A),p),vi(vi(g[v+2],g[w+2],A),vi(g[E+2],g[b+2],A),p),f)/255*(this.premultiplied?n:1),this.a=n}else this.r=t,this.g=i,this.b=r,this.a=n}toArray(){const{r:e,g:t,b:i,a:r}=this;return[255*e,255*t,255*i,r]}toHslaArray(){let{r:e,g:t,b:i,a:r}=this;if(this.premultiplied){if(0===r)return[0,0,0,0];const n=1/r;e*=n,t*=n,i*=n}const n=Math.min(Math.max(e,0),1),o=Math.min(Math.max(t,0),1),s=Math.min(Math.max(i,0),1),a=Math.min(n,o,s),l=Math.max(n,o,s),c=l-a,h=.5*(a+l);if(0===c)return[0,0,100*h,r];const u=h>.5?c/(2-l-a):c/(l+a);let d;switch(l){case n:d=60*((o-s)/c+(o<s?6:0));break;case o:d=60*((s-n)/c+2);break;default:d=60*((n-o)/c+4)}return[d,100*u,100*h,r]}toArray01(){const{r:e,g:t,b:i,a:r}=this;return[e,t,i,r]}toArray01Scaled(e){const{r:t,g:i,b:r}=this;return[t*e,i*e,r*e]}toArray01Linear(){const{r:e,g:t,b:i,a:r}=this;return[Math.pow(e,2.2),Math.pow(t,2.2),Math.pow(i,2.2),r]}}class Ii extends bi{constructor(e,t,i,r,n){super(e,t,i,r,n,!1)}}class Ci extends bi{constructor(e,t,i,r,n){super(e,t,i,r,n,!0)}}function Bi(e,t,i){return e.map((e,r)=>vi(e,t[r],i))}Ei.black=new Ei(0,0,0,1),Ei.white=new Ei(1,1,1,1),Ei.transparent=new Ei(0,0,0,0),Ei.red=new Ei(1,0,0,1),Ei.blue=new Ei(0,0,1,1);var Di=Object.freeze({__proto__:null,array:Bi,color:function(e,t,i){return new Ei(vi(e.r,t.r,i),vi(e.g,t.g,i),vi(e.b,t.b,i),vi(e.a,t.a,i))},number:vi});class Ti extends Error{constructor(e,t){super(t),this.message=t,this.key=e}}class Mi{constructor(e,t=[]){this.parent=e,this.bindings={};for(const[i,r]of t)this.bindings[i]=r}concat(e){return new Mi(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 Qi={kind:"null"},Si={kind:"number"},Pi={kind:"string"},Ri={kind:"boolean"},zi={kind:"color"},Li={kind:"object"},Fi={kind:"value"},Oi={kind:"collator"},ki={kind:"formatted"},Ni={kind:"resolvedImage"};function Ui(e,t){return{kind:"array",itemType:e,N:t}}function Vi(e){if("array"===e.kind){const t=Vi(e.itemType);return"number"==typeof e.N?`array<${t}, ${e.N}>`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}const Hi=[Qi,Si,Pi,Ri,zi,ki,Li,Ui(Fi),Ni];function ji(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!ji(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 Hi)if(!ji(e,t))return null}return`Expected ${Vi(e)} but found ${Vi(t)} instead.`}function Gi(e,t){return t.some(t=>t.kind===e.kind)}function Yi(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 Wi(e,t){return"array"===e.kind&&"array"===t.kind?e.N===t.N&&Wi(e.itemType,t.itemType):e.kind===t.kind}class Ji{constructor(e,t,i){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=i,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 Zi{constructor(e,t,i,r,n){this.text=e.normalize?e.normalize():e,this.image=t,this.scale=i,this.fontStack=r,this.textColor=n}}class qi{constructor(e){this.sections=e}static fromString(e){return new qi([new Zi(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(e=>0!==e.text.length||!!e.image&&e.image.hasPrimary())}static factory(e){return e instanceof qi?e:qi.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){const i=t.image.getPrimary().id.toString();e.push(["image",i]);continue}e.push(t.text);const i={};t.fontStack&&(i["text-font"]=["literal",t.fontStack.split(",")]),t.scale&&(i["font-scale"]=t.scale),t.textColor&&(i["text-color"]=["rgba"].concat(t.textColor.toNonPremultipliedRenderColor(null).toArray())),e.push(i)}return e}}class Ki{constructor(e,t={}){this.id=mi.from(e),this.params=t.params,this.sx=t.sx||1,this.sy=t.sy||
vendor: 4,087 bytes, line 1
11}toString(){return JSON.stringify(this)}static parse(e){let t,i,r,n;try{({id:t,params:i,sx:r,sy:n}=JSON.parse(e)||{})}catch(e){return null}return t?new Ki(t,{params:i,sx:r,sy:n}):null}scaleSelf(e,t=e){return this.sx*=e,this.sy*=t,this}}class Xi{constructor(e,t,i,r,n=!1){this.primaryId=mi.from(e),this.primaryOptions=t,i&&(this.secondaryId=mi.from(i)),this.secondaryOptions=r,this.available=n}toString(){return this.primaryId&&this.secondaryId?`[${this.primaryId.name},${this.secondaryId.name}]`:this.primaryId.name}hasPrimary(){return!!this.primaryId}getPrimary(){return new Ki(this.primaryId,this.primaryOptions)}hasSecondary(){return!!this.secondaryId}getSecondary(){return this.secondaryId?new Ki(this.secondaryId,this.secondaryOptions):null}static from(e){return"string"==typeof e?Xi.build({name:e}):e}static build(e,t,i,r){return!e||"object"==typeof e&&!("name"in e)?null:new Xi(e,i,t,r)}}function $i(e,t,i,r){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof i&&i>=0&&i<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:`Invalid rgba value [${[e,t,i,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof r?[e,t,i,r]:[e,t,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function er(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 Ei)return!0;if(e instanceof Ji)return!0;if(e instanceof qi)return!0;if(e instanceof Xi)return!0;if(Array.isArray(e)){for(const t of e)if(!er(t))return!1;return!0}if("object"==typeof e){for(const t in e)if(!er(e[t]))return!1;return!0}return!1}function tr(e){if(null===e)return Qi;if("string"==typeof e)return Pi;if("boolean"==typeof e)return Ri;if("number"==typeof e)return Si;if(e instanceof Ei)return zi;if(e instanceof Ji)return Oi;if(e instanceof qi)return ki;if(e instanceof Xi)return Ni;if(Array.isArray(e)){const t=e.length;let i;for(const r of e){const e=tr(r);if(i){if(i===e)continue;i=Fi;break}i=e}return Ui(i||Fi,t)}return Li}function ir(e){return null===e?"":"string"==typeof e||"number"==typeof e||"boolean"==typeof e?String(e):e instanceof qi||e instanceof Xi||e instanceof Ei?e.toString():JSON.stringify(e)}class rr{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(!er(e[1]))return t.error("invalid value");const i=e[1];let r=tr(i);const n=t.expectedType;return"array"!==r.kind||0!==r.N||!n||"array"!==n.kind||"number"==typeof n.N&&0!==n.N||(r=n),new rr(r,i)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Ei?["rgba"].concat(this.value.toNonPremultipliedRenderColor(null).toArray()):this.value instanceof qi?this.value.serialize():this.value}}class nr{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}const or={string:Pi,number:Si,boolean:Ri,object:Li};class sr{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 i,r=1;const n=e[0];if("array"===n){let n,o;if(e.length>2){const i=e[1];if("string"!=typeof i||!(i in or)||"object"===i)return t.error('The item type argument of "array" must be one of string, number, boolean',1);n=or[i],r++}else n=Fi;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);o=e[2],r++}i=Ui(n,o)}else i=or[n];const o=[];for(;r<e.length;r++){const i=t.parse(e[r],r,Fi);if(!i)return null;o.push(i)}return new sr(i,o)}evaluate(e){for(let t=0;t<this.args.length;t++){const i=this.args[t].evaluate(e);if(!ji(this.type,tr(i)))return i;if(t===this.args.length-1)throw new nr(`The expression ${JSON.stringify(this.args[t].serialize())} evaluated to ${Vi(tr(i))} but was expected to be of type ${Vi(this.type)}.`)}return null}
vendor: 9,561 bytes, line 1
1eachChild(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 i=e.itemType;if("string"===i.kind||"number"===i.kind||"boolean"===i.kind){t.push(i.kind);const r=e.N;("number"==typeof r||this.args.length>1)&&t.push(r)}}return t.concat(this.args.map(e=>e.serialize()))}}class ar{constructor(e){this.type=ki,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");const i=e[1];if(!Array.isArray(i)&&"object"==typeof i)return t.error("First argument must be an image or text section.");const r=[];let n=!1;for(let o=1;o<=e.length-1;++o){const i=e[o];if(n&&"object"==typeof i&&!Array.isArray(i)){n=!1;let e=null;if(i["font-scale"]&&(e=t.parseObjectValue(i["font-scale"],o,"font-scale",Si),!e))return null;let s=null;if(i["text-font"]&&(s=t.parseObjectValue(i["text-font"],o,"text-font",Ui(Pi)),!s))return null;let a=null;if(i["text-color"]&&(a=t.parseObjectValue(i["text-color"],o,"text-color",zi),!a))return null;const l=r.at(-1);l.scale=e,l.font=s,l.textColor=a}else{const i=t.parse(e[o],o,Fi);if(!i)return null;const s=i.type.kind;if("string"!==s&&"value"!==s&&"null"!==s&&"resolvedImage"!==s)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");n=!0,r.push({content:i,scale:null,font:null,textColor:null})}}return new ar(r)}evaluate(e){return new qi(this.sections.map(t=>{const i=t.content.evaluate(e);return Wi(tr(i),Ni)?new Zi("",i,null,null,null):new Zi(ir(i),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 i={};t.scale&&(i["font-scale"]=t.scale.serialize()),t.font&&(i["text-font"]=t.font.serialize()),t.textColor&&(i["text-color"]=t.textColor.serialize()),e.push(i)}return e}}class lr{constructor(e,t,i,r){this._imageWarnHistory={},this.type=Ni,this.namePrimary=e,this.nameSecondary=t,i&&(this.paramsPrimary=i.params,this.iconsetIdPrimary=i.iconset?i.iconset.id:void 0),r&&(this.paramsSecondary=r.params,this.iconsetIdSecondary=r.iconset?r.iconset.id:void 0)}static parse(e,t){if(e.length<2)return t.error("Expected two or more arguments.");let i=1;const r=[];function n(){if(i<e.length){const n=t.parse(e[i],i++,Pi);return n?(r.push({image:n,options:{}}),!0):(t.error(r.length?"Secondary image variant is not a string.":"No image name provided."),!1)}return!0}function o(){if(i<e.length){const o=e[i];if(null===(n=o)||"object"!=typeof n||Array.isArray(n))return!0;const s=o.params,a=o.iconset,l=t.concat(i);if(!s&&!a)return i++,!0;if(s){if("object"!=typeof s||s.constructor!==Object)return l.error('Image options "params" should be an object'),!1;const e={},t=l.concat(void 0,"params");for(const i in s){if(!i)return t.error("Image parameter name should be non-empty"),!1;const r=t.concat(void 0,i).parse(s[i],void 0,zi,void 0,{typeAnnotation:"coerce"});if(!r)return!1;e[i]=r}r.at(-1).options.params=e}if(a){if("object"!=typeof a||a.constructor!==Object)return l.error('Image options "iconset" should be an object'),!1;if(!a.id)return l.error('Image options "iconset" should have an "id" property'),!1;r.at(-1).options.iconset=a}return i++,!0}var n;return!0}for(let s=0;s<2;s++)if(!n()||!o())return;return new lr(r[0].image,r[1]?r[1].image:void 0,r[0].options,r[1]?r[1].options:void 0)}evaluateParams(e,t){const i={};if(t){for(const r in t)if(t[r])try{i[r]=t[r].evaluate(e)}catch(e){continue}if(0!==Object.keys(i).length)return{params:i}}}evaluate(e){const t={name:this.namePrimary.evaluate(e),iconsetId:this.iconsetIdPrimary},i=this.nameSecondary?{name:this.nameSecondary.evaluate(e),iconsetId:this.iconsetIdSecondary}:void 0,r=Xi.build(t,i,this.paramsPrimary?this.evaluateParams(e,this.paramsPrimary):void 0,this.paramsSecondary?this.evaluateParams(e,this.paramsSecondary):void 0);if(r&&e.availableImages){const t=r.getPrimary().id;if(r.available=e.availableImages.some(e=>mi.isEqual(e,t)),r.available){const t=r.getSecondary()?r.getSecondary().id:null;t&&(r.available=e.availableImages.some(e=>mi.isEqual(e,t)))}}return r}eachChild(e){if(e(this.namePrimary),this.paramsPrimary)for(const t in this.paramsPrimary)this.paramsPrimary[t]&&e(this.paramsPrimary[t]);if(this.nameSecondary&&(e(this.nameSecondary),this.paramsSecondary))for(const t in this.paramsSecondary)this.paramsSecondary[t]&&e(this.paramsSecondary[t])}outputDefined(){return!1}serializeOptions(e,t){const i={};if(t&&(i.iconset={id:t}),e){i.params={};for(const t in e)e[t]&&(i.params[t]=e[t].serialize())}return Object.keys(i).length>0?i:void 0}serialize(){const e=["image",this.namePrimary.serialize()];if(this.paramsPrimary||this.iconsetIdPrimary){const t=this.serializeOptions(this.paramsPrimary,this.iconsetIdPrimary);t&&e.push(t)}if(this.nameSecondary&&(e.push(this.nameSecondary.serialize()),this.paramsSecondary||this.iconsetIdSecondary)){const t=this.serializeOptions(this.paramsSecondary,this.iconsetIdSecondary);t&&e.push(t)}return e}}function cr(e){return ur(e)?"string":dr(e)?"number":fr(e)?"boolean":Array.isArray(e)?"array":null===e?"null":hr(e)?"object":typeof e}function hr(e){return null!=e&&!Array.isArray(e)&&"function"!=typeof e&&!(e instanceof String||e instanceof Number||e instanceof Boolean)&&"object"==typeof e}function ur(e){return"string"==typeof e||e instanceof String}function dr(e){return"number"==typeof e||e instanceof Number}function fr(e){return"boolean"==typeof e||e instanceof Boolean}const pr={"to-boolean":Ri,"to-color":zi,"to-number":Si,"to-string":Pi};class Ar{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 i=e[0],r=[];let n=Qi;if("to-array"===i){if(!Array.isArray(e[1]))return null;const i=e[1].length;if(t.expectedType){if("array"!==t.expectedType.kind)return t.error(`Expected ${t.expectedType.kind} but found array.`);n=Ui(t.expectedType.itemType,i)}else{if(!(i>0&&er(e[1][0])))return null;n=Ui(tr(e[1][0]),i)}for(let o=0;o<i;o++){const i=e[1][o];let s;if(Array.isArray(i))s=t.parse(i,void 0,n.itemType);else{const e=cr(i);if(e!==n.itemType.kind)return t.error(`Expected ${n.itemType.kind} but found ${e}.`);s=t.registry.literal.parse(["literal",void 0===i?null:i],t)}if(!s)return null;r.push(s)}}else{if(("to-boolean"===i||"to-string"===i)&&2!==e.length)return t.error("Expected one argument.");n=pr[i];for(let i=1;i<e.length;i++){const n=t.parse(e[i],i,Fi);if(!n)return null;r.push(n)}}return new Ar(n,r)}evaluate(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){let t,i;for(const r of this.args){if(t=r.evaluate(e),i=null,t instanceof Ei)return t;if("string"==typeof t){const i=e.parseColor(t);if(i)return i}else if(Array.isArray(t)&&(i=t.length<3||t.length>4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:$i(t[0],t[1],t[2],t[3]),!i))return new Ei(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new nr(i||`Could not parse color from value '${"string"==typeof t?t:String(JSON.stringify(t))}'`)}if("number"===this.type.kind){let t=null;for(const i of this.args){if(t=i.evaluate(e),null===t)return 0;const r=Number(t);if(!isNaN(r))return r}throw new nr(`Could not convert ${JSON.stringify(t)} to number.`)}return"formatted"===this.type.kind?qi.fromString(ir(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?Xi.build(ir(this.args[0].evaluate(e))):"array"===this.type.kind?this.args.map(t=>t.evaluate(e)):ir(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 ar([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new lr(this.args[0]).serialize();const e="array"===this.type.kind?[]:[`to-${this.type.kind}`];return this.eachChild(t=>{e.push(t.serialize())}),e}}const gr=["Unknown","Point","LineString","Polygon"];class mr{constructor(e,t,i){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.scope=e,this.options=t,this.iconImageUseTheme=i}id(){return this.feature&&void 0!==this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?gr[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||{}}measureLight(e){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const e=this.featureDistanceData.center,t=this.featureDistanceData.scale,{x:i,y:r}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(i*t-e[0])+this.featureDistanceData.bearing[1]*(r*t-e[1])}return 0}parseColor(e){return Ei.parse(e)}getConfig(e){return this.options?this.options.get(e):null}}class _r{constructor(e,t,i,r,n){this.name=e,this.type=t,this._evaluate=i,this.args=r,this._overloadIndex=n}evaluate(e){if(!this._evaluate){const e=_r.definitions[this.name];this._evaluate=Array.isArray(e)?e[2]:e.overloads[this._overloadIndex][1]}return this._evaluate(e,this.args)}
vendor: 6,511 bytes, line 1
1eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,t){const i=e[0],r=_r.definitions[i];if(!r)return t.error(`Unknown expression "${i}". If you wanted a literal array, use ["literal", [...]].`,0);const n=Array.isArray(r)?r[0]:r.type,o=Array.isArray(r)?[[r[1],r[2]]]:r.overloads,s=[];let a=null,l=-1;for(const[c,h]of o){if(Array.isArray(c)&&c.length!==e.length-1)continue;s.push(c),l++,null===a?a=new Dn(t.registry,t.path,null,t.scope,[],t._scope,t.options,t.iconImageUseTheme):a.errors.length=0;const r=[];let o=!1;for(let t=1;t<e.length;t++){const i=e[t],n=Array.isArray(c)?c[t-1]:c.type,s=a.parse(i,1+r.length,n);if(!s){o=!0;break}r.push(s)}if(!o)if(Array.isArray(c)&&c.length!==r.length)a.error(`Expected ${c.length} arguments, but found ${r.length} instead.`);else{for(let e=0;e<r.length;e++){const t=Array.isArray(c)?c[e]:c.type;a.checkSubtype(t,r[e].type,e+1)}if(0===a.errors.length)return new _r(i,n,h,r,l)}}if(1===s.length)t.errors.push(...a.errors);else{const i=(s.length?s:o.map(([e])=>e)).map(yr).join(" | "),r=[];for(let n=1;n<e.length;n++){const i=t.parse(e[n],1+r.length);if(!i)return null;r.push(Vi(i.type))}t.error(`Expected arguments of type ${i}, but found (${r.join(", ")}) instead.`)}return null}static register(e,t){_r.definitions=t;for(const i in t)e[i]=_r}}function yr(e){return Array.isArray(e)?`(${e.map(Vi).join(", ")})`:`(${Vi(e.type)}...)`}class xr{constructor(e,t,i){this.type=Oi,this.locale=i,this.caseSensitive=e,this.diacriticSensitive=t}static parse(e,t){if(2!==e.length)return t.error("Expected one argument."),null;const i=e[1];if("object"!=typeof i||Array.isArray(i))return t.error("Collator options argument must be an object."),null;const r=void 0===i["case-sensitive"]?t.parse(!1,1,Ri):t.parseObjectValue(i["case-sensitive"],1,"case-sensitive",Ri);if(!r)return null;const n=void 0===i["diacritic-sensitive"]?t.parse(!1,1,Ri):t.parseObjectValue(i["diacritic-sensitive"],1,"diacritic-sensitive",Ri);if(!n)return null;let o=null;return i.locale&&(o=t.parseObjectValue(i.locale,1,"locale",Pi),!o)?null:new xr(r,n,o)}evaluate(e){return new Ji(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]}}function vr(e){return(180+e)/360}function wr(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function Er(e){return 360*e-180}function br(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180))-90}const Ir=8192;function Cr(e,t){const i=vr(e[0]),r=wr(e[1]),n=Math.pow(2,t.z);return[Math.round(i*n*Ir),Math.round(r*n*Ir)]}function Br(e,t){for(let i=0;i<t.length;i++)if(Re(e,t[i]))return!0;return!1}function Dr(e,t,i){for(const r of i)for(let i=0,n=r.length,o=n-1;i<n;o=i++)if(Le(e,t,r[o],r[i]))return!0;return!1}function Tr(e,t){for(let i=0;i<e.length;++i)if(!Re(e[i],t))return!1;for(let i=0;i<e.length-1;++i)if(Dr(e[i],e[i+1],t))return!1;return!0}function Mr(e,t){for(let i=0;i<t.length;i++)if(Tr(e,t[i]))return!0;return!1}function Qr(e,t,i){const r=[];for(let n=0;n<e.length;n++){const o=[];for(let r=0;r<e[n].length;r++){const s=Cr(e[n][r],i);Me(t,s),o.push(s)}r.push(o)}return r}function Sr(e,t,i){const r=[];for(let n=0;n<e.length;n++){const o=Qr(e[n],t,i);r.push(o)}return r}function Pr(e,t,i,r){if(e[0]<i[0]||e[0]>i[2]){const t=.5*r;let n=e[0]-i[0]>t?-r:i[0]-e[0]>t?r:0;0===n&&(n=e[0]-i[2]>t?-r:i[2]-e[0]>t?r:0),e[0]+=n}Me(t,e)}function Rr(e,t,i,r){const n=Math.pow(2,r.z)*Ir,o=[r.x*Ir,r.y*Ir],s=[];if(!e)return s;for(const a of e)for(const e of a){const r=[e.x+o[0],e.y+o[1]];Pr(r,t,i,n),s.push(r)}return s}function zr(e,t,i,r){const n=Math.pow(2,r.z)*Ir,o=[r.x*Ir,r.y*Ir],s=[];if(!e)return s;for(const l of e){const e=[];for(const i of l){const r=[i.x+o[0],i.y+o[1]];Me(t,r),e.push(r)}s.push(e)}if(t[2]-t[0]<=n/2){(a=t)[0]=a[1]=1/0,a[2]=a[3]=-1/0;for(const e of s)for(const r of e)Pr(r,t,i,n)}var a;return s}class Lr{constructor(e,t){this.type=Ri,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(er(e[1])){const t=e[1];if("FeatureCollection"===t.type)for(let e=0;e<t.features.length;++e){const i=t.features[e].geometry.type;if("Polygon"===i||"MultiPolygon"===i)return new Lr(t,t.features[e].geometry)}else if("Feature"===t.type){const e=t.geometry.type;if("Polygon"===e||"MultiPolygon"===e)return new Lr(t,t.geometry)}else if("Polygon"===t.type||"MultiPolygon"===t.type)return new Lr(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 i=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();if(!n)return!1;if("Polygon"===t.type){const o=Qr(t.coordinates,r,n),s=Rr(e.geometry(),i,r,n);if(!Qe(i,r))return!1;for(const e of s)if(!Re(e,o))return!1}if("MultiPolygon"===t.type){const o=Sr(t.coordinates,r,n),s=Rr(e.geometry(),i,r,n);if(!Qe(i,r))return!1;for(const e of s)if(!Br(e,o))return!1}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){const i=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],n=e.canonicalID();if(!n)return!1;if("Polygon"===t.type){const o=Qr(t.coordinates,r,n),s=zr(e.geometry(),i,r,n);if(!Qe(i,r))return!1;for(const e of s)if(!Tr(e,o))return!1}if("MultiPolygon"===t.type){const o=Sr(t.coordinates,r,n),s=zr(e.geometry(),i,r,n);if(!Qe(i,r))return!1;for(const e of s)if(!Mr(e,o))return!1}return!0}(e,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}const Fr={kilometers:1,miles:1e3/1609.344,nauticalmiles:1e3/1852,meters:1e3,metres:1e3,yards:1e3/.9144,feet:1e3/.3048,inches:1e3/.0254},Or=1/298.257223563,kr=Or*(2-Or),Nr=Math.PI/180;class Ur{static fromTile(e,t,i){const r=Math.PI*(1-2*(e+.5)/Math.pow(2,t)),n=Math.atan(.5*(Math.exp(r)-Math.exp(-r)))/Nr;return new Ur(n,i)}static get units(){return Fr}constructor(e,t){if(void 0===e)throw new Error("No latitude given.");if(t&&!Fr[t])throw new Error(`Unknown unit ${t}. Use one of: ${Object.keys(Fr).join(", ")}`);
1const i=6378.137*Nr*(t?Fr[t]:1),r=Math.cos(e*Nr),n=1/(1-kr*(1-r*r)),o=Math.sqrt(n);this.kx=i*o*r,this.ky=i*o*n*(1-kr)}distance(e,t){const i=jr(e[0]-t[0])*this.kx,r=(e[1]-t[1])*this.ky;return Math.sqrt(i*i+r*r)}bearing(e,t){const i=jr(t[0]-e[0])*this.kx;return Math.atan2(i,(t[1]-e[1])*this.ky)/Nr}destination(e,t,i){const r=i*Nr;return this.offset(e,Math.sin(r)*t,Math.cos(r)*t)}offset(e,t,i){return[e[0]+t/this.kx,e[1]+i/this.ky]}lineDistance(e){let t=0;for(let i=0;i<e.length-1;i++)t+=this.distance(e[i],e[i+1]);return t}area(e){let t=0;for(let i=0;i<e.length;i++){const r=e[i];for(let e=0,n=r.length,o=n-1;e<n;o=e++)t+=jr(r[e][0]-r[o][0])*(r[e][1]+r[o][1])*(i?-1:1)}return Math.abs(t)/2*this.kx*this.ky}along(e,t){let i=0;if(t<=0)return e[0];for(let r=0;r<e.length-1;r++){const n=e[r],o=e[r+1],s=this.distance(n,o);if(i+=s,i>t)return Hr(n,o,(t-(i-s))/s)}return e[e.length-1]}pointToSegmentDistance(e,t,i){let[r,n]=t,o=jr(i[0]-r)*this.kx,s=(i[1]-n)*this.ky;if(0!==o||0!==s){const t=(jr(e[0]-r)*this.kx*o+(e[1]-n)*this.ky*s)/(o*o+s*s);t>1?(r=i[0],n=i[1]):t>0&&(r+=o/this.kx*t,n+=s/this.ky*t)}return o=jr(e[0]-r)*this.kx,s=(e[1]-n)*this.ky,Math.sqrt(o*o+s*s)}pointOnLine(e,t){let i=1/0,r=e[0][0],n=e[0][1],o=0,s=0;for(let a=0;a<e.length-1;a++){let l=e[a][0],c=e[a][1],h=jr(e[a+1][0]-l)*this.kx,u=(e[a+1][1]-c)*this.ky,d=0;0===h&&0===u||(d=(jr(t[0]-l)*this.kx*h+(t[1]-c)*this.ky*u)/(h*h+u*u),d>1?(l=e[a+1][0],c=e[a+1][1]):d>0&&(l+=h/this.kx*d,c+=u/this.ky*d)),h=jr(t[0]-l)*this.kx,u=(t[1]-c)*this.ky;const f=h*h+u*u;f<i&&(i=f,r=l,n=c,o=a,s=d)}return{point:[r,n],index:o,t:Math.max(0,Math.min(1,s))}}lineSlice(e,t,i){let r=this.pointOnLine(i,e),n=this.pointOnLine(i,t);if(r.index>n.index||r.index===n.index&&r.t>n.t){const e=r;r=n,n=e}const o=[r.point],s=r.index+1,a=n.index;!Vr(i[s],o[0])&&s<=a&&o.push(i[s]);for(let l=s+1;l<=a;l++)o.push(i[l]);return Vr(i[a],n.point)||o.push(n.point),o}lineSliceAlong(e,t,i){let r=0;const n=[];for(let o=0;o<i.length-1;o++){const s=i[o],a=i[o+1],l=this.distance(s,a);if(r+=l,r>e&&0===n.length&&n.push(Hr(s,a,(e-(r-l))/l)),r>=t)return n.push(Hr(s,a,(t-(r-l))/l)),n;r>e&&n.push(a)}return n}bufferPoint(e,t){const i=t/this.ky,r=t/this.kx;return[e[0]-r,e[1]-i,e[0]+r,e[1]+i]}bufferBBox(e,t){const i=t/this.ky,r=t/this.kx;return[e[0]-r,e[1]-i,e[2]+r,e[3]+i]}insideBBox(e,t){return jr(e[0]-t[0])>=0&&jr(e[0]-t[2])<=0&&e[1]>=t[1]&&e[1]<=t[3]}}function Vr(e,t){return e[0]===t[0]&&e[1]===t[1]}function Hr(e,t,i){const r=jr(t[0]-e[0]);return[e[0]+r*i,e[1]+(t[1]-e[1])*i]}function jr(e){for(;e<-180;)e+=360;for(;e>180;)e-=360;return e}class Gr{constructor(e=[],t=(e,t)=>e<t?-1:e>t?1:0){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let i=(this.length>>1)-1;i>=0;i--)this._down(i)}push(e){this.data.push(e),this._up(this.length++)}pop(){if(0===this.length)return;const e=this.data[0],t=this.data.pop();return--this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:t,compare:i}=this,r=t[e];for(;e>0;){const n=e-1>>1,o=t[n];if(i(r,o)>=0)break;t[e]=o,e=n}t[e]=r}_down(e){const{data:t,compare:i}=this,r=this.length>>1,n=t[e];for(;e<r;){let r=1+(e<<1);const o=r+1;if(o<this.length&&i(t[o],t[r])<0&&(r=o),i(t[r],n)>=0)break;t[e]=t[r],e=r}t[e]=n}}var Yr=8192;function Wr(e,t){return t.dist-e.dist}function Jr(e){const t=[1/0,1/0,-1/0,-1/0];if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!==e[i])return!1;return!0}function Zr(e){return e[1]-e[0]+1}function qr(e,t){const i=e[1]>=e[0]&&e[1]<t;return i||console.warn("Distance Expression: Index is out of range"),i}function Kr(e,t){if(e[0]>e[1])return[null,null];const i=Zr(e);if(t){if(2===i)return[e,null];const t=Math.floor(i/2);return[[e[0],e[0]+t],[e[0]+t,e[1]]]}{if(1===i)return[e,null];const t=Math.floor(i/2)-1;return[[e[0],e[0]+t],[e[0]+t+1,e[1]]]}}function Xr(e,t){const i=[1/0,1/0,-1/0,-1/0];if(!qr(t,e.length))return i;for(let r=t[0];r<=t[1];++r)Me(i,e[r]);return i}function $r(e){const t=[1/0,1/0,-1/0,-1/0];for(let i=0;i<e.length;++i)for(let r=0;r<e[i].length;++r)Me(t,e[i][r]);return t}function en(e,t,i){if(Jr(e)||Jr(t))return NaN;let r=0,n=0;return e[2]<t[0]&&(r=t[0]-e[2]),e[0]>t[2]&&(r=e[0]-t[2]),e[1]>t[3]&&(n=e[1]-t[3]),e[3]<t[1]&&(n=t[1]-e[3]),i.distance([0,0],[r,n])}function tn(e,t,i=8192){const r=Math.pow(2,t.z),n=(e.y/i+t.y)/r;return[Er((e.x/i+t.x)/r),br(n)]}function rn(e,t){const i=[];for(let r=0;r<e.length;++r)i.push(tn(e[r],t));return i}function nn(e,t,i){const r=i.pointOnLine(t,e).point;return i.distance(e,r)}function on(e,t,i,r,n){const o=i.slice(r[0],r[1]+1);let s=1/0;for(let a=t[0];a<=t[1];++a)if(0===(s=Math.min(s,nn(e[a],o,n))))return 0;return s}function sn(e,t,i,r,n){const o=Math.min(n.pointToSegmentDistance(e,i,r),n.pointToSegmentDistance(t,i,r)),s=Math.min(n.pointToSegmentDistance(i,e,t),n.pointToSegmentDistance(r,e,t));return Math.min(o,s)}function an(e,t,i,r,n){if(!qr(t,e.length)||!qr(r,i.length))return NaN;let o=1/0;for(let s=t[0];s<t[1];++s)for(let t=r[0];t<r[1];++t){if(Le(e[s],e[s+1],i[t],i[t+1]))return 0;o=Math.min(o,sn(e[s],e[s+1],i[t],i[t+1],n))}return o}function ln(e,t,i,r,n){if(!qr(t,e.length)||!qr(r,i.length))return NaN;let o=1/0;for(let s=t[0];s<=t[1];++s)for(let t=r[0];t<=r[1];++t)if(0===(o=Math.min(o,n.distance(e[s],i[t]))))return o;return o}function cn(e,t,i){if(Re(e,t,!0))return 0;let r=1/0;for(const n of t){const t=n.length;if(t<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(n[0]!==n[t-1]&&0===(r=Math.min(r,i.pointToSegmentDistance(e,n[t-1],n[0]))))return r;if(0===(r=Math.min(r,nn(e,n,i))))return r}return r}function hn(e,t,i,r){if(!qr(t,e.length))return NaN;for(let o=t[0];o<=t[1];++o)if(Re(e[o],i,!0))return 0;let n=1/0;for(let o=t[0];o<t[1];++o)for(const t of i)for(let i=0,s=t.length,a=s-1;i<s;a=i++){if(Le(e[o],e[o+1],t[a],t[i]))return 0;n=Math.min(n,sn(e[o],e[o+1],t[a],t[i],r))}return n}function un(e,t){for(const i of e)for(let e=0;e<=i.length-1;++e)if(Re(i[e],t,!0))return!0;return!1}function dn(e,t,i,r=1/0){const n=$r(e),o=$r(t);if(r!==1/0&&en(n,o,i)>=r)return r;
1if(Qe(n,o)){if(un(e,t))return 0}else if(un(t,e))return 0;let s=r;for(const a of e)for(let e=0,r=a.length,n=r-1;e<r;n=e++)for(const o of t)for(let t=0,r=o.length,l=r-1;t<r;l=t++){if(Le(a[n],a[e],o[l],o[t]))return 0;s=Math.min(s,sn(a[n],a[e],o[l],o[t],i))}return s}function fn(e,t,i,r,n,o,s){if(null===o||null===s)return;const a=en(Xr(r,o),Xr(n,s),i);a<t&&e.push({dist:a,range1:o,range2:s})}function pn(e,t,i,r,n=1/0){let o=Math.min(r.distance(e[0],i[0][0]),n);if(0===o)return o;const s=new Gr([{dist:0,range1:[0,e.length-1],range2:[0,0]}],Wr),a=t?50:100,l=$r(i);for(;s.length;){const n=s.pop();if(n.dist>=o)continue;const c=n.range1;if(Zr(c)<=a){if(!qr(c,e.length))return NaN;if(t){const t=hn(e,c,i,r);if(0===(o=Math.min(o,t)))return o}else for(let t=c[0];t<=c[1];++t){const n=cn(e[t],i,r);if(0===(o=Math.min(o,n)))return o}}else{const i=Kr(c,t);if(null!==i[0]){const t=en(Xr(e,i[0]),l,r);t<o&&s.push({dist:t,range1:i[0],range2:[0,0]})}if(null!==i[1]){const t=en(Xr(e,i[1]),l,r);t<o&&s.push({dist:t,range1:i[1],range2:[0,0]})}}}return o}function An(e,t,i,r,n,o=1/0){let s=Math.min(o,n.distance(e[0],i[0]));if(0===s)return s;const a=new Gr([{dist:0,range1:[0,e.length-1],range2:[0,i.length-1]}],Wr),l=t?50:100,c=r?50:100;for(;a.length;){const o=a.pop();if(o.dist>=s)continue;const h=o.range1,u=o.range2;if(Zr(h)<=l&&Zr(u)<=c){if(!qr(h,e.length)||!qr(u,i.length))return NaN;if(t&&r?s=Math.min(s,an(e,h,i,u,n)):t||r?t&&!r?s=Math.min(s,on(i,u,e,h,n)):!t&&r&&(s=Math.min(s,on(e,h,i,u,n))):s=Math.min(s,ln(e,h,i,u,n)),0===s)return s}else{const o=Kr(h,t),l=Kr(u,r);fn(a,s,n,e,i,o[0],l[0]),fn(a,s,n,e,i,o[0],l[1]),fn(a,s,n,e,i,o[1],l[0]),fn(a,s,n,e,i,o[1],l[1])}}return s}function gn(e,t,i,r,n=1/0){let o=n;const s=Xr(e,[0,e.length-1]);for(const a of i)if(!(o!==1/0&&en(s,Xr(a,[0,a.length-1]),r)>=o)&&(o=Math.min(o,An(e,t,a,!0,r,o)),0===o))return o;return o}function mn(e,t,i,r,n=1/0){let o=n;const s=Xr(e,[0,e.length-1]);for(const a of i){if(o!==1/0&&en(s,$r(a),r)>=o)continue;const i=pn(e,t,a,r,o);if(isNaN(i))return i;if(0===(o=Math.min(o,i)))return o}return o}function _n(e){return"Point"===e||"MultiPoint"===e||"LineString"===e||"MultiLineString"===e||"Polygon"===e||"MultiPolygon"===e}class yn{constructor(e,t){this.type=Si,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'distance' expression requires either one argument, but found ' ${e.length-1} instead.`);if(er(e[1])){const t=e[1];if("FeatureCollection"===t.type){for(let e=0;e<t.features.length;++e)if(_n(t.features[e].geometry.type))return new yn(t,t.features[e].geometry)}else if("Feature"===t.type){if(_n(t.geometry.type))return new yn(t,t.geometry)}else if(_n(t.type))return new yn(t,t)}return t.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(e){const t=e.geometry(),i=e.canonicalID();if(null!=t&&null!=i){if("Point"===e.geometryType())return function(e,t,i){const r=[];for(const o of e)for(const e of o)r.push(tn(e,t));const n=new Ur(r[0][1],"meters");return"Point"===i.type||"MultiPoint"===i.type||"LineString"===i.type?An(r,!1,"Point"===i.type?[i.coordinates]:i.coordinates,"LineString"===i.type,n):"MultiLineString"===i.type?gn(r,!1,i.coordinates,n):"Polygon"===i.type||"MultiPolygon"===i.type?mn(r,!1,"Polygon"===i.type?[i.coordinates]:i.coordinates,n):null}(t,i,this.geometries);if("LineString"===e.geometryType())return function(e,t,i){const r=[];for(const o of e){const e=[];for(const i of o)e.push(tn(i,t));r.push(e)}const n=new Ur(r[0][0][1],"meters");if("Point"===i.type||"MultiPoint"===i.type||"LineString"===i.type)return gn("Point"===i.type?[i.coordinates]:i.coordinates,"LineString"===i.type,r,n);if("MultiLineString"===i.type){let e=1/0;for(let t=0;t<i.coordinates.length;t++){const o=gn(i.coordinates[t],!0,r,n,e);if(isNaN(o))return o;if(0===(e=Math.min(e,o)))return e}return e}if("Polygon"===i.type||"MultiPolygon"===i.type){let e=1/0;for(let t=0;t<r.length;t++){const o=mn(r[t],!0,"Polygon"===i.type?[i.coordinates]:i.coordinates,n,e);if(isNaN(o))return o;if(0===(e=Math.min(e,o)))return e}return e}return null}(t,i,this.geometries);if("Polygon"===e.geometryType())return function(e,t,i){const r=[];for(const o of Te(e,0)){const e=[];for(let i=0;i<o.length;++i)e.push(rn(o[i],t));r.push(e)}const n=new Ur(r[0][0][0][1],"meters");if("Point"===i.type||"MultiPoint"===i.type||"LineString"===i.type)return mn("Point"===i.type?[i.coordinates]:i.coordinates,"LineString"===i.type,r,n);if("MultiLineString"===i.type){let e=1/0;for(let t=0;t<i.coordinates.length;t++){const o=mn(i.coordinates[t],!0,r,n,e);if(isNaN(o))return o;if(0===(e=Math.min(e,o)))return e}return e}
1return"Polygon"===i.type||"MultiPolygon"===i.type?function(e,t,i){let r=1/0;for(const n of e)for(const e of t){const t=dn(n,e,i,r);if(isNaN(t))return t;if(0===(r=Math.min(r,t)))return r}return r}("Polygon"===i.type?[i.coordinates]:i.coordinates,r,n):null}(t,i,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requires valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}function xn(e){if(e instanceof _r){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(e.name.startsWith("filter-"))return!1}if(e instanceof Lr)return!1;if(e instanceof yn)return!1;if(e instanceof Cn)return e.featureConstant;let t=!0;return e.eachChild(e=>{t&&!xn(e)&&(t=!1)}),t}function vn(e){if(e instanceof _r&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild(e=>{t&&!vn(e)&&(t=!1)}),t}function wn(e,t){if(e instanceof _r&&t.includes(e.name))return!1;let i=!0;return e.eachChild(e=>{i&&!wn(e,t)&&(i=!1)}),i}function En(e,t,i){return[e,t,i].filter(Boolean).join("�")}function bn(e,t){switch(e){case"string":return ir(t);case"number":return+t;case"boolean":return!!t;case"color":return Ei.parse(t);case"formatted":return qi.fromString(ir(t));case"resolvedImage":return Xi.build(ir(t))}return t}function In(e,t,i,r){return void 0!==r&&(e=r*Math.round(e/r)),void 0!==t&&e<t&&(e=t),void 0!==i&&e>i&&(e=i),e}class Cn{constructor(e,t,i,r=!1){this.type=e,this.key=t,this.scope=i,this.featureConstant=r}static parse(e,t){let i=t.expectedType;if(null==i&&(i=Fi),e.length<2||e.length>3)return t.error("Invalid number of arguments for 'config' expression.");const r=t.parse(e[1],1);if(!(r instanceof rr))return t.error("Key name of 'config' expression must be a string literal.");let n,o=!0;const s=ir(r.value);if(e.length>=3){const i=t.parse(e[2],2);if(!(i instanceof rr))return t.error("Scope of 'config' expression must be a string literal.");n=ir(i.value)}if(t.options){const e=En(s,n,t._scope),i=t.options.get(e);i&&(o=xn(i.value||i.default))}return new Cn(i,s,n,o)}evaluate(e){const t=En(this.key,this.scope,e.scope),i=e.getConfig(t);if(!i)return null;const{type:r,value:n,values:o,minValue:s,maxValue:a,stepValue:l}=i,c=i.default.evaluate(e);let h=c;if(n){const t=e.scope;e.scope=(t||"").split("�").slice(1).join("�"),h=n.evaluate(e),e.scope=t}return r&&(h=bn(r,h)),void 0===h||void 0===s&&void 0===a&&void 0===l||("number"==typeof h?h=In(h,s,a,l):Array.isArray(h)&&(h=h.map(e=>"number"==typeof e?In(e,s,a,l):e))),void 0!==n&&void 0!==h&&o&&!o.includes(h)&&(h=c,r&&(h=bn(r,h))),(r&&r!==this.type||void 0!==h&&!Wi(tr(h),this.type))&&(h=bn(this.type.kind,h)),h}eachChild(){}outputDefined(){return!1}serialize(){const e=["config",this.key];return this.scope&&e.concat(this.scope),e}}class Bn{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 i=e[1];return t.scope.has(i)?new Bn(i,t.scope.get(i)):t.error(`Unknown variable "${i}". Make sure "${i}" 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 Dn{constructor(e,t=[],i,r=new Mi,n=[],o,s,a){this.registry=e,this.path=t,this.scope=r,this.errors=n,this.expectedType=i,this._scope=o,this.options=s,this.iconImageUseTheme=a}get key(){if(void 0===this._key){const e=this.path;let t="";for(let i=0;i<e.length;i++){const r=e[i];t+="string"==typeof r?`['${r}']`:`[${r}]`}this._key=t}return this._key}parse(e,t,i,r,n={}){return t||i?this.concat(t,null,i,r)._parse(e,n):this._parse(e,n)}parseObjectValue(e,t,i,r,n,o={}){return this.concat(t,i,r,n)._parse(e,o)}_parse(e,t){function i(e,t,i){return"assert"===i?new sr(t,[e]):"coerce"===i?new Ar(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 r="string"==typeof e[0]?this.registry[e[0]]:void 0;if(r){let n=r.parse(e,this);if(!n)return null;if(this.expectedType){const e=this.expectedType,r=n.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 n=i(n,e,t.typeAnnotation||"coerce");else n=i(n,e,t.typeAnnotation||"assert")}if(!(n instanceof rr)&&"resolvedImage"!==n.type.kind&&Tn(n)){const t=new mr(this._scope,this.options,this.iconImageUseTheme);try{n=new rr(n.type,n.evaluate(t))}catch(e){return this.error(e.message),null}}return n}return Ar.parse(["to-array",e],this)}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,i,r){let n="number"==typeof e?this.path.concat(e):this.path;
vendor: 5,712 bytes, line 1
1n="string"==typeof t?n.concat(t):n;const o=r?this.scope.concat(r):this.scope;return new Dn(this.registry,n,i||null,o,this.errors,this._scope,this.options,this.iconImageUseTheme)}error(e,...t){const i=`${this.key}${t.map(e=>`[${e}]`).join("")}`;this.errors.push(new Ti(i,e))}checkSubtype(e,t,i){const r=ji(e,t);return r&&this.error(r,..."number"==typeof i?[i]:[]),r}}function Tn(e){if(e instanceof Bn)return Tn(e.boundExpression);if(e instanceof _r&&"error"===e.name)return!1;if(e instanceof xr)return!1;if(e instanceof Lr)return!1;if(e instanceof yn)return!1;if(e instanceof Cn)return!1;const t=e instanceof Ar||e instanceof sr;let i=!0;return e.eachChild(e=>{i=t?i&&Tn(e):i&&e instanceof rr}),!!i&&xn(e)&&wn(e,["zoom","heatmap-density","worldview","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed","is-active-floor"])}function Mn(e,t){const i=e.length-1;let r,n,o=0,s=i,a=0;for(;o<=s;)if(a=Math.floor((o+s)/2),r=e[a],n=e[a+1],r<=t){if(a===i||t<n)return a;o=a+1}else{if(!(r>t))throw new nr("Input is not a number.");s=a-1}return 0}class Qn{constructor(e,t,i){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(const[r,n]of i)this.labels.push(r),this.outputs.push(n)}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 i=t.parse(e[1],1,Si);if(!i)return null;const r=[];let n=null;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);for(let o=1;o<e.length;o+=2){const i=1===o?-1/0:e[o],s=e[o+1],a=o,l=o+1;if("number"!=typeof i)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',a);if(r.length&&r.at(-1)[0]>=i)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',a);const c=t.parse(s,l,n);if(!c)return null;n=n||c.type,r.push([i,c])}return new Qn(n,i,r)}evaluate(e){const t=this.labels,i=this.outputs;if(1===t.length)return i[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return i[0].evaluate(e);const n=t.length;return r>=t[n-1]?i[n-1].evaluate(e):i[Mn(t,r)].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}}const Sn=.95047,Pn=1.08883,Rn=4/29,zn=6/29,Ln=3*zn*zn,Fn=zn*zn*zn,On=Math.PI/180,kn=180/Math.PI;function Nn(e){return e>Fn?Math.pow(e,1/3):e/Ln+Rn}function Un(e){return e>zn?e*e*e:Ln*(e-Rn)}function Vn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Hn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function jn(e){const t=Hn(e.r),i=Hn(e.g),r=Hn(e.b),n=Nn((.4124564*t+.3575761*i+.1804375*r)/Sn),o=Nn((.2126729*t+.7151522*i+.072175*r)/1);return{l:116*o-16,a:500*(n-o),b:200*(o-Nn((.0193339*t+.119192*i+.9503041*r)/Pn)),alpha:e.a}}function Gn(e){let t=(e.l+16)/116,i=isNaN(e.a)?t:t+e.a/500,r=isNaN(e.b)?t:t-e.b/200;return t=1*Un(t),i=Sn*Un(i),r=Pn*Un(r),new Ei(Vn(3.2404542*i-1.5371385*t-.4985314*r),Vn(-.969266*i+1.8760108*t+.041556*r),Vn(.0556434*i-.2040259*t+1.0572252*r),e.alpha)}function Yn(e,t,i){const r=t-e;return e+i*(r>180||r<-180?r-360*Math.round(r/360):r)}const Wn={forward:jn,reverse:Gn,interpolate:function(e,t,i){return{l:vi(e.l,t.l,i),a:vi(e.a,t.a,i),b:vi(e.b,t.b,i),alpha:vi(e.alpha,t.alpha,i)}}},Jn={forward:function(e){const{l:t,a:i,b:r}=jn(e),n=Math.atan2(r,i)*kn;return{h:n<0?n+360:n,c:Math.sqrt(i*i+r*r),l:t,alpha:e.a}},reverse:function(e){const t=e.h*On,i=e.c;return Gn({l:e.l,a:Math.cos(t)*i,b:Math.sin(t)*i,alpha:e.alpha})},interpolate:function(e,t,i){return{h:Yn(e.h,t.h,i),c:vi(e.c,t.c,i),l:vi(e.l,t.l,i),alpha:vi(e.alpha,t.alpha,i)}}};var Zn=Object.freeze({__proto__:null,hcl:Jn,lab:Wn});class qn{constructor(e,t,i,r,n){this.type=e,this.operator=t,this.interpolation=i,this.input=r,this.labels=[],this.outputs=[];for(const[o,s]of n)this.labels.push(o),this.outputs.push(s)}static interpolationFactor(e,t,i,r){let n=0;if("exponential"===e.name)n=Kn(t,e.base,i,r);else if("linear"===e.name)n=Kn(t,1,i,r);else if("cubic-bezier"===e.name){const o=e.controlPoints;n=ve(o[0],o[1],o[2],o[3])(Kn(t,1,i,r))}return n}static parse(e,t){let[i,r,n,...o]=e;if(!Array.isArray(r)||0===r.length)return t.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){const e=r[1];if("number"!=typeof e)return t.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:e}}else{if("cubic-bezier"!==r[0])return t.error(`Unknown interpolation type ${String(r[0])}`,1,0);{const e=r.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);r={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>3&&(e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(n=t.parse(n,2,Si),!n)return null;const s=[];let a=null;"interpolate-hcl"===i||"interpolate-lab"===i?a=zi:t.expectedType&&"value"!==t.expectedType.kind&&(a=t.expectedType);for(let l=0;l<o.length;l+=2){const e=o[l],i=o[l+1],r=l+3,n=l+4;if("number"!=typeof e)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not c
1omputed expressions) for the input values.',r);if(s.length&&s.at(-1)[0]>=e)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',r);const c=t.parse(i,n,a);if(!c)return null;a=a||c.type,s.push([e,c])}return"number"===a.kind||"color"===a.kind||"array"===a.kind&&"number"===a.itemType.kind&&"number"==typeof a.N?new qn(a,i,r,n,s):t.error(`Type ${Vi(a)} is not interpolatable.`)}evaluate(e){const t=this.labels,i=this.outputs;if(1===t.length)return i[0].evaluate(e);const r=this.input.evaluate(e);if(r<=t[0])return i[0].evaluate(e);const n=t.length;if(r>=t[n-1])return i[n-1].evaluate(e);const o=Mn(t,r),s=qn.interpolationFactor(this.interpolation,r,t[o],t[o+1]),a=i[o].evaluate(e),l=i[o+1].evaluate(e);return"interpolate"===this.operator?Di[this.type.kind.toLowerCase()](a,l,s):"interpolate-hcl"===this.operator?Jn.reverse(Jn.interpolate(Jn.forward(a),Jn.forward(l),s)):Wn.reverse(Wn.interpolate(Wn.forward(a),Wn.forward(l),s))}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",...this.interpolation.controlPoints];const t=[this.operator,e,this.input.serialize()];for(let i=0;i<this.labels.length;i++)t.push(this.labels[i],this.outputs[i].serialize());return t}}function Kn(e,t,i,r){const n=r-i,o=e-i;return 0===n?0:1===t?o/n:(Math.pow(t,o)-1)/(Math.pow(t,n)-1)}class Xn{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."),null;let i=null;const r=t.expectedType;r&&"value"!==r.kind&&(i=r);const n=[];for(const s of e.slice(1)){const e=t.parse(s,1+n.length,i,void 0,{typeAnnotation:"omit"});if(!e)return null;i=i||e.type,n.push(e)}const o=r&&n.some(e=>ji(r,e.type));return new Xn(o?Fi:i,n)}evaluate(e){let t,i=null,r=0;for(const n of this.args){if(r++,i=n.evaluate(e),i&&i instanceof Xi&&!i.available&&(t||(t=i),i=null,r===this.args.length))return t;if(null!==i)break}return i}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}}const $n=/[^a-zA-Z0-9_]/;class eo{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 i=[];for(let n=1;n<e.length-1;n+=2){const r=e[n];if("string"!=typeof r)return t.error(`Expected string, but found ${typeof r} instead.`,n);if($n.test(r))return t.error("Variable names must contain only alphanumeric characters or '_'.",n);const o=t.parse(e[n+1],n+1);if(!o)return null;i.push([r,o])}const r=t.parse(e.at(-1),e.length-1,t.expectedType,i);return r?new eo(i,r):null}outputDefined(){return this.result.outputDefined()}serialize(){const e=["let"];for(const[t,i]of this.bindings)e.push(t,i.serialize());return e.push(this.result.serialize()),e}}class to{constructor(e,t,i){this.type=e,this.index=t,this.input=i}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,Si),r=t.parse(e[2],2,Ui(t.expectedType||Fi));return i&&r?new to(r.type.itemType,i,r):null}evaluate(e){const t=this.index.evaluate(e),i=this.input.evaluate(e);if(t<0)throw new nr("Array index out of bounds: negative index");if(t>=i.length)throw new nr("Array index out of bounds: index exceeds array size");if(t!==Math.floor(t))throw new nr("Array index must be an integer. Use at-interpolated for fractional indices");return i[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}class io{constructor(e,t,i){this.type=e,this.index=t,this.input=i}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,Si),r=t.parse(e[2],2,Ui(t.expectedType||Fi));return i&&r?new io(r.type.itemType,i,r):null}evaluate(e){const t=this.index.evaluate(e),i=this.input.evaluate(e);if(t<0)throw new nr(`Array index out of bounds: ${t} < 0.`);if(t>i.length-1)throw new nr(`Array index out of bounds: ${t} > ${i.length-1}.`);if(t===Math.floor(t))return i[t];const r=Math.floor(t),n=Math.ceil(t),o=i[r],s=i[n];if("number"!=typeof o||"number"!=typeof s)throw new nr(`Cannot interpolate between non-number values at index ${t}.`);return vi(o,s,t-r)}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at-interpolated",this.index.serialize(),this.input.serialize()]}}class ro{constructor(e,t){this.type=Ri,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.`),null;const i=t.parse(e[1],1,Fi),r=t.parse(e[2],2,Fi);return i&&r?Gi(i.type,[Ri,Pi,Si,Qi,Fi])?new ro(i,r):(t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Vi(i.type)} instead`),null):null}evaluate(e){const t=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(null==i)return!1;if(!Yi(t,["boolean","string","number","null"]))throw new nr(`Expected first argument to be of type boolean, string, number or null, but found ${Vi(tr(t))} instead.`);if(!Yi(i,["string","array"]))throw new nr(`Expected second argument to be of type array or string, but found ${Vi(tr(i))} instead.`);return i.includes(t)}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}class no{constructor(e,t,i){this.type=Si,this.needle=e,this.haystack=t,this.fromIndex=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.`),null;const i=t.parse(e[1],1,Fi),r=t.parse(e[2],2,Fi);if(!i||!r)return null;
1if(!Gi(i.type,[Ri,Pi,Si,Qi,Fi]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${Vi(i.type)} instead`),null;if(4===e.length){const n=t.parse(e[3],3,Si);return n?new no(i,r,n):null}return new no(i,r)}evaluate(e){const t=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!Yi(t,["boolean","string","number","null"]))throw new nr(`Expected first argument to be of type boolean, string, number or null, but found ${Vi(tr(t))} instead.`);if(!Yi(i,["string","array"]))throw new nr(`Expected second argument to be of type array or string, but found ${Vi(tr(i))} instead.`);if(this.fromIndex){const r=this.fromIndex.evaluate(e);return i.indexOf(t,r)}return i.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 oo{constructor(e,t,i,r,n,o){this.inputType=e,this.type=t,this.input=i,this.cases=r,this.outputs=n,this.otherwise=o}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 i,r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);const n={},o=[];for(let l=2;l<e.length-1;l+=2){let s=e[l];const a=e[l+1];Array.isArray(s)||(s=[s]);const c=t.concat(l);if(0===s.length)return c.error("Expected at least one branch label.");for(const e of s){if("number"!=typeof e&&"string"!=typeof e)return c.error("Branch labels must be numbers or strings.");if("number"==typeof e&&Math.abs(e)>Number.MAX_SAFE_INTEGER)return c.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return c.error("Numeric branch labels must be integer values.");if(i){if(c.checkSubtype(i,tr(e)))return null}else i=tr(e);if(void 0!==n[String(e)])return c.error("Branch labels must be unique.");n[String(e)]=o.length}const h=t.parse(a,l,r);if(!h)return null;r=r||h.type,o.push(h)}const s=t.parse(e[1],1,Fi);if(!s)return null;const a=t.parse(e.at(-1),e.length-1,r);return a?"value"!==s.type.kind&&t.concat(1).checkSubtype(i,s.type)?null:new oo(i,r,s,n,o,a):null}evaluate(e){const t=this.input.evaluate(e);return(Wi(tr(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(),i=[],r={};for(const o of t){const e=r[this.cases[o]];void 0===e?(r[this.cases[o]]=i.length,i.push([this.cases[o],[o]])):i[e][1].push(o)}const n=e=>"number"===this.inputType.kind?Number(e):e;for(const[o,s]of i)e.push(1===s.length?n(s[0]):s.map(n)),e.push(this.outputs[o].serialize());return e.push(this.otherwise.serialize()),e}}class so{constructor(e,t,i){this.type=e,this.branches=t,this.otherwise=i}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`),null;if(e.length%2!=0)return t.error("Expected an odd number of arguments."),null;let i;t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);const r=[];for(let o=1;o<e.length-1;o+=2){const n=t.parse(e[o],o,Ri);if(!n)return null;const s=t.parse(e[o+1],o+1,i);if(!s)return null;r.push([n,s]),i=i||s.type}const n=t.parse(e.at(-1),e.length-1,i);return n?new so(i,r,n):null}evaluate(e){for(const[t,i]of this.branches)if(t.evaluate(e))return i.evaluate(e);return this.otherwise.evaluate(e)}eachChild(e){for(const[t,i]of this.branches)e(t),e(i);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 ao{constructor(e,t,i,r){this.type=e,this.input=t,this.beginIndex=i,this.endIndex=r}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.`),null;const i=t.parse(e[1],1,Fi),r=t.parse(e[2],2,Si);if(!i||!r)return null;
vendor: 10,185 bytes, line 1
1if(!Gi(i.type,[Ui(Fi),Pi,Fi]))return t.error(`Expected first argument to be of type array or string, but found ${Vi(i.type)} instead`),null;if(4===e.length){const n=t.parse(e[3],3,Si);return n?new ao(i.type,i,r,n):null}return new ao(i.type,i,r)}evaluate(e){const t=this.input.evaluate(e),i=this.beginIndex.evaluate(e);if(!Yi(t,["string","array"]))throw new nr(`Expected first argument to be of type array or string, but found ${Vi(tr(t))} instead.`);if(this.endIndex){const r=this.endIndex.evaluate(e);return t.slice(i,r)}return t.slice(i)}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()]}}class lo{constructor(e,t){this.type=Ui(Pi),this.str=e,this.delimiter=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const i=t.parse(e[1],1,Pi),r=t.parse(e[2],2,Pi);return i&&r?new lo(i,r):void 0}evaluate(e){const t=this.str.evaluate(e),i=this.delimiter.evaluate(e);return t.split(i)}eachChild(e){e(this.str),e(this.delimiter)}outputDefined(){return!1}serialize(){return["split",this.str.serialize(),this.delimiter.serialize()]}}function co(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 ho(e,t,i,r){return 0===r.compare(t,i)}function uo(e,t,i){const r="=="!==e&&"!="!==e;return class n{constructor(e,t,i){this.type=Ri,this.lhs=e,this.rhs=t,this.collator=i,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 i=e[0];let o=t.parse(e[1],1,Fi);if(!o)return null;if(!co(i,o.type))return t.concat(1).error(`"${i}" comparisons are not supported for type '${Vi(o.type)}'.`);let s=t.parse(e[2],2,Fi);if(!s)return null;if(!co(i,s.type))return t.concat(2).error(`"${i}" comparisons are not supported for type '${Vi(s.type)}'.`);if(o.type.kind!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return t.error(`Cannot compare types '${Vi(o.type)}' and '${Vi(s.type)}'.`);r&&("value"===o.type.kind&&"value"!==s.type.kind?o=new sr(s.type,[o]):"value"!==o.type.kind&&"value"===s.type.kind&&(s=new sr(o.type,[s])));let a=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==s.type.kind&&"value"!==o.type.kind&&"value"!==s.type.kind)return t.error("Cannot use collator to compare non-string types.");if(a=t.parse(e[3],3,Oi),!a)return null}return new n(o,s,a)}evaluate(n){const o=this.lhs.evaluate(n),s=this.rhs.evaluate(n);if(r&&this.hasUntypedArgument){const t=tr(o),i=tr(s);if(t.kind!==i.kind||"string"!==t.kind&&"number"!==t.kind)throw new nr(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${i.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){const e=tr(o),i=tr(s);if("string"!==e.kind||"string"!==i.kind)return t(n,o,s)}return this.collator?i(n,o,s,this.collator.evaluate(n)):t(n,o,s)}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 fo=uo("==",function(e,t,i){return t===i},ho),po=uo("!=",function(e,t,i){return t!==i},function(e,t,i,r){return!ho(0,t,i,r)}),Ao=uo("<",function(e,t,i){return t<i},function(e,t,i,r){return r.compare(t,i)<0}),go=uo(">",function(e,t,i){return t>i},function(e,t,i,r){return r.compare(t,i)>0}),mo=uo("<=",function(e,t,i){return t<=i},function(e,t,i,r){return r.compare(t,i)<=0}),_o=uo(">=",function(e,t,i){return t>=i},function(e,t,i,r){return r.compare(t,i)>=0});class yo{constructor(e,t,i,r,n,o){this.type=Pi,this.number=e,this.locale=t,this.currency=i,this.unit=r,this.minFractionDigits=n,this.maxFractionDigits=o}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");const i=t.parse(e[1],1,Si);if(!i)return null;const r=e[2];if("object"!=typeof r||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");let n=null;if(r.locale&&(n=t.parseObjectValue(r.locale,2,"locale",Pi),!n))return null;let o=null;if(r.currency&&(o=t.parseObjectValue(r.currency,2,"currency",Pi),!o))return null;let s=null;if(r.unit&&(s=t.parseObjectValue(r.unit,2,"unit",Pi),!s))return null;let a=null;if(r["min-fraction-digits"]&&(a=t.parseObjectValue(r["min-fraction-digits"],2,"min-fraction-digits",Si),!a))return null;let l=null;return r["max-fraction-digits"]&&(l=t.parseObjectValue(r["max-fraction-digits"],2,"max-fraction-digits",Si),!l)?null:new yo(i,n,o,s,a,l)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.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.unit&&e(this.unit),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.unit&&(e.unit=this.unit.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 xo{constructor(e){this.type=Si,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`),null;const i=t.parse(e[1],1);return i?"array"!==i.type.kind&&"string"!==i.type.kind&&"value"!==i.type.kind?(t.error(`Expected argument of type string or array, but found ${Vi(i.type)} instead.`),null):new xo(i):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 nr(`Expected value to be of type string or array, but found ${Vi(tr(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(t=>{e.push(t.serialize())}),e}}function vo(e){return function(){e=1831565813+(e|=0)|0;let t=Math.imul(e^e>>>15,1|e);return t=t+Math.imul(t^t>>>7,61|t)^t,((t^t>>>14)>>>0)/4294967296}}const wo={"==":fo,"!=":po,">":go,"<":Ao,">=":_o,"<=":mo,array:sr,at:to,"at-interpolated":io,boolean:sr,case:so,coalesce:Xn,collator:xr,format:ar,image:lr,in:ro,"index-of":no,interpolate:qn,"interpolate-hcl":qn,"interpolate-lab":qn,length:xo,let:eo,literal:rr,match:oo,number:sr,"number-format":yo,object:sr,slice:ao,step:Qn,string:sr,"to-boolean":Ar,"to-color":Ar,"to-number":Ar,"to-string":Ar,var:Bn,within:Lr,distance:yn,config:Cn,split:lo};function Eo(e,[t,i,r,n]){t=t.evaluate(e),i=i.evaluate(e),r=r.evaluate(e);const o=n?n.evaluate(e):1,s=$i(t,i,r,o);if(s)throw new nr(s);return new Ei(t/255,i/255,r/255,o)}function bo(e,[t,i,r,n]){t=t.evaluate(e),i=i.evaluate(e),r=r.evaluate(e);const o=n?n.evaluate(e):1,s=function(e,t,i,r){return"number"==typeof e&&e>=0&&e<=360?"number"==typeof t&&t>=0&&t<=100&&"number"==typeof i&&i>=0&&i<=100?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:`Invalid hsla value [${[e,t,i,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${("number"==typeof r?[e,t,i,r]:[e,t,i]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${("number"==typeof r?[e,t,i,r]:[e,t,i]).join(", ")}]: 'h' must be between 0 and 360.`}(t,i,r,o);if(s)throw new nr(s);const a=`hsla(${t}, ${i}%, ${r}%, ${o})`,l=Ei.parse(a);if(!l)throw new nr(`Failed to parse HSLA color: ${a}`);return l}function Io(e,t){return e in t}function Co(e,t){const i=t[e];return void 0===i?null:i}function Bo(e){return{type:e}}function Do(e){if(e instanceof Cn)return new Set([e.key]);let t=new Set;return e.eachChild(e=>{t=new Set([...t,...Do(e)])}),t}function To(e){if(e instanceof _r&&"is-active-floor"===e.name)return!0;let t=!1;return e.eachChild(e=>{!t&&To(e)&&(t=!0)}),t}function Mo(e){return{result:"success",value:e}}function Qo(e){return{result:"error",value:e}}function So(e,t){return!!e&&!!e.parameters&&e.parameters.includes(t)}function Po(e){return"data-driven"===e["property-type"]}function Ro(e){return So(e.expression,"measure-light")}function zo(e){return So(e.expression,"zoom")}function Lo(e){return!!e.expression&&e.expression.interpolated}function Fo(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Oo(e){return e}function ko(e,t){const i="color"===t.type,r=e.stops&&"object"==typeof e.stops[0][0],n=r||!(r||void 0!==e.property),o=e.type||(Lo(t)?"exponential":"interval");if(i&&((e=Object.assign({},e)).stops&&(e.stops=e.stops.map(e=>[e[0],Ei.parse(e[1])])),e.default=Ei.parse(e.default?e.default:t.default)),e.colorSpace&&"rgb"!==e.colorSpace&&!Zn[e.colorSpace])throw new Error(`Unknown color space: ${e.colorSpace}`);let s,a,l;if("exponential"===o)s=Ho;else if("interval"===o)s=Vo;else if("categorical"===o){s=Uo,a=Object.create(null);for(const t of e.stops)a[t[0]]=t[1];l=typeof e.stops[0][0]}else{if("identity"!==o)throw new Error(`Unknown function type "${o}"`);s=jo}if(r){const i={},r=[];for(let t=0;t<e.stops.length;t++){const n=e.stops[t],o=n[0].zoom;void 0===i[o]&&(i[o]={zoom:o,type:e.type,property:e.property,default:e.default,stops:[]},r.push(o)),i[o].stops.push([n[0].value,n[1]])}const n=[];for(const e of r)n.push([i[e].zoom,ko(i[e],t)]);const o={name:"linear"};return{kind:"composite",interpolationType:o,interpolationFactor:qn.interpolationFactor.bind(void 0,o),zoomStops:n.map(e=>e[0]),evaluate:({zoom:i},r)=>Ho({stops:n,base:e.base},t,i).evaluate(i,r)}}if(n){const i="exponential"===o?{name:"exponential",base:void 0!==e.base?e.base
vendor: 9,902 bytes, line 1
1:1}:null;return{kind:"camera",interpolationType:i,interpolationFactor:qn.interpolationFactor.bind(void 0,i),zoomStops:e.stops.map(e=>e[0]),evaluate:({zoom:i})=>s(e,t,i,a,l)}}return{kind:"source",evaluate(i,r){const n=r&&r.properties?r.properties[e.property]:void 0;return void 0===n?No(e.default,t.default):s(e,t,n,a,l)}}}function No(e,t,i){return void 0!==e?e:void 0!==t?t:void 0!==i?i:void 0}function Uo(e,t,i,r,n){return No(typeof i===n?r[i]:void 0,e.default,t.default)}function Vo(e,t,i){if(!dr(i))return No(e.default,t.default);const r=e.stops.length;if(1===r)return e.stops[0][1];if(i<=e.stops[0][0])return e.stops[0][1];if(i>=e.stops[r-1][0])return e.stops[r-1][1];const n=Mn(e.stops.map(e=>e[0]),i);return e.stops[n][1]}function Ho(e,t,i){const r=void 0!==e.base?e.base:1;if(!dr(i))return No(e.default,t.default);const n=e.stops.length;if(1===n)return e.stops[0][1];if(i<=e.stops[0][0])return e.stops[0][1];if(i>=e.stops[n-1][0])return e.stops[n-1][1];const o=Mn(e.stops.map(e=>e[0]),i),s=function(e,t,i,r){const n=r-i,o=e-i;return 0===n?0:1===t?o/n:(Math.pow(t,o)-1)/(Math.pow(t,n)-1)}(i,r,e.stops[o][0],e.stops[o+1][0]),a=e.stops[o][1],l=e.stops[o+1][1];let c=Di[t.type]||Oo;if(e.colorSpace&&"rgb"!==e.colorSpace){const t=Zn[e.colorSpace];c=(e,i)=>t.reverse(t.interpolate(t.forward(e),t.forward(i),s))}return"function"==typeof a.evaluate?{evaluate(...e){const t=a.evaluate.apply(void 0,e),i=l.evaluate.apply(void 0,e);if(void 0!==t&&void 0!==i)return c(t,i,s)}}:c(a,l,s)}function jo(e,t,i){return"color"===t.type?i=Ei.parse(i):"formatted"===t.type?i=qi.fromString(i.toString()):"resolvedImage"===t.type?i=Xi.build(i.toString()):cr(i)===t.type||"enum"===t.type&&t.values[i]||(i=void 0),No(i,e.default,t.default)}_r.register(wo,{error:[{kind:"error"},[Pi],(e,[t])=>{throw new nr(t.evaluate(e))}],typeof:[Pi,[Fi],(e,[t])=>Vi(tr(t.evaluate(e)))],"to-rgba":[Ui(Si,4),[zi],(e,[t])=>t.evaluate(e).toNonPremultipliedRenderColor(null).toArray()],"to-hsla":[Ui(Si,4),[zi],(e,[t])=>t.evaluate(e).toNonPremultipliedRenderColor(null).toHslaArray()],rgb:[zi,[Si,Si,Si],Eo],rgba:[zi,[Si,Si,Si,Si],Eo],hsl:[zi,[Si,Si,Si],bo],hsla:[zi,[Si,Si,Si,Si],bo],has:{type:Ri,overloads:[[[Pi],(e,[t])=>Io(t.evaluate(e),e.properties())],[[Pi,Li],(e,[t,i])=>Io(t.evaluate(e),i.evaluate(e))]]},get:{type:Fi,overloads:[[[Pi],(e,[t])=>Co(t.evaluate(e),e.properties())],[[Pi,Li],(e,[t,i])=>Co(t.evaluate(e),i.evaluate(e))]]},"feature-state":[Fi,[Pi],(e,[t])=>Co(t.evaluate(e),e.featureState||{})],properties:[Li,[],e=>e.properties()],"geometry-type":[Pi,[],e=>e.geometryType()],worldview:[Pi,[],e=>e.globals.worldview||""],"is-active-floor":[Ri,Bo(Pi),(e,t)=>{if(!(e.globals&&e.globals.activeFloors&&e.globals.activeFloors.size>0))return!1;if(0===t.length)return!0;const i=e.globals.activeFloors;return t.some(t=>{const r=t.evaluate(e);return i.has(r)})}],id:[Fi,[],e=>e.id()],zoom:[Si,[],e=>e.globals.zoom],pitch:[Si,[],e=>e.globals.pitch||0],"distance-from-center":[Si,[],e=>e.distanceFromCenter()],"measure-light":[Si,[Pi],(e,[t])=>e.measureLight(t.evaluate(e))],"heatmap-density":[Si,[],e=>e.globals.heatmapDensity||0],"line-progress":[Si,[],e=>e.globals.lineProgress||0],"raster-value":[Si,[],e=>e.globals.rasterValue||0],"raster-particle-speed":[Si,[],e=>e.globals.rasterParticleSpeed||0],"sky-radial-progress":[Si,[],e=>e.globals.skyRadialProgress||0],accumulated:[Fi,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[Si,Bo(Si),(e,t)=>{let i=0;for(const r of t)i+=r.evaluate(e);return i}],"*":[Si,Bo(Si),(e,t)=>{let i=1;for(const r of t)i*=r.evaluate(e);return i}],"-":{type:Si,overloads:[[[Si,Si],(e,[t,i])=>t.evaluate(e)-i.evaluate(e)],[[Si],(e,[t])=>-t.evaluate(e)]]},"/":[Si,[Si,Si],(e,[t,i])=>t.evaluate(e)/i.evaluate(e)],"%":[Si,[Si,Si],(e,[t,i])=>t.evaluate(e)%i.evaluate(e)],ln2:[Si,[],()=>Math.LN2],pi:[Si,[],()=>Math.PI],e:[Si,[],()=>Math.E],"^":[Si,[Si,Si],(e,[t,i])=>Math.pow(t.evaluate(e),i.evaluate(e))],sqrt:[Si,[Si],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[Si,[Si],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[Si,[Si],(e,[t])=>Math.log(t.evaluate(e))],log2:[Si,[Si],(e,[t])=>Math.log2(t.evaluate(e))],sin:[Si,[Si],(e,[t])=>Math.sin(t.evaluate(e))],cos:[Si,[Si],(e,[t])=>Math.cos(t.evaluate(e))],tan:[Si,[Si],(e,[t])=>Math.tan(t.evaluate(e))],asin:[Si,[Si],(e,[t])=>Math.asin(t.evaluate(e))],acos:[Si,[Si],(e,[t])=>Math.acos(t.evaluate(e))],atan:[Si,[Si],(e,[t])=>Math.atan(t.evaluate(e))],min:[Si,Bo(Si),(e,t)=>Math.min(...t.map(t=>t.evaluate(e)))],max:[Si,Bo(Si),(e,t)=>Math.max(...t.map(t=>t.evaluate(e)))],abs:[Si,[Si],(e,[t])=>Math.abs(t.evaluate(e))],round:[Si,[Si],(e,[t])=>{const i=t.evaluate(e);return i<0?-Math.round(-i):Math.round(i)}],floor:[Si,[Si],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[Si,[Si],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[Ri,[Pi,Fi],(e,[t,i])=>e.properties()[t.value]===i.value],"filter-id-==":[Ri,[Fi],(e,[t])=>e.id()===t.value],"filter-type-==":[Ri,[Pi],(e,[t])=>e.geometryType()===t.value],"filter-<":[Ri,[Pi,Fi],(e,[t,i])=>{const r=e.properties()[t.value],n=i.value;return typeof r==typeof n&&r<n}],"filter-id-<":[Ri,[Fi],(e,[t])=>{const i=e.id(),r=t.value;return typeof i==typeof r&&i<r}],"filter->":[Ri,[Pi,Fi],(e,[t,i])=>{const r=e.properties()[t.value],n=i.value;return typeof r==typeof n&&r>n}],"filter-id->":[Ri,[Fi],(e,[t])=>{const i=e.id(),r=t.value;return typeof i==typeof r&&i>r}],"filter-<=":[Ri,[Pi,Fi],(e,[t,i])=>{const r=e.properties()[t.value],n=i.value;return typeof r==typeof n&&r<=n}],"filter-id-<=":[Ri,[Fi],(e,[t])=>{const i=e.id(),r=t.value;return typeof i==typeof r&&i<=r}],"filter->=":[Ri,[Pi,Fi],(e,[t,i])=>{const r=e.properties()[t.value],n=i.value;return typeof r==typeof n&&r>=n}],"filter-id->=":[Ri,[Fi],(e,[t])=>{const i=e.id(),r=t.value;return typeof i==typeof r&&i>=r}],"filter-has":[Ri,[Fi],(e,[t])=>t.value in e.properties()],"filter-has-id":[Ri,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[Ri,[Ui(Pi)],(e,[t])=>t.value.includes(e.geometryType())],"filter-id-in":[Ri,[Ui(Fi)],(e,[t])=>t.value.includes(e.id())],"filter-in-small":[Ri,[Pi,Ui(Fi)],(e,[t,i])=>i.value.includes(e.properties()[t.value])],"filter-in-large":[Ri,[Pi,Ui(Fi)],(e,[t,i])=>function(e,t,i,r){for(;i<=r;){const n=i+r>>1;if(t[n]===e)return!0;t[n]>e?r=n-1:i=n+1}return!1}(e.properties()[t.value],i.value,0,i.value.length-1)],all:{type:Ri,overloads:[[[Ri,Ri],(e,[t,i])=>t.evaluate(e)&&i.evaluate(e)],[Bo(Ri),(e,t)=>{for(const i of t)if(!i.evaluate(e))return!1;return!0}]]},any:{type:Ri,overloads:[[[Ri,Ri],(e,[t,i])=>t.evaluate(e)||i.evaluate(e)],[Bo(Ri),(e,t)=>{for(const i of t)if(i.evaluate(e))return!0;return!1}]]},"!":[Ri,[Ri],(e,[t])=>!t.evaluate(e)],"is-supported-script":[Ri,[Pi],(e,[t])=>{const i=e.globals&&e.globals.isSupportedScript;return!i||i(t.evaluate(e))}],upcase:[Pi,[Pi],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[Pi,[Pi],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[Pi,Bo(Fi),(e,t)=>t.map(t=>ir(t.evaluate(e))).join("")],"resolved-locale":[Pi,[Oi],(e,[t])=>t.evaluate(e).resolvedLocale()],random:[Si,[Si,Si,Fi],(e,t)=>{const[i,r,n]=t.map(t=>t.evaluate(e));if(i>r)return i;if(i===r)return i;let o;if("string"==typeof n)o=function(e){let t=0;if(0===e.length)return t;for(let i=0;i<e.length;i++)t=(t<<5)-t+e.charCodeAt(i),t&=t;return t}(n);else{if("number"!=typeof n)throw new nr(`Invalid seed input: ${n}`);o=n}return i+vo(o)()*(r-i)}]});class Go{constructor(e,t,i,r,n){this.expression=e,this._warningHistory={},this._scope=i,this._options=r,this._iconImageUseTheme=n,this._evaluator=new mr(i,r,n),this._defaultValue=t?function(e){return"color"===e.type&&(Fo(e.default)||Array.isArray(e.default))?new Ei(0,0,0,0):"color"===e.type?Ei.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null,this.configDependencies=Do(e),this.isIndoorDependent=To(e)}evaluateWithoutErrorHandling(e,t,i,r,n,o,s,a){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=i,this._evaluator.canonical=r||null,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=o,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=a||null,this.expression.evaluate(this._evaluator)}evaluate(e,t,i,r,n,o,s,a,l){this._evaluator||(this._evaluator=new mr(this._scope,this._options,this._iconImageUseTheme)),this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=i||null,this._evaluator.canonical=r||null,this._evaluator.availableImages=n||null,this._evaluator.formattedSection=o||null,this._evaluator.featureTileCoord=s||null,this._evaluator.featureDistanceData=a||null,this._evaluator.iconImageUseTheme=l||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 nr(`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){const t=e;return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(`Failed to evaluate expression "${JSON.stringify(this.expression.serialize())}". ${t.message}`)),this._defaultValue}}}function Yo(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in wo}function Wo(e,t,i,r,n){const o=new Dn(wo,[],t?function(e){const t={color:zi,string:Pi,number:Si,enum:Pi,boolean:Ri,formatted:ki,resolvedImage:Ni};return"array"===e.type?Ui(t[e.value]||Fi,e.length):t[e.type]}(t):void 0,void 0,void 0,i,r,n),s=o.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return s?Mo(new Go(s,t,i,r,n)):Qo(o.errors)}class Jo{constructor(e,t,i,r){this.kind=e,this._styleExpression=t,this.isLightConstant=i,this.isLineProgressConstant=r,this.isStateDependent="constant"!==e&&!vn(t.expression),this.configDependencies=Do(t.expression),this.isIndo
vendor: 21,258 bytes, line 1
1orDependent=To(t.expression)}evaluateWithoutErrorHandling(e,t,i,r,n,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,i,r,n,o)}evaluate(e,t,i,r,n,o,s){return this._styleExpression.evaluate(e,t,i,r,n,o,void 0,void 0,s)}}class Zo{constructor(e,t,i,r,n,o){this.kind=e,this.zoomStops=i,this._styleExpression=t,this.isStateDependent="camera"!==e&&!vn(t.expression),this.isIndoorDependent=To(t.expression),this.isLightConstant=n,this.isLineProgressConstant=o,this.configDependencies=Do(t.expression),this.interpolationType=r}evaluateWithoutErrorHandling(e,t,i,r,n,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,i,r,n,o)}evaluate(e,t,i,r,n,o){return this._styleExpression.evaluate(e,t,i,r,n,o)}interpolationFactor(e,t,i){return this.interpolationType?qn.interpolationFactor(this.interpolationType,e,t,i):0}}function qo(e,t,i,r,n){if("error"===(e=Wo(e,t,i,r,n)).result)return e;const o=e.value.expression,s=xn(o);if(!s&&!Po(t))return Qo([new Ti("","data expressions not supported")]);const a=wn(o,["zoom","pitch","distance-from-center"]);if(!a&&!zo(t))return Qo([new Ti("","zoom expressions not supported")]);const l=wn(o,["measure-light"]);if(!l&&!Ro(t))return Qo([new Ti("","measure-light expression not supported")]);const c=wn(o,["line-progress"]);if(!c&&!function(e){return So(e.expression,"line-progress")}(t))return Qo([new Ti("","line-progress expression not supported")]);const h=t.expression&&t.expression.relaxZoomRestriction,u=Xo(o);return u||a||h?u instanceof Ti?Qo([u]):u instanceof qn&&!Lo(t)?Qo([new Ti("",'"interpolate" expressions cannot be used with this property')]):Mo(u?new Zo(s&&c?"camera":"composite",e.value,u.labels,u instanceof qn?u.interpolation:void 0,l,c):new Jo(s&&c?"constant":"source",e.value,l,c)):Qo([new Ti("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class Ko{constructor(e,t){this._parameters=e,this._specification=t,Object.assign(this,ko(this._parameters,this._specification))}static deserialize(e){return new Ko(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function Xo(e){let t=null;if(e instanceof eo)t=Xo(e.result);else if(e instanceof Xn){for(const i of e.args)if(t=Xo(i),t)break}else(e instanceof Qn||e instanceof qn)&&e.input instanceof _r&&"zoom"===e.input.name&&(t=e);return t instanceof Ti||e.eachChild(e=>{const i=Xo(e);i instanceof Ti?t=i:t&&i&&t!==i&&(t=new Ti("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),t}class $o{constructor(e,t,i){if(this.boxSeen=new Uint32Array(0),this.circleSeen=new Uint32Array(0),this.generation=0,e instanceof ArrayBuffer){const t=new Int32Array(e);this.width=t[0],this.height=t[1],this.xCellCount=t[2],this.yCellCount=t[3],this.boxUid=t[4],this.circleUid=t[5];const i=this.xCellCount*this.yCellCount,r=[];for(let e=0;e<i;e++){const i=t[6+e],n=t[6+e+1];r.push(i===n?null:t.subarray(i,n))}const n=t[6+i],o=[];for(let e=0;e<i;e++){const i=t[n+e],r=t[n+e+1];o.push(i===r?null:t.subarray(i,r))}let s=t[n+i];this.boxCells=r,this.circleCells=o,this.boxKeys=t.subarray(s,s+this.boxUid),s+=this.boxUid,this.circleKeys=t.subarray(s,s+this.circleUid),s+=this.circleUid,this.bboxes=t.subarray(s,s+4*this.boxUid),s+=4*this.boxUid,this.circles=t.subarray(s,s+3*this.circleUid)}else{this.width=e,this.height=t,this.xCellCount=Math.ceil(e/i),this.yCellCount=Math.ceil(t/i);const r=this.xCellCount*this.yCellCount,n=[],o=[];for(let e=0;e<r;e++)n.push([]),o.push([]);this.boxCells=n,this.circleCells=o,this.boxKeys=[],this.circleKeys=[],this.bboxes=[],this.circles=[],this.boxUid=0,this.circleUid=0}this.xScale=this.xCellCount/this.width,this.yScale=this.yCellCount/this.height}keysLength(){return this.boxKeys.length+this.circleKeys.length}clear(){for(const e of this.boxCells)e&&(e.length=0);for(const e of this.circleCells)e&&(e.length=0);this.circleKeys.length=0,this.boxKeys.length=0,this.bboxes.length=0,this.circles.length=0,this.boxUid=0,this.circleUid=0}insert(e,t,i,r,n){const o=this.boxUid++,s=this._xCell(t),a=this._yCell(i),l=this._xCell(r),c=this._yCell(n);for(let h=s;h<=l;h++)for(let e=a;e<=c;e++)this.boxCells[this.xCellCount*e+h].push(o);this.boxKeys.push(e),this.bboxes.push(t,i,r,n)}insertCircle(e,t,i,r){const n=this.circleUid++,o=this._xCell(t-r),s=this._yCell(i-r),a=this._xCell(t+r),l=this._yCell(i+r);for(let c=o;c<=a;c++)for(let e=s;e<=l;e++)this.circleCells[this.xCellCount*e+c].push(n);this.circleKeys.push(e),this.circles.push(t,i,r)}query(e,t,i,r,n){const o=[];if(i<0||e>this.width||r<0||t>this.height)return o;const s=this._nextGen(),{boxCells:a,circleCells:l,boxKeys:c,circleKeys:h,bboxes:u,circles:d,boxSeen:f,circleSeen:p,xCellCount:A}=this,g=this._xCell(e),m=this._yCell(t),_=this._xCell(i),y=this._yCell(r);for(let x=g;x<=_;x++)for(let g=m;g<=y;g++){const m=A*g+x,_=a[m];if(_)for(let a=0;a<_.length;a++){const l=_[a];if(f[l]===s)continue;f[l]=s;const h=4*l,d=u[h],p=u[h+1],A=u[h+2],g=u[h+3];e<=A&&t<=g&&i>=d&&r>=p&&(!n||n(c[l]))&&o.push({key:c[l],x1:d,y1:p,x2:A,y2:g})}const y=l[m];if(y)for(let a=0;a<y.length;a++){const l=y[a];if(p[l]===s)continue;p[l]=s;const c=3*l,u=d[c],f=d[c+1],A=d[c+2];!this._circleAndRectCollide(u,f,A,e,t,i,r)||n&&!n(h[l])||o.push({key:h[l],x1:u-A,y1:f-A,x2:u+A,y2:f+A})}}return o}queryKeys(e,t,i,r,n){const o=[];if(i<0||e>this.width||r<0||t>this.height)return o;const s=this._nextGen(),{boxCells:a,boxKeys:l,bboxes:c,boxSeen:h,xCellCount:u,xScale:d,yScale:f}=this,p=this._xCell(e),A=this._yCell(t),g=this._xCell(i),m=this._yCell(r);for(let _=p;_<=g;_++)for(let p=A;p<=m;p++){if(n&&!n(_/d,p/f,(_+1)/d,(p+1)/f))continue;const A=a[u*p+_];if(A)for(let a=0;a<A.length;a++){const u=A[a];if(h[u]===s)continue;h[u]=s;const d=4*u,f=c[d],p=c[d+1],g=c[d+2],m=c[d+3];(n?n(f,p,g,m):e<=g&&t<=m&&i>=f&&r>=p)&&o.push(l[u])}}return o}hitTest(e,t,i,r,n){if(i<0||e>this.width||r<0||t>this.height)return!1;const o=this._nextGen(),{boxCells:s,circleCells:a,boxKeys:l,circleKeys:c,bboxes:h,circles:u,boxSeen:d,circleSeen:f,xCellCount:p}=this,A=this._xCell(e),g=this._yCell(t),m=this._xCell(i),_=this._yCell(r);for(let y=A;y<=m;y++)for(let A=g;A<=_;A++){const g=p*A+y,m=s[g];if(m)for(let s=0;s<m.length;s++){const a=m[s];if(d[a]===o)continue;d[a]=o;const c=4*a;if(e<=h[c+2]&&t<=h[c+3]&&i>=h[c]&&r>=h[c+1]&&(!n||n(l[a])))return!0}const _=a[g];if(_)for(let s=0;s<_.length;s++){const a=_[s];if(f[a]===o)continue;f[a]=o;const l=3*a;if(this._circleAndRectCollide(u[l],u[l+1],u[l+2],e,t,i,r)&&(!n||n(c[a])))return!0}}return!1}hitTestCircle(e,t,i,r){const n=e-i,o=t-i,s=e+i,a=t+i;if(s<0||n>this.width||a<0||o>this.height)return!1;const l=this._nextGen(),{boxCells:c,circleCells:h,boxKeys:u,circleKeys:d,bboxes:f,circles:p,boxSeen:A,circleSeen:g,xCellCount:m}=this,_=this._xCell(n),y=this._yCell(o),x=this._xCell(s),v=this._yCell(a);for(let w=_;w<=x;w++)for(let n=y;n<=v;n++){const o=m*n+w,s=c[o];if(s)for(let n=0;n<s.length;n++){const o=s[n];if(A[o]===l)continue;A[o]=l;const a=4*o;if(this._circleAndRectCollide(e,t,i,f[a],f[a+1],f[a+2],f[a+3])&&(!r||r(u[o])))return!0}const a=h[o];if(a)for(let n=0;n<a.length;n++){const o=a[n];if(g[o]===l)continue;g[o]=l;const s=3*o;if(this._circlesCollide(p[s],p[s+1],p[s+2],e,t,i)&&(!r||r(d[o])))return!0}}return!1}static serialize(e,t){const i=e.toArrayBuffer();return t&&t.add(i),{buffer:i}}static deserialize(e){return new $o(e.buffer)}toArrayBuffer(){const e=this.xCellCount*this.yCellCount;let t=0,i=0;for(let s=0;s<e;s++)t+=this.boxCells[s].length,i+=this.circleCells[s].length;const r=new Int32Array(6+(e+1)+t+(e+1)+i+this.boxUid+this.circleUid+4*this.boxUid+3*this.circleUid);r[0]=this.width,r[1]=this.height,r[2]=this.xCellCount,r[3]=this.yCellCount,r[4]=this.boxUid,r[5]=this.circleUid;let n=6+(e+1);for(let s=0;s<e;s++){r[6+s]=n;const e=this.boxCells[s];r.set(e,n),n+=e.length}r[6+e]=n;const o=n;n+=e+1;for(let s=0;s<e;s++){r[o+s]=n;const e=this.circleCells[s];r.set(e,n),n+=e.length}return r[o+e]=n,r.set(this.boxKeys,n),n+=this.boxUid,r.set(this.circleKeys,n),n+=this.circleUid,r.set(this.bboxes,n),n+=4*this.boxUid,r.set(this.circles,n),r.buffer}_xCell(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_yCell(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_nextGen(){return this.boxSeen.length<this.boxUid&&(this.boxSeen=new Uint32Array(this.boxUid)),this.circleSeen.length<this.circleUid&&(this.circleSeen=new Uint32Array(this.circleUid)),this.generation=this.generation+1>>>0,0===this.generation&&(this.boxSeen.fill(0),this.circleSeen.fill(0),this.generation=1),this.generation}_circlesCollide(e,t,i,r,n,o){const s=r-e,a=n-t,l=i+o;return l*l>s*s+a*a}_circleAndRectCollide(e,t,i,r,n,o,s){const a=(o-r)/2,l=Math.abs(e-(r+a));if(l>a+i)return!1;const c=(s-n)/2,h=Math.abs(t-(n+c));if(h>c+i)return!1;if(l<=a||h<=c)return!0;const u=l-a,d=h-c;return u*u+d*d<=i*i}}const es={};function ts(e,t,i={}){Object.defineProperty(e,"_classRegistryKey",{value:t,writable:!1}),es[t]={klass:e,omit:i.omit||[]}}ts(Object,"Object"),ts($o,"Grid"),delete we.prototype.constructor,ts(Ei,"Color"),ts(Error,"Error"),ts(qi,"Formatted"),ts(Zi,"FormattedSection"),ts($t,"AJAXError"),ts(Xi,"ResolvedImage"),ts(Ko,"StylePropertyFunction"),ts(Go,"StyleExpression",{omit:["_evaluator"]}),ts(mi,"ImageId"),ts(Ki,"ImageVariant"),ts(Zo,"ZoomDependentExpression"),ts(Jo,"ZoomConstantExpression"),ts(_r,"CompoundExpression",{omit:["_evaluate"]});for(const uE in wo)es[wo[uE]._classRegistryKey]||ts(wo[uE],`Expression${uE}`);function is(e){return e&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function rs(e,t){if(null===e)return null;const i=typeof e;if("object"!==i)return"bigint"===i?{$name:"BigInt",value:e.toString()}:e;if(Array.isArray(e)){const i=e.length,r=[];r.length=i;for(let n=0;n<i;n++)r[n]=rs(e[n],t);return r}if(ArrayBuffer.isView(e))return t&&t.add(e.buffer),e;if(is(e)||e instanceof ImageBitmap)return t&&t.add(e),e;if(e instanceof ImageData)return t&&t.add(e.data.buffer),e;if(e instanceof Map){const i={$name:"Map",entries:[]};for(const[r,n]of e.entries())i.entries.push(rs(r),rs(n,t));return i}if(e instanceof Set){const t={$name:"Set"};let i=0;for(const r of e.values())t[++i]=rs(r);return t}if(e instanceof Date||e instanceof RegExp||e instanceof Boolean||e instanceof Number||e instanceof String)return e;const r=e.constructor||Object,n=r._classRegistryKey;if(!n)throw new Error(`Can't serialize object of unregistered class "${r.name}".`);const o=r.serialize?r.serialize(e,t):{};if(!r.serialize){const i=es[n].omit,r=e;for(const e in r)Object.hasOwn(r,e)&&(i.includes(e)||(o[e]=rs(r[e],t)));e instanceof Error&&(o.message=e.message)}if(o.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==n&&(o.$name=n),o}function ns(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e)){for(let t=0;t<e.length;t++)e[t]=ns(e[t]);return e}if(ArrayBuffer.isView(e)||is(e)||e instanceof ImageBitmap||e instanceof ImageData||e instanceof Date||e instanceof RegExp||e instanceof Boolean||e instanceof Number||e instanceof String)return e;const t=e.$name||"Object";if("Map"===t){const t=e.entries||[],i=new Map;for(let e=0;e<t.length;e+=2)i.set(ns(t[e]),ns(t[e+1]));return i}if("Set"===t){const t=new Set;for(const i in e)"$name"!==i&&t.add(ns(e[i]));return t}if("BigInt"===t)return BigInt(e.value);const{klass:i}=es[t];if(!i)throw new Error(`Can't deserialize unregistered class "${t}".`);if(i.deserialize)return i.deserialize(e);const r=Object.create(i.prototype);for(const n in e)"$name"!==n&&(r[n]=ns(e[n]));return r}const os=e=>e>=1536&&e<=1791,ss=e=>e>=1872&&e<=1919,as=e=>e>=2208&&e<=2303,ls=e=>e>=11904&&e<=12031,cs=e=>e>=12032&&e<=12255,hs=e=>e>=12272&&e<=12287,us=e=>e>=12288&&e<=12351,ds=e=>e>=12352&&e<=12447,fs=e=>e>=12448&&e<=12543,ps=e=>e>=12544&&e<=12591,As=e=>e>=12704&&e<=12735,gs=e=>e>=12736&&e<=12783,ms=e=>e>=12784&&e<=12799,_s=e=>e>=12800&&e<=13055,ys=e=>e>=13056&&e<=13311,xs=e=>e>=13312&&e<=19903,vs=e=>e>=19968&&e<=40959,ws=e=>e>=40960&&e<=42127,Es=e=>e>=42128&&e<=42191,bs=e=>e>=44032&&e<=55215,Is=e=>e>=63744&&e<=64255,Cs=e=>e>=64336&&e<=65023,Bs=e=>e>=65040&&e<=65055,Ds=e=>e>=65072&&e<=65103,Ts=e=>e>=65104&&e<=65135,Ms=e=>e>=65136&&e<=65279,Qs=e=>e>=65280&&e<=65519;function Ss(e){for(const t of e)if(Ls(t.charCodeAt(0)))return!0;return!1}function Ps(e){for(const t of e)if(!Rs(t.charCodeAt(0)))return!1;return!0}function Rs(e){return!(os(e)||ss(e)||as(e)||Cs(e)||Ms(e))}function zs(e){return!(e<11904||!(As(e)||ps(e)||Ds(e)||Is(e)||ys(e)||ls(e)||gs(e)||us(e)||xs(e)||vs(e)||_s(e)||Qs(e)||ds(e)||hs(e)||cs(e)||ms(e)||fs(e)||Bs(e)||Es(e)||ws(e)))}function Ls(e){return!(746!==e&&747!==e&&(e<4352||!(As(e)||ps(e)||Ds(e)&&!(e>=65097&&e<=65103)||Is(e)||ys(e)||ls(e)||gs(e)||!(!us(e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||xs(e)||vs(e)||_s(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)||bs(e)||ds(e)||hs(e)||(e=>e>=12688&&e<=12703)(e)||cs(e)||ms(e)||fs(e)&&12540!==e||!(!Qs(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)||!(!Ts(e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||(e=>e>=5120&&e<=5759)(e)||(e=>e>=6320&&e<=6399)(e)||Bs(e)||(e=>e>=19904&&e<=19967)(e)||ws(e)||Es(e))))}function Fs(e){return 12312===e||12313===e||12316===e||12540===e||12448===e}function Os(e){return!(Ls(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)||us(e)||fs(e)||(e=>e>=57344&&e<=63743)(e)||Ds(e)||Ts(e)||Qs(e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}(e))}function ks(e){return os(e)||ss(e)||as(e)||Cs(e)||Ms(e)}function Ns(e){return e>=1424&&e<=2303||Cs(e)||Ms(e)}function Us(e,t){return!(!t&&Ns(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||(e=>e>=6016&&e<=6143)(e))}function Vs(e){for(const t of e)if(Ns(t.charCodeAt(0)))return!0;return!1}const Hs={unavailable:"unavailable",deferred:"deferred",loading:"loading",parsing:"parsing",parsed:"parsed",loaded:"loaded",error:"error"};let js=null,Gs=Hs.unavailable,Ys=null;const Ws=function(e){e&&(Gs=Hs.error),js&&js(e)};function Js(){Zs.fire(new di("pluginStateChange",{pluginStatus:Gs,pluginURL:Ys}))}const Zs=new gi,qs=function(){return Gs},Ks=function(){if(Gs!==Hs.deferred||!Ys)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Gs=Hs.loading,Js(),Ys&&si({url:Ys},e=>{e?Ws(e):(Gs=Hs.loaded,Js())})},Xs={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Gs===Hs.loaded||null!=Xs.applyArabicShaping,isLoading:()=>Gs===Hs.loading,setState(e){Gs=e.pluginStatus,Ys=e.pluginURL},isParsing:()=>Gs===Hs.parsing,isParsed:()=>Gs===Hs.parsed,getPluginURL:()=>Ys},$s=function(){Xs.isLoading()||Xs.isLoaded()||"deferred"!==qs()||Ks()};class ea{constructor(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.transition=t.transition,this.pitch=t.pitch,this.brightness=t.brightness,this.worldview=t.worldview,this.activeFloors=t.activeFloors):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(e){return function(e,t){for(const i of e)if(!Us(i.charCodeAt(0),t))return!1;return!0}(e,Xs.isLoaded())}}class ta{constructor(e,t,i,r,n){this.property=e,this.value=t,this.expression=function(e,t,i,r,n){if(Fo(e))return new Ko(e,t);if(Yo(e)||Array.isArray(e)&&e.length>0){const o=qo(e,t,i,r,n);if("error"===o.result)throw new Error(o.value.map(e=>`${e.key}: ${e.message}`).join(", "));return o.value}{let i=e;return"string"==typeof e&&"color"===t.type&&(i=Ei.parse(e)),{kind:"constant",configDependencies:new Set,isIndoorDependent:!1,evaluate:()=>i}}}(void 0===t?e.specification.default:t,e.specification,i,r,n)}isIndoorDependent(){return this.expression.isIndoorDependent}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,t,i,r){return this.property.possiblyEvaluate(this,e,t,i,r)}}class ia{constructor(e,t,i,r){this.property=e,this.value=new ta(e,void 0,t,i,r)}transitioned(e,t){return new na(this.property,this.value,t,Object.assign({},e.transition,this.transition),e.now)}untransitioned(){return new na(this.property,this.value,null,{},0)}}class ra{constructor(e,t,i,r){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues),this._scope=t,this._options=i,this._iconImageUseTheme=r,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(e){return ot(this._values[e].value.value)}setValue(e,t){Object.hasOwn(this._values,e)||(this._values[e]=new ia(this._values[e].property,this._scope,this._options,this._iconImageUseTheme)),this._values[e].value=new ta(this._values[e].property,null===t?void 0:ot(t),this._scope,this._options,this._iconImageUseTheme),this._values[e].value.expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].value.expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[e].value.isIndoorDependent())}setTransitionOrValue(e,t){t&&(this._options=t);const i=this._properties.properties;if(e)for(const r in e){const t=e[r];if(r.endsWith("-transition")){const e=r.slice(0,-11);i[e]&&this.setTransition(e,t)}else Object.hasOwn(i,r)&&this.setValue(r,t)}}getTransition(e){return ot(this._values[e].transition)}setTransition(e,t){Object.hasOwn(this._values,e)||(this._values[e]=new ia(this._values[e].property)),this._values[e].transition=ot(t)||void 0}serialize(){const e={};for(const t of Object.keys(this._values)){const i=this.getValue(t);void 0!==i&&(e[t]=i);const r=this.getTransition(t);void 0!==r&&(e[`${t}-transition`]=r)}return e}transitioned(e,t){const i=new oa(this._properties);for(const r of Object.keys(this._values))i._values[r]=this._values[r].transitioned(e,t._values[r]);return i}untransitioned(){const e=new oa(this._properties);for(const t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}isIndoorDependent(){return this._isIndoorDependent}}class na{constructor(e,t,i,r,n){const o=r.delay||0,s=r.duration||0;n=n||0,this.property=e,this.value=t,this.begin=n+o,this.end=this.begin+s,e.specification.transition&&(r.delay||r.duration)&&(this.prior=i)}possiblyEvaluate(e,t,i){const r=e.now||0,n=this.value.possiblyEvaluate(e,t,i),o=this.prior;if(o){if(r>this.end)return this.prior=null,n;if(this.value.isDataDriven())return this.prior=null,n;if(r<this.begin)return o.possiblyEvaluate(e,t,i);{const s=(r-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(e,t,i),n,Ye(s))}}return n}}class oa{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,t,i){const r=new la(this._properties);for(const n of Object.keys(this._values))r._values[n]=this._values[n].possiblyEvaluate(e,t,i);return r}hasTransition(){for(const e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class sa{constructor(e,t,i,r){this._properties=e,this._values=Object.create(e.defaultPropertyValues),this._scope=t,this._options=i,this._iconImageUseTheme=r,this._isIndoorDependent=!1,this.configDependencies=new Set}getValue(e){return ot(this._values[e].value)}setValue(e,t){this._values[e]=new ta(this._values[e].property,null===t?void 0:ot(t),this._scope,this._options,this._iconImageUseTheme),this._values[e].expression.configDependencies&&(this.configDependencies=new Set([...this.configDependencies,...this._values[e].expression.configDependencies]),this._isIndoorDependent=this._isIndoorDependent||this._values[e].isIndoorDependent())}serialize(){const e={};for(const t of Object.keys(this._values)){const i=this.getValue(t);void 0!==i&&(e[t]=i)}return e}possiblyEvaluate(e,t,i,r){const n=new la(this._properties);for(const o of Object.keys(this._values))n._values[o]=this._values[o].possiblyEvaluate(e,t,i,r);return n}isIndoorDependent(){return this._isIndoorDependent}}class aa{constructor(e,t,i,r){this.property=e,this.value=t,this.parameters=i,this.iconImageUseTheme=r}isConstant(){return"constant"===this.value.kind}constantOr(e){return"constant"===this.value.kind?this.value.value:e}evaluate(e,t,i,r,n){return this.property.evaluate(this.value,this.parameters,e,t,i,r,this.iconImageUseTheme,n)}}class la{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class ca{constructor(e){this.specification=e}
vendor: 4,065 bytes, line 1
1possiblyEvaluate(e,t){return e.expression.evaluate(t)}interpolate(e,t,i){const r=Di[this.specification.type];return r?r(e,t,i):e}}class ha{constructor(e,t){this.specification=e,this.overrides=t}possiblyEvaluate(e,t,i,r,n){return"constant"===e.expression.kind||"camera"===e.expression.kind?new aa(this,{kind:"constant",value:e.expression.evaluate(t,null,{},i,r,void 0,n)},t):new aa(this,e.expression,t,n)}interpolate(e,t,i){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new aa(this,{kind:"constant",value:void 0},e.parameters);const r=Di[this.specification.type];return r?new aa(this,{kind:"constant",value:r(e.value.value,t.value.value,i)},e.parameters):e}evaluate(e,t,i,r,n,o,s,a){return"constant"===e.kind?e.value:e.evaluate(t,i,r,n,o,a,s)}}class ua{constructor(e){this.specification=e}possiblyEvaluate(e,t,i,r){return!!e.expression.evaluate(t,null,{},i,r)}interpolate(){return!1}}class da{constructor(e){this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const t=new ea(0,{});for(const i in e){const r=e[i],n=r.specification;n&&n.overridable&&this.overridableProperties.push(i);const o=this.defaultPropertyValues[i]=new ta(r,void 0),s=this.defaultTransitionablePropertyValues[i]=new ia(r);this.defaultTransitioningPropertyValues[i]=s.untransitioned(),this.defaultPossiblyEvaluatedValues[i]=o.possiblyEvaluate(t)}}}ts(ha,"DataDrivenProperty"),ts(ca,"DataConstantProperty"),ts(ua,"ColorRampProperty");var fa=JSON.parse('{"expression":1,"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"appearance":{"condition":{"type":"boolean","expression":{"interpolated":1,"parameters":["distance-from-center","feature","feature-state","measure-light","pitch","zoom"]},"property-type":"data-driven"},"name":{"type":"string"},"properties":{"type":"*"}},"function":{"type":{"type":"enum","default":"exponential","values":{"identity":1,"exponential":1,"interval":1,"categorical":1}},"default":{"type":"*"},"expression":1,"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"colorSpace":{"type":"enum","default":"rgb","values":{"rgb":1,"lab":1,"hcl":1}}},"$version":8,"$root":{"transition":{"type":"transition"},"version":{"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"snow":{"type":"snow"},"rain":{"type":"rain"},"camera":{"type":"camera"},"color-theme":{"type":"colorTheme"},"indoor":{"type":"indoor"},"imports":{"type":"array","value":"import"},"iconsets":{"type":"iconsets"},"schema":{"type":"schema"},"sources":{"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"projection":{"type":"projection"},"layers":{"type":"array","value":"layer"},"models":{"type":"models"},"featuresets":{"type":"featuresets"}},"featuresets":{"*":{"type":"featureset"}},"featureset":{"metadata":{"type":"*"},"selectors":{"type":"array","value":"selector"}},"selector":{"layer":{"type":"string"},"properties":{"type":"selectorProperty"},"featureNamespace":{"type":"string"},"_uniqueFeatureID":{"type":"boolean"}},"selectorProperty":{"*":{"type":"*"}},"model":{"type":"string"},"import":{"id":{"type":"string"},"url":{"type":"string"},"config":{"type":"config"},"data":{"type":"$root"},"color-theme":{"type":"colorTheme","optional":true}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1
vendor: 6,178 bytes, line 1
1}},"default":{"type":"*","expression":1},"values":{"type":"array","value":"*"},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}},"light-3d":{"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}},"id":{"type":"string"},"properties":{"type":"properties"}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":1,"parameters":["zoom"]},"transition":1,"use-theme":1},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"cast-shadows":{"type":"boolean","default":false},"shadow-quality":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"parameters":["zoom"]}},"shadow-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"shadow-draw-before-layer":{"type":"string"}},"properties_light_ambient":{"color":{"type":"color","default":"#ffffff","expression":{"interpolated":1,"parameters":["zoom"]},"transition":1,"use-theme":1},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":1,"parameters":["zoom"]},"transition":1,"use-theme":1},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1}},"iconsets":{"*":{"type":"iconset"}},"iconset":["iconset_sprite","iconset_source"],"iconset_sprite":{"type":{"type":"enum","values":{"sprite":1}},"url":{"type":"string"}},"iconset_source":{"type":{"type":"enum","values":{"source":1}},"source":{"type":"string"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_raster_array","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"type":"enum","values":{"vector":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","default":[-180,-85.051129,180,85.051129],"length":4,"value":"number"},"extra_bounds":{"type":"array","value":{"type":"array","length":4,"value":"number"}},"scheme":{"type":"enum","default":"xyz","values":{"xyz":1,"tms":1}},"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":{"type":"enum","values":{"raster":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","default":[-180,-85.051129,180,85.051129],"length":4,"value":"number"},"extra_bounds":{"type":"array","value":{"type":"array","length":4,"value":"number"}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"scheme":{"type":"enum","default":"xyz","values":{"xyz":1,"tms":1}},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"type":"enum","values":{"raster-dem":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","default":[-180,-85.051129,180,85.051129],"length":4,"value":"number"},"extra_bounds":{"type":"array","value":{"type":"array","length":4,"value":"number"}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"encoding":{"type":"enum","default":"mapbox","values":{"terrarium":1,"mapbox":1}},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_array":{"type":{"type":"enum","values":{"raster-array":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","default":[-180,-85.051129,180,85.051129],"length":4,"value":"number"},"extra_bounds":{"type":"array","value":{"type":"array","length":4,"value":"number"}},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"minimum":0,"maximum":512},"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"},"dynamic":{"type":"boolean","default":false}},"source_video":{"type":{"type":"enum","values":{"video":1}},"urls":{"type":"array","value":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"type":"enum","values":{"image":1}},"url":{"type":"string"},"coordinates":{"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"modelNodeOverride":{"orientation":{"type":"array","default":[0,0,0],"length":3,"value":"number"}},"model
1NodeOverrides":{"*":{"type":"modelNodeOverride"}},"modelMaterialOverride":{"model-color":{"type":"color"},"model-color-mix-intensity":{"type":"number"},"model-opacity":{"type":"number"},"model-emissive-strength":{"type":"number"}},"modelMaterialOverrides":{"*":{"type":"modelMaterialOverride"}},"modelSourceModel":{"uri":{"type":"string"},"position":{"type":"array","default":[0,0],"minimum":[-180,-90],"maximum":[180,90],"length":2,"value":"number"},"orientation":{"type":"array","default":[0,0,0],"length":3,"value":"number"},"nodeOverrides":{"type":"modelNodeOverrides"},"materialOverrides":{"type":"modelMaterialOverrides"},"nodeOverrideNames":{"type":"array","value":"string"},"materialOverrideNames":{"type":"array","value":"string"},"featureProperties":{"type":"*"}},"modelSourceModels":{"*":{"type":"modelSourceModel"}},"source_model":{"type":{"type":"enum","values":{"model":1,"batched-model":1}},"url":{"type":"string"},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"},"models":{"type":"modelSourceModels"}},"layer":{"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"building":{},"raster":{},"raster-particle":{},"hillshade":{},"model":{},"background":{},"sky":{},"slot":{},"clip":{}}},"id":{"type":"string"},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"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"},"appearances":{"type":"array","value":"appearance"}},"layout":["layout_clip","layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_building","layout_symbol","layout_raster","layout_raster-particle","layout_hillshade","layout_background","layout_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","default":"visible","values":{"visible":1,"none":1},"expression":1}},"layout_sky":{"visibility":{"type":"enum","default":"visible","values":{"visible":1,"none":1},"expression":1}},"layout_model":{"visibility":{"type":"enum","default":"visible","values":{"visible":1,"none":1},"expression":1},"model-id":{"type":"string","default":"","expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"model-allow-density-reduction":{"type":"boolean","default":true}},"layout_clip":{"clip-layer-types":{"type":"array","default":[],"value":"enum","values":{"model":1,"symbol":1},"expression":1},"clip-layer-scope":{"type":"array","default":[],"value":"string","expression":1},"visibility":{"type":"enum","default":"visible","values":{"visible":1,"none":1},"expression":1}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"visibility":{"type":"enum","default":"visible","values":{"visible":1,"none":1},"expression":1},"fill-elevation-reference":{"type":"enum","default":"none","values":{"none":1,"hd-road-base":1,"hd-road-markup":1},"expression":1},"fill-construct-bridge-guard-rail":{"type":"boolean","default":"true","expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"circle-elevation-reference":{"type":"enum","default":"none","values":{"none":1,"hd-road-markup":1},"expression":1},"visibility":{"type":"enum","default":"visible","values":{"visible":1,"none":1},"expression":1}},"layout_heatmap":{"visibility":{"type":"enum","default":"visible","values":{"visible":1,"none":1},"expression":1}},"layout_fill-extrusion":{"visibility":{"type":"enum","default":"visible","values":{"visible":1,"none":1},"expression":1},"fill-extrusion-edge-radius":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":1},"source-max-zoom":{"type":"number","minimum":0,"maximum":24}},"layout_building":{"visibility":{"type":"enum","default":"visible","values":{"visible":1,"none":1},"expression":1},"building-facade":{"type":"boolean","default":false,"expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-facade-floors":{"type":"number","default":3,"minimum":1,"maximum":200,"expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-facade-unit-width":{"type":"number","default":3.1,"minimum":1,"maximum":20,"expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-facade-window":{"type":"array","default":[0.9,0.9],"minimum":0.1,"maximum":1,"length":2,"value":"number","expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-roof-shape":{"type":"enum","default":"flat","values":{"flat":1,"hipped":1,"gabled":1,"parapet":1,"mansard":1,"skillion":1,"pyramidal":1},"expression":{"parameters":["feature"]},"property-type":"data-driven"},"building-height":{"type":"number","default":0,"minimum":0,"expression":1,"transition":1,"property-type":"data-driven"},"building-base":{"type":"number","default":0,"minimum":0,"expression":1,"transition":1,"property-type":"data-driven"},"building-flood-light-wall-radius":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","feature-state"]},"transition":1,"property-type":"data-driven"},"building-flood-light-ground-radius":{"type":"number","default":0,"expression":{"interpolated":1,"parameters":["feature","feature-state"]},"transition":1,"property-type":"data-driven"},"building-flip-roof-orientation":{"type":"boolean","default":false,"expression":{"interpolated":1,"parameters":["feature","feature-state"]},"transition":1,"property-type":"data-driven"}},"layout_line":{"line-cap":{"type":"enum","default":"butt","values":{"butt":1,"round":1,"square":1},"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"line-join":{"type":"enum","default":"miter","values":{"bevel":1,"round":1,"miter":1,"none":1},"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":1,"parameters":["zoom"]}},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":1,"parameters":["zoom"]}},"line-sort-key":{"type":"number","expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"line-z-offset":{"type":"number","default":0,"expression":{"parameters":["feature","line-progress","zoom"]},"property-type":"data-driven"},"line-elevation-reference":{"type":"enum","default":"none","values":{"none":1,"sea":1,"ground":1,"hd-road-markup":1},"expression":1},"line-cross-slope":{"type":"number","expression":1},"visibility":{"type":"enum","default":"visible","values":{"visible":1,"none":1},"expression":1},"line-width-unit":{"type":"enum","default":"pixels","values":{"pixels":1,"meters":1},"expression":{"parameters":["zoom"]}},"line-elevation-ground-scale":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["feature","line-progress","zoom"]},"transition":1,"property-type":"data-driven"}},"layout_symbol":{"symbol-placement":{"type":"enum","default":"point","values":{"point":1,"line":1,"line-center":1},"expression":{"parameters":["zoom"]}},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":1,"parameters":["zoom"]}},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-sort-key":{"type":"number","expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","default":"auto","values":{"auto":1,"viewport-y":1,"source":1},"expression":{"parameters":["zoom"]}},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"symbol-elevation-reference":{"type":"enum","default":"ground","values":{"sea":1,"ground":1,"hd-road-markup":1},"expression":{"parameters":["zoom"]}},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-rotation-alignment":{"type":"enum","default":"auto","values":{"map":1,"viewport":1,"auto":1},"expression":{"parameters":["zoom"]}},"icon-size":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","zoom"]},"property-type":"data-driven","appearance":1},"icon-size-scale-range":{"type":"array","default":[0.8,2],"minimum":[0.1,0.1],"maximum":[10,10],"length":2,"value":"number","expression":1},"icon-text-fit":{"type":"enum","default":"none","values":{"none":1,"width":1,"height":1,"both":1},"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","default":[0,0,0,0],"length":4,"value":"number","expression":{"interpolated":1,"parameters":["feature","zoom"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","expression":{"parameters":["feature","zoom"]},"use-theme":1,"property-type":"data-driven","appearance":1,"tokens":1},"icon-rotate":{"type":"number","default":0,"expression":{"interpolated":1,"parameters":["feature","zoom"]},"property-type":"data-driven","appearance":1},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":1,"parameters":["zoom"]}},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"icon-offset":{"type":"array","default":[0,0],"length":2,"value":"number","expression":{"interpolated":1,"parameters":["feature","zoom"]},"property-type":"data-driven","appearance":1},"icon-anchor":{"type":"enum","default":"center","values":{"center":1,"left"
1:1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","default":"auto","values":{"map":1,"viewport":1,"auto":1},"expression":{"parameters":["zoom"]}},"text-pitch-alignment":{"type":"enum","default":"auto","values":{"map":1,"viewport":1,"auto":1},"expression":{"parameters":["zoom"]}},"text-rotation-alignment":{"type":"enum","default":"auto","values":{"map":1,"viewport":1,"auto":1},"expression":{"parameters":["zoom"]}},"text-field":{"type":"formatted","default":"","expression":{"parameters":["feature","zoom"]},"property-type":"data-driven","tokens":1},"text-font":{"type":"array","default":["Open Sans Regular","Arial Unicode MS Regular"],"value":"string","expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","zoom"]},"property-type":"data-driven","appearance":1},"text-size-scale-range":{"type":"array","default":[0.8,2],"minimum":[0.1,0.1],"maximum":[10,10],"length":2,"value":"number","expression":1},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","zoom"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":1,"parameters":["feature","zoom"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":1,"parameters":["feature","zoom"]},"property-type":"data-driven"},"text-justify":{"type":"enum","default":"center","values":{"auto":1,"left":1,"center":1,"right":1},"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"expression":{"interpolated":1,"parameters":["feature","zoom"]},"property-type":"data-driven"},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]}},"text-anchor":{"type":"enum","default":"center","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":1,"parameters":["zoom"]}},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]}},"text-rotate":{"type":"number","default":0,"expression":{"interpolated":1,"parameters":["feature","zoom"]},"property-type":"data-driven","appearance":1},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":1,"parameters":["zoom"]}},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"text-transform":{"type":"enum","default":"none","values":{"none":1,"uppercase":1,"lowercase":1},"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"text-offset":{"type":"array","default":[0,0],"length":2,"value":"number","expression":{"interpolated":1,"parameters":["feature","zoom"]},"property-type":"data-driven","appearance":1},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]}},"visibility":{"type":"enum","default":"visible","values":{"visible":1,"none":1},"expression":1}},"layout_raster":{"visibility":{"type":"enum","default":"visible","values":{"visible":1,"none":1},"expression":1}},"layout_raster-particle":{"visibility":{"type":"enum","default":"visible","values":{"visible":1,"none":1},"expression":1}},"layout_hillshade":{"visibility":{"type":"enum","default":"visible","values":{"visible":1,"none":1},"expression":1}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"expression":{"parameters":["distance-from-center","feature","pitch","zoom"]},"property-type":"data-driven"},"filter_fill":{"type":"boolean","default":false,"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"filter_hillshade":{"type":"boolean","default":false,"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"filter_raster":{"type":"boolean","default":false,"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"filter_raster-particle":{"type":"boolean","default":false,"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"filter_clip":{"type":"boolean","default":false,"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"filter_model":{"type":"boolean","default":false,"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"filter_line":{"type":"boolean","default":false,"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"filter_circle":{"type":"boolean","default":false,"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"filter_fill-extrusion":{"type":"boolean","default":false,"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"filter_building":{"type":"boolean","default":false,"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"filter_heatmap":{"type":"boolean","default":false,"expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"function_stop":{"type":"array","minimum":0,"maximum":24,"length":2,"value":["number","color"]},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1,"use-theme":1},"high-color":{"type":"color","default":"#245cdf","expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1,"use-theme":1},"space-color":{"type":"color","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1,"use-theme":1},"horizon-blend":{"type":"number","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1},"star-intensity":{"type":"number","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1}},"snow":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.85],"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1,"use-theme":1},"opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.3],"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1},"vignette-color":{"type":"color","default":"#ffffff","expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1,"use-theme":1},"center-thinning":{"type":"number","default":0.4,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1},"direction":{"type":"array","default":[0,50],"minimum":0,"maximum":360,"length":2,"value":"number","expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1},"flake-size":{"type":"number","default":0.71,"minimum":0,"maximum":5,"expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1}},"rain":{"density":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,0.5],"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1},"intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1},"color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#03113d",0.3,"#a8adbc"],"expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1,"use-theme":1},"opacity":{"type":"number","default":["interpolate",["linear"],["measure-light","brightness"],0,0.88,1,0.7],"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1},"vignette":{"type":"number","default":["interpolate",["linear"],["zoom"],11,0,13,1],"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1},"vignette-color":{"type":"color","default":["interpolate",["linear"],["measure-light","brightness"],0,"#001736",0.3,"#464646"],"expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1,"use-theme":1},"center-thinning":{"type":"number","default":0.57,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1},"direction":{"type":"array","default":[0,80],"minimum":0,"maximum":360,"length":2,"value":"number","expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1},"droplet-size":{"type":"array","default":[2.6,18.2],"minimum":0,"maximum":50,"length":2,"value":"number","expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1},"distortion-strength":{"type":"number","default":0.7,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"],"relaxZoomRestriction":1},"transition":1}},"camera":{"camera-projection":{"type":"enum","default":"perspective","values":{"perspective":1,"orthographic":1},"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1}},"colorTheme":{"data":{"type":"string","expression":1}},"indoor_source":{"sourceId":{"type":"string"},"sourceLayers":{"type":"array","value":"string"}},"indoor":{"*":{"type":"indoor_source"}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"color":{"type":"color","default":"#ffffff","expression":{"interpolated":1,"parameters":["zoom"]},"transition":1,"use-theme":1},"intensity":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1}},"projection":{"name":{"type":"enum","default":"mercator","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1}},"center":{"type":"array","minimum":[-180,-90],"maximum":[180,90],"length":2,"value":"number"},"parallels":{"type":"array","minimum":[-90,-90],"maximum":[90,90],"length":2,"value":"number"}},"terrain":{"source":{"type":"string"},"exaggeration":{"type":"number","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_building","paint_symbol","paint_raster","paint_raster-particle","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"use-theme":1,"property-type":"data-driven"},"fill-outline-color":{"type":"color","expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"use-theme":1,"property-type":"data-driven"},"fill-translate":{"type":"array","default":[0,0],"length":2,"value":"number","expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"fill-translate-anchor":{"type":"enum","default":"map","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"fill-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"]}},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["measure-light","zoom"]},"transition":1},"fill-z-offset":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","zoom"]},"transition":1,"property-type":"data-driven"},"fill-bridge-guard-rail-color":{"type":"color","default":"rgba(241, 236, 225, 255)","expression":{"interpolated":1,"parameters":["feature","measure-light","zoom"]},"transition":1,"use-theme":1,"property-type":"data-driven"},"fill-tunnel-structure-color":{"type":"color","default":"rgba(241, 236, 225, 255)","expression":{"interpolated":1,"parameters":["feature","measure-light","zoom"]},"transition":1,"use-theme":1,"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"fill-extrusion-color":{"type":"color","default":"#000000","expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"use-theme":1,"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","default":[0,0],"length":2,"value":"number","expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"fill-extrusion-translate-anchor":{"type":"enum","default":"map","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"fill-extrusion-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"]}},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","feature-state","zoom"]},"transition":1,"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","feature-state","zoom"]},"transiti
1on":1,"property-type":"data-driven"},"fill-extrusion-height-alignment":{"type":"enum","default":"flat","values":{"terrain":1,"flat":1}},"fill-extrusion-base-alignment":{"type":"enum","default":"terrain","values":{"terrain":1,"flat":1}},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"fill-extrusion-ambient-occlusion-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"fill-extrusion-ambient-occlusion-wall-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"fill-extrusion-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"fill-extrusion-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"fill-extrusion-flood-light-color":{"type":"color","default":"#ffffff","expression":{"interpolated":1,"parameters":["measure-light","zoom"]},"transition":1,"use-theme":1},"fill-extrusion-flood-light-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"]},"transition":1},"fill-extrusion-flood-light-wall-radius":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","feature-state"]},"transition":1,"property-type":"data-driven"},"fill-extrusion-flood-light-ground-radius":{"type":"number","default":0,"expression":{"interpolated":1,"parameters":["feature","feature-state"]},"transition":1,"property-type":"data-driven"},"fill-extrusion-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"fill-extrusion-vertical-scale":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"fill-extrusion-rounded-roof":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":1},"fill-extrusion-front-cutoff":{"type":"array","default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1],"length":3,"value":"number","expression":{"interpolated":1,"parameters":["zoom"]}},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven"},"fill-extrusion-line-width":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven"},"fill-extrusion-cast-shadows":{"type":"boolean","default":true}},"paint_building":{"building-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"building-ambient-occlusion-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"parameters":[]},"transition":1},"building-ambient-occlusion-ground-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"building-ambient-occlusion-ground-radius":{"type":"number","default":3,"minimum":0,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"building-ambient-occlusion-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"building-vertical-scale":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"building-cast-shadows":{"type":"boolean","default":true},"building-color":{"type":"color","default":"rgba(193, 154, 127, 1)","expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light"]},"use-theme":1,"property-type":"data-driven"},"building-emissive-strength":{"type":"number","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light"]},"property-type":"data-driven"},"building-facade-emissive-chance":{"type":"number","default":0.35,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"]}},"building-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":1},"building-front-cutoff":{"type":"array","default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1],"length":3,"value":"number","expression":{"interpolated":1,"parameters":["zoom"]}},"building-flood-light-color":{"type":"color","default":"#ffffff","expression":{"interpolated":1,"parameters":["measure-light","zoom"]},"transition":1,"use-theme":1},"building-flood-light-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"]},"transition":1},"building-flood-light-ground-attenuation":{"type":"number","default":0.69,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"use-theme":1,"property-type":"data-driven"},"line-translate":{"type":"array","default":[0,0],"length":2,"value":"number","expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"line-translate-anchor":{"type":"enum","default":"map","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"line-width":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","feature-state","line-progress","measure-light","zoom"]},"transition":1,"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven"}
1,"line-blur":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven"},"line-dasharray":{"type":"array","minimum":0,"value":"number","expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["feature","zoom"]},"property-type":"data-driven"},"line-pattern-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"]}},"line-gradient":{"type":"color","expression":{"interpolated":1,"parameters":["line-progress"]},"use-theme":1},"line-trim-offset":{"type":"array","default":[0,0],"minimum":[0,0],"maximum":[1,1],"length":2,"value":"number"},"line-trim-fade-range":{"type":"array","default":[0,0],"minimum":[0,0],"maximum":[1,1],"length":2,"value":"number","expression":{"interpolated":1,"parameters":["measure-light","zoom"]}},"line-trim-color":{"type":"color","default":"transparent","expression":{"interpolated":1,"parameters":["measure-light","zoom"]},"transition":1,"use-theme":1},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["line-progress","measure-light","zoom"]},"transition":1,"property-type":"data-driven"},"line-border-width":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","feature-state","zoom"]},"transition":1,"property-type":"data-driven"},"line-border-color":{"type":"color","default":"rgba(0, 0, 0, 0)","expression":{"interpolated":1,"parameters":["feature","feature-state","zoom"]},"transition":1,"use-theme":1,"property-type":"data-driven"},"line-occlusion-opacity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"line-blend-mode":{"type":"enum","default":"default","values":{"default":1,"multiply":1,"additive":1},"expression":{"parameters":["zoom"]}},"line-blend-additive-clamp":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["zoom"]}}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"use-theme":1,"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven"},"circle-translate":{"type":"array","default":[0,0],"length":2,"value":"number","expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"circle-translate-anchor":{"type":"enum","default":"map","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"circle-pitch-scale":{"type":"enum","default":"map","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"circle-pitch-alignment":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"use-theme":1,"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["measure-light","zoom"]},"transition":1}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"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"],"expression":{"interpolated":1,"parameters":["heatmap-density"]},"use-theme":1},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven","appearance":1},"icon-occlusion-opacity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven","appearance":1},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":1,"parameters":["feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven","appearance":1},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":1,"parameters":["feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven","appearance":1},"icon-color":{"type":"color","default":"#000000","expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"use-theme":1,"property-type":"data-driven","appearance":1},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"use-theme":1,"property-type":"data-driven","appearance":1},"icon-halo-width":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven","appearance":1},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven","appearance":1},"icon-translate":{"type":"array","default":[0,0],"length":2,"value":"number","expression":{"interpolated":1,"parameters":["zoom"]},"transition":1,"appearance":1},"icon-translate-anchor":{"type":"enum","default":"map","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"icon-image-cross-fade":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["measure-light","zoom"]}},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven","appearance":1},"text-occlusion-opacity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven","appearance":1},"text-color":{"type":"color","default":"#000000","expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"use-theme":1,"property-type":"data-driven","appearance":1,"overridable":1},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"use-theme":1,"property-type":"data-driven","appearance":1},"text-halo-width":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven","appearance":1},"text-halo-blur":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":1,"property-type":"data-driven","appearance":1},"text-translate":{"type":"array","default":[0,0],"length":2,"value":"number","expression":{"interpolated":1,"parameters":["zoom"]},"transition":1,"appearance":1},"text-translate-anchor":{"type":"enum","default":"map","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"icon-color-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":1},"icon-color-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":1},"icon-color-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":1},"icon-color-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":1},"symbol-z-offset":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["feature","zoom"]},"transition":1,"property-type":"data-driven","appearance":1}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"raster-color":{"type":"color","expression":{"interpolated":1,"parameters":["raster-value"]},"use-theme":1},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"raster-color-range":{"type":"array","length":2,"value":"number","expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"raster-hue-rotate":{"type":"number","default":0,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"raster-resampling":{"type":"enum","default":"linear","values":{"linear":1,"nearest":1},"expression":{"parameters":["zoom"]}},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":1,"parameters":["zoom"]}},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["measure-light","zoom"]},"transition":1},"raster-array-band":{"type":"string"},"raster-elevation":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"raster-elevation-reference":{"type":"enum","default":"sea","values":{"sea":1,"ground":1},"expression":1}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string"},"raster-particle-count":{"type":"number","default":512,"minimum":1},"raster-particle-color":{"type":"color","expression":{"interpolated":1,"parameters":["raster-particle-speed"]},"use-theme":1},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1},"raster-particle-elevation":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":1,"parameters":["zoom"]}},"hillshade-illumination-anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"expression":{"parameters":["zoom"]}},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"hillshade-shadow-color":{"type":"color","default":"#000000","expression":{"interpolated":1,"parameters":["measure-light","zoom"]},"transition":1,"use-theme":1},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","expression":{"interpolated":1,"parameters":["measure-light","zoom"]},"transition":1,"use-theme":1},"hillshade-accent-color":{"type":"color","default":"#000000","expression":{"interpolated":1,"parameters":["measure-light","zoom"]},"transition":1,"use-theme":1},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["measure-light","zoom"]},"transition":1}},"paint_background":{"background-pitch-alignment":{"type":"enum","default":"map","values":{"map":1,"viewport":1},"expression":{"parameters":[]}},"background-color":{"type":"color","default":"#000000","expression":{"interpolated":1,"parameters":["measure-light","zoom"]},"transition":1,"use-theme":1},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]}},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"expression":{"interpolated":1,"parameters":["measure-light","zoom"]},"transition":1}},"paint_sky":{"sky-type":{"type":"enum","default":"atmosphere","values":{"gradient":1,"atmosphere":1},"expression":{"parameters":["zoom"]}},"sky-atmosphere-sun":{"type":"array","minimum":[0,0],"maximum":[360,180],"length":2,"value":"number","expression":{"parameters":["zoom"]}},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100},"sky-gradient-center":{"type":"array","default":[0,0],"minimum":[0,0],"maximum":[360,180],"length":2,"value":"number","expression":{"parameters":["zoom"]}},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]}},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"expression":{"interpolated":1,"parameters":["sky-radial-progress"]},"use-theme":1},"sky-atmosphere-halo-color":{"type":"color","default":"white","use-theme":1},"sky-atmosphere-color":{"type":"color","default":"white","use-theme":1},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["feature","feature-state","zoom"]},"transition":1,"property-type":"data-driven"},"model-rotation":{"type":"array","default":[0,0,0],"length":3,"value":"number","expression":{"interpolated":1,"parameters":["feature","feature-state","zoom"]},"transition":1,"property-type":"data-driven"},"model-scale":{"type":"array","default":[1,1,1],"length":3,"value":"number","expression":{"interpolated":1,"parameters":["feature","feature-state","zoom"]},"transition":1,"property-type":"data-driven"},"model-translation":{"type":"array","default":[0,0,0],"length":3,"value":"number","expression":{"interpolated":1,"parameters":["feature","feature-state","zoom"]},"transition":1,"property-type":"data-driven"},"model-color":{"type":"color","default":"#ffffff","expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light","zoom"]},
1"transition":1,"use-theme":1,"property-type":"data-driven"},"model-color-mix-intensity":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light"]},"transition":1,"property-type":"data-driven"},"model-type":{"type":"enum","default":"common-3d","values":{"common-3d":1,"location-indicator":1}},"model-cast-shadows":{"type":"boolean","default":true},"model-receive-shadows":{"type":"boolean","default":true},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["zoom"]},"transition":1},"model-emissive-strength":{"type":"number","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light"]},"transition":1,"property-type":"data-driven"},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":1,"parameters":["feature","feature-state"]},"transition":1,"property-type":"data-driven"},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","expression":{"interpolated":1,"parameters":["feature","feature-state","measure-light"]},"transition":1,"property-type":"data-driven"},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":1},"model-front-cutoff":{"type":"array","default":[0,0,1],"minimum":[0,0,0],"maximum":[1,1,1],"length":3,"value":"number","expression":{"interpolated":1,"parameters":["zoom"]}},"model-elevation-reference":{"type":"enum","default":"ground","values":{"sea":1,"ground":1,"hd-road-markup":1},"expression":1},"model-line-cutout-mode":{"type":"enum","default":"enabled","values":{"enabled":1,"disabled":1,"enabled-above-cutout":1},"expression":1}},"promoteId":{"*":{"type":"*"}}}');function pa(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function Aa(e){if(Array.isArray(e))return e.map(Aa);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){const t={},i=e;for(const e in i)t[e]=Aa(i[e]);return t}return pa(e)}function ga(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(!ga(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}function ma(e,t="",i=null,r="fill"){if(null==e)return{filter:()=>!0,needGeometry:!1,needFeature:!1};ga(e)||(e=ba(e));const n=e;let o=!0;try{o=function(e){if(!xa(e))return e;let t=Aa(e);return ya(t),t=_a(t),t}(n)}catch(e){console.warn(`Failed to extract static filter. Filter will continue 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 `)}let s=null,a=null;if("background"!==r&&"sky"!==r&&"slot"!==r){a=fa[`filter_${r}`];const e=Wo(o,a,t,i);if("error"===e.result)throw new Error(e.value.map(e=>`${e.key}: ${e.message}`).join(", "));s=(t,i,r)=>e.value.evaluate(t,i,{},r)}let l=null,c=null;if(o!==n){const e=Wo(n,a,t,i);if("error"===e.result)throw new Error(e.value.map(e=>`${e.key}: ${e.message}`).join(", "));l=(t,i,r,n,o)=>e.value.evaluate(t,i,{},r,void 0,void 0,n,o),c=!xn(e.value.expression)}return{filter:s,dynamicFilter:l||void 0,needGeometry:Ea(o),needFeature:!!c}}function _a(e){if(!Array.isArray(e))return e;const t=function(e){if(va.has(e[0]))for(let t=1;t<e.length;t++)if(xa(e[t]))return!0;return e}(e);return!0===t?t:t.map(e=>_a(e))}function ya(e){let t=!1;const i=[];if("case"===e[0]){for(let r=1;r<e.length-1;r+=2)t=t||xa(e[r]),i.push(e[r+1]);i.push(e.at(-1))}else if("match"===e[0]){t=t||xa(e[1]);for(let t=2;t<e.length-1;t+=2)i.push(e[t+1]);i.push(e.at(-1))}else if("step"===e[0]){t=t||xa(e[1]);for(let t=1;t<e.length-1;t+=2)i.push(e[t+1])}t&&(e.length=0,e.push("any",...i));for(let r=1;r<e.length;r++)ya(e[r])}function xa(e){if(!Array.isArray(e))return!1;if("pitch"===(t=e[0])||"distance-from-center"===t)return!0;var t;for(let i=1;i<e.length;i++)if(xa(e[i]))return!0;return!1}const va=new Set(["in","==","!=",">",">=","<","<=","to-boolean"]);function wa(e,t){return e<t?-1:e>t?1:0}function Ea(e){if(!Array.isArray(e))return!1;if("within"===e[0]||"distance"===e[0])return!0;for(let t=1;t<e.length;t++)if(Ea(e[t]))return!0;return!1}function ba(e){if(!e)return!0;const t=e[0];return e.length<=1?"any"!==t:"=="===t?Ia(e[1],e[2],"=="):"!="===t?Da(Ia(e[1],e[2],"==")):"<"===t||">"===t||"<="===t||">="===t?Ia(e[1],e[2],t):"any"===t?(i=e.slice(1),["any"].concat(i.map(ba))):"all"===t?["all"].concat(e.slice(1).map(ba)):"none"===t?["all"].concat(e.slice(1).map(ba).map(Da)):"in"===t?Ca(e[1],e.slice(2)):"!in"===t?Da(Ca(e[1],e.slice(2))):"has"===t?Ba(e[1]):"!has"!==t||Da(Ba(e[1]));var i}function Ia(e,t,i){switch(e){case"$type":return[`filter-type-${i}`,t];case"$id":return[`filter-id-${i}`,t];default:return[`filter-${i}`,e,t]}}function Ca(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(wa)]]:["filter-in-small",e,["literal",t]]}}function Ba(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function Da(e){return["!",e]}const Ta="�";function Ma(e,t){return t?`${e}${Ta}${t}`:e}function Qa(e){const t=e.indexOf(Ta);return t>=0?e.slice(t+1):""}let Sa;const Pa=()=>Sa||(Sa=new da({"icon-size":new ha(fa.layout_symbol["icon-size"]),"icon-image":new ha(fa.layout_symbol["icon-image"]),"icon-rotate":new ha(fa.layout_symbol["icon-rotate"]),"icon-offset":new ha(fa.layout_symbol["icon-offset"]),"text-size":new ha(fa.layout_symbol["text-size"]),"text-rotate":new ha(fa.layout_symbol["text-rotate"]),"text-offset":new ha(fa.layout_symbol["text-offset"])}));let Ra;const za=()=>Ra||(Ra=new da({"icon-opacity":new ha(fa.paint_symbol["icon-opacity"]),"icon-occlusion-opacity":new ha(fa.paint_symbol["icon-occlusion-opacity"]),"icon-emissive-strength":new ha(fa.paint_symbol["icon-emissive-strength"]),"text-emissive-strength":new ha(fa.paint_symbol["text-emissive-strength"]),"icon-color":new ha(fa.paint_symbol["icon-color"]),"icon-halo-color":new ha(fa.paint_symbol["icon-halo-color"]),"icon-halo-width":new ha(fa.paint_symbol["icon-halo-width"]),"icon-halo-blur":new ha(fa.paint_symbol["icon-halo-blur"]),"icon-translate":new ha(fa.paint_symbol["icon-translate"]),"text-opacity":new ha(fa.paint_symbol["text-opacity"]),"text-occlusion-opacity":new ha(fa.paint_symbol["text-occlusion-opacity"]),"text-color":new ha(fa.paint_symbol["text-color"],{runtimeType:zi,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new ha(fa.paint_symbol["text-halo-color"]),"text-halo-width":new ha(fa.paint_symbol["text-halo-width"]),"text-halo-blur":new ha(fa.paint_symbol["text-halo-blur"]),"text-translate":new ha(fa.paint_symbol["text-translate"]),"symbol-z-offset":new ha(fa.paint_symbol["symbol-z-offset"]),"icon-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"icon-halo-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"text-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"text-halo-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"})}));class La{constructor(e,t,i,r,n,o){this._conditionSpec=e,this._propertiesSpec=i;const s=Wo(e,fa.appearance.condition);if("success"===s.result&&(this.condition=s.value),this.name=t,i){this.layoutProperties=new la(Pa()),this.unevaluatedLayout=new sa(Pa(),r,n,o),this.paintProperties=new la(za()),this.unevaluatedPaint=new sa(za(),r,n,"");for(const e in i)e in this.unevaluatedLayout._values?this.unevaluatedLayout.setValue(e,i[e]):e in this.unevaluatedPaint._values&&this.unevaluatedPaint.setValue(e,i[e])}}
1isActive(e){return!(this.condition||!e.isHidden||"hidden"!==this.name)||this.condition.evaluate(e.globals,e.feature,e.featureState,e.canonical)}getCondition(){return this.condition}getName(){return this.name}getLayoutProperty(e){return this.layoutProperties.get(e)}getPaintProperty(e){return this.paintProperties.get(e)}getUnevaluatedLayoutProperties(){return this.unevaluatedLayout}getUnevaluatedLayoutProperty(e){return this.unevaluatedLayout._values[e]}getUnevaluatedPaintProperty(e){return this.unevaluatedPaint._values[e]}recalculate(e,t,i){this.unevaluatedLayout&&(this.layoutProperties=this.unevaluatedLayout.possiblyEvaluate(e,void 0,t,i)),this.unevaluatedPaint&&(this.paintProperties=this.unevaluatedPaint.possiblyEvaluate(e,void 0,t,""))}serialize(){const e={};e.condition=this.condition.expression.serialize(),this.name&&(e.name=this.name);const t=this.unevaluatedLayout?this.unevaluatedLayout.serialize():{},i=this.unevaluatedPaint?this.unevaluatedPaint.serialize():{},r=Object.assign({},t,i);return Object.keys(r).length>0&&(e.properties=r),e}hasIconLayoutProperties(){const e=this.hasLayoutProperty("icon-image"),t=this.hasLayoutProperty("icon-size"),i=this.hasLayoutProperty("icon-offset"),r=this.hasLayoutProperty("icon-rotate");return e||t||i||r}hasTextLayoutProperties(){const e=this.hasLayoutProperty("text-size"),t=this.hasLayoutProperty("text-offset"),i=this.hasLayoutProperty("text-rotate");return e||t||i}hasIconPaintProperties(){return!!this.unevaluatedPaint&&Object.keys(this.unevaluatedPaint._values).filter(e=>!e.endsWith("-use-theme")).some(e=>(e.startsWith("icon-")||"symbol-z-offset"===e)&&this.hasPaintProperty(e))}hasTextPaintProperties(){return!!this.unevaluatedPaint&&Object.keys(this.unevaluatedPaint._values).filter(e=>!e.endsWith("-use-theme")).some(e=>(e.startsWith("text-")||"symbol-z-offset"===e)&&this.hasPaintProperty(e))}hasLayoutProperty(e){return this.unevaluatedLayout&&void 0!==this.unevaluatedLayout._values[e].value}hasPaintProperty(e){return this.unevaluatedPaint&&void 0!==this.unevaluatedPaint._values[e].value}}const Fa="-transition",Oa=new Set(["fill","line","background","hillshade","raster"]);class ka extends gi{constructor(e,t,i,r,n,o){if(super(),this.id=e.id,this.fqid=Ma(this.id,i),this.type=e.type,this.scope=i,this.lut=r,this.options=n,this.iconImageUseTheme=o,this.appearances=new Array,this.appearancesVersion=0,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,this.expressionDependencies={isIndoorDependent:!1,configDependencies:new Set},"custom"!==e.type){if(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,e.type&&"background"!==e.type&&"sky"!==e.type&&"slot"!==e.type){this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter;const t=Wo(this.filter,fa[`filter_${e.type}`]);"error"!==t.result&&(this.expressionDependencies.configDependencies=new Set([...this.expressionDependencies.configDependencies,...t.value.configDependencies]),this.expressionDependencies.isIndoorDependent=this.expressionDependencies.isIndoorDependent||t.value.isIndoorDependent)}if(e.slot&&(this.slot=e.slot),e.appearances&&this.setAppearances(e.appearances),t.layout&&(this._unevaluatedLayout=new sa(t.layout,this.scope,n,this.iconImageUseTheme),this.expressionDependencies.configDependencies=new Set([...this.expressionDependencies.configDependencies,...this._unevaluatedLayout.configDependencies]),this.expressionDependencies.isIndoorDependent=this.expressionDependencies.isIndoorDependent||this._unevaluatedLayout.isIndoorDependent()),t.paint){this._transitionablePaint=new ra(t.paint,this.scope,n);for(const t in e.paint)this.setPaintProperty(t,e.paint[t]);for(const t in e.layout)this.setLayoutProperty(t,e.layout[t]);this.expressionDependencies.configDependencies=new Set([...this.expressionDependencies.configDependencies,...this._transitionablePaint.configDependencies]),this.expressionDependencies.isIndoorDependent=this.expressionDependencies.isIndoorDependent||this._transitionablePaint.isIndoorDependent(),this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new la(t.paint)}}}onAdd(e){}onRemove(e){}isDraped(e){return!this.is3D(!0)&&Oa.has(this.type)}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,t){if("custom"===this.type&&"visibility"===e)return void(this.visibility=t);const i=this._unevaluatedLayout;i._properties.properties[e]&&(i.setValue(e,t),this.expressionDependencies.configDependencies=new Set([...this.expressionDependencies.configDependencies,...i.configDependencies]),this.expressionDependencies.isIndoorDependent=this.expressionDependencies.isIndoorDependent||i.isIndoorDependent(),"visibility"===e&&this.possiblyEvaluateVisibility())}
1setAppearances(e){this.appearances=[],e.forEach(e=>{this.appearances.push(new La(e.condition,e.name,e.properties,this.scope,this.options,this.iconImageUseTheme))}),this.appearancesVersion++}possiblyEvaluateVisibility(){this._unevaluatedLayout._values.visibility&&(this.visibility=this._unevaluatedLayout._values.visibility.possiblyEvaluate({zoom:0}))}getPaintProperty(e){return e.endsWith(Fa)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}isPaintProperty(e){return!!this._transitionablePaint._properties.properties[e]}setPaintProperty(e,t){const i=this._transitionablePaint,r=i._properties.properties;if(e.endsWith(Fa)){const n=e.slice(0,-11);return r[n]&&i.setTransition(n,t||void 0),!1}if(!r[e])return!1;const n=i._values[e],o=n.value.isDataDriven(),s=n.value;i.setValue(e,t),this.expressionDependencies.configDependencies=new Set([...this.expressionDependencies.configDependencies,...i.configDependencies]),this.expressionDependencies.isIndoorDependent=this.expressionDependencies.isIndoorDependent||i.isIndoorDependent(),this._handleSpecialPaintPropertyUpdate(e);const a=i._values[e].value,l=a.isDataDriven(),c=e.endsWith("pattern")||"line-dasharray"===e;return l||o||c||this._handleOverridablePaintPropertyUpdate(e,s,a)}_handleSpecialPaintPropertyUpdate(e){}getProgramIds(){return null}getDefaultProgramParams(e,t,i){return null}_handleOverridablePaintPropertyUpdate(e,t,i){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){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t,this.iconImageUseTheme)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}
vendor: 21,630 bytes, line 1
1serialize(){const e={id:this.id,type:this.type,slot:this.slot,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 0!==this.appearances.length&&(e.appearances=this.appearances.map(e=>e.serialize())),nt(e,(e,t)=>!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length))}is3D(e){return!1}hasElevation(){return!1}mayUse(e){return!1}prepare(){return Promise.resolve()}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}hasShadowPass(){return!1}canCastShadows(){return!1}hasLightBeamPass(){return!1}cutoffRange(){return 0}tileCoverLift(){return 0}resize(){}_clear(){}isStateDependent(){for(const e in this.paint._values){const t=this.paint.get(e);if(t instanceof aa&&Po(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}for(const e of this.appearances)if(!vn(e.condition.expression))return!0;return!1}compileFilter(e){this._filterCompiled||(this._featureFilter=ma(this.filter,this.scope,e),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}dynamicFilterNeedsGeometry(){return this._featureFilter.needGeometry}getLayerRenderingStats(){return this._stats}resetLayerRenderingStats(e){this._stats&&("shadow"===e.renderPass?this._stats.numRenderedVerticesInShadowPass=0:this._stats.numRenderedVerticesInTransparentPass=0)}getAppearances(){return this.appearances}queryRenderedFeatures(e,t,i){return{}}queryRadius(e){}queryIntersectsFeature(e,t,i,r,n,o,s,a,l,c){}}function Na(e,t,i){if(!e._unevaluatedLayout)return!1;const r=e._unevaluatedLayout.getValue(t);return void 0!==r&&("string"!=typeof r||i(r))}function Ua(e,t,i=2){const r=t&&t.length,n=r?t[0]*i:e.length;let o=Va(e,0,n,i,!0);const s=[];if(!o||o.next===o.prev)return s;let a,l,c;if(r&&(o=function(e,t,i,r){const n=[];for(let o=0,s=t.length;o<s;o++){const i=Va(e,t[o]*r,o<s-1?t[o+1]*r:e.length,r,!1);i===i.next&&(i.steiner=!0),n.push($a(i))}n.sort(Za);for(let o=0;o<n.length;o++)i=qa(n[o],i);return i}(e,t,o,i)),e.length>80*i){a=e[0],l=e[1];let t=a,r=l;for(let o=i;o<n;o+=i){const i=e[o],n=e[o+1];i<a&&(a=i),n<l&&(l=n),i>t&&(t=i),n>r&&(r=n)}c=Math.max(t-a,r-l),c=0!==c?32767/c:0}return ja(o,s,i,a,l,c,0),s}function Va(e,t,i,r,n){let o;if(n===function(e,t,i,r){let n=0;for(let o=t,s=i-r;o<i;o+=r)n+=(e[s]-e[o])*(e[o+1]+e[s+1]),s=o;return n}(e,t,i,r)>0)for(let s=t;s<i;s+=r)o=hl(s/r|0,e[s],e[s+1],o);else for(let s=i-r;s>=t;s-=r)o=hl(s/r|0,e[s],e[s+1],o);return o&&nl(o,o.next)&&(ul(o),o=o.next),o}function Ha(e,t){if(!e)return e;t||(t=e);let i,r=e;do{if(i=!1,r.steiner||!nl(r,r.next)&&0!==rl(r.prev,r,r.next))r=r.next;else{if(ul(r),r=t=r.prev,r===r.next)break;i=!0}}while(i||r!==t);return t}function ja(e,t,i,r,n,o,s){if(!e)return;!s&&o&&function(e,t,i,r){let n=e;do{0===n.z&&(n.z=Xa(n.x,n.y,t,i,r)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next}while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,function(e){let t,i=1;do{let r,n=e;e=null;let o=null;for(t=0;n;){t++;let s=n,a=0;for(let e=0;e<i&&(a++,s=s.nextZ,s);e++);let l=i;for(;a>0||l>0&&s;)0!==a&&(0===l||!s||n.z<=s.z)?(r=n,n=n.nextZ,a--):(r=s,s=s.nextZ,l--),o?o.nextZ=r:e=r,r.prevZ=o,o=r;n=s}o.nextZ=null,i*=2}while(t>1)}(n)}(e,r,n,o);let a=e;for(;e.prev!==e.next;){const l=e.prev,c=e.next;if(o?Ya(e,r,n,o):Ga(e))t.push(l.i,e.i,c.i),ul(e),e=c.next,a=c.next;else if((e=c)===a){s?1===s?ja(e=Wa(Ha(e),t),t,i,r,n,o,2):2===s&&Ja(e,t,i,r,n,o):ja(Ha(e),t,i,r,n,o,1);break}}}function Ga(e){const t=e.prev,i=e,r=e.next;if(rl(t,i,r)>=0)return!1;const n=t.x,o=i.x,s=r.x,a=t.y,l=i.y,c=r.y,h=Math.min(n,o,s),u=Math.min(a,l,c),d=Math.max(n,o,s),f=Math.max(a,l,c);let p=r.next;for(;p!==t;){if(p.x>=h&&p.x<=d&&p.y>=u&&p.y<=f&&tl(n,a,o,l,s,c,p.x,p.y)&&rl(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}function Ya(e,t,i,r){const n=e.prev,o=e,s=e.next;if(rl(n,o,s)>=0)return!1;const a=n.x,l=o.x,c=s.x,h=n.y,u=o.y,d=s.y,f=Math.min(a,l,c),p=Math.min(h,u,d),A=Math.max(a,l,c),g=Math.max(h,u,d),m=Xa(f,p,t,i,r),_=Xa(A,g,t,i,r);let y=e.prevZ,x=e.nextZ;for(;y&&y.z>=m&&x&&x.z<=_;){if(y.x>=f&&y.x<=A&&y.y>=p&&y.y<=g&&y!==n&&y!==s&&tl(a,h,l,u,c,d,y.x,y.y)&&rl(y.prev,y,y.next)>=0)return!1;if(y=y.prevZ,x.x>=f&&x.x<=A&&x.y>=p&&x.y<=g&&x!==n&&x!==s&&tl(a,h,l,u,c,d,x.x,x.y)&&rl(x.prev,x,x.next)>=0)return!1;x=x.nextZ}for(;y&&y.z>=m;){if(y.x>=f&&y.x<=A&&y.y>=p&&y.y<=g&&y!==n&&y!==s&&tl(a,h,l,u,c,d,y.x,y.y)&&rl(y.prev,y,y.next)>=0)return!1;y=y.prevZ}for(;x&&x.z<=_;){if(x.x>=f&&x.x<=A&&x.y>=p&&x.y<=g&&x!==n&&x!==s&&tl(a,h,l,u,c,d,x.x,x.y)&&rl(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function Wa(e,t){let i=e;do{const r=i.prev,n=i.next.next;!nl(r,n)&&ol(r,i,i.next,n)&&ll(r,n)&&ll(n,r)&&(t.push(r.i,i.i,n.i),ul(i),ul(i.next),i=e=n),i=i.next}while(i!==e);return Ha(i)}function Ja(e,t,i,r,n,o){let s=e;do{let e=s.next.next;for(;e!==s.prev;){if(s.i!==e.i&&il(s,e)){let a=cl(s,e);return s=Ha(s,s.next),a=Ha(a,a.next),ja(s,t,i,r,n,o,0),void ja(a,t,i,r,n,o,0)}e=e.next}s=s.next}while(s!==e)}function Za(e,t){let i=e.x-t.x;return 0===i&&(i=e.y-t.y,0===i)&&(i=(e.next.y-e.y)/(e.next.x-e.x)-(t.next.y-t.y)/(t.next.x-t.x)),i}function qa(e,t){const i=function(e,t){let i=t;const r=e.x,n=e.y;let o,s=-1/0;if(nl(e,i))return i;do{if(nl(e,i.next))return i.next;if(n<=i.y&&n>=i.next.y&&i.next.y!==i.y){const e=i.x+(n-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(e<=r&&e>s&&(s=e,o=i.x<i.next.x?i:i.next,e===r))return o}i=i.next}while(i!==t);if(!o)return null;const a=o,l=o.x,c=o.y;let h=1/0;i=o;do{if(r>=i.x&&i.x>=l&&r!==i.x&&el(n<c?r:s,n,l,c,n<c?s:r,n,i.x,i.y)){const t=Math.abs(n-i.y)/(r-i.x);ll(i,e)&&(t<h||t===h&&(i.x>o.x||i.x===o.x&&Ka(o,i)))&&(o=i,h=t)}i=i.next}while(i!==a);return o}(e,t);if(!i)return t;const r=cl(i,e);return Ha(r,r.next),Ha(i,i.next)}function Ka(e,t){return rl(e.prev,e,t.prev)<0&&rl(t.next,e,e.next)<0}function Xa(e,t,i,r,n){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-i)*n|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-r)*n|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function $a(e){let t=e,i=e;do{(t.x<i.x||t.x===i.x&&t.y<i.y)&&(i=t),t=t.next}while(t!==e);return i}function el(e,t,i,r,n,o,s,a){return(n-s)*(t-a)>=(e-s)*(o-a)&&(e-s)*(r-a)>=(i-s)*(t-a)&&(i-s)*(o-a)>=(n-s)*(r-a)}function tl(e,t,i,r,n,o,s,a){return!(e===s&&t===a)&&el(e,t,i,r,n,o,s,a)}function il(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){let i=e;do{if(i.i!==e.i&&i.next.i!==e.i&&i.i!==t.i&&i.next.i!==t.i&&ol(i,i.next,e,t))return!0;i=i.next}while(i!==e);return!1}(e,t)&&(ll(e,t)&&ll(t,e)&&function(e,t){let i=e,r=!1;const n=(e.x+t.x)/2,o=(e.y+t.y)/2;do{i.y>o!=i.next.y>o&&i.next.y!==i.y&&n<(i.next.x-i.x)*(o-i.y)/(i.next.y-i.y)+i.x&&(r=!r),i=i.next}while(i!==e);return r}(e,t)&&(rl(e.prev,e,t.prev)||rl(e,t.prev,t))||nl(e,t)&&rl(e.prev,e,e.next)>0&&rl(t.prev,t,t.next)>0)}function rl(e,t,i){return(t.y-e.y)*(i.x-t.x)-(t.x-e.x)*(i.y-t.y)}function nl(e,t){return e.x===t.x&&e.y===t.y}function ol(e,t,i,r){const n=al(rl(e,t,i)),o=al(rl(e,t,r)),s=al(rl(i,r,e)),a=al(rl(i,r,t));return n!==o&&s!==a||!(0!==n||!sl(e,i,t))||!(0!==o||!sl(e,r,t))||!(0!==s||!sl(i,e,r))||!(0!==a||!sl(i,t,r))}function sl(e,t,i){return t.x<=Math.max(e.x,i.x)&&t.x>=Math.min(e.x,i.x)&&t.y<=Math.max(e.y,i.y)&&t.y>=Math.min(e.y,i.y)}function al(e){return e>0?1:e<0?-1:0}function ll(e,t){return rl(e.prev,e,e.next)<0?rl(e,t,e.next)>=0&&rl(e,e.prev,t)>=0:rl(e,t,e.prev)<0||rl(e,e.next,t)<0}function cl(e,t){const i=dl(e.i,e.x,e.y),r=dl(t.i,t.x,t.y),n=e.next,o=t.prev;return e.next=t,t.prev=e,i.next=n,n.prev=i,r.next=i,i.prev=r,o.next=r,r.prev=o,r}function hl(e,t,i,r){const n=dl(e,t,i);return r?(n.next=r.next,n.prev=r,r.next.prev=n,r.next=n):(n.prev=n,n.next=n),n}function ul(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 dl(e,t,i){return{i:e,x:t,y:i,prev:null,next:null,z:0,prevZ:null,nextZ:null,steiner:!1}}function fl(e,t,i=1){if(!e)return null;const r="string"==typeof e?Xi.from(e).getPrimary():e.getPrimary(),n="string"==typeof e?null:e.getSecondary();for(const o of[r,n]){if(!o)continue;const e=o.id.toString();t.has(e)||t.set(e,[]),o.scaleSelf(i),t.get(e).push(o)}return{primary:r.toString(),secondary:n?n.toString():null}}function pl(e,t,i,r){const n=r.patternDependencies;let o=!1;for(const s of t){const t=s.paint.get(`${e}-pattern`);t.isConstant()||(o=!0),fl(t.constantOr(null),n,i)&&(o=!0)}return o}function Al(e,t,i,r,n,o){const s=o.patternDependencies;for(const a of t){const t=a.paint.get(`${e}-pattern`).value;if("constant"!==t.kind){const e=fl(t.evaluate({zoom:r},i,{},void 0,o.availableImages),s,n);if(!e)continue;const{primary:l,secondary:c}=e;l&&(i.patterns[a.id]=[l,c].filter(Boolean))}}return i}const gl=Yr/Math.PI/2,ml=64,_l=[ml,32,16],yl=-gl,xl=gl;function vl(e,t,i,r=gl){return i=He(i),[e*Math.sin(i)*r,-t*r,e*Math.cos(i)*r]}function wl(e,t,i){return vl(Math.cos(He(e)),Math.sin(He(e)),t,i)}const El=6371008.8,bl=2*Math.PI*El;class Il{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 Il(qe(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,i=this.lat*t,r=e.lat*t,n=Math.sin(i)*Math.sin(r)+Math.cos(i)*Math.cos(r)*Math.cos((e.lng-this.lng)*t);return El*Math.acos(Math.min(n,1))}toBounds(e=0){const t=360*e/40075017,i=t/Math.cos(Math.PI/180*this.lat);return new Cl({lng:this.lng-i,lat:this.lat-t},{lng:this.lng+i,lat:this.lat+t})}toEcef(e){return wl(this.lat,this.lng,gl+e*gl/El)}static convert(e){if(e instanceof Il)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new Il(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new Il(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>]")}}class Cl{constructor(e,t){e&&(t?this.setSouthWest(e).setNorthEast(t):Array.isArray(e)&&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 Il?new Il(e.lng,e.lat):Il.convert(e),this}setSouthWest(e){return this._sw=e instanceof Il?new Il(e.lng,e.lat):Il.convert(e),this}extend(e){const t=this._sw,i=this._ne;let r,n;if(e instanceof Il)r=e,n=e;else{if(!(e instanceof Cl))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(Cl.convert(e)):this.extend(Il.convert(e)):"object"==typeof e&&null!==e&&Object.hasOwn(e,"lat")&&(Object.hasOwn(e,"lon")||Object.hasOwn(e,"lng"))?this.extend(Il.convert(e)):this;if(r=e._sw,n=e._ne,!r||!n)return this}return t||i?(t.lng=Math.min(r.lng,t.lng),t.lat=Math.min(r.lat,t.lat),i.lng=Math.max(n.lng,i.lng),i.lat=Math.max(n.lat,i.lat)):(this._sw=new Il(r.lng,r.lat),this._ne=new Il(n.lng,n.lat)),this}getCenter(){return new Il((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 Il(this.getWest(),this.getNorth())}getSouthEast(){return new Il(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:i}=Il.convert(e);let r=this._sw.lng<=t&&t<=this._ne.lng;return this._sw.lng>this._ne.lng&&(r=this._sw.lng>=t&&t>=this._ne.lng),this._sw.lat<=i&&i<=this._ne.lat&&r}static convert(e){if(e)return e instanceof Cl?e:new Cl(e)}}function Bl(e){return bl*Math.cos(e*Math.PI/180)}function Dl(e,t){return e/Bl(t)}function Tl(e,t){return e*Bl(br(t))}const Ml=85.051129;function Ql(e){return Math.cos(He(Je(e,-85.051129,Ml)))}function Sl(e,t){const i=Je(t,0,25.5),r=Math.pow(2,i);return Ql(e)*bl/(512*r)}function Pl(e){return 1/Math.cos(e*Math.PI/180)}function Rl(e,t=0){const i=Math.exp(Math.PI*(1-(e.y+t/Yr)/(1<<e.z)*2));return 80150034*i/(i*i+1)/Yr/(1<<e.z)}class zl{constructor(e,t,i=0){this.x=+e,this.y=+t,this.z=+i}static fromLngLat(e,t=0){const i=Il.convert(e);return new zl(vr(i.lng),wr(i.lat),Dl(t,i.lat))}toLngLat(){return new Il(Er(this.x),br(this.y))}toAltitude(){return Tl(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/bl*Pl(br(this.y))}}function Ll(e,t,i,r,n,o,s,a,l){const c=(t+r)/2,h=(i+n)/2,u=new we(c,h);a(u),function(e,t,i,r,n,o){const s=i-n,a=r-o;return Math.abs((r-t)*s-(i-e)*a)/Math.hypot(s,a)}(u.x,u.y,o.x,o.y,s.x,s.y)>=l?(Ll(e,t,i,c,h,o,u,a,l),Ll(e,c,h,r,n,u,s,a,l)):e.push(s)}function Fl(e,t,i){let r=e[0],n=r.x,o=r.y;t(r);const s=[r];for(let a=1;a<e.length;a++){const l=e[a],{x:c,y:h}=l;t(l),Ll(s,n,o,c,h,r,l,t,i),n=c,o=h,r=l}return s}function Ol(e,t,i,r){if(r(t,i)){const n=t.add(i)._mult(.5);Ol(e,t,n,r),Ol(e,n,i,r)}else e.push(i)}function kl(e,t){let i=e[0];const r=[i];for(let n=1;n<e.length;n++){const o=e[n];Ol(r,i,o,t),i=o}return r}const Nl=Math.pow(2,14)-1,Ul=-Nl-1;function Vl(e,t){const i=Math.round(e.x*t),r=Math.round(e.y*t);return e.x=Je(i,Ul,Nl),e.y=Je(r,Ul,Nl),(i<e.x||i>e.x+1||r<e.y||r>e.y+1)&<("Geometry exceeds allowed extent, reduce your vector tile buffer size"),e}function Hl(e,t,i){const r=e.loadGeometry(),n=e.extent,o=Yr/n;if(t&&i&&i.projection.isReprojectedInTileSpace){const o=1<<t.z,{scale:s,x:a,y:l,projection:c}=i,h=e=>{const i=Er((t.x+e.x/n)/o),r=br((t.y+e.y/n)/o),h=c.project(i,r);e.x=(h.x*s-a)*n,e.y=(h.y*s-l)*n};for(let t=0;t<r.length;t++)if(1!==e.type)r[t]=Fl(r[t],h,1);else{const e=[];for(const i of r[t])i.x<0||i.x>=n||i.y<0||i.y>=n||(h(i),e.push(i));r[t]=e}}for(const s of r)for(const e of s)Vl(e,o);return r}function jl(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?Hl(e):[]}}const Gl={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class Yl{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}}const Wl=new ArrayBuffer(0);class Jl{constructor(){this._reallocCount=0,this.capacity=0,this.length=0}static serialize(e,t){return e._trim(),t&&e.arrayBuffer&&t.add(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,e.arrayBuffer?t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement:(t.capacity=0,t.arrayBuffer=Wl),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}resizeExact(e){this.reserveExact(e),this.length=e}reserve(e){e>this.capacity&&this._allocate(Math.max(e,Math.floor(5*this.capacity),128))}reserveExact(e){(e>this.capacity||!this.arrayBuffer)&&this._allocate(e)}_allocate(e){this._reallocCount++,this.capacity=e,this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}reserveForAdditional(e){this.reserve(this.length+e)}_refreshViews(){throw new Error("StructArray#_refreshViews() must be implemented by each concrete StructArray layout")}emplace(...e){throw new Error("StructArray#emplace() must be implemented by each concrete StructArray layout")}emplaceBack(...e){throw new Error("StructArray#emplaceBack() 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 Zl(e,t=1){let i=0,r=0;return{members:e.map(e=>{const n=Gl[e.type].BYTES_PER_ELEMENT,o=i=ql(i,Math.max(t,n)),s=e.components||1;return r=Math.max(r,n),i+=n*s,{name:e.name,type:e.type,components:s,offset:o}}),size:ql(i,Math.max(r,t)),alignment:t}}function ql(e,t){return Math.ceil(e/t)*t}class Kl extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){const i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){const r=2*e;return this.int16[r+0]=t,this.int16[r+1]=i,e}}Kl.prototype.bytesPerElement=4,ts(Kl,"StructArrayLayout2i4");class Xl extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i)}emplace(e,t,i,r){const n=3*e;return this.int16[n+0]=t,this.int16[n+1]=i,this.int16[n+2]=r,e}}Xl.prototype.bytesPerElement=6,ts(Xl,"StructArrayLayout3i6");class $l extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,r){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i,r)}emplace(e,t,i,r,n){const o=4*e;return this.int16[o+0]=t,this.int16[o+1]=i,this.uint16[o+2]=r,this.uint16[o+3]=n,e}}$l.prototype.bytesPerElement=8,ts($l,"StructArrayLayout2i2ui8");class ec extends Jl{_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}}ec.prototype.bytesPerElement=4,ts(ec,"StructArrayLayout1f4");class tc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i)}emplace(e,t,i,r){const n=4*e,o=2*e;return this.int16[n+0]=t,this.int16[n+1]=i,this.float32[o+1]=r,e}}tc.prototype.bytesPerElement=8,ts(tc,"StructArrayLayout2i1f8");class ic extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i)}emplace(e,t,i,r){const n=4*e;return this.int16[n+0]=t,this.int16[n+1]=i,this.int16[n+2]=r,e}}ic.prototype.bytesPerElement=8,ts(ic,"StructArrayLayout3i8");class rc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,r){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i,r)}emplace(e,t,i,r,n){const o=4*e;return this.int16[o+0]=t,this.int16[o+1]=i,this.int16[o+2]=r,this.int16[o+3]=n,e}}rc.prototype.bytesPerElement=8,ts(rc,"StructArrayLayout4i8");class nc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,i,r,n)}emplace(e,t,i,r,n,o){const s=5*e;return this.int16[s+0]=t,this.int16[s+1]=i,this.int16[s+2]=r,this.int16[s+3]=n,this.int16[s+4]=o,e}}nc.prototype.bytesPerElement=10,ts(nc,"StructArrayLayout5i10");class oc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i,r,n,o,s)}emplace(e,t,i,r,n,o,s,a){const l=6*e,c=12*e,h=3*e;return this.int16[l+0]=t,this.int16[l+1]=i,this.uint8[c+4]=r,this.uint8[c+5]=n,this.uint8[c+6]=o,this.uint8[c+7]=s,this.float32[h+2]=a,e}}oc.prototype.bytesPerElement=12,ts(oc,"StructArrayLayout2i4ub1f12");class sc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i)}emplace(e,t,i,r){const n=3*e;return this.float32[n+0]=t,this.float32[n+1]=i,this.float32[n+2]=r,e}}sc.prototype.bytesPerElement=12,ts(sc,"StructArrayLayout3f12");class ac extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,i,r,n)}emplace(e,t,i,r,n,o){const s=6*e,a=3*e;return this.uint16[s+0]=t,this.uint16[s+1]=i,this.uint16[s+2]=r,this.uint16[s+3]=n,this.float32[a+2]=o,e}}ac.prototype.bytesPerElement=12,ts(ac,"StructArrayLayout4ui1f12");class lc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,r){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i,r)}emplace(e,t,i,r,n){const o=4*e;return this.uint16[o+0]=t,this.uint16[o+1]=i,this.uint16[o+2]=r,this.uint16[o+3]=n,e}}lc.prototype.bytesPerElement=8,ts(lc,"StructArrayLayout4ui8");class cc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,i,r,n,o)}emplace(e,t,i,r,n,o,s){const a=6*e;return this.int16[a+0]=t,this.int16[a+1]=i,this.int16[a+2]=r,this.int16[a+3]=n,this.int16[a+4]=o,this.int16[a+
vendor: 15,787 bytes, line 1
15]=s,e}}cc.prototype.bytesPerElement=12,ts(cc,"StructArrayLayout6i12");class hc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o,s,a,l,c,h,u){const d=this.length;return this.resize(d+1),this.emplace(d,e,t,i,r,n,o,s,a,l,c,h,u)}emplace(e,t,i,r,n,o,s,a,l,c,h,u,d){const f=12*e;return this.int16[f+0]=t,this.int16[f+1]=i,this.int16[f+2]=r,this.int16[f+3]=n,this.uint16[f+4]=o,this.uint16[f+5]=s,this.uint16[f+6]=a,this.uint16[f+7]=l,this.int16[f+8]=c,this.int16[f+9]=h,this.int16[f+10]=u,this.int16[f+11]=d,e}}hc.prototype.bytesPerElement=24,ts(hc,"StructArrayLayout4i4ui4i24");class uc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,i,r,n,o)}emplace(e,t,i,r,n,o,s){const a=10*e,l=5*e;return this.int16[a+0]=t,this.int16[a+1]=i,this.int16[a+2]=r,this.float32[l+2]=n,this.float32[l+3]=o,this.float32[l+4]=s,e}}uc.prototype.bytesPerElement=20,ts(uc,"StructArrayLayout3i3f20");class dc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i,r)}emplace(e,t,i,r,n){const o=4*e;return this.float32[o+0]=t,this.float32[o+1]=i,this.float32[o+2]=r,this.float32[o+3]=n,e}}dc.prototype.bytesPerElement=16,ts(dc,"StructArrayLayout4f16");class fc extends Jl{_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}}fc.prototype.bytesPerElement=4,ts(fc,"StructArrayLayout1ul4");class pc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){const i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){const r=2*e;return this.uint16[r+0]=t,this.uint16[r+1]=i,e}}pc.prototype.bytesPerElement=4,ts(pc,"StructArrayLayout2ui4");class Ac extends Jl{_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,i,r,n,o,s,a,l,c,h,u,d){const f=this.length;return this.resize(f+1),this.emplace(f,e,t,i,r,n,o,s,a,l,c,h,u,d)}emplace(e,t,i,r,n,o,s,a,l,c,h,u,d,f){const p=20*e,A=10*e;return this.int16[p+0]=t,this.int16[p+1]=i,this.int16[p+2]=r,this.int16[p+3]=n,this.int16[p+4]=o,this.float32[A+3]=s,this.float32[A+4]=a,this.float32[A+5]=l,this.float32[A+6]=c,this.int16[p+14]=h,this.uint32[A+8]=u,this.uint16[p+18]=d,this.uint16[p+19]=f,e}}Ac.prototype.bytesPerElement=40,ts(Ac,"StructArrayLayout5i4f1i1ul2ui40");class gc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i,r,n,o,s)}emplace(e,t,i,r,n,o,s,a){const l=8*e;return this.int16[l+0]=t,this.int16[l+1]=i,this.int16[l+2]=r,this.int16[l+4]=n,this.int16[l+5]=o,this.int16[l+6]=s,this.int16[l+7]=a,e}}gc.prototype.bytesPerElement=16,ts(gc,"StructArrayLayout3i2i2i16");class mc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,i,r,n)}emplace(e,t,i,r,n,o){const s=4*e,a=8*e;return this.float32[s+0]=t,this.float32[s+1]=i,this.float32[s+2]=r,this.int16[a+6]=n,this.int16[a+7]=o,e}}mc.prototype.bytesPerElement=16,ts(mc,"StructArrayLayout2f1f2i16");class _c extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,i,r,n,o)}emplace(e,t,i,r,n,o,s){const a=20*e,l=5*e;return this.uint8[a+0]=t,this.uint8[a+1]=i,this.float32[l+1]=r,this.float32[l+2]=n,this.float32[l+3]=o,this.float32[l+4]=s,e}}_c.prototype.bytesPerElement=20,ts(_c,"StructArrayLayout2ub4f20");class yc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i){const r=this.length;return this.resize(r+1),this.emplace(r,e,t,i)}emplace(e,t,i,r){const n=3*e;return this.uint16[n+0]=t,this.uint16[n+1]=i,this.uint16[n+2]=r,e}}yc.prototype.bytesPerElement=6,ts(yc,"StructArrayLayout3ui6");class xc extends Jl{_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,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m,_,y,x){const v=this.length;return this.resize(v+1),this.emplace(v,e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m,_,y,x)}emplace(e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m,_,y,x,v){const w=30*e,E=15*e,b=60*e;return this.int16[w+0]=t,this.int16[w+1]=i,this.int16[w+2]=r,this.float32[E+2]=n,this.float32[E+3]=o,this.uint16[w+8]=s,this.uint16[w+9]=a,this.uint32[E+5]=l,this.uint32[E+6]=c,this.uint32[E+7]=h,this.uint16[w+16]=u,this.uint16[w+17]=d,this.uint16[w+18]=f,this.float32[E+10]=p,this.float32[E+11]=A,this.uint8[b+48]=g,this.uint8[b+49]=m,this.uint8[b+50]=_,this.uint32[E+13]=y,this.int16[w+28]=x,this.uint8[b+58]=v,e}}xc.prototype.bytesPerElement=60,ts(xc,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class vc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m,_,y,x,v,w,E,b,I,C,B,D,T,M,Q,S){const P=this.length;return this.resize(P+1),this.emplace(P,e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m,_,y,x,v,w,E,b,I,C,B,D,T,M,Q,S)}emplace(e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m,_,y,x,v,w,E,b,I,C,B,D,T,M,Q,S,P){const R=20*e,z=40*e,L=80*e;return this.float32[R+0]=t,this.float32[R+1]=i,this.int16[z+4]=r,this.int16[z+5]=n,this.int16[z+6]=o,this.int16[z+7]=s,this.int16[z+8]=a,this.int16[z+9]=l,this.int16[z+10]=c,this.int16[z+11]=h,this.int16[z+12]=u,this.uint16[z+13]=d,this.uint16[z+14]=f,this.uint16[z+15]=p,this.uint16[z+16]=A,this.uint16[z+17]=g,this.uint16[z+18]=m,this.uint16[z+19]=_,this.uint16[z+20]=y,this.uint16[z+21]=x,this.uint16[z+22]=v,this.uint16[z+23]=w,this.uint16[z+24]=E,this.uint16[z+25]=b,this.uint16[z+26]=I,this.uint16[z+27]=C,this.uint32[R+14]=B,this.float32[R+15]=D,this.float32[R+16]=T,this.float32[R+17]=M,this.float32[R+18]=Q,this.uint8[L+76]=S,this.uint16[z+39]=P,e}}vc.prototype.bytesPerElement=80,ts(vc,"StructArrayLayout2f9i15ui1ul4f1ub1ui80");class wc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o){const s=this.length;return this.resize(s+1),this.emplace(s,e,t,i,r,n,o)}emplace(e,t,i,r,n,o,s){const a=6*e;return this.float32[a+0]=t,this.float32[a+1]=i,this.float32[a+2]=r,this.float32[a+3]=n,this.float32[a+4]=o,this.float32[a+5]=s,e}}wc.prototype.bytesPerElement=24,ts(wc,"StructArrayLayout6f24");class Ec extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n){const o=this.length;return this.resize(o+1),this.emplace(o,e,t,i,r,n)}emplace(e,t,i,r,n,o){const s=5*e;return this.float32[s+0]=t,this.float32[s+1]=i,this.float32[s+2]=r,this.float32[s+3]=n,this.float32[s+4]=o,e}}Ec.prototype.bytesPerElement=20,ts(Ec,"StructArrayLayout5f20");class bc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i,r,n,o,s)}emplace(e,t,i,r,n,o,s,a){const l=7*e;return this.float32[l+0]=t,this.float32[l+1]=i,this.float32[l+2]=r,this.float32[l+3]=n,this.float32[l+4]=o,this.float32[l+5]=s,this.float32[l+6]=a,e}}bc.prototype.bytesPerElement=28,ts(bc,"StructArrayLayout7f28");class Ic extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o,s,a,l,c,h){const u=this.length;return this.resize(u+1),this.emplace(u,e,t,i,r,n,o,s,a,l,c,h)}emplace(e,t,i,r,n,o,s,a,l,c,h,u){const d=11*e;return this.float32[d+0]=t,this.float32[d+1]=i,this.float32[d+2]=r,this.float32[d+3]=n,this.float32[d+4]=o,this.float32[d+5]=s,this.float32[d+6]=a,this.float32[d+7]=l,this.float32[d+8]=c,this.float32[d+9]=h,this.float32[d+10]=u,e}}Ic.prototype.bytesPerElement=44,ts(Ic,"StructArrayLayout11f44");class Cc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o,s,a,l){const c=this.length;return this.resize(c+1),this.emplace(c,e,t,i,r,n,o,s,a,l)}emplace(e,t,i,r,n,o,s,a,l,c){const h=9*e;return this.float32[h+0]=t,this.float32[h+1]=i,this.float32[h+2]=r,this.float32[h+3]=n,this.float32[h+4]=o,this.float32[h+5]=s,this.float32[h+6]=a,this.float32[h+7]=l,this.float32[h+8]=c,e}}Cc.prototype.bytesPerElement=36,ts(Cc,"StructArrayLayout9f36");class Bc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){const i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){const r=2*e;return this.float32[r+0]=t,this.float32[r+1]=i,e}}Bc.prototype.bytesPerElement=8,ts(Bc,"StructArrayLayout2f8");class Dc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,r){const n=this.length;return this.resize(n+1),this.emplace(n,e,t,i,r)}emplace(e,t,i,r,n){const o=6*e;return this.uint32[3*e+0]=t,this.uint16[o+2]=i,this.uint16[o+3]=r,this.uint16[o+4]=n,e}}Dc.prototype.bytesPerElement=12,ts(Dc,"StructArrayLayout1ul3ui12");class Tc extends Jl{_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}}Tc.prototype.bytesPerElement=2,ts(Tc,"StructArrayLayout1ui2");class Mc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A){const g=this.length;return this.resize(g+1),this.emplace(g,e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A)}emplace(e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g){const m=16*e;return this.float32[m+0]=t,this.float32[m+1]=i,this.float32[m+2]=r,this.float32[m+3]=n,this.float32[m+4]=o,this.float32[m+5]=s,this.float32[m+6]=a,this.float32[m+7]=l,this.float32[m+8]=c,this.float32[m+9]=h,this.float32[m+10]=u,this.float32[m+11]=d,this.float32[m+12]=f,this.float32[m+13]=p,this.float32[m+14]=A,this.float32[m+15]=g,e}}Mc.prototype.bytesPerElement=64,ts(Mc,"StructArrayLayout16f64");class Qc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,n,o,s){const a=this.length;return this.resize(a+1),this.emplace(a,e,t,i,r,n,o,s)}emplace(e,t,i,r,n,o,s,a){const l=10*e,c=5*e;return this.uint16[l+0]=t,this.uint16[l+1]=i,this.uint16[l+2]=r,this.uint16[l+3]=n,this.float32[c+2]=o,this.float32[c+3]=s,this.float32[c+4]=a,e}}Qc.prototype.bytesPerElement=20,ts(Qc,"StructArrayLayout4ui3f20");class Sc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.int16[1*e+0]=t,e}}Sc.prototype.bytesPerElement=2,ts(Sc,"StructArrayLayout1i2");class Pc extends Jl{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer)}emplaceBack(e){const t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint8[1*e+0]=t,e}}Pc.prototype.bytesPerElement=1,ts(Pc,"StructArrayLayout1ub1");class Rc extends Yl{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]}}Rc.prototype.size=40;class zc extends Ac{get(e){return new Rc(this,e)}}ts(zc,"CollisionBoxArray");class Lc extends Yl{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}}Lc.prototype.size=60;class Fc extends xc{get(e){return new Lc(this,e)}}ts(Fc,"PlacedSymbolArray");class Oc extends Yl{get tileAnchorX(){return this._structArray.float32[this._pos4+0]}get tileAnchorY(){return this._structArray.float32[this._pos4+1]}get projectedAnchorX(){return this._structArray.int16[this._pos2+4]}get projectedAnchorY(){return this._structArray.int16[this._pos2+5]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+6]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+7]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}
vendor: 13,366 bytes, line 1
1get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+11]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get key(){return this._structArray.uint16[this._pos2+13]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+14]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+15]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+17]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+19]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+21]}get featureIndex(){return this._structArray.uint16[this._pos2+22]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+23]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numIconVertices(){return this._structArray.uint16[this._pos2+25]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+26]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+27]}get crossTileID(){return this._structArray.uint32[this._pos4+14]}set crossTileID(e){this._structArray.uint32[this._pos4+14]=e}get textOffset0(){return this._structArray.float32[this._pos4+15]}get textOffset1(){return this._structArray.float32[this._pos4+16]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+17]}get zOffset(){return this._structArray.float32[this._pos4+18]}set zOffset(e){this._structArray.float32[this._pos4+18]=e}get hasIconTextFit(){return this._structArray.uint8[this._pos1+76]}get elevationFeatureIndex(){return this._structArray.uint16[this._pos2+39]}}Oc.prototype.size=80;class kc extends vc{get(e){return new Oc(this,e)}}ts(kc,"SymbolInstanceArray");class Nc extends ec{getoffsetX(e){return this.float32[1*e+0]}}ts(Nc,"GlyphOffsetArray");class Uc extends Kl{getx(e){return this.int16[2*e+0]}gety(e){return this.int16[2*e+1]}}ts(Uc,"SymbolLineVertexArray");class Vc extends Yl{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]}}Vc.prototype.size=12;class Hc extends Dc{get(e){return new Vc(this,e)}}ts(Hc,"FeatureIndexArray");class jc extends pc{geta_centroid_pos0(e){return this.uint16[2*e+0]}geta_centroid_pos1(e){return this.uint16[2*e+1]}}ts(jc,"FillExtrusionCentroidArray");class Gc extends Yl{get a_join_normal_inside0(){return this._structArray.int16[this._pos2+0]}get a_join_normal_inside1(){return this._structArray.int16[this._pos2+1]}get a_join_normal_inside2(){return this._structArray.int16[this._pos2+2]}}Gc.prototype.size=6;class Yc extends Xl{get(e){return new Gc(this,e)}}ts(Yc,"FillExtrusionWallArray");const Wc=Zl([{name:"a_pos",components:2,type:"Int16"}],4),Jc=Zl([{name:"a_road_z_offset",components:1,type:"Float32"}],4),Zc=Zl([{name:"a_pos",components:2,type:"Int16"},{name:"a_height",components:1,type:"Float32"}],4),qc=Zl([{name:"a_pos_normal_3",components:3,type:"Int16"}],4);class Kc{constructor(e=[]){this.segments=e}_prepareSegment(e,t,i,r,n){let o=this.segments.at(-1);return e>Kc.MAX_VERTEX_ARRAY_LENGTH&<(`Max vertices per segment is ${Kc.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!o||o.vertexLength+e>Kc.MAX_VERTEX_ARRAY_LENGTH||o.sortKey!==r||void 0!==n&&o&&void 0!==o.batchIndex&&o.batchIndex!==n)&&(o={vertexOffset:t,primitiveOffset:i,vertexLength:0,primitiveLength:0},void 0!==r&&(o.sortKey=r),void 0!==n&&(o.batchIndex=n),this.segments.push(o)),o}prepareSegment(e,t,i,r,n){return this._prepareSegment(e,t.length,i.length,r,n)}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,i,r){return new Kc([{vertexOffset:e,primitiveOffset:t,vertexLength:i,primitiveLength:r,vaos:{},sortKey:0}])}}function Xc(e,t){return 256*(e=Je(Math.floor(e),0,255))+Je(Math.floor(t),0,255)}Kc.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,ts(Kc,"SegmentVector");const $c=Zl([{name:"a_pattern",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),eh=Zl([{name:"a_pattern_b",components:4,type:"Uint16"}]),th=Zl([{name:"a_dash",components:4,type:"Uint16"}]);class ih{constructor(){this.ids=[],this.uniqueIds=[],this.positions=[],this.indexed=!1}add(e,t,i,r){this.ids.push(rh(e)),this.positions.push(t,i,r)}eachPosition(e,t){const i=rh(e);let r=0,n=this.ids.length-1;for(;r<n;){const e=r+n>>1;this.ids[e]>=i?n=e:r=e+1}for(;this.ids[r]===i;)t(this.positions[3*r],this.positions[3*r+1],this.positions[3*r+2]),r++}static serialize(e,t){const i=new Float64Array(e.ids),r=new Uint32Array(e.positions);return nh(i,r,0,i.length-1),t&&(t.add(i.buffer),t.add(r.buffer)),{ids:i,positions:r}}static deserialize(e){const t=new ih;let i;t.ids=e.ids,t.positions=e.positions;for(const r of t.ids)r!==i&&t.uniqueIds.push(r),i=r;return t.indexed=!0,t}}function rh(e){const t=+e;return Number.isSafeInteger(t)?t:ui(String(e))}function nh(e,t,i,r){for(;i<r;){const n=e[i+r>>1];let o=i-1,s=r+1;for(;;){do{o++}while(e[o]<n);do{s--}while(e[s]>n);if(o>=s)break;oh(e,o,s),oh(t,3*o,3*s),oh(t,3*o+1,3*s+1),oh(t,3*o+2,3*s+2)}s-i<r-s?(nh(e,t,i,s),i=s+1):(nh(e,t,s+1,r),r=s)}}function oh(e,t,i){const r=e[t];e[t]=e[i],e[i]=r}ts(ih,"FeaturePositionMap");class sh{constructor(e){this.gl=e.gl,this.initialized=!1}fetchUniformLocation(e,t){return this.location||this.initialized||(this.location=this.gl.getUniformLocation(e,t),this.initialized=!0),!!this.location}set(e,t,i){throw new Error("Uniform#set() must be implemented by each concrete Uniform")}}class ah extends sh{constructor(e){super(e),this.current=0}set(e,t,i){this.fetchUniformLocation(e,t)&&this.current!==i&&(this.current=i,this.gl.uniform1i(this.location,i))}}class lh extends sh{constructor(e){super(e),this.current=0}set(e,t,i){this.fetchUniformLocation(e,t)&&this.current!==i&&(this.current=i,this.gl.uniform1f(this.location,i))}}class ch extends sh{constructor(e){super(e),this.current=[0,0]}set(e,t,i){this.fetchUniformLocation(e,t)&&(i[0]===this.current[0]&&i[1]===this.current[1]||(this.current=i,this.gl.uniform2f(this.location,i[0],i[1])))}}class hh extends sh{constructor(e){super(e),this.current=[0,0,0]}set(e,t,i){this.fetchUniformLocation(e,t)&&(i[0]===this.current[0]&&i[1]===this.current[1]&&i[2]===this.current[2]||(this.current=i,this.gl.uniform3f(this.location,i[0],i[1],i[2])))}}class uh extends sh{constructor(e){super(e),this.current=[0,0,0,0]}set(e,t,i){this.fetchUniformLocation(e,t)&&(i[0]===this.current[0]&&i[1]===this.current[1]&&i[2]===this.current[2]&&i[3]===this.current[3]||(this.current=i,this.gl.uniform4ui(this.location,i[0],i[1],i[2],i[3])))}}class dh extends sh{constructor(e){super(e),this.current=[0,0,0,0]}set(e,t,i){this.fetchUniformLocation(e,t)&&(i[0]===this.current[0]&&i[1]===this.current[1]&&i[2]===this.current[2]&&i[3]===this.current[3]||(this.current=i,this.gl.uniform4f(this.location,i[0],i[1],i[2],i[3])))}}class fh extends sh{constructor(e){super(e),this.current=Ei.transparent.toPremultipliedRenderColor(null)}set(e,t,i){this.fetchUniformLocation(e,t)&&(i.r===this.current.r&&i.g===this.current.g&&i.b===this.current.b&&i.a===this.current.a||(this.current=i,this.gl.uniform4f(this.location,i.r,i.g,i.b,i.a)))}}class ph extends sh{constructor(e){super(e),this.current=new Float32Array(16)}set(e,t,i){if(!this.fetchUniformLocation(e,t))return;const r=this.current;if(i[12]!==r[12]||i[0]!==r[0])return r.set(i),void this.gl.uniformMatrix4fv(this.location,!1,r);for(let n=1;n<16;n++)if(i[n]!==r[n]){r.set(i),this.gl.uniformMatrix4fv(this.location,!1,r);break}}}class Ah extends sh{constructor(e){super(e),this.current=new Float32Array(4)}set(e,t,i){if(!this.fetchUniformLocation(e,t))return;const r=this.current;for(let n=0;n<4;n++)if(i[n]!==r[n]){r.set(i),this.gl.uniformMatrix2fv(this.location,!1,r);break}}}function gh(e){return[Xc(255*e.r,255*e.g),Xc(255*e.b,255*e.a)]}function mh(e,t,i,r,n,o,s,a){return!!e&&("composite"===e.kind||"source"===e.kind?"none"===e.evaluate(new ea(0,{brightness:o,worldview:a}),t,i,n,r,s):"none"===e.value)}class _h{constructor(e,t,i,r){this.value=e,this.uniformNames=t.map(e=>`u_${e}`),this.type=i,this.context=r}setUniform(e,t,i,r,n){const o=r.constantOr(this.value);t.set(e,n,o instanceof Ei?o.toPremultipliedRenderColor(this.lutExpression&&"constant"===this.lutExpression.kind&&"none"===this.lutExpression.value?null:this.context.lut):o)}getBinding(e,t){return"color"===this.type?new fh(e):new lh(e)}}class yh{constructor(e,t){this.uniformNames=t.map(e=>`u_${e}`),this.pattern=null,this.patternTransition=null,this.pixelRatio=1}setConstantPatternPositions(e,t){this.pixelRatio=e.pixelRatio||1,this.pattern=e.tl.concat(e.br),this.patternTransition=t?t.tl.concat(t.br):this.pattern}setUniform(e,t,i,r,n){let o=null;"u_pattern"!==n&&"u_dash"!==n||(o=this.pattern),"u_pattern_b"===n&&(o=this.patternTransition),"u_pixel_ratio"===n&&(o=this.pixelRatio),o&&t.set(e,n,o)}getBinding(e,t){return"u_pattern"===t||"u_pattern_b"===t||"u_dash"===t?new uh(e):new lh(e)}}class xh{constructor(e,t,i,r){this.expression=e,this.type=i,this.maxValue=0,this.paintVertexAttributes=t.map(e=>({name:`a_${e}`,type:"Float32",components:"color"===i?2:1,offset:0})),this.paintVertexArray=new r}populatePaintArray(e,t,i,r,n,o,s,a){const l=this.paintVertexArray.length,c="composite"===this.expression.kind||"source"===this.expression.kind?this.expression.evaluate(new ea(0,{brightness:o,worldview:a}),t,{},n,r,s):"constant"===this.expression.kind&&this.expression.value,h=mh(this.lutExpression,t,{},r,n,o,s,a);this.paintVertexArray.resize(e),this._setPaintValue(l,e,c,h?null:this.context.lut)}updatePaintArray(e,t,i,r,n,o,s,a){const l="composite"===this.expression.kind||"source"===this.expression.kind?this.expression.evaluate({zoom:0,brightness:s,worldview:a},i,r,void 0,n):"constant"===this.expression.kind&&this.expression.value,c=mh(this.lutExpression,i,r,n,void 0,s,void 0,a);this._setPaintValue(e,t,l,c?null:this.context.lut)}_setPaintValue(e,t,i,r){if("color"===this.type){const n=gh(i.toPremultipliedRenderColor(r));for(let i=e;i<t;i++)this.paintVertexArray.emplace(i,n[0],n[1])}else{for(let r=e;r<t;r++)this.paintVertexArray.emplace(r,i);this.maxValue=Math.max(this.maxValue,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.lutExpression&&"constant"!==this.lutExpression.kind&&(this.lutExpression.isStateDependent||!this.lutExpression.isLightConstant)||"constant"!==this.expression.kind&&(this.expression.isStateDependent||!this.expression.isLightConstant)))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}}class vh{constructor(e,t,i,r,n,o){this.expression=e,this.uniformNames=t.map(e=>`u_${e}_t`),this.type=i,this.useIntegerZoom=r,this.context=n,this.maxValue=0,this.paintVertexAttributes=t.map(e=>({name:`a_${e}`,type:"Float32",components:"color"===i?4:2,offset:0})),this.paintVertexArray=new o}populatePaintArray(e,t,i,r,n,o,s,a){const l=this.expression.evaluate(new ea(this.context.zoom,{brightness:o,worldview:a}),t,{},n,r,s),c=this.expression.evaluate(new ea(this.context.zoom+1,{brightness:o,worldview:a}),t,{},n,r,s),h=mh(this.lutExpression,t,{},r,n,o,s,a),u=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(u,e,l,c,h?null:this.context.lut)}updatePaintArray(e,t,i,r,n,o,s,a){const l=this.expression.evaluate({zoom:this.context.zoom,brightness:s,worldview:a},i,r,void 0,n),c=this.expression.evaluate({zoom:this.context.zoom+1,brightness:s,worldview:a},i,r,void 0,n),h=mh(this.lutExpression,i,r,n,void 0,s,void 0,a);this._setPaintValue(e,t,l,c,h?null:this.context.lut)}_setPaintValue(e,t,i,r,n){if("color"===this.type){const o=gh(i.toPremultipliedRenderColor(n)),s=gh(r.toPremultipliedRenderColor(n));for(let i=e;i<t;i++)this.paintVertexArray.emplace(i,o[0],o[1],s[0],s[1])}else{for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,i,r);this.maxValue=Math.max(this.maxValue,Math.abs(i),Math.abs(r))}}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||!this.expression.isLightConstant))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()}setUniform(e,t,i,r,n){const o=this.useIntegerZoom?Math.floor(i.zoom):i.zoom,s=Je(this.expression.interpolationFactor(o,this.context.zoom,this.context.zoom+1),0,1);t.set(e,n,s)}getBinding(e,t){return new lh(e)}}class wh{constructor(e,t,i,r,n){this.expression=e,this.layerId=n,this.paintVertexAttributes=("array"===i?th:$c).members;for(let o=0;o<t.length;++o);this.paintVertexArray=new r,this.paintTransitionVertexArray=new l
vendor: 6,600 bytes, line 1
1c}populatePaintArray(e,t,i,r){const n=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValues(n,e,t.patterns&&t.patterns[this.layerId],i)}updatePaintArray(e,t,i,r,n,o,s){this._setPaintValues(e,t,i.patterns&&i.patterns[this.layerId],o)}_setPaintValues(e,t,i,r){if(!r||!i)return;const n=r[i[0]],o=r[i[1]];if(n){if(n){const{tl:i,br:r,pixelRatio:o}=n;for(let n=e;n<t;n++)this.paintVertexArray.emplace(n,i[0],i[1],r[0],r[1],o)}if(o){this.paintTransitionVertexArray.resize(this.paintVertexArray.length);const{tl:i,br:r}=o;for(let n=e;n<t;n++)this.paintTransitionVertexArray.emplace(n,i[0],i[1],r[0],r[1])}}}upload(e){const t=this.expression.isStateDependent||!this.expression.isLightConstant;this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,t)),this.paintTransitionVertexArray&&this.paintTransitionVertexArray.length&&(this.paintTransitionVertexBuffer=e.createVertexBuffer(this.paintTransitionVertexArray,eh.members,t))}destroy(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy(),this.paintTransitionVertexBuffer&&this.paintTransitionVertexBuffer.destroy()}}class Eh{constructor(e,t,i=()=>!0){this.binders={},this._buffers=[],this.context=t;const r=[],n=e;for(const o in e.paint._values){const s=n.paint.get(o);if(o.endsWith("-use-theme"))continue;if(!i(o))continue;if(!(s instanceof aa&&Po(s.property.specification)))continue;const a=Ch(o,e.type),l=s.value,c=s.property.specification.type,h=!!s.property.useIntegerZoom,u="line-dasharray"===o||o.endsWith("pattern"),d=n.paint.get(`${o}-use-theme`),f="line-dasharray"===o&&"constant"!==n.layout.get("line-cap").value.kind||d&&"constant"!==d.value.kind;if("constant"!==l.kind||f)if("source"===l.kind||f||u){const t=Th(o,c,"source");this.binders[o]=u?new wh(l,a,c,t,e.id):new xh(l,a,c,t),r.push(`/a_${o}`)}else{const e=Th(o,c,"composite");this.binders[o]=new vh(l,a,c,h,t,e),r.push(`/z_${o}`)}else this.binders[o]=u?new yh(l.value,a):new _h(l.value,a,c,t),r.push(`/u_${o}`);d&&(this.binders[o].lutExpression=d.value)}this.cacheKey=r.sort().join("")}updateExpressions(e){const t=e;for(const i in this.binders){const e=this.binders[i];if(e instanceof xh||e instanceof vh||e instanceof wh){const r=t.paint.get(i);e.expression=r.value}}}getMaxValue(e){const t=this.binders[e];return t instanceof xh||t instanceof vh?t.maxValue:0}populatePaintArrays(e,t,i,r,n,o,s,a){for(const l in this.binders){const c=this.binders[l];c.context=this.context,(c instanceof xh||c instanceof vh||c instanceof wh)&&c.populatePaintArray(e,t,i,r,n,o,s,a)}}setConstantPatternPositions(e,t){for(const i in this.binders){const r=this.binders[i];r instanceof yh&&r.setConstantPatternPositions(e,t)}}getPatternTransitionVertexBuffer(e){const t=this.binders[e];return t instanceof wh?t.paintTransitionVertexBuffer:null}updatePaintArrays(e,t,i,r,n,o,s,a,l,c){let h=!1;const u=Object.keys(e),d=0!==u.length&&!a,f=d?u:t.uniqueIds;this.context.lut=n.lut;for(const p in this.binders){const a=this.binders[p];if(a.context=this.context,(a instanceof xh||a instanceof vh||a instanceof wh)&&a.expression&&a.expression.kind&&"constant"!==a.expression.kind&&(!0===a.expression.isStateDependent||!1===a.expression.isLightConstant)){const u=n.paint.get(p);a.expression=u.value;for(const i of f){const n=e[i.toString()];t.eachPosition(i,(e,t,i)=>{const h=r.feature(e);a.updatePaintArray(t,i,h,n,o,s,l,c)})}if(!d)for(const t of i.uniqueIds){const n=e[t.toString()];i.eachPosition(t,(e,t,i)=>{const h=r.feature(e);a.updatePaintArray(t,i,h,n,o,s,l,c)})}h=!0}}return h}defines(){const e=[];for(const t in this.binders){const i=this.binders[t];(i instanceof _h||i instanceof yh)&&e.push(...i.uniformNames.map(e=>`#define HAS_UNIFORM_${e}`))}return e}getPaintVertexBuffers(){return this._buffers}getUniforms(e){const t=[];for(const i in this.binders){const r=this.binders[i];if(r instanceof _h||r instanceof yh||r instanceof vh)for(const n of r.uniformNames)t.push({name:n,property:i,binding:r.getBinding(e,n)})}return t}setUniforms(e,t,i,r,n){for(const{name:o,property:s,binding:a}of i)this.binders[s].setUniform(e,a,n,r.get(s),o)}updatePaintBuffers(){this._buffers=[];for(const e in this.binders){const t=this.binders[e];(t instanceof xh||t instanceof vh||t instanceof wh)&&t.paintVertexBuffer&&this._buffers.push(t.paintVertexBuffer),t instanceof wh&&t.paintTransitionVertexBuffer&&this._buffers.push(t.paintTransitionVertexBuffer)}}upload(e){for(const t in this.binders){const i=this.binders[t];(i instanceof xh||i instanceof vh||i instanceof wh)&&i.upload(e)}this.updatePaintBuffers()}destroy(){for(const e in this.binders){const t=this.binders[e];(t instanceof xh||t instanceof vh||t instanceof wh)&&t.destroy()}}}class bh{constructor(e,t,i=()=>!0){this.programConfigurations={};for(const r of e)this.programConfigurations[r.id]=new Eh(r,t,i);this.needsUpload=!1,this._featureMap=new ih,this._featureMapWithoutIds=new ih,this._bufferOffset=0,this._idlessCounter=0}populatePaintArrays(e,t,i,r,n,o,s,a,l){for(const c in this.programConfigurations)this.programConfigurations[c].populatePaintArrays(e,t,r,n,o,s,a,l);void 0!==t.id?this._featureMap.add(t.id,i,this._bufferOffset,e):(this._featureMapWithoutIds.add(this._idlessCounter,i,this._bufferOffset,e),this._idlessCounter+=1),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,i,r,n,o,s,a){for(const l of i)this.needsUpload=this.programConfigurations[l.id].updatePaintArrays(e,this._featureMap,this._featureMapWithoutIds,t,l,r,n,o,s||0,a)||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()}updateExpressions(e){const t=new Set;for(const i of e){const e=this.programConfigurations[i.id];e&&(e.updateExpressions(i),t.add(i.id))}for(const i in this.programConfigurations)t.has(i)||delete this.programConfigurations[i]}}const Ih={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-occlusion-opacity":["occlusion_opacity"],"icon-occlusion-opacity":["occlusion_opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-emissive-strength":["emissive_strength"],"icon-emissive-strength":["emissive_strength"],"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"],"symbol-z-offset":["z_offset"],"line-gap-width":["ga
1pwidth"],"line-pattern":["pattern","pixel_ratio","pattern_b"],"fill-pattern":["pattern","pixel_ratio","pattern_b"],"fill-extrusion-pattern":["pattern","pixel_ratio","pattern_b"],"line-dasharray":["dash"],"fill-bridge-guard-rail-color":["structure_color"],"fill-tunnel-structure-color":["structure_color"]};function Ch(e,t){return Ih[e]||[e.replace(`${t}-`,"").replace(/-/g,"_")]}const Bh={"line-pattern":{source:ac,composite:ac},"fill-pattern":{source:ac,composite:ac},"fill-extrusion-pattern":{source:ac,composite:ac},"line-dasharray":{source:lc,composite:lc}},Dh={color:{source:Bc,composite:dc},number:{source:ec,composite:Bc}};function Th(e,t,i){const r=Bh[e];return r&&r[i]||Dh[t][i]}ts(_h,"ConstantBinder"),ts(yh,"PatternConstantBinder"),ts(xh,"SourceExpressionBinder",{omit:["expression"]}),ts(wh,"PatternCompositeBinder",{omit:["expression"]}),ts(vh,"CompositeExpressionBinder",{omit:["expression"]}),ts(Eh,"ProgramConfiguration",{omit:["_buffers"]}),ts(bh,"ProgramConfigurationSet");class Mh{constructor(e,t,i){this.layoutVertexArray=new Kl,this.indexArray=new yc,this.lineIndexArray=new pc,this.triangleSegments=new Kc,this.lineSegments=new Kc,this.programConfigurations=new bh(e,{zoom:t,lut:i}),this.uploaded=!1}update(e,t,i,r,n,o,s,a){this.programConfigurations.updatePaintArrays(e,t,n,i,r,o,s,a)}isEmpty(){return 0===this.layoutVertexArray.length}needsUpload(){return this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Wc.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.lineIndexBuffer=e.createIndexBuffer(this.lineIndexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.lineIndexBuffer.destroy(),this.programConfigurations.destroy(),this.triangleSegments.destroy(),this.lineSegments.destroy())}populatePaintArrays(e,t,i,r,n,o,s){this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,t,i,r,n,o,void 0,s)}}ts(Mh,"FillBufferData");class Qh{constructor(e){this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.fqid),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.lut=e.lut,this.bufferData=new Mh(e.layers,e.zoom,e.lut),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.projection=e.projection,this.sourceLayerIndex=e.sourceLayerIndex,this.sourceLayerName=e.sourceLayerName||"",this.worldview=e.worldview,this.hasAppearances=null}updateFootprints(e,t){}updateAppearances(e,t,i,r){return{hasLayoutChanges:!1,hasUboChanges:!1}}populate(e,t,i,r){this.hasPattern=pl("fill",this.layers,this.pixelRatio,t);const n=this.layers[0].layout.get("fill-sort-key"),o=[];for(const{feature:s,id:a,index:l,sourceLayerIndex:c}of e){const e=this.layers[0]._featureFilter.needGeometry,h=jl(s,e);if(!this.layers[0]._featureFilter.filter(new ea(this.zoom,{worldview:this.worldview,activeFloors:t.activeFloors}),h,i))continue;const u=n?n.evaluate(h,{},i,t.availableImages):void 0,d={id:a,properties:s.properties,type:s.type,sourceLayerIndex:c,index:l,geometry:e?h.geometry:Hl(s,i,r),patterns:{},sortKey:u};o.push(d)}n&&o.sort((e,t)=>
vendor: 1,303 bytes, line 1
1e.sortKey-t.sortKey);for(const s of o){const{geometry:r,index:n,sourceLayerIndex:o}=s;if(this.hasPattern){const e=Al("fill",this.layers,s,this.zoom,this.pixelRatio,t);this.patternFeatures.push(e)}else this.addFeature(s,r,n,i,{},t.availableImages,t.brightness,t.elevationFeatures);t.featureIndex.insert(e[n].feature,r,n,o,this.index)}!this.hasPattern&&this.hdExt&&this.hdExt.buildFrcSegments(this)}update(e,t,i,r,n,o,s){this.bufferData.update(e,t,i,r,n,o,s,this.worldview),this.hdExt&&this.hdExt.update(e,t,i,r,n,o,s,this.worldview)}updateExpressions(e){this.bufferData.programConfigurations.updateExpressions(e),this.hdExt&&this.hdExt.updateExpressions(e)}addFeatures(e,t,i,r,n,o){for(const s of this.patternFeatures)this.addFeature(s,s.geometry,s.index,t,i,r,o,e.elevationFeatures);this.hdExt&&this.hdExt.buildFrcSegments(this)}isEmpty(){return this.bufferData.isEmpty()&&(!this.hdExt||this.hdExt.isEmpty())}uploadPending(){return!this.uploaded||this.bufferData.needsUpload()||null!=this.hdExt&&this.hdExt.needsUpload()}upload(e){this.bufferData.upload(e),this.hdExt&&this.hdExt.upload(e)}destroy(){this.bufferData.destroy(),this.hdExt&&this.hdExt.destroy()}addFeature(e,t,i,r,n,o=[],s,a){const l=this.hdExt?this.hdExt.trackFeatureFrc(e.properties):null,c=this.bufferData.indexArray.length,h=Te(t,500);
vendor: 14,374 bytes, line 1
1null!=this.hdExt&&this.hdExt.handleFeature(e,h,i,r,a,this)||this.addGeometry(h,this.bufferData),this.bufferData.populatePaintArrays(e,i,n,o,r,s,this.worldview),this.hdExt&&this.hdExt.populatePaintArrays(e,i,n,o,r,s,this.worldview),this.hdExt&&this.hdExt.recordFeatureRange(this,c,this.bufferData.indexArray.length,l)}addGeometry(e,t,i,r){let n=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,s=null;i&&(s=i.elevationSampler.constantElevation(i.elevation,i.bias),null!=s&&(n=s,o=s));const a=i?t:null,l=(e,t,r)=>{if(null!=i)if(t.push(e),null!=s)a.elevatedLayoutVertexArray.emplaceBack(s),r.push(s);else{const t=i.elevationSampler.pointElevation(e,i.elevation,i.bias);a.elevatedLayoutVertexArray.emplaceBack(t),r.push(t),n=Math.min(n,t),o=Math.max(o,t)}};for(const c of e){let e=0;for(const t of c)e+=t.length;const n=t.triangleSegments.prepareSegment(e,t.layoutVertexArray,t.indexArray),o=n.vertexLength,s=[],a=[],h=[],u=[],d=[],f=t.layoutVertexArray.length;for(const r of c){if(0===r.length)continue;r!==c[0]&&a.push(s.length/2);const e=t.lineSegments.prepareSegment(r.length,t.layoutVertexArray,t.lineIndexArray),n=e.vertexLength;i&&d.push(t.layoutVertexArray.length-f),l(r[0],h,u),t.layoutVertexArray.emplaceBack(r[0].x,r[0].y),t.lineIndexArray.emplaceBack(n+r.length-1,n),s.push(r[0].x),s.push(r[0].y);for(let i=1;i<r.length;i++)l(r[i],h,u),t.layoutVertexArray.emplaceBack(r[i].x,r[i].y),t.lineIndexArray.emplaceBack(n+i-1,n+i),s.push(r[i].x),s.push(r[i].y);e.vertexLength+=r.length,e.primitiveLength+=r.length}const p=Ua(s,a);for(let i=0;i<p.length;i+=3)t.indexArray.emplaceBack(o+p[i],o+p[i+1],o+p[i+2]);if(p.length>0&&i&&r){const e=i.elevation.isTunnel(),t=i.elevation.safeArea,n=r.addVertices(h,u);r.addTriangles(p,n,e);const o=d.length;if(o>0){for(let s=0;s<o-1;s++)r.addRenderableRing(i.index,d[s]+n,d[s+1]-d[s],e,t,i.featureInfo);r.addRenderableRing(i.index,d[o-1]+n,h.length-d[o-1],e,t,i.featureInfo)}}n.vertexLength+=e,n.primitiveLength+=p.length/3}return[n,o]}}ts(Qh,"FillBucket",{omit:["layers","patternFeatures"]});const Sh=Zl([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"},{name:"a_linesofar",components:1,type:"Float32"}],4),Ph=Zl([{name:"a_z_offset_width",components:4,type:"Float32"}],4),Rh=Zl([{name:"a_elevation_id_col",components:3,type:"Float32"}],4),zh=Zl([{name:"a_elevation_ground_scale",components:1,type:"Float32"}],4),{members:Lh}=Sh,Fh=Zl([{name:"a_packed",components:3,type:"Float32"}]),{members:Oh}=Fh,kh=Zl([{name:"a_pattern_data",components:3,type:"Float32"}]),{members:Nh}=kh;class Uh{constructor(e,t,i,r,n){for(this.properties=Object.create(null),this.extent=i,this.type=0,this.id=void 0,this._pbf=e,this._geometry=-1,this._keys=r,this._values=n;e.pos<t;){const t=e.readVarint();if(8===t)this.id=e.readVarint();else if(18===t){const t=e.readVarint()+e.pos;for(;e.pos<t;){const t=r[e.readVarint()],i=n[e.readVarint()];this.properties[t]=i}}else 24===t?this.type=e.readVarint():34===t?(this._geometry=e.pos,e.skip(t)):e.skip(t)}}loadGeometry(){if(this._geometry<0)throw new Error("feature has no geometry");const e=this._pbf;e.pos=this._geometry;const t=e.readVarint()+e.pos,i=[];let r,n=1,o=0,s=0,a=0;for(;e.pos<t;){if(o<=0){const t=e.readVarint();if(n=7&t,o=t>>3,0===o)continue}if(o--,1===n)s+=e.readSVarint(),a+=e.readSVarint(),r&&i.push(r),r=[new we(s,a)];else if(2===n)s+=e.readSVarint(),a+=e.readSVarint(),r&&r.push(new we(s,a));else{if(7!==n)throw new Error(`unknown command ${n}`);r&&r.push(r[0].clone())}}return r&&i.push(r),i}bbox(){if(this._geometry<0)throw new Error("feature has no geometry");const e=this._pbf;e.pos=this._geometry;const t=e.readVarint()+e.pos;let i=1,r=0,n=0,o=0,s=1/0,a=-1/0,l=1/0,c=-1/0;for(;e.pos<t;){if(r<=0){const t=e.readVarint();if(i=7&t,r=t>>3,0===r)continue}if(r--,1===i||2===i)n+=e.readSVarint(),o+=e.readSVarint(),n<s&&(s=n),n>a&&(a=n),o<l&&(l=o),o>c&&(c=o);else if(7!==i)throw new Error(`unknown command ${i}`)}return[s,l,a,c]}toGeoJSON(e,t,i){const r=this.extent*Math.pow(2,i),n=this.extent*e,o=this.extent*t,s=this.loadGeometry();function a(e){return[360*(e.x+n)/r-180,360/Math.PI*Math.atan(Math.exp((1-2*(e.y+o)/r)*Math.PI))-90]}function l(e){return e.map(a)}let c;if(1===this.type){const e=[];for(const i of s)e.push(i[0]);const t=l(e);c=1===e.length?{type:"Point",coordinates:t[0]}:{type:"MultiPoint",coordinates:t}}else if(2===this.type){const e=s.map(l);c=1===e.length?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}}else{if(3!==this.type)throw new Error("unknown feature type");{const e=function(e){const t=e.length;if(t<=1)return[e];const i=[];let r,n;for(let o=0;o<t;o++){const t=Vh(e[o]);0!==t&&(void 0===n&&(n=t<0),n===t<0?(r&&i.push(r),r=[e[o]]):r&&r.push(e[o]))}return r&&i.push(r),i}(s),t=[];for(const i of e)t.push(i.map(l));c=1===t.length?{type:"Polygon",coordinates:t[0]}:{type:"MultiPolygon",coordinates:t}}}const h={type:"Feature",geometry:c,properties:this.properties};return null!=this.id&&(h.id=this.id),h}}function Vh(e){let t=0;for(let i,r,n=0,o=e.length,s=o-1;n<o;s=n++)i=e[n],r=e[s],t+=(r.x-i.x)*(i.y+r.y);return t}Uh.types=["Unknown","Point","LineString","Polygon"];class Hh{constructor(e,t){for(this.version=1,this.name="",this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],void 0===t&&(t=e.length);e.pos<t;){const t=e.readVarint();10===t?this.name=e.readString():18===t?(this._features.push(e.pos),e.skip(t)):26===t?this._keys.push(e.readString()):34===t?this._values.push(jh(e)):40===t?this.extent=e.readVarint():120===t?this.version=e.readVarint():e.skip(t)}this.length=this._features.length}feature(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];const t=this._pbf.readVarint()+this._pbf.pos;return new Uh(this._pbf,t,this.extent,this._keys,this._values)}}function jh(e){let t=null;const i=e.readVarint()+e.pos;for(;e.pos<i;){const i=e.readVarint();t=10===i?e.readString():21===i?e.readFloat():25===i?e.readDouble():32===i?e.readVarint(!0):40===i?e.readVarint():48===i?e.readSVarint():56===i?e.readBoolean():(e.skip(i),null)}if(null==t)throw new Error("unknown feature value");return t}class Gh{constructor(e,t=e.length){const i=Object.create(null);for(;e.pos<t;){const t=e.readVarint();if(26===t){const t=new Hh(e,e.readVarint()+e.pos);t.length&&(i[t.name]=t)}else e.skip(t)}this.layers=i}}function Yh(e,t){for(let i=0;i<e.length;i++)if(ru(t,e[i]))return!0;for(let i=0;i<t.length;i++)if(ru(e,t[i]))return!0;return!!qh(e,t)}function Wh(e,t,i){return!!ru(e,t)||!!eu(t,e,i)}function Jh(e,t){if(1===e.length)return iu(t,e[0]);for(let i=0;i<t.length;i++){const r=t[i];for(let t=0;t<r.length;t++)if(ru(e,r[t]))return!0}for(let i=0;i<e.length;i++)if(iu(t,e[i]))return!0;for(let i=0;i<t.length;i++)if(qh(e,t[i]))return!0;return!1}function Zh(e,t,i){if(e.length>1){if(qh(e,t))return!0;for(let r=0;r<t.length;r++)if(eu(t[r],e,i))return!0}for(let r=0;r<e.length;r++)if(eu(e[r],t,i))return!0;return!1}function qh(e,t){if(0===e.length||0===t.length)return!1;for(let i=0;i<e.length-1;i++){const r=e[i],n=e[i+1];for(let e=0;e<t.length-1;e++)if(Kh(r,n,t[e],t[e+1]))return!0}return!1}function Kh(e,t,i,r){return ct(e,i,r)!==ct(t,i,r)&&ct(e,t,i)!==ct(e,t,r)}function Xh(e,t,i){return(e.x-i.x)*(t.y-i.y)-(e.y-i.y)*(t.x-i.x)}function $h(e,t,i,r){const n=Xh(e,t,r),o=Xh(e,t,i);if(Math.sign(n)===Math.sign(o))return;const s=Xh(i,r,e),a=s+o-n;return Math.sign(s)!==Math.sign(a)?[s/(s-a),o/(o-n)]:void 0}function eu(e,t,i){const r=i*i;if(1===t.length)return e.distSqr(t[0])<r;for(let n=1;n<t.length;n++)if(tu(e,t[n-1],t[n])<r)return!0;return!1}function tu(e,t,i){const r=t.distSqr(i);if(0===r)return e.distSqr(t);const n=((e.x-t.x)*(i.x-t.x)+(e.y-t.y)*(i.y-t.y))/r;return e.distSqr(n<0?t:n>1?i:i.sub(t)._mult(n)._add(t))}function iu(e,t){let i,r,n,o=!1;for(let s=0;s<e.length;s++){i=e[s];for(let e=0,s=i.length-1;e<i.length;s=e++)r=i[e],n=i[s],r.y>t.y!=n.y>t.y&&t.x<(n.x-r.x)*(t.y-r.y)/(n.y-r.y)+r.x&&(o=!o)}return o}function ru(e,t){let i=!1;for(let r=0,n=e.length-1;r<e.length;n=r++){const o=e[r],s=e[n];o.y>t.y!=s.y>t.y&&t.x<(s.x-o.x)*(t.y-o.y)/(s.y-o.y)+o.x&&(i=!i)}return i}function nu(e,t,i,r,n){for(const s of e)if(t<=s.x&&i<=s.y&&r>=s.x&&n>=s.y)return!0;const o=[new we(t,i),new we(t,n),new we(r,n),new we(r,i)];if(e.length>2)for(const s of o)if(ru(e,s))return!0;for(let s=0;s<e.length-1;s++)if(ou(e[s],e[s+1],o))return!0;return!1}function ou(e,t,i){const r=i[0],n=i[2];if(e.x<r.x&&t.x<r.x||e.x>n.x&&t.x>n.x||e.y<r.y&&t.y<r.y||e.y>n.y&&t.y>n.y)return!1;const o=ct(e,t,i[0]);return o!==ct(e,t,i[1])||o!==ct(e,t,i[2])||o!==ct(e,t,i[3])}function su(e,t,i,r,n,o){let s=t.y-e.y,a=e.x-t.x;if(o=o||0){const e=s*s+a*a;if(0===e)return!0;const t=Math.sqrt(e);s/=t,a/=t}return!((i.x-e.x)*s+(i.y-e.y)*a-o<0||(r.x-e.x)*s+(r.y-e.y)*a-o<0||(n.x-e.x)*s+(n.y-e.y)*a-o<0)}function au(e,t,i,r,n,o,s){return!(su(e,t,r,n,o,s)||su(t,i,r,n,o,s)||su(i,e,r,n,o,s)||su(r,n,e,t,i,s)||su(n,o,e,t,i,s)||su(o,r,e,t,i,s))}class lu extends we{constructor(e,t,i){super(e,t),this.z=i}}class cu extends lu{constructor(e,t,i,r){super(e,t,i),this.w=r}}function hu(e,t,i,r){const n="x"===i?"y":"x",o=(r-e[i])/(t[i]-e[i]);e[n]=Math.round(e[n]+(t[n]-e[n])*o),e[i]=r,Object.hasOwn(e,"z")&&(e.z=vi(e.z,t.z,o)),Object.hasOwn(e,"w")&&(e.w=vi(e.w,t.w,o))}function uu(e,t,i,r){const n=i,o=r;for(const s of["x","y"]){let i=e,r=t;i[s]>=r[s]&&(i=t,r=e),i[s]<n&&r[s]>n&&hu(i,r,s,n),i[s]<o&&r[s]>o&&hu(r,i,s,o)}}function du(e,t,i,r,n,o){const s=[];for(let a=0;a<e.length;a++){const l=e[a];let c;const h=s.length;let u=0;for(let e=0;e<l.length-1;e++){let h=l[e],d=l[e+1],f=0;const p=u;let A,g;o&&(f=Math.hypot(d.x-h.x,d.y-h.y),u+=f,A=h,g=d),h.x<t&&d.x<t||(h.x<t?h=new we(t,h.y+(t-h.x)/(d.x-h.x)*(d.y-h.y))._round():d.x<t&&(d=new we(t,h.y+(t-h.x)/(d.x-h.x)*(d.y-h.y))._round()),h.y<i&&d.y<i||(h.y<i?h=new we(h.x+(i-h.y)/(d.y-h.y)*(d.x-h.x),i)._round():d.y<i&&(d=new we(h.x+(i-h.y)/(d.y-h.y)*(d.x-h.x),i)._round()),h.x>=r&&d.x>=r||(h.x>=r?h=new we(r,h.y+(r-h.x)/(d.x-h.x)*(d.y-h.y))._round():d.x>=r&&(d=new we(r,h.y+(r-h.x)/(d.x-h.x)*(d.y-h.y))._round()),h.y>=n&&d.y>=n||(h.y>=n?h=new we(h.x+(n-h.y)/(d.y-h.y)*(d.x-h.x),n)._round():d.y>=n&&(d=new we(h.x+(n-h.y)/(d.y-h.y)*(d.x-h.x),n)._round()),c&&h.equals(c.at(-1))||(c=[h],s.push(c),o&&o.push({progress:{min:p+pu(A,g,h)*f,max:1},parentIndex:a,prevPoint:A,nextPoint:g})),c.push(d),o&&(o.at(-1).progress.max=p+pu(A,g,d)*f,o.at(-1).nextPoint=g)))))}if(o&&u>0)for(let e=h;e<s.length;e++)o[e].progress.min/=u,o[e].progress.max/=u}return s}function fu(e,t,i,r,n){if(e.length<2)return void r.push(e);const o=[];for(;t.valid();){const[i,r]=t.get();for(let t=0;t<e.length-1;t++){const n=e[t],s=e[t+1],a=$h(n,s,i,r);if(a){const[e]=a,i=new we(vi(n.x,s.x,e),vi(n.y,s.y,e));o.push({t:t+e,distance:0,point:i})}}t.next()}if(0===o.length)return void r.push(e);o.sort((e,t)=>e.t-t.t);let s=0,a=0,l=[];for(r.push(l);s!==e.length;){if(a===o.length){for(;s!==e.length;)0!==l.length&&l.at(-1).equals(e[s])||l.push(e[s]),s++;break}o[a].t<=s?(0!==l.length&&l.at(-1).equals(o[a].point)||l.push(o[a].point),Math.trunc(o[a].t),a++):(0!==l.length&&l.at(-1).equals(e[s])||l.push(e[s]),s++)}}function pu(e,t,i){return e.x!==t.x?(i.x-e.x)/(t.x-e.x):e.y!==t.y?(i.y-e.y)/(t.y-e.y):0}function Au(e,{width:t,height:i},r,n){if(n){if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==t*i*r)throw new RangeError("mismatched image size")}else n=new Uint8Array(t*i*r);return e.width=t,e.height=i,e.data=n,e}function gu(e,t,i){const{width:r,height:n}=t;r===e.width&&n===e.height||(mu(e,t,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,r),height:Math.min(e.height,n)},i,null),e.width=r,e.height=n,e.data=t.data)}function mu(e,t,i,r,n,o,s,a){if(0===n.width||0===n.height)return t;if(n.width>e.width||n.height>e.height||i.x>e.width-n.width||i.y>e.height-n.height)throw new RangeError("out of range source coordinates for image copy");if(n.width>t.width||n.height>t.height||r.x>t.width-n.width||r.y>t.height-n.height)throw new RangeError("out of range destination coordinates for image copy");const l=e.data,c=t.data,h=4===o&&a;for(let u=0;u<n.height;u++){const a=((i.y+u)*e.width+i.x)*o,d=((r.y+u)*t.width+r.x)*o;if(h)for(let e=0;e<n.width;e++){const t=a+e*o+3,i=d+e*o;c[i+0]=255,c[i+1]=255,c[i+2]=255,c[i+3]=l[t]}else if(s)for(let e=0;e<n.width;e++){const t=a+e*o,i=d+e*o,r=new Ei(l[t+0]/255,l[t+1]/255,l[t+2]/255,l[t+3]).toNonPremultipliedRenderColor(s).toArray();c[i+0]=r[0],c[i+1]=r[1],c[i+2]=r[2],c[i+3]=r[3]}else for(let e=0;e<n.width*o;e++)c[d+e]=l[a+e]}return t}class _u{constructor(e,t){Au(this,e,1,t)}resize(e){gu(this,new _u(e),1)}clone(){return new _u({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,i,r,n){mu(e,t,i,r,n,1,null)}}class yu{constructor(e,t){Au(this,e,4,t)}resize(e){gu(this,new yu(e),4)}replace(e,t){t?this.data.set(e):this.data=e instanceof Uint8ClampedArray?new Uint8Array(e.buffer):e}clone(){return new yu({width:this.width,height:this.height},new Uint8Array(this.data))}static copy(e,t,i,r,n,o,s){mu(e,t,i,r,n,4,o,s)}}class xu{constructor(e,t){this.width=e.width,this.height=e.height,this.data=t instanceof Uint8Array?new Float32Array(t.buffer):t}}ts(_u,"AlphaImage"),ts(yu,"RGBAImage");class vu{constructor(e,t){this.width=e,this.height=t,this.nextRow=0,this.image=new _u({width:e,height:t}),this.positions={},this.uploaded=!1}getDash(e,t){const i=this.getKey(e,t);return this.positions[i]}trim(){const e=this.width,t=this.height=tt(this.nextRow);this.image.resize({width:e,height:t})}getKey(e,t){return e.join(",")+t}getDashRanges(e,t,i){const r=[];let n=e.length%2==1?-e.at(-1)*i:0,o=e[0]*i,s=!0;r.push({left:n,right:o,isDash:s,zeroLength:0===e[0]});let a=e[0];for(let l=1;l<e.length;l++){s=!s;const t=e[l];n=a*i,a+=t,o=a*i,r.push({left:n,right:o,isDash:s,zeroLength:0===t})}return r}addRoundDash(e,t,i){const r=t/2;for(let n=-i;n<=i;n++){const t=this.width*(this.nextRow+i+n);let o=0,s=e[o];for(let a=0;a<this.width;a++){a/s.right>1&&(s=e[++o]);const l=Math.abs(a-s.left),c=Math.abs(a-s.right),h=Math.min(l,c);let u;const d=n/i*(r+1);if(s.isDash){const e=r-Math.abs(d);u=Math.sqrt(h*h+e*e)}else u=r-Math.sqrt(h*h+d*d);this.image.data[t+a]=Math.max(0,Math.min(255,u+128))}}}addRegularDash(e,t){for(let a=e.length-1;a>=0;--a){const t=e[a],i=e[a+1];t.zeroLength?e.splice(a,1):i&&i.isDash===t.isDash&&(i.left=t.left,e.splice(a,1))}const i=e[0],r=e.at(-1);
vendor: 17,497 bytes, line 1
1i.isDash===r.isDash&&(i.left=r.left-this.width,r.right=i.right+this.width);const n=this.width*this.nextRow;let o=0,s=e[o];for(let a=0;a<this.width;a++){a/s.right>1&&(s=e[++o]);const i=Math.abs(a-s.left),r=Math.abs(a-s.right),l=Math.min(i,r);this.image.data[n+a]=Math.max(0,Math.min(255,(s.isDash?l:-l)+t+128))}}addDash(e,t){const i=this.getKey(e,t);if(this.positions[i])return this.positions[i];const r="round"===t,n=r?7:0,o=2*n+1;if(this.nextRow+o>this.height)return lt("LineAtlas out of space"),null;0===e.length&&e.push(1);let s=0;for(let h=0;h<e.length;h++)e[h]<0&&(lt("Negative value is found in line dasharray, replacing values with 0"),e[h]=0),s+=e[h];if(0!==s){const i=this.width/s,o=this.getDashRanges(e,this.width,i);r?this.addRoundDash(o,i,n):this.addRegularDash(o,"square"===t?.5*i:0)}const a=this.nextRow+n;this.nextRow+=o;const l=Math.floor(s),c={tl:[a,n],br:[l,Math.round(65535*(s-l))]};return this.positions[i]=c,c}}ts(vu,"LineAtlas");const wu="3d_elevation_id",Eu="level",bu=Uh.types,Iu=Math.cos(Math.PI/180*37.5),Cu=Math.cos(Math.PI/180*5);class Bu{constructor(e){this.evaluationGlobals={zoom:0,lineProgress:void 0},this.elevationType="none",this.isSeaLevelReference=!1,this.showElevationIdDebug=!1,this.zoom=e.zoom,this.evaluationGlobals.zoom=this.zoom,this.overscaling=e.overscaling,this.pixelRatio=e.pixelRatio,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.fqid),this.index=e.index,this.projection=e.projection,this.hasPattern=!1,this.hasCrossSlope=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(e=>{this.gradients[e.id]={}}),this.layoutVertexArray=new oc,this.layoutVertexArray2=new sc,this.patternVertexArray=new sc,this.indexArray=new yc,this.programConfigurations=new bh(e.layers,{zoom:e.zoom,lut:e.lut}),this.segments=new Kc,this.sourceLayerName=e.sourceLayerName||"",this.maxLineLength=0,this.zOffsetVertexArray=new dc,this.elevationIdColVertexArray=new sc,this.elevationGroundScaleVertexArray=new ec,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.tessellationStep=e.tessellationStep?e.tessellationStep:128,this.worldview=e.worldview,this.hasAppearances=null}updateFootprints(e,t){}updateAppearances(e,t,i,r){return{hasLayoutChanges:!1,hasUboChanges:!1}}populate(e,t,i,r){this.showElevationIdDebug=t.showElevationIdDebug,this.hasPattern=pl("line",this.layers,this.pixelRatio,t);const n=this.layers[0].layout.get("line-sort-key");this.tileToMeter=Rl(i);const o=this.layers[0].layout.get("line-elevation-reference");if("hd-road-markup"===o)this.elevationType="road";else{const e=this.layers[0].layout.get("line-z-offset"),t=e.isConstant()&&!e.constantOr(0);this.elevationType="sea"!==o&&"ground"!==o&&t?"none":"offset","offset"===this.elevationType&&"none"===o&<(`line-elevation-reference: ground is used for the layer ${this.layerIds[0]} because non-zero line-z-offset value was found.`),this.isSeaLevelReference="sea"===o}const s=this.layers[0].layout.get("line-cross-slope");this.hasCrossSlope="offset"===this.elevationType&&void 0!==s;const a=[];for(const{feature:u,id:d,index:f,sourceLayerIndex:p}of e){const e=this.layers[0]._featureFilter.needGeometry,o=jl(u,e);if(!this.layers[0]._featureFilter.filter(new ea(this.zoom,{worldview:this.worldview,activeFloors:t.activeFloors}),o,i))continue;const s=n?n.evaluate(o,{},i):void 0,l={id:d,properties:u.properties,type:u.type,sourceLayerIndex:p,index:f,geometry:e?o.geometry:Hl(u,i,r),patterns:{},sortKey:s};a.push(l)}n&&a.sort((e,t)=>e.sortKey-t.sortKey);const{lineAtlas:l,featureIndex:c}=t,h=this.addConstantDashes(l);for(const u of a){const{geometry:r,index:n,sourceLayerIndex:o}=u;if(h&&this.addFeatureDashes(u,l),this.hasPattern){const e=Al("line",this.layers,u,this.zoom,this.pixelRatio,t);this.patternFeatures.push(e)}else this.addFeature(u,r,n,i,l.positions,t.availableImages,t.brightness,t.elevationFeatures);c.insert(e[n].feature,r,n,o,this.index)}!this.hasPattern&&this.hdExt&&this.hdExt.buildFrcSegments(this)}addConstantDashes(e){let t=!1;for(const i of this.layers){const r=i.paint.get("line-dasharray").value,n=i.layout.get("line-cap").value;if("constant"!==r.kind||"constant"!==n.kind)t=!0;else{const t=n.value,i=r.value;if(!i)continue;e.addDash(i,t)}}return t}addFeatureDashes(e,t){const i=this.zoom;for(const r of this.layers){const n=r.paint.get("line-dasharray").value,o=r.layout.get("line-cap").value;if("constant"===n.kind&&"constant"===o.kind)continue;let s,a;if("constant"===n.kind){if(s=n.value,!s)continue}else s=n.evaluate({zoom:i},e);a="constant"===o.kind?o.value:o.evaluate({zoom:i},e),t.addDash(s,a),e.patterns[r.id]=[t.getKey(s,a)]}}update(e,t,i,r,n,o,s,a,l){this.programConfigurations.updatePaintArrays(e,t,n,i,r,o,s,l)}updateExpressions(e){this.programConfigurations.updateExpressions(e)}addFeatures(e,t,i,r,n,o){for(const s of this.patternFeatures)this.addFeature(s,s.geometry,s.index,t,i,r,o,e.elevationFeatures);this.hdExt&&this.hdExt.buildFrcSegments(this)}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,Oh)),0!==this.patternVertexArray.length&&(this.patternVertexBuffer=e.createVertexBuffer(this.patternVertexArray,Nh)),!this.zOffsetVertexBuffer&&this.zOffsetVertexArray.length>0&&(this.zOffsetVertexBuffer=e.createVertexBuffer(this.zOffsetVertexArray,Ph.members,!0)),!this.elevationIdColVertexBuffer&&this.elevationIdColVertexArray.length>0&&(this.elevationIdColVertexBuffer=e.createVertexBuffer(this.elevationIdColVertexArray,Rh.members,!0)),!this.elevationGroundScaleVertexBuffer&&this.elevationGroundScaleVertexArray.length>0&&(this.elevationGroundScaleVertexBuffer=e.createVertexBuffer(this.elevationGroundScaleVertexArray,zh.members,!0)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Lh),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.zOffsetVertexBuffer&&this.zOffsetVertexBuffer.destroy(),this.elevationIdColVertexBuffer&&this.elevationIdColVertexBuffer.destroy(),this.elevationGroundScaleVertexBuffer&&this.elevationGroundScaleVertexBuffer.destroy(),this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e,t){let i,r;if(t&&t>0?(i=`mapbox_clip_start_${t}`,r=`mapbox_clip_end_${t}`):(i="mapbox_clip_start",r="mapbox_clip_end"),e.properties&&Object.hasOwn(e.properties,i)&&Object.hasOwn(e.properties,r))return{start:+e.properties[i],end:+e.properties[r]}}addFeature(e,t,i,r,n,o,s,a){const l=this.layers[0].layout,c=this.hdExt?this.hdExt.trackFeatureFrc(e.properties):null,h=this.indexArray.length,u=l.get("line-join").evaluate(e,{}),d=l.get("line-cap").evaluate(e,{}),f=l.get("line-miter-limit"),p=l.get("line-round-limit");this.lineClips=this.lineFeatureClips(e),this.lineFeature=e;const A=!(!e.properties||!Object.hasOwn(e.properties,"mapbox_line_metrics"))&&e.properties.mapbox_line_metrics;this.zOffsetValue=l.get("line-z-offset").value;const g=this.layers[0].paint,m=g.get("line-width").value;"constant"!==m.kind&&!1===m.isLineProgressConstant&&(this.variableWidthValue=m);const _=g.get("line-emissive-strength").value;if("constant"!==_.kind&&!1===_.isLineProgressConstant&&(this.variableEmissiveStrengthValue=_),this.isSeaLevelReference){const e=l.get("line-elevation-ground-scale").value;"constant"===e.kind&&0===e.value||(this.elevationGroundScaleValue=e)}if(null==this.hdExt||!this.hdExt.handleFeature(e,t,r,a,u,d,f,p,this))for(let y=0;y<t.length;y++)this.addLine(t[y],e,r,u,d,f,p,void 0,A&&y>0?y:null);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,i,n,o,r,s,void 0,this.worldview),this.hdExt&&this.hdExt.recordFeatureRange(this,h,this.indexArray.length,c)}fillNonElevatedRoadSegment(e){for(let t=e;t<this.layoutVertexArray.length;t++)this.zOffsetVertexArray.emplaceBack(0,0,0,0),this.showElevationIdDebug&&this.elevationIdColVertexArray.emplaceBack(0,0,0)}addLine(e,t,i,r,n,o,s,a,l){this.distance=0,this.prevDistance=0,this.scaledDistance=0,this.totalDistance=0,this.totalFeatureLength=0,this.lineSoFar=0,this.currentVertex=void 0,this.lineClips=l?this.lineFeatureClips(t,l):this.lineClips;const c="none"===r;this.patternJoinNone=this.hasPattern&&c,this.currentLineJoinType=r,this.segmentStart=0,this.segmentStartf32=0,this.segmentPoints=[];const h=a&&a.progress.min>0,u=a&&a.progress.max<1;if(this.lineClips){let i={min:this.lineClips.start,max:this.lineClips.end},r=1;if(a){const e=this.lineClips.end-this.lineClips.start;i=function(e,t,i){return{min:Ct(e.min,t,i),max:Ct(e.max,t,i)}}(a.progress,{min:0,max:1},i),e>0&&(r=(i.max-i.min)/e)}const n=+t.properties.mapbox_clip_feature_len,o=+t.properties.mapbox_clip_seg_len;if(Number.isNaN(n)||Number.isNaN(o)){for(let i=0;i<e.length-1;i++)this.totalDistance+=e[i].dist(e[i+1]);const t=this.totalDistance/(i.max-i.min);this.totalFeatureLength=Number.isFinite(t)?t:0,this.lineClips.start=i.min,this.lineClips.end=i.max,this.maxLineLength=Math.max(this.maxLineLength,this.totalDistance)}else this.totalFeatureLength=n,this.distance=o*r,this.lineClips.start=i.min,this.lineClips.end=i.max,this.maxLineLength=Math.max(this.maxLineLength,this.distance);this.lineClipsArray.push(this.lineClips),this.updateScaledDistance()}const d="Polygon"===bu[t.type];let f=e.length;for(;f>=2&&e[f-1].equals(e[f-2]);)f--;let p=0;for(;p<f-1&&e[p].equals(e[p+1]);)p++;if(f<(d?3:2))return;"bevel"===r&&(o=1.05);const A=this.segments.prepareSegment(10*f,this.layoutVertexArray,this.indexArray);let g,m,_,y,x,v,w,E;a&&a.prevDir&&(v=a.prevDir.perp()),a&&a.nextDir&&(w=a.nextDir.perp()),this.e1=this.e2=-1,d&&(g=e[f-2],x=e[p].sub(g)._unit()._perp());for(let b=p;b<f;b++){if(_=b===f-1?d?e[p+1]:void 0:e[b+1],_&&e[b].equals(_))continue;x&&(y=x),g&&(m=g),g=e[b],E=this.evaluateLineProgressFeatures(m?m.dist(g):0),x=_?_.sub(g)._unit()._perp():y,y=y||x;const t=m&&_;let i=t?r:d||c?"butt":n;const a=y.x*x.x+y.y*x.y;if(c){const e=function(e){if(e.patternJoinNone){const t=e.segmentPoints.length/2,i=e.lineSoFar-e.segmentStart;for(let r=0;r<t;++r){const t=e.segmentPoints[2*r+1],n=Math.round(e.segmentPoints[2*r])+.5+.25*t;e.patternVertexArray.emplaceBack(n,i,e.segmentStart),e.patternVertexArray.emplaceBack(n,i,e.segmentStart)}e.segmentPoints.length=0}e.e1=e.e2=-1};if(t&&a<Cu){this.updateDistance(m,g),this.addCurrentVertex(g,y,1,1,A,E),e(this),this.addCurrentVertex(g,x,-1,-1,A,E);continue}if(m){if(!_){this.updateDistance(m,g),this.addCurrentVertex(g,y,1,1,A,E),e(this);continue}i="miter"}}let l=y.add(x);0===l.x&&0===l.y||l._unit();const I=l.x*x.x+l.y*x.y,C=0!==I?1/I:1/0,B=2*Math.sqrt(2-2*I),D=I<Iu&&m&&_,T=y.x*x.y-y.y*x.x>0,M=this.overscaling<=16?122880/(512*this.overscaling):0;if(t&&"round"===i)if(C<s)i="miter";else if(C<=2){const e=Du(g,-10,8202);i="offset"===this.elevationType&&(e||this.hasCrossSlope)?"miter":"fakeround"}if("miter"===i&&C>o&&(i="bevel"),"bevel"===i&&(C>2&&(i="flipbevel"),C<o&&(i="miter")),m&&!("miter"===i&&D)&&this.updateDistance(m,g),"miter"===i)if(D){const e=g.dist(m);if(e>2*M){const t=g.sub(g.sub(m)._mult(M/e)._round());this.updateDistance(m,t),this.addCurrentVertex(t,y,0,0,A,E),m=t}this.updateDistance(m,g),l._mult(C),this.addCurrentVertex(g,l,0,0,A,E);const t=g.dist(_);if(t>2*M){const e=g.add(_.sub(g)._mult(M/t)._round());this.updateDistance(g,e),this.addCurrentVertex(e,x,0,0,A,E),g=e}}else l._mult(C),this.addCurrentVertex(g,l,0,0,A,E);else if("flipbevel"===i){if(C>100)l=x.mult(-1);else{const e=C*y.add(x).mag()/y.sub(x).mag();l._perp()._mult(e*(T?-1:1))}this.addCurrentVertex(g,l,0,0,A,E),this.addCurrentVertex(g,l.mult(-1),0,0,A,E)}else if("bevel"===i||"fakeround"===i){const e=g.dist(m);let t=1;if("offset"===this.elevationType&&"bevel"===i&&"round"!==this.currentLineJoinType&&!this.patternJoinNone&&null!=E&&m&&_){const i=4*M;e<i&&(t=Math.max(0,e/i))}null!=E&&m&&this.addCurrentVertex(g,w||y,-t,-t,A,E);const r=e<=2*M&&"bevel"!==i,n=l.mult(T?1:-1);n._mult(C);const o=x.mult(T?-1:1),s=y.mult(T?-1:1),c=this.evaluateLineProgressFeatures(this.distance);if(null==E&&(this.addHalfVertex(g,n.x,n.y,!1,!T,0,A,c),r||this.addHalfVertex(g,n.x+2*s.x,n.y+2*s.y,!1,T,0,A,c)),"fakeround"===i){const e=Math.round(180*B/Math.PI/20);this.addHalfVertex(g,s.x,s.y,!1,T,0,A,c);for(let t=0;t<e;t++){let i=t/e;if(.5!==i){const e=i-.5;i+=i*e*(i-1)*((1.0904+a*(a*(3.55645-1.43519*a)-3.2452))*e*e+(.848013+a*(.215638*a-1.06021)))}const r=o.sub(s)._mult(i)._add(s)._unit();this.addHalfVertex(g,r.x,r.y,!1,T,0,A,c)}this.addHalfVertex(g,o.x,o.y,!1,T,0,A,c)}r||null!=E||this.addHalfVertex(g,n.x+2*o.x,n.y+2*o.y,!1,T,0,A,c),null!=E&&_&&this.addCurrentVertex(g,v||x,t,t,A,E)}else if("butt"===i)this.addCurrentVertex(g,l,0,0,A,E);else if("square"===i){if(!m){const e=h?0:-1;this.addCurrentVertex(g,l,e,e,A,E)}if(this.addCurrentVertex(g,l,0,0,A,E),m){const e=u?0:1;this.addCurrentVertex(g,l,e,e,A,E)}}else if("round"===i){if(m){const e=!t&&w?w:y;this.addCurrentVertex(g,e,0,0,A,E),!t&&u||this.addCurrentVertex(g,e,1,1,A,E,!0)}if(_){const e=!t&&v?v:x;!t&&h||this.addCurrentVertex(g,e,-1,-1,A,E,!0),this.addCurrentVertex(g,e,0,0,A,E)}}}}addVerticesTo(e,t,i,r,n,o,s,a,l,c){const h=(t.w-e.w)/this.tessellationStep|0;let u=0;const d=this.scaledDistance;if(h>1){this.lineSoFar=e.w;const i=(t.x-e.x)/h,r=(t.y-e.y)/h,n=(t.z-e.z)/h,o=(t.w-e.w)/h,s=t.x-e.x,a=t.y-e.y,d=Math.sqrt(s*s+a*a);if(0===d)return;const f=-a/d,p=s/d,A=f,g=p,m=-f,_=-p;for(let t=1;t<h;++t){e.x+=i,e.y+=r,e.z+=n,this.lineSoFar+=o,u+=o;const t=this.evaluateLineProgressFeatures(this.prevDistance+u);this.scaledDistance=(this.prevDistance+u)/this.totalDistance,this.addHalfVertex(e,A,g,c,!1,0,l,t),this.addHalfVertex(e,m,_,c,!0,0,l,t)}}this.lineSoFar=t.w,this.scaledDistance=d;const f=this.evaluateLineProgressFeatures(this.distance);this.addHalfVertex(t,i,r,c,!1,s,l,f),this.addHalfVertex(t,n,o,c,!0,-a,l,f)}evaluateLineProgressFeatures(e){if(!this.variableWidthValue&&!this.variableEmissiveStrengthValue&&"offset"!==this.elevationType)return null;this.evaluationGlobals.lineProgress=0,this.lineClips?this.evaluationGlobals.lineProgress=Math.min(1,(this.totalFeatureLength*this.lineClips.start+e)/this.totalFeatureLength):lt(`line-progress evaluation for ${this.layerIds[0]} requires enabling 'lineMetrics' for the source.`);let t=0;this.variableWidthValue&&"constant"!==this.variableWidthValue.kind&&(t=this.variableWidthValue.evaluate(this.evaluationGlobals,this.lineFeature)||0,t*=.5);let i=0;this.variableEmissiveStrengthValue&&"constant"!==this.variableEmissiveStrengthValue.kind&&(i=this.variableEmissiveStrengthValue.evaluate(this.evaluationGlobals,this.lineFeature)||0);const r=this.evaluateElevationGroundScale();return"offset"!==this.elevationType?{zOffset:0,variableWidth:t,elevationGroundScale:r,variableEmissiveStrength:i}:"constant"===this.zOffsetValue.kind?{zOffset:this.zOffsetValue.value,variableWidth:t,elevationGroundScale:r,variableEmissiveStrength:i}:{zOffset:this.zOffsetValue.evaluate(this.evaluationGlobals,this.lineFeature)||0,variableWidth:t,elevationGroundScale:r,variableEmissiveStrength:i}}evaluateElevationGroundScale(){return this.elevationGroundScaleValue?"constant"===this.elevationGroundScaleValue.kind?this.elevationGroundScaleValue.value:this.elevationGroundScaleValue.evaluate(this.evaluationGlobals,this.lineFeature)||0:0}addCurrentVertex(e,t,i,r,n,o,s=!1){const a=t.x+t.y*i,l=t.y-t.x*i,c=t.y*r-t.x,h=-t.y-t.x*r;if(null!=o){const t="offset"===this.elevationType,u="offset"===this.elevationType?2:10,d=-u,f=Yr+u,p=o.zOffset,A=new cu(e.x,e.y,p,this.lineSoFar),g=!!t&&Du(e,d,f),m=this.lineSoFar,_=this.distance;if(this.currentVertex)if(g){const t=this.currentVertexIsOutside,o=this.currentVertex,u=new cu(e.x,e.y,p,this.lineSoFar);if(uu(o,u,d,f),!Du(u,d,f)){if(t){this.e1=this.e2=-1,this.distance-=o.dist(A),this.lineSoFar=o.w;const e=this.evaluateLineProgressFeatures(o.w-this.totalFeatureLength*(this.lineClips?this.lineClips.start:0));this.addHalfVertex(o,a,l,s,!1,i,n,e),this.addHalfVertex(o,c,h,s,!0,-r,n,e),this.prevDistance=this.distance}this.distance=this.prevDistance+o.dist(u),this.scaledDistance=this.distance/this.totalDistance,this.addVerticesTo(o,u,a,l,c,h,i,r,n,s),this.distance=_,this.scaledDistance=this.distance/this.totalDistance}}else{const e=this.currentVertex;if(this.currentVertexIsOutside){uu(e,A,d,f),this.e1=this.e2=-1,this.distance-=e.dist(A),this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=e.w;const t=this.evaluateLineProgressFeatures(e.w-this.totalFeatureLength*(this.lineClips?this.lineClips.start:0));this.addHalfVertex(e,a,l,s,!1,i,n,t),this.addHalfVertex(e,c,h,s,!0,-r,n,t),this.prevDistance=this.distance,this.distance=_,this.scaledDistance=this.distance/this.totalDistance}this.addVerticesTo(e,A,a,l,c,h,i,r,n,s)}else g||(this.addHalfVertex(e,a,l,s,!1,i,n,o),this.addHalfVertex(e,c,h,s,!0,-r,n,o));this.currentVertex=A,this.currentVertexIsOutside=g,this.lineSoFar=m}else this.addHalfVertex(e,a,l,s,!1,i,n,o),this.addHalfVertex(e,c,h,s,!0,-r,n,o)}addHalfVertex({x:e,y:t},i,r,n,o,s,a,l){if(this.patternJoinNone&&(0===this.segmentPoints.length&&(this.segmentStart=this.lineSoFar,this.segmentStartf32=Math.fround(this.lineSoFar)),o||this.segmentPoints.push(this.lineSoFar-this.segmentStart,s)),this.layoutVertexArray.emplaceBack((e<<1)+(n?1:0),(t<<1)+(o?1:0),Math.round(63*i)+128,Math.round(63*r)+128,1+(0===s?0:s<0?-1:1),0,this.lineS
vendor: 8,750 bytes, line 1
1oFar-this.segmentStartf32),this.lineClips){const e=vi(this.lineClips.start,this.lineClips.end,this.scaledDistance);this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length,e)}const c=a.vertexLength++;if(this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,c),a.primitiveLength++),o?this.e2=c:this.e1=c,null!=l&&(this.zOffsetVertexArray.emplaceBack(l.zOffset,l.variableWidth,l.variableWidth,l.variableEmissiveStrength),this.showElevationIdDebug&&this.elevationIdColVertexArray.emplaceBack(0,0,0)),this.elevationGroundScaleValue){const e=l?l.elevationGroundScale:this.evaluateElevationGroundScale();this.elevationGroundScaleVertexArray.emplaceBack(e)}}updateScaledDistance(){this.lineClips?(this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=this.totalFeatureLength*this.lineClips.start+this.distance):this.lineSoFar=this.distance}updateDistance(e,t){this.prevDistance=this.distance,this.distance+=e.dist(t),this.updateScaledDistance()}}function Du(e,t,i){return e.x<t||e.x>i||e.y<t||e.y>i}ts(Bu,"LineBucket",{omit:["layers","patternFeatures","currentVertex","currentVertexIsOutside"]});const Tu=Zl([{name:"a_pos",components:2,type:"Int16"}],4),Mu=Zl([{name:"a_circle_z_offset",components:1,type:"Float32"}],4),Qu=Zl([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class Su{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.fqid),this.index=e.index,this.hasPattern=!1,this.projection=e.projection,this.layoutVertexArray=new Kl,this.indexArray=new yc,this.segments=new Kc,this.programConfigurations=new bh(e.layers,{zoom:e.zoom,lut:e.lut}),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.worldview=e.worldview,this.hasAppearances=null}updateFootprints(e,t){}updateAppearances(e,t,i,r){return{hasLayoutChanges:!1,hasUboChanges:!1}}populate(e,t,i,r){const n=this.layers[0],o=[];let s=null;"circle"===n.type&&(s=n.layout.get("circle-sort-key"));for(const{feature:l,id:c,index:h,sourceLayerIndex:u}of e){const e=this.layers[0]._featureFilter.needGeometry,n=jl(l,e);if(!this.layers[0]._featureFilter.filter(new ea(this.zoom,{worldview:this.worldview,activeFloors:t.activeFloors}),n,i))continue;const a=s?s.evaluate(n,{},i):void 0,d={id:c,properties:l.properties,type:l.type,sourceLayerIndex:u,index:h,geometry:e?n.geometry:Hl(l,i,r),patterns:{},sortKey:a};o.push(d)}s&&o.sort((e,t)=>e.sortKey-t.sortKey);let a=null;"globe"===r.projection.name&&(this.globeExtVertexArray=new cc,a=r.projection);for(const l of o){const{geometry:r,index:n,sourceLayerIndex:o}=l,s=e[n].feature;this.addFeature(l,r,n,t.availableImages,i,a,t.brightness,t.elevationFeatures),t.featureIndex.insert(s,r,n,o,this.index)}this.hdExt&&this.hdExt.finalize()}update(e,t,i,r,n,o,s){this.programConfigurations.updatePaintArrays(e,t,n,i,r,o,s,this.worldview)}updateExpressions(e){this.programConfigurations.updateExpressions(e)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Tu.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,Qu.members)),this.hdExt&&this.hdExt.upload(e)),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(),this.hdExt&&this.hdExt.destroy())}addFeature(e,t,i,r,n,o,s,a){this.hdExt&&this.hdExt.beginFeature(e,a);for(const l of t)for(const t of l){const i=t.x,r=t.y;if(i<0||i>=Yr||r<0||r>=Yr)continue;if(o){const e=o.projectTilePoint(i,r,n),t=o.upVector(n,i,r);this.addGlobeExtVertex(e,t),this.addGlobeExtVertex(e,t),this.addGlobeExtVertex(e,t),this.addGlobeExtVertex(e,t)}const s=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),a=s.vertexLength;this.addCircleVertex(i,r,-1,-1),this.addCircleVertex(i,r,1,-1),this.addCircleVertex(i,r,1,1),this.addCircleVertex(i,r,-1,1),this.hdExt&&this.hdExt.writeVertexQuad(i,r),this.indexArray.emplaceBack(a,a+1,a+2),this.indexArray.emplaceBack(a,a+2,a+3),s.vertexLength+=4,s.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,i,{},r,n,s,void 0,this.worldview)}addCircleVertex(e,t,i,r){this.layoutVertexArray.emplaceBack(2*e+(i+1)/2,2*t+(r+1)/2)}addGlobeExtVertex(e,t){const i=16384;this.globeExtVertexArray.emplaceBack(e.x,e.y,e.z,t[0]*i,t[1]*i,t[2]*i)}}ts(Su,"CircleBucket",{omit:["layers"]});const Pu=Zl([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_tex_size",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Ru=Zl([{name:"a_globe_anchor",components:3,type:"Int16"},{name:"a_globe_normal",components:3,type:"Float32"}],4),zu=Zl([{name:"a_projected_pos",components:4,type:"Float32"}],4);Zl([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const Lu=Zl([{name:"a_auto_z_offset",components:1,type:"Float32"}],4),Fu=Zl([{name:"a_feature_index",components:1,type:"Float32"}],4),Ou=Zl([{name:"a_x_axis",components:3,type:"Float32"},{name:"a_y_axis",components:3,type:"Float32"}]),ku=Zl([{name:"a_texb",components:2,type:"Uint16"}]),Nu=Zl([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"},{name:"a_elevation_from_sea",components:2,type:"Float32"}]),Uu=Zl([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"},{name:"a_auto_z_offset",components:1,type:"Float32"}]);Zl([{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 Vu=Zl([{name:"a_pos",components:3,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Hu=Zl([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);Zl([{name:"triangle",components:3,type:"Uint16"}]),Zl([{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"}]),Zl([{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{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"},{type:"Float32",name:"zOffset"},{type:"Uint8",name:"hasIconTextFit"},{type:"Uint16",name:"elevationFeatureIndex"}
1]),Zl([{type:"Float32",name:"offsetX"}]),Zl([{type:"Int16",name:"x"},{type:"Int16",name:"y"}]);const ju=class e{static getBlockIndices(t){let i=e._blockIndicesTemplate;if(!i){i=e._blockIndicesTemplate=new Uint32Array(t);for(let e=0;e<t;e++)i[e]=e}return i}constructor(e,t,i,r){this.batchIndex=t,this.headerBuffer=null,this.propertiesBuffer=null,this.blockIndicesBuffer=null,this.context=e||null,this.propsDwords=i,this.totalBytes=4*this.propsDwords,this.headerData=r,this.propertiesData=new Float32Array(this.propsDwords),this._headerDirty=!0,this._propsDirtyMin=-1,this._propsDirtyMax=-1,this._blockIndicesDirty=!0,e&&this._initBuffers(e)}_initBuffers(t){const i=t.gl;if(this.totalBytes>t.maxUniformBlockSize)throw new Error(`UBO size ${this.totalBytes} exceeds device limit ${t.maxUniformBlockSize}`);if(this.headerBuffer=i.createBuffer(),!this.headerBuffer)throw new Error("Failed to create header UBO buffer");if(i.bindBuffer(i.UNIFORM_BUFFER,this.headerBuffer),i.bufferData(i.UNIFORM_BUFFER,e.HEADER_BYTES,i.DYNAMIC_DRAW),this.propertiesBuffer=i.createBuffer(),!this.propertiesBuffer)throw new Error("Failed to create properties UBO buffer");if(i.bindBuffer(i.UNIFORM_BUFFER,this.propertiesBuffer),i.bufferData(i.UNIFORM_BUFFER,this.totalBytes,i.DYNAMIC_DRAW),this.blockIndicesBuffer=i.createBuffer(),!this.blockIndicesBuffer)throw new Error("Failed to create block-indices UBO buffer");i.bindBuffer(i.UNIFORM_BUFFER,this.blockIndicesBuffer),i.bufferData(i.UNIFORM_BUFFER,this.totalBytes,i.DYNAMIC_DRAW),i.bindBuffer(i.UNIFORM_BUFFER,null)}writeDataDrivenBlock(t,i){const r=this.headerData,n=4*r[2];if(0===n)return;const o=i*n;if(o+n>this.propertiesData.length)throw new Error(`UBO write out of bounds: feature index ${i} exceeds propertiesData capacity`);const s=r[0],a=r[1];for(let c=0;c<9;c++)s&1<<c&&this._copyFromFlat(o+r[3+c],c,t,e.EVAL_FLAT_OFFSETS[c],a);(-1===this._propsDirtyMin||o<this._propsDirtyMin)&&(this._propsDirtyMin=o);const l=o+n;l>this._propsDirtyMax&&(this._propsDirtyMax=l)}rightSizeForTransfer(){const e=-1===this._propsDirtyMax?0:this._propsDirtyMax;e<this.propertiesData.length&&(this.propertiesData=this.propertiesData.slice(0,e))}_copyFromFlat(e,t,i,r,n){const o=8===t,s=!!(n&1<<t),a=t<2||o&&s?4:o||s?2:1;for(let l=0;l<a;l++)this.propertiesData[e+l]=i[r+l]}upload(t){this.context||(this.context=t);const i=t.gl;this.headerBuffer&&this.propertiesBuffer&&this.blockIndicesBuffer||this._initBuffers(t);let r=!1;if(this._headerDirty&&(i.bindBuffer(i.UNIFORM_BUFFER,this.headerBuffer),i.bufferSubData(i.UNIFORM_BUFFER,0,this.headerData),this._headerDirty=!1,r=!0),-1!==this._propsDirtyMin){const e=this._propsDirtyMin,t=this._propsDirtyMax;i.bindBuffer(i.UNIFORM_BUFFER,this.propertiesBuffer),i.bufferSubData(i.UNIFORM_BUFFER,4*e,this.propertiesData,e,t-e),this._propsDirtyMin=-1,this._propsDirtyMax=-1,r=!0}this._blockIndicesDirty&&(i.bindBuffer(i.UNIFORM_BUFFER,this.blockIndicesBuffer),i.bufferSubData(i.UNIFORM_BUFFER,0,e.getBlockIndices(this.propsDwords)),this._blockIndicesDirty=!1,r=!0),r&&i.bindBuffer(i.UNIFORM_BUFFER,null)}bind(e,t){const i=e.gl,r=(e,r,n)=>{if(!r)return;const o=i.getUniformBlockIndex(t,e);o!==i.INVALID_INDEX&&(i.uniformBlockBinding(t,o,n),i.bindBufferBase(i.UNIFORM_BUFFER,n,r))},n=3*this.batchIndex;r("SymbolPaintPropertiesHeaderUniform",this.headerBuffer,n),r("SymbolPaintPropertiesUniform",this.propertiesBuffer,n+1),r("SymbolPaintPropertiesIndexUniform",this.blockIndicesBuffer,n+2)}destroy(){if(this.context){const e=this.context.gl;this.headerBuffer&&(e.deleteBuffer(this.headerBuffer),this.headerBuffer=null),this.propertiesBuffer&&(e.deleteBuffer(this.propertiesBuffer),this.propertiesBuffer=null),this.blockIndicesBuffer&&(e.deleteBuffer(this.blockIndicesBuffer),this.blockIndicesBuffer=null)}}};ju.HEADER_DWORDS=12,ju.HEADER_BYTES=48,ju.EVAL_FLAT_OFFSETS=[0,4,8,10,12,14,16,18,20],ju.EVAL_FLAT_TOTAL=24,ju._blockIndicesTemplate=null;let Gu=ju;function Yu(e,t,i,r,n,o,s,a){return!!e&&("constant"===e.kind?"none"===e.value:"none"===e.evaluate({zoom:0,brightness:o,worldview:a},t,i,n,r,s))}function Wu(e){if(!(e instanceof aa))return!1;const t=e.value;return("source"===t.kind||"composite"===t.kind)&&t.isStateDependent}ts(Gu,"SymbolPropertiesUBO",{omit:["headerBuffer","propertiesBuffer","blockIndicesBuffer"]});const Ju=["icon","text"].map(e=>[`${e}-color`,`${e}-halo-color`,`${e}-opacity`,`${e}-halo-width`,`${e}-halo-blur`,`${e}-emissive-strength`,`${e}-occlusion-opacity`,"symbol-z-offset",`${e}-translate`]),Zu=new Float32Array(Gu.EVAL_FLAT_TOTAL),qu=[0,0];class Ku{constructor(e,t,i,r,n="",o,s){this.layer=e,this.zoom=t,this.lut=i,this.isText=r,this.worldview=n,this.maxUniformBufferBindings=o||24,this.uboSizeDwords=s||4096,this.allFeatureVtIndices=[],this.allFeatureIds=[],this.featureVertexRangesFromId=null,this.featureVertexRangesFromVtIndex=null,this.ubos=[],this.featureCount=0,this.cachedConstantUniforms=null,this.cachedConstantRenderZoom=null,this.cachedConstantBrightness=void 0,this.activeAppearanceByVtIndex=null,this.sharedZoomRanges=new Float32Array(18),this.header=new Uint32Array(Gu.HEADER_DWORDS),this.updateHeader(),this.isAllConstant=0===this.header[0];const a=4*this.header[2];this.maxFeaturesPerBatch=0===a?Number.MAX_SAFE_INTEGER:Math.floor(this.uboSizeDwords/a)}updateHeader(){const e=this.layer.paint;let t=0,i=0,r=0,n=0,o=!0;const s=Ju[+this.isText];for(let l=0;l<9;l++){const a=s[l],c=l<2,h=8===l,u=e.get(a),d=!(!u||"function"!=typeof u.isConstant||u.isConstant()),f=this._appearancesHavePaintProperties(a),p=!(!u||!u.value||"composite"!==u.value.kind);if(!d&&!f){const e=this.layer._transitionablePaint._values[a];"camera"===(e&&e.value&&e.value.expression&&e.value.expression.kind)&&(r|=1<<l);continue}t|=1<<l,p&&(i|=1<<l);const A=u&&u.value;A&&!1===A.isLightConstant&&(o=!1);const g=c||h&&p,m=g?4:h||p?2:1;g&&n%4!=0?n=n+3&-4:h&&n%4==3&&n++,this.header[3+l]=n,n+=m,p&&u&&this._computeZoomRange(u,Math.floor(this.zoom),2*l)}const a=0===n?0:n+3&-4;this.header[0]=t,this.header[1]=i,this.header[2]=a/4,this.isLightConstant=o,this.cameraMask=r}evaluateAllProperties(e,t,i,r,n,o,s){const a={brightness:n,worldview:this.worldview},l={feature:e,featureState:t,canonical:i,availableImages:r,params:new ea(this.zoom,a),paramsNext:new ea(this.zoom+1,a),formattedSection:o,activeAppearance:s},c=this.header,h=Ju[+this.isText];for(let u=0;u<9;u++){const e=h[u],t=8===u,i=!!(c[1]&1<<u),r=Gu.EVAL_FLAT_OFFSETS[u];u<2?this._evaluateColorValue(e,i,l,r):t?this._evaluateTranslateValue(e,i,l,r):this._evaluateFloatValue(e,i,l,r)}return Zu}_resolveProp(e,t){const i=e;return t&&t.hasPaintProperty(i)?t.paintProperties.get(i):this.layer.paint.get(e)}_evalAt(e,t,i){return e.property.evaluate(e.value,t,i.feature,i.featureState,i.canonical,i.availableImages,e.iconImageUseTheme,i.formattedSection)}_evaluateColorValue(e,t,i,r){const n=this._resolveProp(e,i.activeAppearance);if(!n)return Zu[r]=0,Zu[r+1]=0,Zu[r+2]=0,void(Zu[r+3]=1);const o=this._resolveProp(`${e}-use-theme`,i.activeAppearance),s=Yu(o&&"string"!=typeof o?o.value:void 0,i.feature,i.featureState,i.availableImages,i.canonical,i.params.brightness,i.formattedSection,this.worldview)?null:this.lut,a=(n.isConstant()?n.constantOr(Ei.transparent):this._evalAt(n,i.params,i)||Ei.transparent).toNonPremultipliedRenderColor(s);if(Zu[r]=Xc(255*a.r,255*a.g),Zu[r+1]=Xc(255*a.b,255*a.a),t){const e=(this._evalAt(n,i.paramsNext,i)||Ei.transparent).toNonPremultipliedRenderColor(s);Zu[r+2]=Xc(255*e.r,255*e.g),Zu[r+3]=Xc(255*e.b,255*e.a)}else Zu[r+2]=0,Zu[r+3]=0}_computeZoomRange(e,t,i){let r=0,n=1;const o=e&&e.value,s=o&&"composite"===o.kind?o.zoomStops:null;if(s&&s.length>0)if(null==o.interpolationType){r=n=1;for(const e of s)if(e>t&&e<t+1){r=n=e-t;break}}else s[0]>t&&s[0]<t+1&&(r=s[0]-t);this.sharedZoomRanges[i]=r,this.sharedZoomRanges[i+1]=n}_evaluateFloatValue(e,t,i,r){const n=e.endsWith("opacity")?1:0,o=this._resolveProp(e,i.activeAppearance),s=o?o.isConstant()?o.constantOr(n):this._evalAt(o,i.params,i):n;if(Zu[r]=null!=s?s:n,t){const e=this._evalAt(o,i.paramsNext,i);Zu[r+1]=null!=e?e:n}else Zu[r+1]=0}_evaluateTranslateValue(e,t,i,r){const n=this._resolveProp(e,i.activeAppearance),o=n?"function"!=typeof n.isConstant?n:n.isConstant()?n.constantOr(qu):this._evalAt(n,i.params,i):void 0;if(Zu[r]=o?o[0]:0,Zu[r+1]=o?o[1]:0,t){const e=this._evalAt(n,i.paramsNext,i);Zu[r+2]=e?e[0]:0,Zu[r+3]=e?e[1]:0}else Zu[r+2]=0,Zu[r+3]=0}_appearancesHavePaintProperties(e){return this.layer.getAppearances().some(t=>t.hasPaintProperty(e))}hasStateDependentPaint(e){const t=e.paint,i=Ju[+this.isText];for(const r of i)if(Wu(t.get(r)))return!0;for(const r of e.getAppearances()||[])for(const e of i){const t=e;if(r.hasPaintProperty(t)&&Wu(r.paintProperties.get(t)))return!0}return!1}hasPerFeatureTranslate(){return!!(256&this.header[0])}getCurrentBatchIndex(){return 0===this.maxFeaturesPerBatch?0:Math.floor(this.featureCount/this.maxFeaturesPerBatch)}_writeFeatureBlock(e,t){const i=this.isAllConstant?0:e;let r=Math.floor(i/this.maxFeaturesPerBatch),n=i%this.maxFeaturesPerBatch;this._batchExceedsDeviceLimit(r)&&(r=0,n=0);const o=this.ubos[r];return!!o&&(o.writeDataDrivenBlock(t,n),!0)}_batchExceedsDeviceLimit(e){return 3*e+2>=this.maxUniformBufferBindings}_reevaluateAt(e,t,i,r,n,o){if(!t)return;const s=this.allFeatureVtIndices[e],a=t.feature(s);if(!a)return;const l=this.allFeatureIds[e],c=null!=l&&n[l]||{},h={type:a.type,id:l,properties:a.properties||{},geometry:[]},u=this.activeAppearanceByVtIndex?this.activeAppearanceByVtIndex.get(s):void 0,d=this.evaluateAllProperties(h,c,i,r,o,void 0,u);this._writeFeatureBlock(e,d)}_ensureRangeMaps(){if(!this.featureVertexRangesFromId){this.featureVertexRangesFromId=new Map,this.featureVertexRangesFromVtIndex=new Map;for(let e=0;e<this.allFeatureVtIndices.length;e++){const t=this.allFeatureIds[e];if(null!=t){let i=this.featureVertexRangesFromId.get(t);i||this.featureVertexRangesFromId.set(t,i=[]),i.push(e)}const i=this.allFeatureVtIndices[e];let r=this.featureVertexRangesFromVtIndex.get(i);r||this.featureVertexRangesFromVtIndex.set(i,r=[]),r.push(e)}}}populateUBO(e,t,i,r,n,o){const s=e.id,a=this.header,l=this.evaluateAllProperties(e,{},i,r,n,o);let c,h;this.isAllConstant?(c=0,h=0===this.featureCount,h&&(this.featureCount=1)):(c=this.featureCount++,h=!0);let u=Math.floor(c/this.maxFeaturesPerBatch),d=c%this.maxFeaturesPerBatch;return h&&(this._batchExceedsDeviceLimit(u)?(lt(`Too many symbol features: batch ${u} requires binding points up to ${3*u+2}, device limit ${this.maxUniformBufferBindings}. Some features will render incorrectly.`),u=0,d=0):(this.ubos[u]||(this.ubos[u]=new Gu(null,u,this.uboSizeDwords,a)),this.ubos[u].writeDataDrivenBlock(l,d))),this.allFeatureVtIndices.push(t),this.allFeatureIds.push(s),d}updateFeatures(e,t,i,r,n,o,s){this.layer=t,this.cachedConstantUniforms=null,this._ensureRangeMaps();for(const a of e){const e=this.featureVertexRangesFromId.get(a);if(e)for(const t of e)this._reevaluateAt(t,i,r,n,o,s)}}updateDynamicExpressions(e,t,i,r,n,o){if(this.layer=e,this.cachedConstantUniforms=null,0!==this.header[0])for(let s=0;s<this.allFeatureVtIndices.length;s++)this._reevaluateAt(s,t,i,r,n,o)}
1updateFeaturePaintForAppearance(e,t,i,r,n,o,s){if(!this.layer)return!1;if(this.activeAppearanceByVtIndex||(this.activeAppearanceByVtIndex=new Map),this.activeAppearanceByVtIndex.set(e,s||null),0===this.header[0])return!1;this._ensureRangeMaps();const a=this.featureVertexRangesFromVtIndex.get(e);if(!a)return!1;const l=this.evaluateAllProperties(t,i,r,n,o,void 0,s);let c=!1;for(const h of a)c=this._writeFeatureBlock(h,l)||c;return c}getConstantUniformValues(e,t){const i=this.header,r=!!this.cameraMask,n=!!i[1];if(this.cachedConstantUniforms&&this.cachedConstantBrightness===t&&(!r&&!n||this.cachedConstantRenderZoom===e))return this.cachedConstantUniforms;const o=this.layer.paint,s=r?new ea(e,{brightness:t,worldview:this.worldview}):null,a={type:1,id:void 0,properties:{},geometry:[]},l=Ju[+this.isText],c=e=>{const i=l[e],r=o.get(i);if(!r)return[0,0,0,1];const n=o.get(`${i}-use-theme`),c=Yu(n&&"string"!=typeof n?n.value:void 0,a,{},[],void 0,t,void 0,this.worldview)?null:this.lut;return(this.cameraMask&1<<e&&s?r.property.evaluate(r.value,s,a,{},void 0,[])||Ei.transparent:r.constantOr(Ei.transparent)).toNonPremultipliedRenderColor(c).toArray01()},h=(e,t)=>{const i=o.get(l[e]);if(!i)return t;if(this.cameraMask&1<<e&&s){const e=i.property.evaluate(i.value,s,a,{},void 0,[]);return null!=e?e:t}return i.constantOr(t)},u=new Float32Array(9);if(n){const t=e-Math.floor(e);for(let e=0;e<9;e++){if(!(i[1]&1<<e))continue;const r=this.sharedZoomRanges[2*e],n=this.sharedZoomRanges[2*e+1];u[e]=r===n?t>=r?1:0:Math.max(0,Math.min(1,(t-r)/(n-r)))}}const d={fill_np_color:c(0),halo_np_color:c(1),opacity:h(2,1),halo_width:h(3,0),halo_blur:h(4,0),emissive_strength:h(5,0),occlusion_opacity:h(6,1),z_offset:h(7,0),zoomFactors:u};return this.cachedConstantUniforms=d,this.cachedConstantRenderZoom=e,this.cachedConstantBrightness=t,d}finalize(){for(const e of this.ubos)e.rightSizeForTransfer()}upload(e){for(const t of this.ubos)t.upload(e)}bind(e,t,i=0){this.ubos[i]&&this.ubos[i].bind(e,t)}destroy(){for(const e of this.ubos)e.destroy();this.ubos=[],this.featureVertexRangesFromId=null,this.featureVertexRangesFromVtIndex=null,this.allFeatureVtIndices=[],this.allFeatureIds=[],this.featureCount=0,this.maxFeaturesPerBatch=0}}ts(Ku,"SymbolPropertyBinderUBO",{omit:["layer","cachedConstantUniforms","cachedConstantRenderZoom","cachedConstantBrightness","activeAppearanceByVtIndex","featureVertexRangesFromId","featureVertexRangesFromVtIndex"]});const Xu=24;function $u(e,t,i){return e.sections.forEach(e=>{e.text=function(e,t,i){const r=t.layout.get("text-transform").evaluate(i,{});return"uppercase"===r?e=e.toLocaleUpperCase():"lowercase"===r&&(e=e.toLocaleLowerCase()),Xs.applyArabicShaping&&(e=Xs.applyArabicShaping(e)),e}(e.text,t,i)}),e}const ed={"!":"ï¸","#":"ï¼",$:"ï¼","%":"ï¼
","&":"ï¼","(":"︵",")":"︶","*":"ï¼","+":"ï¼",",":"ï¸","-":"︲",".":"ã»","/":"ï¼",":":"ï¸",";":"ï¸","<":"︿","=":"ï¼",">":"ï¹","?":"ï¸","@":"ï¼ ","[":"ï¹","\\":"ï¼¼","]":"ï¹","^":"ï¼¾",_:"︳","`":"ï½","{":"︷","|":"â","}":"︸","~":"ï½","¢":"ï¿ ","£":"ï¿¡","Â¥":"ï¿¥","¦":"¦","¬":"ï¿¢","¯":"ï¿£","â":"︲","â":"︱","â":"ï¹","â":"ï¹","â":"ï¹","â":"ï¹","â¦":"ï¸","â§":"ã»","â©":"₩","ã":"ï¸","ã":"ï¸","ã":"︿","ã":"ï¹","ã":"︽","ã":"︾","ã":"ï¹","ã":"ï¹","ã":"ï¹","ã":"ï¹","ã":"︻","ã":"︼","ã":"︹","ã":"︺","ã":"ï¸","ã":"ï¸","ï¼":"ï¸","ï¼":"︵","ï¼":"︶","ï¼":"ï¸","ï¼":"︲","ï¼":"ã»","ï¼":"ï¸","ï¼":"ï¸","ï¼":"︿","ï¼":"ï¹","ï¼":"ï¸","ï¼»":"ï¹","ï¼½":"ï¹","_":"︳","ï½":"︷","ï½":"â","ï½":"︸","ï½":"︵","ï½ ":"︶","。":"ï¸","ï½¢":"ï¹","ï½£":"ï¹","â":"â","â":"â"};function td(e){return"︶"===e||"ï¹"===e||"︸"===e||"ï¹"===e||"ï¹"===e||"︾"===e||"︼"===e||"︺"===e||"ï¸"===e||"ï¹"===e||"ï¸"===e||"ï¸"===e||"ï¸"===e||"ï½"===e||"ï¿£"===e||"ï¸"===e||"ï¸"===e}function id(e){return"︵"===e||"ï¹"===e||"︷"===e||"ï¹"===e||"ï¹"===e||"︽"===e||"︻"===e||"︹"===e||"ï¸"===e||"︿"===e}const rd=4294967296,nd=1/rd,od="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");class sd{constructor(e){this.buf=ArrayBuffer.isView(e)?e:new Uint8Array(e),this.dataView=new DataView(this.buf.buffer),this.pos=0,this.type=0,this._valueStart=-1,this.length=this.buf.length}readFields(e,t,i=this.length){let r;for(;r=this.nextField(i);)e(r,t,this);return t}readMessage(e,t){return this.readFields(e,t,this.readVarint()+this.pos)}readFixed32(){const e=this.dataView.getUint32(this.pos,!0);return this.pos+=4,e}readSFixed32(){const e=this.dataView.getInt32(this.pos,!0);return this.pos+=4,e}readFixed64(){const e=this.dataView.getUint32(this.pos,!0)+this.dataView.getUint32(this.pos+4,!0)*rd;return this.pos+=8,e}readSFixed64(){const e=this.dataView.getUint32(this.pos,!0)+this.dataView.getInt32(this.pos+4,!0)*rd;return this.pos+=8,e}readFloat(){const e=this.dataView.getFloat32(this.pos,!0);return this.pos+=4,e}readDouble(){const e=this.dataView.getFloat64(this.pos,!0);return this.pos+=8,e}readVarint(e){const t=this.buf,i=t[this.pos++];if(i<128)return i;let r,n=127&i;return r=t[this.pos++],n|=(127&r)<<7,r<128?n:(r=t[this.pos++],n|=(127&r)<<14,r<128?n:(r=t[this.pos++],n|=(127&r)<<21,r<128?n:(r=t[this.pos],n|=(15&r)<<28,function(e,t,i){const r=i.buf;let n,o;
vendor: 14,950 bytes, line 1
1if(o=r[i.pos++],n=(112&o)>>4,o<128)return ad(e,n,t);if(o=r[i.pos++],n|=(127&o)<<3,o<128)return ad(e,n,t);if(o=r[i.pos++],n|=(127&o)<<10,o<128)return ad(e,n,t);if(o=r[i.pos++],n|=(127&o)<<17,o<128)return ad(e,n,t);if(o=r[i.pos++],n|=(127&o)<<24,o<128)return ad(e,n,t);if(o=r[i.pos++],n|=(1&o)<<31,o<128)return ad(e,n,t);throw new Error("Expected varint not more than 10 bytes")}(n,e,this))))}readSVarint(){const e=this.readVarint();return e%2==1?(e+1)/-2:e/2}readBoolean(){return Boolean(this.readVarint())}readString(){const e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&od?od.decode(this.buf.subarray(t,e)):function(e,t,i){let r="",n=t;for(;n<i;){const t=e[n];let o,s,a,l=null,c=t>239?4:t>223?3:t>191?2:1;if(n+c>i)break;1===c?t<128&&(l=t):2===c?(o=e[n+1],128==(192&o)&&(l=(31&t)<<6|63&o,l<=127&&(l=null))):3===c?(o=e[n+1],s=e[n+2],128==(192&o)&&128==(192&s)&&(l=(15&t)<<12|(63&o)<<6|63&s,(l<=2047||l>=55296&&l<=57343)&&(l=null))):4===c&&(o=e[n+1],s=e[n+2],a=e[n+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(l=(15&t)<<18|(63&o)<<12|(63&s)<<6|63&a,(l<=65535||l>=1114112)&&(l=null))),null===l?(l=65533,c=1):l>65535&&(l-=65536,r+=String.fromCharCode(l>>>10&1023|55296),l=56320|1023&l),r+=String.fromCharCode(l),n+=c}return r}(this.buf,t,e)}readBytes(){const e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t}readPackedVarint(e=[],t){const i=this.readPackedEnd();for(;this.pos<i;)e.push(this.readVarint(t));return e}readPackedSVarint(e=[]){const t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readSVarint());return e}readPackedBoolean(e=[]){const t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readBoolean());return e}readPackedFloat(e=[]){const t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readFloat());return e}readPackedDouble(e=[]){const t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readDouble());return e}readPackedFixed32(e=[]){const t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readFixed32());return e}readPackedSFixed32(e=[]){const t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readSFixed32());return e}readPackedFixed64(e=[]){const t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readFixed64());return e}readPackedSFixed64(e=[]){const t=this.readPackedEnd();for(;this.pos<t;)e.push(this.readSFixed64());return e}readPackedEnd(){return 2===this.type?this.readVarint()+this.pos:this.pos+1}nextField(e=this.length){if(this.pos===this._valueStart&&this.skip(this.type),this.pos>=e)return 0;const t=this.readVarint();return this.type=7&t,this._valueStart=this.pos,t>>>3}skip(e){const t=7&e;if(0===t)for(;this.buf[this.pos++]>127;);else if(2===t)this.pos=this.readVarint()+this.pos;else if(5===t)this.pos+=4;else{if(1!==t)throw new Error(`Unimplemented type: ${t}`);this.pos+=8}}}function ad(e,t,i){return i?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function ld(e,t,i){const r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));i.realloc(r),i.buf.copyWithin(e+r,e,i.pos)}function cd(e,t){for(let i=0;i<e.length;i++)t.writeVarint(e[i])}function hd(e,t){for(let i=0;i<e.length;i++)t.writeSVarint(e[i])}function ud(e,t){for(let i=0;i<e.length;i++)t.writeFloat(e[i])}function dd(e,t){for(let i=0;i<e.length;i++)t.writeDouble(e[i])}function fd(e,t){for(let i=0;i<e.length;i++)t.writeBoolean(e[i])}function pd(e,t){for(let i=0;i<e.length;i++)t.writeFixed32(e[i])}function Ad(e,t){for(let i=0;i<e.length;i++)t.writeSFixed32(e[i])}function gd(e,t){for(let i=0;i<e.length;i++)t.writeFixed64(e[i])}function md(e,t){for(let i=0;i<e.length;i++)t.writeSFixed64(e[i])}function _d(e,t,i){let r;for(;r=e.nextField(t);)3===r?i.glyphs.push(yd(e,e.readVarint()+e.pos)):4===r?i.ascender=e.readSVarint():5===r&&(i.descender=e.readSVarint())}function yd(e,t){let i,r,n=0,o=0,s=0,a=0,l=0,c=0;for(;r=e.nextField(t);)1===r?n=e.readVarint():2===r?i=e.readBytes():3===r?o=e.readVarint():4===r?s=e.readVarint():5===r?a=e.readSVarint():6===r?l=e.readSVarint():7===r&&(c=e.readVarint());return{id:n,bitmap:new _u({width:o+6,height:s+6},i),metrics:{width:o,height:s,left:a,top:l,advance:c}}}const xd={horizontal:1,vertical:2,horizontalOnly:3};class vd{constructor(){this.scale=1,this.fontStack="",this.image=null}static forText(e,t){const i=new vd;return i.scale=e||1,i.fontStack=t,i}static forImage(e){const t=new vd;return t.image=e,t}}class wd{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(e,t,i,r=1){const n=new wd;for(let o=0;o<e.sections.length;o++){const s=e.sections[o];s.image?n.addImageSection(s,i,r):n.addTextSection(s,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]}getCodePoint(e){return this.text.codePointAt(e)}verticalizePunctuation(e){this.text=function(e,t){let i="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r+1)||null,o=e.charCodeAt(r-1)||null;i+=!t&&(n&&Os(n)&&!ed[e[r+1]]||o&&Os(o)&&!ed[e[r-1]])||!ed[e[r]]?e[r]:ed[e[r]]}return i}(this.text,e)}trim(){let e=0;for(let i=0;i<this.text.length&&bd[this.text.charCodeAt(i)];i++)e++;let t=this.text.length;for(let i=this.text.length-1;i>=0&&i>=e&&bd[this.text.charCodeAt(i)];i--)t--;this.text=this.text.substring(e,t),this.sectionIndex=this.sectionIndex.slice(e,t)}substring(e,t){const i=new wd;return i.text=this.text.substring(e,t),i.sectionIndex=this.sectionIndex.slice(e,t),i.sections=this.sections,i}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(vd.forText(e.scale,e.fontStack||t));const i=this.sections.length-1;for(let r=0;r<e.text.length;++r)this.sectionIndex.push(i)}addImageSection(e,t,i=1){const r=e.image?e.image.getPrimary():null;if(!r)return void lt("Can't add FormattedSection with an empty image.");r.scaleSelf(t*i);const n=this.getNextImageSectionCharCode();n?(this.text+=String.fromCodePoint(n),this.sections.push(vd.forImage(r)),this.sectionIndex.push(this.sections.length-1)):lt("Reached maximum number of images 6401")}getNextImageSectionCharCode(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Ed(e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A=1,g=1){const m=wd.fromFeature(e,n,A,g);u===xd.vertical&&m.verticalizePunctuation(d);let _=[];const y=function(e,t,i,r,n,o,s=1){if(!e)return[];const a=[],l=function(e,t,i,r,n,o,s=1){let a=0;for(let l=0;l<e.length();l++){const i=e.getSection(l);a+=Cd(e.getCodePoint(l),i,r,n,t,o,s)}return a/Math.max(1,Math.ceil(a/i))}(e,t,i,r,n,o,s),c=e.text.includes("â");let h=0;for(let u=0;u<e.length();u++){const i=e.getSection(u),d=e.getCodePoint(u);if(bd[d]||(h+=Cd(d,i,r,n,t,o,s)),u<e.length()-1){const t=zs(d);(Id[d]||t||i.image)&&a.push(Td(u+1,h,l,a,Dd(d,e.getCodePoint(u+1),t&&c),!1))}}return Md(Td(e.length(),h,l,a,0,!0))}(m,c,o,t,r,f,g),{processBidirectionalText:x,processStyledBidirectionalText:v}=Xs;if(x&&1===m.sections.length){const e=x(m.toString(),y);for(const t of e){const e=new wd;e.text=t,e.sections=m.sections;for(let i=0;i<t.length;i++)e.sectionIndex.push(0);_.push(e)}}else if(v){const e=v(m.text,m.sectionIndex,y);for(const t of e){const e=new wd;e.text=t[0],e.sectionIndex=t[1],e.sections=m.sections,_.push(e)}}else _=function(e,t){const i=[],r=e.text;let n=0;for(const o of t)i.push(e.substring(n,o)),n=o;return n<r.length&&i.push(e.substring(n,r.length)),i}(m,y);const w=[],E={positionedLines:w,text:m.toString(),top:h[1],bottom:h[1],left:h[0],right:h[0],writingMode:u,iconsInText:!1,verticalizable:!1,hasBaseline:!1};if(function(e,t,i,r,n,o,s,a,l,c,h,u,d=1){let f=0,p=0,A=0;const g="right"===a?1:"left"===a?0:.5;let m=!1;for(const w of n){const e=w.getSections();for(const i of e){if(i.image)continue;const e=t[i.fontStack];if(e&&(m=void 0!==e.ascender&&void 0!==e.descender,!m))break}if(!m)break}let _=0;for(const w of n){w.trim();const n=w.getMaxScale(),s=(n-1)*Xu,a={positionedGlyphs:[],lineOffset:0};e.positionedLines[_]=a;const y=a.positionedGlyphs;let x=0;if(!w.length()){p+=o,++_;continue}let v=0,E=0;for(let o=0;o<w.length();o++){const s=w.getSection(o),a=w.getSectionIndex(o),A=w.getCodePoint(o);let g=s.scale,_=null,b=null,I=null,C=Xu,B=0,D=l;D===xd.vertical&&Fs(A)&&(D=xd.horizontal);const T=!(D===xd.horizontal||!h&&!Ls(A)||h&&(bd[A]||ks(A)));if(s.image){const t=r.get(s.image.toString());if(!t)continue;I=s.image,e.iconsInText=e.iconsInText||!0,b=t.paddedRect;const i=t.displaySize,o=i[0]*d,a=i[1]*d;g=g*Xu/u,_={width:o,height:a,left:0,top:-3,advance:T?a:o,localGlyph:!1},B=m?-_.height*g:n*Xu-17-a*g,C=_.advance;const l=(T?o:a)*g-Xu*n;l>0&&l>x&&(x=l)}else{const e=i[s.fontStack];if(!e)continue;e[A]&&(b=e[A]);const r=t[s.fontStack];if(!r)continue;const o=r.glyphs[A];if(!o)continue;if(_=o.metrics,C=8203!==A?Xu:0,m){const e=void 0!==r.ascender?Math.abs(r.ascender):0,t=void 0!==r.descender?Math.abs(r.descender):0,i=(e+t)*g;v<i&&(v=i,E=(e-t)/2*g),B=-e*g}else B=(n-g)*Xu-17}T?(e.verticalizable=!0,y.push({glyph:A,image:I,x:f,y:p+B,vertical:T,scale:g,localGlyph:_.localGlyph,fontStack:s.fontStack,sectionIndex:a,metrics:_,rect:b}),f+=C*g+c):(y.push({glyph:A,image:I,x:f,y:p+B,vertical:T,scale:g,localGlyph:_.localGlyph,fontStack:s.fontStack,sectionIndex:a,metrics:_,rect:b}),f+=_.advance*g+c)}0!==y.length&&(A=Math.max(f-c,A),m?Sd(y,g,x,E,o*n/2):Sd(y,g,x,0,o/2)),f=0;const b=o*n+x;a.lineOffset=Math.max(x,s),p+=b,++_}const y=p,{horizontalAlign:x,verticalAlign:v}=Qd(s);(function(e,t,i,r,n,o){const s=(t-i)*n,a=-o*r;for(const l of e)for(const e of l.positionedGlyphs)e.x+=s,e.y+=a})(e.positionedLines,g,x,v,A,y),e.top+=-v*y,e.bottom=e.top+y,e.left+=-x*A,e.right=e.left+A,e.hasBaseline=m}(E,t,i,r,_,s,a,l,u,c,d,p,g),!function(e){for(const t of e)if(0!==t.positionedGlyphs.length)return!1;return!0}(w))return E}const bd={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Id={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 Cd(e,t,i,r,n,o,s=1){if(t.image){const e=r.get(t.image.toString());return e?e.displaySize[0]*s*t.scale*Xu/o+n:0}{const r=i[t.fontStack],o=r&&r.glyphs[e];return o?o.metrics.advance*t.scale+n:0}}function Bd(e,t,i,r){const n=Math.pow(e-t,2);return r?e<t?n/2:2*n:n+Math.abs(i)*i}function Dd(e,t,i){let r=0;return 10===e&&(r-=1e4),i&&(r+=150),40!==e&&65288!==e||(r+=50),41!==t&&65289!==t||(r+=50),r}function Td(e,t,i,r,n,o){let s=null,a=Bd(t,i,n,o);for(const l of r){const e=Bd(t-l.x,i,n,o)+l.badness;e<=a&&(s=l,a=e)}return{index:e,x:t,priorBreak:s,badness:a}}function Md(e){return e?Md(e.priorBreak).concat(e.index):[]}function Qd(e){let t=.5,i=.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":i=1;break;case"top":case"top-right":case"top-left":i=0}return{horizontalAlign:t,verticalAlign:i}}function Sd(e,t,i,r,n){if(!(t||i||r||n))return;const o=e.length-1,s=e[o],a=(s.x+s.metrics.advance*s.scale)*t;for(let l=0;l<=o;l++)e[l].x-=a,e[l].y+=i+r+n}function Pd(e){return void 0!==e.imagePrimary&&void 0!==e.top&&void 0!==e.bottom&&void 0!==e.left&&void 0!==e.right}function Rd(e,t,i,r){const{horizontalAlign:n,verticalAlign:o}=Qd(r),s=i[0]-e.displaySize[0]*n,a=i[1]-e.displaySize[1]*o;return{imagePrimary:e,imageSecondary:t,top:a,bottom:a+e.displaySize[1],left:s,right:s+e.displaySize[0]}}function zd(e,t,i,r,n,o){const s=e.imagePrimary;let a;if(s.content){const e=s.content,t=s.pixelRatio||1;a=[e[0]/t,e[1]/t,s.displaySize[0]-e[2]/t,s.displaySize[1]-e[3]/t]}const l=t.left*o,c=t.right*o;let h,u,d,f;"width"===i||"both"===i?(f=n[0]+l-r[3],u=n[0]+c+r[1]):(f=n[0]+(l+c-s.displaySize[0])/2,u=f+s.displaySize[0]);const p=t.top*o,A=t.bottom*o;return"height"===i||"both"===i?(h=n[1]+p-r[0],d=n[1]+A+r[2]):(h=n[1]+(p+A-s.displaySize[1])/2,d=h+s.displaySize[1]),{imagePrimary:s,imageSecondary:void 0,top:h,right:u,bottom:d,left:f,collisionPadding:a}}function Ld(e){return!e.imagePrimary.stretchX}function Fd(e){return!e.imagePrimary.stretchY}function Od(e){return{width:e.right-e.left,height:e.bottom-e.top}}const kd=128;function Nd(e,t,i,r){const{expression:n}=t;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new ea(e+1,{worldview:i}),void 0,void 0,void 0,r)};if("source"===n.kind)return{kind:"source"};{const{zoomStops:t,interpolationType:o}=n;let s=0;for(;s<t.length&&t[s]<=e;)s++;s=Math.max(0,s-1);let a=s;for(;a<t.length&&t[a]<e+1;)a++;a=Math.min(t.length-1,a);const l=t[s],c=t[a];return"composite"===n.kind?{kind:"composite",minZoom:l,maxZoom:c,interpolationType:o}:{kind:"camera",minZoom:l,maxZoom:c,minSize:n.evaluate(new ea(l,{worldview:i}),void 0,void 0,void 0,r),maxSize:n.evaluate(new ea(c,{worldview:i}),void 0,void 0,void 0,r),interpolationType:o}}}function Ud(e,{uSize:t,uSizeT:i},{lowerSize:r,upperSize:n}){return"source"===e.kind?r/kd:"composite"===e.kind?vi(r/kd,n/kd,i):t}function Vd(e,t,i=1){let r=0,n=0;if("constant"===e.kind)n=e.layoutSize*i;else if("source"!==e.kind){const{interpolationType:o,minZoom:s,maxZoom:a}=e,l=o?Je(qn.interpolationFactor(o,t,s,a),0,1):0;"camera"===e.kind?n=vi(e.minSize,e.maxSize,l)*i:r=l*i}return{uSizeT:r,uSize:n}}class Hd extends we{constructor(e,t,i,r,n){super(e,t),this.angle=r,this.z=i,void 0!==n&&(this.segment=n)}clone(){return new Hd(this.x,this.y,this.z,this.angle,this.segment)}}function jd(e,t,i,r,n){if(void 0===t.segment)return!0;let o=t,s=t.segment+1,a=0;for(;a>-i/2;){if(s--,s<0)return!1;a-=e[s].dist(o),o=e[s]}a+=e[s].dist(e[s+1]),s++;const l=[];let c=0;for(;a<i/2;){const t=e[s],i=e[s+1];if(!i)return!1;let o=e[s-1].angleTo(t)-t.angleTo(i);for(o=Math.abs((o+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:a,angleDelta:o}),c+=o;a-l[0].distance>r;)c-=l.shift().angleDelta;if(c>n)return!1;s++,a+=t.dist(i)}return!0}function Gd(e){let t=0;for(let i=0;i<e.length-1;i++)t+=e[i].dist(e[i+1]);return t}function Yd(e,t,i){return e?.6*t*i:0}function Wd(e,t){return Math.max(e?e.right-e.left:0,t?t.right-t.left:0)}function Jd(e,t,i,r,n,o){const s=Yd(i,n,o),a=Wd(i,r)*o;let l=0;const c=Gd(e)/2;for(let h=0;h<e.length-1;h++){const i=e[h],r=e[h+1],n=i.dist(r);if(l+n>c){const o=(c-l)/n,u=vi(i.x,r.x,o),d=vi(i.y,r.y,o),f=new Hd(u,d,0,r.angleTo(i),h);return!s||jd(e,f,a,s,t)?f:void 0}l+=n}}function Zd(e,t,i,r,n,o,s,a,l){const c=Yd(r,o,s),h=Wd(r,n),u=h*s,d=0===e[0].x||e[0].x===l||0===e[0].y||e[0].y===l;return t-u<t/4&&(t=u+t/4),qd(e,d?t/2*a%t:(h/2+2*o)*s*a%t,t,c,i,u,d,!1,l)}function qd(e,t,i,r,n,o,s,a,l){const c=o/2,h=Gd(e);let u=0,d=t-i,f=[];for(let p=0;p<e.length-1;p++){const t=e[p],s=e[p+1],a=t.dist(s),A=s.angleTo(t);for(;d+i<u+a;){d+=i;const g=(d-u)/a,m=vi(t.x,s.x,g),_=vi(t.y,s.y,g);if(m>=0&&m<l&&_>=0&&_<l&&d-c>=0&&d+c<=h){const t=new Hd(m,_,0,A,p);r&&!jd(e,t,o,r,n)||f.push(t)}}u+=a}return a||f.length||s||(f=qd(e,u/2,i,r,n,o,s,!0,l)),f}function Kd(e){let t=0,i=0;for(const s of e)t+=s.w*s.h,i=Math.max(i,s.w);e.sort((e,t)=>
vendor: 6,850 bytes, line 1
1t.h-e.h);const r=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),i),h:1/0}];let n=0,o=0;for(const s of e)for(let e=r.length-1;e>=0;e--){const t=r[e];if(!(s.w>t.w||s.h>t.h)){if(s.x=t.x,s.y=t.y,o=Math.max(o,s.y+s.h),n=Math.max(n,s.x+s.w),s.w===t.w&&s.h===t.h){const t=r.pop();t&&e<r.length&&(r[e]=t)}else s.h===t.h?(t.x+=s.w,t.w-=s.w):s.w===t.w?(t.y+=s.h,t.h-=s.h):(r.push({x:t.x+s.w,y:t.y,w:t.w-s.w,h:s.h}),t.y+=s.h,t.h-=s.h);break}}return{w:n,h:o,fill:t/(n*o)||0}}function Xd(e,t){return e.id<t.id?-1:e.id>t.id?1:e.version<t.version?-1:e.version>t.version?1:e.sx<t.sx?-1:e.sx>t.sx?1:e.sy<t.sy?-1:e.sy>t.sy?1:0}function $d(e){let t=0;for(let i=0;i<e.length;i++)t=(t<<5)-t+e.charCodeAt(i),t&=t;return t}function ef(e,t){return(e<<5)-e+t}function tf(e,t,i,r){for(const[n]of e.entries()){const e=r&&r.get(n)||Ki.parse(n),o=e.id.toString(),s=t.get(o)||0;i.push({id:n,version:s,sx:e.sx,sy:e.sy})}}ts(Hd,"Anchor");class rf{constructor(e,t,i,r,n){this.iconDescriptors=[],this.patternDescriptors=[],this.requiresMipMaps=t.size>0,tf(e,i,this.iconDescriptors,n),tf(t,i,this.patternDescriptors,n),this.iconDescriptors.sort(Xd),this.patternDescriptors.sort(Xd);let o=0;const s=r?r.data:"";s&&(o=ef(o,$d(s))),o=ef(o,1);for(const a of this.iconDescriptors)o=ef(o,$d(a.id)),o=ef(o,a.version),o=ef(o,a.sx),o=ef(o,a.sy);o=ef(o,1);for(const a of this.patternDescriptors)o=ef(o,$d(a.id)),o=ef(o,a.version),o=ef(o,a.sx),o=ef(o,a.sy);this.hash=o}subsetOf(e){return this.isSubsetArray(this.iconDescriptors,e.iconDescriptors,Xd)&&this.isSubsetArray(this.patternDescriptors,e.patternDescriptors,Xd)}isSubsetArray(e,t,i){let r=0,n=0;if(e.length>t.length)return!1;for(;r<e.length&&n<t.length;){const o=i(e[r],t[n]);if(0===o)r++,n++;else{if(o<0)return!1;n++}}return r===e.length}}function nf(e){switch(e){case WebGL2RenderingContext.RGBA8:case WebGL2RenderingContext.RGBA16F:return WebGL2RenderingContext.RGBA;case WebGL2RenderingContext.DEPTH_COMPONENT16:return WebGL2RenderingContext.DEPTH_COMPONENT;case WebGL2RenderingContext.DEPTH24_STENCIL8:return WebGL2RenderingContext.DEPTH_STENCIL;case WebGL2RenderingContext.R8:case WebGL2RenderingContext.R32F:return WebGL2RenderingContext.RED}}function of(e){switch(e){case WebGL2RenderingContext.RGBA8:return WebGL2RenderingContext.UNSIGNED_BYTE;case WebGL2RenderingContext.RGBA16F:return WebGL2RenderingContext.HALF_FLOAT;case WebGL2RenderingContext.DEPTH_COMPONENT16:return WebGL2RenderingContext.UNSIGNED_SHORT;case WebGL2RenderingContext.DEPTH24_STENCIL8:return WebGL2RenderingContext.UNSIGNED_INT_24_8;case WebGL2RenderingContext.R8:return WebGL2RenderingContext.UNSIGNED_BYTE;case WebGL2RenderingContext.R32F:return WebGL2RenderingContext.FLOAT}}ts(rf,"AtlasContentDescriptor");class sf{constructor(e,t,i,r){this.context=e,this.format=i,this.useMipmap=r&&r.useMipmap,this.texture=e.gl.createTexture(),this.update(t,{premultiply:r&&r.premultiply})}update(e,t){const i=e&&e instanceof HTMLVideoElement&&0===e.width?e.videoWidth:e.width,r=e&&e instanceof HTMLVideoElement&&0===e.height?e.videoHeight:e.height,{context:n}=this,{gl:o}=n,{x:s,y:a}=t&&t.position?t.position:{x:0,y:0},l=s+i,c=a+r;this.size&&(this.size[0]!==l||this.size[1]!==c)&&(!t||void 0===t.recreateWhenResize||t.recreateWhenResize)&&(o.bindTexture(o.TEXTURE_2D,null),o.deleteTexture(this.texture),this.texture=o.createTexture(),this.size=null),o.bindTexture(o.TEXTURE_2D,this.texture),n.pixelStoreUnpackFlipY.set(!1),n.pixelStoreUnpack.set(1),n.pixelStoreUnpackPremultiplyAlpha.set(this.format===o.RGBA8&&(!t||!1!==t.premultiply));const h=e instanceof HTMLImageElement||e instanceof HTMLCanvasElement||e instanceof HTMLVideoElement||e instanceof ImageData||ImageBitmap&&e instanceof ImageBitmap;if(!this.size&&l>0&&c>0){const e=this.useMipmap?Math.floor(Math.log2(Math.max(l,c)))+1:1;o.texStorage2D(o.TEXTURE_2D,e,this.format,l,c),this.size=[l,c]}this.size&&(h?o.texSubImage2D(o.TEXTURE_2D,0,s,a,nf(this.format),of(this.format),e):"data"in e&&e.data&&o.texSubImage2D(o.TEXTURE_2D,0,s,a,i,r,nf(this.format),of(this.format),e.data)),this.useMipmap&&o.generateMipmap(o.TEXTURE_2D)}bind(e,t,i=!1){const{context:r}=this,{gl:n}=r;n.bindTexture(n.TEXTURE_2D,this.texture),e!==this.minFilter&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,this.useMipmap&&!i?e===n.NEAREST?n.NEAREST_MIPMAP_NEAREST:n.LINEAR_MIPMAP_LINEAR:e),this.minFilter=e),t!==this.wrapS&&(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,t),this.wrapS=t)}bindExtraParam(e,t,i,r,n){const{context:o}=this,{gl:s}=o;s.bindTexture(s.TEXTURE_2D,this.texture),t!==this.magFilter&&(s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MAG_FILTER,t),this.magFilter=t),e!==this.minFilter&&(s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MIN_FILTER,this.useMipmap?e===s.NEAREST?s.NEAREST_MIPMAP_NEAREST:s.LINEAR_MIPMAP_LINEAR:e),this.minFilter=e),i!==this.wrapS&&(s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_S,i),this.wrapS=i),r!==this.wrapT&&(s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_T,r),this.wrapT=r),n!==this.compareMode&&(n?(s.texParameteri(s.TEXTURE_2D,s.TEXTURE_COMPARE_MODE,s.COMPARE_REF_TO_TEXTURE),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_COMPARE_FUNC,n)):s.texParameteri(s.TEXTURE_2D,s.TEXTURE_COMPARE_MODE,s.NONE),this.compareMode=n)}destroy(){const{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null}}class af{constructor(e,t){this.context=e,this.texture=t}bind(e,t){const{context:i}=this,{gl:r}=i;r.bindTexture(r.TEXTURE_2D,this.texture),e!==this.minFilter&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,e),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,e),this.minFilter=e),t!==this.wrapS&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,t),this.wrapS=t)}}class lf{static getImagePositionScale(e,t,i){if(t&&e){const{sx:t,sy:i}=e;return{x:t,y:i}}return{x:i,y:i}}constructor(e,t,i,r){this.paddedRect=e;const{pixelRatio:n,version:o,stretchX:s,stretchY:a,content:l,sdf:c,usvg:h}=t;this.pixelRatio=n,this.stretchX=s,this.stretchY=a,this.content=l,this.version=o,this.padding=i,this.sdf=c,this.usvg=h,this.scale=lf.getImagePositionScale(r,h,n)}get tl(){return[this.paddedRect.x+this.padding,this.paddedRect.y+this.padding]}get br(){return[this.paddedRect.x+this.paddedRect.w-this.padding,this.paddedRect.y+this.paddedRect.h-this.padding]}get displaySize(){return[(this.paddedRect.w-2*this.padding)/this.scale.x,(this.paddedRect.h-2*this.padding)/this.scale.y]}}function cf(e,t,i){const r=Ki.parse(e),n=function(e,t,i=[1,1]){return{x:0,y:0,w:(e.data?e.data.width:e.width*i[0])+2*t,h:(e.data?e.data.height:e.height*i[1])+2*t}}(t,i,[r.sx,r.sy]);return{bin:n,imagePosition:new lf(n,t,i,r),imageVariant:r}}function hf(e,t){const i=[];for(const[n,o]of e.entries()){const e=Ki.parse(n);e&&(i.push({key:n,value:o,variant:e}),t&&t.set(n,e))}i.sort((e,t)=>
vendor: 11,744 bytes, line 1
1{const i=e.variant.id.toString().localeCompare(t.variant.id.toString());return 0!==i?i:e.variant.sx!==t.variant.sx?e.variant.sx-t.variant.sx:e.variant.sy!==t.variant.sy?e.variant.sy-t.variant.sy:0});const r=new Map;for(const n of i)r.set(n.key,n.value);return r}class uf{constructor(e){this.sourceAtlasHash=e}}class df{constructor(e,t,i,r){const n=new Map,o=new Map;this.haveRenderCallbacks=[];const s=[],a=void 0!==r,l=a?new Map:void 0,c=a?hf(e,l):e,h=a?hf(t,l):t;this.addImages(c,n,1,s),this.addImages(h,o,2,s);const{w:u,h:d}=Kd(s),f=new yu({width:u||1,height:d||1});for(const[p,A]of c.entries()){const e=n.get(p).paddedRect;yu.copy(A.data,f,{x:0,y:0},{x:e.x+1,y:e.y+1},A.data,null,A.sdf)}for(const[p,A]of h.entries()){const e=o.get(p),t=e.paddedRect;let r=e.padding;const n=t.x+r,s=t.y+r,a=A.data.width,l=A.data.height;r=r>1?r-1:r,yu.copy(A.data,f,{x:0,y:0},{x:n,y:s},A.data,i),yu.copy(A.data,f,{x:0,y:l-r},{x:n,y:s-r},{width:a,height:r},i),yu.copy(A.data,f,{x:0,y:0},{x:n,y:s+l},{width:a,height:r},i),yu.copy(A.data,f,{x:a-r,y:0},{x:n-r,y:s},{width:r,height:l},i),yu.copy(A.data,f,{x:0,y:0},{x:n+a,y:s},{width:r,height:l},i),yu.copy(A.data,f,{x:a-r,y:l-r},{x:n-r,y:s-r},{width:r,height:r},i),yu.copy(A.data,f,{x:0,y:l-r},{x:n+a,y:s-r},{width:r,height:r},i),yu.copy(A.data,f,{x:0,y:0},{x:n+a,y:s+l},{width:r,height:r},i),yu.copy(A.data,f,{x:a-r,y:0},{x:n-r,y:s+l},{width:r,height:r},i)}this.lut=i,this.image=f,this.iconPositions=n,this.patternPositions=o,a&&(this.contentDescriptor=new rf(c,h,r,i,l))}addImages(e,t,i,r){for(const[n,o]of e.entries()){const{bin:e,imagePosition:s,imageVariant:a}=cf(n,o,i);t.set(n,s),r.push(e),o.hasRenderCallback&&this.haveRenderCallbacks.push(a.id)}}patchUpdatedImages(e,t,i,r){this.haveRenderCallbacks=this.haveRenderCallbacks.filter(t=>e.hasImage(t,i)),e.dispatchRenderCallbacks(this.haveRenderCallbacks,i);for(const n of e.getUpdatedImages(i)){for(const r of this.iconPositions.keys()){const o=Ki.parse(r);if(mi.isEqual(o.id,n)){const o=e.getImage(n,i);this.patchUpdatedImage(this.iconPositions.get(r),o,t,null)}}for(const o of this.patternPositions.keys()){const s=Ki.parse(o);if(mi.isEqual(s.id,n)){const s=e.getImage(n,i);this.patchUpdatedImage(this.patternPositions.get(o),s,t,r||this.lut)}}}}patchUpdatedImage(e,t,i,r=null){if(!e||!t)return;if(e.version===t.version)return;e.version=t.version;const[n,o]=e.tl,s=e.sdf;if(this.lut||s){const e={width:t.data.width,height:t.data.height},a=new yu(e);yu.copy(t.data,a,{x:0,y:0},{x:0,y:0},e,r,s),i.update(a,{position:{x:n,y:o},recreateWhenResize:!1})}else i.update(t.data,{position:{x:n,y:o},recreateWhenResize:!1})}}ts(lf,"ImagePosition"),ts(df,"ImageAtlas",{omit:["lut"]}),ts(uf,"ImageAtlasReference");class ff{constructor(e){this.pendingRequests=new Map,this.cachedRanges=new Map,this.fontstackCompositing=e&&e.fontstackCompositing||"client"}loadGlyphRange(e,t,i,r,n){if("server"===this.fontstackCompositing)return void ff.loadGlyphRange(e,t,i,r,n);const o=e.split(",").map(e=>e.trim()).filter(e=>e.length>0);0!==o.length?1!==o.length?this._loadMultipleFonts(o,t,i,r,n):this._loadFont(o[0],t,i,r,n):n(new Error("Empty fontstack"))}_loadMultipleFonts(e,t,i,r,n){const o=e.map(()=>null),s={completed:0,firstError:null,callbackCalled:!1},a=(t,i,r)=>{if(!s.callbackCalled&&(i&&!s.firstError&&(s.firstError=i),r&&(o[t]=r),s.completed++,s.completed===e.length)){s.callbackCalled=!0;const e=o.filter(e=>null!==e);if(0===e.length)return void n(s.firstError||new Error("All fonts failed to load"));const t=this._composeGlyphs(e);n(null,t)}};for(let l=0;l<e.length;l++)this._loadFont(e[l],t,i,r,(e,t)=>{a(l,e,t)})}_loadFont(e,t,i,r,n){const o=`${e}:${t}`;if(this.cachedRanges.has(o)){const e=this.cachedRanges.get(o);return void Dt.frame(()=>n(null,e))}const s=this.pendingRequests.get(o);s?s.push(n):(this.pendingRequests.set(o,[n]),ff.loadGlyphRange(e,t,i,r,(e,t)=>{e||this.cachedRanges.set(o,t||null);const i=this.pendingRequests.get(o);if(this.pendingRequests.delete(o),i)for(const r of i)r(e,t)}))}_composeGlyphs(e){const t={};let i,r;for(const n of e)if(void 0===i&&void 0!==n.ascender&&(i=n.ascender),void 0===r&&void 0!==n.descender&&(r=n.descender),n.glyphs)for(const e in n.glyphs)void 0===t[e]&&(t[e]=n.glyphs[e]);return{glyphs:t,ascender:i,descender:r}}}ff.loadGlyphRange=function(e,t,i,r,n){const o=256*t,s=o+255,a=r.transformRequest(r.normalizeGlyphsURL(i).replace("{fontstack}",e).replace("{range}",`${o}-${s}`),Xt.Glyphs);si(a,(e,t)=>{if(e)n(e);else if(t){const e={},i=function(e){return function(e){const t={glyphs:[]};let i;for(;i=e.nextField();)1===i&&_d(e,e.readVarint()+e.pos,t);return t}(new sd(e))}(t);for(const t of i.glyphs)e[t.id]=t;n(null,{glyphs:e,ascender:i.ascender,descender:i.descender})}})};const pf=1e20,Af=new Float64Array(256);for(let uE=0;uE<256;uE++){const e=.5-Math.pow(uE/255,1/2.2);Af[uE]=e*Math.abs(e)}function gf(e,t,i,r,n,o,s,a,l){for(let c=t;c<t+r;c++)mf(e,i*o+c,o,n,s,a,l);for(let c=i;c<i+n;c++)mf(e,c*o+t,1,r,s,a,l)}function mf(e,t,i,r,n,o,s){o[0]=0,s[0]=-pf,s[1]=pf,n[0]=e[t];for(let a=1,l=0,c=0;a<r;a++){n[a]=e[t+a*i];const r=a*a;do{const e=o[l];c=(n[a]-n[e]+r-e*e)/(a-e)/2}while(c<=s[l]&&--l>-1);l++,o[l]=a,s[l]=c,s[l+1]=pf}for(let a=0,l=0;a<r;a++){for(;s[l+1]<a;)l++;const r=o[l],c=a-r;e[t+a*i]=n[r]+c*c}}Af[255]=-pf;const _f=/bold/i,yf=/medium/i,xf=/light/i,vf={none:0,ideographs:1,all:2};class wf{constructor(e,t,i,r){this.requestManager=e,this.localGlyphMode=t,this.localFontFamily=i,this.url="",this.entries={},this.localGlyphs={200:{},400:{},500:{},900:{}},this.glyphLoader=new ff({fontstackCompositing:r})}setURL(e){this.url=e}prefetchRange(e,t){const i=this.url||Tt.GLYPHS_URL;if(!i)return;let r=this.entries[e];r||(r=this.entries[e]={glyphs:{},requests:{},ranges:{}}),r.ranges[t]||r.requests[t]||(r.requests[t]=[],this.glyphLoader.loadGlyphRange(e,t,i,this.requestManager,(e,i)=>{if(i){r.ascender=i.ascender,r.descender=i.descender;for(const e in i.glyphs)this._doesCharSupportLocalGlyph(+e)||(r.glyphs[+e]=i.glyphs[+e]);r.ranges[t]=!0}for(const n of r.requests[t]||[])n(e,i);delete r.requests[t]}))}getGlyphs(e,t){const i=[],r=this.url||Tt.GLYPHS_URL;for(const n in e)for(const t of e[n])i.push({stack:n,id:t});Ke(i,({stack:e,id:t},i)=>{let n=this.entries[e];n||(n=this.entries[e]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let o=n.glyphs[t];if(void 0!==o)return void i(null,{stack:e,id:t,glyph:o});if(o=this._tinySDF(n,e,t),o)return n.glyphs[t]=o,void i(null,{stack:e,id:t,glyph:o});const s=Math.floor(t/256);if(256*s>65535)return lt("glyphs > 65535 not supported"),void i(null,{stack:e,id:t,glyph:o});if(n.ranges[s])return void i(null,{stack:e,id:t,glyph:o});let a=n.requests[s];a||(a=n.requests[s]=[],this.glyphLoader.loadGlyphRange(e,s,r,this.requestManager,(e,t)=>{if(t){n.ascender=t.ascender,n.descender=t.descender;for(const e in t.glyphs)this._doesCharSupportLocalGlyph(+e)||(n.glyphs[+e]=t.glyphs[+e]);n.ranges[s]=!0}for(const i of a)i(e,t);delete n.requests[s]})),a.push((r,n)=>{r?i(r):n&&i(null,{stack:e,id:t,glyph:n.glyphs[t]||null})})},(e,i)=>{if(e)t(e);else if(i){const e={};for(const{stack:t,id:r,glyph:n}of i)void 0===e[t]&&(e[t]={}),void 0===e[t].glyphs&&(e[t].glyphs={}),e[t].glyphs[r]=n&&{id:n.id,bitmap:n.bitmap.clone(),metrics:n.metrics},e[t].ascender=this.entries[t].ascender,e[t].descender=this.entries[t].descender;t(null,e)}})}_doesCharSupportLocalGlyph(e){return this.localGlyphMode!==vf.none&&(this.localGlyphMode===vf.all?!!this.localFontFamily:!!this.localFontFamily&&(vs(e)||bs(e)||ds(e)||fs(e)||us(e)||xs(e)||(t=e)>=131072&&t<=173791||(e=>e>=66736&&e<=66815)(e)));var t}_tinySDF(e,t,i){const r=this.localFontFamily;if(!r||!this._doesCharSupportLocalGlyph(i))return;let n=e.tinySDF;if(!n){let i="400";_f.test(t)?i="900":yf.test(t)?i="500":xf.test(t)&&(i="200"),n=e.tinySDF=new wf.TinySDF({fontFamily:r,fontWeight:i,fontSize:48,buffer:6,radius:16}),n.fontWeight=i}const o=n.fontWeight;if(this.localGlyphs[o][i])return this.localGlyphs[o][i];const s=String.fromCodePoint(i),{data:a,width:l,height:c,glyphWidth:h,glyphHeight:u,glyphLeft:d,glyphTop:f,glyphAdvance:p}=n.draw(s);return this.localGlyphs[o][i]={id:i,bitmap:new _u({width:l,height:c},a),metrics:{width:h/2,height:u/2,left:d/2,top:f/2-27,advance:p/2,localGlyph:!0}}}}function Ef(e,t){return e+t[1]-t[0]}function bf(e,t,i,r,n=1){const o=[],s=e.imagePrimary,a=s.pixelRatio,l=s.paddedRect.w-2,c=s.paddedRect.h-2,h=(e.right-e.left)*n,u=(e.bottom-e.top)*n,d=s.stretchX||[[0,l]],f=s.stretchY||[[0,c]],p=d.reduce(Ef,0),A=f.reduce(Ef,0),g=l-p,m=c-A;let _=0,y=p,x=0,v=A,w=0,E=g,b=0,I=m;if(s.content&&r){const e=s.content;_=Cf(d,0,e[0]),x=Cf(f,0,e[1]),y=Cf(d,e[0],e[2]),v=Cf(f,e[1],e[3]),w=e[0]-_,b=e[1]-x,E=e[2]-e[0]-y,I=e[3]-e[1]-v}const C=(r,o,l,c)=>{const d=Tf(r.stretch-_,y,h,e.left*n),f=Mf(r.fixed-w,E,r.stretch,p),g=Tf(o.stretch-x,v,u,e.top*n),m=Mf(o.fixed-b,I,o.stretch,A),C=Tf(l.stretch-_,y,h,e.left*n),B=Mf(l.fixed-w,E,l.stretch,p),D=Tf(c.stretch-x,v,u,e.top*n),T=Mf(c.fixed-b,I,c.stretch,A),M=new we(d,g),Q=new we(C,g),S=new we(C,D),P=new we(d,D),R=new we(f/a,m/a),z=new we(B/a,T/a),L=t*Math.PI/180;if(L){const e=Math.sin(L),t=Math.cos(L),i=[t,-e,e,t];M._matMult(i),Q._matMult(i),P._matMult(i),S._matMult(i)}const F=r.stretch+r.fixed,O=l.stretch+l.fixed,k=o.stretch+o.fixed,N=c.stretch+c.fixed,U=e.imageSecondary;return{tl:M,tr:Q,bl:P,br:S,texPrimary:{x:s.paddedRect.x+1+F,y:s.paddedRect.y+1+k,w:O-F,h:N-k},texSecondary:U?{x:U.paddedRect.x+1+F,y:U.paddedRect.y+1+k,w:O-F,h:N-k}:void 0,writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:R,pixelOffsetBR:z,minFontScaleX:E/a/h,minFontScaleY:I/a/u,isSDF:i}};if(s.stretchX||s.stretchY){const e=Bf(d,g,p),t=Bf(f,m,A);for(let i=0;i<e.length-1;i++){const r=e[i],n=e[i+1];for(let e=0;e<t.length-1;e++)o.push(C(r,t[e],n,t[e+1]))}}else o.push(C({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return o}function If(e,t){const i=e.stretchY||[[0,e.paddedRect.h-2]];return e.stretchX||e.stretchY?Df(e.stretchX||[[0,e.paddedRect.w-2]])*Df(i):1}function Cf(e,t,i){let r=0;for(const n of e)r+=Math.max(t,Math.min(i,n[1]))-Math.max(t,Math.min(i,n[0]));return r}function Bf(e,t,i){const r=[{fixed:-1,stretch:0}];for(const[n,o]of e){const e=r.at(-1);r.push({fixed:n-e.stretch,stretch:e.stretch}),r.push({fixed:n-e.stretch,stretch:e.stretch+(o-n)})}return r.push({fixed:t+1,stretch:i}),r}function Df(e){return 2*e.length+1}function Tf(e,t,i,r){return e/t*i+r}function Mf(e,t,i,r){return e-t*i/r}function Qf(e,t,i,r){const n=t+e.positionedLines[r].lineOffset;return 0===r?i+n/2:i+(n+(t+e.positionedLines[r-1].lineOffset))/2}function Sf(e,t,i,r,n,o,s,a,l,c=1){const h=[];if(0===t.positionedLines.length)return h;const u=(void 0!==l?l:r.layout.get("text-rotate").evaluate(o,{}))*Math.PI/180,d=function(e){const t=e[0],i=e[1],r=t*i;return r>0?[t,-i]:r<0?[-t,i]:0===t?[i,t]:[i,-t]}(i);let f=Math.abs(t.top-t.bottom);for(const m of t.positionedLines)f-=m.lineOffset;const p=t.positionedLines.length,A=f/p;let g=t.top-i[1];for(let m=0;m<p;++m){const e=t.positionedLines[m];g=Qf(t,A,g,m);for(const r of e.positionedGlyphs){if(!r.rect)continue;const e=r.rect||{};let o=4,l=!0,f=1,p=0;if(r.image){const e=s.get(r.image.toString());if(!e)continue;if(e.sdf){lt("SDF images are not supported in formatted text and will be ignored.");continue}l=!1,f=e.pixelRatio,o=1/f,e.usvg||(f/=c)}const A=(n||a)&&r.vertical,m=r.metrics.advance*r.scale/2,_=r.metrics,y=r.rect;if(null===y)continue;a&&t.verticalizable&&(p=r.image?m-r.metrics.width*r.scale/2:0);const x=n?[r.x+m,r.y]:[0,0];let v=[0,0],w=[0,0],E=!1;n||(A?(w=[r.x+m+d[0],r.y+d[1]-p],E=!0):v=[r.x+m+i[0],r.y+i[1]-p]);const b=y.w*r.scale/(f*(r.localGlyph?2:1)),I=y.h*r.scale/(f*(r.localGlyph?2:1));let C,B,D,T;if(A){const e=r.y-g,t=new we(-m,m-e),i=-Math.PI/2,n=new we(...w);
1C=new we(-m+v[0],v[1]),C._rotateAround(i,t)._add(n),C.x+=-e+m,C.y-=(_.left-o)*r.scale;const s=r.image?_.advance*r.scale:Xu*r.scale,a=String.fromCodePoint(r.glyph);td(a)?C.x+=(1-o)*r.scale:id(a)?C.x+=s-_.height*r.scale+(-o-1)*r.scale:C.x+=r.image||_.width+2*o===y.w&&_.height+2*o===y.h?(s-I)/2:(s-(_.height+2*o)*r.scale)/2,B=new we(C.x,C.y-b),D=new we(C.x+I,C.y),T=new we(C.x+I,C.y-b)}else{const e=(_.left-o)*r.scale-m+v[0],t=(-_.top-o)*r.scale+v[1],i=e+b,n=t+I;C=new we(e,t),B=new we(i,t),D=new we(e,n),T=new we(i,n)}if(u){let e;e=n?new we(0,0):E?new we(d[0],d[1]):new we(i[0],i[1]),C._rotateAround(u,e),B._rotateAround(u,e),D._rotateAround(u,e),T._rotateAround(u,e)}const M=new we(0,0),Q=new we(0,0);h.push({tl:C,tr:B,bl:D,br:T,texPrimary:e,texSecondary:void 0,writingMode:t.writingMode,glyphOffset:x,sectionIndex:r.sectionIndex,isSDF:l,pixelOffsetTL:M,pixelOffsetBR:Q,minFontScaleX:0,minFontScaleY:0})}}return h}function Pf(e,t=1,i=!1){let r=1/0,n=1/0,o=-1/0,s=-1/0;const a=e[0];for(let f=0;f<a.length;f++){const e=a[f];(!f||e.x<r)&&(r=e.x),(!f||e.y<n)&&(n=e.y),(!f||e.x>o)&&(o=e.x),(!f||e.y>s)&&(s=e.y)}const l=Math.min(o-r,s-n);let c=l/2;const h=new Gr([],Rf);if(0===l)return new we(r,n);for(let f=r;f<o;f+=l)for(let t=n;t<s;t+=l)h.push(new zf(f+c,t+c,c,e));let u=function(e){let t=0,i=0,r=0;const n=e[0];for(let o=0,s=n.length,a=s-1;o<s;a=o++){const e=n[o],s=n[a],l=e.x*s.y-s.x*e.y;i+=(e.x+s.x)*l,r+=(e.y+s.y)*l,t+=3*l}return new zf(i/t,r/t,0,e)}(e),d=h.length;for(;h.length;){const r=h.pop();(r.d>u.d||!u.d)&&(u=r,i&&console.log("found best %d after %d probes",Math.round(1e4*r.d)/1e4,d)),r.max-u.d<=t||(c=r.h/2,h.push(new zf(r.p.x-c,r.p.y-c,c,e)),h.push(new zf(r.p.x+c,r.p.y-c,c,e)),h.push(new zf(r.p.x-c,r.p.y+c,c,e)),h.push(new zf(r.p.x+c,r.p.y+c,c,e)),d+=4)}return i&&(console.log(`num probes: ${d}`),console.log(`best distance: ${u.d}`)),u.p}function Rf(e,t){return t.max-e.max}wf.TinySDF=class{constructor({fontSize:e=24,buffer:t=3,radius:i=8,cutoff:r=.25,fontFamily:n="sans-serif",fontWeight:o="normal",fontStyle:s="normal",lang:a=null}={}){this.buffer=t,this.radius=i,this.cutoff=r,this.lang=a;const l=this.size=e+4*t,c=this._createCanvas(l),h=this.ctx=c.getContext("2d",{willReadFrequently:!0});h.font=`${s} ${o} ${e}px ${n}`,h.textBaseline="alphabetic",h.textAlign="left",h.fillStyle="black",this.gridOuter=new Float64Array(l*l),this.gridInner=new Float64Array(l*l),this.f=new Float64Array(l),this.z=new Float64Array(l+1),this.v=new Uint16Array(l)}_createCanvas(e){if("undefined"!=typeof OffscreenCanvas)return new OffscreenCanvas(e,e);const t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){const{width:t,actualBoundingBoxAscent:i,actualBoundingBoxDescent:r,actualBoundingBoxLeft:n,actualBoundingBoxRight:o}=this.ctx.measureText(e),s=Math.ceil(i),a=Math.floor(-n),l=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(o)-a)),c=Math.max(0,Math.min(this.size-this.buffer,s+Math.ceil(r))),h=l+2*this.buffer,u=c+2*this.buffer,d=Math.max(h*u,0),f=new Uint8ClampedArray(d),p={data:f,width:h,height:u,glyphWidth:l,glyphHeight:c,glyphTop:s,glyphLeft:a,glyphAdvance:t};if(0===l||0===c)return p;const{ctx:A,buffer:g,gridInner:m,gridOuter:_}=this;this.lang&&(A.lang=this.lang),A.clearRect(g,g,l,c),A.fillText(e,g-a,g+s);const y=A.getImageData(g,g,l,c);_.fill(pf,0,d),m.fill(0,0,d);let x=3;for(let b=0;b<c;b++){let e=(b+g)*h+g;for(let t=0;t<l;t++,x+=4,e++){const t=y.data[x];if(0===t)continue;const i=Af[t];_[e]=Math.max(0,i),m[e]=Math.max(0,-i)}}gf(_,0,0,h,u,h,this.f,this.v,this.z);const v=Math.min(g,1);gf(m,g-v,g-v,l+2*v,c+2*v,h,this.f,this.v,this.z);const w=255/this.radius,E=255*(1-this.cutoff);for(let b=0;b<d;b++){const e=Math.sqrt(_[b])-Math.sqrt(m[b]);f[b]=Math.round(E-w*e)}return p}};class zf{constructor(e,t,i,r){this.p=new we(e,t),this.h=i,this.d=function(e,t){let i=!1,r=1/0;for(let n=0;n<t.length;n++){const o=t[n];for(let t=0,n=o.length,s=n-1;t<n;s=t++){const n=o[t],a=o[s];n.y>e.y!=a.y>e.y&&e.x<(a.x-n.x)*(e.y-n.y)/(a.y-n.y)+n.x&&(i=!i),r=Math.min(r,tu(e,n,a))}}return(i?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}}const Lf=Object.keys,Ff=Number.POSITIVE_INFINITY,Of=Math.sqrt(2);function kf(e,t,i,r,n,o){const s=Pd(e)&&e.collisionPadding?e.collisionPadding:[0,0,0,0],a={top:e.top-s[1],bottom:e.bottom+s[3],left:e.left-s[0],right:e.right+s[2],scaled:!1};return void 0!==r&&function(e,t){e.top*=t,e.bottom*=t,e.left*=t,e.right*=t,e.scaled=!0}(a,r),o&&(a.left+=o[0],a.right+=o[0],a.top+=o[1],a.bottom+=o[1]),i&&function(e,t,i){if(!t)return;const r=He(t),n=new we(i?i[0]:0,i?i[1]:0),o=new we(e.left,e.top),s=new we(e.right,e.top),a=new we(e.left,e.bottom),l=new we(e.right,e.bottom);
1o._rotateAround(r,n),s._rotateAround(r,n),a._rotateAround(r,n),l._rotateAround(r,n),e.left=Math.min(o.x,s.x,a.x,l.x),e.right=Math.max(o.x,s.x,a.x,l.x),e.top=Math.min(o.y,s.y,a.y,l.y),e.bottom=Math.max(o.y,s.y,a.y,l.y)}(a,i,n),t?{top:Math.min(t.top,a.top),bottom:Math.max(t.bottom,a.bottom),left:Math.min(t.left,a.left),right:Math.max(t.right,a.right),scaled:t.scaled||a.scaled}:a}function Nf(e,[t,i]){let r=0,n=0;if(i===Ff){t<0&&(t=0);const i=t/Of;switch(e){case"top-right":case"top-left":n=i-7;break;case"bottom-right":case"bottom-left":n=7-i;break;case"bottom":n=7-t;break;case"top":n=t-7}switch(e){case"top-right":case"bottom-right":r=-i;break;case"top-left":case"bottom-left":r=i;break;case"left":r=t;break;case"right":r=-t}}else{switch(t=Math.abs(t),i=Math.abs(i),e){case"top-right":case"top-left":case"top":n=i-7;break;case"bottom-right":case"bottom-left":case"bottom":n=7-i}switch(e){case"top-right":case"bottom-right":case"right":r=-t;break;case"top-left":case"bottom-left":case"left":r=t}}return[r,n]}function Uf(e,t,i,r,n,o,s,a,l,c,h,u,d,f,p){const A=e.layers[0],g=A.appearances;if(0===g.length)return{iconBBox:null,iconVerticalBBox:null,textBBox:null,textVerticalBBox:null};const m={iconBBox:null,iconVerticalBBox:null},_={textBBox:null,textVerticalBBox:null},{baseIconRotate:y,baseTextRotate:x,iconScaleFactor:v}=function(e,t,i){const r=e.get("icon-rotate").evaluate(t,{},i),n=e.get("text-rotate").evaluate(t,{},i),[o,s]=e.get("icon-size-scale-range");return{baseIconRotate:r,baseTextRotate:n,iconScaleFactor:Je(1,o,s)}}(r,n,o);t&&(m.iconBBox=kf(t,m.iconBBox,y),i)&&(m.iconVerticalBBox=kf(i,m.iconVerticalBBox,y+90));const w=ap(u.horizontal);w&&(_.textBBox=kf(w,_.textBBox,x,1,f)),u.vertical&&(_.textVerticalBBox=kf(u.vertical,_.textVerticalBBox,x+90,1,f));for(const E of g)E.hasIconLayoutProperties()&&Vf(m,e,A,E,n,o,a,y,s,l,t,c,v,h,p),E.hasTextLayoutProperties()&&jf(_,A,E,n,o,f,x,d,w,u.vertical);return{iconBBox:m.iconBBox,iconVerticalBBox:m.iconVerticalBBox,textBBox:_.textBBox,textVerticalBBox:_.textVerticalBBox}}function Vf(e,t,i,r,n,o,s,a,l,c,h,u,d,f,p){const{appearanceIconOffset:A,appearanceIconRotate:g,appearanceIconSize:m}=Hf(r,i,n,o,s,a,l,c.iconScaleFactor);let _=null,y=null,x=null;r.hasLayoutProperty("icon-image")?x=function(e,t,i,r,n,o,s,a){let l=null;const c=t.getAppearanceValueAndResolveTokens(i,"icon-image",r,n,a);if(c){const h=e.getResolvedImageFromTokens(c),u=i.hasLayoutProperty("icon-size")?i.getUnevaluatedLayoutProperty("icon-size"):t._unevaluatedLayout._values["icon-size"],d=Jf(h,Nd(e.zoom,u,e.worldview,a),u,n,e.zoom,r,e.pixelRatio,s,e.worldview,a);l=o.get(d.iconPrimary.toString())}return l}(t,i,r,n,o,u,d,p):h&&(x=h.imagePrimary),x&&(_=Rd(x,null,A,f),t.allowVerticalPlacement&&(y=Rd(x,null,A,f)));const v=l>0?m/l:1;_&&(e.iconBBox=kf(_,e.iconBBox,g,1!==v?v:void 0)),y&&(e.iconVerticalBBox=kf(y,e.iconVerticalBBox,g+90,1!==v?v:void 0))}function Hf(e,t,i,r,n,o,s,a){const l=e.hasLayoutProperty("icon-offset")?t.getAppearanceValueAndResolveTokens(e,"icon-offset",i,r,[]):null,c=l&&Array.isArray(l)?l:n,h=e.hasLayoutProperty("icon-rotate")?t.getAppearanceValueAndResolveTokens(e,"icon-rotate",i,r,[]):null,u="number"==typeof h?h:o,d=e.hasLayoutProperty("icon-size")?t.getAppearanceValueAndResolveTokens(e,"icon-size",i,r,[]):null;return{appearanceIconOffset:c,appearanceIconRotate:u,appearanceIconSize:"number"==typeof d?d*a:s}}function jf(e,t,i,r,n,o,s,a,l,c){const{appearanceTextOffset:h,appearanceTextRotate:u,appearanceTextSize:d}=Gf(i,t,r,n,o,s,a),f=d/a,p=[(h[0]-o[0])*f,(h[1]-o[1])*f],A=0!==p[0]||0!==p[1];l&&(e.textBBox=kf(l,e.textBBox,u,f,h,A?p:void 0)),c&&(e.textVerticalBBox=kf(c,e.textVerticalBBox,u+90,f,h,A?p:void 0))}function Gf(e,t,i,r,n,o,s){const a=e.hasLayoutProperty("text-offset")?t.getAppearanceValueAndResolveTokens(e,"text-offset",i,r,[]):null,l=a&&Array.isArray(a)?[a[0]*Xu,a[1]*Xu]:n,c=e.hasLayoutProperty("text-rotate")?t.getAppearanceValueAndResolveTokens(e,"text-rotate",i,r,[]):null,h="number"==typeof c?c:o,u=e.hasLayoutProperty("text-size")?t.getAppearanceValueAndResolveTokens(e,"text-size",i,r,[]):null;return{appearanceTextOffset:l,appearanceTextRotate:h,appearanceTextSize:"number"==typeof u?u:s}}function Yf(e,t,i,r,n,o,s,a,l){if(!t||!t.usvg)return;
vendor: 10,157 bytes, line 1
1const c=Od(r),h=Od(n),u="both"!==o&&"width"!==o||!Ld(r)?1:h.width/c.width,d="both"!==o&&"height"!==o||!Fd(r)?1:h.height/c.height;i.scaleSelf(u,d);const f=i.toString();s.set(f,i),a.set(f,t);const{imagePosition:p}=cf(f,t,1);l.set(f,p)}function Wf(e,t,i,r,n,o,s,a,l,c){if(!e)return;const h=function(e,t,i,r,n,o,s){if("camera"===e.kind)return e.maxSize;if("composite"===e.kind){const r=t.possiblyEvaluate(new ea(e.maxZoom,{worldview:o}),i,s).evaluate(n,{},i,s),a=t.possiblyEvaluate(new ea(e.minZoom,{worldview:o}),i,s).evaluate(n,{},i,s);return Math.max(r,a)}return t.possiblyEvaluate(new ea(r,{worldview:o}),i,s).evaluate(n,{},i,s)}(t,i,r,n,o,l,c);return e.scaleSelf(h*a*s)}function Jf(e,t,i,r,n,o,s,a,l,c){return{iconPrimary:Wf(e.getPrimary(),t,i,r,n,o,s,a,l,c),iconSecondary:Wf(e.getSecondary(),t,i,r,n,o,s,a,l,c)}}function Zf(e,t,i){if(!t)return;const r=i.get(e.toString()),n=i.get(t.toString());r&&n&&(r.paddedRect.w===n.paddedRect.w&&r.paddedRect.h===n.paddedRect.h||lt(`Mismatch in icon variant sizes: ${e.toString()} and ${t.toString()}`),r.usvg!==n.usvg&<(`Mismatch in icon variant image types: ${e.id} and ${t.id}`))}function qf(e,t,i,r){if(!e)return;const n=t.get(i.toString());if(n&&(e.imagePrimary=n),r){const i=t.get(r.toString());e.imageSecondary=i}}function Kf(e,t){for(const i in e.horizontal)Xf(e.horizontal[i],t);Xf(e.vertical,t)}function Xf(e,t){if(e)for(const i of e.positionedLines)for(const e of i.positionedGlyphs)if(null!==e.image){const i=e.image.toString();e.rect=t.get(i).paddedRect}}function $f(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 ep(e,t,i,r,n,o,s,a,l){const c=ap(o.horizontal)||o.vertical,h=i.get("icon-text-fit-padding").evaluate(r,{},n);let u,d=t;return t&&"none"!==l&&(e.allowVerticalPlacement&&o.vertical&&(u=zd(t,o.vertical,l,h,a,s)),c&&(d=zd(t,c,l,h,a,s))),{defaultShapedIcon:d,verticallyShapedIcon:u}}function tp(e,t){return e*t/24}function ip(e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m,_,y,x,v,w,E,b,I,C,B){let D=s.textMaxSize.evaluate(t,{},d);void 0===D?D=a*s.textScaleFactor:D*=s.textScaleFactor;const T=e.layers[0].layout,M=tp(a,s.textScaleFactor),Q=ap(i.horizontal)||i.vertical,S=e.hasAnyAppearanceLayoutProperty(["text-size","text-offset","text-rotate"]),P=e.getAppearanceFeatureData(t.index);("none"!==g||S)&&P&&(P.textShaping=Q,P.iconTextFitPadding=T.get("icon-text-fit-padding").evaluate(t,{},d),P.fontScale=M,P.textScaleFactor=s.textScaleFactor);const R="globe"===f.name,z=e.tilePixelRatio*D/24,L=(V=e.overscaling,e.zoom>18&&V>2&&(V>>=1),Math.max(Yr/(512*V),1)*T.get("symbol-spacing")),F=T.get("text-padding")*e.tilePixelRatio,O=T.get("icon-padding")*e.tilePixelRatio,k=He(T.get("text-max-angle")),N="map"===T.get("icon-rotation-alignment")&&"point"!==y,U=L/2;var V;!1===e.hasAnyIconTextFit&&"none"!==g&&(e.hasAnyIconTextFit=!0);const H=t.properties?+t.properties[wu]:null,j=e.hdExt?e.hdExt.elevationFeatureIdToIndex:void 0,G=H&&j?j.get(H):65535,Y=(a,l,y)=>{if(l.x<0||l.x>=Yr||l.y<0||l.y>=Yr)return;if(I&&I.length>0&&t.properties&&B&&B(I,t.properties,l,d,C))return;let E=null;if(R){const{x:e,y:t,z:i}=f.projectTilePoint(l.x,l.y,y);E={anchor:new Hd(e,t,i,0,void 0),up:f.upVector(y,l.x,l.y)}}!function(e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m,_,y,x,v,w,E,b,I,C,B,D,T,M,Q){const S=e.addToLineVertexArray(t,r);let P,R,z,L,F,O,k,N=0,U=0,V=0,H=0,j=-1,G=-1;const Y={};let W=ui("");const J=i?i.anchor:t,Z="none"!==B;let q=0,K=0;if(void 0===l._unevaluatedLayout.getValue("text-radial-offset")){const e=l.layout.get("text-offset").evaluate(x,{},b);q=e[0]*Xu,K=e[1]*Xu}else q=l.layout.get("text-radial-offset").evaluate(x,{},b)*Xu,K=Ff;if(e.allowVerticalPlacement&&n.vertical){const e=n.vertical;if(p)O=cp(e),a&&(k=cp(a));else{const i=l.layout.get("text-rotate").evaluate(x,{},b)+90;z=lp(c,J,t,h,u,d,e,f,i,A,Q),a&&(L=lp(c,J,t,h,u,d,a,m,i,null,M))}}if(o){const r=l.layout.get("icon-rotate").evaluate(x,{},b),n=bf(o,r,w,Z,v.iconScaleFactor),s=a?bf(a,r,w,Z,v.iconScaleFactor):void 0;R=lp(c,J,t,h,u,d,o,m,r,null,T);const f=function(e,t,i,r,n,o,s,a,l,c){const h=e.layers[0],u=h.appearances;let d=t.length;if(i&&(d=Math.max(d,i.length)),0===u.length)return d;const[f,p]=r.get("icon-size-scale-range"),A=Je(1,f,p);for(const g of u)if(g.hasLayoutProperty("icon-image")){const t=h.getAppearanceValueAndResolveTokens(g,"icon-image",o,s,c);if(t){const i=e.getResolvedImageFromTokens(t);if(i){const t=g.hasLayoutProperty("icon-size")?g.getUnevaluatedLayoutProperty("icon-size"):n._values["icon-size"],r=Jf(i,Nd(e.zoom,t,e.worldview,c),t,s,e.zoom,o,e.pixelRatio,A,e.worldview,c),l=a.get(r.iconPrimary.toString());l&&(d=Math.max(d,If(l)))}}}return d}(e,n,s,l.layout,l._unevaluatedLayout,x,b,e.iconAtlasPositions,0,E);N=4*f;const p=l.layout.get("icon-size").evaluate(x,{},b,E),A=v.compositeIconSizes?v.compositeIconSizes[0].evaluate(x,{},b,E):0,g=v.compositeIconSizes?v.compositeIconSizes[1].evaluate(x,{},b,E):0,B=sp(e.layerIds[0],e.iconSizeData,p,o.imagePrimary.usvg?1:v.iconScaleFactor,A,g);e.addSymbols(e.icon,n,B,y,_,x,void 0,i,t,S.lineStartIndex,S.lineLength,-1,E,b,I,C,e.symbolInstances.length,f),j=e.icon.placedSymbolArray.length-1,s&&(U=4*f,e.addSymbols(e.icon,s,B,y,_,x,xd.vertical,i,t,S.lineStartIndex,S.lineLength,-1,E,b,I,C,e.symbolInstances.length,f),G=e.icon.placedSymbolArray.length-1)}for(const te in n.horizontal){const r=te,o=n.horizontal[r];P||(W=ui(o.text),p?F=cp(o):P=lp(c,J,t,h,u,d,o,f,l.layout.get("text-rotate").evaluate(x,{},b),A,Q));const a=1===o.positionedLines.length;if(V+=op(e,i,t,o,s,l,p,x,A,S,n.vertical?xd.horizontal:xd.horizontalOnly,a?Lf(n.horizontal):[r],Y,j,v,E,b,e.symbolInstances.length,I),a)break}n.vertical&&(H+=op(e,i,t,n.vertical,s,l,p,x,A,S,xd.vertical,["vertical"],Y,G,v,E,b,e.symbolInstances.length,I));let X=-1;const $=(e,t)=>e?Math.max(e,t):t;X=$(F,X),X=$(O,X),X=$(k,X);const ee=X>-1?1:0;e.glyphOffsetArray.length>=65535&<("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(t.x,t.y,J.x,J.y,J.z,Y.right>=0?Y.right:-1,Y.center>=0?Y.center:-1,Y.left>=0?Y.left:-1,Y.vertical>=0?Y.vertical:-1,j,G,W,void 0!==P?P:e.collisionBoxArray.length,void 0!==P?P+1:e.collisionBoxArray.length,void 0!==z?z:e.collisionBoxArray.length,void 0!==z?z+1:e.collisionBoxArray.length,void 0!==R?R:e.collisionBoxArray.length,void 0!==R?R+1:e.collisionBoxArray.length,L||e.collisionBoxArray.length,L?L+1:e.collisionBoxArray.length,h,V,H,N,U,ee,0,q,K,X,0,Z?1:0,D)}(e,l,E,a,i,r,o,n,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,F,_,c,0,O,N,m,t,s,h,u,d,p,A,g,G,x,v,w)};if("line"===y)for(const W of du(t.geometry,0,0,Yr,Yr)){const t=Zd(W,L,k,i.vertical||Q,r,24,z,e.overscaling,Yr);for(const i of t)Q&&hp(e,Q.text,U,i)||Y(W,i,d)}else if("line-center"===y){for(const W of t.geometry)if(W.length>1){const e=Jd(W,k,i.vertical||Q,r,24,z);e&&Y(W,e,d)}}else if("Polygon"===t.type)for(const W of Te(t.geometry,0)){const e=Pf(W,16);Y(W[0],new Hd(e.x,e.y,0,0,void 0),d)}else if("LineString"===t.type)for(const W of t.geometry)Y(W,new Hd(W[0].x,W[0].y,0,0,void 0),d);else if("Point"===t.type)for(const W of t.geometry)for(const e of W)Y([e],new Hd(e.x,e.y,0,0,void 0),d)}const rp=255,np=rp*kd;function op(e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m,_){const y=Sf(0,r,l,o,s,a,n,e.allowVerticalPlacement,void 0,p.textScaleFactor),x=o.layout.get("text-size").evaluate(a,{},g),v=p.compositeTextSizes?p.compositeTextSizes[0].evaluate(a,{},g):0,w=p.compositeTextSizes?p.compositeTextSizes[1].evaluate(a,{},g):0,E=sp(e.layerIds[0],e.textSizeData,x,p.textScaleFactor,v,w);e.addSymbols(e.text,y,E,l,s,a,h,t,i,c.lineStartIndex,c.lineLength,f,A,g,_,!1,m,y.length);for(const b of u)d[b]=e.text.placedSymbolArray.length-1;return 4*y.length}function sp(e,t,i,r,n,o){const s=t;let a=null;return"source"===s.kind?(a=[kd*i*r],a[0]>np&<(`${e}: Value for "text-size" or "icon-size" is >= ${rp}. Reduce your "text-size" or "icon-size".`)):"composite"===s.kind&&(a=[kd*n*r,kd*o*r],(a[0]>np||a[1]>np)&<(`${e}: Value for "text-size" or "icon-size" is >= ${rp}. Reduce your "text-size" or "icon-size".`)),a}function ap(e){for(const t in e)return e[t];return null}function lp(e,t,i,r,n,o,s,a,l,c,h){let u,d,f,p;if(u=h?h.top:s.top,d=h?h.bottom:s.bottom,f=h?h.left:s.left,p=h?h.right:s.right,Pd(s)&&s.collisionPadding){const e=s.collisionPadding;f-=e[0],u-=e[1],p+=e[2],d+=e[3]}if(l){const e=new we(f,u),t=new we(p,u),i=new we(f,d),r=new we(p,d),n=He(l);let o=new we(0,0);c&&(o=new we(c[0],c[1])),e._rotateAround(n,o),t._rotateAround(n,o),i._rotateAround(n,o),r._rotateAround(n,o),f=Math.min(e.x,t.x,i.x,r.x),p=Math.max(e.x,t.x,i.x,r.x),u=Math.min(e.y,t.y,i.y,r.y),d=Math.max(e.y,t.y,i.y,r.y)}return e.emplaceBack(t.x,t.y,t.z,i.x,i.y,f,u,p,d,a,r,n,o),e.length-1}function cp(e){Pd(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 hp(e,t,i,r){const n=e.compareText;if(t in n){const e=n[t];for(let t=e.length-1;t>=0;t--)if(r.dist(e[t])<i)return!0}else n[t]=[];return n[t].push(r),!1}const up=Zl([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:dp}=up,fp=Zl([{name:"a_pos_3",components:3,type:"Int16"}]);var pp=Zl([{name:"a_pos",type:"Int16",components:2}]);class Ap{constructor(e,t){this.pos=e,this.dir=t}intersectsPlane(e,t,i){const r=ye(t,this.dir);if(Math.abs(r)<1e-6)return!1;const n=((e[0]-this.pos[0])*t[0]+(e[1]-this.pos[1])*t[1])/r;return i[0]=this.pos[0]+this.dir[0]*n,i[1]=this.pos[1]+this.dir[1]*n,!0}}class gp{constructor(e,t){this.pos=e,this.dir=t}intersectsPlane(e,t,i){const r=U(t,this.dir);if(Math.abs(r)<1e-6)return!1;const n=((e[0]-this.pos[0])*t[0]+(e[1]-this.pos[1])*t[1]+(e[2]-this.pos[2])*t[2])/r;return i[0]=this.pos[0]+this.dir[0]*n,i[1]=this.pos[1]+this.dir[1]*n,i[2]=this.pos[2]+this.dir[2]*n,!0}closestPointOnSphere(e,t,r){if(function(e,t){var r=e[0],n=e[1],o=e[2],s=t[0],a=t[1],l=t[2];return Math.abs(r-s)<=i*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(n-a)<=i*Math.max(1,Math.abs(n),Math.abs(a)
vendor: 17,799 bytes, line 1
1)&&Math.abs(o-l)<=i*Math.max(1,Math.abs(o),Math.abs(l))}(this.pos,e)||0===t)return r[0]=r[1]=r[2]=0,!1;const[n,o,s]=this.dir,a=this.pos[0]-e[0],l=this.pos[1]-e[1],c=this.pos[2]-e[2],h=n*n+o*o+s*s,u=2*(a*n+l*o+c*s),d=u*u-4*h*(a*a+l*l+c*c-t*t);if(d<0){const e=Math.max(-u/2,0),i=a+n*e,h=l+o*e,d=c+s*e,f=Math.hypot(i,h,d);return r[0]=i*t/f,r[1]=h*t/f,r[2]=d*t/f,!1}{const e=(-u-Math.sqrt(d))/(2*h);if(e<0){const e=Math.hypot(a,l,c);return r[0]=a*t/e,r[1]=l*t/e,r[2]=c*t/e,!1}return r[0]=a+n*e,r[1]=l+o*e,r[2]=c+s*e,!0}}}class mp{constructor(e,t,i,r,n){this.TL=e,this.TR=t,this.BR=i,this.BL=r,this.horizon=n}static fromInvProjectionMatrix(e,t,i){const r=[-1,1,1],n=[1,1,1],o=[1,-1,1],s=[-1,-1,1],a=j(r,r,e),l=j(n,n,e),c=j(o,o,e),h=j(s,s,e);return new mp(a,l,c,h,t/i)}}function _p(e,t,i,r){const n=t[0],o=t[1],s=t[2],a=i[0],l=i[1],c=i[2];let h=1/0,u=-1/0;for(let d=0;d<e.length;d++){const t=e[d],i=(t[0]-n)*a+(t[1]-o)*l+(t[2]-s)*c;i<h&&(h=i),i>u&&(u=i)}return r[0]=h,r[1]=u,r}function yp(e,t){let i=!0;for(let r=0;r<e.planes.length;r++){const n=e.planes[r];let o=0;for(let e=0;e<t.length;e++)o+=+(U(n,t[e])+n[3]>=0);if(0===o)return 0;o!==t.length&&(i=!1)}return i?2:1}const xp=[0,0];function vp(e,t){for(const i of e.projections){const r=_p(t,e.points[0],i.axis,xp);if(i.projection[1]<r[0]||i.projection[0]>r[1])return 0}return 1}function wp(e,t){const i=t[0],r=t[1],n=t[2],o=t[3];for(let s=0;s<e.length;s++){const t=e[s];if(i*t[0]+r*t[1]+n*t[2]+o>=0)return!0}return!1}class Ep{constructor(e,t){this.points=e||new Array(8).fill([0,0,0]),this.planes=t||new Array(6).fill([0,0,0,0]),this.bounds=bp.fromPoints(this.points),this.projections=[],this.frustumEdges=[Z([],this.points[2],this.points[3]),Z([],this.points[0],this.points[3]),Z([],this.points[4],this.points[0]),Z([],this.points[5],this.points[1]),Z([],this.points[6],this.points[2]),Z([],this.points[7],this.points[3])];for(const i of this.frustumEdges){const e=[0,-i[2],i[1]],t=[i[2],0,-i[0]];this.projections.push({axis:e,projection:_p(this.points,this.points[0],e,[0,0])}),this.projections.push({axis:t,projection:_p(this.points,this.points[0],t,[0,0])})}}static fromInvProjectionMatrix(e,t,i,r){const n=Math.pow(2,i),o=[[-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(i=>{const o=te([],i,e),s=1/o[3]/t*n;return(a=o)[0]=(l=o)[0]*(c=[s,s,r?1/o[3]:s,s])[0],a[1]=l[1]*c[1],a[2]=l[2]*c[2],a[3]=l[3]*c[3],a;var a,l,c}),s=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(e=>{const t=N([],V([],Z([],o[e[0]],o[e[1]]),Z([],o[e[2]],o[e[1]]))),i=-U(t,o[e[1]]);return t.concat(i)}),a=[];for(let l=0;l<o.length;l++)a.push([o[l][0],o[l][1],o[l][2]]);return new Ep(a,s)}intersectsPrecise(e,t,i){for(let a=0;a<t.length;a++)if(!wp(e,t[a]))return 0;for(let a=0;a<this.planes.length;a++)if(!wp(e,this.planes[a]))return 0;const r=this.points,n=r[0][0],o=r[0][1],s=r[0][2];for(const a of i)for(const t of this.frustumEdges){const i=a[1]*t[2]-a[2]*t[1],l=a[2]*t[0]-a[0]*t[2],c=a[0]*t[1]-a[1]*t[0];if(0===i&&0===l&&0===c)continue;let h=1/0,u=-1/0;for(let e=0;e<r.length;e++){const t=r[e],a=(t[0]-n)*i+(t[1]-o)*l+(t[2]-s)*c;a<h&&(h=a),a>u&&(u=a)}let d=1/0,f=-1/0;for(let t=0;t<e.length;t++){const r=e[t],a=(r[0]-n)*i+(r[1]-o)*l+(r[2]-s)*c;a<d&&(d=a),a>f&&(f=a)}if(h>f||d>u)return 0}return 1}containsPoint(e){for(const t of this.planes){const i=t[3];if(U([t[0],t[1],t[2]],e)+i<0)return!1}return!0}}class bp{static fromPoints(e){const t=[1/0,1/0,1/0],i=[-1/0,-1/0,-1/0];for(const r of e)S(t,t,r),P(i,i,r);return new bp(t,i)}static fromTileIdAndHeight(e,t,i){const r=1<<e.canonical.z,n=e.canonical.x,o=e.canonical.y;return new bp([n/r,o/r,t],[(n+1)/r,(o+1)/r,i])}static applyTransform(e,t){const i=e.getCorners();for(let r=0;r<i.length;++r)j(i[r],i[r],t);return bp.fromPoints(i)}static applyTransformFast(e,t){const i=[t[12],t[13],t[14]],r=[...i];for(let n=0;n<3;n++)for(let o=0;o<3;o++){const s=t[4*o+n],a=s*e.min[o],l=s*e.max[o];i[n]+=Math.min(a,l),r[n]+=Math.max(a,l)}return new bp(i,r)}static projectAabbCorners(e,t){const i=e.getCorners();for(let r=0;r<i.length;++r)j(i[r],i[r],t);return i}constructor(e,t){this.min=e,this.max=t,this.center=R([],T([],this.min,this.max),.5)}quadrant(e){const t=[e%2==0,e<2],i=I(this.min),r=I(this.max);for(let n=0;n<t.length;n++)i[n]=t[n]?this.min[n]:this.center[n],r[n]=t[n]?this.center[n]:this.max[n];return r[2]=this.max[2],new bp(i,r)}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){return this.intersectsAabb(e.bounds)?yp(e,this.getCorners()):0}intersectsFlat(e){return this.intersectsAabb(e.bounds)?yp(e,[[this.min[0],this.min[1],0],[this.max[0],this.min[1],0],[this.max[0],this.max[1],0],[this.min[0],this.max[1],0]]):0}intersectsPrecise(e,t){return t||this.intersects(e)?vp(e,this.getCorners()):0}intersectsPreciseFlat(e,t){return t||this.intersectsFlat(e)?vp(e,[[this.min[0],this.min[1],0],[this.max[0],this.min[1],0],[this.max[0],this.max[1],0],[this.min[0],this.max[1],0]]):0}intersectsAabb(e){for(let t=0;t<3;++t)if(this.min[t]>e.max[t]||e.min[t]>this.max[t])return!1;return!0}intersectsAabbXY(e){return!(this.min[0]>e.max[0]||e.min[0]>this.max[0]||this.min[1]>e.max[1]||e.min[1]>this.max[1])}encapsulate(e){for(let t=0;t<3;t++)this.min[t]=Math.min(this.min[t],e.min[t]),this.max[t]=Math.max(this.max[t],e.max[t])}encapsulatePoint(e){for(let t=0;t<3;t++)this.min[t]=Math.min(this.min[t],e[t]),this.max[t]=Math.max(this.max[t],e[t])}closestPoint(e){return[Math.max(Math.min(this.max[0],e[0]),this.min[0]),Math.max(Math.min(this.max[1],e[1]),this.min[1]),Math.max(Math.min(this.max[2],e[2]),this.min[2])]}}function Ip(e){return e*gl/El}ts(bp,"Aabb");const Cp=[new bp([yl,yl,yl],[xl,xl,xl]),new bp([yl,yl,yl],[0,0,xl]),new bp([0,yl,yl],[xl,0,xl]),new bp([yl,0,yl],[0,xl,xl]),new bp([0,0,yl],[xl,xl,xl])];function Bp(e,t,i,r=!0){const n=R([],e._camera.position,e.worldSize),o=[t,i,1,1];te(o,o,e.pixelMatrixInverse),$(o,o,1/o[3]);const s=N([],Z([],o,n)),a=e.globeMatrix,l=[a[12],a[13],a[14]],c=Z([],l,n),h=C(c),u=N([],c),d=e.worldSize/(2*Math.PI),f=U(u,s),p=Math.asin(d/h);if(p<Math.acos(f)){if(!r)return null;const e=[],t=[];R(e,s,h/f),N(t,Z(t,e,c)),N(s,T(s,c,R(s,t,Math.tan(p)*h)))}const A=[];new gp(n,s).closestPointOnSphere(l,d,A);const g=N([],vt(a,0)),m=N([],vt(a,1)),_=N([],vt(a,2)),y=U(g,A),x=U(m,A),v=U(_,A),w=je(Math.asin(-x/d));let E=je(Math.atan2(y,v));E=e.center.lng+function(e,t){const i=(t-e+180)%360-180;return i<-180?i+360:i}(e.center.lng,E);const b=vr(E),I=Je(wr(w),0,1);return new zl(b,I)}class Dp{constructor(e,t,i){this.a=Z([],e,i),this.b=Z([],t,i),this.center=i;const r=N([],this.a),n=N([],this.b);this.angle=Math.acos(U(r,n))}}function Tp(e,t){if(0===e.angle)return null;let i;return i=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)),i<0||i>1?null:function(e,t,i,r){const n=Math.sin(i);return e*(Math.sin((1-r)*i)/n)+t*(Math.sin(r*i)/n)}(e.a[t],e.b[t],e.angle,Je(i,0,1))+e.center[t]}function Mp(e){if(e.z<=1)return Cp[e.z+2*e.y+e.x];const t=Lp(zp(e));return bp.fromPoints(t)}function Qp(e,t,i){return R(e,e,1-i),z(e,e,t,i)}function Sp(e,t){const i=Gp(t.zoom);if(0===i)return Mp(e);const r=zp(e),n=Lp(r),o=vr(r.getWest())*t.worldSize,s=vr(r.getEast())*t.worldSize,a=wr(r.getNorth())*t.worldSize,l=wr(r.getSouth())*t.worldSize,c=[o,a,0],h=[s,a,0],d=[o,l,0],f=[s,l,0],p=u([],t.globeMatrix);return j(c,c,p),j(h,h,p),j(d,d,p),j(f,f,p),n[0]=Qp(n[0],d,i),n[1]=Qp(n[1],f,i),n[2]=Qp(n[2],h,i),n[3]=Qp(n[3],c,i),bp.fromPoints(n)}function Pp(e,t,i){for(const r of e)j(r,r,t),R(r,r,i)}function Rp(e,t,i,r){const n=t/e.worldSize,o=e.globeMatrix;if(i.z<=1){const e=Mp(i).getCorners();return Pp(e,o,n),bp.fromPoints(e)}const s=zp(i,r),a=Lp(s,gl+Ip(e._tileCoverLift));Pp(a,o,n);const l=Number.MAX_VALUE,c=[-l,-l,-l],h=[l,l,l];if(s.contains(e.center)){for(const e of a)S(h,h,e),P(c,c,e);c[2]=0;const t=e.point,i=[t.x*n,t.y*n,0];return S(h,h,i),P(c,c,i),new bp(h,c)}if(e._tileCoverLift>0){for(const e of a)S(h,h,e),P(c,c,e);return new bp(h,c)}const u=[o[12]*n,o[13]*n,o[14]*n],d=s.getCenter(),f=Je(e.center.lat,-85.051129,Ml),p=Je(d.lat,-85.051129,Ml),A=vr(e.center.lng),g=wr(f);let m=A-vr(d.lng);const _=g-wr(p);m>.5?m-=1:m<-.5&&(m+=1);let y=0;Math.abs(m)>Math.abs(_)?y=m>=0?1:3:(y=_>=0?0:2,z(u,u,[o[4]*n,o[5]*n,o[6]*n],-Math.sin(He(_>=0?s.getSouth():s.getNorth()))*gl));const x=a[y],v=a[(y+1)%4],w=new Dp(x,v,u),E=[Tp(w,0)||x[0],Tp(w,1)||x[1],Tp(w,2)||x[2]],b=Gp(e.zoom);if(b>0){const r=function({x:e,y:t,z:i},r,n,o,s){const a=1/(1<<i);let l=e*a,c=l+a,h=t*a,u=h+a,d=0;const f=(l+c)/2-o;return f>.5?d=-1:f<-.5&&(d=1),l=((l+d)*r-(o*=r))*n+o,c=((c+d)*r-o)*n+o,h=(h*r-(s*=r))*n+s,u=(u*r-s)*n+s,[[l,u,0],[c,u,0],[c,h,0],[l,h,0]]}(i,t,e._pixelsPerMercatorPixel,A,g);for(let e=0;e<a.length;e++)Qp(a[e],r[e],b);const n=T([],r[y],r[(y+1)%4]);R(n,n,.5),Qp(E,n,b)}for(const I of a)S(h,h,I),P(c,c,I);return h[2]=Math.min(x[2],v[2]),S(h,h,E),P(c,c,E),new bp(h,c)}function zp({x:e,y:t,z:i},r=!1){const n=1/(1<<i),o=new Il(Er(e*n),t===(1<<i)-1&&r?-90:br((t+1)*n)),s=new Il(Er((e+1)*n),0===t&&r?90:br(t*n));return new Cl(o,s)}function Lp(e,t=gl){const i=He(e.getNorth()),r=He(e.getSouth()),n=Math.cos(i),o=Math.cos(r),s=Math.sin(i),a=Math.sin(r),l=e.getWest(),c=e.getEast();return[vl(o,a,l,t),vl(o,a,c,t),vl(n,s,c,t),vl(n,s,l,t)]}function Fp(e,t,i,r){const n=1<<i.z,o=(e/Yr+i.x)/n;return wl(br((t/Yr+i.y)/n),Er(o),r)}function Op({min:e,max:t}){return 16383/Math.max(t[0]-e[0],t[1]-e[1],t[2]-e[2])}const kp=new Float64Array(16);function Np(e){const t=Op(e),i=y(kp,[t,t,t]);return f(i,i,k([],e.min))}function Up(e){const t=1/Op(e);return _(kp,e.min),p(kp,kp,[t,t,t])}function Vp(e){const t=Yr/(2*Math.PI);return e/(2*Math.PI)/t}function Hp(e,t){return Yr/(512*Math.pow(2,e))*Op(Mp(t))}function jp(e,t,i,r,n){const o=Vp(i),s=[e,t,-i/(2*Math.PI)],a=h(new Float64Array(16));return f(a,a,s),p(a,a,[o,o,o]),A(a,a,He(-n)),g(a,a,He(-r)),a}function Gp(e){return Ze(5,6,e)}function Yp(e,t){const i=wl(t.lat,t.lng),r=function(e){const t=wl(e._center.lat,e._center.lng);let i=V([],B(0,1,0),t);const r=x([],-e.angle,t);i=j(i,i,r),x(r,-e._pitch,i);const n=N([],t);return R(n,n,Ip(e.cameraToCenterDistance/e.pixelsPerMeter)),j(n,n,r),T([],t,n)}(e);return s=(n=M([],r,i))[0],a=n[1],l=n[2],c=(o=i)[0],h=o[1],u=o[2],f=(d=Math.sqrt((s*s+a*a+l*l)*(c*c+h*h+u*u)))&&U(n,o)/d,Math.acos(Math.min(Math.max(f,-1),1));var n,o,s,a,l,c,h,u,d,f}function Wp(e,t){return Yp(e,t)>Math.PI/2*1.01}const Jp=He(85),Zp=Math.cos(Jp),qp=Math.sin(Jp);function Kp(e,t){const i=e.fovAboveCenter,r=e.elevation?e.elevation.getMinElevationBelowMSL()*t:0,n=Math.min(r,e.isOrthographic?-10*t:0),o=(e._camera.position[2]*e.worldSize-n)/Math.cos(e._pitch),s=Math.sin(i)*o/Math.sin(Math.max(Math.PI/2-e._pitch-i,.01));let a=Math.sin(e._pitch)*s+o;const l=o*(1/e._horizonShift);if(!e.elevation||0===e.elevation.exaggeration()){let t=Math.max(e.zoom-17,0);e.isOrthographic&&(t/=10),a*=1+t}return Math.min(1.01*a,l)}class Xp{constructor(e,t,i){this.z=e,this.x=t,this.y=i,this.key=tA(0,e,e,t,i)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}isChildOf(e){const t=this.z-e.z;return 0===e.z||e.z<this.z&&e.x===this.x>>t&&e.y===this.y>>t}url(e,t){const i=function(e,t,i){const r=2**i,n=2*Math.PI*6378137,o=n*(e/r-.5),s=n*(.5-(t+1)/r);return`${o},${s},${o+n/r},${s+n/r}`}(this.x,this.y,this.z),r=function(e,t,i){let r,n="";for(let o=e;o>0;o--)r=1<<o-1,n+=(t&r?1:0)+(i&r?2:0);return n}(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}/g,String(this.z)).replace(/{x}/g,String(this.x)).replace(/{y}/g,String("tms"===t?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",r).replace("{bbox-epsg-3857}",i)}toString(){return`${this.z}/${this.x}/${this.y}`}}class $p{constructor(e,t){this.wrap=e,this.canonical=t,this.key=tA(e,t.z,t.z,t.x,t.y)}}class eA{constructor(e,t,i,r,n){this.overscaledZ=e,this.wrap=t,this.canonical=new Xp(i,+r,+n),this.key=0===t&&e===i?this.canonical.key:tA(t,e,i,r,n)}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 eA(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new eA(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 tA(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y);{const i=this.canonical.z-e;return tA(this.wrap*+t,e,e,this.canonical.x>>i,this.canonical.y>>i)}}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.z<this.canonical.z&&e.canonical.x===this.canonical.x>>t&&e.canonical.y===this.canonical.y>>t}children(e){if(this.overscaledZ>=e)return[new eA(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const t=this.canonical.z+1,i=2*this.canonical.x,r=2*this.canonical.y;return[new eA(t,this.wrap,t,i,r),new eA(t,this.wrap,t,i+1,r),new eA(t,this.wrap,t,i,r+1),new eA(t,this.wrap,t,i+1,r+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 eA(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)}unwrapTo(e){return new eA(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 $p(this.wrap,this.canonical)}toString(){return`${this.overscaledZ}/${this.canonical.x}/${this.canonical.y}`}}function tA(e,t,i,r,n){const o=1<<Math.min(i,22);let s=o*(n%o)+r%o;return e&&i<22&&(s+=o*o*((e<0?-2*e-1:2*e)%(1<<2*(22-i)))),16*(32*s+i)+(t-i)}const iA=[e=>{let t=e.canonical.x-1,i=e.wrap;return t<0&&(t=(1<<e.canonical.z)-1,i--),new eA(e.overscaledZ,i,e.canonical.z,t,e.canonical.y)},e=>{let t=e.canonical.x+1,i=e.wrap;return t===1<<e.canonical.z&&(t=0,i++),new eA(e.overscaledZ,i,e.canonical.z,t,e.canonical.y)},e=>new eA(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,(0===e.canonical.y?1<<e.canonical.z:e.canonical.y)-1),e=>new eA(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y===(1<<e.canonical.z)-1?0:e.canonical.y+1)];function rA(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 i=Math.pow(2,-e.z),r=e.x*i,n=(e.x+1)*i,o=e.y*i,s=(e.y+1)*i,a=Er(r),l=Er(n),c=br(o),h=br(s),u=t.project(a,c),d=t.project(l,c),f=t.project(l,h),p=t.project(a,h);let A=Math.min(u.x,d.x,f.x,p.x),g=Math.min(u.y,d.y,f.y,p.y),m=Math.max(u.x,d.x,f.x,p.x),_=Math.max(u.y,d.y,f.y,p.y);const y=i/16;function x(e,i,r,n,o,s){const a=(r+o)/2,l=(n+s)/2,c=t.project(Er(a),br(l)),h=Math.max(0,A-c.x,g-c.y,c.x-m,c.y-_);A=Math.min(A,c.x),m=Math.max(m,c.x),g=Math.min(g,c.y),_=Math.max(_,c.y),h>y&&(x(e,c,r,n,a,l),x(c,i,a,l,o,s))}x(u,d,r,o,n,o),x(d,f,n,o,n,s),x(f,p,n,s,r,s),x(p,u,r,s,r,o),A-=y,g-=y,m+=y,_+=y;const v=1/Math.max(m-A,_-g);return{scale:v,x:A*v,y:g*v,x2:m*v,y2:_*v,projection:t}}function nA(e,{x:t,y:i},r=0){return new we(((t-r)*e.scale-e.x)*Yr,(i*e.scale-e.y)*Yr)}ts(Xp,"CanonicalTileID"),ts(eA,"OverscaledTileID",{omit:["projMatrix","expandedProjMatrix"]});const oA=h(new Float32Array(16));class sA{constructor(e){this.spec=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 Il(0,0)}projectTilePoint(e,t,i){return{x:e,y:t,z:0}}locationPoint(e,t,i,r=!0){return e._coordinatePoint(e.locationCoordinate(t,i),r)}pixelsPerMeter(e,t){return Dl(1,e)*t}pixelSpaceConversion(e,t,i){return 1}farthestPixelDistance(e){return Kp(e,e.pixelsPerMeter)}pointCoordinate(e,t,i,r){const n=e.horizonLineFromTop(!1),o=new we(t,Math.max(n,i));return e.rayIntersectionCoordinate(e.pointRayIntersection(o,r))}pointCoordinate3D(e,t,i){const r=new we(t,i);if(e.elevation)return e.elevation.pointCoordinate(r);{const t=this.pointCoordinate(e,r.x,r.y,0);return[t.x,t.y,t.z]}}isPointAboveHorizon(e,t){if(e.elevation&&e.elevation.visibleDemTiles.length)return!this.pointCoordinate3D(e,t.x,t.y);const i=e.horizonLineFromTop();return t.y<i}createInversionMatrix(e,t){return oA}createTileMatrix(e,t,i){let r,n,o;const s=i.canonical,a=h(new Float64Array(16));if(this.isReprojectedInTileSpace){const l=rA(s,this);r=1,n=l.x+i.wrap*l.scale,o=l.y,p(a,a,[r/l.scale,r/l.scale,e.pixelsPerMeter/t])}else r=t/e.zoomScale(s.z),n=(s.x+Math.pow(2,s.z)*i.wrap)*r,o=s.y*r;return f(a,a,[n,o,0]),p(a,a,[r/Yr,r/Yr,1]),a}upVector(e,t,i){return[0,0,1]}upVectorScale(e,t,i){return{metersToTile:1}}}class aA extends sA{constructor(e){super(e),this.range=[4,7],this.center=e.center||[-96,37.5];const[t,i]=this.parallels=e.parallels||[29.5,45.5],r=Math.sin(He(t));this.n=(r+Math.sin(He(i)))/2,this.c=1+r*(2*this.n-r),this.r0=Math.sqrt(this.c)/this.n}project(e,t){const{n:i,c:r,r0:n}=this,o=He(e-this.center[0]),s=He(t),a=Math.sqrt(r-2*i*Math.sin(s))/i;return{x:a*Math.sin(o*i),y:a*Math.cos(o*i)-n,z:0}}unproject(e,t){const{n:i,c:r,r0:n}=this,o=n+t;let s=Math.atan2(e,Math.abs(o))*Math.sign(o);o*i<0&&(s-=Math.PI*Math.sign(e)*Math.sign(o));const a=He(this.center[0])*i;
vendor: 5,426 bytes, line 1
1s=qe(s,-Math.PI-a,Math.PI-a);const l=Je(je(s/i)+this.center[0],-180,180),c=Math.asin(Je((r-(e*e+o*o)*i*i)/(2*i),-1,1)),h=Je(je(c),-85.051129,Ml);return new Il(l,h)}}const lA=1.340264,cA=-.081106,hA=893e-6,uA=.003796,dA=Math.sqrt(3)/2;class fA extends sA{project(e,t){t=t/180*Math.PI,e=e/180*Math.PI;const i=Math.asin(dA*Math.sin(t)),r=i*i,n=r*r*r;return{x:.5*(e*Math.cos(i)/(dA*(lA+3*cA*r+n*(7*hA+9*uA*r)))/Math.PI+.5),y:1-.5*(i*(lA+cA*r+n*(hA+uA*r))/Math.PI+1),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI;let i=t=(2*(1-t)-1)*Math.PI,r=i*i,n=r*r*r;for(let c,h,u,d=0;d<12&&(h=i*(lA+cA*r+n*(hA+uA*r))-t,u=lA+3*cA*r+n*(7*hA+9*uA*r),c=h/u,i=Je(i-c,-Math.PI/3,Math.PI/3),r=i*i,n=r*r*r,!(Math.abs(c)<1e-12));++d);const o=dA*e*(lA+3*cA*r+n*(7*hA+9*uA*r))/Math.cos(i),s=Math.asin(Math.sin(i)/dA),a=Je(180*o/Math.PI,-180,180),l=Je(180*s/Math.PI,-85.051129,Ml);return new Il(a,l)}}class pA extends sA{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 i=360*(e-.5),r=Je(360*(.5-t),-85.051129,Ml);return new Il(i,r)}}const AA=Math.PI/2;function gA(e){return Math.tan((AA+e)/2)}class mA extends sA{constructor(e){super(e),this.center=e.center||[0,30];const[t,i]=this.parallels=e.parallels||[30,30];let r=He(t),n=He(i);this.southernCenter=r+n<0,this.southernCenter&&(r=-r,n=-n);const o=Math.cos(r),s=gA(r);this.n=r===n?Math.sin(r):Math.log(o/Math.cos(n))/Math.log(gA(n)/s),this.f=o*Math.pow(gA(r),this.n)/this.n}project(e,t){t=He(t),this.southernCenter&&(t=-t),e=He(e-this.center[0]);const i=1e-6,{n:r,f:n}=this;n>0?t<-AA+i&&(t=-AA+i):t>AA-i&&(t=AA-i);const o=n/Math.pow(gA(t),r);let s=o*Math.sin(r*e),a=n-o*Math.cos(r*e);return s=.5*(s/Math.PI+.5),a=.5*(a/Math.PI+.5),{x:s,y:this.southernCenter?a:1-a,z:0}}unproject(e,t){e=(2*e-.5)*Math.PI,this.southernCenter&&(t=1-t),t=(2*(1-t)-.5)*Math.PI;const{n:i,f:r}=this,n=r-t,o=Math.sign(n),s=Math.sign(i)*Math.sqrt(e*e+n*n);let a=Math.atan2(e,Math.abs(n))*o;n*i<0&&(a-=Math.PI*Math.sign(e)*o);const l=Je(je(a/i)+this.center[0],-180,180),c=Je(je(2*Math.atan(Math.pow(r/s,1/i))-AA),-85.051129,Ml);return new Il(l,this.southernCenter?-c:c)}}class _A extends sA{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:vr(e),y:wr(t),z:0}}unproject(e,t){const i=Er(e),r=br(t);return new Il(i,r)}}const yA=He(Ml);class xA extends sA{project(e,t){const i=(t=He(t))*t,r=i*i;return{x:.5*((e=He(e))*(.8707-.131979*i+r*(r*(.003971*i-.001529*r)-.013791))/Math.PI+.5),y:1-.5*(t*(1.007226+i*(.015085+r*(.028874*i-.044475-.005916*r)))/Math.PI+1),z:0}}unproject(e,t){e=(2*e-.5)*Math.PI;let i=t=(2*(1-t)-1)*Math.PI,r=25,n=0,o=i*i;do{o=i*i;const e=o*o;n=(i*(1.007226+o*(.015085+e*(.028874*o-.044475-.005916*e)))-t)/(1.007226+o*(.045255+e*(.259866*o-.311325-.005916*11*e))),i=Je(i-n,-yA,yA)}while(Math.abs(n)>1e-6&&--r>0);o=i*i;const s=Je(je(e/(.8707+o*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979))),-180,180),a=je(i);return new Il(s,a)}}const vA=He(Ml);class wA extends sA{project(e,t){t=He(t),e=He(e);const i=Math.cos(t),r=2/Math.PI,n=Math.acos(i*Math.cos(e/2)),o=Math.sin(n)/n,s=.5*(e*r+2*i*Math.sin(e/2)/o)||0,a=.5*(t+Math.sin(t)/o)||0;return{x:.5*(s/Math.PI+.5),y:1-.5*(a/Math.PI+1),z:0}}unproject(e,t){let i=e=(2*e-.5)*Math.PI,r=t=(2*(1-t)-1)*Math.PI,n=25;const o=1e-6;let s=0,a=0;do{const n=Math.cos(r),o=Math.sin(r),l=2*o*n,c=o*o,h=n*n,u=Math.cos(i/2),d=Math.sin(i/2),f=2*u*d,p=d*d,A=1-h*u*u,g=A?1/A:0,m=A?Math.acos(n*u)*Math.sqrt(1/A):0,_=.5*(2*m*n*d+2*i/Math.PI)-e,y=.5*(m*o+r)-t,x=.5*g*(h*p+m*n*u*c)+1/Math.PI,v=g*(f*l/4-m*o*d),w=.125*g*(l*d-m*o*h*f),E=.5*g*(c*u+m*p*n)+.5,b=v*w-E*x;s=(y*v-_*E)/b,a=(_*w-y*x)/b,i=Je(i-s,-Math.PI,Math.PI),r=Je(r-a,-vA,vA)}while((Math.abs(s)>o||Math.abs(a)>o)&&--n>0);return new Il(je(i),je(r))}}class EA extends sA{constructor(e){super(e),this.center=e.center||[0,0],this.parallels=e.parallels||[0,0],this.cosPhi=Math.max(.01,Math.cos(He(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:i,cosPhi:r}=this;return{x:He(e)*r*i+.5,y:-Math.sin(He(t))/r*i+.5,z:0}}unproject(e,t){const{scale:i,cosPhi:r}=this,n=-(t-.5)/i,o=Je(je((e-.5)/i)/r,-180,180),s=Math.asin(Je(n*r,-1,1)),a=Je(je(s),-85.051129,Ml);return new Il(o,a)}}class bA extends _A{constructor(e){super(e),this.requiresDraping=!0,this.supportsWorldCopies=!1,this.supportsFog=!0,this.zAxisUnit="pixels",this.unsupportedLayers=["debug"],this.range=[3,5]}projectTilePoint(e,t,i){const r=Fp(e,t,i);return j(r,r,Np(Mp(i))),{x:r[0],y:r[1],z:r[2]}}locationPoint(e,t,i){const r=wl(t.lat,t.lng),n=N([],r),o=i?e._centerAltitude+i:e.elevation?e.elevation.getAtPointOrZero(e.locationCoordinate(t),e._centerAltitude):e._centerAltitude;z(r,r,n,Dl(1,0)*Yr*o);const s=h(new Float64Array(16));return d(s,e.pixelMatrix,e.globeMatrix),j(r,r,s),new we(r[0],r[1])}pixelsPerMeter(e,t){return Dl(1,0)*t}pixelSpaceConversion(e,t,i){const r=Dl(1,e)*t,n=vi(Dl(1,45)*t,r,i);return this.pixelsPerMeter(e,t)/n}createTileMatrix(e,t,i){const r=Up(Mp(i.canonical));return d(new Float64Array(16),e.globeMatrix,r)}createInversionMatrix(e,t){const{center:i}=e,r=Np(Mp(t));return g(r,r,He(i.lng)),A(r,r,He(i.lat)),p(r,r,[e._pixelsPerMercatorPixel,e._pixelsPerMercatorPixel,1]),Float32Array.from(r)}
vendor: 9,950 bytes, line 1
1pointCoordinate(e,t,i,r){return Bp(e,t,i,!0)||new zl(0,0)}pointCoordinate3D(e,t,i){const r=this.pointCoordinate(e,t,i,0);return[r.x,r.y,r.z]}isPointAboveHorizon(e,t){return!Bp(e,t.x,t.y,!1)}farthestPixelDistance(e){const t=function(e,t){const i=e.cameraToCenterDistance,r=e._centerAltitude*t,n=e._camera,o=e._camera.forward(),s=T([],R([],o,-i),[0,0,r]),a=e.worldSize/(2*Math.PI),l=[0,0,-a],c=e.width/e.height,h=Math.tan(e.fovAboveCenter),u=R([],n.up(),h),d=R([],n.right(),h*c),f=N([],T([],T([],o,u),d)),p=[];let A;if(new gp(s,f).closestPointOnSphere(l,a,p)){const t=T([],p,l),i=Z([],t,s);A=Math.cos(e.fovAboveCenter)*C(i)}else{const e=Z([],s,l),t=Z([],l,s);N(t,t);const i=C(e)-a;A=Math.sqrt(i*(i+2*a));const r=Math.acos(A/(a+i))-Math.acos(U(o,t));A*=Math.cos(r)}return 1.01*A}(e,this.pixelsPerMeter(e.center.lat,e.worldSize)),i=Gp(e.zoom);if(i>0){const r=Kp(e,Dl(1,e.center.lat)*e.worldSize),n=e.worldSize/(2*Math.PI),o=Math.max(e.width,e.height)/e.worldSize*Math.PI;return vi(t,r+n*(1-Math.cos(o)),Math.pow(i,10))}return t}upVector(e,t,i){return Fp(t,i,e,1)}upVectorScale(e){return{metersToTile:Ip(Op(Mp(e)))}}}function IA(e){const t=e.parallels,i=!!t&&Math.abs(t[0]+t[1])<.01;switch(e.name){case"mercator":return new _A(e);case"equirectangular":return new pA(e);case"naturalEarth":return new xA(e);case"equalEarth":return new fA(e);case"winkelTripel":return new wA(e);case"albers":return i?new EA(e):new aA(e);case"lambertConformalConic":return i?new EA(e):new mA(e);case"globe":return new bA(e)}throw new Error(`Invalid projection name: ${e.name}`)}const CA=Number.MAX_SAFE_INTEGER,BA=CA-1;function DA(e,t,i,r){return e.order<t||e.order===CA||!(e.clipMask&i)||function(e,t){if(0===t.length)return!1;let i=e;for(;""!==i;){if(t.includes(i))return!1;i=Qa(i)}return!0}(r,e.clipScope)}function TA(e,t){return e.x-t.x||e.y-t.y}function MA(e,t){return 0===TA(e.min,t.min)&&0===TA(e.max,t.max)}function QA(e,t){return!(e.min.x>t.max.x||e.max.x<t.min.x||e.min.y>t.max.y||e.max.y<t.min.y)}function SA(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i].sourceId!==t[i].sourceId||!MA(e[i],t[i])||e[i].order!==t[i].order||e[i].clipMask!==t[i].clipMask||!Ee(e[i].clipScope,t[i].clipScope))return!1;return!0}function PA(e,t,i){const r=1/Yr,n=1/(1<<i.canonical.z),o=(t.x*r+i.canonical.x)*n+i.wrap,s=(t.y*r+i.canonical.y)*n;return{min:new we((e.x*r+i.canonical.x)*n+i.wrap,(e.y*r+i.canonical.y)*n),max:new we(o,s)}}function RA(e,t,i){const r=1<<i.canonical.z,n=((t.x-i.wrap)*r-i.canonical.x)*Yr,o=(t.y*r-i.canonical.y)*Yr;return{min:new we(((e.x-i.wrap)*r-i.canonical.x)*Yr,(e.y*r-i.canonical.y)*Yr),max:new we(n,o)}}function zA(e,t,i,r,n,o,s){const a=e.indices,l=e.vertices,c=[];for(let h=r;h<r+n;h+=3){const r=t[i[h+0]+o],n=t[i[h+1]+o],u=t[i[h+2]+o],d=Math.min(r.x,n.x,u.x),f=Math.max(r.x,n.x,u.x),p=Math.min(r.y,n.y,u.y),A=Math.max(r.y,n.y,u.y);c.length=0,e.grid.query(new we(d,p),new we(f,A),c);for(let e=0;e<c.length;e++){const t=c[e];if(au(l[a[3*t+0]],l[a[3*t+1]],l[a[3*t+2]],r,n,u,s))return!0}}return!1}function LA(e,t,i,r){if(!e||!i)return!1;let n=e.vertices;if(!t.canonical.equals(r.canonical)||t.wrap!==r.wrap){if(i.vertices.length<e.vertices.length)return LA(i,r,e,t);const o=t.canonical,s=r.canonical,a=Math.pow(2,s.z-o.z);n=e.vertices.map(e=>new we((e.x+o.x*Yr)*a-s.x*Yr,(e.y+o.y*Yr)*a-s.y*Yr))}return zA(i,n,e.indices,0,e.indices.length,0,0)}function FA(e,t,i,r){const n=Math.pow(2,r.z-i.z);return new we((e+i.x*Yr)*n-r.x*Yr,(t+i.y*Yr)*n-r.y*Yr)}function OA(e,t){const i=[];t.grid.queryPoint(e,i);const r=t.indices,n=t.vertices;for(let o=0;o<i.length;o++){const t=i[o];if(ru([n[r[3*t+0]],n[r[3*t+1]],n[r[3*t+2]]],e))return!0}return!1}class kA{constructor(e,t){this.lastParams=null,this.lastAllFeaturesIndex=-2,this.appearancesVersion=t,this.appearances=e;const i=e.map(e=>function(e){if(!e.condition)return{featureDependent:!1,stateDependent:!1,zoomDependent:!1,pitchDependent:!1,brightnessDependent:!1,worldviewDependent:!1};const t=e.condition.expression;return{featureDependent:!xn(t),stateDependent:!vn(t),zoomDependent:!wn(t,["zoom"]),pitchDependent:!wn(t,["pitch"]),brightnessDependent:!wn(t,["brightness","measure-light"]),worldviewDependent:!wn(t,["worldview"])}}(e));this.anyFeatureDependent=i.some(e=>e.featureDependent),this.anyStateDependent=i.some(e=>e.stateDependent)}update(e,t){const i=this.lastParams,r=!i||i.zoom!==e.zoom||i.pitch!==(e.pitch||0)||i.brightness!==(e.brightness||0)||i.worldview!==e.worldview;this.lastParams={zoom:e.zoom,pitch:e.pitch||0,brightness:e.brightness||0,worldview:e.worldview};const n=t&&this.anyStateDependent;if(!r&&!n&&-2!==this.lastAllFeaturesIndex)return{kind:"no-changes"};if(!this.anyFeatureDependent&&!n){const t=this.evaluateAllFeatures(e);return t===this.lastAllFeaturesIndex?{kind:"no-changes"}:(this.lastAllFeaturesIndex=t,{kind:"all-features",appearanceIndex:t})}return{kind:"per-feature"}}evaluateAllFeatures(e){for(let t=0;t<this.appearances.length;t++){const i=this.appearances[t];if(i.condition&&i.condition.evaluate(e,void 0,void 0,void 0))return t}return-1}}const NA=Uh.types,UA=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function VA(e,t,i,r,n,o,s,a,l,c,h,u,d){const f=a?Math.min(np,Math.round(a[0])):0,p=a?Math.min(np,Math.round(a[1])):0;e.emplaceBack(t,i,Math.round(32*r),Math.round(32*n),o,s,(f<<1)+(l?1:0),0+(p<<1),16*c,16*h,256*u,256*d)}function HA(e,t,i){e.emplaceBack(t,i)}function jA(e,t,i,r,n,o,s){e.emplaceBack(t,i,r,n,o,s)}function GA(e,t,i,r,n){e.emplaceBack(t,i,r,n),e.emplaceBack(t,i,r,n),e.emplaceBack(t,i,r,n),e.emplaceBack(t,i,r,n)}function YA(e){for(const t of e.sections)if(Vs(t.text))return!0;return!1}const WA=12;class JA{constructor(e){this.layoutVertexArray=new hc,this.indexArray=new yc,this.programConfigurations=e,this.segments=new Kc,this.dynamicLayoutVertexArray=new dc,this.opacityVertexArray=new fc,this.placedSymbolArray=new Fc,this.iconTransitioningVertexArray=new pc,this.globeExtVertexArray=new uc,this.zOffsetVertexArray=new ec,this.orientationVertexArray=new wc,this.symbolInstanceIndices=[],this.uboBinder=null,this.featureIdArray=new ec,this.featureIdBuffer=null,this.cachedBatchIndices=null,this.cachedBatchSegments=null}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length&&0===this.iconTransitioningVertexArray.length}getBatchGrouping(e){const t=e.get().length===this.segments.get().length;if(t&&this.cachedBatchIndices&&this.cachedBatchSegments)return{batchIndices:this.cachedBatchIndices,batchSegments:this.cachedBatchSegments};const i=new Map;for(const o of e.get()){const e=void 0!==o.batchIndex?o.batchIndex:0;i.has(e)||i.set(e,[]),i.get(e).push(o)}const r=Array.from(i.keys()).sort((e,t)=>e-t),n=new Map;for(const o of r){const e=i.get(o);n.set(o,new Kc(e))}return t&&(this.cachedBatchIndices=r,this.cachedBatchSegments=n),{batchIndices:r,batchSegments:n}}snapshotSymbolVertexData(e,t){const i=e*WA;return this.layoutVertexArray.uint16.slice(i,i+t*WA)}restoreSymbolVertexData(e,t){this.layoutVertexArray.uint16.set(t,e*WA)}updateSymbolVertexData(e,t,i,r,n,o,s,a,l,c,h,u,d){const f=this.layoutVertexArray.uint16,p=e*WA;f[p]=t,f[p+1]=i,f[p+2]=r,f[p+3]=n,f[p+4]=o,f[p+5]=s,f[p+6]=a,f[p+7]=l,f[p+8]=c,f[p+9]=h,f[p+10]=u,f[p+11]=d}upload(e,t,i,r,n,o){this.isEmpty()||(i&&(this.cachedBatchIndices=null,this.cachedBatchSegments=null,this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Pu.members,!!o),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,zu.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,UA,!0),this.iconTransitioningVertexArray.length>0&&(this.iconTransitioningVertexBuffer=e.createVertexBuffer(this.iconTransitioningVertexArray,ku.members,!0)),this.globeExtVertexArray.length>0&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,Ru.members,!0)),!this.zOffsetVertexBuffer&&(this.zOffsetVertexArray.length>0||n)&&(this.zOffsetVertexBuffer=e.createVertexBuffer(this.zOffsetVertexArray,Lu.members,!0)),!this.orientationVertexBuffer&&this.orientationVertexArray&&this.orientationVertexArray.length>0&&(this.orientationVertexBuffer=e.createVertexBuffer(this.orientationVertexArray,Ou.members,!0)),this.opacityVertexBuffer.itemSize=1,this.featureIdArray.length>0&&(this.featureIdBuffer=e.createVertexBuffer(this.featureIdArray,Fu.members,!1))),(i||r)&&(this.programConfigurations.upload(e),this.uboBinder&&this.uboBinder.upload(e)))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy(),this.iconTransitioningVertexBuffer&&this.iconTransitioningVertexBuffer.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy(),this.zOffsetVertexBuffer&&this.zOffsetVertexBuffer.destroy(),this.orientationVertexBuffer&&this.orientationVertexBuffer.destroy(),this.featureIdBuffer&&this.featureIdBuffer.destroy(),this.uboBinder&&this.uboBinder.destroy())}}ts(JA,"SymbolBuffers",{omit:["cachedBatchIndices","cachedBatchSegments"]});class ZA{constructor(e,t,i){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new i,this.segments=new Kc,this.collisionVertexArray=new _c,this.collisionVertexArrayExt=new dc}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,Nu.members,!0),this.collisionVertexBufferExt=e.createVertexBuffer(this.collisionVertexArrayExt,Uu.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.de
vendor: 6,119 bytes, line 1
1stroy())}}ts(ZA,"CollisionBuffers");class qA{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.fqid),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.hasAnyIconTextFit=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=h([]),this.placementViewportMatrix=h([]);const t=this.layers[0]._unevaluatedLayout._values;this.worldview=e.worldview,this.localizable=e.localizable,this.maxUniformBufferBindings=e.maxUniformBufferBindings,this.maxUniformBlockSizeDwords=e.maxUniformBlockSizeDwords,this.disableSymbolUBO=e.disableSymbolUBO,this.textSizeData=Nd(this.zoom,t["text-size"],this.worldview,e.availableImages),this.iconSizeData=Nd(this.zoom,t["icon-size"],this.worldview,e.availableImages);const i=this.layers[0].layout,r=i.get("symbol-sort-key"),n=i.get("symbol-z-order");this.lut=e.lut,this.canOverlap=i.get("text-allow-overlap")||i.get("icon-allow-overlap")||i.get("text-ignore-placement")||i.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==n&&void 0!==r.constantOr(1),this.sortFeaturesByY=("viewport-y"===n||"auto"===n&&!this.sortFeaturesByKey)&&this.canOverlap,this.writingModes=i.get("text-writing-mode").map(e=>xd[e]),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.sourceID=e.sourceID,this.projection=e.projection,this.hasAnyZOffset=!1,this.zOffsetSortDirty=!1,this.zOffsetBuffersNeedUpload=!1,this.elevationType="none",this.activeReplacements=[],this.replacementUpdateTime=0,this.hasAnySecondaryIcon=!1,this.hasAppearances=null,this.featureAppearances=null,this.featureAppearanceData=new Map}hasAnyAppearanceLayoutProperty(e){const t=this.layers[0].getAppearances();if(!t||0===t.length)return!1;const i=Array.isArray(e)?e:[e];return t.some(e=>i.some(t=>e.hasLayoutProperty(t)))}getAppearanceFeatureData(e){return this.featureAppearanceData.get(e)}createArrays(){this.text=new JA(new bh(this.layers,{zoom:this.zoom,lut:this.lut},e=>e.startsWith("text")||e.startsWith("symbol"))),this.icon=new JA(new bh(this.layers,{zoom:this.zoom,lut:this.lut},e=>e.startsWith("icon")||e.startsWith("symbol"))),this.disableSymbolUBO||(this.text.uboBinder=new Ku(this.layers[0],this.zoom,this.lut,!0,"",this.maxUniformBufferBindings,this.maxUniformBlockSizeDwords),this.icon.uboBinder=new Ku(this.layers[0],this.zoom,this.lut,!1,"",this.maxUniformBufferBindings,this.maxUniformBlockSizeDwords)),this.glyphOffsetArray=new Nc,this.lineVertexArray=new Uc,this.symbolInstances=new kc}calculateGlyphDependencies(e,t,i,r,n){for(const o of e){const e=o.codePointAt(0);if(void 0===e)break;if(t[e]=!0,r&&n&&e<=65535){const e=ed[o];e&&(t[e.charCodeAt(0)]=!0)}}}calculateEffectiveAppearanceIconSize(e,t,i,r,n,o,s){if(!e.hasLayoutProperty("icon-size"))return s*o;let a=1;const l=e.getUnevaluatedLayoutProperty("icon-size"),c=Nd(this.zoom,l,this.worldview,n),h=Vd(c,t);if("constant"!==c.kind&&"camera"!==c.kind||(a=h.uSize),"composite"===c.kind){const{minZoom:e,maxZoom:t}=c,o=l.possiblyEvaluate(new ea(e,{worldview:this.worldview}),r),s=l.possiblyEvaluate(new ea(t,{worldview:this.worldview}),r),u=o.evaluate(i,{},r,n);a=u+(s.evaluate(i,{},r,n)-u)*h.uSizeT}return"source"===c.kind&&(a=l.possiblyEvaluate(new ea(this.zoom,{worldview:this.worldview}),r).evaluate(i,{},r,n)),a*o}updateFootprints(e,t){}updateReplacement(e,t){if(t.updateTime===this.replacementUpdateTime)return!1;this.replacementUpdateTime=t.updateTime;const i=t.getReplacementRegionsForTile(e.toUnwrapped(),!0);return!SA(this.activeReplacements,i)&&(this.activeReplacements=i,!0)}getResolvedImageFromTokens(e){return"string"==typeof e?Xi.build(e):e}populate(e,t,i,r){const n=this.layers[0],o=n.layout,s="globe"===this.projection.name,a=o.get("text-font"),l=o.get("text-field"),c=o.get("icon-image"),[h,u]=o.get("icon-size-scale-range"),d=Je(t.scaleFactor||1,h,u),[f,p]=o.get("text-size-scale-range"),A=Je(t.scaleFactor||1,f,p),g=("constant"!==l.value.kind||l.value.value instanceof qi&&!l.value.value.isEmpty()||l.value.value.toString().length>0)&&("constant"!==a.value.kind||a.value.value.length>0),m="constant"!==c.value.kind||!!c.value.value||Object.keys(c.parameters).length>0,_=this.hasAnyAppearanceLayoutProperty("icon-image"),y=o.get("symbol-sort-key");if(this.features=[],this.featureAppearanceData=new Map,!g&&!m&&!_)return;const x=t.iconDependencies,v=t.glyphDependencies,w=t.availableImages,E=new ea(this.zoom,{worldview:this.worldview,activeFloors:t.activeFloors}),b=e=>{const t=e.id.toString();x.has(t)?x.get(t).push(e):x.set(t,[e])};for(const I of e){const{feature:e,id:t,index:l,sourceLayerIndex:c}=I,h=n._featureFilter.needGeometry,u=jl(e,h);if(!n._featureFilter.filter(E,u,i))continue;if(h||(u.geometry=Hl(e,i,r)),s&&1!==e.type&&i.z<=5){const e=u.geometry,t=.98078528056,r=(e,r)=>U(Fp(e.x,e.y,i,1),Fp(r.x,r.y,i,1))<t;for(let i=0;i<e.length;i++)e[i]=kl(e[i],r)}let f,p;if(g){const e=n.getValueAndResolveTokens("text-field",u,i,w),t=qi.factory(e);YA(t)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===qs()||this.hasRTLText&&Xs.isParsed())&&(f=$u(t,n,u))}if(m){const e=n.getValueAndResolveTokens("icon-image",u,i,w);p=this.getResolvedImageFromTokens(e)}const C=this.layers[0];let B=!1;if(!p&&_){const e=C.getAppearances();for(const t of e)if(t.getLayoutProperty("icon-image")){const e=C.getAppearanceValueAndResolveTokens(t,"icon-image",u,i,w);if(e){p=this.getResolvedImageFromTokens(e),B=!0;break}}}if(!f&&!p)continue;const D=this.sortFeaturesByKey?y.evaluate(u,{},i):void 0,T={id:t,text:f,icon:p,index:l,sourceLayerIndex:c,geometry:u.geometry,properties:e.properties,type:NA[e.type],sortKey:D};if(this.features.push(T),this.featureAppearanceData.set(l,{id:t,properties:e.properties,usesAppearanceIconAsPlaceholder:B}),p){const e=C._unevaluatedLayout._values,{iconPrimary:t,iconSecondary:r}=Jf(p,this.iconSizeData,e["icon-size"],i,this.zoom,T,this.pixelRatio,d,this.worldview,w);b(t),r&&(this.hasAnySecondaryIcon=!0,b(r))}const M=C.getAppearances();
vendor: 1,847 bytes, line 1
1if(0!==M.length&&M.forEach(e=>{if(!e.getLayoutProperty("icon-image"))return;const t=this.getCombinedIconPrimary(e,C,u,i,w,T,d);t&&b(t)}),f){const e=a.evaluate(u,{},i).join(","),t="map"===o.get("text-rotation-alignment")&&"point"!==o.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.includes(xd.vertical);for(const i of f.sections)if(i.image){const e=i.image.getPrimary().scaleSelf(this.pixelRatio*A),t=e.id.toString(),r=x.get(t)||[];r.push(e),x.set(t,r)}else{const r=Ss(f.toString()),n=i.fontStack||e,o=v[n]=v[n]||{};this.calculateGlyphDependencies(i.text,o,t,this.allowVerticalPlacement,r)}}}"line"===o.get("symbol-placement")&&(this.features=function(e){const t={},i={},r=[];let n=0;function o(t){r.push(e[t]),n++}function s(e,t,n){const o=i[e];return delete i[e],i[t]=o,r[o].geometry[0].pop(),r[o].geometry[0]=r[o].geometry[0].concat(n[0]),o}function a(e,i,n){const o=t[i];return delete t[i],t[e]=o,r[o].geometry[0].shift(),r[o].geometry[0]=n[0].concat(r[o].geometry[0]),o}function l(e,t,i){const r=i?t[0].at(-1):t[0][0];return`${e}:${r.x}:${r.y}`}for(let c=0;c<e.length;c++){const h=e[c],u=h.geometry,d=h.text?h.text.toString():null;if(!d){o(c);continue}const f=l(d,u),p=l(d,u,!0);if(f in i&&p in t&&i[f]!==t[p]){const e=a(f,p,u),n=s(f,p,r[e].geometry);delete t[f],delete i[p],i[l(d,r[n].geometry,!0)]=n,r[e].geometry=null}else f in i?s(f,p,u):p in t?a(f,p,u):(o(c),t[f]=n-1,i[p]=n-1)}return r.filter(e=>e.geometry)}(this.features)),"hd-road-markup"===o.get("symbol-elevation-reference")?(this.elevationType="road",this.hdExt&&t.elevationFeatures&&t.elevationFeatures.length>0&&this.hdExt.addElevationFeatures(t.elevationFeatures)):o.get("symbol-z-elevate")&&(this.elevationType="offset"),"none"!==this.elevationType&&(this.zOffsetBuffersNeedUpload=!0),this.sortFeaturesByKey&&this.features.sort((e,t)=>
1e.sortKey-t.sortKey)}getCombinedIconPrimary(e,t,i,r,n,o,s){let a,l;if(e.hasLayoutProperty("icon-image")){const o=t.getAppearanceValueAndResolveTokens(e,"icon-image",i,r,n);a=this.getResolvedImageFromTokens(o)}else{const e=t.getValueAndResolveTokens("icon-image",i,r,n);a=this.getResolvedImageFromTokens(e)}if(a){const i=e.hasLayoutProperty("icon-size")?e.getUnevaluatedLayoutProperty("icon-size"):t._unevaluatedLayout._values["icon-size"];l=Jf(a,Nd(this.zoom,i,this.worldview,n),i,r,this.zoom,o,this.pixelRatio,s,this.worldview,n).iconPrimary}return l}updateSymbolInstanceIconVertices(e,t,i,r,n,o){const{canonical:s,availableImages:a,globalProperties:l,layer:c,iconScaleFactor:h,featureState:u,layoutIconOffset:d,layoutIconSize:f,layoutIconRotate:p}=o;if(e.placedIconSymbolIndex<0)return{vertexOffsetDelta:0,hasChanges:!1};if(t.activeAppearanceIndex===i)return{vertexOffsetDelta:e.numIconVertices,hasChanges:!1};const A=i>=0?c.appearances[i]:null;if(A){const i=this.getCombinedIconPrimary(A,c,r,s,a,{sortKey:void 0,text:void 0,icon:null,index:e.featureIndex,sourceLayerIndex:e.featureIndex,geometry:[],properties:t.properties,type:"Point",id:t.id},h);if(!i)return{vertexOffsetDelta:0,hasChanges:!1};const o=i.toString(),g=this.iconAtlasPositions&&this.iconAtlasPositions.get(o);if(g){const{appearanceIconOffset:i,appearanceIconRotate:o}=Hf(A,c,r,s,d,p,f,h);let m=Rd(g,void 0,i,c.layout.get("icon-anchor").evaluate(r,u,s));const _=g.sdf,y=c.layout.get("icon-text-fit").constantOr("none");"none"!==y&&t.textShaping&&t.iconTextFitPadding&&t.fontScale&&(m=zd(m,t.textShaping,y,t.iconTextFitPadding,i,t.fontScale));const x=this.calculateEffectiveAppearanceIconSize(A,l.zoom,r,s,a,h,f),v=0,w=1+(Math.min(np,Math.round(x*kd))<<1),E=bf(m,o,_,"none"!==y,h);t.isUsingAppearanceIconVertexData||(t.isUsingAppearanceIconVertexData=!0,t.layoutBasedIconVertexData=this.icon.snapshotSymbolVertexData(n,e.numIconVertices));const b=Math.floor(e.numIconVertices/4),I=Math.min(E.length,b);let C=n;for(let r=0;r<I;++r){const i=E[r],n=t.layoutBasedIconVertexData[0]||e.tileAnchorX,o=t.layoutBasedIconVertexData[1]||e.tileAnchorY,s=16*i.pixelOffsetTL.x,a=16*i.pixelOffsetTL.y,l=16*i.pixelOffsetBR.x,c=16*i.pixelOffsetBR.y,h=16*i.minFontScaleX,u=16*i.minFontScaleY;this.icon.updateSymbolVertexData(C,n,o,Math.round(32*i.tl.x),Math.round(32*i.tl.y),i.texPrimary.x,i.texPrimary.y,v,w,s,a,h,u),this.icon.updateSymbolVertexData(C+1,n,o,Math.round(32*i.tr.x),Math.round(32*i.tr.y),i.texPrimary.x+i.texPrimary.w,i.texPrimary.y,v,w,l,a,h,u),this.icon.updateSymbolVertexData(C+2,n,o,Math.round(32*i.bl.x),Math.round(32*i.bl.y),i.texPrimary.x,i.texPrimary.y+i.texPrimary.h,v,w,s,c,h,u),this.icon.updateSymbolVertexData(C+3,n,o,Math.round(32*i.br.x),Math.round(32*i.br.y),i.texPrimary.x+i.texPrimary.w,i.texPrimary.y+i.texPrimary.h,v,w,l,c,h,u),C+=4}const B=e.numIconVertices-4*I;for(let e=0;e<B;++e)this.icon.updateSymbolVertexData(C+e,0,0,0,0,0,0,0,0,0,0,0,0);return{vertexOffsetDelta:e.numIconVertices,hasChanges:!0}}}else{if(t.usesAppearanceIconAsPlaceholder)return this.icon.updateSymbolVertexData(n,0,0,0,0,0,0,0,0,0,0,0,0),this.icon.updateSymbolVertexData(n+1,0,0,0,0,0,0,0,0,0,0,0,0),this.icon.updateSymbolVertexData(n+2,0,0,0,0,0,0,0,0,0,0,0,0),this.icon.updateSymbolVertexData(n+3,0,0,0,0,0,0,0,0,0,0,0,0),{vertexOffsetDelta:e.numIconVertices,hasChanges:!0};if(t.isUsingAppearanceIconVertexData)return this.icon.restoreSymbolVertexData(n,t.layoutBasedIconVertexData),t.isUsingAppearanceIconVertexData=!1,{vertexOffsetDelta:t.layoutBasedIconVertexData.length/WA,hasChanges:!0}}return{vertexOffsetDelta:e.numIconVertices,hasChanges:!1}}updateSymbolInstanceTextVertices(e,t,i,r,n,o){const{canonical:s,layer:a,textScaleFactor:l,imageMap:c,featureState:h,layoutTextOffset:u,layoutTextSize:d,layoutTextRotate:f,layoutMinZoomSize:p,layoutMaxZoomSize:A,layoutTextSizeMinZoom:g,layoutTextSizeMaxZoom:m,availableImages:_}=o,y=e.numHorizontalGlyphVertices>0||e.numVerticalGlyphVertices>0;if(!y)return{vertexOffsetDelta:y?e.numHorizontalGlyphVertices+e.numVerticalGlyphVertices:0,hasChanges:!1};if(t.activeAppearanceIndex===i)return{vertexOffsetDelta:e.numHorizontalGlyphVertices+e.numVerticalGlyphVertices,hasChanges:!1};const x=i>
vendor: 16,170 bytes, line 1
1=0?a.appearances[i]:null;if(x&&t.textShaping){const{appearanceTextOffset:i,appearanceTextRotate:o,appearanceTextSize:y}=Gf(x,a,r,s,u,f,d);t.fontScale=tp(y,t.textScaleFactor);const v=x.getUnevaluatedLayoutProperty("text-size");let w=this.textSizeData,E=g,b=m;x.hasLayoutProperty("text-size")&&(w=Nd(this.zoom,v,this.worldview,_),E="composite"===this.textSizeData.kind?this.textSizeData.minZoom:0,b="composite"===this.textSizeData.kind?this.textSizeData.maxZoom:0);const I=t.textShaping.bottom-u[1],C=t.textShaping.left-u[0],B=t.textShaping.right-u[0];t.textShaping.top=i[1]+(t.textShaping.top-u[1]),t.textShaping.bottom=i[1]+I,t.textShaping.left=i[0]+C,t.textShaping.right=i[0]+B;const D=Sf(0,t.textShaping,i,a,!1,r,c,this.allowVerticalPlacement,o),T=y&&"composite"===w.kind?v.possiblyEvaluate(new ea(E,{}),s).evaluate(r,h,s):p,M=y&&"composite"===w.kind?v.possiblyEvaluate(new ea(b,{}),s).evaluate(r,h,s):A,Q=sp(x.name,w,y,l,T,M),S=Array.isArray(Q)?Q[1]:y,P=0,R=1+(Math.min(np,Math.round(S*kd))<<1);t.isUsingAppearanceTextVertexData||(t.isUsingAppearanceTextVertexData=!0,t.layoutBasedTextVertexData=this.text.snapshotSymbolVertexData(n,e.numHorizontalGlyphVertices+e.numVerticalGlyphVertices));for(let t=0;t<D.length&&t<(e.numHorizontalGlyphVertices+e.numVerticalGlyphVertices)/4;++t){const i=D[t],r=i.glyphOffset[1],o=e.tileAnchorX,s=e.tileAnchorY,a=n+4*t;this.text.updateSymbolVertexData(a,o,s,Math.round(32*i.tl.x),Math.round(32*(r+i.tl.y)),i.texPrimary.x,i.texPrimary.y,P,R,i.pixelOffsetTL.x,i.pixelOffsetTL.y,i.minFontScaleX,i.minFontScaleY),this.text.updateSymbolVertexData(a+1,o,s,Math.round(32*i.tr.x),Math.round(32*(r+i.tr.y)),i.texPrimary.x+i.texPrimary.w,i.texPrimary.y,P,R,i.pixelOffsetBR.x,i.pixelOffsetTL.y,i.minFontScaleX,i.minFontScaleY),this.text.updateSymbolVertexData(a+2,o,s,Math.round(32*i.bl.x),Math.round(32*(r+i.bl.y)),i.texPrimary.x,i.texPrimary.y+i.texPrimary.h,P,R,i.pixelOffsetTL.x,i.pixelOffsetBR.y,i.minFontScaleX,i.minFontScaleY),this.text.updateSymbolVertexData(a+3,o,s,Math.round(32*i.br.x),Math.round(32*(r+i.br.y)),i.texPrimary.x+i.texPrimary.w,i.texPrimary.y+i.texPrimary.h,P,R,i.pixelOffsetBR.x,i.pixelOffsetBR.y,i.minFontScaleX,i.minFontScaleY)}return{vertexOffsetDelta:e.numHorizontalGlyphVertices+e.numVerticalGlyphVertices,hasChanges:!0}}return t.isUsingAppearanceTextVertexData?(this.text.restoreSymbolVertexData(n,t.layoutBasedTextVertexData),t.isUsingAppearanceTextVertexData=!1,{vertexOffsetDelta:t.layoutBasedTextVertexData.length/WA,hasChanges:!0}):{vertexOffsetDelta:e.numHorizontalGlyphVertices+e.numVerticalGlyphVertices,hasChanges:!1}}updateExpressions(e){this.text&&this.text.programConfigurations.updateExpressions(e),this.icon&&this.icon.programConfigurations.updateExpressions(e)}update(e,t,i,r,n,o,s,a){if(this.text.uboBinder||this.text.programConfigurations.updatePaintArrays(e,t,n,i,r,o,s,this.worldview),this.icon.uboBinder||this.icon.programConfigurations.updatePaintArrays(e,t,n,i,r,o,s,this.worldview),a)if(o)for(const l of[this.text.uboBinder,this.icon.uboBinder])l&&!l.isLightConstant&&l.updateDynamicExpressions(n[0],t,a,i,e,s);else if(Object.keys(e).length>0){const r=n[0],o=[this.text.uboBinder,this.icon.uboBinder].filter(e=>e&&e.hasStateDependentPaint(r));if(o.length>0){const n=new Set(Object.keys(e).map(e=>{const t=Number(e);return!isNaN(t)&&Number.isSafeInteger(t)&&String(t)===e?t:e}));for(const l of o)l.updateFeatures(n,r,t,a,i,e,s)}}}updateZOffset(){const e=(e,t,r)=>{i+=t,i>e.length&&e.resize(i);for(let n=-t;n<0;n++)e.emplace(n+i,r)},t=(e,t,i)=>{r+=t,r>e.length&&e.resize(r);for(let n=-t;n<0;n++)e.emplace(n+r,i)};if(!this.zOffsetBuffersNeedUpload)return;this.zOffsetBuffersNeedUpload=!1;let i=0,r=0;for(let n=0;n<this.symbolInstances.length;n++){const i=this.symbolInstances.get(n),{numHorizontalGlyphVertices:r,numVerticalGlyphVertices:o,numIconVertices:s}=i,a=i.zOffset,l=s>0;if((r>0||o>0)&&(e(this.text.zOffsetVertexArray,r,a),e(this.text.zOffsetVertexArray,o,a)),l){const{placedIconSymbolIndex:e,verticalPlacedIconSymbolIndex:r}=i;e>=0&&t(this.icon.zOffsetVertexArray,s,a),r>=0&&t(this.icon.zOffsetVertexArray,i.numVerticalIconVertices,a)}}this.text.zOffsetVertexBuffer&&this.text.zOffsetVertexBuffer.updateData(this.text.zOffsetVertexArray),this.icon.zOffsetVertexBuffer&&this.icon.zOffsetVertexBuffer.updateData(this.icon.zOffsetVertexArray)}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e,t,i,r,n){!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.zOffsetBuffersNeedUpload,this.hasAppearances),null===this.hasAppearances&&(this.hasAppearances=this.layers.some(e=>e.appearances&&e.appearances.length>0)),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload,this.zOffsetBuffersNeedUpload,this.hasAppearances),this.uploaded=!0}updateAppearances(e,t,i,r,n,o=!1){const s={hasLayoutChanges:!1,hasUboChanges:!1};if(!e||!i||!this.featureAppearanceData)return s;const a=t||{},l=this.icon.layoutVertexArray&&this.icon.layoutVertexArray.length>0&&this.icon.layoutVertexArray.arrayBuffer,c=this.text.layoutVertexArray&&this.text.layoutVertexArray.length>0&&this.text.layoutVertexArray.arrayBuffer;if(!l&&!c)return s;const h=this.layers[0],u=h.layout;this.featureAppearances&&this.featureAppearances.appearancesVersion===h.appearancesVersion||(this.featureAppearances=new kA(h.appearances,h.appearancesVersion));const d=this.featureAppearances.update(r,o);if("no-changes"===d.kind)return s;let f=1,p=0,A=!1,g=!1;if(l){const[e,t]=u.get("icon-size-scale-range");f=Je(1,e,t)}let m=1,_=0,y=!1;if(c){const[e,t]=u.get("text-size-scale-range");m=Je(1,e,t)}const x=new Map;if(n&&i)for(const w of i){const e=n.getImage(w,h.scope);if(e){const t=new Ki(w.toString());x.set(t.toString(),e)}}const v=[this.text.uboBinder,this.icon.uboBinder];for(let w=0;w<this.symbolInstances.length;w++){const t=this.symbolInstances.get(w),n=this.getAppearanceFeatureData(t.featureIndex);if(!n)continue;const o=n.id,s=void 0!==o?a[String(o)]:void 0,E={type:"Point",id:n.id,properties:n.properties,geometry:[]};let b;if("all-features"===d.kind)b=d.appearanceIndex;else{const t=h.appearances?h.appearances.findIndex(t=>t.isActive({globals:r,feature:E,canonical:e,featureState:s})):-1;b=t>=0?t:-1}const I=n.activeAppearanceIndex!==b;if(c){const r=u.get("text-size"),o="composite"===this.textSizeData.kind?this.textSizeData.minZoom:0,a="composite"===this.textSizeData.kind?this.textSizeData.maxZoom:0,l={canonical:e,layer:h,featureState:s,availableImages:i,textScaleFactor:m,imageMap:x,layoutTextOffset:u.get("text-offset").evaluate(E,s,e).map(e=>e*Xu),layoutTextSize:r.evaluate(E,s,e),layoutTextRotate:u.get("text-rotate").evaluate(E,s,e),layoutMinZoomSize:r.evaluate(E,{zoom:o},e),layoutMaxZoomSize:r.evaluate(E,{zoom:a},e),layoutTextSizeMinZoom:o,layoutTextSizeMaxZoom:a},c=this.updateSymbolInstanceTextVertices(t,n,b,E,_,l);_+=c.vertexOffsetDelta,y=y||c.hasChanges}if(l){const o={canonical:e,layer:h,featureState:s,availableImages:i,globalProperties:r,iconScaleFactor:f,layoutIconOffset:u.get("icon-offset").evaluate(E,s,e),layoutIconSize:u.get("icon-size").evaluate(E,s,e,i),layoutIconRotate:u.get("icon-rotate").evaluate(E,s,e)},a=this.updateSymbolInstanceIconVertices(t,n,b,E,p,o);p+=a.vertexOffsetDelta,A=A||a.hasChanges}if(I){const n=t.featureIndex,o=r?r.brightness:null,a=s||{},l=b>=0?h.appearances[b]:null;for(const t of v)t&&(t.layer=h,g=t.updateFeaturePaintForAppearance(n,E,a,e,i,o,l)||g)}n.activeAppearanceIndex=b}return A&&this.icon.layoutVertexBuffer&&null!==this.icon.layoutVertexArray.arrayBuffer&&this.icon.layoutVertexArray.length===this.icon.layoutVertexBuffer.length&&this.icon.layoutVertexBuffer.updateData(this.icon.layoutVertexArray),y&&this.text.layoutVertexBuffer&&null!==this.text.layoutVertexArray.arrayBuffer&&this.text.layoutVertexArray.length===this.text.layoutVertexBuffer.length&&this.text.layoutVertexBuffer.updateData(this.text.layoutVertexArray),{hasLayoutChanges:A||y,hasUboChanges:g}}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}getProjection(){return this.projectionInstance||(this.projectionInstance=IA(this.projection)),this.projectionInstance}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){const i=this.lineVertexArray.length;if(void 0!==e.segment)for(const{x:r,y:n}of t)this.lineVertexArray.emplaceBack(r,n);return{lineStartIndex:i,lineLength:this.lineVertexArray.length-i}}addSymbols(e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m){const _=e.indexArray,y=e.layoutVertexArray,x=e.globeExtVertexArray,v=m,w=e.uboBinder?e.uboBinder.getCurrentBatchIndex():void 0,E=e.segments.prepareSegment(4*v,y,_,this.canOverlap?o.sortKey:void 0,w),b=this.glyphOffsetArray.length,I=E.vertexLength,C=this.allowVerticalPlacement&&s===xd.vertical?Math.PI/2:0,B=o.text&&o.text.sections;let D=y.length,T=-1;for(let S=0;S<t.length;S++){const{tl:r,tr:n,bl:s,br:c,texPrimary:h,texSecondary:u,pixelOffsetTL:g,pixelOffsetBR:m,minFontScaleX:v,minFontScaleY:w,glyphOffset:b,isSDF:I,sectionIndex:M}=t[S],Q=E.vertexLength,P=b[1];if(VA(y,l.x,l.y,r.x,P+r.y,h.x,h.y,i,I,g.x,g.y,v,w),VA(y,l.x,l.y,n.x,P+n.y,h.x+h.w,h.y,i,I,m.x,g.y,v,w),VA(y,l.x,l.y,s.x,P+s.y,h.x,h.y+h.h,i,I,g.x,m.y,v,w),VA(y,l.x,l.y,c.x,P+c.y,h.x+h.w,h.y+h.h,i,I,m.x,m.y,v,w),a){const{x:t,y:i,z:r}=a.anchor,[n,o,s]=a.up;jA(x,t,i,r,n,o,s),jA(x,t,i,r,n,o,s),jA(x,t,i,r,n,o,s),jA(x,t,i,r,n,o,s),GA(e.dynamicLayoutVertexArray,t,i,r,C)}else GA(e.dynamicLayoutVertexArray,l.x,l.y,l.z,C);if(A){const t=u||h;HA(e.iconTransitioningVertexArray,t.x,t.y),HA(e.iconTransitioningVertexArray,t.x+t.w,t.y),HA(e.iconTransitioningVertexArray,t.x,t.y+t.h),HA(e.iconTransitioningVertexArray,t.x+t.w,t.y+t.h)}if(_.emplaceBack(Q,Q+1,Q+2),_.emplaceBack(Q+1,Q+2,Q+3),E.vertexLength+=4,E.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(b[0]),(S===t.length-1||M!==t[S+1].sectionIndex)&&(e.uboBinder||e.programConfigurations.populatePaintArrays(y.length,o,o.index,{},d,f,p,B&&B[M],this.worldview),e.uboBinder)){const t=e.uboBinder.populateUBO(o,o.index,f,d,p,B&&B[M]);T=t;const i=y.length-D;for(let r=0;r<i;r++)e.featureIdArray.emplaceBack(t);D=y.length}}const M=m-t.length;if(0!==M&&(this._addNullVertices(M,y,i,a,x,e,A,E,_),e.uboBinder&&T>=0)){const t=4*M;for(let i=0;i<t;i++)e.featureIdArray.emplaceBack(T)}const Q=a?a.anchor:l;e.placedSymbolArray.emplaceBack(Q.x,Q.y,Q.z,l.x,l.y,b,this.glyphOffsetArray.length-b,I,c,h,l.segment,i?i[0]:0,i?i[1]:0,r[0],r[1],s,0,0,0,u,0),e.symbolInstanceIndices.push(g)}_addNullVertices(e,t,i,r,n,o,s,a,l){for(let c=0;c<e;c++){for(let a=0;a<4;a++)VA(t,0,0,0,0,0,0,i,!1,0,0,0,0),r?(jA(n,0,0,0,0,0,0),GA(o.dynamicLayoutVertexArray,0,0,0,0)):GA(o.dynamicLayoutVertexArray,0,0,0,0),s&&HA(o.iconTransitioningVertexArray,0,0);const e=a.vertexLength;l.emplaceBack(e,e+1,e+2),l.emplaceBack(e+1,e+2,e+3),a.vertexLength+=4,a.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(0)}}_commitLayoutVertex(e,t,i,r,n,o,s){e.emplaceBack(t,i,r,n,o,Math.round(s.x),Math.round(s.y))}_addCollisionDebugVertices(e,t,i,r,n,o,s){const a=i.segments.prepareSegment(4,i.layoutVertexArray,i.indexArray),l=a.vertexLength,c=s.tileAnchorX,h=s.tileAnchorY;for(let d=0;d<4;d++)i.collisionVertexArray.emplaceBack(0,0,0,0,0,0);this._commitDebugCollisionVertexUpdate(i.collisionVertexArrayExt,t,e.padding,s.zOffset),this._commitLayoutVertex(i.layoutVertexArray,r,n,o,c,h,new we(e.x1,e.y1)),this._commitLayoutVertex(i.layoutVertexArray,r,n,o,c,h,new we(e.x2,e.y1)),this._commitLayoutVertex(i.layoutVertexArray,r,n,o,c,h,new we(e.x2,e.y2)),this._commitLayoutVertex(i.layoutVertexArray,r,n,o,c,h,new we(e.x1,e.y2)),a.vertexLength+=4;const u=i.indexArray;u.emplaceBack(l,l+1),u.emplaceBack(l+1,l+2),u.emplaceBack(l+2,l+3),u.emplaceBack(l+3,l),a.primitiveLength+=4}_addTextDebugCollisionBoxes(e,t,i,r,n,o){for(let s=r;s<n;s++){const r=i.get(s),n=this.getSymbolInstanceTextSize(e,o,t,s);this._addCollisionDebugVertices(r,n,this.textCollisionBox,r.projectedAnchorX,r.projectedAnchorY,r.projectedAnchorZ,o)}}_addIconDebugCollisionBoxes(e,t,i,r,n,o){for(let s=r;s<n;s++){const r=i.get(s),n=this.getSymbolInstanceIconSize(e,t,o.placedIconSymbolIndex);this._addCollisionDebugVertices(r,n,this.iconCollisionBox,r.projectedAnchorX,r.projectedAnchorY,r.projectedAnchorZ,o)}}generateCollisionDebugBuffers(e,t,i){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new ZA(gc,Vu.members,pc),this.iconCollisionBox=new ZA(gc,Vu.members,pc);const r=Vd(this.iconSizeData,e),n=Vd(this.textSizeData,e,i);for(let o=0;o<this.symbolInstances.length;o++){const i=this.symbolInstances.get(o);this._addTextDebugCollisionBoxes(n,e,t,i.textBoxStartIndex,i.textBoxEndIndex,i),this._addTextDebugCollisionBoxes(n,e,t,i.verticalTextBoxStartIndex,i.verticalTextBoxEndIndex,i),this._addIconDebugCollisionBoxes(r,e,t,i.iconBoxStartIndex,i.iconBoxEndIndex,i),this._addIconDebugCollisionBoxes(r,e,t,i.verticalIconBoxStartIndex,i.verticalIconBoxEndIndex,i)}}getSymbolInstanceTextSize(e,t,i,r){const n=this.text.placedSymbolArray.get(t.rightJustifiedTextSymbolIndex>=0?t.rightJustifiedTextSymbolIndex:t.centerJustifiedTextSymbolIndex>=0?t.centerJustifiedTextSymbolIndex:t.leftJustifiedTextSymbolIndex>=0?t.leftJustifiedTextSymbolIndex:t.verticalPlacedTextSymbolIndex>=0?t.verticalPlacedTextSymbolIndex:r),o=Ud(this.textSizeData,e,n)/Xu;return this.tilePixelRatio*o}getSymbolInstanceIconSize(e,t,i){const r=this.icon.placedSymbolArray.get(i),n=Ud(this.iconSizeData,e,r);return this.tilePixelRatio*n}_commitDebugCollisionVertexUpdate(e,t,i,r){e.emplaceBack(t,-i,-i,r),e.emplaceBack(t,i,-i,r),e.emplaceBack(t,i,i,r),e.emplaceBack(t,-i,i,r)}_updateTextDebugCollisionBoxes(e,t,i,r,n,o,s){for(let a=r;a<n;a++){const r=i.get(a),n=this.getSymbolInstanceTextSize(e,o,t,a);this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt,n,r.padding,o.zOffset)}}_updateIconDebugCollisionBoxes(e,t,i,r,n,o,s){for(let a=r;a<n;a++){const r=i.get(a),n=this.getSymbolInstanceIconSize(e,t,o.placedIconSymbolIndex);this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt,n,r.padding,o.zOffset)}}updateCollisionDebugBuffers(e,t,i,r){if(!this.hasDebugData())return;this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexArrayExt.clear(),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexArrayExt.clear();const n=Vd(this.iconSizeData,e,r),o=Vd(this.textSizeData,e,i);for(let s=0;s<this.symbolInstances.length;s++){const a=this.symbolInstances.get(s);this._updateTextDebugCollisionBoxes(o,e,t,a.textBoxStartIndex,a.textBoxEndIndex,a,i),this._updateTextDebugCollisionBoxes(o,e,t,a.verticalTextBoxStartIndex,a.verticalTextBoxEndIndex,a,i),this._updateIconDebugCollisionBoxes(n,e,t,a.iconBoxStartIndex,a.iconBoxEndIndex,a,r),this._updateIconDebugCollisionBoxes(n,e,t,a.verticalIconBoxStartIndex,a.verticalIconBoxEndIndex,a,r)}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,i,r,n,o,s,a,l){const c={};if(t<i){const{x1:i,y1:r,x2:n,y2:o,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:h,tileAnchorX:u,tileAnchorY:d,featureIndex:f}=e.get(t);c.textBox={x1:i,y1:r,x2:n,y2:o,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:h,tileAnchorX:u,tileAnchorY:d},c.textFeatureIndex=f}if(r<n){const{x1:t,y1:i,x2:n,y2:o,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:h,tileAnchorX:u,tileAnchorY:d,featureIndex:f}=e.get(r);c.verticalTextBox={x1:t,y1:i,x2:n,y2:o,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:h,tileAnchorX:u,tileAnchorY:d},c.verticalTextFeatureIndex=f}
1if(o<s){const{x1:t,y1:i,x2:r,y2:n,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:h,tileAnchorX:u,tileAnchorY:d,featureIndex:f}=e.get(o);c.iconBox={x1:t,y1:i,x2:r,y2:n,padding:s,projectedAnchorX:a,projectedAnchorY:l,projectedAnchorZ:h,tileAnchorX:u,tileAnchorY:d},c.iconFeatureIndex=f}if(a<l){const{x1:t,y1:i,x2:r,y2:n,padding:o,projectedAnchorX:s,projectedAnchorY:l,projectedAnchorZ:h,tileAnchorX:u,tileAnchorY:d,featureIndex:f}=e.get(a);c.verticalIconBox={x1:t,y1:i,x2:r,y2:n,padding:o,projectedAnchorX:s,projectedAnchorY:l,projectedAnchorZ:h,tileAnchorX:u,tileAnchorY:d},c.verticalIconFeatureIndex=f}return c}deserializeCollisionBoxes(e){this.collisionArrays=[];for(let t=0;t<this.symbolInstances.length;t++){const i=this.symbolInstances.get(t);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(e,i.textBoxStartIndex,i.textBoxEndIndex,i.verticalTextBoxStartIndex,i.verticalTextBoxEndIndex,i.iconBoxStartIndex,i.iconBoxEndIndex,i.verticalIconBoxStartIndex,i.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}hasIconTextFit(){return this.hasAnyIconTextFit}addIndicesForPlacedSymbol(e,t){const i=e.placedSymbolArray.get(t),r=i.vertexStartIndex+4*i.numGlyphs;for(let n=i.vertexStartIndex;n<r;n+=4)e.indexArray.emplaceBack(n,n+1,n+2),e.indexArray.emplaceBack(n+1,n+2,n+3)}getSortedSymbolIndexes(e){if(this.sortedAngle===e&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;const t=Math.sin(e),i=Math.cos(e),r=[],n=[],o=[];for(let s=0;s<this.symbolInstances.length;++s){o.push(s);const e=this.symbolInstances.get(s);r.push(0|Math.round(t*e.tileAnchorX+i*e.tileAnchorY)),n.push(e.featureIndex)}return o.sort((e,t)=>r[e]-r[t]||n[t]-n[e]),o}getSortedIndexesByZOffset(){if(!this.zOffsetSortDirty)return this.symbolInstanceIndexesSortedZOffset;if(!this.symbolInstanceIndexesSortedZOffset){this.symbolInstanceIndexesSortedZOffset=[];for(let e=0;e<this.symbolInstances.length;++e)this.symbolInstanceIndexesSortedZOffset.push(e)}return this.zOffsetSortDirty=!1,this.symbolInstanceIndexesSortedZOffset.sort((e,t)=>this.symbolInstances.get(t).zOffset-this.symbolInstances.get(e).zOffset)}addToSortKeyRanges(e,t){const i=this.sortKeyRanges.at(-1);i&&i.sortKey===t?i.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e)if(this.text.segments.get().length>1||this.icon.segments.get().length>1)this.sortFeaturesWithinSegments();else{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);const{rightJustifiedTextSymbolIndex:i,centerJustifiedTextSymbolIndex:r,leftJustifiedTextSymbolIndex:n,verticalPlacedTextSymbolIndex:o,placedIconSymbolIndex:s,verticalPlacedIconSymbolIndex:a}=t;i>=0&&this.addIndicesForPlacedSymbol(this.text,i),r>=0&&r!==i&&this.addIndicesForPlacedSymbol(this.text,r),n>=0&&n!==r&&n!==i&&this.addIndicesForPlacedSymbol(this.text,n),o>=0&&this.addIndicesForPlacedSymbol(this.text,o),s>=0&&this.addIndicesForPlacedSymbol(this.icon,s),a>=0&&this.addIndicesForPlacedSymbol(this.icon,a)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}getOrCreateSortedSymbolsByBatch(e,t){const i=(this.text.uboBinder&&this.text.uboBinder.maxFeaturesPerBatch>0?this.text.uboBinder:this.icon.uboBinder&&this.icon.uboBinder.maxFeaturesPerBatch>0?this.icon.uboBinder:null).maxFeaturesPerBatch;if(this.symbolsByBatch)for(const r of this.symbolsByBatch.values())for(const i of r){const r=this.symbolInstances.get(i.index);i.rotatedY=0|Math.round(e*r.tileAnchorX+t*r.tileAnchorY)}else{this.symbolsByBatch=new Map;for(let r=0;r<this.symbolInstances.length;r++){const n=this.symbolInstances.get(r),o=Math.floor(r/i),s=0|Math.round(e*n.tileAnchorX+t*n.tileAnchorY);this.symbolsByBatch.has(o)||this.symbolsByBatch.set(o,[]),this.symbolsByBatch.get(o).push({index:r,rotatedY:s,featureIndex:n.featureIndex})}}for(const r of this.symbolsByBatch.values())r.sort((e,t)=>
1e.rotatedY-t.rotatedY||t.featureIndex-e.featureIndex);return this.symbolsByBatch}rebuildTextSegmentIndices(e,t){for(const i of e){const e=i.batchIndex;if(void 0===e)continue;const r=t.get(e);if(!r){i.primitiveOffset=this.text.indexArray.length,i.primitiveLength=0;continue}i.primitiveOffset=this.text.indexArray.length;const n=this.text.indexArray.length;for(const{index:t}of r){const e=this.symbolInstances.get(t),{rightJustifiedTextSymbolIndex:i,centerJustifiedTextSymbolIndex:r,leftJustifiedTextSymbolIndex:n,verticalPlacedTextSymbolIndex:o}=e;i>=0&&this.addIndicesForPlacedSymbol(this.text,i),r>=0&&r!==i&&this.addIndicesForPlacedSymbol(this.text,r),n>=0&&n!==r&&n!==i&&this.addIndicesForPlacedSymbol(this.text,n),o>=0&&this.addIndicesForPlacedSymbol(this.text,o)}i.primitiveLength=this.text.indexArray.length-n}}rebuildIconSegmentIndices(e,t){for(const i of e){const e=i.batchIndex;if(void 0===e)continue;const r=t.get(e);if(!r){i.primitiveOffset=this.icon.indexArray.length,i.primitiveLength=0;continue}i.primitiveOffset=this.icon.indexArray.length;const n=this.icon.indexArray.length;for(const{index:t}of r){const e=this.symbolInstances.get(t),{placedIconSymbolIndex:i,verticalPlacedIconSymbolIndex:r}=e;i>=0&&this.addIndicesForPlacedSymbol(this.icon,i),r>=0&&this.addIndicesForPlacedSymbol(this.icon,r)}i.primitiveLength=this.icon.indexArray.length-n}}sortFeaturesWithinSegments(){this.featureSortOrder=[];const e=Math.sin(this.sortedAngle),t=Math.cos(this.sortedAngle),i=this.getOrCreateSortedSymbolsByBatch(e,t),r=Array.from(i.keys()).sort((e,t)=>e-t);for(const n of r){const e=i.get(n);for(const{index:t}of e){const e=this.symbolInstances.get(t);this.featureSortOrder.push(e.featureIndex)}}this.text.indexArray.clear(),this.icon.indexArray.clear(),this.rebuildTextSegmentIndices(this.text.segments.get(),i),this.rebuildIconSegmentIndices(this.icon.segments.get(),i),this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}ts(qA,"SymbolBucket",{omit:["layers","collisionBoxArray","compareText","features"]}),qA.addDynamicAttributes=GA;class KA extends Mh{constructor(e,t,i){super(e,t,i),this.elevatedLayoutVertexArray=new ec}upload(e){const t=this.uploaded;super.upload(e),!t&&this.elevatedLayoutVertexArray.length>0&&(this.elevatedLayoutVertexBuffer=e.createVertexBuffer(this.elevatedLayoutVertexArray,Jc.members))}destroy(){this.elevatedLayoutVertexBuffer&&this.elevatedLayoutVertexBuffer.destroy(),super.destroy()}}ts(KA,"ElevatedFillBufferData");class XA{constructor(){this.portals=[]}static isOnBorder(e,t){return e<=0&&t<=0||e>=Yr&&t>=Yr}static evaluate(e){if(0===e.length)return new XA;let t=[];for(const a of e)t.push(...a.portals);if(0===t.length)return new XA;for(const a of t){const e=a.va,t=a.vb;(XA.isOnBorder(e.x,t.x)||XA.isOnBorder(e.y,t.y))&&(a.type="border")}const i=t.filter(e=>"unevaluated"!==e.type),r=t.filter(e=>"unevaluated"===e.type);if(0===r.length)return new XA;r.sort((e,t)=>e.hash===t.hash?e.isTunnel===t.isTunnel?0:e.isTunnel?-1:1:e.hash<t.hash?1:-1),t=i.concat(r);let n=i.length,o=n,s=n;do{if(o++,o===t.length||t[n].hash!==t[o].hash){if(o-n===2){s<n&&(t[s]=t[n],t[n]=null);const e=t[s],i=t[o-1];e.type=e.isTunnel!==i.isTunnel?"tunnel":"polygon",e.connection={a:e.connection.a,b:i.connection.a},s++}n=o}}while(n!==t.length);return t.splice(s),t.sort((e,t)=>e.hash<t.hash?1:-1),{portals:t}}}ts(XA,"ElevationPortalGraph");class $A{constructor(e,t,i){this.outPositions=e,this.outNormals=t,this.outIndices=i,this.vertexLookup=new Map}addVertex(e,t,i){let r=e[2];null!=i&&(r*=i);const n=`${e[0]},${e[1]},${e[2]},${t[0]},${t[1]},${t[2]}`,o=this.vertexLookup.get(n);if(null!=o)return o;const s=this.outPositions.length;this.vertexLookup.set(n,s);const a=Math.trunc(16384*t[0]),l=Math.trunc(16384*t[1]),c=Math.trunc(16384*t[2]);return this.outPositions.emplaceBack(e[0],e[1],r),this.outNormals.emplaceBack(a,l,c),s}addTriangle(e,t,i){this.outIndices.emplaceBack(e,t,i)}addTriangles(e,t,i,r=0){if(0===e.length)return;const n=b(),o=b();for(let s=0;s<e.length;s+=3){const a=t[e[s+0]],l=t[e[s+1]],c=t[e[s+2]],h=i[e[s+1]]+r,u=i[e[s+2]]+r;D(n,a.x,a.y,i[e[s+0]]+r);const d=this.addVertex(n,o);D(n,l.x,l.y,h);const f=this.addVertex(n,o);D(n,c.x,c.y,u);const p=this.addVertex(n,o);this.outIndices.emplaceBack(d,f,p)}}
vendor: 10,935 bytes, line 1
1addQuad(e,t,i,r,n,o){const s=this.addVertex(e,n,o),a=this.addVertex(t,n,o),l=this.addVertex(i,n,o),c=this.addVertex(r,n,o);this.addTriangle(s,a,l),this.addTriangle(l,c,s)}getVertexCount(){return this.outPositions.length}clearVertexLookup(){this.vertexLookup.clear()}}class eg{constructor(e,t,i,r){this.unevaluatedPortals=new XA,this.bridgeFeatureSections=[],this.tunnelFeatureSections=[],this.vertexHashLookup=new Map,this.unevalVertices=[],this.unevalHeights=[],this.unevalTriangles=[],this.unevalTunnelTriangles=[],this.unevalEdges=[],this.vertexPositions=new tc,this.vertexNormals=new ic,this.indexArray=new yc,this.tileToMeters=Rl(e),this.bridgeProgramConfigurations=new bh(t,{zoom:i,lut:r},e=>"fill-tunnel-structure-color"!==e),this.tunnelProgramConfigurations=new bh(t,{zoom:i,lut:r},e=>"fill-bridge-guard-rail-color"!==e)}addVertices(e,t){const i=this.unevalVertices.length;for(let r=0;r<e.length;r++)this.unevalVertices.push(e[r]),this.unevalHeights.push(t[r]);return i}addTriangles(e,t,i){const r=i?this.unevalTunnelTriangles:this.unevalTriangles;for(const n of e)r.push(n+t)}addRenderableRing(e,t,i,r,n,o){const s=[new we(n.min.x,n.min.y),new we(n.max.x,n.min.y),new we(n.max.x,n.max.y),new we(n.min.x,n.max.y)];for(let a=0;a<i-1;a++){const i=t+a,l=i+1,c=this.unevalVertices[i],h=this.unevalVertices[l];if(!(c.x>=n.min.x&&c.x<=n.max.x&&c.y>=n.min.y&&c.y<=n.max.y||h.x>=n.min.x&&h.x<=n.max.x&&h.y>=n.min.y&&h.y<=n.max.y||ou(c,h,s)))continue;if(this.isOnBorder(c.x,h.x)||this.isOnBorder(c.y,h.y))continue;const u=eg.computeEdgeHash(this.unevalVertices[i],this.unevalVertices[l]);let d,f=this.vertexHashLookup.get(eg.computePosHash(c));null!=f?d=f.next:(f=this.vertexHashLookup.get(eg.computePosHash(h)),d=null!=f?f.prev:u),this.unevalEdges.push({polygonIdx:e,a:i,b:l,hash:u,portalHash:d,isTunnel:r,type:"unevaluated",featureInfo:o})}}addPortalCandidates(e,t,i,r,n){if(0!==t.length){this.vertexHashLookup.clear();for(const n of t){if(0===n.length)continue;const t=n[0];let o=eg.computeEdgeHash(t[t.length-2],t.at(-1));for(let n=0;n<t.length-1;n++){const s=t[n+0],a=t[n+1],l=de(a.x-s.x,a.y-s.y),c=me(l);if(0===c)continue;let h="unevaluated";const u=r.pointElevation(s),d=r.pointElevation(a);Math.abs(u)<.01&&Math.abs(d)<.01?h="entrance":(this.isOnBorder(s.x,a.x)||this.isOnBorder(s.y,a.y))&&(h="border");const f=eg.computeEdgeHash(s,a);this.unevaluatedPortals.portals.push({connection:{a:e,b:void 0},va:s,vb:a,vab:l,length:c,hash:f,isTunnel:i,type:h});const p=eg.computePosHash(s);this.vertexHashLookup.set(p,{prev:o,next:f}),o=f}}}}construct(e){if(0===this.unevalVertices.length)return;const t=()=>({vertexOffset:0,primitiveOffset:this.indexArray.length}),i=e=>{e.primitiveLength=this.indexArray.length-e.primitiveOffset},r=new $A(this.vertexPositions,this.vertexNormals,this.indexArray);this.prepareEdges(e.portals,this.unevalEdges);const n=t(),o=t(),s=t(),a=(e,t)=>{e.sort((e,i)=>e.type===t&&i.type!==t?-1:e.type!==t&&i.type===t?1:0);const i=e.findIndex(e=>e.type!==t);return i>=0?i:e.length};let l=0;this.unevalEdges.length>0&&(l=a(this.unevalEdges,"none"),this.constructBridgeStructures(r,this.unevalVertices,this.unevalHeights,this.unevalEdges,{min:0,max:l},this.tileToMeters)),i(s);const c=t(),h=t();if(this.unevalEdges.length>0){const e=this.unevalEdges.splice(l),t=a(e,"tunnel")+l;this.unevalEdges.push(...e),this.constructTunnelStructures(r,this.unevalVertices,this.unevalHeights,this.unevalEdges,{min:0,max:l},{min:l,max:t})}i(c),r.addTriangles(this.unevalTriangles,this.unevalVertices,this.unevalHeights),i(h),r.addTriangles(this.unevalTunnelTriangles,this.unevalVertices,this.unevalHeights),i(o),r.addTriangles(this.unevalTunnelTriangles,this.unevalVertices,this.unevalHeights,4),i(n),this.maskSegments=Kc.simpleSegment(0,h.primitiveOffset,0,h.primitiveLength),this.depthSegments=Kc.simpleSegment(0,o.primitiveOffset,0,o.primitiveLength),this.renderableBridgeSegments=Kc.simpleSegment(0,s.primitiveOffset,0,s.primitiveLength),this.renderableTunnelSegments=Kc.simpleSegment(0,c.primitiveOffset,0,c.primitiveLength),this.shadowCasterSegments=Kc.simpleSegment(0,n.primitiveOffset,0,n.primitiveLength)}update(e,t,i,r,n,o,s,a){this.bridgeProgramConfigurations.updatePaintArrays(e,t,n,i,r,o,s,a),this.tunnelProgramConfigurations.updatePaintArrays(e,t,n,i,r,o,s,a)}upload(e){this.vertexBuffer||0===this.vertexPositions.length||0===this.vertexNormals.length||0===this.indexArray.length||(this.vertexBuffer=e.createVertexBuffer(this.vertexPositions,Zc.members),this.vertexBufferNormal=e.createVertexBuffer(this.vertexNormals,qc.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.bridgeProgramConfigurations.upload(e),this.tunnelProgramConfigurations.upload(e))}destroy(){this.vertexBuffer&&(this.vertexBuffer.destroy(),this.vertexBufferNormal.destroy(),this.indexBuffer.destroy()),this.maskSegments&&(this.maskSegments.destroy(),this.depthSegments.destroy(),this.renderableBridgeSegments.destroy(),this.renderableTunnelSegments.destroy(),this.shadowCasterSegments.destroy()),this.bridgeProgramConfigurations.destroy(),this.tunnelProgramConfigurations.destroy()}populatePaintArrays(e,t,i,r,n){const o=(o,s)=>{for(let a=0;a<s.length-1;a++){const l=s[a].featureIndex,c=s[a+1].vertexStart,h=e.feature(l);o.populatePaintArrays(c,h,l,{},i,t,r,void 0,n)}};o(this.bridgeProgramConfigurations,this.bridgeFeatureSections),o(this.tunnelProgramConfigurations,this.tunnelFeatureSections)}computeVertexConnections(e,t,i,r,n){const o=new Map;for(let s=r;s<n;s++){const r=i[s],n=r.a,a=r.b,l=eg.computePosHash(e[n]),c=eg.computePosHash(e[a]);let h=o.get(l);h||(h={},o.set(l,h));let u=o.get(c);u||(u={},o.set(c,u)),t[n]<=0&&t[a]<=0||(h.to=a,u.from=n)}return o}isTerminalVertex(e,t){const i=eg.computePosHash(this.unevalVertices[e]),r=t.get(i);return!r||!r.from||!r.to}constructBridgeStructures(e,t,i,r,n,o){e.clearVertexLookup();const s=this.computeVertexConnections(t,i,r,n.min,n.max),a=1/o,l=.5*a,c=(e,r)=>D(e,t[r].x,t[r].y,i[r]*a),h=b(),u=b(),d=b(),f=b(),p=b(),A=(e,i)=>{const r=s.get(eg.computePosHash(t[i])),n=r.from,o=r.to;if(!n||!o)return;c(h,n),c(u,i),c(d,o),W(f),J(h,u)||(Z(p,u,h),N(f,p)),J(d,u)||(Z(p,d,u),T(f,f,N(p,p)));const a=K(f);return a>0?R(e,f,1/a):void 0};let g=Number.POSITIVE_INFINITY;this.sortSubarray(r,n.min,n.max,(e,t)=>e.featureInfo.featureIndex-t.featureInfo.featureIndex);const m=b(),_=b(),y=b(),x=b(),v=b(),w=b(),E=b(),I=b(),C=b(),B=[b(),b(),b(),b()],M=[b(),b(),b(),b()],Q=[{coord:new we(0,0),height:0},{coord:new we(0,0),height:0}],S=(e,t)=>e>t;for(let b=n.min;b<n.max;b++){const n=r[b];if(!n.featureInfo.guardRailEnabled)continue;if(!this.prepareEdgePoints(Q,t,i,n,S))continue;const[c,h]=Q;if(D(m,c.coord.x,c.coord.y,a*c.height),D(_,h.coord.x,h.coord.y,a*h.height),J(m,_))continue;Z(y,_,m),N(y,y);const u=A(I,n.a)||y,d=A(C,n.b)||y;D(x,u[1],-u[0],0),N(x,x),D(v,d[1],-d[0],0),N(v,v),V(I,x,u),N(w,I),V(I,v,d),N(E,I),T(B[0],m,R(I,Z(I,x,w),l)),T(B[1],m,R(I,T(I,x,w),l)),T(B[2],m,R(I,w,l)),B[3]=m,T(M[0],_,R(I,Z(I,v,E),l)),T(M[1],_,R(I,T(I,v,E),l)),T(M[2],_,R(I,E,l)),M[3]=_,g=this.addFeatureSection(n.featureInfo.featureIndex,g,this.bridgeFeatureSections,e);const f=e.addVertex(B[0],x,o),p=e.addVertex(B[1],x,o),P=e.addVertex(M[0],v,o),z=e.addVertex(M[1],v,o);e.addTriangle(f,p,P),e.addTriangle(p,z,P);const L=e.addVertex(B[1],w,o),F=e.addVertex(B[2],w,o),O=e.addVertex(M[1],E,o),U=e.addVertex(M[2],E,o);e.addTriangle(L,F,O),e.addTriangle(F,U,O),k(x,x),k(v,v);const H=e.addVertex(B[2],x,o),j=e.addVertex(B[3],x,o),G=e.addVertex(M[2],v,o),Y=e.addVertex(M[3],v,o);e.addTriangle(H,j,G),e.addTriangle(j,Y,G);const W=this.isTerminalVertex(n.a,s),q=this.isTerminalVertex(n.b,s);c.height<.01&&W&&e.addQuad(B[3],B[2],B[1],B[0],k(u,u),o),h.height<.01&&q&&e.addQuad(M[0],M[1],M[2],M[3],d,o)}this.bridgeFeatureSections.push({featureIndex:Number.POSITIVE_INFINITY,vertexStart:e.getVertexCount()})}constructTunnelStructures(e,t,i,r,n,o){e.clearVertexLookup();let s=Number.POSITIVE_INFINITY;const a=(e,t)=>e.featureInfo.featureIndex-t.featureInfo.featureIndex;this.sortSubarray(r,n.min,n.max,a),this.sortSubarray(r,o.min,o.max,a);const l=e=>N(e,e),c=[{coord:new we(0,0),height:0},{coord:new we(0,0),height:0}],h=(e,t)=>e<t,u=b(),d=b(),f=b(),p=b(),A=b();for(let g=n.min;g<n.max;g++){if(!this.prepareEdgePoints(c,t,i,r[g],h))continue;const[n,o]=c,a=l(D(A,-(o.coord.y-n.coord.y),o.coord.x-n.coord.x,0));s=this.addFeatureSection(r[g].featureInfo.featureIndex,s,this.tunnelFeatureSections,e),e.addQuad(D(u,n.coord.x,n.coord.y,n.height),D(d,o.coord.x,o.coord.y,o.height),D(f,o.coord.x,o.coord.y,r[g].isTunnel?o.height+4:0),D(p,n.coord.x,n.coord.y,r[g].isTunnel?n.height+4:0),a)}for(let g=o.min;g<o.max;g++){const n=r[g];n.isTunnel&&([n.a,n.b]=[n.b,n.a]);const o=t[n.a],a=t[n.b],c=l(D(A,-(a.y-o.y),a.x-o.x,0));s=this.addFeatureSection(n.featureInfo.featureIndex,s,this.tunnelFeatureSections,e),e.addQuad(D(u,a.x,a.y,0),D(d,o.x,o.y,0),D(f,o.x,o.y,i[n.a]+4),D(p,a.x,a.y,i[n.b]+4),c),e.addQuad(D(u,o.x,o.y,0),D(d,a.x,a.y,0),D(f,a.x,a.y,i[n.b]+4),D(p,o.x,o.y,i[n.a]+4),c)}this.tunnelFeatureSections.push({featureIndex:Number.POSITIVE_INFINITY,vertexStart:e.getVertexCount()})}setElevatedPoint(e,t,i,r){e.coord.x=t,e.coord.y=i,e.height=r}prepareEdgePoints(e,t,i,r,n){let o=t[r.a].x,s=t[r.a].y,a=t[r.b].x,l=t[r.b].y,c=i[r.a],h=i[r.b];const u=n(c,0),d=n(h,0);if(u&&d)return this.setElevatedPoint(e[0],o,s,c),this.setElevatedPoint(e[1],a,l,h),!0;if(!u&&!d)return!1;if(u){if(!d){const e=h/(h-c);a=vi(a,o,e),l=vi(l,s,e),h=vi(h,c,e)}}else{const e=c/(c-h);o=vi(o,a,e),s=vi(s,l,e),c=vi(c,h,e)}return this.setElevatedPoint(e[0],o,s,c),this.setElevatedPoint(e[1],a,l,h),!0}prepareEdges(e,t){if(0===t.length)return;t.sort((e,t)=>e.hash===t.hash?t.polygonIdx-e.polygonIdx:t.hash>e.hash?1:-1);let i=0,r=0,n=0,o=t[i].polygonIdx;do{r++,(r===t.length||t[i].hash!==t[r].hash)&&((1===r-i||t[r-1].polygonIdx!==o)&&(n<i&&(t[n]=t[i],t[i]=null),t[n].type="none",n++),i=r,i!==t.length&&(o=t[i].polygonIdx))}while(i!==t.length);if(t.splice(n),0!==t.length&&0!==e.length){t.sort((e,t)=>e.portalHash<t.portalHash?1:-1);let i=0,r=0;for(;i!==t.length&&r!==e.length;){const n=t[i],o=e[r];n.portalHash>o.hash?i++:o.hash>n.portalHash?r++:(n.type=o.type,i++)}}}isOnBorder(e,t){return e<=0&&t<=0||e>=Yr&&t>=Yr}addFeatureSection(e,t,i,r){return e!==t&&(t=e,i.push({featureIndex:e,vertexStart:r.getVertexCount()}),r.clearVertexLookup()),t}sortSubarray(e,t,i,r){const n=e.slice(t,i);n.sort(r),e.splice(t,n.length,...n)}static computeEdgeHash(e,t){return(e.y===t.y&&e.x>t.x||e.y>t.y)&&([e,t]=[t,e]),BigInt(eg.computePosHash(e))<<32n|BigInt(eg.computePosHash(t))}static computePosHash(e){return((65535&e.x)<<16|65535&e.y)>>>0}}class tg{constructor(){this._valid=!1}reset(e){return this.feature=e,this._valid=!0,this._geometry=e.loadGeometry(),0!==this._geometry.length&&0!==this._geometry[0].length||(this._valid=!1),this}geometry(e,t){return this._valid&&e(t(this._geometry)),this}require(e,t,i){return this.get(e,!0,t,i)}optional(e,t,i){return this.get(e,!1,t,i)}
vendor: 11,439 bytes, line 1
1success(){return this._valid}get(e,t,i,r){const n=Object.hasOwn(this.feature.properties,e)?+this.feature.properties[e]:void 0;return this._valid&&void 0!==n&&!Number.isNaN(n)?i(r?r(n):n):t&&(this._valid=!1),this}}class ig{constructor(e,t){this.featureFunc=e,this.vertexFunc=t}parseFeature(e,t,i){return this.featureFunc(e,t,i)}parseVertex(e,t,i){return this.vertexFunc(e,t,i)}}const rg=new ig((e,t,i)=>e.reset(t).require(wu,e=>{i.id=e}).optional("fixed_height_relative",e=>{i.constantHeight=e},og.decodeRelativeHeight).geometry(e=>{i.bounds=e},Fe).success(),(e,t,i)=>e.reset(t).require(wu,e=>{i.id=e}).require("elevation_idx",e=>{i.idx=e}).require("extent",e=>{i.extent=e}).require("height_relative",e=>{i.height=e},og.decodeRelativeHeight).geometry(e=>{i.position=e},og.getPoint).success()),ng=new ig((e,t,i)=>e.reset(t).require(wu,e=>{i.id=e}).optional("fixed_height",e=>{i.constantHeight=e},og.decodeMetricHeight).geometry(e=>{i.bounds=e},Fe).success(),(e,t,i)=>e.reset(t).require(wu,e=>{i.id=e}).require("elevation_idx",e=>{i.idx=e}).require("extent",e=>{i.extent=e}).require("height",e=>{i.height=e},og.decodeMetricHeight).geometry(e=>{i.position=e},og.getPoint).success());class og{static getPoint(e){return de(e[0][0].x,e[0][0].y)}static decodeRelativeHeight(e){return 1e-4*e*5}static decodeMetricHeight(e){return 1e-4*e}static getVersionSchema(e){return e?"1.0.1"===e?ng:void 0:rg}static parse(e){const t=[],i=[],r=e.length,n=new tg;for(let o=0;o<r;o++){const r=e.feature(o),s=r.properties.version,a=og.getVersionSchema(s);if(void 0===a){lt(`Unknown elevation feature version number ${s||"(unknown)"}`);continue}const l=r.properties.type;if(!l)continue;const c=Uh.types[r.type];if("Point"===c&&"curve_point"===l){const e={};a.parseVertex(n,r,e)&&t.push(e)}else if("Polygon"===c&&"curve_meta"===l){const e={};a.parseFeature(n,r,e)&&i.push(e)}}return{vertices:t,features:i}}}class sg{constructor(e,t){this.feature=e,this.metersToTile=t,this.index=0}get(){const e=this.feature.vertices[this.index],t=this.feature.vertexProps[this.index].dir,i=t[1],r=-t[0],n=(e.extent+1)*this.metersToTile;return[new we(Math.trunc(e.position[0]+i*n),Math.trunc(e.position[1]+r*n)),new we(Math.trunc(e.position[0]-i*n),Math.trunc(e.position[1]-r*n))]}next(){this.index++}valid(){return this.index<this.feature.vertices.length}}class ag{constructor(e,t,i,r,n,o){if(this.vertices=new Array,this.vertexProps=new Array,this.edges=new Array,this.edgeProps=new Array,this._tmpVec2=[ue(),ue(),ue(),ue(),ue(),ue(),ue()],this.id=e,this.heightRange={min:i,max:i},this.safeArea=t,this.constantHeight=i,null==this.constantHeight&&(null!=this.constantHeight||0!==r.length)){this.vertices=r,this.edges=n,this.edges=this.edges.filter(e=>{return e.a<this.vertices.length&&e.b<this.vertices.length&&!((t=this.vertices[e.a].position)[0]===(i=this.vertices[e.b].position)[0]&&t[1]===i[1]);var t,i}),this.heightRange={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};for(const e of this.vertices)this.vertexProps.push({dir:de(0,0)}),this.heightRange.min=Math.min(this.heightRange.min,e.height),this.heightRange.max=Math.max(this.heightRange.max,e.height);for(const e of this.edges){const t=this.vertices[e.a].position,i=this.vertices[e.b].position,r=Ae(ue(),i,t),n=me(r),o=ge(ue(),r,1/n);this.edgeProps.push({vec:r,dir:o,len:n});const s=this.vertexProps[e.a].dir,a=this.vertexProps[e.b].dir;pe(s,s,o),pe(a,a,o)}for(const e of this.vertexProps)0===e.dir[0]&&0===e.dir[1]||_e(e.dir,e.dir);this.tessellate(o)}}pointElevation(e){if(null!=this.constantHeight)return this.constantHeight;const t=this.getClosestEdge(e);if(null==t)return 0;const[i,r]=t;return vi(this.vertices[this.edges[i].a].height,this.vertices[this.edges[i].b].height,r)}computeSlopeNormal(e,t){const i=this.getClosestEdge(e);if(!i)return B(0,0,1);const r=i[0],n=this.edges[r],o=this.edgeProps[r].vec,s=B(o[0],o[1],(this.vertices[n.b].height-this.vertices[n.a].height)*t),a=B(s[1],-s[0],0);V(a,a,s);const l=C(a);return l>0?R(a,a,1/l):D(a,0,0,1)}getSafeArea(){return this.safeArea}isTunnel(){return this.heightRange.max<=-5}getClosestEdge(e){if(0===this.edges.length)return;let t=0,i=Number.POSITIVE_INFINITY,r=0;const[n,o,s,a,l,c,h]=this._tmpVec2;fe(h,e.x,e.y);const u=new Ap(h,null);for(let d=0;d<this.edges.length;d++){const e=this.edges[d],f=this.edgeProps[d].dir;u.dir=f;const p=this.vertices[e.a].position,A=this.vertices[e.b].position,g=u.intersectsPlane(p,this.vertexProps[e.a].dir,n),m=u.intersectsPlane(A,this.vertexProps[e.b].dir,o);if(!g||!m)continue;Ae(s,o,n),Ae(a,h,n);const _=ye(s,s),y=_>0?ye(a,s)/_:0,x=Je(y,0,1),v=Math.abs((y-x)*this.edgeProps[d].len);Ae(l,h,p),fe(c,f[1],-f[0]);const w=v+Math.abs(ye(l,c));w<i&&(t=d,i=w,r=x)}return[t,r]}tessellate(e){const t=b(),i=b(),r=b(),n=b();for(let o=this.edges.length-1;o>=0;--o){const s=this.edges[o].a,a=this.edges[o].b,{position:l,height:c,extent:h}=this.vertices[s],{position:u,height:d,extent:f}=this.vertices[a],p=this.vertexProps[s].dir,A=this.vertexProps[a].dir;if(D(t,l[0]/e,l[1]/e,c),D(i,u[0]/e,u[1]/e,d),D(r,p[1],-p[0],0),R(r,r,h),D(n,A[1],-A[0],0),R(n,n,f),this.distSqLines(B(t[0]+.5*r[0],t[1]+.5*r[1],t[2]+.5*r[2]),B(i[0]-.5*n[0],i[1]-.5*n[1],i[2]-.5*n[2]),B(t[0]-.5*r[0],t[1]-.5*r[1],t[2]-.5*r[2]),B(i[0]+.5*n[0],i[1]+.5*n[1],i[2]+.5*n[2]))<=.0025000000000000005)continue;const g=this.vertices.length,m=pe(ue(),l,u);this.vertices.push({position:ge(m,m,.5),height:.5*(c+d),extent:.5*(h+f)});const _=pe(ue(),p,A);this.vertexProps.push({dir:_e(_,_)}),this.edges.splice(o,1),this.edgeProps.splice(o,1),this.edges.push({a:s,b:g}),this.edges.push({a:g,b:a});const y=Ae(ue(),this.vertices[g].position,l),x=me(y),v={vec:y,dir:ge(ue(),y,1/x),len:x};this.edgeProps.push(v),this.edgeProps.push(v)}}distSqLines(e,t,i,r){const n=M(b(),t,e),o=M(b(),r,i),s=M(b(),e,i),a=U(n,n),l=U(n,o),c=U(n,s),h=U(o,o),u=U(o,s),d=a*h-l*l;if(0===d)return F(H(n,i,r,U(s,o)/U(o,o)),e);const f=(a*u-l*c)/d;return F(H(n,e,t,(l*u-c*h)/d),H(o,i,r,f))}}class lg{constructor(e,t){this.zScale=1,this.xOffset=0,this.yOffset=0,e.equals(t)||(this.zScale=Math.pow(2,t.z-e.z),this.xOffset=(e.x*this.zScale-t.x)*Yr,this.yOffset=(e.y*this.zScale-t.y)*Yr)}constantElevation(e,t){if(null!=e.constantHeight)return this.computeBiasedHeight(e.constantHeight,t)}pointElevation(e,t,i){const r=this.constantElevation(t,i);return null!=r?r:(e.x=e.x*this.zScale+this.xOffset,e.y=e.y*this.zScale+this.yOffset,this.computeBiasedHeight(t.pointElevation(e),i))}computeBiasedHeight(e,t){return t<=0?e:e+t*Ze(0,t,e>=0?e:Math.abs(.5*e))}}function cg(e){if(0===e)return[0,0,0];const t=vo(e);return[t(),t(),t()]}function hg(e,t){if(!t)return;const i=+e.properties[wu];return Number.isNaN(i)?void 0:t.find(e=>e.id===i)}function ug(e,t){return e>t?1:e<t?-1:0}ts(ag,"ElevationFeature");class dg{constructor(e=ug,t=!1){this._compare=e,this._root=null,this._size=0,this._noDuplicates=!!t}rotateLeft(e){var t=e.right;t&&(e.right=t.left,t.left&&(t.left.parent=e),t.parent=e.parent),e.parent?e===e.parent.left?e.parent.left=t:e.parent.right=t:this._root=t,t&&(t.left=e),e.parent=t}rotateRight(e){var t=e.left;t&&(e.left=t.right,t.right&&(t.right.parent=e),t.parent=e.parent),e.parent?e===e.parent.left?e.parent.left=t:e.parent.right=t:this._root=t,t&&(t.right=e),e.parent=t}_splay(e){for(;e.parent;){var t=e.parent;t.parent?t.left===e&&t.parent.left===t?(this.rotateRight(t.parent),this.rotateRight(t)):t.right===e&&t.parent.right===t?(this.rotateLeft(t.parent),this.rotateLeft(t)):t.left===e&&t.parent.right===t?(this.rotateRight(t),this.rotateLeft(t)):(this.rotateLeft(t),this.rotateRight(t)):t.left===e?this.rotateRight(t):this.rotateLeft(t)}}splay(e){for(var t,i,r,n,o;e.parent;)(i=(t=e.parent).parent)&&i.parent?((r=i.parent).left===i?r.left=e:r.right=e,e.parent=r):(e.parent=null,this._root=e),n=e.left,o=e.right,e===t.left?(i&&(i.left===t?(t.right?(i.left=t.right,i.left.parent=i):i.left=null,t.right=i,i.parent=t):(n?(i.right=n,n.parent=i):i.right=null,e.left=i,i.parent=e)),o?(t.left=o,o.parent=t):t.left=null,e.right=t,t.parent=e):(i&&(i.right===t?(t.left?(i.right=t.left,i.right.parent=i):i.right=null,t.left=i,i.parent=t):(o?(i.left=o,o.parent=i):i.left=null,e.right=i,i.parent=e)),n?(t.right=n,n.parent=t):t.right=null,e.left=t,t.parent=e)}replace(e,t){e.parent?e===e.parent.left?e.parent.left=t:e.parent.right=t:this._root=t,t&&(t.parent=e.parent)}minNode(e=this._root){if(e)for(;e.left;)e=e.left;return e}maxNode(e=this._root){if(e)for(;e.right;)e=e.right;return e}insert(e,t){var i=this._root,r=null,n=this._compare;if(this._noDuplicates)for(;i;){if(r=i,0===n(i.key,e))return;i=n(i.key,e)<0?i.right:i.left}else for(;i;)r=i,i=n(i.key,e)<0?i.right:i.left;return i={key:e,data:t,left:null,right:null,parent:r},r?n(r.key,i.key)<0?r.right=i:r.left=i:this._root=i,this.splay(i),this._size++,i}find(e){for(var t=this._root,i=this._compare;t;){var r=i(t.key,e);if(r<0)t=t.right;else{if(!(r>0))return t;t=t.left}}return null}contains(e){for(var t=this._root,i=this._compare;t;){var r=i(e,t.key);if(0===r)return!0;t=r<0?t.left:t.right}return!1}remove(e){var t=this.find(e);if(!t)return!1;if(this.splay(t),t.left)if(t.right){var i=this.minNode(t.right);i.parent!==t&&(this.replace(i,i.right),i.right=t.right,i.right.parent=i),this.replace(t,i),i.left=t.left,i.left.parent=i}else this.replace(t,t.left);else this.replace(t,t.right);return this._size--,!0}removeNode(e){if(!e)return!1;if(this.splay(e),e.left)if(e.right){var t=this.minNode(e.right);t.parent!==e&&(this.replace(t,t.right),t.right=e.right,t.right.parent=t),this.replace(e,t),t.left=e.left,t.left.parent=t}else this.replace(e,e.left);else this.replace(e,e.right);return this._size--,!0}erase(e){var t=this.find(e);if(t){this.splay(t);var i=t.left,r=t.right,n=null;i&&(i.parent=null,n=this.maxNode(i),this.splay(n),this._root=n),r&&(i?n.right=r:this._root=r,r.parent=n),this._size--}}pop(){var e=this._root,t=null;if(e){for(;e.left;)e=e.left;t={key:e.key,data:e.data},this.remove(e.key)}return t}next(e){var t=e;if(t)if(t.right)for(t=t.right;t&&t.left;)t=t.left;else for(t=e.parent;t&&t.right===e;)e=t,t=t.parent;return t}prev(e){var t=e;if(t)if(t.left)for(t=t.left;t&&t.right;)t=t.right;else for(t=e.parent;t&&t.left===e;)e=t,t=t.parent;return t}forEach(e){for(var t=this._root,i=[],r=!1,n=0;!r;)t?(i.push(t),t=t.left):i.length>0?(e(t=i.pop(),n++),t=t.right):r=!0;return this}range(e,t,i,r){const n=[],o=this._compare;let s,a=this._root;for(;0!==n.length||a;)if(a)n.push(a),a=a.left;else{if(a=n.pop(),s=o(a.key,t),s>0)break;if(o(a.key,e)>=0&&i.call(r,a))return this;a=a.right}return this}keys(){for(var e=this._root,t=[],i=[],r=!1;!r;)e?(t.push(e),e=e.left):t.length>0?(e=t.pop(),i.push(e.key),e=e.right):r=!0;return i}values(){for(var e=this._root,t=[],i=[],r=!1;!r;)e?(t.push(e),e=e.left):t.length>0?(e=t.pop(),i.push(e.data),e=e.right):r=!0;return i}at(e){for(var t=this._root,i=[],r=!1,n=0;!r;)if(t)i.push(t),t=t.left;else if(i.length>0){if(t=i.pop(),n===e)return t;n++,t=t.right}else r=!0;return null}load(e=[],t=[],i=!1){if(0!==this._size)throw new Error("bulk-load: tree is not empty");const r=e.length;return i&&pg(e,t,0,r-1,this._compare),this._root=fg(null,e,t,0,r),this._size=r,this}min(){var e=this.minNode(this._root);return e?e.key:null}max(){var e=this.maxNode(this._root);return e?e.key:null}isEmpty(){return null===this._root}get size(){return this._size}static createTree(e,t,i,r,n){return new dg(i,n).load(e,t,r)}}function fg(e,t,i,r,n){const o=n-r;if(o>0){const s=r+Math.floor(o/2),a={key:t[s],data:i[s],parent:e};
vendor: 4,173 bytes, line 1
1return a.left=fg(a,t,i,r,s),a.right=fg(a,t,i,s+1,n),a}return null}function pg(e,t,i,r,n){if(i>=r)return;const o=e[i+r>>1];let s=i-1,a=r+1;for(;;){do{s++}while(n(e[s],o)<0);do{a--}while(n(e[a],o)>0);if(s>=a)break;let i=e[s];e[s]=e[a],e[a]=i,i=t[s],t[s]=t[a],t[a]=i}pg(e,t,i,a,n),pg(e,t,a+1,r,n)}const Ag=11102230246251565e-32,gg=134217729,mg=(3+8*Ag)*Ag;function _g(e,t,i,r,n){let o,s,a,l,c=t[0],h=r[0],u=0,d=0;h>c==h>-c?(o=c,c=t[++u]):(o=h,h=r[++d]);let f=0;if(u<e&&d<i)for(h>c==h>-c?(s=c+o,a=o-(s-c),c=t[++u]):(s=h+o,a=o-(s-h),h=r[++d]),o=s,0!==a&&(n[f++]=a);u<e&&d<i;)h>c==h>-c?(s=o+c,l=s-o,a=o-(s-l)+(c-l),c=t[++u]):(s=o+h,l=s-o,a=o-(s-l)+(h-l),h=r[++d]),o=s,0!==a&&(n[f++]=a);for(;u<e;)s=o+c,l=s-o,a=o-(s-l)+(c-l),c=t[++u],o=s,0!==a&&(n[f++]=a);for(;d<i;)s=o+h,l=s-o,a=o-(s-l)+(h-l),h=r[++d],o=s,0!==a&&(n[f++]=a);return 0===o&&0!==f||(n[f++]=o),f}function yg(e){return new Float64Array(e)}const xg=yg(4),vg=yg(8),wg=yg(12),Eg=yg(16),bg=yg(4);function Ig(e,t,i){null===t?(e.inOut=!1,e.otherInOut=!0):(e.isSubject===t.isSubject?(e.inOut=!t.inOut,e.otherInOut=t.otherInOut):(e.inOut=!t.otherInOut,e.otherInOut=t.isVertical()?!t.inOut:t.inOut),t&&(e.prevInResult=!Cg(t,i)||t.isVertical()?t.prevInResult:t)),e.resultTransition=Cg(e,i)?function(e,t){let i,r=!e.inOut,n=!e.otherInOut;switch(t){case 0:i=r&&n;break;case 1:i=r||n;break;case 3:i=r!==n;break;case 2:i=e.isSubject?r&&!n:n&&!r}return i?1:-1}(e,i):0}function Cg(e,t){switch(e.type){case 0:switch(t){case 0:return!e.otherInOut;case 1:return e.otherInOut;case 2:return e.isSubject&&e.otherInOut||!e.isSubject&&!e.otherInOut;case 3:return!0}break;case 2:return 0===t||1===t;case 3:return 2===t;case 1:return!1}return!1}class Bg{constructor(e,t,i,r,n){this.left=t,this.point=e,this.otherEvent=i,this.isSubject=null!==r&&void 0!==r&&r,this.type=n||0,this.inOut=!1,this.otherInOut=!1,this.prevInResult=null,this.resultTransition=0,this.otherPos=-1,this.outputContourId=-1,this.isExteriorRing=!0}isBelow(e){const t=this.point,i=this.otherEvent.point;return this.left?(t[0]-e[0])*(i[1]-e[1])-(i[0]-e[0])*(t[1]-e[1])>0:(i[0]-e[0])*(t[1]-e[1])-(t[0]-e[0])*(i[1]-e[1])>0}isAbove(e){return!this.isBelow(e)}isVertical(){return this.point[0]===this.otherEvent.point[0]}get inResult(){return 0!==this.resultTransition}clone(){const e=new Bg(this.point,this.left,this.otherEvent,this.isSubject,this.type);return e.contourId=this.contourId,e.resultTransition=this.resultTransition,e.prevInResult=this.prevInResult,e.isExteriorRing=this.isExteriorRing,e.inOut=this.inOut,e.otherInOut=this.otherInOut,e}}function Dg(e,t){return e[0]===t[0]&&e[1]===t[1]}function Tg(e,t,i){const r=function(e,t,i,r,n,o){const s=(t-o)*(i-n),a=(e-n)*(r-o),l=s-a;if(0===s||0===a||s>0!=a>0)return l;const c=Math.abs(s+a);return Math.abs(l)>=33306690738754716e-32*c?l:-function(e,t,i,r,n,o,s){let a,l,c,h,u,d,f,p,A,g,m,_,y,x,v,w,E,b;const I=e-n,C=i-n,B=t-o,D=r-o;x=I*D,d=gg*I,f=d-(d-I),p=I-f,d=gg*D,A=d-(d-D),g=D-A,v=p*g-(x-f*A-p*A-f*g),w=B*C,d=gg*B,f=d-(d-B),p=B-f,d=gg*C,A=d-(d-C),g=C-A,E=p*g-(w-f*A-p*A-f*g),m=v-E,u=v-m,xg[0]=v-(m+u)+(u-E),_=x+m,u=_-x,y=x-(_-u)+(m-u),m=y-w,u=y-m,xg[1]=y-(m+u)+(u-w),b=_+m,u=b-_,xg[2]=_-(b-u)+(m-u),xg[3]=b;let T=function(e,t){let i=t[0];for(let r=1;r<4;r++)i+=t[r];return i}(0,xg),M=22204460492503146e-32*s;if(T>=M||-T>=M)return T;if(u=e-I,a=e-(I+u)+(u-n),u=i-C,c=i-(C+u)+(u-n),u=t-B,l=t-(B+u)+(u-o),u=r-D,h=r-(D+u)+(u-o),0===a&&0===l&&0===c&&0===h)return T;if(M=11093356479670487e-47*s+mg*Math.abs(T),T+=I*h+D*a-(B*c+C*l),T>=M||-T>=M)return T;x=a*D,d=gg*a,f=d-(d-a),p=a-f,d=gg*D,A=d-(d-D),g=D-A,v=p*g-(x-f*A-p*A-f*g),w=l*C,d=gg*l,f=d-(d-l),p=l-f,d=gg*C,A=d-(d-C),g=C-A,E=p*g-(w-f*A-p*A-f*g),m=v-E,u=v-m,bg[0]=v-(m+u)+(u-E),_=x+m,u=_-x,y=x-(_-u)+(m-u),m=y-w,u=y-m,bg[1]=y-(m+u)+(u-w),b=_+m,u=b-_,bg[2]=_-(b-u)+(m-u),bg[3]=b;const Q=_g(4,xg,4,bg,vg);x=I*h,d=gg*I,f=d-(d-I),p=I-f,d=gg*h,A=d-(d-h),g=h-A,v=p*g-(x-f*A-p*A-f*g),w=B*c,d=gg*B,f=d-(d-B),p=B-f,d=gg*c,A=d-(d-c),g=c-A,E=p*g-(w-f*A-p*A-f*g),m=v-E,u=v-m,bg[0]=v-(m+u)+(u-E),_=x+m,u=_-x,y=x-(_-u)+(m-u),m=y-w,u=y-m,bg[1]=y-(m+u)+(u-w),b=_+m,u=b-_,bg[2]=_-(b-u)+(m-u),bg[3]=b;const S=_g(Q,vg,4,bg,wg);x=a*h,d=gg*a,f=d-(d-a),p=a-f,d=gg*h,A=d-(d-h),g=h-A,v=p*g-(x-f*A-p
vendor: 9,273 bytes, line 1
1*A-f*g),w=l*c,d=gg*l,f=d-(d-l),p=l-f,d=gg*c,A=d-(d-c),g=c-A,E=p*g-(w-f*A-p*A-f*g),m=v-E,u=v-m,bg[0]=v-(m+u)+(u-E),_=x+m,u=_-x,y=x-(_-u)+(m-u),m=y-w,u=y-m,bg[1]=y-(m+u)+(u-w),b=_+m,u=b-_,bg[2]=_-(b-u)+(m-u),bg[3]=b;const P=_g(S,wg,4,bg,Eg);return Eg[P-1]}(e,t,i,r,n,o,c)}(e[0],e[1],t[0],t[1],i[0],i[1]);return r>0?-1:r<0?1:0}function Mg(e,t){const i=e.point,r=t.point;return i[0]>r[0]?1:i[0]<r[0]?-1:i[1]!==r[1]?i[1]>r[1]?1:-1:function(e,t,i){return e.left!==t.left?e.left?1:-1:0!==Tg(i,e.otherEvent.point,t.otherEvent.point)?e.isBelow(t.otherEvent.point)?-1:1:!e.isSubject&&t.isSubject?1:-1}(e,t,i)}function Qg(e,t,i){const r=new Bg(t,!1,e,e.isSubject),n=new Bg(t,!0,e.otherEvent,e.isSubject);return Dg(e.point,e.otherEvent.point)&&console.warn("what is that, a collapsed segment?",e),r.contourId=n.contourId=e.contourId,Mg(n,e.otherEvent)>0&&(e.otherEvent.left=!0,n.left=!1),e.otherEvent.otherEvent=n,e.otherEvent=r,i.push(n),i.push(r),i}function Sg(e,t){return e[0]*t[1]-e[1]*t[0]}function Pg(e,t){return e[0]*t[0]+e[1]*t[1]}function Rg(e,t,i){const r=function(e,t,i,r){const n=[t[0]-e[0],t[1]-e[1]],o=[r[0]-i[0],r[1]-i[1]];function s(e,t,i){return[e[0]+t*i[0],e[1]+t*i[1]]}const a=[i[0]-e[0],i[1]-e[1]];let l=Sg(n,o),c=l*l;const h=Pg(n,n);if(c>0){const t=Sg(a,o)/l;if(t<0||t>1)return null;const r=Sg(a,n)/l;return r<0||r>1?null:0===t||1===t?[s(e,t,n)]:0===r||1===r?[s(i,r,o)]:[s(e,t,n)]}if(l=Sg(a,n),c=l*l,c>0)return null;const u=Pg(n,a)/h,d=u+Pg(n,o)/h,f=Math.min(u,d),p=Math.max(u,d);return f<=1&&p>=0?1===f?[s(e,f>0?f:0,n)]:0===p?[s(e,p<1?p:1,n)]:[s(e,f>0?f:0,n),s(e,p<1?p:1,n)]:null}(e.point,e.otherEvent.point,t.point,t.otherEvent.point),n=r?r.length:0;if(0===n||1===n&&(Dg(e.point,t.point)||Dg(e.otherEvent.point,t.otherEvent.point))||2===n&&e.isSubject===t.isSubject)return 0;if(1===n)return!Dg(e.point,r[0])&&!Dg(e.otherEvent.point,r[0])&&Qg(e,r[0],i),!Dg(t.point,r[0])&&!Dg(t.otherEvent.point,r[0])&&Qg(t,r[0],i),1;const o=[];let s=!1,a=!1;return Dg(e.point,t.point)?s=!0:1===Mg(e,t)?o.push(t,e):o.push(e,t),Dg(e.otherEvent.point,t.otherEvent.point)?a=!0:1===Mg(e.otherEvent,t.otherEvent)?o.push(t.otherEvent,e.otherEvent):o.push(e.otherEvent,t.otherEvent),s&&a||s?(t.type=1,e.type=t.inOut===e.inOut?2:3,s&&!a&&Qg(o[1].otherEvent,o[0].point,i),2):a?(Qg(o[0],o[1].point,i),3):o[0]!==o[3].otherEvent?(Qg(o[0],o[1].point,i),Qg(o[1],o[2].point,i),3):(Qg(o[0],o[1].point,i),Qg(o[3].otherEvent,o[2].point,i),3)}function zg(e,t){if(e===t)return 0;if(0!==Tg(e.point,e.otherEvent.point,t.point)||0!==Tg(e.point,e.otherEvent.point,t.otherEvent.point))return Dg(e.point,t.point)?e.isBelow(t.otherEvent.point)?-1:1:e.point[0]===t.point[0]?e.point[1]<t.point[1]?-1:1:1===Mg(e,t)?t.isAbove(e.point)?-1:1:e.isBelow(t.point)?-1:1;if(e.isSubject!==t.isSubject)return e.isSubject?-1:1;{var i,r;let n=e.point,o=t.point;if(n[0]===o[0]&&n[1]===o[1])return n=e.otherEvent.point,o=t.otherEvent.point,n[0]===o[0]&&n[1]===o[1]?0:(null!==(i=e.contourId)&&void 0!==i?i:0)>(null!==(r=t.contourId)&&void 0!==r?r:0)?1:-1}return 1===Mg(e,t)?1:-1}class Lg{constructor(){this.points=[],this.holeIds=[],this.holeOf=null,this.depth=null}isExterior(){return null==this.holeOf}}function Fg(e,t,i,r){let n,o=e+1,s=t[e].point;const a=t.length;for(o<a&&(n=t[o].point);o<a&&n[0]===s[0]&&n[1]===s[1];){if(!i[o])return o;o++,o<a&&(n=t[o].point)}for(o=e-1;i[o]&&o>r;)o--;return o}function Og(e,t,i){const r=new Lg;if(null!=e.prevInResult){const n=e.prevInResult,o=n.outputContourId;if(n.resultTransition>0){const e=t[o];if(null!=e.holeOf){const n=e.holeOf;t[n].holeIds.push(i),r.holeOf=n,r.depth=t[o].depth}else t[o].holeIds.push(i),r.holeOf=o,r.depth=t[o].depth+1}else r.holeOf=null,r.depth=t[o].depth}else r.holeOf=null,r.depth=0;return r}const kg=Math.max,Ng=Math.min;let Ug=0;function Vg(e,t,i,r,n,o){let s,a,l,c,h,u;for(s=0,a=e.length-1;s<a;s++){if(l=e[s],c=e[s+1],h=new Bg(l,!1,void 0,t),u=new Bg(c,!1,h,t),h.otherEvent=u,l[0]===c[0]&&l[1]===c[1])continue;h.contourId=u.contourId=i,o||(h.isExteriorRing=!1,u.isExteriorRing=!1),Mg(h,u)>0?u.left=!0:h.left=!0;const a=l[0],d=l[1];n[0]=Ng(n[0],a),n[1]=Ng(n[1],d),n[2]=kg(n[2],a),n[3]=kg(n[3],d),r.push(h),r.push(u)}}const Hg=[];function jg(e,t,i){let r=e,n=t;"number"==typeof e[0][0][0]&&(r=[e]),"number"==typeof t[0][0][0]&&(n=[t]);let o=function(e,t,i){let r=null;return e.length*t.length===0&&(0===i?r=Hg:2===i?r=e:(1===i||3===i)&&(r=0===e.length?t:e)),r}(r,n,i);if(o)return o===Hg?null:o;const s=[1/0,1/0,-1/0,-1/0],a=[1/0,1/0,-1/0,-1/0],l=function(e,t,i,r,n){const o=new Gr(void 0,Mg);let s,a,l,c,h,u;for(l=0,c=e.length;l<c;l++)for(s=e[l],h=0,u=s.length;h<u;h++)a=0===h,a&&Ug++,Vg(s[h],!0,Ug,o,i,a);for(l=0,c=t.length;l<c;l++)for(s=t[l],h=0,u=s.length;h<u;h++)a=0===h,2===n&&(a=!1),a&&Ug++,Vg(s[h],!1,Ug,o,r,a);return o}(r,n,s,a,i);if(o=function(e,t,i,r,n){let o=null;return(i[0]>r[2]||r[0]>i[2]||i[1]>r[3]||r[1]>i[3])&&(0===n?o=Hg:2===n?o=e:(1===n||3===n)&&(o=e.concat(t))),o}(r,n,s,a,i),o)return o===Hg?null:o;const c=function(e,t,i,r,n,o){const s=new dg(zg),a=[],l=Math.min(r[2],n[2]);let c,h,u;for(;0!==e.length;){let t=e.pop();if(a.push(t),0===o&&t.point[0]>l||2===o&&t.point[0]>r[2])break;if(t.left){h=c=s.insert(t),u=s.minNode(),c=c!==u?s.prev(c):null,h=s.next(h);const i=c?c.key:null;let r;if(Ig(t,i,o),h&&2===Rg(t,h.key,e)&&(Ig(t,i,o),Ig(h.key,t,o)),c&&2===Rg(c.key,t,e)){let e=c;e=e!==u?s.prev(e):null,r=e?e.key:null,Ig(i,r,o),Ig(t,i,o)}}else t=t.otherEvent,h=c=s.find(t),c&&h&&(c=c!==u?s.prev(c):null,h=s.next(h),s.remove(t),h&&c&&Rg(c.key,h.key,e))}return a}(l,0,0,s,a,i),h=function(e){let t,i;const r=function(e){let t,i,r,n,o;const s=[];for(i=0,r=e.length;i<r;i++)t=e[i],(t.left&&t.inResult||!t.left&&t.otherEvent.inResult)&&s.push(t);let a=!1;for(;!a;)for(a=!0,i=0,r=s.length;i<r;i++)i+1<r&&1===Mg(s[i],s[i+1])&&(n=s[i],s[i]=s[i+1],s[i+1]=n,a=!1);for(i=0,r=s.length;i<r;i++)t=s[i],t.otherPos=i;for(i=0,r=s.length;i<r;i++)t=s[i],t.left||(o=t.otherPos,t.otherPos=t.otherEvent.otherPos,t.otherEvent.otherPos=o);return s}(e),n={},o=[];for(t=0,i=r.length;t<i;t++){if(n[t])continue;const e=o.length,i=Og(r[t],o,e),s=t=>{n[t]=!0,t<r.length&&r[t]&&(r[t].outputContourId=e)};let a=t,l=t;for(i.points.push(r[t].point);s(a),a=r[a].otherPos,s(a),i.points.push(r[a].point),a=Fg(a,r,n,l),!(a==l||a>=r.length)&&r[a];);o.push(i)}return o}(c),u=[];for(let d=0;d<h.length;d++){let e=h[d];if(e.isExterior()){let t=[e.points];for(let i=0;i<e.holeIds.length;i++)t.push(h[e.holeIds[i]].points);u.push(t)}}return u}function Gg(e,t){const i=jg(Wg(e),Wg([t]),0);return null==i?[]:qg(i)}function Yg(e,t,i=0){const r=65536;let n=Wg(e,r);const o=[];for(;t.valid();t.next()){const[e,n]=t.get();let s=e.x*r,a=e.y*r,l=n.x*r,c=n.y*r;const h=l-s,u=c-a,d=Math.hypot(h,u);if(0===d)continue;s-=h*i,a-=u*i,l+=h*i,c+=u*i;const f=Math.trunc(u/d*3),p=-Math.trunc(h/d*3);o.push([[[s,a],[l,c],[l+f,c+p],[s+f,a+p],[s,a]]])}return o.length>0&&(n=jg(n,o,2)),qg(n,1/r,.001)}function Wg(e,t=1){return[e.map(e=>e.map(e=>[e.x*t,e.y*t]))]}function Jg(e,t){const i=Math.floor(e)+.5;return Math.abs(e-i)<=t?Math.round(i):Math.round(e)}class Zg{constructor(e){this.xs=[],this.ys=[],this.ixs=[],this.iys=[],this.buckets=new Map,this.tolerance=e}canonicalize(e,t){const i=this.tolerance,r=Math.floor(e/i),n=Math.floor(t/i);for(let a=-1;a<=1;a++){const o=this.buckets.get(r+a);if(o)for(let s=-1;s<=1;s++){const a=o.get(n+s);if(a)for(const o of a)if(Math.abs(this.xs[o]-e)<=i&&Math.abs(this.ys[o]-t)<=i){const i=this.ixs[o],s=this.iys[o];return this.xs[o]===e&&this.ys[o]===t||this.store(e,t,i,s,r,n),[i,s]}}}const o=Jg(e,i),s=Jg(t,i);return this.store(e,t,o,s,r,n),[o,s]}store(e,t,i,r,n,o){const s=this.xs.length;this.xs.push(e),this.ys.push(t),this.ixs.push(i),this.iys.push(r);let a=this.buckets.get(n);a||(a=new Map,this.buckets.set(n,a));let l=a.get(o);l||(l=[],a.set(o,l)),l.push(s)}}function qg(e,t=1,i){const r=null!=i?new Zg(i):null;return e.map(e=>e.map((e,i)=>{const n=e.map(e=>{const i=e[0]*t,n=e[1]*t;if(r){const[e,t]=r.canonicalize(i,n);return new we(e,t)}return new we(Math.round(i),Math.round(n))});return i>0&&n.reverse(),n}))}class Kg{constructor(){this.frcCoverage=new Set,this.featureTriSegments=[],this.frcPerLevel=new Map,this.frcNonRoadSegments=new Kc}empty(){return 0===this.frcCoverage.size}}function Xg(e,t,i){if(0===e.frcCoverage.size||0===e.featureTriSegments.length)return;const r=i.get(),n=t.uint16,o=[];e.featureTriSegments.sort((e,t)=>e.segIdx!==t.segIdx?e.segIdx-t.segIdx:null===e.frc&&null===t.frc?0:null===e.frc?-1:null===t.frc?1:t.frc-e.frc);const s=new Map;let a=0,l=e.featureTriSegments[0].frc,c={vertexOffset:r[a].vertexOffset,primitiveOffset:0,vertexLength:r[a].vertexLength,primitiveLength:0,vaos:{},sortKey:void 0};const h=()=>{c.primitiveLength>0&&(s.has(l)||s.set(l,[]),s.get(l).push(Object.assign({},c)))};for(const u of e.featureTriSegments){u.segIdx!==a&&(h(),a=u.segIdx,l=u.frc,c={vertexOffset:r[a].vertexOffset,primitiveOffset:o.length/3,vertexLength:r[a].vertexLength,primitiveLength:0,vaos:{},sortKey:void 0}),u.frc!==l&&(h(),l=u.frc,c=Object.assign({},c,{primitiveOffset:o.length/3,primitiveLength:0}));for(let e=u.start;e<u.end;e++)o.push(n[e]);c.primitiveLength+=(u.end-u.start)/3}h();for(let u=0;u<o.length;u++)n[u]=o[u];for(const[u,d]of s)null!==u?e.frcPerLevel.set(u,new Kc(d)):e.frcNonRoadSegments=new Kc(d);e.featureTriSegments=[]}
1ts(Kg,"FrcSegmentData");const $g={motorway:0,motorway_link:0,trunk:1,trunk_link:1,primary:2,primary_link:2,secondary:3,secondary_link:3,tertiary:4,tertiary_link:4,unclassified:5,unclassified_link:5,street:6,street_limited:6,residential:6,service:7,living_street:7,pedestrian:8,track:8,path:8,footway:8,cycleway:8,sidewalk:8,crossing:8};function em(e){const t=e.class;if("string"!=typeof t)return null;const i=$g[t];return void 0!==i?i:null}function tm(e,t,i){for(const r of e)if(r.startsWith("(")){const e=r.indexOf(")");if(-1===e)continue;if(r.slice(1,e)===t&&r.slice(e+1)===i)return!0}else if(r===i)return!0;return!1}class im{constructor(e,t,i){this.elevationMode=t,t&&(this.elevationBufferData=new KA(e.layers,e.zoom,e.lut)),i&&(this.frcData=new Kg)}isEmpty(){const e=!this.elevationBufferData||this.elevationBufferData.isEmpty(),t=!this.frcData||this.frcData.empty();return e&&t}needsUpload(){return!!this.elevationBufferData&&this.elevationBufferData.needsUpload()}trackFeatureFrc(e){if(!this.frcData)return null;const t=em(e||{});return null!==t&&this.frcData.frcCoverage.add(t),t}recordFeatureRange(e,t,i,r){if(!this.frcData||i<=t)return;const n=e.bufferData.triangleSegments.get();this.frcData.featureTriSegments.push({start:3*t,end:3*i,segIdx:n.length>0?n.length-1:0,frc:r})}buildFrcSegments(e){this.frcData&&!this.frcData.empty()&&Xg(this.frcData,e.bufferData.indexArray,e.bufferData.triangleSegments)}
vendor: 10,022 bytes, line 1
1handleFeature(e,t,i,r,n,o){const s=new Array;if(!this.elevationMode)return!1;const a=hg(e,n);if(!a)return!1;{const e=this.clipPolygonsToTile(t,1);e.length>0&&s.push({polygons:e,elevationFeature:a,elevationTileID:r})}const l={guardRailEnabled:o.layers[0].layout.get("fill-construct-bridge-guard-rail").evaluate(e,{},r),featureIndex:i};for(const c of s)if(c.elevationFeature){if("hd-road-base"===this.elevationMode){this.elevatedStructures||(this.elevatedStructures=new eg(c.elevationTileID,o.layers,o.zoom,o.lut));const t=c.elevationFeature.isTunnel();let i=0;Object.hasOwn(e.properties,Eu)&&(i=+e.properties[Eu]),this.elevatedStructures.addPortalCandidates(c.elevationFeature.id,c.polygons,t,c.elevationFeature,i)}null==c.elevationFeature.constantHeight&&(c.polygons=this.prepareElevatedPolygons(c.polygons,c.elevationFeature,c.elevationTileID));const t=new lg(r,c.elevationTileID);this.addElevatedGeometry(o,c.polygons,t,c.elevationFeature,"hd-road-base"===this.elevationMode?0:.05,i,l)}return!0}populatePaintArrays(e,t,i,r,n,o,s){this.elevationBufferData&&this.elevationBufferData.populatePaintArrays(e,t,i,r,n,o,s)}update(e,t,i,r,n,o,s,a){this.elevationBufferData&&this.elevationBufferData.update(e,t,i,r,n,o,s,a),this.elevatedStructures&&this.elevatedStructures.update(e,t,i,r,n,o,s,a)}updateExpressions(e){this.elevationBufferData&&this.elevationBufferData.programConfigurations.updateExpressions(e),this.elevatedStructures&&(this.elevatedStructures.bridgeProgramConfigurations.updateExpressions(e),this.elevatedStructures.tunnelProgramConfigurations.updateExpressions(e))}upload(e){this.elevationBufferData&&this.elevationBufferData.upload(e),this.elevatedStructures&&this.elevatedStructures.upload(e)}destroy(){this.elevationBufferData&&this.elevationBufferData.destroy(),this.elevatedStructures&&this.elevatedStructures.destroy()}getUnevaluatedPortalGraph(){return this.elevatedStructures?this.elevatedStructures.unevaluatedPortals:void 0}setEvaluatedPortalGraph(e,t,i,r,n,o){this.elevatedStructures&&(this.elevatedStructures.construct(e),this.elevatedStructures.populatePaintArrays(t,i,r,n,o))}addElevatedGeometry(e,t,i,r,n,o,s){const a={elevation:r,elevationSampler:i,bias:n,index:o,featureInfo:s},[l,c]=e.addGeometry(t,this.elevationBufferData,a,this.elevatedStructures);null==this.elevationBufferData.heightRange?this.elevationBufferData.heightRange={min:l,max:c}:(this.elevationBufferData.heightRange.min=Math.min(this.elevationBufferData.heightRange.min,l),this.elevationBufferData.heightRange.max=Math.max(this.elevationBufferData.heightRange.max,c))}prepareElevatedPolygons(e,t,i){const r=1/Rl(i),n=[];for(const o of e){const e=Yg(o,new sg(t,r),.1);n.push(...e)}return n}clipPolygonsToTile(e,t){const i=-t,r=-t,n=Yr+t,o=Yr+t;let s=0;const a=[],l=[];for(;s<e.length;s++){const t=e[s],c=Fe(t);(c.min.x>=i&&c.max.x<=n&&c.min.y>=r&&c.max.y<=o?a:l).push(t)}if(a.length===e.length)return e;const c=[new we(i,r),new we(n,r),new we(n,o),new we(i,o),new we(i,r)],h=a;for(const u of l)h.push(...Gg(u,c));return h}}function rm(e,t){return e.nextPoint.sub(t.at(-2)).unit()}function nm(e,t){return t[1].sub(e.prevPoint).unit()}ts(im,"FillHDExtension"),ts(eg,"ElevatedStructures");class om{constructor(e,t){this.elevationEnabled=e,t&&(this.frcData=new Kg)}isEmpty(){const e=!this.elevationEnabled||void 0===this.heightRange,t=!this.frcData||this.frcData.empty();return e&&t}trackFeatureFrc(e){if(!this.frcData)return null;const t=em(e||{});return null!==t&&this.frcData.frcCoverage.add(t),t}recordFeatureRange(e,t,i,r){if(!this.frcData||i<=t)return;const n=e.segments.get();this.frcData.featureTriSegments.push({start:3*t,end:3*i,segIdx:n.length>0?n.length-1:0,frc:r})}buildFrcSegments(e){this.frcData&&!this.frcData.empty()&&Xg(this.frcData,e.indexArray,e.segments)}handleFeature(e,t,i,r,n,o,s,a,l){if(!this.elevationEnabled)return!1;const c=hg(e,r);if(c){const r=du(t,-1,-1,8193,8193),h=this.prepareElevatedLines(r,c,i);for(const t of h){const r=l.layoutVertexArray.length;l.addLine(t,e,i,n,o,s,a);const h=new lg(i,i),u=l.showElevationIdDebug?cg(c.id):null;for(let e=r;e<l.layoutVertexArray.length;e++){const t=new we(l.layoutVertexArray.int16[6*e]>>1,l.layoutVertexArray.int16[6*e+1]>>1),i=h.pointElevation(t,c,.05);this.updateHeightRange(i),l.zOffsetVertexArray.emplaceBack(i,0,0,0),u?l.elevationIdColVertexArray.emplaceBack(u[0],u[1],u[2]):l.showElevationIdDebug&&l.elevationIdColVertexArray.emplaceBack(0,0,0)}}return!0}const h=!(!e.properties||!Object.hasOwn(e.properties,"mapbox_line_metrics"))&&e.properties.mapbox_line_metrics,u=l.layoutVertexArray.length,d=[],f=du(t,-1,-1,8193,8193,d);for(let p=0;p<f.length;p++){const t=f[p],r=d[p],c={progress:{min:r.progress.min,max:r.progress.max},nextDir:rm(r,t),prevDir:nm(r,t)};l.addLine(t,e,i,n,o,s,a,c,h&&r.parentIndex>0?r.parentIndex:null)}return l.fillNonElevatedRoadSegment(u),!0}prepareElevatedLines(e,t,i){if(null!=t.constantHeight)return e;const r=[],n=1/Rl(i);for(const o of e)fu(o,new sg(t,n),0,r);return r}updateHeightRange(e){this.heightRange?(this.heightRange.min=Math.min(this.heightRange.min,e),this.heightRange.max=Math.max(this.heightRange.max,e)):this.heightRange={min:e,max:e}}}ts(om,"LineHDExtension");class sm{constructor(){this.elevatedLayoutVertexArray=new ec,this.hasElevation=!1}beginFeature(e,t){this.currentFeatureElevation=hg(e,t)}writeVertexQuad(e,t){const i=this.currentFeatureElevation?this.currentFeatureElevation.pointElevation(new we(e,t)):0;this.hasElevation=this.hasElevation||0!==i;for(let r=0;r<4;r++)this.elevatedLayoutVertexArray.emplaceBack(i)}finalize(){this.hasElevation||(this.elevatedLayoutVertexArray=void 0)}upload(e){this.elevatedLayoutVertexArray&&!this.elevatedLayoutVertexBuffer&&(this.elevatedLayoutVertexBuffer=e.createVertexBuffer(this.elevatedLayoutVertexArray,Mu.members))}destroy(){this.elevatedLayoutVertexBuffer&&this.elevatedLayoutVertexBuffer.destroy()}}ts(sm,"CircleHDExtension");const am=(e,t,i,r)=>{for(let n=0;n<t;n++)e.emplaceBack(i[0],i[1],i[2],r[0],r[1],r[2])};class lm{constructor(){this.elevationFeatures=[],this.elevationFeatureIdToIndex=new Map,this.elevationStateComplete=!1}addElevationFeatures(e){for(const t of e)this.elevationFeatureIdToIndex.set(t.id,this.elevationFeatures.length),this.elevationFeatures.push(t)}updateRoadElevation(e,t){if(this.elevationStateComplete)return;this.elevationStateComplete=!0,e.hasAnyZOffset=!1;let i=!1;const r=Rl(t),n=1/r;let o=!1,s=!1;for(let a=0;a<e.symbolInstances.length;a++){const t=e.symbolInstances.get(a),l=B(1,0,0),c=B(0,1,0),{numHorizontalGlyphVertices:h,numVerticalGlyphVertices:u,numIconVertices:d,numVerticalIconVertices:f}=t,p=h>0||u>0,A=d>0,g=this.elevationFeatures[t.elevationFeatureIndex];if(g){const a=new we(t.tileAnchorX,t.tileAnchorY),h=.075+g.pointElevation(a);t.zOffset!==h&&(i=!0,t.zOffset=h),0!==h&&(e.hasAnyZOffset=!0);const u=g.computeSlopeNormal(a,n),d=he(ie(),B(0,0,1),u);Y(l,l,d),Y(c,c,d),l[2]*=r,c[2]*=r,1===l[0]&&0===l[1]&&0===l[2]&&0===c[0]&&1===c[1]&&0===c[2]||(o=o||p,s=s||A)}if(p&&(am(e.text.orientationVertexArray,h,l,c),am(e.text.orientationVertexArray,u,l,c)),A){const{placedIconSymbolIndex:i,verticalPlacedIconSymbolIndex:r}=t;i>=0&&am(e.icon.orientationVertexArray,d,l,c),r>=0&&am(e.icon.orientationVertexArray,f,l,c)}}o||(e.text.orientationVertexArray=void 0),s||(e.icon.orientationVertexArray=void 0),i&&(e.zOffsetBuffersNeedUpload=!0,e.zOffsetSortDirty=!0)}getElevationFeatureForPlacedSymbol(e,t,i){const r=e.symbolInstances.get(t.symbolInstanceIndices[i]).elevationFeatureIndex;if(r<this.elevationFeatures.length)return this.elevationFeatures[r]}}ts(lm,"SymbolHDExtension");let cm=null,hm=null,um=null,dm=null;const fm=5120,pm=5121,Am=5122,gm=5123,mm=5125,_m=5126,ym={[fm]:Int8Array,[pm]:Uint8Array,[Am]:Int16Array,[gm]:Uint16Array,[mm]:Uint32Array,[_m]:Float32Array},xm={[fm]:"DT_INT8",[pm]:"DT_UINT8",[Am]:"DT_INT16",[gm]:"DT_UINT16",[mm]:"DT_UINT32",[_m]:"DT_FLOAT32"},vm={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16};function wm(e,t,i){const r=i.json.bufferViews.length,n=i.buffers.length;t.bufferView=r,i.json.bufferViews[r]={buffer:n,byteLength:e.byteLength},i.buffers[n]=e}const Em="KHR_draco_mesh_compression";function bm(e,t){const i=e.extensions&&e.extensions[Em];if(!i)return;const r=new cm.Decoder,n=Qm(t,i.bufferView),o=new cm.Mesh;if(!r.DecodeArrayToMesh(n,n.byteLength,o))throw new Error("Failed to decode Draco mesh");const s=t.json.accessors[e.indices],a=ym[s.componentType],l=s.count*a.BYTES_PER_ELEMENT,c=cm._malloc(l);a===Uint16Array?r.GetTrianglesUInt16Array(o,l,c):r.GetTrianglesUInt32Array(o,l,c),wm(cm.memory.buffer.slice(c,c+l),s,t),cm._free(c);for(const h of Object.keys(i.attributes)){const n=r.GetAttributeByUniqueId(o,i.attributes[h]),s=t.json.accessors[e.attributes[h]],a=xm[s.componentType],l=s.count*vm[s.type]*ym[s.componentType].BYTES_PER_ELEMENT,c=cm._malloc(l);r.GetAttributeDataArrayForAllPoints(o,n,cm[a],l,c),wm(cm.memory.buffer.slice(c,c+l),s,t),cm._free(c)}r.destroy(),o.destroy(),delete e.extensions[Em]}const Im="EXT_meshopt_compression";function Cm(e,t){if(!e.extensions||!e.extensions[Im])return;const i=e.extensions[Im],r=new Uint8Array(t.buffers[i.buffer],i.byteOffset||0,i.byteLength||0),n=new Uint8Array(i.count*i.byteStride);um.decodeGltfBuffer(n,i.count,i.byteStride,r,i.mode,i.filter),e.buffer=t.buffers.length,e.byteOffset=0,t.buffers[e.buffer]=n.buffer,delete e.extensions[Im]}const Bm=1179937895,Dm=new TextDecoder("utf8");function Tm(e,t){return new URL(e,t).href}async function Mm(e,t,i,r,n){const o=await fetch(Tm(e.uri,r),{signal:n}),s=await o.arrayBuffer();t.buffers[i]=s}function Qm(e,t){const i=e.json.bufferViews[t];return new Uint8Array(e.buffers[i.buffer],i.byteOffset||0,i.byteLength)}async function Sm(e,t,i,r,n){if(e.uri){const o=Tm(e.uri,r),s=await fetch(o,{signal:n}),a=await s.blob(),l=await createImageBitmap(a);t.images[i]=l}else if(void 0!==e.bufferView){const r=Qm(t,e.bufferView),n=new Blob([r],{type:e.mimeType}),o=await createImageBitmap(n);t.images[i]=o}}async function Pm(e,t=0,i,r){const n={json:null,images:[],buffers:[]};
1if(new Uint32Array(e,t,1)[0]===Bm){const i=new Uint32Array(e,t);let r=2;const o=(i[r++]>>2)-3,s=i[r++]>>2;if(r++,n.json=JSON.parse(Dm.decode(i.subarray(r,r+s))),r+=s,r<o){const o=i[r++];r++;const s=t+(r<<2);n.buffers[0]=e.slice(s,s+o)}}else n.json=JSON.parse(Dm.decode(new Uint8Array(e,t)));const{buffers:o,images:s,meshes:a,extensionsUsed:l,bufferViews:c}=n.json;if(o){const e=[];for(let t=0;t<o.length;t++){const s=o[t];s.uri?e.push(Mm(s,n,t,i,r)):n.buffers[t]||(n.buffers[t]=null)}await Promise.all(e)}if(r&&r.aborted)throw new DOMException("Aborted","AbortError");const h=[],u=l&&l.includes(Em),d=l&&l.includes(Im);if(u&&h.push(function(){if(!cm)return null!=hm||(hm=function(e){let t,i=null;function r(){t=new Uint8Array(i.buffer)}function n(){throw new Error("Unexpected Draco error.")}return WebAssembly.instantiateStreaming(e,{a:{a:n,d:function(e,i,r){return t.copyWithin(e,i,i+r)},c:function(e){const n=t.length,o=Math.max(e>>>0,Math.ceil(1.2*n)),s=Math.ceil((o-n)/65536);try{return i.grow(s),r(),!0}catch(e){return!1}},b:n}}).then(e=>{const{Rb:n,Qb:o,P:s,T:a,X:l,Ja:c,La:h,Qa:u,Va:d,Wa:f,eb:p,jb:A,f:g,e:m,yb:_,zb:y,Ab:x,Bb:v,Db:w,Gb:E}=e.instance.exports;i=m;const b=(()=>{let e=0,i=0,r=0,s=0;return a=>{r&&(n(s),n(e),i+=r,r=e=0),e||(i+=128,e=o(i));const l=a.length+7&-8;let c=e;l>=i&&(r=l,c=s=o(l));for(let e=0;e<a.length;e++)t[c+e]=a[e];return c}})();return r(),g(),{memory:m,_free:n,_malloc:o,Mesh:class{constructor(){this.ptr=s()}destroy(){a(this.ptr)}},Decoder:class{constructor(){this.ptr=c()}destroy(){A(this.ptr)}DecodeArrayToMesh(e,t,i){const r=b(e),n=h(this.ptr,r,t,i.ptr);return!!l(n)}GetAttributeByUniqueId(e,t){return{ptr:u(this.ptr,e.ptr,t)}}GetTrianglesUInt16Array(e,t,i){d(this.ptr,e.ptr,t,i)}GetTrianglesUInt32Array(e,t,i){f(this.ptr,e.ptr,t,i)}GetAttributeDataArrayForAllPoints(e,t,i,r,n){p(this.ptr,e.ptr,t.ptr,i,r,n)}},DT_INT8:_(),DT_UINT8:y(),DT_INT16:x(),DT_UINT16:v(),DT_UINT32:w(),DT_FLOAT32:E()}})}(fetch(Mt())).then(e=>{cm=e,hm=null})),hm}()),d&&h.push(function(){var e;if(!um)return null!=dm||(dm=(e=fetch(Qt()),WebAssembly.instantiateStreaming(e,{}).then(e=>{const{sbrk:t,memory:i,meshopt_decodeVertexBuffer:r,meshopt_decodeIndexBuffer:n,meshopt_decodeIndexSequence:o,meshopt_decodeFilterOct:s,meshopt_decodeFilterQuat:a,meshopt_decodeFilterExp:l}=e.instance.exports,c={ATTRIBUTES:r,TRIANGLES:n,INDICES:o},h={OCTAHEDRAL:s,QUATERNION:a,EXPONENTIAL:l};return e.instance.exports.__wasm_call_ctors(),{decodeGltfBuffer(e,r,n,o,s,a){const l=r+3&-4,u=t(l*n),d=t(o.length),f=new Uint8Array(i.buffer);f.set(o,d);const p=c[s](u,r,n,d,o.length);if(0===p&&h[a]&&h[a](u,l,n),e.set(f.subarray(u,u+r*n)),t(u-t(0)),0!==p)throw new Error(`Malformed buffer data: ${p}`)}}})).then(e=>{um=e,dm=null})),dm}()),s)for(let f=0;f<s.length;f++)h.push(Sm(s[f],n,f,i,r));if(h.length&&await Promise.all(h),r&&r.aborted)throw new DOMException("Aborted","AbortError");if(u&&a)for(const{primitives:f}of a)for(const e of f)bm(e,n);if(d&&a&&c)for(const f of c)Cm(f,n);return n}async function Rm(e,t){const i=await async function(e,t){if(t&&t.aborted)throw new DOMException("Aborted","AbortError");return new Promise((i,r)=>{const n=ni(e,(e,t)=>{e?r(e):i(t)});t&&t.addEventListener("abort",()=>{n.cancel(),r(new DOMException("Aborted","AbortError"))},{once:!0})})}({url:e,type:"arrayBuffer"},t);return Pm(i,0,e,t)}class zm{constructor(e,t,i,r){if(this.triangleCount=t.length/3,this.min=new we(0,0),this.max=new we(0,0),this.xScale=0,this.yScale=0,this.cellsX=0,this.cellsY=0,this.cells=[],this.payload=[],0===this.triangleCount||0===e.length)return;const[n,o]=[e[0].clone(),e[0].clone()];for(let h=1;h<e.length;++h){const t=e[h];n.x=Math.min(n.x,t.x),n.y=Math.min(n.y,t.y),o.x=Math.max(o.x,t.x),o.y=Math.max(o.y,t.y)}if(r){const e=Math.ceil(Math.max(o.x-n.x,o.y-n.y)/r);i=Math.max(i,e)}if(0===i)return;this.min=n,this.max=o;const s=this.max.sub(this.min);s.x=Math.max(s.x,1),s.y=Math.max(s.y,1);const a=Math.max(s.x,s.y)/i;this.cellsX=Math.max(1,Math.ceil(s.x/a)),this.cellsY=Math.max(1,Math.ceil(s.y/a)),this.xScale=1/a,this.yScale=1/a;const l=[];for(let h=0;h<this.triangleCount;h++){const i=e[t[3*h+0]].sub(this.min),r=e[t[3*h+1]].sub(this.min),n=e[t[3*h+2]].sub(this.min),o=Lm(Math.floor(Math.min(i.x,r.x,n.x)),this.xScale,this.cellsX),s=Lm(Math.floor(Math.max(i.x,r.x,n.x)),this.xScale,this.cellsX),c=Lm(
vendor: 20,639 bytes, line 1
1Math.floor(Math.min(i.y,r.y,n.y)),this.yScale,this.cellsY),u=Lm(Math.floor(Math.max(i.y,r.y,n.y)),this.yScale,this.cellsY),d=new we(0,0),f=new we(0,0),p=new we(0,0),A=new we(0,0);for(let e=c;e<=u;++e){d.y=f.y=e*a,p.y=A.y=(e+1)*a;for(let t=o;t<=s;++t)d.x=p.x=t*a,f.x=A.x=(t+1)*a,(au(i,r,n,d,f,A)||au(i,r,n,d,A,p))&&l.push({cellIdx:e*this.cellsX+t,triIdx:h})}}if(0===l.length)return;l.sort((e,t)=>e.cellIdx-t.cellIdx||e.triIdx-t.triIdx);let c=0;for(;c<l.length;){const e=l[c].cellIdx,t={start:this.payload.length,len:0};for(;c<l.length&&l[c].cellIdx===e;)++t.len,this.payload.push(l[c++].triIdx);this.cells[e]=t}}_lazyInitLookup(){this.lookup||(this.lookup=new Uint8Array(Math.ceil(this.triangleCount/8))),this.lookup.fill(0)}queryPoint(e,t){if(0===this.triangleCount||0===this.cells.length)return;if(e.x>this.max.x||this.min.x>e.x||e.y>this.max.y||this.min.y>e.y)return;const i=Lm(e.x-this.min.x,this.xScale,this.cellsX),r=Lm(e.y-this.min.y,this.yScale,this.cellsY),n=this.cells[r*this.cellsX+i];if(n){this._lazyInitLookup();for(let e=0;e<n.len;e++){const i=this.payload[n.start+e],r=Math.floor(i/8),o=1<<i%8;if(!(this.lookup[r]&o)&&(this.lookup[r]|=o,t.push(i),t.length===this.triangleCount))return}}}query(e,t,i){if(0===this.triangleCount||0===this.cells.length)return;if(e.x>this.max.x||this.min.x>t.x)return;if(e.y>this.max.y||this.min.y>t.y)return;this._lazyInitLookup();const r=Lm(e.x-this.min.x,this.xScale,this.cellsX),n=Lm(t.x-this.min.x,this.xScale,this.cellsX),o=Lm(e.y-this.min.y,this.yScale,this.cellsY),s=Lm(t.y-this.min.y,this.yScale,this.cellsY);for(let a=o;a<=s;a++)for(let e=r;e<=n;e++){const t=this.cells[a*this.cellsX+e];if(t)for(let e=0;e<t.len;e++){const r=this.payload[t.start+e],n=Math.floor(r/8),o=1<<r%8;if(!(this.lookup[n]&o)&&(this.lookup[n]|=o,i.push(r),i.length===this.triangleCount))return}}}}function Lm(e,t,i){return Math.max(0,Math.min(i-1,Math.floor(e*t)))}ts(zm,"TriangleGridIndex");const Fm=Zl([{name:"a_pos_3f",components:3,type:"Float32"}]),Om=Zl([{name:"a_color_3f",components:3,type:"Float32"}]),km=Zl([{name:"a_color_4f",components:4,type:"Float32"}]),Nm=Zl([{name:"a_uv_2f",components:2,type:"Float32"}]),Um=Zl([{name:"a_normal_3f",components:3,type:"Float32"}]),Vm=Zl([{name:"a_normal_matrix0",components:4,type:"Float32"},{name:"a_normal_matrix1",components:4,type:"Float32"},{name:"a_normal_matrix2",components:4,type:"Float32"},{name:"a_normal_matrix3",components:4,type:"Float32"}]),Hm=Zl([{name:"a_pbr",components:4,type:"Uint16"},{name:"a_heightBasedEmissiveStrength",components:3,type:"Float32"}]);function jm(e,t){const i=Ym(e.projection,e.zoom,e.width,e.height),r=function(e,t,i,r,n){const o=new Il(i.lng-180*Wm,i.lat),s=new Il(i.lng+180*Wm,i.lat),a=e.project(o.lng,o.lat),l=e.project(s.lng,s.lat),c=-Math.atan2(l.y-a.y,l.x-a.x),u=zl.fromLngLat(i);u.y=Je(u.y,-1+Wm,1-Wm);const f=u.toLngLat(),A=e.project(f.lng,f.lat),g=zl.fromLngLat(f);g.x+=Wm;const _=g.toLngLat(),y=e.project(_.lng,_.lat),x=Zm(y.x-A.x,y.y-A.y,c),v=zl.fromLngLat(f);v.y+=Wm;const w=v.toLngLat(),E=e.project(w.lng,w.lat),b=Zm(E.x-A.x,E.y-A.y,c),I=Math.abs(x.x)/Math.abs(b.y),C=h([]);m(C,C,-c*(1-(n?0:r)));const B=h([]);return p(B,B,[1,1-(1-I)*r,1]),B[4]=-b.x/b.y*r,m(B,B,c),d(B,C,B),B}(e.projection,0,e.center,i,t),n=Gm(e);return p(r,r,[n,n,1]),r}function Gm(e){const t=e.projection,i=Ym(e.projection,e.zoom,e.width,e.height),r=Jm(t,e.center),n=Jm(t,Il.convert(t.center));return Math.pow(2,r*i+(1-i)*n)}function Ym(e,t,i,r,n=1/0){const o=e.range;if(!o)return 0;const s=Math.min(n,Math.max(i,r)),a=Math.log2(s/1024);return Ze(o[0]+a,o[1]+a,t)}const Wm=1/4e4;function Jm(e,t){const i=Je(t.lat,-85.051129,Ml),r=new Il(t.lng-180*Wm,i),n=new Il(t.lng+180*Wm,i),o=e.project(r.lng,i),s=e.project(n.lng,i),a=zl.fromLngLat(r),l=zl.fromLngLat(n),c=s.x-o.x,h=s.y-o.y,u=l.x-a.x,d=l.y-a.y,f=Math.sqrt((u*u+d*d)/(c*c+h*h));return Math.log2(f)}function Zm(e,t,i){const r=Math.cos(i),n=Math.sin(i);return{x:e*r-t*n,y:e*n+t*r}}const qm=new Float64Array([1,0,0,0,0,0,1,0,0,1,0,0,0,0,0,1]);function Km(e,t,i){h(e),m(e,e,He(t[2])),A(e,e,He(t[0])),g(e,e,He(t[1])),p(e,e,i),d(e,e,qm)}function Xm(e,t,i,r,n,o,s,a){const l=[i[0]-t[0],i[1]-t[1],0],c=[r[0]-t[0],r[1]-t[1],0];if(C(l)<1e-12||C(c)<1e-12)return re(e);const h=V([],l,c);N(h,h),M(c,r,t),l[2]=(o-n)*a,c[2]=(s-n)*a;const u=l;return V(u,l,c),N(u,u),he(e,h,u)}function $m(e,t,i=!1){const r=Gp(t.zoom),n=function(e,t,i){const r=t.worldSize,n=[e[12],e[13],e[14]],o=br(n[1]/r),s=Er(n[0]/r),a=h([]),l=Dl(1,o)*r,c=Dl(1,0)*r*Sl(o,t.zoom),u=1/Vp(r);let A=c*u;if(i){const e=Ym(t.projection,t.zoom,t.width,t.height,1024);A=u*t.projection.pixelSpaceConversion(t.center.lat,r,e)}const g=wl(o,s);T(g,g,R([],N([],g),l*A*n[2]));const m=function(e){const t=[e[0],e[1],e[2]];let i=[0,1,0];const r=V([],i,t);return V(i,t,r),0===O(i)&&(i=[0,1,0],V(r,t,i)),N(r,r),N(i,i),N(t,t),[r[0],r[1],r[2],0,i[0],i[1],i[2],0,t[0],t[1],t[2],0,e[0],e[1],e[2],1]}(g);p(a,a,[A,A,A*l]),f(a,a,[-n[0],-n[1],-n[2]]);const _=d([],t.globeMatrix,m);return d(_,_,a),d(_,_,e),_}(e,t,i);if(r>0){const i=function(e,t){const i=t.worldSize,r=Dl(1,0)*i*Sl(t.center.lat,t.zoom)/Vp(i),n=Dl(1,t.center.lat)*i,o=h([]);g(o,o,He(t.center.lng)),A(o,o,He(t.center.lat)),f(o,o,[0,0,gl]),p(o,o,[r,r,r*n]);const s=t.point;return f(o,o,[-s.x,-s.y,0]),d(o,o,e),d(o,t.globeMatrix,o)}(e,t);return function(e,t,i){const r=(e,t,i)=>{const r=C(e),n=C(t),o=Qp(e,t,i);return R(o,o,1/C(o)*vi(r,n,i))},n=r([e[0],e[1],e[2]],[t[0],t[1],t[2]],i),o=r([e[4],e[5],e[6]],[t[4],t[5],t[6]],i),s=r([e[8],e[9],e[10]],[t[8],t[9],t[10]],i),a=Qp([e[12],e[13],e[14]],[t[12],t[13],t[14]],i);return[n[0],n[1],n[2],0,o[0],o[1],o[2],0,s[0],s[1],s[2],0,a[0],a[1],a[2],1]}(n,i,r)}return n}function e_(e,t,i,r){const n=bp.projectAabbCorners(r,i);let o=Number.MAX_VALUE;for(let a=0;a<n.length;++a){const e=n[a];e[0]=(.5*e[0]+.5)*t.width,e[1]=(.5-.5*e[1])*t.height,e[2]<o&&(o=e[2])}const s=function(e){const t=[];let i=0;for(let s=1;s<e.length;s++)(e[s][0]<e[i][0]||e[s][0]===e[i][0]&&e[s][1]<e[i][1])&&(i=s);let r,n=i;const o=new Uint8Array(e.length);do{if(o[n])break;t.push(new we(e[n][0],e[n][1])),o[n]=1,r=(n+1)%e.length;for(let t=0;t<e.length;t++){if(e[t][0]===e[r][0]&&e[t][1]===e[r][1]||e[t][0]===e[n][0]&&e[t][1]===e[n][1])continue;const i=[e[t][0]-e[n][0],e[t][1]-e[n][1]],o=[e[r][0]-e[n][0],e[r][1]-e[n][1]],s=i[0]*o[1]-i[1]*o[0];(s>0||0===s&&i[0]*o[0]+i[1]*o[1]>=0&&i[0]*i[0]+i[1]*i[1]>o[0]*o[0]+o[1]*o[1])&&(r=t)}n=r}while(n!==i);return t.length>0&&t.push(t[0]),t}(n);if(Yh(e,s))return o}const t_=64,i_={CoordinateSpaceTile:1,HasMapboxMeshFeatures:4,HasMeshoptCompression:8};function r_(e,t,i,r,n,o,s,a,l,c=!1){const u=i.zoom,A=i.project(r),g=Sl(r.lat,u),m=1/g;h(e),f(e,e,[A.x+s[0]*m,A.y+s[1]*m,s[2]]);let _=1,y=1;const x=i.worldSize;if(c){if("mercator"===i.projection.name){let e=0;i.elevation&&(e=i.elevation.getAtPointOrZero(new zl(A.x/x,A.y/x),0));const t=te([],[A.x,A.y,e,1],i.projMatrix)[3]/i.cameraToCenterDistance;_=t,y=t*Sl(i.center.lat,u)}else if("globe"===i.projection.name){const t=$m(e,i),n=[0,0,0,1];te(n,n,d([],i.projMatrix,t));const o=n[3]/i.cameraToCenterDistance,s=Gp(u),a=i.projection.pixelsPerMeter(r.lat,x)*Sl(r.lat,u),l=i.projection.pixelsPerMeter(i.center.lat,x)*Sl(i.center.lat,u);_=o/vi(a,Ql(i.center.lat),s),y=o*g/a,_*=l,y*=l}}else _=m;p(e,e,[_,_,y]);const v=[...e],E=t.orientation,b=[];if(Km(b,[E[0]+(n?n[0]:0),E[1]+(n?n[1]:0),E[2]+(n?n[2]:0)],o),d(e,v,b),a&&i.elevation){let n=0;const o=[];if(l&&i.elevation){n=function(e,t,i,r,n){const o=t.elevation;if(!o)return 0;const s=bp.projectAabbCorners(i,r),a=Dl(1,n.lat)*t.worldSize,l=function(e,t){const i=[0,0,1],r=[{corners:[0,1,3,2],dotProductWithUp:0},{corners:[1,5,2,6],dotProductWithUp:0},{corners:[0,4,1,5],dotProductWithUp:0},{corners:[2,6,3,7],dotProductWithUp:0},{corners:[4,7,5,6],dotProductWithUp:0},{corners:[0,3,4,7],dotProductWithUp:0}];for(const n of r){const r=e[n.corners[0]],o=e[n.corners[1]],s=e[n.corners[2]],a=[o[0]-r[0],o[1]-r[1],t*(o[2]-r[2])],l=V(a,a,[s[0]-r[0],s[1]-r[1],t*(s[2]-r[2])]);N(l,l),n.dotProductWithUp=U(l,i)}return r.sort((e,t)=>e.dotProductWithUp-t.dotProductWithUp),r[0].corners}(s,a),c=s[l[0]],h=s[l[1]],u=s[l[2]],d=s[l[3]],f=o.getAtPointOrZero(new zl(c[0]/t.worldSize,c[1]/t.worldSize),0),p=o.getAtPointOrZero(new zl(h[0]/t.worldSize,h[1]/t.worldSize),0),A=o.getAtPointOrZero(new zl(u[0]/t.worldSize,u[1]/t.worldSize),0),g=o.getAtPointOrZero(new zl(d[0]/t.worldSize,d[1]/t.worldSize),0),m=(f+g)/2,_=(p+A)/2;return m>_?p<A?Xm(e,h,d,c,p,g,f,a):Xm(e,u,c,d,A,f,g,a):f<g?Xm(e,c,h,u,f,p,A,a):Xm(e,d,u,h,g,A,p,a),Math.max(m,_)}(o,i,t.aabb,e,r);const s=d([],w([],o),b);d(e,v,s)}else n=i.elevation.getAtPointOrZero(new zl(A.x/x,A.y/x),0);0!==n&&(e[14]+=n)}}class n_{constructor(e,t,i,r,n){this.materialOverrides=new Map,this.nodeOverrides=new Map,this.materialOverrideNames=[],this.nodeOverrideNames=[],this.featureProperties={},this.id=e,this.uri=t,this.position=null!=i?new Il(i[0],i[1]):new Il(0,0),this.orientation=null!=r?r:[0,0,0],this.nodes=n,this.uploaded=!1,this.aabb=new bp([1/0,1/0,1/0],[-1/0,-1/0,-1/0]),this.matrix=[]}_applyTransformations(e,t){d(e.globalMatrix,t,e.localMatrix);const i=this.nodeOverrides.get(e.name);if(void 0!==i){if(i.orientation){const t=[];n=i.orientation,h(r=t),g(r,r,He(n[1])),m(r,r,He(n[2])),A(r,r,He(n[0])),d(e.globalMatrix,e.globalMatrix,t)}i.minZoom&&(e.minZoom=i.minZoom),i.maxZoom&&(e.maxZoom=i.maxZoom)}var r,n;if(e.meshes)for(const o of e.meshes){const t=bp.applyTransformFast(o.aabb,e.globalMatrix);this.aabb.encapsulate(t)}if(e.children)for(const o of e.children)this._applyTransformations(o,e.globalMatrix)}computeBoundsAndApplyParent(){const e=h([]);this.aabb=new bp([1/0,1/0,1/0],[-1/0,-1/0,-1/0]);for(const t of this.nodes)this._applyTransformations(t,e)}computeModelMatrix(e,t,i,r,n,o,s=!1){r_(this.matrix,this,e.transform,this.position,t,i,r,n,o,s)}upload(e){if(!this.uploaded){for(const t of this.nodes)a_(t,e);for(const e of this.nodes)c_(e);this.uploaded=!0}}destroy(){for(const e of this.nodes)u_(e)}}function o_(e,t,i=!1){e.uploaded||(e.gfxTexture=new sf(t,e.image,i?t.gl.R8:t.gl.RGBA8,{useMipmap:e.sampler.minFilter>=t.gl.NEAREST_MIPMAP_NEAREST}),e.uploaded=!0,e.image=null)}function s_(e,t,i){e.indexBuffer=t.createIndexBuffer(e.indexArray,!1,!0),e.vertexBuffer=t.createVertexBuffer(e.vertexArray,Fm.members,!1,!0),e.normalArray&&(e.normalBuffer=t.createVertexBuffer(e.normalArray,Um.members,!1,!0)),e.texcoordArray&&(e.texcoordBuffer=t.createVertexBuffer(e.texcoordArray,Nm.members,!1,!0)),e.colorArray&&(e.colorBuffer=t.createVertexBuffer(e.colorArray,(12===e.colorArray.bytesPerElement?Om:km).members,!1,!0)),e.featureArray&&(e.pbrBuffer=t.createVertexBuffer(e.featureArray,Hm.members,!0)),e.segments=Kc.simpleSegment(0,0,e.vertexArray.length,e.indexArray.length);const r=e.material;r.pbrMetallicRoughness.baseColorTexture&&o_(r.pbrMetallicRoughness.baseColorTexture,t),r.pbrMetallicRoughness.metallicRoughnessTexture&&o_(r.pbrMetallicRoughness.metallicRoughnessTexture,t),r.normalTexture&&o_(r.normalTexture,t),r.occlusionTexture&&o_(r.occlusionTexture,t,i),r.emissionTexture&&o_(r.emissionTexture,t)}function a_(e,t,i){if(e.meshes)for(const r of e.meshes)s_(r,t,i);if(e.lodMeshes)for(const r of e.lodMeshes)s_(r,t,i);if(e.children)for(const r of e.children)a_(r,t,i)}function l_(e){e.indexArray.destroy(),e.vertexArray.destroy(),e.colorArray&&e.colorArray.destroy(),e.normalArray&&e.normalArray.destroy(),e.texcoordArray&&e.texcoordArray.destroy(),e.featureArray&&e.featureArray.destroy()}function c_(e){if(e.meshes)for(const t of e.meshes)l_(t);if(e.lodMeshes)for(const t of e.lodMeshes)l_(t);if(e.children)for(const t of e.children)c_(t)}function h_(e){var t;e.vertexBuffer&&(e.vertexBuffer.destroy(),e.indexBuffer.destroy(),e.normalBuffer&&e.normalBuffer.destroy(),e.texcoordBuffer&&e.texcoordBuffer.destroy(),e.colorBuffer&&e.colorBuffer.destroy(),e.pbrBuffer&&e.pbrBuffer.destroy(),e.segments.destroy(),e.material&&((t=e.material).pbrMetallicRoughness.baseColorTexture&&t.pbrMetallicRoughness.baseColorTexture.gfxTexture&&t.pbrMetallicRoughness.baseColorTexture.gfxTexture.destroy(),t.pbrMetallicRoughness.metallicRoughnessTexture&&t.pbrMetallicRoughness.metallicRoughnessTexture.gfxTexture&&t.pbrMetallicRoughness.metallicRoughnessTexture.gfxTexture.destroy(),t.normalTexture&&t.normalTexture.gfxTexture&&t.normalTexture.gfxTexture.destroy(),t.emissionTexture&&t.emissionTexture.gfxTexture&&t.emissionTexture.gfxTexture.destroy(),t.occlusionTexture&&t.occlusionTexture.gfxTexture&&t.occlusionTexture.gfxTexture.destroy()))}function u_(e){if(e.meshes)for(const t of e.meshes)h_(t);if(e.lodMeshes)for(const t of e.lodMeshes)h_(t);if(e.footprintDebugMesh&&(e.footprintDebugMesh.vertexBuffer.destroy(),e.footprintDebugMesh.indexBuffer.destroy(),e.footprintDebugMesh.segments.destroy()),e.children)for(const t of e.children)u_(t)}function d_(e,t,i,r){return e[0]<=r[0]&&t[0]>=i[0]&&e[1]<=r[1]&&t[1]>=i[1]&&e[2]<=r[2]&&t[2]>=i[2]}function f_(e,t,i,r,n,o,s,a,l,c,h){const u=.5*(c[0]+h[0]),d=.5*(c[1]+h[1]),f=.5*(c[2]+h[2]),p=.5*(h[0]-c[0]),A=.5*(h[1]-c[1]),g=.5*(h[2]-c[2]),m=e-u,_=t-d,y=i-f,x=r-u,v=n-d,w=o-f,E=s-u,b=a-d,I=l-f,C=x-m,B=v-_,D=w-y,T=E-x,M=b-v,Q=I-w,S=m-E,P=_-b,R=y-I;let z,L,F,O,k,N;if(z=y*B-_*D,L=w*B-v*D,F=I*B-b*D,O=Math.min(z,L,F),k=Math.max(z,L,F),N=Math.abs(D)*A+Math.abs(B)*g,O>N||k<-N)return!1;if(z=y*M-_*Q,L=w*M-v*Q,F=I*M-b*Q,O=Math.min(z,L,F),k=Math.max(z,L,F),N=Math.abs(Q)*A+Math.abs(M)*g,O>N||k<-N)return!1;if(z=y*P-_*R,L=w*P-v*R,F=I*P-b*R,O=Math.min(z,L,F),k=Math.max(z,L,F),N=Math.abs(R)*A+Math.abs(P)*g,O>N||k<-N)return!1;if(z=m*D-y*C,L=x*D-w*C,F=E*D-I*C,O=Math.min(z,L,F),k=Math.max(z,L,F),N=Math.abs(D)*p+Math.abs(C)*g,O>N||k<-N)return!1;if(z=m*Q-y*T,L=x*Q-w*T,F=E*Q-I*T,O=Math.min(z,L,F),k=Math.max(z,L,F),N=Math.abs(Q)*p+Math.abs(T)*g,O>N||k<-N)return!1;if(z=m*R-y*S,L=x*R-w*S,F=E*R-I*S,O=Math.min(z,L,F),k=Math.max(z,L,F),N=Math.abs(R)*p+Math.abs(S)*g,O>N||k<-N)return!1;if(z=_*C-m*B,L=v*C-x*B,F=b*C-E*B,O=Math.min(z,L,F),k=Math.max(z,L,F),N=Math.abs(B)*p+Math.abs(C)*A,O>N||k<-N)return!1;if(z=_*T-m*M,L=v*T-x*M,F=b*T-E*M,O=Math.min(z,L,F),k=Math.max(z,L,F),N=Math.abs(M)*p+Math.abs(T)*A,O>N||k<-N)return!1;if(z=_*S-m*P,L=v*S-x*P,F=b*S-E*P,O=Math.min(z,L,F),k=Math.max(z,L,F),N=Math.abs(P)*p+Math.abs(S)*A,O>N||k<-N)return!1;if(O=Math.min(m,x,E),k=Math.max(m,x,E),O>p||k<-p)return!1;if(O=Math.min(_,v,b),k=Math.max(_,v,b),O>A||k<-A)return!1;if(O=Math.min(y,w,I),k=Math.max(y,w,I),O>g||k<-g)return!1;const U=B*Q-D*M,V=D*T-C*Q,H=C*M-B*T,j=-(U*m+V*_+H*y);return N=p*Math.abs(U)+A*Math.abs(V)+g*Math.abs(H),!(Math.abs(j)>N)}const p_=[];class A_{serializeFromGltf(e,t,i,r){if(e.length<7)return;let n=0;if(109!==e[n++]||98!==e[n++]||120!==e[n++]||98!==e[n++]||118!==e[n++]||104!==e[n++])return;if(43!==e[n++])return;const o=new DataView(e.buffer,e.byteOffset),s=o.getUint16(n,!0);if(n+=2,0===s)return;this._nodes=[];let a=0;for(let c=0;c<s;c++){const e=[t[3*a],t[3*a+1],t[3*a+2]],r=[i[3*a],i[3*a+1],i[3*a+2]];a++;const s=o.getUint16(n,!0);n+=2;let l=0,c=0;65535===s&&(l=o.getUint16(n,!0),n+=2,c=o.getUint32(n,!0),n+=4),this._nodes.push({aabbMin:e,aabbMax:r,backChild:s,indexCount:l,indexOffset:c})}const l=o.getUint32(n,!0);this._indices=r.slice(0,l)}setVertices(e){this._vertices=e}findHighestPoint(e,t){if(!this._nodes||0===this._nodes.length)return null;if(!d_(this._nodes[0].aabbMin,this._nodes[0].aabbMax,e,t))return null;const i=p_;i.length=0,i.push(0);let r=-1/0;for(;i.length>0;){const n=i.pop(),o=this._nodes[n];if(o.aabbMax[2]<=r)continue;if(65535===o.backChild){for(let i=0;i<o.indexCount;i+=3){const n=3*this._indices[o.indexOffset+i],s=3*this._indices[o.indexOffset+i+1],a=3*this._indices[o.indexOffset+i+2];f_(this._vertices[n],this._vertices[n+1],this._vertices[n+2],this._vertices[s],this._vertices[s+1],this._vertices[s+2],this._vertices[a],this._vertices[a+1],this._vertices[a+2],e,t)&&(r=Math.max(r,this._vertices[n+2],this._vertices[s+2],this._vertices[a+2]))}continue}const s=n+1,a=o.backChild,l=this._nodes[s],c=this._nodes[a],h=d_(l.aabbMin,l.aabbMax,e,t),u=d_(c.aabbMin,c.aabbMax,e,t);h&&u?l.aabbMax[2]<c.aabbMax[2]?(i.push(s),i.push(a)):(i.push(a),i.push(s)):h?i.push(s):u&&i.push(a)}return r>=0?r:null}}function g_(e,t){const i=e.json.bufferViews[t.bufferView],r=ym[t.componentType];return new r(e.buffers[i.buffer],(t.byteOffset||0)+(i.byteOffset||0),t.count*(i.byteStride&&i.byteStride!==vm[t.type]*r.BYTES_PER_ELEMENT?i.byteStride/r.BYTES_PER_ELEMENT:vm[t.type]))}function m_(e,t,i,r){const n=ym[t.componentType],o=function(e){switch(e){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:return 1}}(n),s=e.json.bufferViews[t.bufferView],a=s.byteStride?s.byteStride/n.BYTES_PER_ELEMENT:vm[t.type],l=i.float32,c=l.length/i.capacity,h=t.count*a;for(let u=0,d=0;u<h;u+=a,d+=c)for(let e=0;e<c;e++)l[d+e]=r[u+e]*o}function __(e,t,i){const r=e.indices,n=e.attributes,o={};o.indexArray=new yc;const s=t.json.accessors[r],a=g_(t,s);o.indexArray.resizeExact(s.count/3),o.indexArray.uint16.set(a),o.vertexArray=new sc;const l=t.json.accessors[n.POSITION],c=g_(t,l);o.vertexArray.resizeExact(l.count),o.vertexArray.float32.set(c),o.aabb=new bp(l.min,l.max);const[h,u,d]=l.min,[f,p,A]=l.max;if(o.centroid=[.5*(h+f),.5*(u+p),.5*(d+A)],void 0!==n.COLOR_0){const e=t.json.accessors[n.COLOR_0],i=vm[e.type],r=g_(t,e);o.colorArray=3===i?new sc:new dc,o.colorArray.resizeExact(e.count),m_(t,e,o.colorArray,r)}if(void 0!==n.NORMAL){o.normalArray=new sc;const e=t.json.accessors[n.NORMAL];o.normalArray.resizeExact(e.count);const i=g_(t,e);m_(t,e,o.normalArray,i)}if(void 0!==n.TEXCOORD_0&&i.length>0){o.texcoordArray=new Bc;const e=t.json.accessors[n.TEXCOORD_0];o.texcoordArray.resizeExact(e.count);const i=g_(t,e);m_(t,e,o.texcoordArray,i)}if(void 0!==n._FEATURE_ID_RGBA4444){const e=t.json.accessors[n._FEATURE_ID_RGBA4444];t.json.extensionsUsed&&t.json.extensionsUsed.includes("EXT_meshopt_compression")&&(o.featureData=g_(t,e))}void 0!==n._FEATURE_RGBA4444&&(o.featureData=new Uint32Array(g_(t,t.json.accessors[n._FEATURE_RGBA4444]).buffer));const g=e.material;return o.material=function(e,t){const{emissiveFactor:i=[0,0,0],alphaMode:r="OPAQUE",alphaCutoff:n=.5,normalTexture:o,occlusionTexture:s,emissiveTexture:a,doubleSided:l,name:c}=e,{baseColorFactor:h=[1,1,1,1],metallicFactor:u=1,roughnessFactor:d=1,baseColorTexture:f,metallicRoughnessTexture:p}=e.pbrMetallicRoughness||{},A=s?t[s.index]:void 0;if(s&&s.extensions&&s.extensions.KHR_texture_transform&&A){const e=s.extensions.KHR_texture_transform;A.offsetScale=[e.offset[0],e.offset[1],e.scale[0],e.scale[1]]}return{name:c,pbrMetallicRoughness:{baseColorFactor:new Ei(...h),metallicFactor:u,roughnessFactor:d,baseColorTexture:f?t[f.index]:void 0,metallicRoughnessTexture:p?t[p.index]:void 0},doubleSided:l,emissiveFactor:new Ei(...i),alphaMode:r,alphaCutoff:n,normalTexture:o?t[o.index]:void 0,occlusionTexture:A,emissionTexture:a?t[a.index]:void 0,defined:void 0===e.defined}}(void 0!==g?t.json.materials[g]:{defined:!1},i),o}function y_(e,t,i){const{matrix:r,rotation:n,translation:o,scale:s,mesh:a,extras:l,children:h,name:u}=e,d={};if(d.name=u,d.localMatrix=r||function(e,t,i,r){var n=t[0],o=t[1],s=t[2],a=t[3],l=n+n,c=o+o,h=s+s,u=n*l,d=n*c,f=n*h,p=o*c,A=o*h,g=s*h,m=a*l,_=a*c,y=a*h,x=r[0],v=r[1],w=r[2];return e[0]=(1-(p+g))*x,e[1]=(d+y)*x,e[2]=(f-_)*x,e[3]=0,e[4]=(d-y)*v,e[5]=(1-(u+g))*v,e[6]=(A+m)*v,e[7]=0,e[8]=(f+_)*w,e[9]=(A-m)*w,e[10]=(1-(u+p))*w,e[11]=0,e[12]=i[0],e[13]=i[1],e[14]=i[2],e[15]=1,e}([],n||[0,0,0,1],o||[0,0,0],s||[1,1,1]),d.globalMatrix=c(d.localMatrix),void 0!==a){d.meshes=i[a];const e=d.anchor=[0,0];for(const t of d.meshes){const{min:i,max:r}=t.aabb;e[0]+=i[0]+r[0],e[1]+=i[1]+r[1]}e[0]=Math.floor(e[0]/d.meshes.length/2),e[1]=Math.floor(e[1]/d.meshes.length/2)}if(l&&(l.id&&(d.id=l.id),l.lights&&(d.lights=function(e){if(!e.length)return[];const t=function(e){const t=atob(e),i=new Uint8Array(t.length);for(let r=0;r<t.length;r++)i[r]=t.codePointAt(r);return i}(e),i=[],r=t.length/24,n=new Uint16Array(t.buffer),o=new Float32Array(t.buffer);for(let s=0;s<r;s++){const e=n[2*s*6]/30,t=n[2*s*6+1]/30,r=n[2*s*6+10]/100,a=o[6*s+1],l=o[6*s+2],c=o[6*s+3],h=o[6*s+4],u=c-a,d=h-l,f=Math.hypot(u,d);i.push({pos:[a+.5*u,l+.5*d,t],normal:[d/f,-u/f,0],width:f,height:e,depth:r,points:[a,l,c,h]})}return i}(l.lights)),l.MAPBOX_geometry_bloom&&(d.isGeometryBloom=l.MAPBOX_geometry_bloom),l.MAPBOX_zoom_min&&(d.minZoom=l.MAPBOX_zoom_min),l.MAPBOX_zoom_max&&(d.maxZoom=l.MAPBOX_zoom_max)),h){const e=[];for(const r of h)e.push(y_(t.json.nodes[r],t,i));d.children=e}if(e.extensions&&e.extensions.mbx_bvh&&(d.meshBVH=function(e,t,i){const r=t.binaryAccessor,n=t.positionMinAccessor,o=t.positionMaxAccessor,s=t.
vendor: 4,631 bytes, line 1
1indexAccessor;if(!(Number.isInteger(r)&&Number.isInteger(n)&&Number.isInteger(o)&&Number.isInteger(s)))return null;const a=e.json.accessors;if(r>=a.length||n>=a.length||o>=a.length||s>=a.length)return null;const l=a[r],c=a[n],h=a[o],u=a[s];if(void 0===l.bufferView||void 0===c.bufferView||void 0===h.bufferView||void 0===u.bufferView)return null;const d=e.json.bufferViews;if(l.bufferView>=d.length||c.bufferView>=d.length||h.bufferView>=d.length||u.bufferView>=d.length)return null;const f=d[l.bufferView],p=d[c.bufferView],A=d[h.bufferView],g=d[u.bufferView];if(f.buffer>=e.buffers.length||p.buffer>=e.buffers.length||A.buffer>=e.buffers.length||g.buffer>=e.buffers.length)return null;const m=(e,t,i)=>e>=0&&e<=i&&t<=i-e,_=l.byteOffset||0,y=c.byteOffset||0,x=h.byteOffset||0,v=u.byteOffset||0;if(!(m(_,0,f.byteLength)&&m(y,3*c.count*4,p.byteLength)&&m(x,3*h.count*4,A.byteLength)&&m(v,4*u.count,g.byteLength)))return null;const w=new Uint8Array(e.buffers[f.buffer],(f.byteOffset||0)+_,f.byteLength-_),E=new Float32Array(e.buffers[p.buffer],(p.byteOffset||0)+y,3*c.count),b=new Float32Array(e.buffers[A.buffer],(A.byteOffset||0)+x,3*h.count),I=new Uint32Array(e.buffers[g.buffer],(g.byteOffset||0)+v,u.count),C=new A_;if(C.serializeFromGltf(w,E,b,I),void 0!==i&&e.json.meshes&&e.json.meshes[i]){const t=e.json.meshes[i].primitives[0];if(t&&void 0!==t.attributes.POSITION&&t.attributes.POSITION<a.length){const i=a[t.attributes.POSITION];if(void 0!==i.bufferView&&i.bufferView<d.length){const t=d[i.bufferView];if(t.buffer<e.buffers.length){const r=i.byteOffset||0,n=t.byteStride?t.byteStride/4:3;if(m(r,i.count*n*4,t.byteLength)){const o=(t.byteOffset||0)+r;if(3===n)C.setVertices(new Float32Array(e.buffers[t.buffer],o,3*i.count));else{const r=new Float32Array(e.buffers[t.buffer],o,i.count*n),s=new Float32Array(3*i.count);for(let e=0;e<i.count;e++)s[3*e]=r[e*n],s[3*e+1]=r[e*n+1],s[3*e+2]=r[e*n+2];C.setVertices(s)}}}}}}return C}(t,e.extensions.mbx_bvh,a)),!d.meshBVH&&d.children)for(const c of d.children)if(c.meshBVH){d.meshBVH=c.meshBVH;break}return d}function x_(e){if(0===e.vertices.length||0===e.indices.length)return null;const t=new zm(e.vertices,e.indices,8,256),[i,r]=[t.min.clone(),t.max.clone()];return{vertices:e.vertices,indices:e.indices,grid:t,min:i,max:r}}function v_(e){if(!e.extras||!e.extras.ground)return null;const t=e.extras.ground;if(!t||!Array.isArray(t)||0===t.length)return null;const i=t[0];if(!i||!Array.isArray(i)||0===i.length)return null;const r=[];for(const s of i){if(!Array.isArray(s)||2!==s.length)continue;const e=s[0],t=s[1];"number"==typeof e&&"number"==typeof t&&r.push(new we(e,t))}if(r.length<3)return null;r.length>1&&r.at(-1).equals(r[0])&&r.pop();let n=0;for(let s=0;s<r.length;s++){const e=r[s],t=r[(s+1)%r.length],i=r[(s+2)%r.length];n+=(e.x-t.x)*(i.y-t.y)-(i.x-t.x)*(e.y-t.y)}n>0&&r.reverse();const o=Ua(r.flatMap(e=>[e.x,e.y]),[]);return 0===o.length?null:{vertices:r,indices:o}}function w_(e,t){const i=[],r=[];let n=0;const o=[];for(const s of e){n=i.length;const e=s.vertexArray.float32,a=s.indexArray.uint16;for(let r=0;r<s.vertexArray.length;r++)o[0]=e[3*r+0],o[1]=e[3*r+1],o[2]=e[3*r+2],j(o,o,t),i.push(new we(o[0],o[1]));for(let t=0;t<3*s.indexArray.length;t++)r.push(a[t]+n)}if(r.length%3!=0)return null;for(let s=0;s<r.length;s+=3){const e=i[r[s+0]],t=i[r[s+1]],n=i[r[s+2]];(e.x-t.x)*(n.y-t.y)-(n.x-t.x)*(e.y-t.y)>0&&([r[s+1],r[s+2]]=[r[s+2],r[s+1]])}return{vertices:i,indices:r}}function E_(e,t){for(let i=0;i<e.length;i++)if(e[i].name===t)return i;return-1}function b_(e){const t=function(e,t){const i=[],r=WebGL2RenderingContext;if(e.json.textures)for(const n of e.json.textures){const o={magFilter:r.LINEAR,minFilter:r.NEAREST,wrapS:r.REPEAT,wrapT:r.REPEAT};void 0!==n.sampler&&Object.assign(o,e.json.samplers[n.sampler]),i.push({image:t[n.source],sampler:o,uploaded:!1})}return i}(e,e.images),i=function(e,t){const i=[];for(const r of e.json.meshes){const n=[];for(const i of r.primitives)n.push(__(i,e,t));i.push(n)}return i}(e,t),{scenes:r,scene:n,nodes:o}=e.json;let s=r?E_(r,"Default Scene"):-1;s<0&&(s=n||0);const a=r?r[s].nodes:[...o.keys()],l=[];for(const h of a)l.push(y_(o[h],e,i));!function(e,t,i){const r={},n=new Set;for(let o=0;o<e.length;o++){const e=i[t[o]];if(!e.extras)continue;const s=e.extras["mapbox:footprint:version"],a=e.extras["mapbox:footprint:id"];(s||a)&&n.add(o),"1.0.0"===s&&a&&(r[a]=o)}for(let o=0;o<e.length;o++){if(n.has(o))continue;const s=e[o],a=i[t[o]];if(!a.extras)continue;let l=null;s.id in r&&(l=w_(e[r[s.id]].meshes,s.localMatrix)),l||(l=v_(a)),l&&(s.footprint=x_(l))}if(n.size>0){const t=Array.from(n.values()).sort((e,t)=>
vendor: 8,400 bytes, line 1
1e-t);for(let i=t.length-1;i>=0;i--)e.splice(t[i],1)}}(l,a,e.json.nodes);const c=r?E_(r,"LOD"):-1;if(c>=0){const t=r[c].nodes,n=new Map;for(const r of t){const t=y_(o[r],e,i);t.id&&n.set(t.id,t)}for(const e of l)if(e.id){const t=n.get(e.id);t&&t.meshes&&(e.lodMeshes=t.meshes,t.meshBVH&&(e.meshBVH=t.meshBVH))}}return l}function I_(e){e.heightmap=new Float32Array(4096),e.heightmap.fill(-1);const t=e.vertexArray.float32,i=e.aabb.min[0]-1,r=e.aabb.min[1]-1,n=t_/(e.aabb.max[0]-i+2),o=t_/(e.aabb.max[1]-r+2);for(let s=0;s<t.length;s+=3){const a=t[s+2],l=(t[s+0]-i)*n|0,c=(t[s+1]-r)*o|0;a>e.heightmap[c*t_+l]&&(e.heightmap[c*t_+l]=a)}}function C_(e,t,i,r,n){i.reserve(i.length+4*e.length),r.reserve(r.length+10*e.length),n.reserve(n.length+10*e.length);let o=r.length;for(const s of e){const e=Math.min(10,Math.max(4,1.3*s.height))*t,a=[-s.normal[1],s.normal[0],0],l=Math.min(.29,.1*s.width/s.depth),c=s.width-2*s.depth*t*(l+.01),h=z([],s.pos,a,c/2),u=z([],s.pos,a,-c/2),d=[h[0],h[1],h[2]+s.height],f=[u[0],u[1],u[2]+s.height],p=z([],s.normal,a,l);R(p,p,e);const A=z([],s.normal,a,-l);R(A,A,e),T(p,h,p),T(A,u,A),h[2]+=.1,u[2]+=.1,r.emplaceBack(p[0],p[1],p[2]),r.emplaceBack(A[0],A[1],A[2]),r.emplaceBack(h[0],h[1],h[2]),r.emplaceBack(u[0],u[1],u[2]),r.emplaceBack(d[0],d[1],d[2]),r.emplaceBack(f[0],f[1],f[2]),r.emplaceBack(h[0],h[1],h[2]),r.emplaceBack(u[0],u[1],u[2]),r.emplaceBack(p[0],p[1],p[2]),r.emplaceBack(A[0],A[1],A[2]);const g=c/e/2;n.emplaceBack(-g-l,-1,g,.8),n.emplaceBack(g+l,-1,g,.8),n.emplaceBack(-g,0,g,1.3),n.emplaceBack(g,0,g,1.3),n.emplaceBack(g+l,-.8,g,.7),n.emplaceBack(g+l,-.8,g,.7),n.emplaceBack(0,0,g,1.3),n.emplaceBack(0,0,g,1.3),n.emplaceBack(g+l,-1.2,g,.8),n.emplaceBack(g+l,-1.2,g,.8),i.emplaceBack(6+o,4+o,8+o),i.emplaceBack(7+o,9+o,5+o),i.emplaceBack(0+o,1+o,2+o),i.emplaceBack(1+o,3+o,2+o),o+=10}}function B_(e,t){const i={};i.indexArray=new yc,i.vertexArray=new sc,i.colorArray=new dc,i.indexArray.reserveExact(4*e.length),i.vertexArray.reserveExact(10*e.length),i.colorArray.reserveExact(10*e.length),C_(e,t,i.indexArray,i.vertexArray,i.colorArray);const r={defined:!0};r.emissiveFactor=Ei.black;const n={};return n.baseColorFactor=Ei.white,r.pbrMetallicRoughness=n,i.material=r,i.aabb=new bp([1/0,1/0,1/0],[-1/0,-1/0,-1/0]),i}ts(A_,"ModelBVH");const D_=Zl([{name:"a_pos_3f",components:3,type:"Float32"}]),T_=Zl([{name:"a_normal_3",components:3,type:"Int16"}]),M_=Zl([{name:"a_centroid_3",components:3,type:"Int16"}]),Q_=Zl([{name:"a_part_color_emissive",components:2,type:"Uint16"}]),S_=Zl([{name:"a_faux_facade_color_emissive",components:2,type:"Uint16"}]),P_=Zl([{name:"a_faux_facade_data",components:4,type:"Uint16"}]),R_=Zl([{name:"a_faux_facade_vertical_range",components:2,type:"Uint16"}]),z_=Zl([{name:"a_bloom_attenuation",components:4,type:"Float32"}]),L_=Zl([{name:"a_flood_light_wall_radius_1i16",components:1,type:"Int16"}]),F_=Zl([{name:"a_pos_normal_ed",components:4,type:"Int16"}]),O_=Zl([{name:"a_pos_end",components:4,type:"Int16"},{name:"a_angular_offset_factor",components:1,type:"Int16"}]),k_=Zl([{name:"a_flood_light_ground_radius",components:1,type:"Float32"}]),N_=Zl([{name:"a_centroid_pos",components:2,type:"Uint16"}]),U_=Zl([{name:"a_join_normal_inside",components:3,type:"Int16"}]),V_=Zl([{name:"a_hidden_by_landmark",components:1,type:"Uint8"}]),H_=Zl([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]),{members:j_}=F_;function G_(e,t,i,r){const n=[],o=0===r?(e,t,i,r,n,o)=>{e.push(new we(o,i+(o-t)/(r-t)*(n-i)))}:(e,t,i,r,n,o)=>{e.push(new we(t+(o-i)/(n-i)*(r-t),o))};for(const s of e){const e=[];for(const n of s){if(n.length<=2)continue;const s=[];for(let e=0;e<n.length-1;e++){const a=n[e].x,l=n[e].y,c=n[e+1].x,h=n[e+1].y,u=0===r?a:l,d=0===r?c:h;u<t?d>t&&o(s,a,l,c,h,t):u>i?d<i&&o(s,a,l,c,h,i):s.push(n[e]),d<t&&u>=t&&o(s,a,l,c,h,t),d>i&&u<=i&&o(s,a,l,c,h,i)}let a=n.at(-1);const l=0===r?a.x:a.y;l>=t&&l<=i&&s.push(a),s.length&&(a=s.at(-1),s[0].x===a.x&&s[0].y===a.y||s.push(s[0]),e.push(s))}e.length&&n.push(e)}return n}const Y_={None:0,Model:1,Symbol:2,FillExtrusion:4},W_=[new we(0,0),new we(Yr,0),new we(Yr,Yr),new we(0,Yr)];function J_(e,t){const i=[];let r=[];if(!t||e.length<2)return[e];if(2===e.length)return ou(e[0],e[1],W_)?[e]:[];for(let n=0;n<e.length+2;n++){const t=0===n?e.at(-1):e[(n-1)%e.length],o=e[n%e.length],s=e[(n+1)%e.length],a=ou(t,o,W_),l=ou(o,s,W_),c=a||l;c&&r.push(o),c&&l||r.length>0&&(r.length>1&&i.push(r),r=[])}return r.length>1&&i.push(r),i}const Z_=Uh.types,q_=["fill-extrusion-base","fill-extrusion-height","fill-extrusion-color","fill-extrusion-pattern","fill-extrusion-flood-light-wall-radius","fill-extrusion-line-width","fill-extrusion-emissive-strength"],K_=["fill-extrusion-flood-light-ground-radius"],X_=Math.pow(2,13),$_=Math.pow(2,15)-1,ey=new we(0,1),ty=2147483648,iy=1073741824;function ry(e,t,i,r,n,o,s,a){e.emplaceBack((t<<1)+s,(i<<1)+o,(Math.floor(r*X_)<<1)+n,Math.round(a))}function ny(e,t,i){e.emplaceBack(t.x*Yr,t.y*Yr,i?1:0)}function oy(e,t,i,r,n,o){e.emplaceBack(t.x,t.y,(i.x<<1)+r,(i.y<<1)+n,o)}function sy(e,t,i){const r=16384;e.emplaceBack(t.x,t.y,t.z,i[0]*r,i[1]*r,i[2]*r)}class ay{constructor(){this.vertexOffset=0,this.vertexCount=0,this.indexOffset=0,this.indexCount=0}}class ly{constructor(){this.data=[]}get length(){return this.data.length}push(e){this.data.push(e)}get(e){return this.data[e]}static serialize(e,t){const i=e.data.length,r=new Uint32Array(4*i),n=[];n.length=i;for(let o=0;o<i;o++){const t=e.data[o],i=4*o;r[i]=t.vertexOffset,r[i+1]=t.vertexCount,r[i+2]=t.indexOffset,r[i+3]=t.indexCount,n[o]=t.ringIndices}return t&&t.add(r.buffer),{scalars:r,rings:n}}static deserialize(e){const{scalars:t,rings:i}=e,r=t.length/4,n=new ly,o=[];o.length=r,n.data=o;for(let s=0;s<r;s++){const e=4*s,r=new ay;r.vertexOffset=t[e],r.vertexCount=t[e+1],r.indexOffset=t[e+2],r.indexCount=t[e+3],r.ringIndices=i[s],n.data[s]=r}return n}}class cy{constructor(){this.centroidXY=new we(0,0),this.vertexArrayOffset=0,this.vertexCount=0,this.groundVertexArrayOffset=0,this.groundVertexCount=0,this.flags=0,this.footprintSegIdx=-1,this.footprintSegLen=0,this.polygonSegIdx=-1,this.polygonSegLen=0,this.min=new we(Number.MAX_VALUE,Number.MAX_VALUE),this.max=new we(-Number.MAX_VALUE,-Number.MAX_VALUE),this.height=0,this.buildingId=0,this.groupCentroidPos=new we(0,0)}span(){return new we(this.max.x-this.min.x,this.max.y-this.min.y)}}class hy{constructor(){this.data=[],this.buffer=null}get length(){return this.data.length}push(e){this.data.push(e)}get(e){return this.data[e]}find(e){return this.data.find(e)}[Symbol.iterator](){return this.data[Symbol.iterator]()}static serialize(e,t){const i=e.data.length,r=new Float64Array(15*i);for(let n=0;n<i;n++){const t=e.data[n],i=15*n;r[i]=t.centroidXY.x,r[i+1]=t.centroidXY.y,r[i+2]=t.min.x,r[i+3]=t.min.y,r[i+4]=t.max.x,r[i+5]=t.max.y,r[i+6]=t.groupCentroidPos.x,r[i+7]=t.groupCentroidPos.y,r[i+8]=t.vertexArrayOffset,r[i+9]=t.vertexCount,r[i+10]=t.groundVertexArrayOffset,r[i+11]=t.groundVertexCount,r[i+12]=t.footprintSegLen,r[i+13]=t.height,r[i+14]=t.buildingId}return t&&t.add(r.buffer),{buffer:r}}static deserialize(e){const t=e.buffer,i=t.length/15,r=new hy;r.buffer=t;const n=[];n.length=i,r.data=n;let o=0;for(let s=0;s<i;s++){const e=15*s,i=new cy;i.centroidXY=new we(t[e],t[e+1]),i.min=new we(t[e+2],t[e+3]),i.max=new we(t[e+4],t[e+5]),i.groupCentroidPos=new we(t[e+6],t[e+7]),i.vertexArrayOffset=t[e+8],i.vertexCount=t[e+9],i.groundVertexArrayOffset=t[e+10],i.groundVertexCount=t[e+11],i.footprintSegLen=t[e+12],i.height=t[e+13],i.buildingId=t[e+14],i.footprintSegIdx=o,o+=i.footprintSegLen,r.data[s]=i}return r}}class uy{constructor(){this.acc=new we(0,0),this.accCount=0,this.centroidDataIndex=0}startRing(e,t){e.min.x===Number.MAX_VALUE&&(e.min.x=e.max.x=t.x,e.min.y=e.max.y=t.y)}appendEdge(e,t,i){this.accCount++,this.acc._add(t);let r=!!this.borders;t.x<e.min.x?(e.min.x=t.x,r=!0):t.x>e.max.x&&(e.max.x=t.x,r=!0),t.y<e.min.y?(e.min.y=t.y,r=!0):t.y>e.max.y&&(e.max.y=t.y,r=!0),((0===t.x||t.x===Yr)&&t.x===i.x)!=((0===t.y||t.y===Yr)&&t.y===i.y)&&this.processBorderOverlap(t,i),r&&this.checkBorderIntersection(t,i)}checkBorderIntersection(e,t){t.x<0!=e.x<0&&this.addBorderIntersection(0,vi(t.y,e.y,(0-t.x)/(e.x-t.x))),t.x>Yr!=e.x>Yr&&this.addBorderIntersection(1,vi(t.y,e.y,(Yr-t.x)/(e.x-t.x))),t.y<0!=e.y<0&&this.addBorderIntersection(2,vi(t.x,e.x,(0-t.y)/(e.y-t.y))),t.y>Yr!=e.y>
vendor: 23,692 bytes, line 1
1Yr&&this.addBorderIntersection(3,vi(t.x,e.x,(Yr-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 i=this.borders[e];t<i[0]&&(i[0]=t),t>i[1]&&(i[1]=t)}processBorderOverlap(e,t){if(e.x===t.x){if(e.y===t.y)return;const i=0===e.x?0:1;this.addBorderIntersection(i,t.y),this.addBorderIntersection(i,e.y)}else{const i=0===e.y?2:3;this.addBorderIntersection(i,t.x),this.addBorderIntersection(i,e.x)}}centroid(){return 0===this.accCount?new we(0,0):new we(Math.floor(Math.max(0,this.acc.x)/this.accCount),Math.floor(Math.max(0,this.acc.y)/this.accCount))}intersectsCount(){return this.borders?this.borders.reduce((e,t)=>e+ +(t[0]!==Number.MAX_VALUE),0):0}}function dy(e,t){const i=e.add(t)._unit(),r=Je(e.x*i.x+e.y*i.y,-1,1);var n,o,s;return s=Math.acos(r),Math.min(4,Math.max(-4,Math.tan(s)))/4*$_*((n=e).x*(o=t).y-n.y*o.x<0?-1:1)}const fy=[e=>e.x<0,e=>e.x>Yr,e=>e.y<0,e=>e.y>Yr];function py(e,t,i,r){const n=[4];if(0===r)return n;i._mult(r);const o=e.sub(i),s=t.sub(i),a=[e,t,o,s];for(let l=0;l<4;l++)for(const e of a)if(fy[l](e)){n.push(l);break}return n}class Ay{constructor(e){this.groundRadiusArray=null,this.groundRadiusBuffer=null,this.vertexArray=new nc,this.indexArray=new yc,this.programConfigurations=new bh(e.layers,{zoom:e.zoom,lut:e.lut},e=>K_.includes(e)),this._segments=new Kc,this.hiddenByLandmarkVertexArray=new Pc,this._segmentToGroundQuads={},this._segmentToGroundQuads[0]=[],this._segmentToRegionTriCounts={},this._segmentToRegionTriCounts[0]=[0,0,0,0,0],this.regionSegments={},this.regionSegments[4]=new Kc}getDefaultSegment(){return this.regionSegments[4]}hasData(){return 0!==this.vertexArray.length}addData(e,t,i,r=!1){const n=e.length;if(n>2){let o=Math.max(0,this._segments.get().length-1);const s=this._segments._prepareSegment(4*n,this.vertexArray.length,2*this._segmentToGroundQuads[o].length);let a;o!==this._segments.get().length-1&&(o++,this._segmentToGroundQuads[o]=[],this._segmentToRegionTriCounts[o]=[0,0,0,0,0]);{const t=e[0],i=e[1];a=dy(t.sub(e[n-1])._perp()._unit(),i.sub(t)._perp()._unit())}for(let l=0;l<n;l++){const c=l===n-1?0:l+1,h=e[l],u=e[c],d=e[c===n-1?0:c+1],f=u.sub(h)._perp()._unit(),p=dy(f,d.sub(u)._perp()._unit()),A=a,g=p;if(xy(h,u,t)||r&&vy(h,t)&&vy(u,t)){a=p;continue}const m=s.vertexLength;oy(this.vertexArray,h,u,1,1,A),oy(this.vertexArray,h,u,1,0,A),oy(this.vertexArray,h,u,0,1,g),oy(this.vertexArray,h,u,0,0,g),s.vertexLength+=4;const _=py(h,u,f,i);for(const e of _)this._segmentToGroundQuads[o].push({id:m,region:e}),this._segmentToRegionTriCounts[o][e]+=2,s.primitiveLength+=2;a=p}}}prepareBorderSegments(){if(!this.hasData())return;const e=this._segments.get(),t=e.length;for(let i=0;i<t;i++)this._segmentToGroundQuads[i].sort((e,t)=>e.region-t.region);for(let i=0;i<t;i++){const t=this._segmentToGroundQuads[i],r=e[i],n=this._segmentToRegionTriCounts[i];n.reduce((e,t)=>e+t,0);let o=0;for(let e=0;e<=4;e++){const t=n[e];if(0!==t){let i=this.regionSegments[e];i||(i=this.regionSegments[e]=new Kc);const n={vertexOffset:r.vertexOffset,primitiveOffset:r.primitiveOffset+o,vertexLength:r.vertexLength,primitiveLength:t};i.get().push(n)}o+=t}for(let e=0;e<t.length;e++){const i=t[e].id;this.indexArray.emplaceBack(i,i+1,i+3),this.indexArray.emplaceBack(i,i+3,i+2)}}this._segmentToGroundQuads=null,this._segmentToRegionTriCounts=null,this._segments.destroy(),this._segments=null}addPaintPropertiesData(e,t,i,r,n,o,s){this.hasData()&&this.programConfigurations.populatePaintArrays(this.vertexArray.length,e,t,i,r,n,o,void 0,s)}upload(e){this.hasData()&&(this.vertexBuffer=e.createVertexBuffer(this.vertexArray,O_.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),null!=this.groundRadiusArray&&(this.groundRadiusBuffer=e.createVertexBuffer(this.groundRadiusArray,k_.members)))}uploadPaintProperties(e){this.hasData()&&this.programConfigurations.upload(e)}update(e,t,i,r,n,o,s,a){this.hasData()&&this.programConfigurations.updatePaintArrays(e,t,i,r,n,o,s,a)}updateHiddenByLandmark(e){this.updateHiddenByLandmarkRange(e.groundVertexArrayOffset,e.groundVertexCount,!!(e.flags&ty||e.flags&iy))}updateHiddenByLandmarkRange(e,t,i){if(!this.hasData())return;const r=t+e;if(0!==t){for(let t=e;t<r;++t)this.hiddenByLandmarkVertexArray.emplace(t,i?1:0);this._needsHiddenByLandmarkUpdate=!0}}uploadHiddenByLandmark(e){this.hasData()&&this._needsHiddenByLandmarkUpdate&&(!this.hiddenByLandmarkVertexBuffer&&this.hiddenByLandmarkVertexArray.length>0?this.hiddenByLandmarkVertexBuffer=e.createVertexBuffer(this.hiddenByLandmarkVertexArray,V_.members,!0):this.hiddenByLandmarkVertexBuffer&&this.hiddenByLandmarkVertexBuffer.updateData(this.hiddenByLandmarkVertexArray),this._needsHiddenByLandmarkUpdate=!1)}destroy(){if(this.vertexBuffer){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.hiddenByLandmarkVertexBuffer&&this.hiddenByLandmarkVertexBuffer.destroy(),this.groundRadiusBuffer&&this.groundRadiusBuffer.destroy(),this._segments&&this._segments.destroy(),this.programConfigurations.destroy();for(let e=0;e<=4;e++){const t=this.regionSegments[e];t&&t.destroy()}}}}class gy{constructor(e){this.zoom=e.zoom,this.canonical=e.canonical,this.overscaling=e.overscaling,this.layers=e.layers,this.pixelRatio=e.pixelRatio,this.layerIds=this.layers.map(e=>e.fqid),this.index=e.index,this.hasPattern=!1,this.edgeRadius=0,this.projection=e.projection,this.activeReplacements=[],this.replacementUpdateTime=0,this.centroidData=new hy,this.footprintIndices=new yc,this.footprintVertices=new Kl,this.footprintSegments=new ly,this.layoutVertexArray=new rc,this.centroidVertexArray=new jc,this.wallVertexArray=new Yc,this.indexArray=new yc,this.programConfigurations=new bh(e.layers,{zoom:e.zoom,lut:e.lut},e=>q_.includes(e)),this.segments=new Kc,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.groundEffect=new Ay(e),this.maxHeight=0,this.partLookup={},this.triangleSubSegments=[],this.polygonSegments=[],this.buildingGroups=new Map,this.worldview=e.worldview,this.hasAppearances=null}updateFootprints(e,t){}updateAppearances(e,t,i,r){return{hasLayoutChanges:!1,hasUboChanges:!1}}populate(e,t,i,r){this.features=[],this.hasPattern=pl("fill-extrusion",this.layers,this.pixelRatio,t),this.featuresOnBorder=[],this.borderFeatureIndices=[[],[],[],[]],this.borderDoneWithNeighborZ=[-1,-1,-1,-1],this.selfDEMTileTimestamp=Number.MAX_VALUE,this.borderDEMTileTimestamp=[Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE],this.tileToMeter=Rl(i),this.edgeRadius=this.layers[0].layout.get("fill-extrusion-edge-radius")/this.tileToMeter,this.wallMode=0!==this.layers[0].paint.get("fill-extrusion-line-width").constantOr(1);for(const{feature:n,id:o,index:s,sourceLayerIndex:a}of e){const e=this.layers[0]._featureFilter.needGeometry,l=jl(n,e);if(!this.layers[0]._featureFilter.filter(new ea(this.zoom,{worldview:this.worldview,activeFloors:t.activeFloors}),l,i))continue;const c={id:o,sourceLayerIndex:a,index:s,geometry:e?l.geometry:Hl(n,i,r),properties:n.properties,type:n.type,patterns:{}},h=this.layoutVertexArray.length,u="Polygon"===Z_[c.type];if(this.hasPattern)this.features.push({featureId:n.id,feature:Al("fill-extrusion",this.layers,c,this.zoom,this.pixelRatio,t)});else if(this.wallMode)for(const o of c.geometry)for(const e of J_(o,u))this.addFeature(n.id,c,[e],s,i,{},t.availableImages,r,t.brightness);else this.addFeature(n.id,c,c.geometry,s,i,{},t.availableImages,r,t.brightness);t.featureIndex.insert(n,c.geometry,s,a,this.index,h)}this._finalizeBuildingGroups(),this.sortBorders(),"mercator"===this.projection.name&&this.splitToSubtiles(),this.groundEffect.prepareBorderSegments(),this.polygonSegments.length=0}addFeatures(e,t,i,r,n,o){for(const{featureId:s,feature:a}of this.features){const e="Polygon"===Z_[a.type],{geometry:l}=a;if(this.wallMode)for(const c of l)for(const l of J_(c,e))this.addFeature(s,a,[l],a.index,t,i,r,n,o);else this.addFeature(s,a,l,a.index,t,i,r,n,o)}this._finalizeBuildingGroups(),this.sortBorders(),"mercator"===this.projection.name&&this.splitToSubtiles()}update(e,t,i,r,n,o,s){this.programConfigurations.updatePaintArrays(e,t,n,i,r,o,s,this.worldview),this.groundEffect.update(e,t,n,i,r,o,s,this.worldview)}updateExpressions(e){this.programConfigurations.updateExpressions(e),this.groundEffect.programConfigurations.updateExpressions(e)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload||this.groundEffect.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,j_),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.wallVertexBuffer=e.createVertexBuffer(this.wallVertexArray,U_.members),this.layoutVertexExtArray&&(this.layoutVertexExtBuffer=e.createVertexBuffer(this.layoutVertexExtArray,H_.members,!0)),this.groundEffect.upload(e)),this.groundEffect.uploadPaintProperties(e),this.programConfigurations.upload(e),this.uploaded=!0}uploadCentroid(e){this.groundEffect.uploadHiddenByLandmark(e),this.needsCentroidUpdate&&(!this.centroidVertexBuffer&&this.centroidVertexArray.length>0?this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,N_.members,!0):this.centroidVertexBuffer&&this.centroidVertexBuffer.updateData(this.centroidVertexArray),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.layoutVertexExtBuffer&&this.layoutVertexExtBuffer.destroy(),this.groundEffect.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,i,r,n,o,s,a,l){const c=this.layers[0].paint.get("fill-extrusion-flood-light-ground-radius").evaluate(t,{})/this.tileToMeter,h=[new we(0,0),new we(Yr,Yr)],u=a.projection,d="globe"===u.name,f=this.wallMode||"Polygon"===Z_[t.type],p=new uy;p.centroidDataIndex=this.centroidData.length;const A=new cy;A.buildingId=e,t.properties&&Object.hasOwn(t.properties,"building_id")&&(A.buildingId=Number(t.properties.building_id)),p.buildingId=A.buildingId;const g=this.layers[0].paint.get("fill-extrusion-base").evaluate(t,{},n)<=0,m=this.layers[0].paint.get("fill-extrusion-height").evaluate(t,{},n);let _;if(A.height=m,A.vertexArrayOffset=this.layoutVertexArray.length,A.groundVertexArrayOffset=this.groundEffect.vertexArray.length,d&&!this.layoutVertexExtArray&&(this.layoutVertexExtArray=new cc),this.wallMode){if(d)return void lt("Non zero fill-extrusion-line-width is not yet supported on globe.");if(1!==i.length)return;_=function(e){const t=e[0].x===e.at(-1).x&&e[0].y===e.at(-1).y,i=function(e){let t=0;const i=e.length;for(let r=0;r<i;r++)t+=(e[(r+1)%i].x-e[r].x)*(e[(r+1)%i].y+e[r].y);return t>=0}(e);i||(e=e.reverse());const r={geometry:[],joinNormals:[],indices:[]},n=[],o=[],s=[];let a=e.length;for(;a>=2&&e[a-1].equals(e[a-2]);)a--;if(a<(t?3:2))return r;let l,c,h,u,d,f=0;for(;f<a-1&&e[f].equals(e[f+1]);)f++;t&&(l=e[a-2],d=e[f].sub(l)._unit()._perp());for(let A=f;A<a;A++){if(h=A===a-1?t?e[f+1]:void 0:e[A+1],h&&e[A].equals(h))continue;d&&(u=d),l&&(c=l),l=e[A],d=h?h.sub(l)._unit()._perp():u,u=u||d;let i=u.add(d);0===i.x&&0===i.y||i._unit();const r=i.x*d.x+i.y*d.y,p=0!==r?1/r:1/0,g=u.x*d.y-u.y*d.x>0;let m="miter";const _=2;"miter"===m&&p>_&&(m="bevel"),"bevel"===m&&(p>100&&(m="flipbevel"),p<_&&(m="miter"));const y=(e,t,i,r)=>{const a=new we(e.x,e.y),l=new we(e.x,e.y);a.x+=t.x*r,a.y+=t.y*r,l.x-=t.x*Math.max(i,1),l.y-=t.y*Math.max(i,1),s.push(t),n.push(a),o.push(l)};if("miter"===m)i._mult(p),y(l,i,0,0);else if("flipbevel"===m)i=d.mult(-1),y(l,i,0,0),y(l,i.mult(-1),0,0);else{const e=-Math.sqrt(p*p-1),t=g?e:0,i=g?0:e;c&&y(l,u,t,i),h&&y(l,d,t,i)}}r.geometry=[...n,...o.reverse(),n[0]],r.joinNormals=[...s,...s.reverse(),s.at(-1)];const p=r.geometry.length-1;for(let A=0;A<p/2;A++)if(A+1<p/2){let e=A,t=A+1,i=p-1-A,n=p-2-A;e=0===e?p-1:e-1,t=0===t?p-1:t-1,i=0===i?p-1:i-1,n=0===n?p-1:n-1,r.indices.push(i),r.indices.push(t),r.indices.push(e),r.indices.push(i),r.indices.push(n),r.indices.push(t)}return r}(i[0]),i=[_.geometry]}const y=(e,t)=>e<(t.length-1)/2||e===t.length-1,x=this.wallMode?[i]:Te(i,500);for(let I=x.length-1;I>=0;I--){const e=x[I];(0===e.length||wy(e[0]))&&x.splice(I,1)}let v;if(d)v=Cy(x,h,n);else{v=[];for(const e of x)v.push({polygon:e,bounds:h})}const w=f?this.edgeRadius:0,E=w>0&&this.zoom<17,b=(e,t)=>{if(0===e.length)return!1;const i=e.at(-1);return t.x===i.x&&t.y===i.y};for(const{polygon:I,bounds:C}of v){let e=0,t=0;for(const n of I)f&&!n[0].equals(n.at(-1))&&n.push(n[0]),t+=f?n.length-1:n.length;const i=this.segments.prepareSegment((f?5:4)*t,this.layoutVertexArray,this.indexArray);A.footprintSegIdx<0&&(A.footprintSegIdx=this.footprintSegments.length),A.polygonSegIdx<0&&(A.polygonSegIdx=this.polygonSegments.length);const r={triangleArrayOffset:this.indexArray.length,triangleCount:0,triangleSegIdx:this.segments.segments.length-1},o=new ay;if(o.vertexOffset=this.footprintVertices.length,o.indexOffset=3*this.footprintIndices.length,o.ringIndices=[],f){const t=[],r=[];e=i.vertexLength;for(let e=0;e<I.length;e++){const s=I[e];s.length&&0!==e&&r.push(t.length/2);const a=[];let l,h;l=s[1].sub(s[0])._perp()._unit(),o.ringIndices.push(s.length-1);for(let e=1;e<s.length;e++){const r=s[e],o=s[e===s.length-1?1:e+1],c=r.clone();if(w){h=o.sub(r)._perp()._unit();const e=l.add(h)._unit(),t=w*Math.min(4,1/(l.x*e.x+l.y*e.y));c.x+=t*e.x,c.y+=t*e.y,c.x=Math.round(c.x),c.y=Math.round(c.y),l=h}if(!g||0!==w&&!E||b(a,c)||a.push(c),ry(this.layoutVertexArray,c.x,c.y,0,0,1,1,0),this.wallMode){const t=y(e,s);ny(this.wallVertexArray,_.joinNormals[e],!t)}i.vertexLength++,this.footprintVertices.emplaceBack(r.x,r.y),t.push(r.x,r.y),d&&sy(this.layoutVertexExtArray,u.projectTilePoint(c.x,c.y,n),u.upVector(n,c.x,c.y))}g&&(0===w||E)&&(0!==a.length&&b(a,a[0])&&a.pop(),this.groundEffect.addData(a,C,c))}const s=this.wallMode?_.indices:Ua(t,r);for(let n=0;n<s.length;n+=3)this.footprintIndices.emplaceBack(o.vertexOffset+s[n+0],o.vertexOffset+s[n+1],o.vertexOffset+s[n+2]),this.indexArray.emplaceBack(e+s[n],e+s[n+2],e+s[n+1]),i.primitiveLength++;o.indexCount+=s.length,o.vertexCount+=this.footprintVertices.length-o.vertexOffset}for(let s=0;s<I.length;s++){const t=I[s];p.startRing(A,t[0]);let r=t.length>4&&Ey(t[t.length-2],t[0],t[1]),o=w?_y(t[t.length-2],t[0],t[1],w):0;const a=[];let l,h,m;h=t[1].sub(t[0])._perp()._unit();let x=!0;for(let s=1,c=0;s<t.length;s++){let f=t[s-1],v=t[s];const E=t[s===t.length-1?1:s+1];if(p.appendEdge(A,v,f),xy(v,f,C)){w&&(h=E.sub(v)._perp()._unit(),x=!x);continue}const I=v.sub(f)._perp(),B=I.x/(Math.abs(I.x)+Math.abs(I.y)),D=I.y>0?1:0,T=f.dist(v);if(c+T>32768&&(c=0),w){m=E.sub(v)._perp()._unit();let e=yy(f,v,E,my(h,m),w);isNaN(e)&&(e=0);const t=v.sub(f)._unit();f=f.add(t.mult(o))._round(),v=v.add(t.mult(-e))._round(),o=e,h=m,g&&this.zoom>=17&&(b(a,f)||a.push(f),b(a,v)||a.push(v))}const M=i.vertexLength,Q=t.length>4&&Ey(f,v,E);let S=by(c,r,x);if(ry(this.layoutVertexArray,f.x,f.y,B,D,0,0,S),ry(this.layoutVertexArray,f.x,f.y,B,D,0,1,S),this.wallMode){const e=y(s-1,t),i=_.joinNormals[s-1];ny(this.wallVertexArray,i,e),ny(this.wallVertexArray,i,e)}if(c+=T,S=by(c,Q,!x),r=Q,ry(this.layoutVertexArray,v.x,v.y,B,D,0,0,S),ry(this.layoutVertexArray,v.x,v.y,B,D,0,1,S),this.wallMode){const e=y(s,t),i=_.joinNormals[s];ny(this.wallVertexArray,i,e),ny(this.wallVertexArray,i,e)}if(i.vertexLength+=4,this.indexArray.emplaceBack(M+0,M+1,M+2),this.indexArray.emplaceBack(M+1,M+3,M+2),i.primitiveLength+=2,w){const r=e+(1===s?t.length-2:s-2),n=1===s?e:r+1;if(this.indexArray.emplaceBack(M+1,r,M+3),this.indexArray.emplaceBack(r,n,M+3),i.primitiveLength+=2,void 0===l&&(l=M),!xy(E,t[s],C)){const e=s===t.length-1?l:i.vertexLength;this.indexArray.emplaceBack(M+2,M+3,e),this.indexArray.emplaceBack(M+3,e+1,e),this.indexArray.emplaceBack(M+3,n,e+1),i.primitiveLength+=3}x=!x}if(d){const e=this.layoutVertexExtArray,t=u.projectTilePoint(f.x,f.y,n),i=u.projectTilePoint(v.x,v.y,n),r=u.upVector(n,f.x,f.y),o=u.upVector(n,v.x,v.y);sy(e,t,r),sy(e,t,r),sy(e,i,o),sy(e,i,o)}}f&&(e+=t.length-1),g&&w&&this.zoom>=17&&(0!==a.length&&b(a,a[0])&&a.pop(),this.groundEffect.addData(a,C,c,w>0))}this.footprintSegments.push(o),r.triangleCount=this.indexArray.length-r.triangleArrayOffset,this.polygonSegments.push(r),++A.footprintSegLen,++A.polygonSegLen}if(A.vertexCount=this.layoutVertexArray.length-A.vertexArrayOffset,A.groundVertexCount=this.groundEffect.vertexArray.length-A.groundVertexArrayOffset,0!==A.vertexCount){if(A.centroidXY=p.borders?ey:this.encodeCentroid(p,A),t.properties&&Object.hasOwn(t.properties,"building_id")){const e=A.buildingId;let t=this.buildingGroups.get(e);t||(t={accX:0,accY:0,accCount:0,mergedMin:new we(Number.MAX_VALUE,Number.MAX_VALUE),mergedMax:new we(-Number.MAX_VALUE,-Number.MAX_VALUE),partIndices:[]},this.buildingGroups.set(e,t)),t.accX+=p.acc.x,t.accY+=p.acc.y,t.accCount+=p.accCount,t.mergedMin.x=Math.min(t.mergedMin.x,A.min.x),t.mergedMin.y=Math.min(t.mergedMin.y,A.min.y),t.mergedMax.x=Math.max(t.mergedMax.x,A.max.x),t.mergedMax.y=Math.max(t.mergedMax.y,A.max.y),t.partIndices.push(this.centroidData.length)}if(this.centroidData.push(A),p.borders){this.featuresOnBorder.push(p);const e=this.featuresOnBorder.length-1;for(let t=0;t<p.borders.length;t++)p.borders[t][0]!==Number.MAX_VALUE&&this.borderFeatureIndices[t].push(e)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,o,s,n,l,void 0,this.worldview),this.groundEffect.addPaintPropertiesData(t,r,o,s,n,l,this.worldview),this.maxHeight=Math.max(this.maxHeight,m)}}_finalizeBuildingGroups(){for(const[,e]of this.buildingGroups){if(0===e.partIndices.length)continue;const t=new uy;t.acc=new we(e.accX,e.accY),t.accCount=e.accCount;const i=new cy;i.min=e.mergedMin,i.max=e.mergedMax;const r=this.encodeCentroid(t,i),n=t.centroid();for(const o of e.partIndices){const t=this.centroidData.get(o);t.centroidXY.x===ey.x&&t.centroidXY.y===ey.y||(t.centroidXY=r),t.min=e.mergedMin,t.max=e.mergedMax,t.groupCentroidPos=n}}this.buildingGroups.clear()}sortBorders(){for(let e=0;e<this.borderFeatureIndices.length;e++)this.borderFeatureIndices[e].sort((t,i)=>this.featuresOnBorder[t].borders[e][0]-this.featuresOnBorder[i].borders[e][0])}splitToSubtiles(){const e=[];for(let s=0;s<this.centroidData.length;s++){const t=this.centroidData.get(s),i=+(t.min.y+t.max.y>Yr),r=2*i+(+(t.min.x+t.max.x>Yr)^i);for(let n=0;n<t.polygonSegLen;n++){const i=t.polygonSegIdx+n;e.push({centroidIdx:s,subtile:r,polygonSegmentIdx:i,triangleSegmentIdx:this.polygonSegments[i].triangleSegIdx})}}const t=new yc;e.sort((e,t)=>e.triangleSegmentIdx===t.triangleSegmentIdx?e.subtile-t.subtile:e.triangleSegmentIdx-t.triangleSegmentIdx);let i=0,r=0,n=0;for(const s of e){if(s.triangleSegmentIdx!==i)break;n++}const o=e.length;for(;r!==e.length;){i=e[r].triangleSegmentIdx;let s=0,a=r,l=r;for(let t=a;t<n&&e[t].subtile===s;t++)l++;for(;a!==n;){const r=e[a];s=r.subtile;const o=this.centroidData.get(r.centroidIdx).min.clone(),c=this.centroidData.get(r.centroidIdx).max.clone(),h={vertexOffset:this.segments.segments[i].vertexOffset,primitiveOffset:t.length,vertexLength:this.segments.segments[i].vertexLength,primitiveLength:0,sortKey:void 0,vaos:{}};for(let i=a;i<l;i++){const r=e[i],n=this.polygonSegments[r.polygonSegmentIdx],s=this.centroidData.get(r.centroidIdx).min,a=this.centroidData.get(r.centroidIdx).max,l=this.indexArray.uint16;for(let e=n.triangleArrayOffset;e<n.triangleArrayOffset+n.triangleCount;e++)t.emplaceBack(l[3*e],l[3*e+1],l[3*e+2]);h.primitiveLength+=n.triangleCount,o.x=Math.min(o.x,s.x),o.y=Math.min(o.y,s.y),c.x=Math.max(c.x,a.x),c.y=Math.max(c.y,a.y)}h.primitiveLength>0&&this.triangleSubSegments.push({segment:h,min:o,max:c}),a=l;for(let t=a;t<n&&e[t].subtile===e[a].subtile;t++)l++}r=n;for(let t=r;t<o&&e[t].triangleSegmentIdx===e[r].triangleSegmentIdx;t++)n++}t._trim(),this.indexArray=t}getVisibleSegments(e,t,i){const r=new Kc;if(this.wallMode){for(const e of this.triangleSubSegments)r.segments.push(e.segment);return r}let n=0,o=0;const s=1<<e.canonical.z;if(t){const i=t.getMinMaxForTile(e);i&&(n=i.min,o=i.max)}o+=this.maxHeight;const a=e.toUnwrapped();let l;const c=[a.canonical.x/s+a.wrap,a.canonical.y/s],h=[(a.canonical.x+1)/s+a.wrap,(a.canonical.y+1)/s],u=(e,t,i)=>[vi(e[0],t[0],i[0]),vi(e[1],t[1],i[1])],d=[],f=[];for(const p of this.triangleSubSegments){d[0]=p.min.x/Yr,d[1]=p.min.y/Yr,f[0]=p.max.x/Yr,f[1]=p.max.y/Yr;const e=u(c,h,d),t=u(c,h,f);if(0===new bp([e[0],e[1],n],[t[0],t[1],o]).intersectsPrecise(i)){l&&(r.segments.push(l),l=void 0);continue}const s=p.segment;l&&l.vertexOffset!==s.vertexOffset&&(r.segments.push(l),l=void 0),l?(l.vertexLength+=s.vertexLength,l.primitiveLength+=s.primitiveLength):l={vertexOffset:s.vertexOffset,primitiveLength:s.primitiveLength,vertexLength:s.vertexLength,primitiveOffset:s.primitiveOffset,sortKey:void 0,vaos:{}}}return l&&r.segments.push(l),r}encodeCentroid(e,t){const i=e.centroid(),r=t.span(),n=Math.min(7,Math.round(r.x*this.tileToMeter/10)),o=Math.min(6,Math.round(r.y*this.tileToMeter/10));return new we(Je(i.x,1,8191)<<3|n,Je(i.y,1,8191)<<3|o)}encodeBorderCentroid(e){if(!e.borders)return new we(0,0);const t=e.borders,i=Number.MAX_VALUE;if(t[0][0]!==i||t[1][0]!==i){const e=t[0][0]!==i?0:1;return new we(6|(t[0][0]!==i?0:65528),(t[e][0]+t[e][1])/2<<3|6)}{const e=t[2][0]!==i?2:3;return new we((t[e][0]+t[e][1])/2<<3|6,6|(t[2][0]!==i?0:65528))}}showCentroid(e){const t=this.centroidData.get(e.centroidDataIndex);if(t.flags&=ty,0!==t.groupCentroidPos.x||0!==t.groupCentroidPos.y){const e=t.span(),i=Math.min(7,Math.round(e.x*this.tileToMeter/10)),r=Math.min(6,Math.round(e.y*this.tileToMeter/10));t.centroidXY=new we(Je(t.groupCentroidPos.x,1,8191)<<3|i,Je(t.groupCentroidPos.y,1,8191)<<3|r)}else t.centroidXY=new we(0,0);this.writeCentroidToBuffer(t)}writeCentroidToBuffer(e){this.groundEffect.updateHiddenByLandmark(e);const t=e.vertexArrayOffset,i=e.vertexCount+e.vertexArrayOffset,r=-1073741824&e.flags?ey:e.centroidXY,n=this.centroidVertexArray.geta_centroid_pos0(t);if(this.centroidVertexArray.geta_centroid_pos1(t)!==r.y||n!==r.x){for(let e=t;e<i;++e)this.centroidVertexArray.emplace(e,r.x,r.y);this.needsCentroidUpdate=!0}}createCentroidsBuffer(){this.centroidVertexArray.resize(this.layoutVertexArray.length),this.groundEffect.hiddenByLandmarkVertexArray.resize(this.groundEffect.vertexArray.length);for(const e of this.centroidData)this.writeCentroidToBuffer(e)}updateReplacement(e,t,i){if(t.updateTime===this.replacementUpdateTime)return;this.replacementUpdateTime=t.updateTime;const r=t.getReplacementRegionsForTile(e.toUnwrapped());if(SA(this.activeReplacements,r))return;if(this.activeReplacements=r,0===this.centroidVertexArray.length)this.createCentroidsBuffer();else for(const o of this.centroidData)o.flags&=1073741823;const n=[];for(const o of this.activeReplacements){if(o.order<i)continue;const t=Math.max(1,Math.pow(2,o.footprintTileId.canonical.z-e.canonical.z));if(o.footprint.buildingIds)for(const e of this.centroidData)e.flags&ty||e.flags&iy||o.min.x>e.max.x||e.min.x>o.max.x||o.min.y>e.max.y||e.min.y>o.max.y||o.footprint.buildingIds.has(e.buildingId)&&(e.flags|=o.clipMask!==Y_.None?-1073741824:ty);else for(const i of this.centroidData)if(!(i.flags&ty||i.flags&iy||o.min.x>i.max.x||i.min.x>o.max.x||o.min.y>i.max.y||i.min.y>o.max.y))for(let r=0;r<i.footprintSegLen;r++){const s=this.footprintSegments.get(i.footprintSegIdx+r);if(n.length=0,By(this.footprintVertices,s.vertexOffset,s.vertexCount,o.footprintTileId.canonical,e.canonical,n),zA
vendor: 5,733 bytes, line 1
1(o.footprint,n,this.footprintIndices.uint16,s.indexOffset,s.indexCount,-s.vertexOffset,-t)){i.flags|=o.clipMask!==Y_.None?-1073741824:ty;break}}}for(const o of this.centroidData)this.writeCentroidToBuffer(o);this.borderDoneWithNeighborZ=[-1,-1,-1,-1]}footprintContainsPoint(e,t,i){let r=!1;for(let n=0;n<i.footprintSegLen;n++){const o=this.footprintSegments.get(i.footprintSegIdx+n);let s=0;for(const i of o.ringIndices){for(let n=s,a=i+s-1;n<i+s;a=n++){const i=this.footprintVertices.int16[2*(n+o.vertexOffset)+0],s=this.footprintVertices.int16[2*(n+o.vertexOffset)+1],l=this.footprintVertices.int16[2*(a+o.vertexOffset)+1];s>t!=l>t&&e<(this.footprintVertices.int16[2*(a+o.vertexOffset)+0]-i)*(t-s)/(l-s)+i&&(r=!r)}s=i}}return r}getHeightAtTileCoord(e,t){let i=Number.NEGATIVE_INFINITY,r=!0;const n=4*(e+Yr)*Yr+(t+Yr);if(Object.hasOwn(this.partLookup,n)){const e=this.partLookup[n];return e?{height:e.height,hidden:!!(e.flags&ty)}:void 0}const o=this.centroidData.buffer,s=this.centroidData.length;for(let a=0;a<s;a++){const s=15*a;if(e>o[s+4]||o[s+2]>e||t>o[s+5]||o[s+3]>t)continue;const l=o[s+13];if(l<=i)continue;const c=this.centroidData.get(a);this.footprintContainsPoint(e,t,c)&&(i=l,this.partLookup[n]=c,r=!!(c.flags&ty))}if(i!==Number.NEGATIVE_INFINITY)return{height:i,hidden:r};this.partLookup[n]=void 0}}function my(e,t){const i=e.add(t)._unit();return e.x*i.x+e.y*i.y}function _y(e,t,i,r){const n=t.sub(e)._perp()._unit(),o=i.sub(t)._perp()._unit();return yy(e,t,i,my(n,o),r)}function yy(e,t,i,r,n){const o=Math.sqrt(1-r*r);return Math.min(e.dist(t)/3,t.dist(i)/3,n*o/r)}function xy(e,t,i){return e.x<i[0].x&&t.x<i[0].x||e.x>i[1].x&&t.x>i[1].x||e.y<i[0].y&&t.y<i[0].y||e.y>i[1].y&&t.y>i[1].y}function vy(e,t){return e.x<t[0].x||e.x>t[1].x||e.y<t[0].y||e.y>t[1].y}function wy(e){return e.every(e=>e.x<=0)||e.every(e=>e.x>=Yr)||e.every(e=>e.y<=0)||e.every(e=>e.y>=Yr)}function Ey(e,t,i){if(e.x<0||e.x>=Yr||t.x<0||t.x>=Yr||i.x<0||i.x>=Yr)return!1;const r=i.sub(t),n=r.perp(),o=e.sub(t);return(r.x*o.x+r.y*o.y)/Math.sqrt((r.x*r.x+r.y*r.y)*(o.x*o.x+o.y*o.y))>-.866&&n.x*o.x+n.y*o.y<0}function by(e,t,i){const r=t?2|e:-3&e;return i?1|r:-2&r}function Iy(){const e=Math.PI/32,t=Math.tan(e),i=El;return i*Math.sqrt(1+2*t*t)-i}function Cy(e,t,i){const r=1<<i.z,n=Er(i.x/r),o=Er((i.x+1)/r),s=br(i.y/r),a=br((i.y+1)/r);return function(e,t,i,r,n=0,o){const s=[];if(!e.length||!i||!r)return s;const a=(e,t)=>{for(const i of e)s.push({polygon:i,bounds:t})},l=Math.ceil(Math.log2(i)),c=Math.ceil(Math.log2(r)),h=l-c,u=[];for(let p=0;p<Math.abs(h);p++)u.push(h>0?0:1);for(let p=0;p<Math.min(l,c);p++)u.push(0),u.push(1);let d=e;if(d=G_(d,t[0].y-n,t[1].y+n,1),d=G_(d,t[0].x-n,t[1].x+n,0),!d.length)return s;const f=[];for(u.length?f.push({polygons:d,bounds:t,depth:0}):a(d,t);f.length;){const e=f.pop(),t=e.depth,i=u[t],r=e.bounds[0],s=e.bounds[1],l=0===i?r.x:r.y,c=0===i?s.x:s.y,h=o?o(i,l,c):.5*(l+c),d=G_(e.polygons,l-n,h+n,i),p=G_(e.polygons,h-n,c+n,i);if(d.length){const e=[r,new we(0===i?h:s.x,1===i?h:s.y)];u.length>t+1?f.push({polygons:d,bounds:e,depth:t+1}):a(d,e)}if(p.length){const e=[new we(0===i?h:r.x,1===i?h:r.y),s];u.length>t+1?f.push({polygons:p,bounds:e,depth:t+1}):a(p,e)}}return s}(e,t,Math.ceil((o-n)/11.25),Math.ceil((s-a)/11.25),1,(e,t,n)=>{if(0===e)return.5*(t+n);{const e=br((i.y+t/Yr)/r);return(wr(.5*(br((i.y+n/Yr)/r)+e))*r-i.y)*Yr}})}function By(e,t,i,r,n,o){const s=Math.pow(2,r.z-n.z);for(let a=0;a<i;a++){let i=e.int16[2*(a+t)+0],l=e.int16[2*(a+t)+1];i=(i+n.x*Yr)*s-r.x*Yr,l=(l+n.y*Yr)*s-r.y*Yr,o.push(new we(i,l))}}ts(gy,"FillExtrusionBucket",{omit:["layers","features"]}),ts(cy,"PartData"),ts(hy,"PartDataArray"),ts(ly,"FootprintSegmentArray"),ts(uy,"BorderCentroidData"),ts(Ay,"GroundEffect");const Dy=4096;class Ty{constructor(e){this.module=e,this.memoryStack=this.module.malloc(Dy),this.memoryStackNextFree=this.memoryStack}createIntArray(e){const t=this.memoryStackNextFree;return this.memoryStackNextFree+=e.length*Int32Array.BYTES_PER_ELEMENT,this.memoryStackNextFree-this.memoryStack>Dy?-1:(new Int32Array(this.module.heap32.buffer,t,e.length).set(e),t)}createFloatArray(e){const t=this.memoryStackNextFree;return this.memoryStackNextFree+=e.length*Float32Array.BYTES_PER_ELEMENT,this.memoryStackNextFree-this.memoryStack>Dy?-1:(new Float32Array(this.module.heapF32.buffer,t,e.length).set(e),t)}readStringBuffer(e){let t="";for(;0!==this.module.heapU8[e];)t+=String.fromCharCode(this.module.heapU8[e]),++e;return t}setStyle(e){const t=e.normalScale;this.module.setStyle(t[0],t[1],t[2],e.tileToMeters)}setAOOptions(e,t){this.module.setAOOptions(e?1:0,t)}setMetricOptions(e,t){this.module.setMetricOptions(e?1:0,t)}setStructuralOptions(e){this.module.setStructuralOptions(e?1:0)}setFacadeOptions(e,t){this.module.setFacadeOptions(e,t?1:0)}setFauxFacadeOptions(e,t,i){this.module.setFauxFacadeOptions(e?1:0,t?1:0,i)}setFacadeClassifierOptions(e){this.module.setFacadeClassifierOptions(e)}generateMesh(e,t){this.memoryStackNextFree=this.memoryStack;for(const s of e){const e=this.createIntArray(s.ringIndices),t=this.createFloatArray(s.coordinates);if(-1===e||-1===t)return`building_gen: Out of stack memory: ${this.memoryStackNextFree-this.memoryStack}/4096`;this.module.addFeature(s.id,s.sourceId,s.minHeight,s.height,s.roofType,t,e,s.ringIndices.length-1)}for(const s of t){let e;e=s.entrances?JSON.parse(s.entrances):[];const t=this.createFloatArray(e),i=this.createFloatArray(s.coordinates);if(-1===t||-1===i)return`building_gen: Out of stack memory: ${this.memoryStackNextFree-this.memoryStack}/4096`;this.module.addFacade(s.sourceId,s.crossPerc,s.distanceToRoad,t,e.length,i,s.coordinates.length)}if(!this.module.generateMesh()){const e=this.module.getLastError();return this.readStringBuffer(e)}
vendor: 20,498 bytes, line 1
1const i=this.module.getMeshCount(),r=new Array(i);for(let s=0;s<i;s++){const e=this.module.getPositionsPtr(s),t=this.module.getPositionsLength(s),i=new Float32Array(this.module.heapF32.buffer,e,t),n=this.module.getNormalsPtr(s),o=this.module.getNormalsLength(s),a=new Float32Array(this.module.heapF32.buffer,n,o),l=this.module.getAOPtr(s),c=this.module.getAOLength(s),h=new Float32Array(this.module.heapF32.buffer,l,c),u=this.module.getUVPtr(s),d=this.module.getUVLength(s),f=new Float32Array(this.module.heapF32.buffer,u,d),p=this.module.getFauxFacadePtr(s),A=this.module.getFauxFacadeLength(s),g=new Uint8Array(this.module.heapU8.buffer,p,A),m=this.module.getIndicesPtr(s),_=this.module.getIndicesLength(s),y=new Int16Array(this.module.heap16.buffer,m,_),x=this.module.getBuildingPart(s);r[s]={positions:i,normals:a,ao:h,uv:f,isFauxFacade:g,indices:y,buildingPart:x}}const n=this.module.getRingCount(),o=[];for(let s=0;s<n;s++){const e=this.module.getRingPtr(s),t=this.module.getRingLength(s),i=new Float32Array(this.module.heapF32.buffer,e,t);o.push(i)}return{meshes:r,outerRingLength:this.module.getOuterRingLength(),modifiedPolygonRings:o}}}const My=Uh.types,Qy=32767;function Sy(e,t){const i=Yr+t;for(const r of e)for(const e of r)if(e.x<-t||e.x>i||e.y<-t||e.y>i)return!1;return!0}function Py(e){switch(e){case"flat":return 3;case"hipped":return 1;case"gabled":return 2;case"parapet":return 0;case"mansard":return 4;case"skillion":return 5;case"pyramidal":return 6;default:throw new Error(`Unknown roof shape: ${e}`)}}let Ry,zy,Ly=null,Fy=null,Oy=null;class ky{constructor(){this.layoutVertexArray=new sc,this.layoutAttenuationArray=new dc,this.layoutColorArray=new pc,this.indexArray=new yc,this.indexArrayForConflation=new yc,this.segmentsBucket=new Kc}}class Ny{constructor(e){this.layoutFacadePaintArray=null,this.layoutFacadeDataArray=null,this.layoutFacadeVerticalRangeArray=null,this.segmentsBucket=new Kc,this.entranceBloom=new ky;const t=66560;this.layoutVertexArray=new sc,this.layoutVertexArray.reserve(t),this.layoutNormalArray=new Xl,this.layoutNormalArray.reserve(t),this.layoutCentroidArray=new Xl,this.layoutCentroidArray.reserve(t),this.layoutColorArray=new pc,this.layoutColorArray.reserve(t),this.layoutFloodLightDataArray=new Sc,this.layoutFloodLightDataArray.reserve(t),this.layoutAOArray=new Pc,this.layoutAOArray.reserve(t),this.indexArray=new yc,this.indexArray.reserve(66560),this.indexArrayForConflation=new yc,this.segmentsBucket=new Kc,this.entranceBloom=new ky,e&&(this.layoutFacadePaintArray=new pc,this.layoutFacadeDataArray=new lc,this.layoutFacadeVerticalRangeArray=new pc)}reserve(e,t,i){this.layoutVertexArray.reserveForAdditional(e),this.layoutCentroidArray.reserveForAdditional(e),this.layoutFloodLightDataArray.reserveForAdditional(e),this.layoutNormalArray.reserveForAdditional(e),this.layoutAOArray.reserveForAdditional(e),this.layoutColorArray.reserveForAdditional(e),this.indexArray.reserveForAdditional(t),i&&(this.layoutFacadePaintArray.reserveForAdditional(e),this.layoutFacadeDataArray.reserveForAdditional(e),this.layoutFacadeVerticalRangeArray.reserveForAdditional(e))}}class Uy{constructor(e){this.requiresHDRuntime=!0,this.colorBufferUploaded=!1,this.maxHeight=0,this.replacementUpdateTime=0,this.activeReplacements=[],this.footprints=[],this.footprintsVertices=new Bc,this.footprintsIndices=new Tc,this.footprintsMin=new we(1/0,1/0),this.footprintsMax=new we(-1/0,-1/0),this.featuresOnBorder=[],this.buildingWithoutFacade=new Ny(!1),this.buildingWithFacade=new Ny(!0),this.indexArrayForConflationUploaded=!1,this.featureFootprintLookup=new Map,this.buildingIds=new Set,this.footprintLookup={},this.zoom=e.zoom,this.canonical=e.canonical,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.fqid),this.index=e.index,this.hasPattern=!1,this.worldview=e.worldview,this.lut=e.lut,this.programConfigurations=new bh(e.layers,{zoom:e.zoom,lut:e.lut}),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.projection=e.projection,this.groundEffect=new Ay(e),this.groundEffect.groundRadiusArray=new ec,this.hasAppearances=null}updateFootprints(e,t){const i=new zm([],[],1),r={vertices:[],indices:new Uint32Array(0),grid:i,min:this.footprintsMin,max:this.footprintsMax,buildingIds:this.buildingIds};t.push({footprint:r,id:e})}updateAppearances(e,t,i,r){return{hasLayoutChanges:!1,hasUboChanges:!1}}populate(e,t,i,r){if(!Oy)return;const n=Rl(i);this.tileToMeter=n,this.brightness=t.brightness,Oy.setStyle({normalScale:[1,-1,n],tileToMeters:n}),Oy.setAOOptions(!1,.3),Oy.setMetricOptions(!1,16),Oy.setStructuralOptions(!0),Oy.setFacadeClassifierOptions(3);const o=new Map,s=new Map;let a=0;for(const{feature:A}of e){if("LineString"!==My[A.type]){o.set(A.id,A.properties.source_id);continue}const e=this.layers[0]._featureFilter.needGeometry;if(e&&!this.layers[0]._featureFilter.filter(new ea(this.zoom),A,i))continue;const t=jl(A,e);if(!e&&!this.layers[0]._featureFilter.filter(new ea(this.zoom),t,i))continue;const n=e?t.geometry:Hl(A,i,r),l=[];for(const i of n)for(const e of i)l.push(e.x),l.push(e.y);const c={coordinates:l,crossPerc:A.properties.cross_perc,distanceToRoad:A.properties.distance_to_road,entrances:A.properties.entrances,sourceId:0},h=A.properties.source_id;let u=s.get(h);u||(u=[],s.set(h,u)),u.push(c),++a}this.maxHeight=0;const l=new Array,c=new Set,h=e=>{null!=e&&c.add(e)},u=(e,t)=>{null!=e&&l.push({buildingId:e,footprintIndex:t})},d=64*(e.length-a),f=d/2;this.buildingWithFacade.reserve(d,f,!0),this.buildingWithoutFacade.reserve(2*d,2*f,!1),this.footprintsIndices.reserve(16*(e.length-a)),this.footprintsVertices.reserve(8*(e.length-a));for(const{feature:A,id:g,index:m,sourceLayerIndex:_}of e){if("LineString"===My[A.type])continue;const e=this.layers[0]._featureFilter.needGeometry;if(e&&!this.layers[0]._featureFilter.filter(new ea(this.zoom),A,i))continue;let a=null;if(A.properties&&Object.hasOwn(A.properties,"building_id")&&(a=Number(A.properties.building_id),c.has(a)))continue;const l=jl(A,e);if(!e&&!this.layers[0]._featureFilter.filter(new ea(this.zoom),l,i))continue;const d=e?l.geometry:Hl(A,i,r),f=Te(d,500);let p=!1;for(const t of f)if(1!==t.length){p=!0;break}if(p){h(a);continue}if(!Sy(d,163)){h(a);continue}const y=this.layers[0],x=Py(y.layout.get("building-roof-shape").evaluate(A,{},i)),v=y.layout.get("building-base").evaluate(A,{},i),w=y.layout.get("building-height").evaluate(A,{},i),E=y.layout.get("building-flood-light-ground-radius").evaluate(A,{},i),b=y.paint.get("building-ambient-occlusion-intensity"),I=E/this.tileToMeter;A.properties["building-part"]="roof";const C=y.paint.get("building-color").evaluate(A,{},this.canonical).toPremultipliedRenderColor(this.lut),B=y.paint.get("building-emissive-strength").evaluate(A,{},this.canonical);A.properties["building-part"]="wall";const D=y.paint.get("building-color").evaluate(A,{},this.canonical).toPremultipliedRenderColor(this.lut),T=y.paint.get("building-emissive-strength").evaluate(A,{},this.canonical);A.properties["building-part"]="window";const M=y.paint.get("building-color").evaluate(A,{},this.canonical).toPremultipliedRenderColor(this.lut),Q=y.paint.get("building-emissive-strength").evaluate(A,{},this.canonical);A.properties["building-part"]="door";const S=y.paint.get("building-color").evaluate(A,{},this.canonical).toPremultipliedRenderColor(this.lut),P=y.paint.get("building-emissive-strength").evaluate(A,{},this.canonical);let R=y.layout.get("building-flood-light-wall-radius").evaluate(A,{},i);R=Je(R,0,2048);const z=R/2048*Qy,L=o.get(g),F=s.get(L)||[],O=0!==F.length&&y.layout.get("building-facade").evaluate(A,{},i);Oy.setFacadeOptions(4,!0),Oy.setFauxFacadeOptions(O,!1,1);let k=0,N=0,U=0,V=0,H=0,j=0,G=0,Y=0,W=0,J=0,Z=0;if(O){let e=Math.round(y.layout.get("building-facade-floors").evaluate(A,{},i));if(0===v){e=Math.max(1,e-(F.length>0?1:0));let t=4;if(w>100){const e=[10,13,15];t=e[A.id?A.id%e.length:0]}else w<=10&&(t=3);Oy.setFacadeOptions(t,!0),H=(w<15?1.3:1.61803)*t/n}else H=v/n;j=w/n,H=Math.min(H,j),U=y.layout.get("building-facade-unit-width").evaluate(A,{},i)/n,V=(j-H)/e,Oy.setFauxFacadeOptions(!0,!0,U);const t=y.layout.get("building-facade-window").evaluate(A,{},i);k=t[0],N=t[1],G=Math.floor(65535*Math.min(1,H/Yr)),Y=Math.floor(65535*Math.min(1,j/Yr)),W=Math.floor(255*k)<<8|Math.floor(255*N),J=Math.floor(65535*Math.min(1,U/Yr)),Z=Math.floor(65535*Math.min(1,V/Yr))}const q=Array(f.length),K={x:1/0,y:1/0},X={x:-1/0,y:-1/0},$={x:0,y:0};let ee=0;for(let t=0;t<f.length;t++){const e=f[t];if(e.length>0){const i=[],r=Array(e.length+1);r[0]=0;for(let t=0;t<e.length;t++){const n=e[t];for(let e=0;e<n.length;e++){const t=n[n.length-e-1];K.x=Math.min(K.x,t.x),K.y=Math.min(K.y,t.y),X.x=Math.max(X.x,t.x),X.y=Math.max(X.y,t.y),$.x+=t.x,$.y+=t.y,ee++,i.push(t.x),i.push(t.y)}r[t+1]=i.length}q[t]={id:A.id?A.id:0,height:w,minHeight:v,sourceId:0,roofType:x,coordinates:i,ringIndices:r}}}$.x/=ee||1,$.y/=ee||1;const te=Oy.generateMesh(q,F);if("string"==typeof te){lt(`Unable to generate building ${A.id}: ${te}`),h(a);continue}if(0===te.meshes.length||0===te.modifiedPolygonRings.length){h(a);continue}const ie=O?this.buildingWithFacade:this.buildingWithoutFacade;let re=0;for(const t of te.meshes)re+=t.positions.length/3;const ne=ie.segmentsBucket.prepareSegment(re,ie.layoutVertexArray,ie.indexArray),oe=[];let se=null,ae=0,le=-1;const ce=ie.layoutVertexArray.length,he=ce+re;ie.layoutVertexArray.resize(he),ie.layoutCentroidArray.resize(he),ie.layoutNormalArray.resize(he),ie.layoutAOArray.resize(he),ie.layoutColorArray.resize(he),ie.layoutFloodLightDataArray.resize(he),O&&(ie.layoutFacadePaintArray.resize(he),ie.layoutFacadeDataArray.resize(he),ie.layoutFacadeVerticalRangeArray.resize(he));const ue=ie.indexArray.length;let de=0,fe=ce;for(const t of te.meshes){let e,i;if(1===t.buildingPart)e=C,i=B;else if(0===t.buildingPart)e=D,i=T;else if(2===t.buildingPart)e=M,i=Q;else{if(3!==t.buildingPart)continue;e=S,i=P}if(i=Je(i,0,1),3===t.buildingPart){const e=new Array;for(let o=0;o<t.positions.length;o+=12){const i=t.positions[o+0],r=t.positions[o+1],n=t.positions[o+3],s=t.positions[o+4],a=t.positions[o+2],l=t.positions[o+8]-a,c=1,h=n-i,u=s-r,d=Math.hypot(h,u);e.push({pos:[i+.5*h,r+.5*u,a],normal:[u/d,-h/d,0],width:d,height:l,depth:c,points:[i,r,n,s]})}const i=ie.entranceBloom.segmentsBucket.prepareSegment(10*e.length,ie.entranceBloom.layoutVertexArray,ie.entranceBloom.indexArray),r=ie.entranceBloom.layoutVertexArray.length;ae=ie.entranceBloom.indexArray.length,C_(e,.5/this.tileToMeter,ie.entranceBloom.indexArray,ie.entranceBloom.layoutVertexArray,ie.entranceBloom.layoutAttenuationArray);const n=ie.entranceBloom.layoutVertexArray.length-r;le=ie.entranceBloom.indexArray.length-ae;for(let t=0;t<n;t++)ie.entranceBloom.layoutColorArray.emplaceBack(255*S.r<<8|255*S.g,255*S.b<<8|51*P);i.vertexLength+=n,i.primitiveLength+=le,se={part:t.buildingPart,vertexOffset:r,vertexLength:n}}ie.layoutVertexArray.float32.set(t.positions,3*fe);const r=t.positions.length/3;for(let f=0;f<r;++f){const r=3*f;de=Math.max(de,t.positions[r+2]);const n=t.normals[r+1]*Qy,o=t.normals[r+2]*Qy,s=3*(fe+f);ie.layoutNormalArray.int16[s]=t.normals[r]*Qy,ie.layoutNormalArray.int16[s+1]=n,ie.layoutNormalArray.int16[s+2]=o;const a=t.ao[f];ie.layoutAOArray.uint8[fe+f]=255*a;const l=1+(a-1)*b,c=255*e.b*l<<8|255*i;ie.layoutColorArray.uint16[2*(fe+f)]=255*e.r*l<<8|255*e.g*l,ie.layoutColorArray.uint16[2*(fe+f)+1]=c}const n=Math.min(8191,Math.max(0,Math.floor($.x))),o=Math.min(8191,Math.max(0,Math.floor($.y))),s=Math.floor(w),a=20,l=4*n+Math.min(3,Math.round((X.x-K.x)*this.tileToMeter/a)),c=4*o+Math.min(3,Math.round((X.y-K.y)*this.tileToMeter/a));for(let t=0;t<r;++t){const e=3*(fe+t);ie.layoutCentroidArray.int16[e]=l,ie.layoutCentroidArray.int16[e+1]=c,ie.layoutCentroidArray.int16[e+2]=s}if(ie.layoutFloodLightDataArray.int16.fill(0===t.buildingPart?z:0,fe,fe+r),O){const e=255*M.r<<8|255*M.g,i=255*M.b<<8|255*Q;for(let t=0;t<r;++t){const r=2*(fe+t);ie.layoutFacadePaintArray.uint16[r]=e,ie.layoutFacadePaintArray.uint16[r+1]=i}for(let n=0;n<r;++n)if(t.isFauxFacade[n]){const e=Math.min(65535,Math.floor(t.uv[2*n]*te.outerRingLength));ie.layoutFacadeDataArray.emplace(fe+n,1|e,W,J,Z),ie.layoutFacadeVerticalRangeArray.emplace(fe+n,G,Y)}else ie.layoutFacadeDataArray.emplace(fe+n,0,0,0,0),ie.layoutFacadeVerticalRangeArray.emplace(fe+n,0,0)}const h=ne.vertexLength,u=t.indices.length/3,d=ie.indexArray.length;ie.indexArray.resize(d+u);for(let f=0;f<u;++f){const e=3*f,i=3*d+e;ie.indexArray.uint16[i]=h+t.indices[e],ie.indexArray.uint16[i+1]=h+t.indices[e+1],ie.indexArray.uint16[i+2]=h+t.indices[e+2]}1!==t.buildingPart&&0!==t.buildingPart&&2!==t.buildingPart&&3!==t.buildingPart||oe.push({part:t.buildingPart,vertexOffset:fe,vertexLength:t.positions.length/3}),fe+=r,ne.vertexLength+=r,ne.primitiveLength+=t.indices.length/3}this.maxHeight=Math.max(this.maxHeight,de);const pe=ie.indexArray.length-ue,Ae=this.footprintsIndices.length,ge=this.footprintsVertices.length,me=[],_e=new we(1/0,1/0),ye=new we(-1/0,-1/0),xe=this.groundEffect.vertexArray.length;for(const t of te.modifiedPolygonRings){const e=[],i=new we(1/0,1/0),r=new we(-1/0,-1/0);for(let n=0;n<t.length;n+=2){const o=t.length-n-2;i.x=Math.min(i.x,t[o]),i.y=Math.min(i.y,t[o+1]),r.x=Math.max(r.x,t[o]),r.y=Math.max(r.y,t[o+1]);const s=new we(t[o],t[o+1]);e.push(s),me.push(s.x,s.y),this.footprintsVertices.emplaceBack(s.x,s.y)}_e.x=Math.min(_e.x,i.x),_e.y=Math.min(_e.y,i.y),ye.x=Math.max(ye.x,r.x),ye.y=Math.max(ye.y,r.y),this.groundEffect.addData(e,[i,r],I)}const ve=this.groundEffect.vertexArray.length-xe;this.groundEffect.groundRadiusArray.reserveForAdditional(ve);for(let t=0;t<ve;t++)this.groundEffect.groundRadiusArray.emplaceBack(E);(K.x<0||X.x>Yr||K.y<0||X.y>Yr)&&this.featuresOnBorder.push({featureId:A.id,footprintIndex:this.footprints.length});{const e=Ua(me,null,2);this.footprintsIndices.resize(this.footprintsIndices.length+e.length),this.footprintsIndices.uint16.set(e,Ae),this.buildingIds.add(null!=a?a:A.id),this.footprintsMin.x=Math.min(this.footprintsMin.x,_e.x),this.footprintsMin.y=Math.min(this.footprintsMin.y,_e.y),this.footprintsMax.x=Math.max(this.footprintsMax.x,ye.x),this.footprintsMax.y=Math.max(this.footprintsMax.y,ye.y);const t={footprintVertexOffset:ge,footprintVertexLength:this.footprintsVertices.length-ge,footprintIndexOffset:Ae,footprintIndexLength:this.footprintsIndices.length-Ae,min:_e,max:ye,hiddenFlags:0,indicesOffset:ue,indicesLength:pe,bloomIndicesOffset:ae,bloomIndicesLength:le,groundEffectVertexOffset:xe,groundEffectVertexLength:ve,hasFauxFacade:O,height:de,promoteId:g,feature:l,parts:oe,buildingBloom:se},i=this.footprints.length;void 0!==A.id&&this.featureFootprintLookup.set(A.id,i),u(a,i),this.footprints.push(t)}this.programConfigurations.populatePaintArrays(ie.layoutVertexArray.length,A,m,{},t.availableImages,i,t.brightness),this.groundEffect.addPaintPropertiesData(A,m,{},t.availableImages,i,t.brightness),t.featureIndex.insert(A,d,m,_,this.index,ce)}l.forEach(({buildingId:e,footprintIndex:t})=>{c.has(e)&&(this.footprints[t].hiddenFlags|=4)});const p=new Set;this.buildingIds.forEach((e,t,i)=>{c.has(e)||p.add(e)}),this.buildingIds=p,this.groundEffect.prepareBorderSegments()}update(e,t,i,r,n,o,s){this.programConfigurations.updatePaintArrays(e,t,n,i,r,o,s),this.groundEffect.update(e,t,n,i,r,o,s),this.evaluate(this.layers[0],e),this.colorBufferUploaded=!1}updateExpressions(e){this.programConfigurations.updateExpressions(e),this.groundEffect.programConfigurations.updateExpressions(e)}isEmpty(){return 0===this.buildingWithoutFacade.layoutVertexArray.length&&0===this.buildingWithFacade.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload||this.groundEffect.programConfigurations.needsUpload}upload(e){const t=t=>{t.layoutVertexBuffer=e.createVertexBuffer(t.layoutVertexArray,D_.members),t.layoutNormalBuffer=e.createVertexBuffer(t.layoutNormalArray,T_.members),t.layoutCentroidBuffer=e.createVertexBuffer(t.layoutCentroidArray,M_.members),t.layoutFloodLightDataBuffer=e.createVertexBuffer(t.layoutFloodLightDataArray,L_.members),t.layoutFacadeDataArray&&t.layoutFacadeDataArray.length&&(t.layoutFacadeDataBuffer=e.createVertexBuffer(t.layoutFacadeDataArray,P_.members)),t.layoutFacadeVerticalRangeArray&&t.layoutFacadeVerticalRangeArray.length&&(t.layoutFacadeVerticalRangeBuffer=e.createVertexBuffer(t.layoutFacadeVerticalRangeArray,R_.members)),t.entranceBloom.layoutVertexArray.length&&(t.entranceBloom.layoutVertexBuffer=e.createVertexBuffer(t.entranceBloom.layoutVertexArray,D_.members),t.entranceBloom.layoutAttenuationBuffer=e.createVertexBuffer(t.entranceBloom.layoutAttenuationArray,z_.members)),this.uploadUpdatedColorBuffer(e),this.uploadUpdatedIndexBuffer(e)};this.uploaded||(t(this.buildingWithoutFacade),t(this.buildingWithFacade),this.groundEffect.upload(e)),this.groundEffect.uploadPaintProperties(e),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){const e=e=>{e.layoutVertexBuffer&&(e.layoutVertexBuffer.destroy(),e.layoutNormalBuffer.destroy(),e.layoutColorBuffer.destroy(),e.segmentsBucket.destroy(),e.indexBuffer&&e.indexBuffer.destroy(),e.entranceBloom.layoutVertexBuffer&&(e.entranceBloom.layoutVertexBuffer.destroy(),e.entranceBloom.layoutColorBuffer.destroy(),e.entranceBloom.layoutAttenuationBuffer.destroy(),e.entranceBloom.indexBuffer.destroy(),e.entranceBloom.segmentsBucket.destroy()))};e(this.buildingWithoutFacade),e(this.buildingWithFacade),this.groundEffect.destroy(),this.programConfigurations.destroy()}updateFootprintHiddenFlags(e,t,i=!0){let r=!1;const n=i?t:0,o=0|(i?-1:~t);0===this.groundEffect.hiddenByLandmarkVertexArray.length&&this.groundEffect.hiddenByLandmarkVertexArray.resize(this.groundEffect.vertexArray.length);for(const s of e){const e=this.footprints[s],t=e.hiddenFlags&o|n;e.hiddenFlags!==t&&(e.hiddenFlags=t,r=!0,this.groundEffect.updateHiddenByLandmarkRange(e.groundEffectVertexOffset,e.groundEffectVertexLength,0!==e.hiddenFlags))}return r&&(this.indexArrayForConflationUploaded=!1),r}uploadUpdatedIndexBuffer(e){if(this.groundEffect.uploadHiddenByLandmark(e),this.indexArrayForConflationUploaded)return;const t=e=>{0!==e.indexArray.length&&(e.indexArrayForConflation.resize(e.indexArray.length),e.indexArrayForConflation.uint16.set(e.indexArray.uint16),e.entranceBloom.indexArrayForConflation.resize(e.entranceBloom.indexArray.length),e.entranceBloom.indexArrayForConflation.uint16.set(e.entranceBloom.indexArray.uint16))};t(this.buildingWithoutFacade),t(this.buildingWithFacade);for(const r of this.footprints){const e=r.hasFauxFacade?this.buildingWithFacade:this.buildingWithoutFacade,t=r.indicesOffset+r.indicesLength;if(0!==r.hiddenFlags){for(let n=r.indicesOffset;n<t;n++)e.indexArrayForConflation.uint16[3*n+0]=0,e.indexArrayForConflation.uint16[3*n+1]=0,e.indexArrayForConflation.uint16[3*n+2]=0;const i=r.bloomIndicesOffset+r.bloomIndicesLength;for(let t=r.bloomIndicesOffset;t<i;t++)e.entranceBloom.indexArrayForConflation.uint16[3*t+0]=0,e.entranceBloom.indexArrayForConflation.uint16[3*t+1]=0,e.entranceBloom.indexArrayForConflation.uint16[3*t+2]=0}}const i=t=>{0!==t.indexArray.length&&(t.indexBuffer?t.indexBuffer.updateData(t.indexArrayForConflation):t.indexBuffer=e.createIndexBuffer(t.indexArrayForConflation,!0),t.entranceBloom.indexBuffer?t.entranceBloom.indexBuffer.updateData(t.entranceBloom.indexArrayForConflation):t.entranceBloom.indexBuffer=e.createIndexBuffer(t.entranceBloom.indexArrayForConflation,!0))};i(this.buildingWithoutFacade),i(this.buildingWithFacade),this.indexArrayForConflationUploaded=!0}uploadUpdatedColorBuffer(e){const t=t=>{t.layoutColorBuffer?t.layoutColorBuffer.updateData(t.layoutColorArray):t.layoutColorBuffer=e.createVertexBuffer(t.layoutColorArray,Q_.members,!0),t.layoutFacadePaintArray&&(t.layoutFacadePaintBuffer?t.layoutFacadePaintBuffer.updateData(t.layoutFacadePaintArray):t.layoutFacadePaintBuffer=e.createVertexBuffer(t.layoutFacadePaintArray,S_.members,!0)),t.entranceBloom.layoutColorBuffer?t.entranceBloom.layoutColorBuffer.updateData(t.entranceBloom.layoutColorArray):t.entranceBloom.layoutColorBuffer=e.createVertexBuffer(t.entranceBloom.layoutColorArray,Q_.members,!0)};t(this.buildingWithoutFacade),t(this.buildingWithFacade),this.colorBufferUploaded=!0}evaluate(e,t){const i=e.paint.get("building-ambient-occlusion-intensity");for(const r of this.footprints){if(4&r.hiddenFlags)continue;const n=t[r.promoteId],o=r.feature;o.properties["building-part"]="roof";const s
vendor: 10,184 bytes, line 1
1=e.paint.get("building-color").evaluate(o,n,this.canonical).toPremultipliedRenderColor(this.lut),a=e.paint.get("building-emissive-strength").evaluate(o,n,this.canonical);o.properties["building-part"]="wall";const l=e.paint.get("building-color").evaluate(o,n,this.canonical).toPremultipliedRenderColor(this.lut),c=e.paint.get("building-emissive-strength").evaluate(o,n,this.canonical);o.properties["building-part"]="window";const h=e.paint.get("building-color").evaluate(o,n,this.canonical).toPremultipliedRenderColor(this.lut),u=e.paint.get("building-emissive-strength").evaluate(o,n,this.canonical);o.properties["building-part"]="door";const d=e.paint.get("building-color").evaluate(o,n,this.canonical).toPremultipliedRenderColor(this.lut),f=e.paint.get("building-emissive-strength").evaluate(o,n,this.canonical),p=r.hasFauxFacade?this.buildingWithFacade:this.buildingWithoutFacade;for(const e of r.parts){let t,n=s;1===e.part?(n=s,t=a):0===e.part?(n=l,t=c):2===e.part?(n=h,t=u):3===e.part&&(n=d,t=f),t=Je(t,0,1);for(let o=0;o<e.vertexLength;o++){const s=e.vertexOffset+o,a=1+(p.layoutAOArray.uint8[s]/255-1)*i;p.layoutColorArray.emplace(s,n.r*a*255<<8|n.g*a*255,n.b*a*255<<8|255*t),r.hasFauxFacade&&p.layoutFacadePaintArray.emplace(s,255*h.r<<8|255*h.g,255*h.b<<8|255*u)}}const A=r.buildingBloom;if(A)for(let e=0;e<A.vertexLength;e++)p.entranceBloom.layoutColorArray.emplace(A.vertexOffset+e,255*d.r<<8|255*d.g,255*d.b<<8|51*f)}}needsEvaluation(){return!this.colorBufferUploaded}updateReplacement(e,t,i){if(t.updateTime===this.replacementUpdateTime)return;this.replacementUpdateTime=t.updateTime;const r=t.getReplacementRegionsForTile(e.toUnwrapped());if(SA(this.activeReplacements,r))return;this.activeReplacements=r;for(const o of this.footprints)o.hiddenFlags&=-2;const n=[];for(const o of this.activeReplacements){if(o.order<i)continue;const t=Math.max(1,Math.pow(2,o.footprintTileId.canonical.z-e.canonical.z));for(const i of this.footprints)i.min.x>o.max.x||i.max.x<o.min.x||i.min.y>o.max.y||i.max.y<o.min.y||(n.length=0,Hy(this.footprintsVertices,i.footprintVertexOffset,i.footprintVertexLength,o.footprintTileId.canonical,e.canonical,n),zA(o.footprint,n,this.footprintsIndices.uint16,i.footprintIndexOffset,i.footprintIndexLength,0,-t)&&(i.hiddenFlags|=1))}0===this.groundEffect.hiddenByLandmarkVertexArray.length&&this.groundEffect.hiddenByLandmarkVertexArray.resize(this.groundEffect.vertexArray.length);for(const o of this.footprints)this.groundEffect.updateHiddenByLandmarkRange(o.groundEffectVertexOffset,o.groundEffectVertexLength,0!==o.hiddenFlags);this.indexArrayForConflationUploaded=!1}getFootprint(e){if(void 0!==e.id){const t=this.featureFootprintLookup.get(e.id);return this.footprints[t]}return null}getHeightAtTileCoord(e,t){let i=Number.NEGATIVE_INFINITY,r=!0;const n=4*(e+Yr)*Yr+(t+Yr);if(Object.hasOwn(this.footprintLookup,n)){const e=this.footprintLookup[n];return e?{height:e.height,hidden:0!==e.hiddenFlags}:void 0}const o=new we(e,t);for(const s of this.footprints)e>s.max.x||s.min.x>e||t>s.max.y||s.min.y>t||s.height<=i||Vy(o,this.footprintsVertices.float32.subarray(2*s.footprintVertexOffset,2*(s.footprintVertexOffset+s.footprintVertexLength)),this.footprintsIndices.uint16.subarray(s.footprintIndexOffset,s.footprintIndexOffset+s.footprintIndexLength))&&(i=s.height,this.footprintLookup[n]=s,r=0!==s.hiddenFlags);if(i!==Number.NEGATIVE_INFINITY)return{height:i,hidden:r};this.footprintLookup[n]=void 0}}function Vy(e,t,i){for(let r=0;r<i.length;r+=3){const n=i[r],o=i[r+1],s=i[r+2],a=t[2*n+0],l=t[2*n+1],c=t[2*o+0],h=t[2*o+1],u=t[2*s+0],d=t[2*s+1],f=(a-u)*(e.y-d)-(l-d)*(e.x-u),p=(c-a)*(e.y-l)-(h-l)*(e.x-a);if(f<0!=p<0&&0!==f&&0!==p)continue;const A=(u-c)*(e.y-h)-(d-h)*(e.x-c);if(0===A||A<0==f+p<=0)return!0}return!1}function Hy(e,t,i,r,n,o){const s=Math.pow(2,r.z-n.z);for(let a=0;a<i;a++){let i=e.float32[2*(a+t)+0],l=e.float32[2*(a+t)+1];i=(i+n.x*Yr)*s-r.x*Yr,l=(l+n.y*Yr)*s-r.y*Yr,o.push(new we(i,l))}}ts(Uy,"BuildingBucket",{omit:["layers"]}),ts(Ny,"BuildingGeometry"),ts(ky,"BuildingBloomGeometry");class jy{constructor(e=0,t=[]){this.frcMask=e,this.rings=t}hasGeometry(){return this.rings.length>0&&this.rings[0].length>0}}async function Gy(){}function Yy(e,t,i){const r=t.paint.get(e).value;return"constant"===r.kind?r.value:i.programConfigurations.get(t.id).getMaxValue(e)}function Wy(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Jy(e,t,i,r,n){if(!t[0]&&!t[1])return e;const o=we.convert(t)._mult(n);"viewport"===i&&o._rotate(-r);const s=[];for(let a=0;a<e.length;a++)s.push(e[a].sub(o));return s}function Zy(e,t,i,r){const n=we.convert(e)._mult(r);return"viewport"===t&&n._rotate(-i),n}ts(jy,"FrcCoveragePolygon");const qy=l(),Ky=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};function Xy(e,t,i,r,n,o,s,a,l){if(o&&e.queryGeometry.isAboveHorizon)return!1;o&&(l*=e.pixelToTileUnitsFactor);const c=e.tileID.canonical,h=i.projection.upVectorScale(c,i.center.lat,i.worldSize).metersToTile;for(const u of t)for(const t of u){const u=t.add(a),d=n&&i.elevation?i.elevation.exaggeration()*n.getElevationAt(u.x,u.y,!0):0,f=i.projection.projectTilePoint(u.x,u.y,c);if(d>0){const e=i.projection.upVector(c,u.x,u.y);f.x+=e[0]*h*d,f.y+=e[1]*h*d,f.z+=e[2]*h*d}const p=o?u:$y(f.x,f.y,f.z,r),A=o?e.tilespaceRays.map(e=>ix(e,d)):e.queryGeometry.screenGeometry,g=te([],[f.x,f.y,f.z,1],r);if(!s&&o?l*=g[3]/i.cameraToCenterDistance:s&&!o&&(l*=i.cameraToCenterDistance/g[3]),o){const e=br((t.y/Yr+c.y)/(1<<c.z));l/=i.projection.pixelsPerMeter(e,1)/Dl(1,e)}if(Wh(A,p,l))return!0}return!1}function $y(e,t,i,r){const n=te([],[e,t,i,1],r);return new we(n[0]/n[3],n[1]/n[3])}const ex=B(0,0,0),tx=B(0,0,1);function ix(e,t){const i=b();return ex[2]=t,e.intersectsPlane(ex,tx,i),new we(i[0],i[1])}class rx extends Su{}let nx,ox,sx,ax,lx,cx,hx,ux,dx,fx,px,Ax,gx,mx;function _x(e){const t={},i=e.resolution||256,r=e.clips?e.clips.length:1,n=e.image||new yu({width:i,height:r}),o=e.lut||null,s=(i,r,s)=>{t[e.evaluationKey]=s;const a=e.expression.evaluate(t),l=a?a.toNonPremultipliedRenderColor(o):null;l&&(n.data[i+r+0]=Math.floor(255*l.r),n.data[i+r+1]=Math.floor(255*l.g),n.data[i+r+2]=Math.floor(255*l.b),n.data[i+r+3]=Math.floor(255*l.a))};if(e.clips)for(let a=0,l=0;a<r;++a,l+=4*i)for(let t=0,r=0;t<i;t++,r+=4){const n=t/(i-1),{start:o,end:c}=e.clips[a];s(l,r,vi(o,c,n))}else for(let a=0,l=0;a<i;a++,l+=4)s(0,l,a/(i-1));return n}ts(rx,"HeatmapBucket",{omit:["layers"]});class yx{constructor(e){this.zoom=e.zoom,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.fqid),this.index=e.index,this.hasPattern=!1,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.footprints=[],this.worldview=e.worldview,this.hasAppearances=null}updateFootprints(e,t){for(const i of this.footprints)t.push({footprint:i,id:e})}updateAppearances(e,t,i,r){return{hasLayoutChanges:!1,hasUboChanges:!1}}populate(e,t,i,r){const n=[];for(const{feature:o,id:s,index:a,sourceLayerIndex:l}of e){const e=this.layers[0]._featureFilter.needGeometry,c=jl(o,e);if(!this.layers[0]._featureFilter.filter(new ea(this.zoom,{worldview:this.worldview,activeFloors:t.activeFloors}),c,i))continue;const h={id:s,properties:o.properties,type:o.type,sourceLayerIndex:l,index:a,geometry:e?c.geometry:Hl(o,i,r),patterns:{}};n.push(h)}for(const o of n){const{geometry:r,index:n,sourceLayerIndex:s}=o;this.addFeature(o,r,n,i,{},t.availableImages,t.brightness),t.featureIndex.insert(e[n].feature,r,n,s,this.index)}}isEmpty(){return 0===this.footprints.length}uploadPending(){return!1}upload(e){}update(e,t,i,r,n,o,s){}destroy(){}addFeature(e,t,i,r,n,o=[],s){for(const a of Te(t,2)){const e=[],t=[],i=[],r=new we(1/0,1/0),n=new we(-1/0,-1/0);for(const l of a)if(0!==l.length){l!==a[0]&&i.push(t.length/2);for(let i=0;i<l.length;i++)t.push(l[i].x),t.push(l[i].y),e.push(l[i]),r.x=Math.min(r.x,l[i].x),r.y=Math.min(r.y,l[i].y),n.x=Math.max(n.x,l[i].x),n.y=Math.max(n.y,l[i].y)}const o=Ua(t,i),s=new zm(e,o,8,256);this.footprints.push({vertices:e,indices:o,grid:s,min:r,max:n})}}}function xx(e,t){return e.x*t.x+e.y*t.y}function vx(e,t){if(1===e.length){let i=0;const r=t[i++];let n;for(;!n||r.equals(n);)if(n=t[i++],!n)return 1/0;for(;i<t.length;i++){const o=t[i],s=e[0],a=n.sub(r),l=o.sub(r),c=s.sub(r),h=xx(a,a),u=xx(a,l),d=xx(l,l),f=xx(c,a),p=xx(c,l),A=h*d-u*u,g=(d*f-u*p)/A,m=(h*p-u*f)/A,_=r.z*(1-g-m)+n.z*g+o.z*m;if(isFinite(_))return _}return 1/0}{let e=1/0;for(const i of t)e=Math.min(e,i.z);return e}}function wx(e,t,i){let r=1/0;Jh(i,t)&&(r=vx(i,t[0]));for(let n=0;n<t.length;n++){const o=t[n],s=e[n];for(let e=0;e<o.length-1;e++){const t=o[e],n=[t,o[e+1],s[e+1],s[e],t];Yh(i,n)&&(r=Math.min(r,vx(i,n)))}}return r!==1/0&&r}function Ex(e,t,i,r,n,o,s,a,l,c,h){return"globe"===e.projection.name?function(e,t,i,r,n,o,s,a,l,c,h){const u=[],d=[],f=e.projection.upVectorScale(h,e.center.lat,e.worldSize).metersToTile,p=[0,0,0,1],A=[0,0,0,1],g=(e,t,i,r)=>{e[0]=t,e[1]=i,e[2]=r,e[3]=1},m=Iy();i>0&&(i+=m),r+=m;for(const _ of t){const t=[],m=[];for(const u of _){const d=u.x+n.x,_=u.y+n.y,y=e.projection.projectTilePoint(d,_,h),x=e.projection.upVector(h,u.x,u.y);let v=i,w=r;if(s){const e=bx(d,_,i,r,s,a,l,c);v+=e.base,w+=e.top}0!==i?g(p,y.x+x[0]*f*v,y.y+x[1]*f*v,y.z+x[2]*f*v):g(p,y.x,y.y,y.z),g(A,y.x+x[0]*f*w,y.y+x[1]*f*w,y.z+x[2]*f*w),j(p,p,o),j(A,A,o),t.push(new lu(p[0],p[1],p[2])),m.push(new lu(A[0],A[1],A[2]))}u.push(t),d.push(m)}return[u,d]}(e,t,i,r,n,o,s,a,l,c,h):s?function(e,t,i,r,n,o,s,a,l){const c=[],h=[],u=[0,0,0,1];for(const d of e){const e=[],f=[];for(const c of d){const h=c.x+r.x,d=c.y+r.y,p=bx(h,d,t,i,o,s,a,l);u[0]=h,u[1]=d,u[2]=p.base,u[3]=1,te(u,u,n),u[3]=Math.max(u[3],1e-5);const A=new lu(u[0]/u[3],u[1]/u[3],u[2]/u[3]);u[0]=h,u[1]=d,u[2]=p.top,u[3]=1,te(u,u,n),u[3]=Math.max(u[3],1e-5);const g=new lu(u[0]/u[3],u[1]/u[3],u[2]/u[3]);e.push(A),f.push(g)}c.push(e),h.push(f)}return[c,h]}(t,i,r,n,o,s,a,l,c):function(e,t,i,r,n){const o=[],s=[],a=n[8]*t,l=n[9]*t,c=n[10]*t,h=n[11]*t,u=n[8]*i,d=n[9]*i,f=n[10]*i,p=n[11]*i;for(const A of e){const e=[],t=[];for(const i of A){const o=i.x+r.x,s=i.y+r.y,A=n[0]*o+n[4]*s+n[12],g=n[1]*o+n[5
vendor: 4,088 bytes, line 1
1]*s+n[13],m=n[2]*o+n[6]*s+n[14],_=n[3]*o+n[7]*s+n[15],y=A+a,x=g+l,v=m+c,w=Math.max(_+h,1e-5),E=A+u,b=g+d,I=m+f,C=Math.max(_+p,1e-5);e.push(new lu(y/w,x/w,v/w)),t.push(new lu(E/C,b/C,I/C))}o.push(e),s.push(t)}return[o,s]}(t,i,r,n,o)}function bx(e,t,i,r,n,o,s,a){const l=s*n.getElevationAt(e,t,!0,!0),c=0!==o[0],h=c?0===o[1]?s*(o[0]/7-450):s*function(e,t,i){const r=Math.floor(t[0]/8),n=Math.floor(t[1]/8),o=10*(t[0]-8*r),s=10*(t[1]-8*n),a=e.getElevationAt(r,n,!0,!0),l=e.getMeterToDEM(i),c=Math.floor(.5*(o*l-1)),h=Math.floor(.5*(s*l-1)),u=e.tileCoordToPixel(r,n),d=2*c+1,f=2*h+1,p=function(e,t,i,r,n){return[e.getElevationAtPixel(t,i,!0),e.getElevationAtPixel(t+n,i,!0),e.getElevationAtPixel(t,i+n,!0),e.getElevationAtPixel(t+r,i+n,!0)]}(e,u.x-c,u.y-h,d,f),A=Math.abs(p[0]-p[1]),g=Math.abs(p[2]-p[3]),m=Math.abs(p[0]-p[2])+Math.abs(p[1]-p[3]),_=Math.min(.25,.5*l*(A+g)/d),y=Math.min(.25,.5*l*m/f);return a+Math.max(_*o,y*s)}(n,o,a):l;return{base:l+(0===i?-1:i),top:c?Math.max(h+r,l+i+2):l+r}}function Ix(e,t,i){return t*(Yr/(e.tileSize*Math.pow(2,i-e.tileID.overscaledZ)))}function Cx(e,t){return 1/Ix(e,1,t.tileZoom)}function Bx(e,t,i,r){return e.translatePosMatrix(r||t.tileID.projMatrix,t,i.paint.get("line-translate"),i.paint.get("line-translate-anchor"))}ts(yx,"ClipBucket",{omit:["layers"]});const Dx=e=>{const t=[];Tx(e)&&t.push("RENDER_LINE_DASH"),e.paint.get("line-gradient")&&t.push("RENDER_LINE_GRADIENT"),"multiply"===e.paint.get("line-blend-mode")&&t.push("LINE_BLEND_MULTIPLY"),"additive"===e.paint.get("line-blend-mode")&&t.push("LINE_BLEND_ADDITIVE");const i=e.paint.get("line-trim-offset");0===i[0]&&0===i[1]||t.push("RENDER_LINE_TRIM_OFFSET"),0!==e.paint.get("line-border-width").constantOr(1)&&t.push("RENDER_LINE_BORDER");const r="none"===e.layout.get("line-join").constantOr("miter"),n=!!e.paint.get("line-pattern").constantOr(1);return r&&n&&t.push("LINE_JOIN_NONE"),t};function Tx(e){const t=e.paint.get("line-dasharray").value;return"constant"!==t.kind||t.value}let Mx;const Qx=()=>Mx||(Mx={layout:gx||(gx=new da({"line-cap":new ha(fa.layout_line["line-cap"]),"line-join":new ha(fa.layout_line["line-join"]),"line-miter-limit":new ca(fa.layout_line["line-miter-limit"]),"line-round-limit":new ca(fa.layout_line["line-round-limit"]),"line-sort-key":new ha(fa.layout_line["line-sort-key"]),"line-z-offset":new ha(fa.layout_line["line-z-offset"]),"line-elevation-reference":new ca(fa.layout_line["line-elevation-reference"]),"line-cross-slope":new ca(fa.layout_line["line-cross-slope"]),visibility:new ca(fa.layout_line.visibility),"line-width-unit":new ca(fa.layout_line["line-width-unit"]),"line-elevation-ground-scale":new ha(fa.layout_line["line-elevation-ground-scale"])})),paint:mx||(mx=new da({"line-opacity":new ha(fa.paint_line["line-opacity"]),"line-color":new ha(fa.paint_line["line-color"]),"line-translate":new ca(fa.paint_line["line-translate"]),"line-translate-anchor":new ca(fa.paint_line["line-translate-anchor"]),"line-width":new ha(fa.paint_line["line-width"]),"line-gap-width":new ha(fa.paint_line["line-gap-width"]),"line-offset":new ha(fa.paint_line["line-offset"]),"line-blur":new ha(fa.paint_line["line-blur"]),"line-dasharray":new ha(fa.paint_line["line-dasharray"]),"line-pattern":new ha(fa.paint_line["line-pattern"]),"line-pattern-cross-fade":new ca(fa.paint_line["line-pattern-cross-fade"]),"line-gradient":new ua(fa.paint_line["line-gradient"]),"line-trim-offset":new ca(fa.paint_line["line-trim-offset"]),"line-trim-fade-range":new ca(fa.paint_line["line-trim-fade-range"]),"line-trim-color":new ca(fa.paint_line["line-trim-color"]),"line-emissive-strength":new ha(fa.paint_line["line-emissive-strength"]),"line-border-width":new ha(fa.paint_line["line-border-width"]),"line-border-color":new ha(fa.paint_line["line-border-color"]),"line-occlusion-opacity":new ca(fa.paint_line["line-occlusion-opacity"]),"line-blend-mode":new ca(fa.paint_line["line-blend-mode"]),"line-blend-additive-clamp":new ca(fa.paint_line["line-blend-additive-clamp"]),"line-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}
vendor: 6,930 bytes, line 1
1),"line-gradient-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"line-trim-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"line-border-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"})}))},Mx);class Sx extends ha{possiblyEvaluate(e,t){return t=new ea(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,transition:t.transition,worldview:t.worldview}),super.possiblyEvaluate(e,t)}evaluate(e,t,i,r){return t=Object.assign({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,i,r)}}let Px,Rx,zx,Lx;function Fx(e,t){return t>0?t+2*e:e}function Ox(e,t){return t.replace(/{([^{}]+)}/g,(t,i)=>i in e?String(e[i]):"")}class kx{constructor(e){this.type=e.property.overrides?e.property.overrides.runtimeType:Qi,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}}ts(kx,"FormatSectionOverride",{omit:["defaultValue"]});const Nx=()=>Lx||(Lx={layout:Rx||(Rx=new da({"symbol-placement":new ca(fa.layout_symbol["symbol-placement"]),"symbol-spacing":new ca(fa.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new ca(fa.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new ha(fa.layout_symbol["symbol-sort-key"]),"symbol-z-order":new ca(fa.layout_symbol["symbol-z-order"]),"symbol-z-elevate":new ca(fa.layout_symbol["symbol-z-elevate"]),"symbol-elevation-reference":new ca(fa.layout_symbol["symbol-elevation-reference"]),"icon-allow-overlap":new ca(fa.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new ca(fa.layout_symbol["icon-ignore-placement"]),"icon-optional":new ca(fa.layout_symbol["icon-optional"]),"icon-rotation-alignment":new ca(fa.layout_symbol["icon-rotation-alignment"]),"icon-size":new ha(fa.layout_symbol["icon-size"]),"icon-size-scale-range":new ca(fa.layout_symbol["icon-size-scale-range"]),"icon-text-fit":new ha(fa.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new ha(fa.layout_symbol["icon-text-fit-padding"]),"icon-image":new ha(fa.layout_symbol["icon-image"]),"icon-image-use-theme":new ca({type:"string",default:"default","property-type":"data-constant"}),"icon-rotate":new ha(fa.layout_symbol["icon-rotate"]),"icon-padding":new ca(fa.layout_symbol["icon-padding"]),"icon-keep-upright":new ca(fa.layout_symbol["icon-keep-upright"]),"icon-offset":new ha(fa.layout_symbol["icon-offset"]),"icon-anchor":new ha(fa.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new ca(fa.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new ca(fa.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new ca(fa.layout_symbol["text-rotation-alignment"]),"text-field":new ha(fa.layout_symbol["text-field"]),"text-font":new ha(fa.layout_symbol["text-font"]),"text-size":new ha(fa.layout_symbol["text-size"]),"text-size-scale-range":new ca(fa.layout_symbol["text-size-scale-range"]),"text-max-width":new ha(fa.layout_symbol["text-max-width"]),"text-line-height":new ha(fa.layout_symbol["text-line-height"]),"text-letter-spacing":new ha(fa.layout_symbol["text-letter-spacing"]),"text-justify":new ha(fa.layout_symbol["text-justify"]),"text-radial-offset":new ha(fa.layout_symbol["text-radial-offset"]),"text-variable-anchor":new ca(fa.layout_symbol["text-variable-anchor"]),"text-anchor":new ha(fa.layout_symbol["text-anchor"]),"text-max-angle":new ca(fa.layout_symbol["text-max-angle"]),"text-writing-mode":new ca(fa.layout_symbol["text-writing-mode"]),"text-rotate":new ha(fa.layout_symbol["text-rotate"]),"text-padding":new ca(fa.layout_symbol["text-padding"]),"text-keep-upright":new ca(fa.layout_symbol["text-keep-upright"]),"text-transform":new ha(fa.layout_symbol["text-transform"]),"text-offset":new ha(fa.layout_symbol["text-offset"]),"text-allow-overlap":new ca(fa.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new ca(fa.layout_symbol["text-ignore-placement"]),"text-optional":new ca(fa.layout_symbol["text-optional"]),visibility:new ca(fa.layout_symbol.visibility)})),paint:zx||(zx=new da({"icon-opacity":new ha(fa.paint_symbol["icon-opacity"]),"icon-occlusion-opacity":new ha(fa.paint_symbol["icon-occlusion-opacity"]),"icon-emissive-strength":new ha(fa.paint_symbol["icon-emissive-strength"]),"text-emissive-strength":new ha(fa.paint_symbol["text-emissive-strength"]),"icon-color":new ha(fa.paint_symbol["icon-color"]),"icon-halo-color":new ha(fa.paint_symbol["icon-halo-color"]),"icon-halo-width":new ha(fa.paint_symbol["icon-halo-width"]),"icon-halo-blur":new ha(fa.paint_symbol["icon-halo-blur"]),"icon-translate":new ca(fa.paint_symbol["icon-translate"]),"icon-translate-anchor":new ca(fa.paint_symbol["icon-translate-anchor"]),"icon-image-cross-fade":new ca(fa.paint_symbol["icon-image-cross-fade"]),"text-opacity":new ha(fa.paint_symbol["text-opacity"]),"text-occlusion-opacity":new ha(fa.paint_symbol["text-occlusion-opacity"]),"text-color":new ha(fa.paint_symbol["text-color"],{runtimeType:zi,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new ha(fa.paint_symbol["text-halo-color"]),"text-halo-width":new ha(fa.paint_symbol["text-halo-width"]),"text-halo-blur":new ha(fa.paint_symbol["text-halo-blur"]),"text-translate":new ca(fa.paint_symbol["text-translate"]),"text-translate-anchor":new ca(fa.paint_symbol["text-translate-anchor"]),"icon-color-saturation":new ca(fa.paint_symbol["icon-color-saturation"]),"icon-color-contrast":new ca(fa.paint_symbol["icon-color-contrast"]),"icon-color-brightness-min":new ca(fa.paint_symbol["icon-color-brightness-min"]),"icon-color-brightness-max":new ca(fa.paint_symbol["icon-color-brightness-max"]),"symbol-z-offset":new ha(fa.paint_symbol["symbol-z-offset"]),"icon-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"icon-halo-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"text-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"text-halo-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"})}))},Lx);class Ux extends ka{constructor(e,t,i,r){super(e,Nx(),t,i,r,e.layout?e.layout["icon-image-use-theme"]:null),this._colorAdjustmentMatrix=h([]),this.hasOcclusionOpacityProperties=void 0!==e.paint&&("icon-occlusion-opacity"in e.paint||"text-occlusion-opacity"in e.paint)}_handleSpecialPaintPropertyUpdate(e){"icon-occlusion-opacity"!==e&&"text-occlusion-opacity"!==e||(this.hasOcclusionOpacityProperties=!0)}recalculate(e,t){super.recalculate(e,t),this.appearances&&this.appearances.forEac
vendor: 27,503 bytes, line 1
1h(i=>{i.recalculate(e,t,this.iconImageUseTheme)}),"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 i=this.layout.get("text-writing-mode");if(i){const e=[];for(const t of i)e.includes(t)||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()}getColorAdjustmentMatrix(e,t,i,r){return this._saturation===e&&this._contrast===t&&this._brightnessMin===i&&this._brightnessMax===r||(this._colorAdjustmentMatrix=function(e,t,i,r){e=It(e),t=bt(t);const n=l(),o=e/3,s=1-2*o,a=[s,o,o,0,o,s,o,0,o,o,s,0,0,0,0,1],c=.5-.5*t,h=r-i;return d(n,[h,0,0,0,0,h,0,0,0,0,h,0,i,i,i,1],[t,0,0,0,0,t,0,0,0,0,t,0,c,c,c,1]),d(n,n,a),n}(e,t,i,r),this._saturation=e,this._contrast=t,this._brightnessMin=i,this._brightnessMax=r),this._colorAdjustmentMatrix}getValueAndResolveTokens(e,t,i,r){const n=this.layout.get(e).evaluate(t,{},i,r),o=this._unevaluatedLayout._values[e];return o.isDataDriven()||Yo(o.value)||!n?n:Ox(t.properties,n)}getAppearanceValueAndResolveTokens(e,t,i,r,n){const o=e.getLayoutProperty(t);if(!o)return;const s=o.evaluate(i,{},r,n),a=e.getUnevaluatedLayoutProperties()._values[t];return a.isDataDriven()||Yo(a.value)||!s||"string"!=typeof s?s:Ox(i.properties,s)}createBucket(e){return new qA(e)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const e of Nx().paint.overridableProperties){if(!Ux.hasPaintOverride(this.layout,e))continue;const t=this.paint.get(e),i=new kx(t),r=new Go(i,t.property.specification,this.scope,this.options,this.layout.get("icon-image-use-theme"));let n=null;n="constant"===t.value.kind||"source"===t.value.kind?new Jo("source",r):new Zo("composite",r,t.value.zoomStops,t.value.interpolationType),this.paint._values[e]=new aa(t.property,n,t.parameters)}}_handleOverridablePaintPropertyUpdate(e,t,i){return!(!this.layout||t.isDataDriven()||i.isDataDriven())&&Ux.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,t){const i=e.get("text-field"),r=Nx().paint.properties[t];let n=!1;const o=e=>{for(const t of e)if(r.overrides&&r.overrides.hasOverride(t))return void(n=!0)};if("constant"===i.value.kind&&i.value.value instanceof qi)o(i.value.value.sections);else if("source"===i.value.kind){const e=t=>{n||(t instanceof rr&&tr(t.value)===ki?o(t.value.sections):t instanceof ar?o(t.sections):t.eachChild(e))},t=i.value;t._styleExpression&&e(t._styleExpression.expression)}return n}getProgramIds(){return["symbol"]}getDefaultProgramParams(e,t,i){return{config:new Eh(this,{zoom:t,lut:i}),overrideFog:!1}}hasElevation(){return this.layout&&"hd-road-markup"===this.layout.get("symbol-elevation-reference")}mayUse(e){return"HD"===e&&Na(this,"symbol-elevation-reference",e=>"hd-road-markup"===e)}prepare(){return this.mayUse("HD")?Gy():Promise.resolve()}}let Vx,Hx,jx,Gx;var Yx=Zl([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Uint16",components:2}]);function Wx(e,t,i,r,n,o,l,c){const h=[e,t,1,i,r,1,n,o,1],u=[l,c,1],d=s([],h),[f,p,A]=G(u,u,d);return a(h,h,[f,0,0,0,p,0,0,0,A])}function Jx(e,t,i,r,n,o,l,c){const h=function(e,t,i,r,n,o,l,c){const h=Wx(0,0,1,0,1,1,0,1),u=Wx(e,t,i,r,n,o,l,c);return a(u,u,s([],h))}(e,t,i,r,n,o,l,c);return[h[2]/h[8]/Yr,h[5]/h[8]/Yr]}function Zx(e){return[e[0],Math.min(Math.max(e[1],-85.051129),Ml)]}class qx extends gi{constructor(e,t,i,r){super(),this.id=e,this.dispatcher=i,this.coordinates=t.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.onNorthPole=!1,this.onSouthPole=!1,this.setEventedParent(r),this.options=t,this._dirty=!1}load(e,t){if(this._loaded=t||!1,this.fire(new di("dataloading",{dataType:"source"})),this.url=this.options.url,!this.url)return e&&(this.coordinates=e),this._loaded=!0,void this._finishLoading();this._imageRequest=hi(this.map._requestManager.transformRequest(this.url,Xt.Image),(t,i)=>{this._imageRequest=null,this._loaded=!0,t?this.fire(new fi(t)):i&&(this.image=i,this._dirty=!0,this.width=this.image.width,this.height=this.image.height,e&&(this.coordinates=e),this._finishLoading())})}loaded(){return this._loaded}updateImage(e){return e.url?(this._imageRequest&&e.url!==this.options.url&&(this._imageRequest.cancel(),this._imageRequest=null),this.options.url=e.url,this.load(e.coordinates,this._loaded),this):this}setTexture(e){if(!(e.handle instanceof WebGLTexture))throw new Error("The provided handle is not a WebGLTexture instance");return this.texture=new af(this.map.painter.context,e.handle),this.width=e.dimensions[0],this.height=e.dimensions[1],this._dirty=!1,this._loaded=!0,this._finishLoading(),this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new di("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(e){this._imageRequest&&(this._imageRequest.cancel(),this._imageRequest=null),!this.texture||this.texture instanceof af||this.texture.destroy(),this.boundsBuffer&&(this.boundsBuffer.destroy(),this.elevatedGlobeVertexBuffer&&this.elevatedGlobeVertexBuffer.destroy(),this.elevatedGlobeIndexBuffer&&this.elevatedGlobeIndexBuffer.destroy())}setCoordinates(e){if(this.coordinates=e,this._boundsArray=void 0,this._unsupportedCoords=!1,!e.length)return this;this.onNorthPole=!1,this.onSouthPole=!1;let t=e[0][1],i=e[0][1];for(const n of e)n[1]>i&&(i=n[1]),n[1]<t&&(t=n[1]);const r=(i+t)/2;if(r>Ml?this.onNorthPole=!0:r<-85.051129&&(this.onSouthPole=!0),!this.onNorthPole&&!this.onSouthPole){const t=e.map(zl.fromLngLat);this.tileID=function(e){let t=1/0,i=1/0,r=-1/0,n=-1/0;for(const c of e)t=Math.min(t,c.x),i=Math.min(i,c.y),r=Math.max(r,c.x),n=Math.max(n,c.y);const o=Math.max(r-t,n-i),s=Math.max(0,Math.floor(-Math.log2(o))),a=Math.pow(2,s);let l=Math.floor((t+r)/2*a);return l>1&&(l-=1),new Xp(s,l,Math.floor((i+n)/2*a))}(t),this.minzoom=this.maxzoom=this.tileID.z}return this.fire(new di("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){!this.texture||this.texture instanceof af||(this.texture.destroy(),this._dirty=!0),this.texture=null,this._boundsArray=void 0,this._unsupportedCoords=!1}_prepareData(e){for(const s in this.tiles){const e=this.tiles[s];"loaded"!==e.state&&(e.state="loaded",e.texture=this.texture)}if(this._boundsArray||this.onNorthPole||this.onSouthPole||this._unsupportedCoords)return;const t=rA(new Xp(0,0,0),this.map.transform.projection),i=[t.projection.project(this.coordinates[0][0],this.coordinates[0][1]),t.projection.project(this.coordinates[1][0],this.coordinates[1][1]),t.projection.project(this.coordinates[2][0],this.coordinates[2][1]),t.projection.project(this.coordinates[3][0],this.coordinates[3][1])];if(!function(e){const t=e[1].x-e[0].x,i=e[1].y-e[0].y,r=e[2].x-e[1].x,n=e[2].y-e[1].y,o=e[3].x-e[2].x,s=e[3].y-e[2].y,a=e[0].x-e[3].x,l=e[0].y-e[3].y,c=t*n-r*i,h=r*s-o*n,u=o*l-a*s,d=a*i-t*l;return c>0&&h>0&&u>0&&d>0||c<0&&h<0&&u<0&&d<0}(i))return console.warn("Image source coordinates are defining non-convex area in the Mercator projection"),void(this._unsupportedCoords=!0);const r=rA(this.tileID,this.map.transform.projection),[n,o,l,c]=this.coordinates.map(e=>{const t=r.projection.project(e[0],e[1]);return nA(r,t)._round()});this.perspectiveTransform=Jx(n.x,n.y,o.x,o.y,l.x,l.y,c.x,c.y);const h=this._boundsArray=new $l;h.emplaceBack(n.x,n.y,0,0),h.emplaceBack(o.x,o.y,Yr,0),h.emplaceBack(c.x,c.y,0,Yr),h.emplaceBack(l.x,l.y,Yr,Yr),this.boundsBuffer&&(this.boundsBuffer.destroy(),this.elevatedGlobeVertexBuffer&&this.elevatedGlobeVertexBuffer.destroy(),this.elevatedGlobeIndexBuffer&&this.elevatedGlobeIndexBuffer.destroy()),this.boundsBuffer=e.createVertexBuffer(h,Yx.members),this.boundsSegments=Kc.simpleSegment(0,0,4,2);const u=[],d=function(e){return[Zx(e[0]),Zx(e[1]),Zx(e[2]),Zx(e[3])]}(this.coordinates),[f,p,A,g]=function(e){let t=e[0][0],i=t,r=e[0][1],n=r;for(let o=1;o<e.length;o++)e[o][0]<t?t=e[o][0]:e[o][0]>i&&(i=e[o][0]),e[o][1]<r?r=e[o][1]:e[o][1]>n&&(n=e[o][1]);return[t,r,i-t,n-r]}(d);{const r=new $l,[n,o,l,c]=function(e){let t=e[0].x,i=t,r=e[0].y,n=r;for(let o=1;o<e.length;o++)e[o].x<t?t=e[o].x:e[o].x>i&&(i=e[o].x),e[o].y<r?r=e[o].y:e[o].y>n&&(n=e[o].y);return[t,r,i-t,n-r]}(i),h=e=>[(e.x-n)/l,(e.y-o)/c],[d,m,_,y]=i.map(h),x=function(e,t,i,r,n,o,l,c){const h=Wx(0,0,1,0,1,1,0,1);return a(h,h,s([],Wx(e,t,i,r,n,o,l,c)))}(d[0],d[1],m[0],m[1],_[0],_[1],y[0],y[1]);this.elevatedGlobePerspectiveTransform=Jx(d[0],d[1],m[0],m[1],_[0],_[1],y[0],y[1]);const v=(e,t)=>{u.push(e.lng);const i=Math.round((e.lng-f)/A*Yr),n=Math.round((e.lat-p)/g*Yr),o=h(t),s=G([],[o[0],o[1],1],x),a=Math.round(s[0]/s[2]*Yr),l=Math.round(s[1]/s[2]*Yr);r.emplaceBack(i,n,a,l)},w=i[3].x-i[0].x,E=i[3].y-i[0].y,b=i[2].x-i[1].x,I=i[2].y-i[1].y;for(let e=0;e<65;e++){const r=e/64,n=[i[0].x+r*w,i[0].y+r*E],o=[i[1].x+r*b,i[1].y+r*I],s=o[0]-n[0],a=o[1]-n[1];for(let e=0;e<65;e++){const i=e/64,r={x:n[0]+s*i,y:n[1]+a*i};v(t.projection.unproject(r.x,r.y),r)}}this.elevatedGlobeVertexBuffer=e.createVertexBuffer(r,Yx.members)}{this.maxLongitudeTriangleSize=0;let t=[],i=new yc;const r=(e,r,n)=>{i.emplaceBack(e,r,n);const o=u[e],s=u[r],a=u[n],l=Math.min(Math.min(o,s),a),c=Math.max(Math.max(o,s),a)-l;c>this.maxLongitudeTriangleSize&&(this.maxLongitudeTriangleSize=c),t.push(l+c/2)};for(let e=0;e<64;e++)for(let t=0;t<64;t++){const i=65*e+t,n=i+1,o=i+65,s=o+1;r(i,o,n),r(n,o,s)}[t,i]=function(e,t){const i=Array.from({length:e.length},(e,t)=>t);i.sort((t,i)=>e[t]-e[i]);const r=[],n=new yc;for(let o=0;o<i.length;o++){const s=i[o];r.push(e[s]);const a=3*s,l=a+1;n.emplaceBack(t.uint16[a],t.uint16[l],t.uint16[l+1])}return[r,n]}(t,i),this.elevatedGlobeTrianglesCenterLongitudes=t,this.elevatedGlobeIndexBuffer=e.createIndexBuffer(i)}this.elevatedGlobeSegments=Kc.simpleSegment(0,0,4225,8192),this.elevatedGlobeGridMatrix=new Float32Array([0,A/Yr,0,g/Yr,0,0,p,f,0])}prepare(){const e=0!==Object.keys(this.tiles).length;if(this.tileID&&!e)return;const t=this.map.painter.context,i=t.gl;!this._dirty||this.texture instanceof af||(this.texture?this.texture.update(this.image):(this.texture=new sf(t,this.image,i.RGBA8),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE)),this._dirty=!1),e&&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}getSegmentsForLongitude(e){const t=this.elevatedGlobeSegments;if(!this.elevatedGlobeTrianglesCenterLongitudes||!t)return null;const i=this.elevatedGlobeTrianglesCenterLongitudes;let r=(n=e+180)+360*Math.round((i[0]-n)/360);var n;const o=new Kc,s=(e,i)=>{o.segments.push({vertexOffset:0,primitiveOffset:e,vertexLength:t.segments[0].vertexLength,primitiveLength:i,sortKey:void 0,vaos:{}})},a=.51*this.maxLongitudeTriangleSize;if(Math.abs(i[0]-r)<=a){const e=Et(i,0,i.length,r+a);return e===i.length||s(e,wt(i,e+1,i.length,r+360-a)-e),o}r<i[0]&&(r+=360);const l=wt(i,0,i.length,r-a);if(l===i.length)return s(0,i.length),o;s(0,l-0);const c=Et(i,l+1,i.length,r+a);return c!==i.length&&s(c,i.length-c),o}}const Kx=1024,Xx=(Math.pow(Kx,2)-1)/268170240;class $x extends ka{constructor(e,t,i,r){super(e,{layout:jx||(jx=new da({visibility:new ca(fa.layout_raster.visibility)})),paint:Gx||(Gx=new da({"raster-opacity":new ca(fa.paint_raster["raster-opacity"]),"raster-color":new ua(fa.paint_raster["raster-color"]),"raster-color-mix":new ca(fa.paint_raster["raster-color-mix"]),"raster-color-range":new ca(fa.paint_raster["raster-color-range"]),"raster-hue-rotate":new ca(fa.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new ca(fa.paint_raster["raster-brightness-min"]),"raster-brightness-max":new ca(fa.paint_raster["raster-brightness-max"]),"raster-saturation":new ca(fa.paint_raster["raster-saturation"]),"raster-contrast":new ca(fa.paint_raster["raster-contrast"]),"raster-resampling":new ca(fa.paint_raster["raster-resampling"]),"raster-fade-duration":new ca(fa.paint_raster["raster-fade-duration"]),"raster-emissive-strength":new ca(fa.paint_raster["raster-emissive-strength"]),"raster-array-band":new ca(fa.paint_raster["raster-array-band"]),"raster-elevation":new ca(fa.paint_raster["raster-elevation"]),"raster-elevation-reference":new ca(fa.paint_raster["raster-elevation-reference"]),"raster-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"})}))},t,i,r),this.updateColorRamp(),this._curRampRange=[NaN,NaN]}getProgramIds(){return["raster"]}hasColorMap(){return!!this._transitionablePaint._values["raster-color"].value.value}tileCoverLift(){return this.paint.get("raster-elevation")}isDraped(e){return!(e&&e._source instanceof qx&&(e._source.onNorthPole||e._source.onSouthPole))&&0===this.paint.get("raster-elevation")}_handleSpecialPaintPropertyUpdate(e){"raster-color"!==e&&"raster-color-range"!==e||(this._curRampRange=[NaN,NaN],this.updateColorRamp())}_clear(){this.colorRampTexture&&(this.colorRampTexture.destroy(),this.colorRampTexture=null)}updateColorRamp(e){if(!this.hasColorMap())return;if(!this._curRampRange)return;const t=this._transitionablePaint._values["raster-color"].value.expression,[i,r]=e||this._transitionablePaint._values["raster-color-range"].value.expression.evaluate({zoom:0})||[NaN,NaN];isNaN(i)&&isNaN(r)||i===this._curRampRange[0]&&r===this._curRampRange[1]||(this.colorRamp=_x({expression:t,evaluationKey:"rasterValue",image:this.colorRamp,clips:[{start:i,end:r}],resolution:Kx}),this.colorRampTexture=null,this._curRampRange=[i,r])}is3D(e){return this.paint.get("raster-elevation")>0}}let ev,tv,iv,rv,nv,ov,sv;class av extends ka{constructor(e,t,i,r){super(e,{layout:ev||(ev=new da({visibility:new ca(fa["layout_raster-particle"].visibility)})),paint:tv||(tv=new da({"raster-particle-array-band":new ca(fa["paint_raster-particle"]["raster-particle-array-band"]),"raster-particle-count":new ca(fa["paint_raster-particle"]["raster-particle-count"]),"raster-particle-color":new ua(fa["paint_raster-particle"]["raster-particle-color"]),"raster-particle-max-speed":new ca(fa["paint_raster-particle"]["raster-particle-max-speed"]),"raster-particle-speed-factor":new ca(fa["paint_raster-particle"]["raster-particle-speed-factor"]),"raster-particle-fade-opacity-factor":new ca(fa["paint_raster-particle"]["raster-particle-fade-opacity-factor"]),"raster-particle-reset-rate-factor":new ca(fa["paint_raster-particle"]["raster-particle-reset-rate-factor"]),"raster-particle-elevation":new ca(fa["paint_raster-particle"]["raster-particle-elevation"]),"raster-particle-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"})}))},t,i,r),this._updateColorRamp(),this.lastInvalidatedAt=Dt.now()}_clear(){this.colorRampTexture&&(this.colorRampTexture.destroy(),this.colorRampTexture=null),this.tileFramebuffer&&(this.tileFramebuffer.destroy(),this.tileFramebuffer=null),this.particleFramebuffer&&(this.particleFramebuffer.destroy(),this.particleFramebuffer=null)}onRemove(e){this.colorRampTexture&&this.colorRampTexture.destroy(),this.tileFramebuffer&&this.tileFramebuffer.destroy(),this.particleFramebuffer&&this.particleFramebuffer.destroy()}hasColorMap(){return!!this._transitionablePaint._values["raster-particle-color"].value.value}getProgramIds(){return["rasterParticle"]}hasOffscreenPass(){return"none"!==this.visibility}isDraped(e){return!1}_handleSpecialPaintPropertyUpdate(e){"raster-particle-color"!==e&&"raster-particle-max-speed"!==e||(this._updateColorRamp(),this._invalidateAnimationState()),"raster-particle-count"===e&&this._invalidateAnimationState()}_updateColorRamp(){if(!this.hasColorMap())return;const e=this._transitionablePaint._values["raster-particle-color"].value.expression,t=this._transitionablePaint._values["raster-particle-max-speed"].value.expression.evaluate({zoom:0});this.colorRamp=_x({expression:e,evaluationKey:"rasterParticleSpeed",image:this.colorRamp,clips:[{start:0,end:t}],resolution:256}),this.colorRampTexture=null}_invalidateAnimationState(){this.lastInvalidatedAt=Dt.now()}tileCoverLift(){return this.paint.get("raster-particle-elevation")}}class lv extends ka{constructor(e,t){super(e,{},t,null),this.implementation=e,e.slot&&(this.slot=e.slot)}is3D(e){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}isDraped(e){return void 0!==this.implementation.renderToTile}shouldRedrape(){return!!this.implementation.shouldRerenderTiles&&this.implementation.shouldRerenderTiles()}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)}}function cv(e,t,i){const r=[0,0,1],n=re([]);return oe(n,n,i?-He(e)+Math.PI:He(e)),ne(n,n,-He(t)),Y(r,r,n),N(r,r)}class hv{constructor(e,t){this.feature=e,this.instancedDataOffset=t,this.instancedDataCount=0,this.rotation=[0,0,0],this.scale=[1,1,1],this.translation=[0,0,0]}}class uv{constructor(){this.maxScale=1,this.maxXYTranslationDistance=0,this.instancedDataArray=new Mc,this.instancesEvaluatedElevation=[],this.features=[],this.idToFeaturesIndex={}}colorForInstance(e){const t=16*e,i=this.instancedDataArray.float32;let r=Math.floor(i[t+2]);const n=1.05*(i[t+2]-r);return r/=100,[i[t]%1*1.05,i[t+1]%1*1.05,n,r]}tileCoordinatesForInstance(e){const t=16*e,i=this.instancedDataArray.float32;let r=i[t+0];return r=r>Yr?r-Yr:r,new we(Math.trunc(r),Math.trunc(i[t+1]))}translationForInstance(e){const t=16*e,i=this.instancedDataArray.float32;return[i[t+4],i[t+5],i[t+6]]}rotationScaleForInstance(e){const t=16*e,i=this.instancedDataArray.float32;return[i[t+7],i[t+8],i[t+9],i[t+10],i[t+11],i[t+12],i[t+13],i[t+14],i[t+15]]}transformForInstance(e){const t=16*e,i=this.instancedDataArray.float32;return[i[t+7],i[t+8],i[t+9],i[t+4],i[t+10],i[t+11],i[t+12],i[t+5],i[t+13],i[t+14],i[t+15],i[t+6],0,0,0,1]}}class dv{constructor(e){this.requiresStandardRuntime=!0,this.zoom=e.zoom,this.canonical=e.canonical,this.overscaledZ=this.canonical.z+Math.log2(e.overscaling),this.layers=e.layers,this.layerIds=this.layers.map(e=>e.fqid),this.projection=e.projection,this.index=e.index,this.worldview=e.worldview,this.hasZoomDependentProperties=this.layers[0].isZoomDependent(),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.hasPattern=!1,this.instancesPerModel={},this.validForExaggeration=0,this.maxVerticalOffset=0,this.maxScale=0,this.maxHeight=0,this.lookupDim=this.zoom>this.canonical.z+1?0:this.zoom>this.canonical.z?256:this.zoom>15?75:100,this.instanceCount=0,this.terrainElevationMin=0,this.terrainElevationMax=0,this.validForDEMTile={id:null,timestamp:0},this.modelUris=[],this.modelsRequested=!1,this.activeReplacements=[],this.replacementUpdateTime=0,this.styleDefinedModelURLs=e.styleDefinedModelURLs,this.hasAppearances=null}updateFootprints(e,t){}updateAppearances(e,t,i,r){return{hasLayoutChanges:!1,hasUboChanges:!1}}populate(e,t,i,r){this.tileToMeter=Rl(i);const n=this.layers[0]._featureFilter.needGeometry;this.lookup=new Uint8Array(this.lookupDim*this.lookupDim);const o="hd-road-markup"===this.layers[0].paint.get("model-elevation-reference")?t.elevationFeatures:void 0;for(const{feature:s,id:a,index:l,sourceLayerIndex:c}of e){const e=null!=a?a:s.properties&&Object.hasOwn(s.properties,"id")?s.properties.id:void 0,h=jl(s,n);if(!this.layers[0]._featureFilter.filter(new ea(this.zoom,{worldview:this.worldview,activeFloors:t.activeFloors}),h,i))continue;const u={id:e,sourceLayerIndex:c,index:l,geometry:n?h.geometry:Hl(s,i,r),properties:s.properties,type:s.type,patterns:{}},d=this.addFeature(u,u.geometry,h,o,i);d&&t.featureIndex.insert(s,u.geometry,l,c,this.index,this.instancesPerModel[d].instancedDataArray.length,256)}this.lookup=null}evaluateQueryRenderedFeaturePadding(){const e=this.layers[0].modelManager,t=this.layers[0].scope;let i=0;for(const r of this.modelUris){const n=e.getModel(r,t);if(!n)continue;const o=this.instancesPerModel[r];if(o){const e=.5*L(n.aabb.max,n.aabb.min)*o.maxScale+o.maxXYTranslationDistance,t=Math.min(Yr,Math.max(e/this.tileToMeter,256));i=Math.max(t,i)}}return i}update(e,t,i,r){for(const n in this.instancesPerModel){const t=this.instancesPerModel[n];for(const i in e)Object.hasOwn(t.idToFeaturesIndex,i)&&(this.evaluate(t.features[t.idToFeaturesIndex[i]],e[i],t,!0),this.uploaded=!1)}this.maxHeight=0}updateZoomBasedPaintProperties(){if(!this.hasZoomDependentProperties)return!1;let e=!1;for(const t in this.instancesPerModel){const i=this.instancesPerModel[t];for(const t of i.features){const r=this.layers[0],n=t.feature,o=this.canonical,s=r.paint.get("model-rotation").evaluate(n,{},o),a=r.paint.get("model-scale").evaluate(n,{},o),l=r.paint.get("model-translation").evaluate(n,{},o);J(t.rotation,s)&&J(t.scale,a)&&J(t.translation,l)||(this.evaluate(t,t.featureStates,i,!0),e=!0)}}return e}updateReplacement(e,t,i,r){if(t.updateTime===this.replacementUpdateTime)return!1;this.replacementUpdateTime=t.updateTime;const n=t.getReplacementRegionsForTile(e.toUnwrapped(),!0);if(SA(this.activeReplacements,n))return!1;this.activeReplacements=n;let o=!1;for(const s in this.instancesPerModel){const t=this.instancesPerModel[s],n=t.instancedDataArray;for(const s of t.features){const t=s.instancedDataOffset,a=s.instancedDataCount;for(let s=0;s<a;s++){const a=16*(s+t);let l=n.float32[a+0];const c=l>Yr;l=c?l-Yr:l;const h=Math.floor(l),u=Math.floor(n.float32[a+1]);let d=!1;for(const t of this.activeReplacements)if(!DA(t,i,Y_.Model,r)&&!(t.min.x>h||h>t.max.x||t.min.y>u||u>t.max.y)&&(d=OA(FA(h,u,e.canonical,t.footprintTileId.canonical),t.footprint),d))break;n.float32[a]=d?l+Yr:l,o=o||d!==c}}}return o}isEmpty(){for(const e in this.instancesPerModel)if(0!==this.instancesPerModel[e].instancedDataArray.length)return!1;return!0}uploadPending(){return!this.uploaded}upload(e){if(!this.uploaded)for(const t in this.instancesPerModel){const i=this.instancesPerModel[t];i.instancedDataArray.length<0||0===i.instancedDataArray.length||(i.instancedDataBuffer?i.instancedDataBuffer.updateData(i.instancedDataArray):i.instancedDataBuffer=e.createVertexBuffer(i.instancedDataArray,Vm.members,!0,void 0,this.instanceCount))}this.uploaded=!0}destroy(e){for(const i in this.instancesPerModel){const e=this.instancesPerModel[i];0!==e.instancedDataArray.length&&e.instancedDataBuffer&&e.instancedDataBuffer.destroy()}const t=this.layers[0].modelManager;if(e&&t&&this.modelUris&&this.modelsRequested)for(const i of this.modelUris)t.removeModel(i,"",!0)}addFeature(e,t,i,r,n){const o=this.layers[0],s=o.layout.get("model-id"),a=o.layout.get("model-allow-density-reduction"),l=s.evaluate(i,{},this.canonical);if(!l)return lt(`modelId is not evaluated for layer ${o.id} and it is not going to get rendered.`),l;!l.includes("://")&&!this.styleDefinedModelURLs[l]||this.modelUris.includes(l)||this.modelUris.push(l),this.instancesPerModel[l]||(this.instancesPerModel[l]=new uv);const c=this.instancesPerModel[l],h=c.instancedDataArray,u=new hv(i,h.length);let d;r&&(d=hg(e,r));for(const f of t)for(const e of f){if(e.x<0||e.x>=Yr||e.y<0||e.y>=Yr)continue;if(0!==this.lookupDim&&a){const t=(this.lookupDim-1)/Yr,i=this.lookupDim*(e.y*t|0)+e.x*t|0;if(this.lookup){if(0!==this.lookup[i])continue;this.lookup[i]=1}}this.instanceCount++;const t=h.length;if(h.resize(t+1),r){c.instancesRoadElevation||(c.instancesRoadElevation=[]);const t=d?d.pointElevation(new we(e.x,e.y)):0;c.instancesRoadElevation.push(t)}c.instancesEvaluatedElevation.push(0),h.float32[16*t]=e.x,h.float32[16*t+1]=e.y}return u.instancedDataCount=c.instancedDataArray.length-u.instancedDataOffset,u.instancedDataCount>0&&(e.id&&(c.idToFeaturesIndex[e.id]=c.features.length),c.features.push(u),this.evaluate(u,{},c,!1)),l}getModelUris(){return this.modelUris}evaluate(e,t,i,r){const n=this.layers[0],o=e.feature,s=this.canonical,a=e.rotation=n.paint.get("model-rotation").evaluate(o,t,s),l=e.scale=n.paint.get("model-scale").evaluate(o,t,s),c=e.translation=n.paint.get("model-translation").evaluate(o,t,s),{r:h,g:u,b:d}=n.paint.get("model-color").evaluate(o,t,s),f=n.paint.get("model-color-mix-intensity").evaluate(o,t,s),p=[];this.maxVerticalOffset<c[2]&&(this.maxVerticalOffset=c[2]);const A=c[0]*c[0]+c[1]*c[1],g=A>0?Math.sqrt(A):0;i.maxScale=Math.max(Math.max(i.maxScale,l[0]),Math.max(l[1],l[2])),i.maxXYTranslationDistance=Math.max(i.maxXYTranslationDistance,g),this.maxScale=Math.max(Math.max(this.maxScale,l[0]),Math.max(l[1],l[2])),Km(p,a,l);const m=Math.round(100*f)+d/1.05;for(let _=0;_<e.instancedDataCount;++_){const t=e.instancedDataOffset+_,n=16*t,o=i.instancedDataArray.float32;let a=0;r&&(a=o[n+6]-i.instancesEvaluatedElevation[t]);const l=0|o[n+1];o[n]=(0|o[n])+h/1.05,o[n+1]=l+u/1.05,o[n+2]=m,o[n+3]=1/(s.z>10?this.tileToMeter:Rl(s,l)),o[n+4]=c[0],o[n+5]=c[1],o[n+6]=c[2]+(i.instancesRoadElevation?i.instancesRoadElevation[t]:0)+a,o[n+7]=p[0],o[n+8]=p[1],o[n+9]=p[2],o[n+10]=p[4],o[n+11]=p[5],o[n+12]=p[6],o[n+13]=p[8],o[n+14]=p[9],o[n+15]=p[10],i.instancesEvaluatedElevation[t]=c[2]}}}ts(dv,"ModelBucket",{omit:["layers"]}),ts(uv,"PerModelAttributes"),ts(hv,"ModelFeature");class fv{constructor(e,t,i){this._demTile=e,this._dem=this._demTile.dem,this._scale=t,this._offset=i}static create(e,t,i){const r=i||e.findDEMTileFor(t);if(!r||!r.dem)return;const n=r.dem,o=r.tileID,s=1<<t.canonical.z-o.canonical.z;return new fv(r,n.dim/Yr/s,[(t.canonical.x/s-o.canonical.x)*n.dim,(t.canonical.y/s-o.canonical.y)*n.dim])}tileCoordToPixel(e,t){const i=t*this._scale+this._offset[1];return new we(Math.floor(e*this._scale+this._offset[0]),Math.floor(i))}getElevationAt(e,t,i,r){const n=e*this._scale+this._offset[0],o=t*this._scale+this._offset[1],s=Math.floor(n),a=Math.floor(o),l=this._dem;return r=!!r,i?vi(vi(l.get(s,a,r),l.get(s,a+1,r),o-a),vi(l.get(s+1,a,r),l.get(s+1,a+1,r),o-a),n-s):l.get(s,a,r)}getElevationAtPixel(e,t,i){return this._dem.get(e,t,!!i)}getMeterToDEM(e){return(1<<this._demTile.tileID.canonical.z)*Dl(1,e)*this._dem.stride}}const pv=new Float32Array(262144),Av=new Uint8Array(262144),gv=[0,0,0],mv=[0,0,0];function _v(e){let t=0;if(e.meshes)for(const i of e.meshes)t=Math.max(t,i.aabb.max[2]);if(e.children)for(const i of e.children)t=Math.max(t,_v(i));return t}function yv(e,t,i){if(e.meshes)for(const r of e.meshes){if(r.aabb.min[0]===1/0)continue;const n=bp.applyTransform(r.aabb,e.globalMatrix);i.insert(t,n.min[0],n.min[1],n.max[0],n.max[1])}if(e.children)for(const r of e.children)yv(r,t,i)}const xv=["","wall","door","roof","window","lamp","logo"];class vv{constructor(e){this.node=e,this.evaluatedRMEA=[[1,0,0,1],[1,0,0,1],[1,0,0,1],[1,0,0,1],[.4,1,0,1],[1,0,0,1],[1,0,0,1]],this.hiddenByReplacement=!1,this.evaluatedTranslation=[0,0,0],this.evaluatedScale=[1,1,1],this.evaluatedColor=[],this.emissionHeightBasedParams=[],this.cameraCollisionOpacity=1,this.targetL
1od=-1,this.feature={type:"Point",id:e.id,geometry:[],properties:{height:_v(e)}},this.aabb=this._getLocalBounds(),this.state=null}_getLocalBounds(){if(!this.node.meshes)return new bp([1/0,1/0,1/0],[-1/0,-1/0,-1/0]);if(!this.aabb){let e=0;const t=new bp([1/0,1/0,1/0],[-1/0,-1/0,-1/0]);for(const i of this.node.meshes)this.node.lightMeshIndex!==e&&(i.transformedAabb=bp.applyTransformFast(i.aabb,this.node.globalMatrix),t.encapsulate(i.transformedAabb)),e++;this.aabb=t}return this.aabb}}class wv{constructor(e,t,i,r,n,o,s,a){this.requiresStandardRuntime=!0,this.id=i,this.layers=e,this.layerIds=this.layers.map(e=>e.fqid),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.modelTraits|=i_.CoordinateSpaceTile,this.uploaded=!1,this.hasPattern=!1,r&&(this.modelTraits|=i_.HasMapboxMeshFeatures),n&&(this.modelTraits|=i_.HasMeshoptCompression),this.zoom=-1,this.terrainExaggeration=1,this.projection={name:"mercator"},this.replacementUpdateTime=0,this.elevationReadFromZ=255,this.brightness=o,this.worldview=a,this.dirty=!0,this.needsUpload=!1,this.filter=null,this.nodesInfo=[];for(const l of t)this.nodesInfo.push(new vv(l)),yv(l,s.featureIndexArray.length,s.grid),s.featureIndexArray.emplaceBack(this.nodesInfo.length-1,0,s.bucketLayerIDs.length-1,0);this.states={},this.hasAppearances=null}updateFootprints(e,t){for(const i of this.getNodesInfo()){const r=i.node;r.footprint&&t.push({footprint:r.footprint,id:e})}}updateAppearances(e,t,i,r){return{hasLayoutChanges:!1,hasUboChanges:!1}}update(e){const t=0!==Object.keys(e).length;if(t&&!this.stateDependentLayers.length)return;const i=t?this.stateDependentLayers:this.layers;if(!Ee(e,this.states))for(const r of i)this.evaluate(r,e);this.states=structuredClone(e)}populate(){console.log("populate 3D model bucket")}uploadPending(){return!this.uploaded||this.needsUpload}upload(e){if(!this.needsUpload)return;const t=this.getNodesInfo();for(const i of t){const t=i.node;this.uploaded?this.updatePbrBuffer(t):a_(t,e,!0)}for(const i of t)c_(i.node);this.uploaded=!0,this.needsUpload=!1}updatePbrBuffer(e){let t=!1;if(!e.meshes)return t;for(const i of e.meshes)i.pbrBuffer&&(i.pbrBuffer.updateData(i.featureArray),t=!0);if(e.lodMeshes)for(const i of e.lodMeshes)i.pbrBuffer&&(i.pbrBuffer.updateData(i.featureArray),t=!0);return t}needsReEvaluation(e,t,i){const r=e.transform.projectionOptions,n=e.style.getBrightness(),o=this.brightness!==n;if(!this.uploaded||this.dirty||r.name!==this.projection.name||Ev(i.paint.get("model-color").value,o)||Ev(i.paint.get("model-color-mix-intensity").value,o)||Ev(i.paint.get("model-roughness").value,o)||Ev(i.paint.get("model-emissive-strength").value,o)||Ev(i.paint.get("model-height-based-emissive-strength-multiplier").value,o)){this.projection=r,this.brightness=n;const e=this.getNodesInfo();for(const t of e)t.state=null;return!0}return!1}evaluateTransform(e,t){if(e.transform.zoom===this.zoom)return;this.zoom=e.transform.zoom;const i=this.getNodesInfo(),r=this.id.canonical;for(const n of i){const e=n.feature;n.evaluatedTranslation=t.paint.get("model-translation").evaluate(e,{},r),n.evaluatedScale=t.paint.get("model-scale").evaluate(e,{},r)}}evaluate(e,t){const i=this.getNodesInfo();for(const r of i){if(!r.node.meshes)continue;const i=r.feature,n=t&&t[i.id];if(Ee(n,r.state))continue;r.state=structuredClone(n);const o=r.node.meshes&&r.node.meshes[0].featureData,s=r.evaluatedColor[2],a=r.evaluatedRMEA[2],l=this.id.canonical;if(r.hasTranslucentParts=!1,o){for(let t=0;t<xv.length;t++){const o=xv[t];o.length&&(i.properties.part=o);const s=e.paint.get("model-color").evaluate(i,n,l).toPremultipliedRenderColor(null),a=e.paint.get("model-color-mix-intensity").evaluate(i,n,l);r.evaluatedColor[t]=[s.r,s.g,s.b,a],r.evaluatedRMEA[t][0]=e.paint.get("model-roughness").evaluate(i,n,l),r.evaluatedRMEA[t][2]=e.paint.get("model-emissive-strength").evaluate(i,n,l),r.evaluatedRMEA[t][3]=s.a,r.emissionHeightBasedParams[t]=e.paint.get("model-height-based-emissive-strength-multiplier").evaluate(i,n,l),!r.hasTranslucentParts&&s.a<1&&(r.hasTranslucentParts=!0)}delete i.properties.part,Bv(r,s!==r.evaluatedColor[2]||a!==r.evaluatedRMEA[2],this.modelTraits)}else r.evaluatedRMEA[0][2]=e.paint.get("model-emissive-strength").evaluate(i,n,l);r.evaluatedTranslation=e.paint.get("model-translation").evaluate(i,n,l),r.evaluatedScale=e.paint.get("model-scale").evaluate(i,n,l),this.updatePbrBuffer(r.node)||(this.needsUpload=!0)}this.dirty=!1}elevationUpdate(e,t,i,r){const n=e.findDEMTileFor(i);if(n&&(n.tileID.canonical!==this.terrainTile||t!==this.terrainExaggeration)){if
1(n.dem&&n.tileID.overscaledZ!==this.elevationReadFromZ){this.elevationReadFromZ=n.tileID.overscaledZ;const t=fv.create(e,i,n);if(!t)return;this.modelTraits&i_.HasMapboxMeshFeatures&&this.updateDEM(e,t,i,r);for(const e of this.getNodesInfo()){const i=e.node;if(!i.footprint||!i.footprint.vertices||!i.footprint.vertices.length)continue;const r=i.footprint.vertices;let n=t.getElevationAt(r[0].x,r[0].y,!0,!0);for(let e=1;e<r.length;e++)n=Math.min(n,t.getElevationAt(r[e].x,r[e].y,!0,!0));i.elevation=n}}this.terrainTile=n.tileID.canonical,this.terrainExaggeration=t}}updateDEM(e,t,i,r){let n=t._dem._modifiedForSources[r];if(void 0===n&&(t._dem._modifiedForSources[r]=[],n=t._dem._modifiedForSources[r]),n.includes(i.canonical))return;const o=t._dem.dim;n.push(i.canonical);let s=!1;for(const a of this.getNodesInfo()){const e=a.node;if(!e.footprint||!e.footprint.grid)continue;const i=e.footprint.grid,r=t.tileCoordToPixel(i.min.x,i.min.y),n=t.tileCoordToPixel(i.max.x,i.max.y),l=Math.min(Math.min(o-n.y,r.x),Math.min(r.y,o-n.x));if(l<0)continue;const c=Je(l,2,5);let h=Math.max(0,r.x-c),u=Math.max(0,r.y-c),d=Math.min(n.x+c,o-1),f=Math.min(n.y+c,o-1);for(let t=u;t<=f;++t)for(let e=h;e<=d;++e)Av[t*o+e]=255;let p=0,A=0;for(let s=0;s<i.cellsY;++s)for(let e=0;e<i.cellsX;++e){if(!i.cells[s*i.cellsX+e])continue;const r=t.tileCoordToPixel(i.min.x+e/i.xScale,i.min.y+s/i.yScale),n=t.tileCoordToPixel(i.min.x+(e+1)/i.xScale,i.min.y+(s+1)/i.yScale);for(let e=r.y;e<=Math.min(n.y+1,o-1);++e)for(let i=r.x;i<=Math.min(n.x+1,o-1);++i)255===Av[e*o+i]&&(Av[e*o+i]=0,p+=t.getElevationAtPixel(i,e),A++)}const g=p/A;h=Math.max(1,r.x-c),u=Math.max(1,r.y-c),d=Math.min(n.x+c,o-2),f=Math.min(n.y+c,o-2),s=!0;for(let s=u;s<=f;++s)for(let e=h;e<=d;++e)0===Av[s*o+e]&&(pv[s*o+e]=t._dem.set(e,s,g));for(let s=1;s<c;++s){h=Math.max(1,r.x-s),u=Math.max(1,r.y-s),d=Math.min(n.x+s,o-2),f=Math.min(n.y+s,o-2);for(let e=u;e<=f;++e)for(let i=h;i<=d;++i){const r=e*o+i;if(255===Av[r]){let n=0,a=0,l=-1,h=-1;for(let t=-1;t<=1;++t)for(let r=-1;r<=1;++r){const c=(e+t)*o+i+r;if(Av[c]>=s)continue;const u=pv[c],d=Math.abs(u);d>a&&(n=u,a=d,l=r,h=t)}if(a>.1){const o=1-(s+.5*Math.abs(l*h))/c;let a=t._dem.get(i,e)+n*o;const u=t._dem.get(i+l,e+h),d=t._dem.get(i-l,e-h,!0);(a-u)*(a-d)>0&&(a=(u+d)/2),pv[r]=t._dem.set(i,e,a),Av[r]=s}}}}}s&&(t._demTile.needsDEMTextureUpload=!0,t._dem._timestamp=Dt.now())}setFilter(e){this.filter=e?ma(e):null}getNodesInfo(){return this.filter?this.nodesInfo.filter(e=>this.filter.filter(new ea(this.id.overscaledZ,{worldview:this.worldview}),e.feature,this.id.canonical)):this.nodesInfo}destroy(){const e=this.getNodesInfo();for(const t of e)c_(t.node),u_(t.node)}isEmpty(){return!this.nodesInfo.length}updateReplacement(e,t){if(t.updateTime===this.replacementUpdateTime)return;this.replacementUpdateTime=t.updateTime;const i=t.getReplacementRegionsForTile(e.toUnwrapped());for(const r of this.getNodesInfo()){const e=r.node.footprint;r.hiddenByReplacement=!!e&&!i.some(t=>t.footprint===e)}}getHeightAtTileCoord(e,t){const i=[0,0,0],r=h([]);for(const n of this.getNodesInfo()){const o=n.node.meshes[0],s=o.transformedAabb;if(e<s.min[0]||t<s.min[1]||e>s.max[0]||t>s.max[1])continue;if(!0===n.node.hidden)return{height:1/0,maxHeight:n.feature.properties.height,hidden:!1,verticalScale:n.evaluatedScale[2]};if(u(r,n.node.globalMatrix),i[0]=e,i[1]=t,i[2]=0,j(i,i,r),n.node.meshBVH){const e=i[0],t=i[1];gv[0]=e-1,gv[1]=t-1,gv[2]=-1e3,mv[0]=e+1,mv[1]=t+1,mv[2]=1e3;const r=n.node.meshBVH.findHighestPoint(gv,mv);if(null!==r)return{height:r,maxHeight:n.feature.properties.height,hidden:n.hiddenByReplacement,verticalScale:n.evaluatedScale[2]};continue}const a=(i[0]-o.aabb.min[0])/(o.aabb.max[0]-o.aabb.min[0])*t_|0,l=Math.min(63,(i[1]-o.aabb.min[1])/(o.aabb.max[1]-o.aabb.min[1])*t_|0)*t_+Math.min(63,a),c=o.heightmap[l];if(c<0&&n.node.footprint){const i=[];if(n.node.footprint.grid.query(new we(e,t),new we(e,t),i),i.length>0)return{height:void 0,maxHeight:n.feature.properties.height,hidden:n.hiddenByReplacement,verticalScale:n.evaluatedScale[2]};continue}if(n.hiddenByReplacement)return;return{height:c,maxHeight:n.feature.properties.height,hidden:!1,verticalScale:n.evaluatedScale[2]}}}}function Ev(e,t){return e instanceof Jo&&!e.isLightConstant&&t}function bv(e){const t=Je(e,0,2);return Math.min(Math.round(.5*t*255),255)}const Iv=new Float64Array(10*xv.length);function Cv(e,t,i,r,n){if(!e.featureData)return;const o=e.featureArray=new Qc;o.reserveExact(e.featureData.length),function(e,t,i){const r=i-t;for(let n=0;n<xv.length;n++){const i=e.evaluatedRMEA[n],o=e.evaluatedColor[n],s=e.emissionHeightBasedParams[n],a=Je(s[0],0,1),l=Je(s[1],0,1);let c=65535,h=0,u=1,d=1;if(a!==l&&0!==r){const e=Je(s[2],0,1),i=Je(s[3],0,1),n=r*(l-a);h=1/n,u=-(t+r*a)/n,d=Math.pow(10,Je(s[4],-1,1)),c=255*e<<8|255*i}const f=Iv,p=10*n;f[p]=255*o[0],f[p+1]=255*o[1],f[p+2]=255*o[2],f[p+3]=o[3],f[p+4]=Math.floor(255*i[3]),f[p+5]=bv(i[2])<<8|15*i[0]<<4|15*i[1],f[p+6]=c,f[p+7]=h,f[p+8]=u,f[p+9]=d}}(t,e.aabb.min[2],e.aabb.max[2]);const s=Iv,a=t.node;let l=n&&!!a.lights;for(const c of e.featureData){const e=c>>i&65535,t=c>>r&15,n=t<8?t:0,h=10*n;let u=(61440&e|(61440&e)>>4)>>8,d=(3840&e|(3840&e)>>4)>>4,f=240&e|(240&e)>>4;const p=(15&e|(15&e)<<4)/255,A=s[h+3];A>0&&(u=vi(u,s[h],A),d=vi(d,s[h+1],A),f=vi(f,s[h+2],A)),u*=p,d*=p,f*=p;const g=u<<8|d,m=f<<8|s[h+4],_=s[h+5],y=s[h+6],x=s[h+7],v=s[h+8],w=s[h+9];if(o.emplaceBack(g,m,_,y,x,v,w),l&&2===n){l=!1;const e=10*a.lights.length,t=new Qc;t.reserveExact(e);for(let i=0;i<e;i++)t.emplaceBack(g,m,_,y,x,v,w);a.meshes[a.lightMeshIndex].featureArray=t}}}function Bv(e,t,i){const r=e.node,n=i&i_.HasMeshoptCompression,o=n?0:16,s=n?16:0;for(let a=0;a<r.meshes.length;a++)r.lights&&r.lightMeshIndex===a||Cv(r.meshes[a],e,o,s,t);
1if(r.lodMeshes)for(const a of r.lodMeshes)Cv(a,e,o,s,!1)}ts(wv,"Tiled3dModelBucket",{omit:["layers"]}),ts(vv,"Tiled3dModelFeature");const Dv=["id","tile","layer","source","sourceLayer","state"];class Tv{constructor(e,t,i,r,n){this.type="Feature",this._vectorTileFeature=e,this._z=t,this._x=i,this._y=r,this.properties=e?e.properties:{},this.id=n}clone(){const e=new Tv(this._vectorTileFeature,this._z,this._x,this._y,this.id);return this.state&&(e.state=Object.assign({},this.state)),this.layer&&(e.layer=Object.assign({},this.layer)),this.source&&(e.source=this.source),this.sourceLayer&&(e.sourceLayer=this.sourceLayer),e}get geometry(){return void 0===this._geometry&&this._vectorTileFeature&&(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",state:void 0,geometry:this.geometry,properties:this.properties};for(const t of Dv)void 0!==this[t]&&(e[t]=this[t]);return e}}class Mv extends gi{constructor(e,t,i,r){super(),this.id=e,this.type="model",this.models=[],this._options=t,this._modelsInfo=new Map,this._abortController=null}cancelModelRequests(){this._abortController&&(this._abortController.abort(),this._abortController=null)}loadGLTFFromURI(e,t){return Rm(this.map._requestManager.transformRequest(e,Xt.Model).url,t)}async loadModel(e,t,i){try{const r=await this.loadGLTFFromURI(t.uri,i);if(i.aborted)return;const n=this._modelsInfo.get(e);if(!n)return;const o=b_(r),s=n.modelSpec,a=new n_(e,s.uri,s.position,s.orientation,o);Mv.applyModelSpecification(a,s),a.computeBoundsAndApplyParent(),this.models.push(a),n.model=a}catch(i){if(i instanceof Error&&"AbortError"===i.name)return;const r=i instanceof Error?i.message:"Unknown error";this.fire(new fi(new Error(`Could not load model ${e} from ${t.uri}: ${r}`)))}}async load(){this._abortController||(this._abortController=new AbortController);const e=this._abortController.signal,t=[];for(const i in this._options.models){const r=this._options.models[i],n=this._modelsInfo.get(i);if(n&&n.model){n.modelSpec=r;const e=n.model;e.position=null!=r.position?new Il(r.position[0],r.position[1]):new Il(0,0),e.orientation=null!=r.orientation?r.orientation:[0,0,0],Mv.applyModelSpecification(e,r),e.computeBoundsAndApplyParent(),this.models.push(e)}else n?n.modelSpec=r:(this._modelsInfo.set(i,{modelSpec:r,model:null}),t.push(this.loadModel(i,r,e)))}0!==t.length?(await Promise.allSettled(t),e.aborted||this.fire(new di("data",{dataType:"source",sourceDataType:"metadata"}))):this.loaded()&&this.fire(new di("data",{dataType:"source",sourceDataType:"metadata"}))}static applyModelSpecification(e,t){t.nodeOverrides&&Mv.convertNodeOverrides(e,t.nodeOverrides),t.materialOverrides&&Mv.convertMaterialOverrides(e,t.materialOverrides),t.nodeOverrideNames&&(e.nodeOverrideNames=[...t.nodeOverrideNames]),t.materialOverrideNames&&(e.materialOverrideNames=[...t.materialOverrideNames]),t.featureProperties&&(e.featureProperties=t.featureProperties)}static convertNodeOverrides(e,t){if(Array.isArray(t)&&t.every(e=>"string"==typeof e)){e.nodeOverrideNames=[];for(const i of t)e.nodeOverrideNames.push(i)}else Object.entries(t).forEach(([t,i])=>{const r={orientation:[0,0,0],minZoom:void 0,maxZoom:void 0};if(Object.hasOwn(i,"orientation")){const e=i.orientation;e&&(r.orientation=e)}Object.hasOwn(i,"minzoom")&&(r.minZoom=i.minzoom),Object.hasOwn(i,"maxzoom")&&(r.maxZoom=i.maxzoom),e.nodeOverrides.set(t,r)})}static convertMaterialOverrides(e,t){if(Array.isArray(t)&&t.every(e=>"string"==typeof e)){e.materialOverrideNames=[];for(const i of t)e.materialOverrideNames.push(i)}else Object.entries(t).forEach(([t,i])=>{const r=i["model-color"],n={color:void 0!==r?new Ei(r[0],r[1],r[2]):new Ei(1,1,1),colorMix:0,emissionStrength:0,opacity:1},o=i["model-color-mix-intensity"];void 0!==o&&(n.colorMix=o);const s=i["model-emissive-strength"];void 0!==s&&(n.emissionStrength=s);const a=i["model-opacity"];
vendor: 5,842 bytes, line 1
1void 0!==a&&(n.opacity=a),e.materialOverrides.set(t,n)})}onAdd(e){this.map=e,this.load()}hasTransition(){return!1}loaded(){if(0===this._modelsInfo.size)return!0;for(const e of this._modelsInfo.values())if(null==e.model)return!1;return!0}getModels(){return this.models}loadTile(e,t){}serialize(){return this._options}setProperty(e,t){return!1}reload(){this.cancelModelRequests();const e=Ma(this.id,this.scope);this.map.style.clearSource(e),this.models=[],this._modelsInfo.clear(),this.load()}onRemove(e){this.cancelModelRequests()}setModels(e){this.models=[];const t=new Map;for(const i in e){const r=e[i],n=this._modelsInfo.get(i);n&&n.modelSpec.uri===r.uri&&t.set(i,n)}if(this._modelsInfo.size!==t.size){this.cancelModelRequests();for(const[e,i]of t)i.model||t.delete(e)}this._modelsInfo=t,this._options.models=e,this.load()}}function Qv(e,t,i,r){const n=1<<e.z;t.lat=br((r/Yr+e.y)/n),t.lng=Er((i/Yr+e.x)/n)}function Sv(e,t,i,r){const n=e.getNodesInfo()[t];if(!n||n.hiddenByReplacement||!n.node.meshes)return;let o=Number.MAX_VALUE;const s=n.node,a=i.tile,l=r.calculatePosMatrix(a.tileID.toUnwrapped(),r.worldSize),c=n.evaluatedScale;let h=0;r.elevation&&s.elevation&&(h=s.elevation*r.elevation.exaggeration()),f(l,l,[(s.anchor?s.anchor[0]:0)*(c[0]-1),(s.anchor?s.anchor[1]:0)*(c[1]-1),h]),p(l,l,c);const u=i.queryGeometry,A=u.isPointQuery()?u.screenBounds:u.screenGeometry,g=function(e){const t=d([],l,e.globalMatrix);d(t,r.expandedFarZProjMatrix,t);for(let i=0;i<e.meshes.length;++i){const n=e.meshes[i];if(i===e.lightMeshIndex)continue;const s=e_(A,r,t,n.aabb);null!=s&&(o=Math.min(s,o))}if(e.children)for(const i of e.children)g(i)};if(g(s),o===Number.MAX_VALUE)return;const m=new Il(0,0);return Qv(a.tileID.canonical,m,n.node.anchor[0],n.node.anchor[1]),{intersectionZ:o,position:m,feature:n.feature}}const Pv={circle:class extends ka{constructor(e,t,i,r){super(e,{layout:Ry||(Ry=new da({"circle-sort-key":new ha(fa.layout_circle["circle-sort-key"]),"circle-elevation-reference":new ca(fa.layout_circle["circle-elevation-reference"]),visibility:new ca(fa.layout_circle.visibility)})),paint:zy||(zy=new da({"circle-radius":new ha(fa.paint_circle["circle-radius"]),"circle-color":new ha(fa.paint_circle["circle-color"]),"circle-blur":new ha(fa.paint_circle["circle-blur"]),"circle-opacity":new ha(fa.paint_circle["circle-opacity"]),"circle-translate":new ca(fa.paint_circle["circle-translate"]),"circle-translate-anchor":new ca(fa.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new ca(fa.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new ca(fa.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new ha(fa.paint_circle["circle-stroke-width"]),"circle-stroke-color":new ha(fa.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new ha(fa.paint_circle["circle-stroke-opacity"]),"circle-emissive-strength":new ca(fa.paint_circle["circle-emissive-strength"]),"circle-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"circle-stroke-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"})}))},t,i,r)}createBucket(e){return new Su(e)}queryRadius(e){const t=e;return Yy("circle-radius",this,t)+Yy("circle-stroke-width",this,t)+Wy(this.paint.get("circle-translate"))}queryIntersectsFeature(e,t,i,r,n,o,s,a){const l=Zy(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),c=this.paint.get("circle-radius").evaluate(t,i)+this.paint.get("circle-stroke-width").evaluate(t,i);return Xy(e,r,o,s,a,"map"===this.paint.get("circle-pitch-alignment"),"map"===this.paint.get("circle-pitch-scale"),l,c)}getProgramIds(){return["circle"]}getDefaultProgramParams(e,t,i){const r=Ky(this);return{config:new Eh(this,{zoom:t,lut:i}),defines:r,overrideFog:!1}}is3D(e){return!e&&!!this.layout&&"none"!==this.layout.get("circle-elevation-reference")}hasElevation(){return this.layout&&"none"!==this.layout.get("circle-elevation-reference")}mayUse(e){return"HD"===e&&Na(this,"circle-elevation-reference",e=>"hd-road-markup"===e)}prepare(){return this.mayUse("HD")?Gy():Promise.resolve()}},heatmap:class extends ka{createBucket(e){return new rx(e)}constructor(e,t,i,r){super(e,{layout:nx||(nx=new da({visibility:new ca(fa.layout_heatmap.visibility)})),paint:ox||(ox=new da({"heatmap-radius":new ha(fa.paint_heatmap["heatmap-radius"]),"heatmap-weight":new ha(fa.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new ca(fa.paint_heatmap["heatmap-intensity"]),"heatmap-color":new ua(fa.paint_heatmap["heatmap-color"]),"heatmap-opacity":new ca(fa.paint_heatmap["heatmap-opacity"]),"heatmap-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"})}))},t,i,r),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(e){"heatmap-color"===e&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=_x({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)}_clear(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null),this.colorRampTexture&&(this.colorRampTexture.destroy(),this.colorRampTexture=null)}queryRadius(e){return Yy("heatmap-radius",this,e)}queryIntersectsFeature(e,t,i,r,n,o,s,a){const l=this.paint.get("heatmap-radius").evaluate(t,i);return Xy(e,r,o,s,a,!0,!0,new we(0,0),l)}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}getProgramIds(){return["heatmap","heatmapTexture"]}getDefaultProgramParams(e,t,i){return"heatmap"===e?{config:new Eh(this,{zoom:t,lut:i}),overrideFog:!1}:{}}},hillshade:class extends ka{constructor(e,t,i,r){super(e,{layout:sx||(sx=new da({visibility:new ca(fa.layout_hillshade.visibility)}
vendor: 4,162 bytes, line 1
1)),paint:ax||(ax=new da({"hillshade-illumination-direction":new ca(fa.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new ca(fa.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new ca(fa.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new ca(fa.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new ca(fa.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new ca(fa.paint_hillshade["hillshade-accent-color"]),"hillshade-emissive-strength":new ca(fa.paint_hillshade["hillshade-emissive-strength"]),"hillshade-shadow-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"hillshade-highlight-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"hillshade-accent-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"})}))},t,i,r)}shouldRedrape(){return this.hasOffscreenPass()&&"viewport"===this.paint.get("hillshade-illumination-anchor")}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}getProgramIds(){return["hillshade","hillshadePrepare"]}getDefaultProgramParams(e,t,i){return{overrideFog:!1}}},fill:class extends ka{constructor(e,t,i,r){super(e,{layout:lx||(lx=new da({"fill-sort-key":new ha(fa.layout_fill["fill-sort-key"]),visibility:new ca(fa.layout_fill.visibility),"fill-elevation-reference":new ca(fa.layout_fill["fill-elevation-reference"]),"fill-construct-bridge-guard-rail":new ha(fa.layout_fill["fill-construct-bridge-guard-rail"])})),paint:cx||(cx=new da({"fill-antialias":new ca(fa.paint_fill["fill-antialias"]),"fill-opacity":new ha(fa.paint_fill["fill-opacity"]),"fill-color":new ha(fa.paint_fill["fill-color"]),"fill-outline-color":new ha(fa.paint_fill["fill-outline-color"]),"fill-translate":new ca(fa.paint_fill["fill-translate"]),"fill-translate-anchor":new ca(fa.paint_fill["fill-translate-anchor"]),"fill-pattern":new ha(fa.paint_fill["fill-pattern"]),"fill-pattern-cross-fade":new ca(fa.paint_fill["fill-pattern-cross-fade"]),"fill-emissive-strength":new ca(fa.paint_fill["fill-emissive-strength"]),"fill-z-offset":new ha(fa.paint_fill["fill-z-offset"]),"fill-bridge-guard-rail-color":new ha(fa.paint_fill["fill-bridge-guard-rail-color"]),"fill-tunnel-structure-color":new ha(fa.paint_fill["fill-tunnel-structure-color"]),"fill-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"fill-outline-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"fill-bridge-guard-rail-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"fill-tunnel-structure-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"})}))},t,i,r)}getProgramIds(){const e=this.paint.get("fill-pattern"),t=e&&e.constantOr(1),i=[t?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&i.push(t&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),i}getDefaultProgramParams(e,t,i){return{config:new Eh(this,{zoom:t,lut:i}),overrideFog:!1}}recalculate(e,t){super.recalculate(e,t);const i=this.paint._values["fill-outline-color"];"constant"===i.value.kind&&void 0===i.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(e){return new Qh(e)}queryRadius(){return Wy(this.paint.get("fill-translate"))}queryIntersectsFeature(e,t,i,r,n,o){return!e.queryGeometry.isAboveHorizon&&Jh(Jy(e.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),r)}isTileClipped(){return 0===this.paint.get("fill-z-offset").constantOr(1)}is3D(e){if(0!==this.paint.get("fill-z-offset").constantOr(1))return!0;const t=this.layout&&"none"!==this.layout.get("fill-elevation-reference");return null!=e?t&&!e:t}hasElevation(){return this.layout&&"none"!==this.layout.get("fill-elevation-reference")}mayUse(e){return"HD"===e&&Na(this,"fill-elevation-reference",e=>"none"!==e)}prepare(){return this.mayUse("HD")?Gy():Promise.resolve()}
vendor: 10,403 bytes, line 1
1hasShadowPass(){return this.layout&&"none"!==this.layout.get("fill-elevation-reference")}},"fill-extrusion":class extends ka{constructor(e,t,i,r){super(e,{layout:dx||(dx=new da({visibility:new ca(fa["layout_fill-extrusion"].visibility),"fill-extrusion-edge-radius":new ca(fa["layout_fill-extrusion"]["fill-extrusion-edge-radius"]),"source-max-zoom":new ca(fa["layout_fill-extrusion"]["source-max-zoom"])})),paint:fx||(fx=new da({"fill-extrusion-opacity":new ca(fa["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new ha(fa["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new ca(fa["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new ca(fa["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new ha(fa["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-pattern-cross-fade":new ca(fa["paint_fill-extrusion"]["fill-extrusion-pattern-cross-fade"]),"fill-extrusion-height":new ha(fa["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new ha(fa["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-height-alignment":new ca(fa["paint_fill-extrusion"]["fill-extrusion-height-alignment"]),"fill-extrusion-base-alignment":new ca(fa["paint_fill-extrusion"]["fill-extrusion-base-alignment"]),"fill-extrusion-vertical-gradient":new ca(fa["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]),"fill-extrusion-ambient-occlusion-intensity":new ca(fa["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-intensity"]),"fill-extrusion-ambient-occlusion-radius":new ca(fa["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-radius"]),"fill-extrusion-ambient-occlusion-wall-radius":new ca(fa["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-wall-radius"]),"fill-extrusion-ambient-occlusion-ground-radius":new ca(fa["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-ground-radius"]),"fill-extrusion-ambient-occlusion-ground-attenuation":new ca(fa["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-ground-attenuation"]),"fill-extrusion-flood-light-color":new ca(fa["paint_fill-extrusion"]["fill-extrusion-flood-light-color"]),"fill-extrusion-flood-light-intensity":new ca(fa["paint_fill-extrusion"]["fill-extrusion-flood-light-intensity"]),"fill-extrusion-flood-light-wall-radius":new ha(fa["paint_fill-extrusion"]["fill-extrusion-flood-light-wall-radius"]),"fill-extrusion-flood-light-ground-radius":new ha(fa["paint_fill-extrusion"]["fill-extrusion-flood-light-ground-radius"]),"fill-extrusion-flood-light-ground-attenuation":new ca(fa["paint_fill-extrusion"]["fill-extrusion-flood-light-ground-attenuation"]),"fill-extrusion-vertical-scale":new ca(fa["paint_fill-extrusion"]["fill-extrusion-vertical-scale"]),"fill-extrusion-rounded-roof":new ca(fa["paint_fill-extrusion"]["fill-extrusion-rounded-roof"]),"fill-extrusion-cutoff-fade-range":new ca(fa["paint_fill-extrusion"]["fill-extrusion-cutoff-fade-range"]),"fill-extrusion-front-cutoff":new ca(fa["paint_fill-extrusion"]["fill-extrusion-front-cutoff"]),"fill-extrusion-emissive-strength":new ha(fa["paint_fill-extrusion"]["fill-extrusion-emissive-strength"]),"fill-extrusion-line-width":new ha(fa["paint_fill-extrusion"]["fill-extrusion-line-width"]),"fill-extrusion-cast-shadows":new ca(fa["paint_fill-extrusion"]["fill-extrusion-cast-shadows"]),"fill-extrusion-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"fill-extrusion-flood-light-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"})}))},t,i,r),this._stats={numRenderedVerticesInShadowPass:0,numRenderedVerticesInTransparentPass:0}}createBucket(e){return new gy(e)}queryRadius(){return Wy(this.paint.get("fill-extrusion-translate"))}is3D(e){return!0}hasShadowPass(){return this.paint.get("fill-extrusion-cast-shadows")}cutoffRange(){return this.paint.get("fill-extrusion-cutoff-fade-range")}canCastShadows(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion"]}queryIntersectsFeature(e,t,i,r,n,o,s,a,l){const c=Zy(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),h=this.paint.get("fill-extrusion-height").evaluate(t,i),u=this.paint.get("fill-extrusion-base").evaluate(t,i),d=[0,0],f=a&&o.elevation,p=o.elevation?o.elevation.exaggeration():1,A=e.tile.getBucket(this);if(A instanceof gy){const e=A.centroidData.find(e=>l>=e.vertexArrayOffset&&l<e.vertexArrayOffset+e.vertexCount);if(e&&e.flags&iy)return!1;if(f){const e=A.centroidVertexArray,t=l+1;t<e.length&&(d[0]=e.geta_centroid_pos0(t),d[1]=e.geta_centroid_pos1(t))}}if(0===d[0]&&1===d[1])return!1;"globe"===o.projection.name&&(r=Cy([r],[new we(0,0),new we(Yr,Yr)],e.tileID.canonical).map(e=>e.polygon).flat());const g=f?a:null,[m,_]=Ex(o,r,u,h,c,s,g,d,p,o.center.lat,e.tileID.canonical),y=e.queryGeometry;return wx(m,_,y.isPointQuery()?y.screenBounds:y.screenGeometry)}},building:class extends ka{constructor(e,t,i,r){super(e,{layout:px||(px=new da({visibility:new ca(fa.layout_building.visibility),"building-facade":new ha(fa.layout_building["building-facade"]),"building-facade-floors":new ha(fa.layout_building["building-facade-floors"]),"building-facade-unit-width":new ha(fa.layout_building["building-facade-unit-width"]),"building-facade-window":new ha(fa.layout_building["building-facade-window"]),"building-roof-shape":new ha(fa.layout_building["building-roof-shape"]),"building-height":new ha(fa.layout_building["building-height"]),"building-base":new ha(fa.layout_building["building-base"]),"building-flood-light-wall-radius":new ha(fa.layout_building["building-flood-light-wall-radius"]),"building-flood-light-ground-radius":new ha(fa.layout_building["building-flood-light-ground-radius"]),"building-flip-roof-orientation":new ha(fa.layout_building["building-flip-roof-orientation"])})),paint:Ax||(Ax=new da({"building-opacity":new ca(fa.paint_building["building-opacity"]),"building-ambient-occlusion-intensity":new ca(fa.paint_building["building-ambient-occlusion-intensity"]),"building-ambient-occlusion-ground-intensity":new ca(fa.paint_building["building-ambient-occlusion-ground-intensity"]),"building-ambient-occlusion-ground-radius":new ca(fa.paint_building["building-ambient-occlusion-ground-radius"]),"building-ambient-occlusion-ground-attenuation":new ca(fa.paint_building["building-ambient-occlusion-ground-attenuation"]),"building-vertical-scale":new ca(fa.paint_building["building-vertical-scale"]),"building-cast-shadows":new ca(fa.paint_building["building-cast-shadows"]),"building-color":new ha(fa.paint_building["building-color"]),"building-emissive-strength":new ha(fa.paint_building["building-emissive-strength"]),"building-facade-emissive-chance":new ca(fa.paint_building["building-facade-emissive-chance"]),"building-cutoff-fade-range":new ca(fa.paint_building["building-cutoff-fade-range"]),"building-front-cutoff":new ca(fa.paint_building["building-front-cutoff"]),"building-flood-light-color":new ca(fa.paint_building["building-flood-light-color"]),"building-flood-light-intensity":new ca(fa.paint_building["building-flood-light-intensity"]),"building-flood-light-ground-attenuation":new ca(fa.paint_building["building-flood-light-ground-attenuation"]),"building-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"building-flood-light-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"})}))},t,i,r),this._stats={numRenderedVerticesInShadowPass:0,numRenderedVerticesInTransparentPass:0}}mayUse(e){return"HD"===e}prepare(){return async function(){return function(){if(!ut(self))return null;if(null!=Oy||null!=Fy)return null;if(null!=Ly)return Ly;const e=fetch(St());return Ly=function(e){let t,i,r,n,o;function s(){t=new Uint8Array(o.buffer),i=new Int16Array(o.buffer),r=new Int32Array(o.buffer),n=new Float32Array(o.buffer)}function a(){throw new Error("Unexpected BuildingGen error.")}const l=()=>{},c={a:{a:a,f:function(e){const i=t.length,r=Math.max(e>>>0,Math.ceil(1.2*i)),n=Math.ceil((r-i)/65536);try{return o.grow(n),s(),!0}catch(e){return!1}},g:a,b:l,c:l,d:l,e:l}};return(WebAssembly.instantiateStreaming?WebAssembly.instantiateStreaming(e,c):e.then(e=>e.arrayBuffer()).then(e=>WebAssembly.instantiate(e,c))).then(e=>{const a=e.instance.exports;return(0,a.g)(),o=a.f,s(),new Ty({setStyle:a.h,setAOOptions:a.i,setMetricOptions:a.j,setStructuralOptions:a.k,setFacadeOptions:a.l,setFauxFacadeOptions:a.m,setFacadeClassifierOptions:a.n,addFeature:a.o,addFacade:a.p,generateMesh:a.q,getLastError:a.r,getOuterRingLength:a.s,getMeshCount:a.t,getPositionsPtr:a.u,getPositionsLength:a.v,getNormalsPtr:a.w,getNormalsLength:a.x,getAOPtr:a.y,getAOLength:a.z,getUVPtr:a.A,getUVLength:a.B,getFauxFacadePtr:a.C,getFauxFacadeLength:a.D,getIndicesPtr:a.E,getIndicesLength:a.F,getBuildingPart:a.G,getRingCount:a.H,getRingPtr:a.I,getRingLength:a.J,malloc:a.K,free:a.L,heapU8:t,heap16:i,heap32:r,heapF32:n})})}(e).then(e=>{Ly=null,Oy=e}).catch(e=>{lt("Could not load building-gen"),Ly=null,Fy=e}),Ly}()}()}createBucket(e){return new Uy(e)}cutoffRange(){return this.paint.get("building-cutoff-fade-range")}hasShadowPass(){return this.paint.get("building-cast-shadows")}hasLightBeamPass(){return!0}canCastShadows(){return!0}is3D(e){return!0}queryRadius(e){return 0}queryIntersectsFeature(e,t,i,r,n,o,s,a,l,c){let h=this.layout.get("building-height").evaluate(t,i);const u=this.layout.get("building-base").evaluate(t,i),d=e.tile.getBucket(this).getFootprint(t);if(d){if(0!==d.hiddenFlags)return!1;h=d.height}const[f,p]=Ex(o,r,u,h,new we(0,0),s,null,[0,0],1,o.center.lat,e.tileID.canonical),A=e.queryGeometry;return wx(f,p,A.isPointQuery()?A.screenBounds:A.screenGeometry)}},line:class extends ka{constructor(e,t,i,r){const n=Qx();super(e,n,t,i,r),n.layout&&(this.layout=new la(n.layout)),this.gradientVersion=0,this.hasElevatedBuckets=!1,this.hasNonElevatedBuckets=!1,this.lineBlendFbos=null,this.lineBlendDensityReadback=null}_handleSpecialPaintPropertyUpdate(e){if("line-gradient"===e){const e=this._transitionablePaint._values["line-gradient"].value.expression;this.stepInterpolant=e._styleExpression&&e._styleExpression.expression instanceof Qn,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}
vendor: 4,754 bytes, line 1
1else"line-gradient-use-theme"===e&&(this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER)}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}widthExpression(){return this._transitionablePaint._values["line-width"].value.expression}emissiveStrengthExpression(){return this._transitionablePaint._values["line-emissive-strength"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=(()=>{if(Px)return Px;const e=Qx();return Px=new Sx(e.paint.properties["line-width"].specification),Px.useIntegerZoom=!0,Px})().possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new Bu(e)}getProgramIds(){const e=[this.paint.get("line-pattern").constantOr(1)?"linePattern":"line"];return"default"!==this.paint.get("line-blend-mode")&&e.push("lineBlendComposite"),e}getDefaultProgramParams(e,t,i){if("lineBlendComposite"===e)return{};const r=Dx(this);return{config:new Eh(this,{zoom:t,lut:i}),defines:r,overrideFog:!1}}queryRadius(e){const t=e,i=Fx(Yy("line-width",this,t),Yy("line-gap-width",this,t)),r=Yy("line-offset",this,t);return i/2+Math.abs(r)+Wy(this.paint.get("line-translate"))}queryIntersectsFeature(e,t,i,r,n,o){if(e.queryGeometry.isAboveHorizon)return!1;const s=Jy(e.tilespaceGeometry,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),o.angle,e.pixelToTileUnitsFactor),a=e.pixelToTileUnitsFactor/2*Fx(this.paint.get("line-width").evaluate(t,i),this.paint.get("line-gap-width").evaluate(t,i)),l=this.paint.get("line-offset").evaluate(t,i);return l&&(r=function(e,t){const i=[],r=new we(0,0);for(let n=0;n<e.length;n++){const o=e[n],s=[];for(let e=0;e<o.length;e++){const i=o[e],n=o[e+1],a=0===e?r:i.sub(o[e-1])._unit()._perp(),l=e===o.length-1?r:n.sub(i)._unit()._perp(),c=a._add(l)._unit();c._mult(1/(c.x*l.x+c.y*l.y)),s.push(c._mult(t)._add(i))}i.push(s)}return i}(r,l*e.pixelToTileUnitsFactor)),function(e,t,i){for(let r=0;r<t.length;r++){const n=t[r];if(e.length>=3)for(let t=0;t<n.length;t++)if(ru(e,n[t]))return!0;if(Zh(e,n,i))return!0}return!1}(s,r,a)}isTileClipped(){return this.hasNonElevatedBuckets}isDraped(e){return!this.hasElevatedBuckets||this.layout&&"hd-road-markup"===this.layout.get("line-elevation-reference")}hasElevation(){return this.layout&&"none"!==this.layout.get("line-elevation-reference")}mayUse(e){return"HD"===e&&Na(this,"line-elevation-reference",e=>"hd-road-markup"===e)}prepare(){return this.mayUse("HD")?Gy():Promise.resolve()}hasOffscreenPass(){return"default"!==this.paint.get("line-blend-mode")&&0!==this.paint.get("line-opacity").constantOr(1)&&0!==this.paint.get("line-width").constantOr(1)&&"none"!==this.visibility}resize(){this._destroyLineBlendFbo()}onRemove(e){this._destroyLineBlendFbo(e.painter&&e.painter.context&&e.painter.context.gl||void 0)}_clear(){this._destroyLineBlendFbo()}_destroyLineBlendFbo(e){this.lineBlendFbos&&(this.lineBlendFbos.destroy(),this.lineBlendFbos=null),e&&this.lineBlendDensityReadback&&this.lineBlendDensityReadback.destroy(e),this.lineBlendDensityReadback=null}},symbol:Ux,background:class extends ka{constructor(e,t,i,r){super(e,{layout:Vx||(Vx=new da({visibility:new ca(fa.layout_background.visibility)})),paint:Hx||(Hx=new da({"background-pitch-alignment":new ca(fa.paint_background["background-pitch-alignment"]),"background-color":new ca(fa.paint_background["background-color"]),"background-pattern":new ca(fa.paint_background["background-pattern"]),"background-opacity":new ca(fa.paint_background["background-opacity"]),"background-emissive-strength":new ca(fa.paint_background["background-emissive-strength"]),"background-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"})}))},t,i,r)}getProgramIds(){return[this.paint.get("background-pattern")?"backgroundPattern":"background"]}getDefaultProgramParams(e,t,i){return{overrideFog:!1}}is3D(e){return"viewport"===this.paint.get("background-pitch-alignment")}},raster:$x,"raster-particle":av,sky:class extends ka{constructor(e,t,i,r){super(e,{layout:iv||(iv=new da({visibility:new ca(fa.layout_sky.visibility)})),paint:rv||(rv=new da({"sky-type":new ca(fa.paint_sky["sky-type"]),"sky-atmosphere-sun":new ca(fa.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new ca(fa.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new ca(fa.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new ca(fa.paint_sky["sky-gradient-radius"]),"sky-gradient":new ua(fa.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new ca(fa.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new ca(fa.paint_sky["sky-atmosphere-color"]),"sky-opacity":new ca(fa.paint_sky["sky-opacity"]),"sky-gradient-use
1-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"sky-atmosphere-halo-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"}),"sky-atmosphere-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"})}))},t,i,r),this._updateColorRamp()}_clear(){this.skyboxFbo&&(this.skyboxFbo.destroy(),this.skyboxFbo=null),this.colorRampTexture&&(this.colorRampTexture.destroy(),this.colorRampTexture=null),this._skyboxInvalidated=!0}_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=_x({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 i=this.paint.get("sky-atmosphere-sun"),r=!i,n=e.style.light,o=n.properties.get("position");return r&&"viewport"===n.properties.get("anchor")&<("The sun direction is attached to a light with viewport anchor, lighting may behave unexpectedly."),r?cv(o.azimuthal,90-o.polar,t):cv(i[0],90-i[1],t)}const i=this.paint.get("sky-gradient-center");return cv(i[0],90-i[1],t)}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}},slot:class extends ka{constructor(e,t,i,r){super(e,{paint:nv||(nv=new da({}))},t,null)}},model:class extends ka{constructor(e,t,i,r){super(e,{layout:ov||(ov=new da({visibility:new ca(fa.layout_model.visibility),"model-id":new ha(fa.layout_model["model-id"]),"model-allow-density-reduction":new ca(fa.layout_model["model-allow-density-reduction"])})),paint:sv||(sv=new da({"model-opacity":new ha(fa.paint_model["model-opacity"]),"model-rotation":new ha(fa.paint_model["model-rotation"]),"model-scale":new ha(fa.paint_model["model-scale"]),"model-translation":new ha(fa.paint_model["model-translation"]),"model-color":new ha(fa.paint_model["model-color"]),"model-color-mix-intensity":new ha(fa.paint_model["model-color-mix-intensity"]),"model-type":new ca(fa.paint_model["model-type"]),"model-cast-shadows":new ca(fa.paint_model["model-cast-shadows"]),"model-receive-shadows":new ca(fa.paint_model["model-receive-shadows"]),"model-ambient-occlusion-intensity":new ca(fa.paint_model["model-ambient-occlusion-intensity"]),"model-emissive-strength":new ha(fa.paint_model["model-emissive-strength"]),"model-roughness":new ha(fa.paint_model["model-roughness"]),"model-height-based-emissive-strength-multiplier":new ha(fa.paint_model["model-height-based-emissive-strength-multiplier"]),"model-cutoff-fade-range":new ca(fa.paint_model["model-cutoff-fade-range"]),"model-front-cutoff":new ca(fa.paint_model["model-front-cutoff"]),"model-elevation-reference":new ca(fa.paint_model["model-elevation-reference"]),"model-line-cutout-mode":new ca(fa.paint_model["model-line-cutout-mode"]),"model-color-use-theme":new ha({type:"string",default:"default","property-type":"data-driven"})}))},t,i,r),this.layer=e,this._stats={numRenderedVerticesInShadowPass:0,numRenderedVerticesInTransparentPass:0}}mayUse(e){return"Standard"===e}prepare(){return async function(){return Promise.resolve()}()}createBucket(e){return new dv(e)}getProgramIds(){return["model"]}is3D(e){return!0}hasShadowPass(){return!0}canCastShadows(){return!0}hasLightBeamPass(){return!0}cutoffRange(){return this.paint.get("model-cutoff-fade-range")}queryRadius(e){return e instanceof wv?8191:0}queryRenderedFeatures(e,t,i){const r=t.getSource();if(!(r&&r instanceof Mv))return{};const n=r,o={};o[this.id]=[];const s=o[this.id];let a=0;for(const l of n.models){const r=t.getFeatureState(this.sourceLayer,l.id),n={type:"Unknown",id:l.id,properties:l.featureProperties},o=this.paint.get("model-rotation").evaluate(n,r),c=this.paint.get("model-scale").evaluate(n,r),h=this.paint.get("model-translation").evaluate(n,r),u=this.paint.get("model-elevation-reference");let f=[];r_(f,l,i,l.position,o,c,h,"ground"===u,"ground"===u,!1),"globe"===i.projection.name&&(f=$m(f,i));const p=d([],i.projMatrix,f),A=e_(e.isPointQuery()?e.screenBounds:e.screenGeometry,i,p,l.aabb);if(null!=A){const e=new Tv(void 0,0,0,0,l.id);e.layer=this.layer,e.properties=structuredClone(l.featureProperties),e.properties.layer=this.id,e.properties.uri=l.uri,e.properties.orientation=l.orientation,e.sourceLayer=this.sourceLayer,e.geometry={type:"Point",coordinates:[l.position.lng,l.position.lat]},e.state=r,e.source=this.source,s.push({featureIndex:a,feature:e,intersectionZ:A})}++a}return o}queryIntersectsFeature(e,t,i,r,n,o,s,a,l,c){if(!this.modelManager)return!1;const h=this.modelManager,u=e.tile.getBucket(this);if(!(u&&u instanceof dv))return!1;for(const f in u.instancesPerModel){const i=u.instancesPerModel[f],r=void 0!==t.id?t.id:t.properties&&Object.hasOwn(t.properties,"id")?t.properties.id:void 0;if(Object.hasOwn(i.idToFeaturesIndex,r)){const t=i.features[i.idToFeaturesIndex[r]],n=h.getModel(f,c||this.scope);if(!n)return!1;let s=[];const a=new Il(0,0),l=u.canonical;let p=Number.MAX_VALUE;for(let r=0;r<t.instancedDataCount;++r){const c=16*(t.instancedDataOffset+r),h=i.instancedDataArray.float32,u=[h[c+4],h[c+5],h[c+6]];Qv(l,a,Math.floor(h[c]),Math.floor(h[c+1])),r_(s,n,o,a,t.rotation,t.scale,u,!1,!1,!1),"globe"===o.projection.name&&(s=$m(s,o));const f=d([],o.projMatrix,s),A=e.queryGeometry,g=e_(A.isPointQuery()?A.screenBounds:A.screenGeometry,o,f,n.aabb);null!=g&&(p=Math.min(g,p))}return p!==Number.MAX_VALUE&&p}}return!1}_handleOverridablePaintPropertyUpdate(e,t,i){return!(!this.layout||t.isDataDriven()||i.isDataDriven()||"model-color"!==e&&"model-color-mix-intensity"!==e&&"model-rotation"!==e&&"model-scale"!==e&&"model-translation"!==e&&"model-emissive-strength"!==e)}_isPropertyZoomDependent(e){const t=this._transitionablePaint._values[e];return null!=t&&null!=t.value&&null!=t.value.expression&&t.value.expression instanceof Zo}isZoomDependent(){return this._isPropertyZoomDependent("model-scale")||this._isPropertyZoomDependent("model-rotation")||this._isPropertyZoomDependent("model-translation")}},clip:class extends ka{constructor(e,t,i,r){super(e,{layout:hx||(hx=new da({"clip-layer-types":ne
vendor: 13,117 bytes, line 1
1w ca(fa.layout_clip["clip-layer-types"]),"clip-layer-scope":new ca(fa.layout_clip["clip-layer-scope"]),visibility:new ca(fa.layout_clip.visibility)})),paint:ux||(ux=new da({}))},t,i,r)}recalculate(e,t){super.recalculate(e,t)}createBucket(e){return new yx(e)}is3D(e){return!0}}};class Rv{constructor(e){this.capacity=e,this.cache=new Map}get(e){if(!this.cache.has(e))return;const t=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,t),t}put(e,t){this.cache.has(e)?this.cache.delete(e):this.cache.size===this.capacity&&this.cache.delete(this.cache.keys().next().value),this.cache.set(e,t)}delete(e){this.cache.delete(e)}}ts(Rv,"LRUCache");class zv{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&&(this._channel.port1.close(),this._channel.port2.close()),this._callback=()=>{}}}class Lv{constructor(e){this._stringToNumber={},this._numberToString=[];for(let t=0;t<e.length;t++){const i=e[t];this._stringToNumber[i]=t,this._numberToString[t]=i}}encode(e){return this._stringToNumber[e]}decode(e){return this._numberToString[e]}}class Fv{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new $o(Yr,Yr,512),this.featureIndexArray=new Hc,this.promoteId=t,this.is3DTile=!1,this.serializedLayersCache=new Map}insert(e,t,i,r,n,o=0,s=0){const a=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(i,r,n,o);const l=this.grid;for(let c=0;c<t.length;c++){const e=t[c],i=[1/0,1/0,-1/0,-1/0];for(let t=0;t<e.length;t++){const r=e[t];i[0]=Math.min(i[0],r.x),i[1]=Math.min(i[1],r.y),i[2]=Math.max(i[2],r.x),i[3]=Math.max(i[3],r.y)}0!==s&&(i[0]-=s,i[1]-=s,i[2]+=s,i[3]+=s),i[0]<Yr&&i[1]<Yr&&i[2]>=0&&i[3]>=0&&l.insert(a,i[0],i[1],i[2],i[3])}}loadVTLayers(){if(!this.vtLayers){this.vtLayers=new Gh(new sd(this.rawTileData)).layers,this.sourceLayerCoder=new Lv(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){const{tilespaceGeometry:i,transform:r,tileTransform:n,pixelPosMatrix:o,availableImages:s,worldview:a}=t;this.loadVTLayers(),this.serializedLayersCache.clear();const l=t.queryRadius?t.queryRadius:0,c=i.bufferedTilespaceBounds,h=this.grid.queryKeys(c.min.x,c.min.y,c.max.x,c.max.y,(e,t,r,n)=>nu(i.bufferedTilespaceGeometry,e-l,t-l,r+l,n+l));h.sort(kv);let u=null;r.elevation&&h.length>0&&(u=fv.create(r.elevation,this.tileID));const d={};let f;for(let p=0;p<h.length;p++){const l=h[p];if(l===f)continue;f=l;const c=this.featureIndexArray.get(l);let A=null;this.is3DTile?this.loadMatchingModelFeature(d,c,e,i,r,a):this.loadMatchingFeature(d,c,e,s,a,(e,s,a,l=0)=>(A||(A=Hl(e,this.tileID.canonical,n)),s.queryIntersectsFeature(i,e,a,A,this.z,r,o,u,l,t.scope)))}return d}loadMatchingFeature(e,t,i,r,n,o){const{featureIndex:s,bucketIndex:a,sourceLayerIndex:l,layoutVertexArrayOffset:c}=t,h=this.bucketLayerIDs[a],u=i.layers,d=Object.keys(u);if(d.length&&!st(d,h))return;const f=i.sourceCache,p=this.sourceLayerCoder.decode(l),A=this.vtLayers[p].feature(s),g=this.getId(A,p);for(let m=0;m<h.length;m++){const t=h[m];if(!u[t])continue;const{styleLayer:i,targets:a}=u[t];let l={};void 0!==g&&(l=f.getFeatureState(i.sourceLayer,g));const d=!o||o(A,i,l,c);if(!d)continue;const p=new Tv(A,this.z,this.x,this.y,g);p.tile=this.tileID.canonical,p.state=l;let _=this.serializedLayersCache.get(t);_||(_=i.serialize(),_.id=t,this.serializedLayersCache.set(t,_)),p.source=_.source,p.sourceLayer=_["source-layer"],p.layer=Object.assign({},_),p.layer.paint=Ov(_.paint,i.paint,A,l,r),p.layer.layout=Ov(_.layout,i.layout,A,l,r);let y=!1;for(const e of a){this.updateFeatureProperties(p,e);const{filter:t}=e;if(t)if(A.properties=p.properties,t.needGeometry){const e=jl(A,!0);if(!t.filter(new ea(this.tileID.overscaledZ,{worldview:n}),e,this.tileID.canonical))continue}else if(!t.filter(new ea(this.tileID.overscaledZ,{worldview:n}),A))continue;y=!0,e.targetId&&this.addFeatureVariant(p,e)}y&&this.appendToResult(e,t,s,p,d)}}loadMatchingModelFeature(e,t,i,r,n,o){const{featureIndex:s,bucketIndex:a}=t,l=this.bucketLayerIDs[a],c=i.layers,h=Object.keys(c);if(!h.length||st(h,l))for(let u=0;u<l.length;u++){const t=l[u],{styleLayer:a,targets:h}=c[t];if("model"!==a.type)continue;const d=r.tile,f=d.getBucket(a);if(!(f&&f instanceof wv))continue;const p=Sv(f,s,r,n);if(!p)continue;const{z:A,x:g,y:m}=d.tileID.canonical,{feature:_,intersectionZ:y,position:x}=p;let v={};void 0!==_.id&&(v=i.sourceCache.getFeatureState(a.sourceLayer,_.id));const w=new Tv({},A,g,m,_.id);w.tile=this.tileID.canonical,w.state=v,w.properties=_.properties,w.geometry={type:"Point",coordinates:[x.lng,x.lat]};let E=this.serializedLayersCache.get(t);E||(E=a.serialize(),E.id=t,this.serializedLayersCache.set(t,E)),w.source=E.source,w.sourceLayer=E["source-layer"],w.layer=Object.assign({},E);let b=!1;for(const e of h){this.updateFeatureProperties(w,e);const{filter:t}=e;if(t)if(_.properties=w.properties,t.needGeometry){if(!t.filter(new ea(this.tileID.overscaledZ,{worldview:o}),_,this.tileID.canonical))continue}else if(!t.filter(new ea(this.tileID.overscaledZ,{worldview:o}),_))continue;b=!0,e.targetId&&this.addFeatureVariant(w,e)}b&&this.appendToResult(e,t,s,w,y)}}updateFeatureProperties(e,t,i){if(t.properties){const r={};for(const n in t.properties){const o=t.properties[n].evaluate({zoom:this.z},e._vectorTileFeature,e.state,e.tile,i);null!=o&&(r[n]=o)}e.properties=r}}addFeatureVariant(e,t,i){const r={target:t.target,namespace:t.namespace,uniqueFeatureID:t.uniqueFeatureID};t.properties&&(r.properties=e.properties),e.variants=e.variants||{},e.variants[t.targetId]=e.variants[t.targetId]||[],e.variants[t.targetId].push(r)}appendToResult(e,t,i,r,n){let o=e[t];void 0===o&&(o=e[t]=[]),o.push({featureIndex:i,feature:r,intersectionZ:n})}lookupSymbolFeatures(e,t,i,r,n,o){const s={};this.loadVTLayers();for(const a of e)this.loadMatchingFeature(s,{bucketIndex:t,sourceLayerIndex:i,featureIndex:a,layoutVertexArrayOffset:0},r,n,o);return s}loadFeature(e){const{featureIndex:t,sourceLayerIndex:i}=e;this.loadVTLayers();const r=this.sourceLayerCoder.decode(i),n=this.vtFeatures[r];if(n[t])return n[t];const o=this.vtLayers[r].feature(t);return n[t]=o,o}hasLayer(e){for(const t of this.bucketLayerIDs)for(const i of t)if(e===i)return!0;return!1}getId(e,t){let i=e.id;if(this.promoteId){const r=Array.isArray(this.promoteId)||"object"!=typeof this.promoteId?this.promoteId:this.promoteId[t];if(null!=r)if(Array.isArray(r)){if(!this.promoteIdExpression){const e=Wo(r);if("success"!==e.result){const t=e.value.map(e=>`${e.key}: ${e.message}`).join(", ");return void lt(`Failed to create expression for promoteId: ${t}`)}this.promoteIdExpression=e.value}i=this.promoteIdExpression.evaluate({zoom:0},e)}else i=e.properties[r];"boolean"==typeof i&&(i=Number(i))}return i}}function Ov(e,t,i,r,n){return rt(e,(e,o)=>{const s=t instanceof la?t.get(o):null;return s&&s.evaluate?s.evaluate(i,r,void 0,n):s})}function kv(e,t){return t-e}function Nv(e,t){const i={};if(!t)return i;for(const r of e){const e=r.layerIds.map(e=>t.getLayer(e)).filter(Boolean);if(0!==e.length){r.layers=e,r.stateDependentLayerIds&&(r.stateDependentLayers=r.stateDependentLayerIds.map(t=>e.filter(e=>e.id===t)[0])),r.updateExpressions&&r.updateExpressions(e);for(const t of e)i[t.fqid]=r}}return i}ts(Fv,"FeatureIndex",{omit:["rawTileData","sourceLayerCoder"]});const Uv=32,Vv=33,Hv=new Uint16Array(8184);for(let uE=0;uE<2046;uE++){let e=uE+2,t=0,i=0,r=0,n=0,o=0,s=0;for(1&e?r=n=o=Uv:t=i=s=Uv;(e>>=1)>1;){const a=t+r>>1,l=i+n>>1;1&e?(r=t,n=i,t=o,i=s):(t=r,i=n,r=o,n=s),o=a,s=l}const a=4*uE;Hv[a+0]=t,Hv[a+1]=i,Hv[a+2]=r,Hv[a+3]=n}const jv=new Uint16Array(2178),Gv=new Uint8Array(1089),Yv=new Uint16Array(1089);function Wv(e){return 0===e?-.03125:32===e?.03125:0}const Jv={Other:0,Symbol:1,FillExtrusion:2,HdRoadCoverage:3},Zv=(()=>({type:2,extent:Yr,loadGeometry:()=>[[new we(0,0),new we(8193,0),new we(8193,8193),new we(0,8193),new we(0,0)]]}))();class qv{constructor(){this.tasks=new Map,it(["process"],this),this.invoker=new zv(this.process),this.nextId=0}add(e,t){const i=this.nextId++,r=function({type:e,renderSourceType:t,zoom:i}){i=i||0;const r=t===Jv.Symbol;return"message"===e?0:"maybePrepare"!==e||r?"parseTile"!==e||r?"parseTile"===e&&r?300-i:"maybePrepare"===e&&r?400-i:500:200-i:100-i}(t);if(0===r){try{e()}finally{}return null}return this.tasks.set(i,{fn:e,metadata:t,priority:r,id:i}),this.invoker.trigger(),{cancel:()=>{this.tasks.delete(i)}}}process(){try{const e=this.pick();if(!e)return;this.tasks.delete(e.id),this.tasks.size>0&&this.invoker.trigger(),e.fn()}finally{}}pick(){let e=null,t=1/0;for(const i of this.tasks.values())i.priority<t&&(t=i.priority,e=i);return e}remove(){this.tasks.clear(),this.invoker.remove()}}function Kv(e,t){const i={};let r;for(;r=e.nextField(t);)1===r?(i.delta_filter=Xv(e,e.readVarint()+e.pos),i.filter="delta_filter"):2===r?(e.readVarint(),i.filter="zigzag_filter"):3===r?(e.readVarint(),i.filter="bitshuffle_filter"):4===r&&(e.readVarint(),i.filter="byteshuffle_filter");return i}function Xv(e,t){const i={blockSize:0};let r;for(;r=e.nextField(t);)1===r&&(i.blockSize=e.readVarint());return i}function $v(e,t){const i={};let r;for(;r=e.nextField(t);)1===r?(e.readVarint(),i.codec="gzip_data"):2===r?(e.readVarint(),i.codec="jpeg_image"):3===r?(e.readVarint(),i.codec="webp_image"):4===r&&(e.readVarint(),i.codec="png_image");return i}function ew(e,t){const i={firstByte:0,lastByte:0,filters:[],codec:null,offset:0,scale:0,bands:[]};let r,n=0,o=0;for(;r=e.nextField(t);)1===r?i.firstByte=e.readFixed64():2===r?i.lastByte=e.readFixed64():3===r?i.filters.push(Kv(e,e.readVarint()+e.pos)):4===r?i.codec=$v(e,e.readVarint()+e.pos):5===r?o=e.readFloat():6===r?n=e.readFloat():7===r?i.bands.push(e.readString()):8===r?i.offset=e.readDouble():9===r&&(i.scale=e.readDouble());return 0===i.offset&&(i.offset=o),0===i.scale&&(i.scale=n),i}function tw(e,t){const i={version:0,name:"",units:"",tileSize:0,buffer:0,pixelFormat:0,dataIndex:[]};let r;for(;r=e.nextField(t);)1===r?i.version=e.readVarint():2===r?i.name=e.readString():3===r?i.units=e.readString():4===r?i.tileSize=e.readVarint():5===r?i.buffer=e.readVarint():6===r?i.pixelFormat=e.readVarint():7===r&&i.dataIndex.push(ew(e,e.readVarint()+e.pos));return i}function iw(e,t,i){let r;for(;r=e.nextField(t);)if(1===r){let t=0;const r=e.readVarint()+e.pos;for(;e.pos<r;)i[t++]=e.readVarint()}return i}function rw(e,t){if(4!==t.length)throw new Error(`Expected data of dimension 4 but got ${t.length}.`);let i=t[3];for(let r=2;r>=1;r--){const n=1===r?1:0,o=2===r?1:0;for(let r=0;r<t[0];r++){const s=t[1]*r;for(let r=n;r<t[1];r++){const n=t[2]*(r+s);for(let r=o;r<t[2];r++){const o=t[3]*(r+n);for(let r=0;r<t[3];r++){const t=o+r;e[t]+=e[t-i]}}}}i*=t[r]}return e}function nw(e){for(let t=0,i=e.length;t<i;t++)e[t]=e[t]>>>1^-(1&e[t]);return e}function ow(e,t){switch(t){case"uint32":return e;case"uint16":for(let t=0;t<e.length;t+=2){const i=e[t],r=e[t+1];e[t]=(240&i)>>4|(61440&i)>>8|(240&r)<<4|61440&r,e[t+1]=15&i|(3840&i)>>4|(15&r)<<8|(3840&r)<<4}return e;case"uint8":for(let t=0;t<e.length;t+=4){const i=e[t],r=e[t+1],n=e[t+2],o=e[t+3];e[t+0]=(192&i)>>6|(192&r)>>4|(192&n)>>2|192&o,e[t+1]=(48&i)>>4|(48&r)>>2|48&n|(48&o)<<2,e[t+2]=(12&i)>>2|12&r|(12&n)<<2|(12&o)<<4,e[t+3]=3&i|(3&r)<<2|(3&n)<<4|(3&o)<<6}return e;default:throw new Error(`Invalid pixel format, "${t}"`)}}var sw=Uint8Array,aw=Uint16Array,lw=Int32Array,cw=new sw([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),hw=new sw([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),uw=new sw([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),dw=function(e,t){for(var i=new aw(31),r=0;r<31;++r)i[r]=t+=1<<e[r-1];var n=new lw(i[30]);for(r=1;r<30;++r)for(var o=i[r];o<i[r+1];++o)n[o]=o-i[r]<<5|r;return{b:i,r:n}},fw=dw(cw,2),pw=fw.b,Aw=fw.r;pw[28]=258,Aw[258]=28;for(var gw=dw(hw,0).b,mw=new aw(32768),_w=0;_w<32768;++_w){var yw=(43690&_w)>>1|(21845&_w)<<1;mw[_w]=((65280&(yw=(61680&(yw=(52428&yw)>>2|(13107&yw)<<2))>>4|(3855&yw)<<4))>>8|(255&yw)<<8)>>1}var xw=function(e,t,i){for(var r=e.length,n=0,o=new aw(t);n<r;++n)e[n]&&++o[e[n]-1];var s,a=new aw(t);for(n=1;n<t;++n)a[n]=a[n-1]+o[n-1]<<1;s=new aw(1<<t);var l=15-t;for(n=0;n<r;++n)if(e[n])for(var c=n<<4|e[n],h=t-e[n],u=a[e[n]-1]++<<h,d=u|(1<<h)-1;u<=d;++u)s[mw[u]>>l]=c;return s},vw=new sw(288);for(_w=0;_w<144;++_w)vw[_w]=8;for(_w=144;_w<256;++_w)vw[_w]=9;for(_w=256;_w<280;++_w)vw[_w]=7;for(_w=280;_w<288;++_w)vw[_w]=8;var ww=new sw(32);for(_w=0;_w<32;++_w)ww[_w]=5;var Ew=xw(vw,9),bw=xw(ww,5),Iw=function(e){for(var t=e[0],i=1;i<e.length;++i)e[i]>t&&(t=e[i]);return t},Cw=function(e,t,i){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&i},Bw=function(e,t){var i=t/8|0;return(e[i]|e[i+1]<<8|e[i+2]<<16)>>(7&t)},Dw=function(e){return(e+7)/8|0}
vendor: 4,713 bytes, line 1
1,Tw=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Mw=function(e,t,i){var r=new Error(t||Tw[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Mw),!i)throw r;return r},Qw=new sw(0),Sw="undefined"!=typeof TextDecoder&&new TextDecoder;try{Sw.decode(Qw,{stream:!0})}catch(e){}const Pw={gzip_data:"gzip"};class Rw extends Error{constructor(e){super(e),this.name="MRTError"}}const zw={0:"uint32",1:"uint32",2:"uint16",3:"uint8"},Lw={uint32:1,uint16:2,uint8:4},Fw={uint32:Uint32Array,uint16:Uint16Array,uint8:Uint8Array};let Ow;class kw{constructor(e=5){this.x=NaN,this.y=NaN,this.z=NaN,this.layers={},this._cacheSize=e}getLayer(e){const t=this.layers[e];if(!t)throw new Rw(`Layer '${e}' not found`);return t}getHeaderLength(e){const t=new Uint8Array(e),i=new DataView(e);if(13!==t[0])throw new Rw("File is not a valid MRT.");return i.getUint32(1,!0)}parseHeader(e){const t=new Uint8Array(e),i=this.getHeaderLength(e);if(t.length<i)throw new Rw(`Expected header with length >= ${i} but got buffer of length ${t.length}`);const r=function(e){const t={headerLength:0,x:0,y:0,z:0,layers:[]};let i;for(;i=e.nextField(void 0);)1===i?t.headerLength=e.readFixed32():2===i?t.x=e.readVarint():3===i?t.y=e.readVarint():4===i?t.z=e.readVarint():5===i&&t.layers.push(tw(e,e.readVarint()+e.pos));return t}(new Ow(t.subarray(0,i)));if(!isNaN(this.x)&&(this.x!==r.x||this.y!==r.y||this.z!==r.z))throw new Rw(`Invalid attempt to parse header ${r.z}/${r.x}/${r.y} for tile ${this.z}/${this.x}/${this.y}`);this.x=r.x,this.y=r.y,this.z=r.z;for(const n of r.layers)this.layers[n.name]=new Nw(n,{cacheSize:this._cacheSize});return this}createDecodingTask(e){const t=[],i=this.getLayer(e.layerName);for(let r of e.blockIndices){const n=i.dataIndex[r],o=n.firstByte-e.firstByte,s=n.lastByte-e.firstByte;if(i._blocksInProgress.has(r))continue;const a={layerName:i.name,firstByte:o,lastByte:s,pixelFormat:i.pixelFormat,blockIndex:r,blockShape:[n.bands.length].concat(i.bandShape),buffer:i.buffer,codec:n.codec.codec,filters:n.filters.map(e=>e.filter)};i._blocksInProgress.add(r),t.push(a)}return new Uw(t,()=>{t.forEach(e=>i._blocksInProgress.delete(e.blockIndex))},(e,r)=>{if(t.forEach(e=>i._blocksInProgress.delete(e.blockIndex)),e)throw e;r.forEach(e=>{this.getLayer(e.layerName).processDecodedData(e)})})}}class Nw{constructor({version:e,name:t,units:i,tileSize:r,pixelFormat:n,buffer:o,dataIndex:s},a){if(this.version=e,1!==this.version)throw new Rw(`Cannot parse raster layer encoded with MRT version ${e}`);this.name=t,this.units=i,this.tileSize=r,this.buffer=o,this.pixelFormat=zw[n],this.dataIndex=s,this.bandShape=[r+2*o,r+2*o,Lw[this.pixelFormat]],this._decodedBlocks=new Rv(a?a.cacheSize:5),this._blocksInProgress=new Set}get dimension(){return Lw[this.pixelFormat]}get cacheSize(){return this._decodedBlocks.capacity}getBandList(){return this.dataIndex.map(({bands:e})=>e).flat()}processDecodedData(e){const t=e.blockIndex.toString();this._decodedBlocks.get(t)||this._decodedBlocks.put(t,e.data)}getBlockForBand(e){let t=0;switch(typeof e){case"string":for(const[i,r]of this.dataIndex.entries()){for(const[n,o]of r.bands.entries())if(o===e)return{bandIndex:t+n,blockIndex:i,blockBandIndex:n};t+=r.bands.length}break;case"number":for(const[i,r]of this.dataIndex.entries()){if(e>=t&&e<t+r.bands.length)return{bandIndex:e,blockIndex:i,blockBandIndex:e-t};t+=r.bands.length}break;default:throw new Rw(`Invalid band \`${JSON.stringify(e)}\`. Expected string or integer.`)}return{blockIndex:-1,blockBandIndex:-1}}getDataRange(e){let t=1/0,i=-1/0;const r=[],n=new Set;for(const o of e){const{blockIndex:e}=this.getBlockForBand(o);if(e<0)throw new Rw(`Invalid band: ${JSON.stringify(o)}`);const s=this.dataIndex[e];r.includes(e)||r.push(e),n.add(e),t=Math.min(t,s.firstByte),i=Math.max(i,s.lastByte)}if(n.size>this.cacheSize)throw new Rw(`Number of blocks to decode (${n.size}) exceeds cache size (${this.cacheSize}).`);return{layerName:this.name,firstByte:t,lastByte:i,blockIndices:r}}hasBand(e){const{blockIndex:t}=this.getBlockForBand(e);return t>=0}hasDataForBand(e){const{blockIndex:t}=this.getBlockForBand(e);return t>=0&&!!this._decodedBlocks.get(t.toString())}getBandView(e){const{blockIndex:t,blockBandIndex:i}=this.getBlockForBand(e);if(t<0)throw new Rw(`Band not found: ${JSON.stringify(e)}`);const r=this._decodedBlocks.get(t.toString());if(!r)throw new Rw(`Data for band ${JSON.stringify(e)} of layer "${this.name}" not decoded.`);const n=this.dataIndex[t],o=this.bandShape.reduce((e,t)=>
vendor: 4,379 bytes, line 1
1e*t,1),s=i*o,a=r.subarray(s,s+o);return{data:a,bytes:new Uint8Array(a.buffer).subarray(a.byteOffset,a.byteOffset+a.byteLength),tileSize:this.tileSize,buffer:this.buffer,pixelFormat:this.pixelFormat,dimension:this.dimension,offset:n.offset,scale:n.scale}}}kw.setPbf=function(e){Ow=e};class Uw{constructor(e,t,i){this.tasks=e,this._onCancel=t,this._onComplete=i,this._finalized=!1}cancel(){this._finalized||(this._onCancel(),this._finalized=!0)}complete(e,t){this._finalized||(this._onComplete(e,t),this._finalized=!0)}}function Vw(e,t,i){try{t=function(e){if(!e.variants)return e;if(!Array.isArray(e.variants))throw new Error("variants must be an array");for(const t of e.variants){if(null==t||"object"!=typeof t||t.constructor!==Object)throw new Error("variant must be an object");if(!Array.isArray(t.capabilities))throw new Error("capabilities must be an array");if(1===t.capabilities.length&&"meshopt"===t.capabilities[0])return Object.assign(e,t)}return e}(t)}catch(e){return new Error("Failed to process TileJSON variants",{cause:e})}const r=Xe(Object.assign({},t,e),["tilejson","tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","extra_bounds","scheme","tileSize","encoding","vector_layers","raster_layers","worldview_options","worldview_default","worldview"]);return e.url&&t.tiles&&e.tiles&&(r.tiles=t.tiles),r.tiles=i.canonicalizeTileset(r,e.url),r}kw.performDecoding=function(e,t){const i=new Uint8Array(e);return Promise.all(t.tasks.map(e=>{const{layerName:t,firstByte:r,lastByte:n,pixelFormat:o,blockShape:s,blockIndex:a,filters:l,codec:c}=e,h=i.subarray(r,n+1),u=new Uint32Array(s[0]*s[1]*s[2]);let d;if("gzip_data"!==c)throw new Rw(`Unhandled codec: ${c}`);return d=function(e,t){if(!globalThis.DecompressionStream&&"gzip_data"===t)return Promise.resolve((s=function(e){31==e[0]&&139==e[1]&&8==e[2]||Mw(6,"invalid gzip data");var t=e[3],i=10;4&t&&(i+=2+(e[10]|e[11]<<8));for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[i++]);return i+(2&t)}(i=e),s+8>i.length&&Mw(6,"invalid gzip data"),function(e,t,i,r){var n=e.length;if(!n||t.f&&!t.l)return i||new sw(0);var o=!i,s=o||2!=t.i,a=t.i;o&&(i=new sw(3*n));var l=function(e){var t=i.length;if(e>t){var r=new sw(Math.max(2*t,e));r.set(i),i=r}},c=t.f||0,h=t.p||0,u=t.b||0,d=t.l,f=t.d,p=t.m,A=t.n,g=8*n;do{if(!d){c=Cw(e,h,1);var m=Cw(e,h+1,3);if(h+=3,!m){var _=e[(T=Dw(h)+4)-4]|e[T-3]<<8,y=T+_;if(y>n){a&&Mw(0);break}s&&l(u+_),i.set(e.subarray(T,y),u),t.b=u+=_,t.p=h=8*y,t.f=c;continue}if(1==m)d=Ew,f=bw,p=9,A=5;else if(2==m){var x=Cw(e,h,31)+257,v=Cw(e,h+10,15)+4,w=x+Cw(e,h+5,31)+1;h+=14;for(var E=new sw(w),b=new sw(19),I=0;I<v;++I)b[uw[I]]=Cw(e,h+3*I,7);h+=3*v;var C=Iw(b),B=(1<<C)-1,D=xw(b,C);for(I=0;I<w;){var T,M=D[Cw(e,h,B)];if(h+=15&M,(T=M>>4)<16)E[I++]=T;else{var Q=0,S=0;for(16==T?(S=3+Cw(e,h,3),h+=2,Q=E[I-1]):17==T?(S=3+Cw(e,h,7),h+=3):18==T&&(S=11+Cw(e,h,127),h+=7);S--;)E[I++]=Q}}var P=E.subarray(0,x),R=E.subarray(x);p=Iw(P),A=Iw(R),d=xw(P,p),f=xw(R,A)}else Mw(1);if(h>g){a&&Mw(0);break}}s&&l(u+131072);for(var z=(1<<p)-1,L=(1<<A)-1,F=h;;F=h){var O=(Q=d[Bw(e,h)&z])>>4;if((h+=15&Q)>g){a&&Mw(0);break}if(Q||Mw(2),O<256)i[u++]=O;else{if(256==O){F=h,d=null;break}var k=O-254;O>264&&(k=Cw(e,h,(1<<(V=cw[I=O-257]))-1)+pw[I],h+=V);var N=f[Bw(e,h)&L],U=N>>4;if(N||Mw(3),h+=15&N,R=gw[U],U>3){var V=hw[U];R+=Bw(e,h)&(1<<V)-1,h+=V}if(h>g){a&&Mw(0);break}s&&l(u+131072);var H=u+k;if(u<R){var j=0-R,G=Math.min(R,H);for(j+u<0&&Mw(3);u<G;++u)i[u]=r[j+u]}for(;u<H;++u)i[u]=i[u-R]}}t.l=d,t.p=F,t.b=u,t.f=c,d&&(c=1,t.m=p,t.d=f,t.n=A)}while(!c);return u!=i.length&&o?function(e,t,i){return(null==i||i>e.length)&&(i=e.length),new sw(e.subarray(0,i))}(i,0,u):i.subarray(0,u)}(i.subarray(s,-8),{i:2},new sw(((n=i)[(o=n.length)-4]|n[o-3]<<8|n[o-2]<<16|n[o-1]<<24)>>>0),r)));var i,r,n,o,s;const a=Pw[t];if(!a)throw new Error(`Unhandled codec: ${t}`);const l=new globalThis.DecompressionStream(a);return new Response(new Blob([e]).stream().pipeThrough(l)).arrayBuffer().then(e=>new Uint8Array(e))}(h,c).then(e=>(function(e,t){let i;for(;i=e.nextField();)if(2===i)iw(e,e.readVarint()+e.pos,t);else if(3===i)throw new Error("Not implemented")}(new Ow(e),u),new(0,Fw[o])(u.buffer))),d.then(e=>{for(let t=l.length-1;t>=0;t--)switch(l[t]){case"delta_filter":rw(e,s);break;case"zigzag_filter":nw(e);break;case"bitshuffle_filter":ow(e,o);break;default:throw new Rw(`Unhandled filter "${l[t]}"`)}return{layerName:t,blockIndex:a,data:e}}
vendor: 5,702 bytes, line 1
1).catch(e=>{throw e})}))},ts(Uw,"MRTDecodingBatch",{omit:["_onCancel","_onComplete"]}),ts(kw,"MapboxRasterTile"),ts(Nw,"MapboxRasterLayer",{omit:["_blocksInProgress"]});const Hw=new Map,jw=new Map;class Gw{constructor(e){this.size=e,this.minimums=[],this.maximums=[],this.leaves=[]}getElevation(e,t){const i=this.toIdx(e,t);return{min:this.minimums[i],max:this.maximums[i]}}isLeaf(e,t){return this.leaves[this.toIdx(e,t)]}toIdx(e,t){return t*this.size+e}}function Yw(e,t,i,r){let n=0,o=Number.MAX_VALUE;for(let s=0;s<3;s++)if(Math.abs(r[s])<1e-15){if(i[s]<e[s]||i[s]>t[s])return null}else{const a=1/r[s];let l=(e[s]-i[s])*a,c=(t[s]-i[s])*a;if(l>c){const e=l;l=c,c=e}if(l>n&&(n=l),c<o&&(o=c),n>o)return null}return n}function Ww(e,t,i,r,n,o,s,a,l,c,h){const u=r-e,d=n-t,f=o-i,p=s-e,A=a-t,g=l-i,m=h[1]*g-h[2]*A,_=h[2]*p-h[0]*g,y=h[0]*A-h[1]*p,x=u*m+d*_+f*y;if(Math.abs(x)<1e-15)return null;const v=1/x,w=c[0]-e,E=c[1]-t,b=c[2]-i,I=(w*m+E*_+b*y)*v;if(I<0||I>1)return null;const C=E*f-b*d,B=b*u-w*f,D=w*d-E*u,T=(h[0]*C+h[1]*B+h[2]*D)*v;return T<0||I+T>1?null:(p*C+A*B+g*D)*v}function Jw(e,t,i){return(e-t)/(i-t)}function Zw(e,t,i,r,n,o,s,a,l){const c=1<<i,h=o-r,u=s-n,d=(e+1)/c*h+r,f=(t+0)/c*u+n,p=(t+1)/c*u+n;a[0]=(e+0)/c*h+r,a[1]=f,l[0]=d,l[1]=p}class qw{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)),i=[];let r=Math.ceil(Math.pow(2,t));const n=1/r,o=(e,t,i,r,n)=>{const o=r?1:0,s=(e+1)*i-o,a=t*i,l=(t+1)*i-o;n[0]=e*i,n[1]=a,n[2]=s,n[3]=l};let s=new Gw(r);const a=[];for(let l=0;l<r*r;l++){o(l%r,Math.floor(l/r),n,!1,a);const t=Xw(a[0],a[1],e),i=Xw(a[2],a[1],e),c=Xw(a[2],a[3],e),h=Xw(a[0],a[3],e);s.minimums.push(Math.min(t,i,c,h)),s.maximums.push(Math.max(t,i,c,h)),s.leaves.push(1)}for(i.push(s),r/=2;r>=1;r/=2){const e=i.at(-1);s=new Gw(r);for(let t=0;t<r*r;t++){o(t%r,Math.floor(t/r),2,!0,a);const i=e.getElevation(a[0],a[1]),n=e.getElevation(a[2],a[1]),l=e.getElevation(a[2],a[3]),c=e.getElevation(a[0],a[3]),h=e.isLeaf(a[0],a[1]),u=e.isLeaf(a[2],a[1]),d=e.isLeaf(a[2],a[3]),f=e.isLeaf(a[0],a[3]),p=Math.min(i.min,n.min,l.min,c.min),A=Math.max(i.max,n.max,l.max,c.max),g=h&&u&&d&&f;s.maximums.push(A),s.minimums.push(p),s.leaves.push(A-p<=5&&g?1:0)}i.push(s)}return i}(this.dem),i=t.length-1,r=t[i];this._addNode(r.minimums[0],r.maximums[0],r.leaves[0]),this._construct(t,0,0,i,0)}raycastRoot(e,t,i,r,n,o,s=1){return Yw([e,t,-100],[i,r,this.maximums[0]*s],n,o)}raycast(e,t,i,r,n,o,s=1){if(!this.nodeCount)return null;const a=this.raycastRoot(e,t,i,r,n,o,s);if(null==a)return null;const l=[],c=[],h=[],u=[],d=[{idx:0,t:a,nodex:0,nodey:0,depth:0}];for(;d.length>0;){const{idx:a,t:f,nodex:p,nodey:A,depth:g}=d.pop();if(this.leaves[a]){Zw(p,A,g,e,t,i,r,h,u);const a=1<<g,l=(p+0)/a,c=(p+1)/a,d=(A+0)/a,m=(A+1)/a,_=Xw(l,d,this.dem)*s,y=Xw(c,d,this.dem)*s,x=Xw(c,m,this.dem)*s,v=Xw(l,m,this.dem)*s,w=Ww(h[0],h[1],_,u[0],h[1],y,u[0],u[1],x,n,o),E=Ww(u[0],u[1],x,h[0],u[1],v,h[0],h[1],_,n,o),b=Math.min(null!==w?w:Number.MAX_VALUE,null!==E?E:Number.MAX_VALUE);if(b!==Number.MAX_VALUE)return b;{const e=z([],n,o,f);if(Kw(_,y,v,x,Jw(e[0],h[0],u[0]),Jw(e[1],h[1],u[1]))>=e[2])return f}continue}let m=0;for(let d=0;d<this._siblingOffset.length;d++){Zw((p<<1)+this._siblingOffset[d][0],(A<<1)+this._siblingOffset[d][1],g+1,e,t,i,r,h,u),h[2]=-100,u[2]=this.maximums[this.childOffsets[a]+d]*s;const f=Yw(h,u,n,o);if(null!=f){const e=f;l[d]=e;let t=!1;for(let i=0;i<m&&!t;i++)e>=l[c[i]]&&(c.splice(i,0,d),t=!0);t||(c[m]=d),m++}}for(let e=0;e<m;e++){const t=c[e];d.push({idx:this.childOffsets[a]+t,t:l[t],nodex:(p<<1)+this._siblingOffset[t][0],nodey:(A<<1)+this._siblingOffset[t][1],depth:g+1})}}return null}_addNode(e,t,i){return this.minimums.push(e),this.maximums.push(t),this.leaves.push(i),this.childOffsets.push(0),this.nodeCount++}_construct(e,t,i,r,n){if(1===e[r].isLeaf(t,i))return;this.childOffsets[n]||(this.childOffsets[n]=this.nodeCount);const o=r-1,s=e[o];let a=0,l=0;for(let c=0;c<this._siblingOffset.length;c++){const e=2*t+this._siblingOffset[c][0],r=2*i+this._siblingOffset[c][1],n=s.getElevation(e,r),o=s.isLeaf(e,r),h=this._addNode(n.min,n.max,o);o&&(a|=1<<c),l||(l=h)}for(let c=0;c<this._siblingOffset.length;c++)a&1<<c||this._construct(e,2*t+this._siblingOffset[c][0],2*i+this._siblingOffset[c][1],o,l+c)}}function Kw(e,t,i,r,n,o){return vi(vi(e,i,o),vi(t,r,o),n)}function Xw(e,t,i){const r=i.dim,n=Je(e*r-.5,0,r-1),o=Je(t*r-.5,0,r-1),s=Math.floor(n),a=Math.floor(o),l=Math.min(s+1,r-1),c=Math.min(a+1,r-1);return Kw(i.get(s,a),i.get(l,a),i.get(s,c),i.get(l,c),n-s,o-a)}const $w={mapbox:[6553.6,25.6,.1,1e4],terrarium:[256,1,1/256,32768]};function eE(e,t,i){return(256*e*256+256*t+i)/10-1e4}function tE(e,t,i){return 256*e+t+i/256-32768}class iE{get tree(){return this._tree||this._buildQuadTree(),this._tree}constructor(e,t,i,r=!1){if(this.uid=e,t.height!==t.width)throw new RangeError("DEM tiles must be square");if(i&&"mapbox"!==i&&"terrarium"!==i)return void lt(`"${i}" is not a valid encoding type. Valid types include "mapbox" and "terrarium".`);this.stride=t.height;const n=this.dim=t.height-2,o=new Uint32Array(t.data.buffer);if(this.pixels=new Uint8Array(t.data.buffer),this.floatView=new Float32Array(t.data.buffer),this.borderReady=r,this._modifiedForSources={},!r){for(let e=0;e<n;e++)o[this._idx(-1,e)]=o[this._idx(0,e)],o[this._idx(n,e)]=o[this._idx(n-1,e)],o[this._idx(e,-1)]=o[this._idx(e,0)],o[this._idx(e,n)]=o[this._idx(e,n-1)];o[this._idx(-1,-1)]=o[this._idx(0,0)],o[this._idx(n,-1)]=o[this._idx(n-1,0)],o[this._idx(-1,n)]=o[this._idx(0,n-1)],o[this._idx(n,n)]=o[this._idx(n-1,n-1)]}
vendor: 10,211 bytes, line 1
1const s="terrarium"===i?tE:eE;for(let a=0;a<o.length;++a){const e=4*a;this.floatView[a]=s(this.pixels[e],this.pixels[e+1],this.pixels[e+2])}this._timestamp=Dt.now()}_buildQuadTree(){this._tree=new qw(this)}get(e,t,i=!1){i&&(e=Je(e,-1,this.dim),t=Je(t,-1,this.dim));const r=this._idx(e,t);return this.floatView[r]}set(e,t,i){const r=this._idx(e,t),n=this.floatView[r];return this.floatView[r]=i,i-n}static getUnpackVector(e){return $w[e]}_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)}static pack(e,t){const i=[0,0,0,0],r=iE.getUnpackVector(t);let n=Math.floor((e+r[3])/r[2]);return i[2]=n%256,n=Math.floor(n/256),i[1]=n%256,n=Math.floor(n/256),i[0]=n,i}getPixels(){return new xu({width:this.stride,height:this.stride},this.pixels)}backfillBorder(e,t,i){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");let r=t*this.dim,n=t*this.dim+this.dim,o=i*this.dim,s=i*this.dim+this.dim;switch(t){case-1:r=n-1;break;case 1:n=r+1}switch(i){case-1:o=s-1;break;case 1:s=o+1}const a=-t*this.dim,l=-i*this.dim;for(let c=o;c<s;c++)for(let t=r;t<n;t++){const i=4*this._idx(t,c),r=4*this._idx(t+a,c+l);this.pixels[i+0]=e.pixels[r+0],this.pixels[i+1]=e.pixels[r+1],this.pixels[i+2]=e.pixels[r+2],this.pixels[i+3]=e.pixels[r+3]}}onDeserialize(){this._tree&&(this._tree.dem=this)}}ts(iE,"DEMData"),ts(qw,"DemMinMaxQuadTree",{omit:["dem"]});const rE=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],nE=new Uint32Array(96);class oE{static from(e){if(!e||void 0===e.byteLength||e.buffer)throw new Error("Data must be an instance of ArrayBuffer or SharedArrayBuffer.");const[t,i]=new Uint8Array(e,0,2);if(219!==t)throw new Error("Data does not appear to be in a KDBush format.");const r=i>>4;if(1!==r)throw new Error(`Got v${r} data when expected v1.`);const n=rE[15&i];if(!n)throw new Error("Unrecognized array type.");const[o]=new Uint16Array(e,2,1),[s]=new Uint32Array(e,4,1);return new oE(s,o,n,void 0,e)}constructor(e,t=64,i=Float64Array,r=ArrayBuffer,n){if(isNaN(e)||e<0)throw new Error(`Unexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=i,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const o=rE.indexOf(this.ArrayType),s=2*e*this.ArrayType.BYTES_PER_ELEMENT,a=e*this.IndexArrayType.BYTES_PER_ELEMENT,l=(8-a%8)%8;if(o<0)throw new Error(`Unexpected typed array class: ${i}.`);if(n)this.data=n,this.ids=new this.IndexArrayType(n,8,e),this.coords=new i(n,8+a+l,2*e),this._pos=2*e,this._finished=!0;else{const n=this.data=new r(8+s+a+l);this.ids=new this.IndexArrayType(n,8,e),this.coords=new i(n,8+a+l,2*e),this._pos=0,this._finished=!1,new Uint8Array(n,0,2).set([219,16+o]),new Uint16Array(n,2,1)[0]=t,new Uint32Array(n,4,1)[0]=e}}add(e,t){const i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=e,this.coords[this._pos++]=t,i}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return sE(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,i,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:o,nodeSize:s}=this;nE[0]=0,nE[1]=n.length-1,nE[2]=0;let a=3;const l=[];for(;a>0;){const c=nE[--a],h=nE[--a],u=nE[--a];if(h-u<=s){for(let s=u;s<=h;s++){const a=o[2*s],c=o[2*s+1];a>=e&&a<=i&&c>=t&&c<=r&&l.push(n[s])}continue}const d=u+h>>1,f=o[2*d],p=o[2*d+1];f>=e&&f<=i&&p>=t&&p<=r&&l.push(n[d]),(0===c?e<=f:t<=p)&&(nE[a++]=u,nE[a++]=d-1,nE[a++]=1-c),(0===c?i>=f:r>=p)&&(nE[a++]=d+1,nE[a++]=h,nE[a++]=1-c)}return l}within(e,t,i){const r=[];return this.withinInto(e,t,i,r),r}withinInto(e,t,i,r){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:n,coords:o,nodeSize:s}=this;nE[0]=0,nE[1]=n.length-1,nE[2]=0;let a=3,l=0;const c=i*i;for(;a>0;){const h=nE[--a],u=nE[--a],d=nE[--a];if(u-d<=s){for(let i=d;i<=u;i++)hE(o[2*i],o[2*i+1],e,t)<=c&&(r[l++]=n[i]);continue}const f=d+u>>1,p=o[2*f],A=o[2*f+1];hE(p,A,e,t)<=c&&(r[l++]=n[f]),(0===h?e-i<=p:t-i<=A)&&(nE[a++]=d,nE[a++]=f-1,nE[a++]=1-h),(0===h?e+i>=p:t+i>=A)&&(nE[a++]=f+1,nE[a++]=u,nE[a++]=1-h)}return l}}function sE(e,t,i,r,n,o){if(n-r<=i)return;const s=r+n>>1;aE(e,t,s,r,n,o),sE(e,t,i,r,s-1,1-o),sE(e,t,i,s+1,n,1-o)}function aE(e,t,i,r,n,o){for(;n>r;){if(n-r>600){const s=n-r+1,a=i-r+1,l=Math.log(s),c=.5*Math.exp(2*l/3),h=.5*Math.sqrt(l*c*(s-c)/s)*(a-s/2<0?-1:1);aE(e,t,i,Math.max(r,Math.floor(i-a*c/s+h)),Math.min(n,Math.floor(i+(s-a)*c/s+h)),o)}const s=t[2*i+o];let a=r,l=n;for(lE(e,t,r,i),t[2*n+o]>s&&lE(e,t,r,n);a<l;){for(lE(e,t,a,l),a++,l--;t[2*a+o]<s;)a++;for(;t[2*l+o]>s;)l--}t[2*r+o]===s?lE(e,t,r,l):(l++,lE(e,t,l,n)),l<=i&&(r=l+1),i<=l&&(n=l-1)}}function lE(e,t,i,r){cE(e,i,r),cE(t,2*i,2*r),cE(t,2*i+1,2*r+1)}function cE(e,t,i){const r=e[t];e[t]=e[i],e[i]=r}function hE(e,t,i,r){const n=e-i,o=t-r;return n*n+o*o}t.$=class{constructor(e){this.cache=new Map,this.textures=new Map,this.textureAccessTimes=new Map,this.textureMemoryUsed=0,this.maxTextureMemory=1024*(e&&e.maxTextureMemoryMB?e.maxTextureMemoryMB:256)*1024,this.currentFrameAtlases=new Set,this.finalizationRegistry=new FinalizationRegistry(e=>{this.cache.delete(e),this.clearExpiredTextures()})}beginFrame(){this.currentFrameAtlases.clear()}calculateTextureMemory(e){return e.image?Math.ceil(e.image.width*e.image.height*4*(e.patternPositions.size>0?1.33:1)):0}evictTexture(e){const t=this.textures.get(e);if(t){const i=this.calculateTextureMemory(e);t.destroy(),this.textures.delete(e),this.textureAccessTimes.delete(e),this.textureMemoryUsed-=i,e.uploaded=!1}}evictTexturesIfNeeded(e){for(;this.textureMemoryUsed+e>this.maxTextureMemory&&this.textures.size>0;){let e=null,t=1/0;for(const[i]of this.textures.entries()){if(this.currentFrameAtlases.has(i))continue;const r=this.textureAccessTimes.get(i)||0;r<t&&(t=r,e=i)}if(!e)break;this.evictTexture(e)}}findCachedAtlas(e){const t=this.cache.get(e.hash);if(t){const i=t.deref();if(i&&i.contentDescriptor&&this.isMipmapCompatible(e,i.contentDescriptor))return i}for(const[,i]of this.cache.entries()){const t=i.deref();if(t&&t.contentDescriptor){const i=e.subsetOf(t.contentDescriptor),r=this.isMipmapCompatible(e,t.contentDescriptor);if(i&&r)return t}}}getTextureForAtlas(e,t,i){this.textureAccessTimes.set(e,performance.now()),this.currentFrameAtlases.add(e);let r=this.textures.get(e);if(r)return r;if(e.image){const n=this.calculateTextureMemory(e);return this.evictTexturesIfNeeded(n),r=new sf(t,e.image,i,{useMipmap:!!e.patternPositions.size}),this.textures.set(e,r),this.textureMemoryUsed+=n,r}return null}clearExpiredTextures(){for(const[e]of this.textures.entries())if(!this.isAtlasCached(e)){const t=this.textures.get(e);if(t){const i=this.calculateTextureMemory(e);t.destroy(),this.textureMemoryUsed-=i}this.textures.delete(e),this.textureAccessTimes.delete(e)}}isAtlasCached(e){if(!e.contentDescriptor)return!1;const t=this.cache.get(e.contentDescriptor.hash);return!!t&&t.deref()===e}getOrCache(e){if(!("image"in e)){const t=this.cache.get(e.sourceAtlasHash);if(t){const e=t.deref();if(e)return e}return lt("ImageAtlasReference points to GC'd atlas - atlas may have been evicted"),null}if(!e.contentDescriptor)return e;const t=e.contentDescriptor,i=t.hash,r=this.cache.get(i);if(r){const e=r.deref();if(e&&e.contentDescriptor&&this.isMipmapCompatible(t,e.contentDescriptor))return e}return this.cache.set(i,new WeakRef(e)),this.finalizationRegistry.register(e,i,e),e}isMipmapCompatible(e,t){return!e.requiresMipMaps||t.requiresMipMaps}destroyTextures(){for(const e of this.textures.values())e&&e.destroy();this.textures.clear(),this.textureAccessTimes.clear(),this.textureMemoryUsed=0}clear(){for(const e of this.textures.values())e&&e.destroy();this.cache.clear(),this.textures.clear(),this.textureAccessTimes.clear(),this.textureMemoryUsed=0}},t.A=bp,t.B=2,t.C=Xx,t.D=iE,t.E=450,t.F=7,t.G=4,t.H=5,t.I=Fv,t.J=Qh,t.K=gy,t.L=xu,t.M=jy,t.N=Ep,t.O=mp,t.P=gl,t.Q=45,t.R=6,t.S=5,t.T=class{constructor(e){this._createGrid(e),this._createPoles(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();for(const e of this._gridSegments)e.withSkirts.destroy(),e.withoutSkirts.destroy()}_fillGridMeshWithLods(e,t){const i=new Kl,r=new yc,n=[],o=e+1+2,s=t[0]+1,a=t[0]+1+(1+t.length),l=(e,t,i)=>{let r=e===o-1?e-2:0===e?e:e-1;return r+=i?24575:0,[r,t]};for(let c=0;c<o;++c)i.emplaceBack(...l(c,0,!0));for(let c=0;c<s;++c)for(let e=0;e<o;++e)i.emplaceBack(...l(e,c,(0===e||e===o-1)&&!0));for(let c=0;c<t.length;++c){const e=t[c];for(let t=0;t<o;++t)i.emplaceBack(...l(t,e,!0))}for(let c=0;c<t.length;++c){const e=r.length,s=t[c]+1+2,l=new yc;for(let i=0;i<s-1;i++){const e=i===s-2,n=e?o*(a-t.length+c-i):o;for(let t=0;t<o-1;t++){const s=i*o+t;0===i||e||0===t||t===o-2?(l.emplaceBack(s+1,s,s+n),l.emplaceBack(s+n,s+n+1,s+1)):(r.emplaceBack(s+1,s,s+n),r.emplaceBack(s+n,s+n+1,s+1))}}const h=Kc.simpleSegment(0,e,i.length,r.length-e);for(let t=0;t<l.uint16.length;t+=3)r.emplaceBack(l.uint16[t],l.uint16[t+1],l.uint16[t+2]);const u=Kc.simpleSegment(0,e,i.length,r.length-e);n.push({withoutSkirts:h,withSkirts:u})}return{vertices:i,indices:r,segments:n}}_createGrid(e){const t=this._fillGridMeshWithLods(ml,_l);this._gridSegments=t.segments,this._gridBuffer=e.createVertexBuffer(t.vertices,pp.members),this._gridIndexBuffer=e.createIndexBuffer(t.indices,!0)}_createPoles(e){const t=new yc;for(let s=0;s<=ml;s++)t.emplaceBack(0,s+1,s+2);this._poleIndexBuffer=e.createIndexBuffer(t,!0);const i=new Ec,r=new Ec,n=new Ec,o=new Ec;this._poleSegments=[];for(let s=0,a=0;s<6;s++){const e=360/(1<<s);i.emplaceBack(0,-gl,0,.5,0),r.emplaceBack(0,-gl,0,.5,1),n.emplaceBack(0,-gl,0,.5,.5),o.emplaceBack(0,-gl,0,.5,.5);for(let t=0;t<=ml;t++){let s=t/ml,a=0;const l=vi(0,e,s),[c,h,u]=vl(Zp,qp,l,gl);i.emplaceBack(c,h,u,s,a),r.emplaceBack(c,h,u,s,1-a);const d=He(l);s=.5+.5*Math.sin(d),a=.5+.5*Math.cos(d),n.emplaceBack(c,h,u,s,a),o.emplaceBack(c,h,u,s,1-a)}
1this._poleSegments.push(Kc.simpleSegment(a,0,66,64)),a+=66}this._poleNorthVertexBuffer=e.createVertexBuffer(i,dp,!1),this._poleSouthVertexBuffer=e.createVertexBuffer(r,dp,!1),this._texturedPoleNorthVertexBuffer=e.createVertexBuffer(n,dp,!1),this._texturedPoleSouthVertexBuffer=e.createVertexBuffer(o,dp,!1)}getGridBuffers(e,t){return[this._gridBuffer,this._gridIndexBuffer,t?this._gridSegments[e].withSkirts:this._gridSegments[e].withoutSkirts]}getPoleBuffers(e,t){return[t?this._texturedPoleNorthVertexBuffer:this._poleNorthVertexBuffer,t?this._texturedPoleSouthVertexBuffer:this._poleSouthVertexBuffer,this._poleIndexBuffer,this._poleSegments[e]]}},t.U=wf,t.V=$o,t.W="hd_road_elevation",t.X="hd_road_coverage",t.Y=ty,t.Z=1,t._=df,t.a=class{constructor(e,t,i){this.target=e,this.parent=t,this.mapId=i,this.callbacks={},this.cancelCallbacks={},it(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.scheduler=new qv}send(e,t,i,r,n=!1,o){const s=Math.round(1e18*Math.random()).toString(36).substring(0,10);i&&(i.metadata=o,this.callbacks[s]=i);const a=new Set;return this.target.postMessage({id:s,type:e,hasCallback:!!i,targetMapId:r,mustQueue:n,sourceMapId:this.mapId,data:rs(t,a)},a),{cancel:()=>{i&&delete this.callbacks[s],this.target.postMessage({id:s,type:"<cancel>",targetMapId:r,sourceMapId:this.mapId})}}}receive(e){const t=e.data;if(!t)return;const i=t.id;if(i&&(!t.targetMapId||this.mapId===t.targetMapId))if("<cancel>"===t.type){const e=this.cancelCallbacks[i];delete this.cancelCallbacks[i],e&&e.cancel()}else if(t.mustQueue||ut(self)){const e=this.callbacks[i],r=this.scheduler.add(()=>this.processTask(i,t),e&&e.metadata||{type:"message"});r&&(this.cancelCallbacks[i]=r)}else this.processTask(i,t)}processTask(e,t){if(delete this.cancelCallbacks[e],"<response>"===t.type){const i=this.callbacks[e];delete this.callbacks[e],i&&(t.error?i(ns(t.error)):i(null,ns(t.data)))}else{const i=new Set,r=t.hasCallback?(t,r)=>{this.target.postMessage({id:e,type:"<response>",sourceMapId:this.mapId,error:t?rs(t):null,data:rs(r,i)},i)}:()=>{},n=ns(t.data);if(this.parent[t.type])this.parent[t.type](t.sourceMapId,n,r);else if(this.parent.getWorkerSource){const e=t.type.split("."),{source:i,scope:o}=n;this.parent.getWorkerSource(t.sourceMapId,{type:e[0],source:i,scope:o,uid:0})[e[1]](n,r)}else r(new Error(`Could not find function ${t.type}`))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}},t.a$=class{constructor(e,t,i,r){this.context=e,this.format=r,this.size=i,this.texture=e.gl.createTexture();const[n,o,s]=this.size,{gl:a}=e;a.bindTexture(a.TEXTURE_3D,this.texture),e.pixelStoreUnpackFlipY.set(!1),e.pixelStoreUnpack.set(1),e.pixelStoreUnpackPremultiplyAlpha.set(!1),"data"in t&&t.data&&a.texImage3D(a.TEXTURE_3D,0,this.format,n,o,s,0,nf(this.format),of(this.format),t.data)}bind(e,t){const{context:i}=this,{gl:r}=i;r.bindTexture(r.TEXTURE_3D,this.texture),e!==this.minFilter&&(r.texParameteri(r.TEXTURE_3D,r.TEXTURE_MAG_FILTER,e),r.texParameteri(r.TEXTURE_3D,r.TEXTURE_MIN_FILTER,e),this.minFilter=e),t!==this.wrapS&&(r.texParameteri(r.TEXTURE_3D,r.TEXTURE_WRAP_S,t),r.texParameteri(r.TEXTURE_3D,r.TEXTURE_WRAP_T,t),this.wrapS=t)}destroy(){const{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null}},t.a0=uf,t.a1=mi,t.a2=lf,t.a3=qx,t.a4=Ki,t.a5=class{static calculate(e,t,i){const r=new Set,n=new Map,o=new Set,s=new Set;for(const l of Object.values(e))for(const[e,i]of Object.entries(l.floors)){o.add(e),i.isDefault&&s.add(e),i.conflicts&&n.set(e,i.conflicts);const a=e===t,l=i.connections&&t&&i.connections.has(t);(a||l)&&r.add(e)}const a=e=>{const t=n.get(e)||new Set;for(const i of r)if((n.get(i)||new Set).has(e)||t.has(i))return!0;return!1};if(i)for(const l of i)o.has(l)&&(a(l)||r.add(l));for(const l of s)r.has(l)||a(l)||r.add(l);return r}},t.a6=oE,t.a7=Rv,t.a8=Y_,t.a9=vu,t.aA=$x,t.aB=gp,t.aC=Jv,t.aD=BA,t.aE=CA,t.aF=class{constructor(){this._updateTime=0,this._sourceIds=[],this._activeRegions=[],this._prevRegions=[],this._globalClipBounds={min:new we(1/0,1/0),max:new we(-1/0,-1/0)}}clear(){this._activeRegions.length>0&&++this._updateTime,this._activeRegions=[],this._prevRegions=[]}get updateTime(){return this._updateTime}getReplacementRegionsForTile(e,t=!1){const i=PA(new we(0,0),new we(Yr,Yr),e),r=[];if(t&&!QA(i,this._globalClipBounds))return r;for(const n of this._activeRegions){if(n.hiddenByOverlap)continue;if(!QA(i,n))continue;const t=RA(n.min,n.max,e);r.push({min:t.min,max:t.max,sourceId:this._sourceIds[n.priority],footprint:n.footprint,footprintTileId:n.tileId,order:n.order,clipMask:n.clipMask,clipScope:n.clipScope})}return r}setSources(e){this._setSources(e.map(e=>({getSourceId:()=>e.cache.id,getFootprints:()=>{const t=[];
vendor: 7,041 bytes, line 1
1for(const i of e.cache.getVisibleCoordinates()){const r=e.cache.getTile(i).buckets[e.layer];r&&r.updateFootprints(i.toUnwrapped(),t)}return t},getOrder:()=>e.order,getClipMask:()=>e.clipMask,getClipScope:()=>e.clipScope})))}_addSource(e){const t=e.getFootprints();if(0===t.length)return;const i=e.getOrder(),r=e.getClipMask(),n=e.getClipScope();for(const o of t){if(!o.footprint)continue;const e=PA(o.footprint.min,o.footprint.max,o.id);this._activeRegions.push({min:e.min,max:e.max,hiddenByOverlap:!1,priority:this._sourceIds.length,tileId:o.id,footprint:o.footprint,order:i,clipMask:r,clipScope:n})}this._sourceIds.push(e.getSourceId())}_computeReplacement(){this._activeRegions.sort((e,t)=>e.priority-t.priority||TA(e.min,t.min)||TA(e.max,t.max)||e.order-t.order||e.clipMask-t.clipMask||function(e,t){const i=(e,t)=>e+t;return e.length-t.length||e.reduce(i,"").localeCompare(t.reduce(i,""))}(e.clipScope,t.clipScope));let e=this._activeRegions.length!==this._prevRegions.length;if(!e){let t=0;for(;!e&&t!==this._activeRegions.length;){const i=this._activeRegions[t],r=this._prevRegions[t];e=i.priority!==r.priority||!MA(i,r)||i.order!==r.order||i.clipMask!==r.clipMask||!Ee(i.clipScope,r.clipScope),this._activeRegions[t].hiddenByOverlap=r.hiddenByOverlap,++t}}if(e){++this._updateTime;for(const t of this._activeRegions)t.order!==CA&&(this._globalClipBounds.min.x=Math.min(this._globalClipBounds.min.x,t.min.x),this._globalClipBounds.min.y=Math.min(this._globalClipBounds.min.y,t.min.y),this._globalClipBounds.max.x=Math.max(this._globalClipBounds.max.x,t.max.x),this._globalClipBounds.max.y=Math.max(this._globalClipBounds.max.y,t.max.y));const e=e=>{const t=this._activeRegions;if(e>=t.length)return e;const i=t[e].priority;for(;e<t.length&&t[e].priority===i;)++e;return e};if(this._sourceIds.length>1){let t=0,i=e(t);for(;t!==i;){let r=t;const n=t;for(;r!==i;){const e=this._activeRegions[r];e.hiddenByOverlap=!1;for(let t=0;t<n;t++){const i=this._activeRegions[t];if(!i.hiddenByOverlap&&e.order===CA&&QA(e,i)&&(e.hiddenByOverlap=LA(e.footprint,e.tileId,i.footprint,i.tileId),e.hiddenByOverlap))break}++r}t=i,i=e(t)}}}}_setSources(e){[this._prevRegions,this._activeRegions]=[this._activeRegions,[]],this._sourceIds=[];for(let t=e.length-1;t>=0;t--)this._addSource(e[t]);this._computeReplacement()}},t.aG=Xi,t.aH=Xt,t.aI=2,t.aJ=Kc,t.aK=Ic,t.aL=Sc,t.aM=Tc,t.aN=mc,t.aO=Bc,t.aP=$l,t.aQ=Kl,t.aR=pc,t.aS=sc,t.aT=yc,t.aU=Ec,t.aV=bc,t.aW=Cc,t.aX=qA,t.aY=/^(.*)-transition$/,t.aZ=class extends Tv{constructor(e,t){super(e._vectorTileFeature,e._z,e._x,e._y,e.id),e.state&&(this.state=Object.assign({},e.state)),this.target=t.target,this.namespace=t.namespace,t.properties&&(this.properties=t.properties),this.target&&("featuresetId"in this.target&&!this.target.importId||"layerId"in this.target)&&(this.source=e.source,this.sourceLayer=e.sourceLayer,this.layer=e.layer)}toJSON(){const e=super.toJSON();return e.target=this.target,e.namespace=this.namespace,e}},t.a_=sf,t.aa=Bu,t.ab=Il,t.ac=Cl,t.ad=vf,t.ae=Ml,t.af=kw,t.ag=zl,t.ah=n_,t.ai=Mv,t.aj=i_,t.ak=3,t.al=2,t.am=0,t.an=1,t.ao=Xu,t.ap=eA,t.aq=2,t.ar=wu,t.as=sd,t.at=class{constructor(e=new Uint8Array(16)){this.buf=ArrayBuffer.isView(e)?e:new Uint8Array(e),this.dataView=new DataView(this.buf.buffer),this.pos=0,this.length=this.buf.length}writeTag(e,t){this.writeVarint(e<<3|t)}realloc(e){let t=this.length||16;for(;t<this.pos+e;)t*=2;if(t!==this.length){const e=new Uint8Array(t);e.set(this.buf),this.buf=e,this.dataView=new DataView(e.buffer),this.length=t}}finish(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)}writeFixed32(e){this.realloc(4),this.dataView.setInt32(this.pos,e,!0),this.pos+=4}writeSFixed32(e){this.realloc(4),this.dataView.setInt32(this.pos,e,!0),this.pos+=4}writeFixed64(e){this.realloc(8),this.dataView.setInt32(this.pos,-1&e,!0),this.dataView.setInt32(this.pos+4,Math.floor(e*nd),!0),this.pos+=8}writeSFixed64(e){this.realloc(8),this.dataView.setInt32(this.pos,-1&e,!0),this.dataView.setInt32(this.pos+4,Math.floor(e*nd),!0),this.pos+=8}writeVarint(e){if((e=+e||0)>=0&&e<128)return this.pos>=this.length&&this.realloc(1),void(this.buf[this.pos++]=e);e>268435455||e<0?function(e,t){let i,r;if(e>=0?(i=e%4294967296|0,r=e/4294967296|0):(i=~(-e%4294967296),r=~(-e/4294967296),4294967295^i?i=i+1|0:(i=0,r=r+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,i){i.buf[i.pos++]=127&e|128,e>>>=7,i.buf[i.pos++]=127&e|128,e>>>=7,i.buf[i.pos++]=127&e|128,e>>>=7,i.buf[i.pos++]=127&e|128,i.buf[i.pos]=127&(e>>>=7)}(i,0,t),function(e,t){const i=(7&e)<<4;t.buf[t.pos++]|=i|((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)))))}(r,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(e){this.writeVarint(e<0?2*-e-1:2*e)}writeBoolean(e){this.writeVarint(+e)}writeString(e){e=String(e),this.realloc(4*e.length),this.pos++;const t=this.pos;this.pos=function(e,t,i){for(let r,n,o=0;o<t.length;o++){if(r=t.charCodeAt(o),r>55295&&r<57344){if(!n){r>56319||o+1===t.length?(e[i++]=239,e[i++]=191,e[i++]=189):n=r;continue}if(r<56320){e[i++]=239,e[i++]=191,e[i++]=189,n=r;continue}r=n-55296<<10|r-56320|65536,n=null}else n&&(e[i++]=239,e[i++]=191,e[i++]=189,n=null);r<128?e[i++]=r:(r<2048?e[i++]=r>>6|192:(r<65536?e[i++]=r>>12|224:(e[i++]=r>>18|240,e[i++]=r>>12&63|128),e[i++]=r>>6&63|128),e[i++]=63&r|128)}return i}(this.buf,e,this.pos);const i=this.pos-t;i>=128&&ld(t,i,this),this.pos=t-1,this.writeVarint(i),this.pos+=i}writeFloat(e){this.realloc(4),this.dataView.setFloat32(this.pos,e,!0),this.pos+=4}writeDouble(e){this.realloc(8),this.dataView.setFloat64(this.pos,e,!0),this.pos+=8}writeBytes(e){const t=e.length;this.writeVarint(t),this.realloc(t),this.buf.set(e,this.pos),this.pos+=t}writeRawMessage(e,t){this.pos++;const i=this.pos;e(t,this);const r=this.pos-i;r>=128&&ld(i,r,this),this.pos=i-1,this.writeVarint(r),this.pos+=r}writeMessage(e,t,i){this.writeTag(e,2),this.writeRawMessage(t,i)}writePackedVarint(e,t){t.length&&this.writeMessage(e,cd,t)}writePackedSVarint(e,t){t.length&&this.writeMessage(e,hd,t)}writePackedBoolean(e,t){t.length&&this.writeMessage(e,fd,t)}writePackedFloat(e,t){t.length&&this.writeMessage(e,ud,t)}writePackedDouble(e,t){t.length&&this.writeMessage(e,dd,t)}writePackedFixed32(e,t){t.length&&this.writeMessage(e,pd,t)}writePackedSFixed32(e,t){t.length&&this.writeMessage(e,Ad,t)}writePackedFixed64(e,t){t.length&&this.writeMessage(e,gd,t)}writePackedSFixed64(e,t){t.length&&this.writeMessage(e,md,t)}writeBytesField(e,t){this.writeTag(e,2),this.writeBytes(t)}writeFixed32Field(e,t){this.writeTag(e,5),this.writeFixed32(t)}writeSFixed32Field(e,t){this.writeTag(e,5),this.writeSFixed32(t)}
vendor: 5,686 bytes, line 1
1writeFixed64Field(e,t){this.writeTag(e,1),this.writeFixed64(t)}writeSFixed64Field(e,t){this.writeTag(e,1),this.writeSFixed64(t)}writeVarintField(e,t){this.writeTag(e,0),this.writeVarint(t)}writeSVarintField(e,t){this.writeTag(e,0),this.writeSVarint(t)}writeStringField(e,t){this.writeTag(e,2),this.writeString(t)}writeFloatField(e,t){this.writeTag(e,5),this.writeFloat(t)}writeDoubleField(e,t){this.writeTag(e,1),this.writeDouble(t)}writeBooleanField(e,t){this.writeVarintField(e,+t)}},t.au=we,t.av=class{constructor(e){this.specification=e}possiblyEvaluate(e,t){return ht(e.expression.evaluate(t))}interpolate(e,t,i){return{x:vi(e.x,t.x,i),y:vi(e.y,t.y,i),z:vi(e.z,t.z,i),azimuthal:vi(e.azimuthal,t.azimuthal,i),polar:vi(e.polar,t.polar,i)}}},t.aw=la,t.ax=da,t.ay=yu,t.az=av,t.b=_u,t.b$=qo,t.b0=class{constructor(e,t,i,r,n,o){this.tileID=e,this.uid=et(),this.uses=0,this.tileSize=t,this.tileZoom=i,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasTunnelGeometry=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=n,r&&r.style&&(this._lastUpdatedBrightness=r.style.getBrightness()),this._lastAvailableImagesCount=0,this._firstPrepareComplete=!1,this.expiredRequestCount=0,this.state="loading",r&&r.transform&&(this.projection=r.transform.projection),this.worldview=o,this._hasAppearances=null}registerFadeDuration(e){const t=e+this.timeAdded;t<Dt.now()||void 0!==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=rA(this.tileID.canonical,this.projection)),this._tileTransform}loadVectorData(e,t,i){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=Nv(e.buckets,t.style),e.frcCoveragePolygons&&e.frcCoveragePolygons.length>0&&(this.frcCoveragePolygons=e.frcCoveragePolygons),this.hasDeferredRoadStructure=!!e.hasDeferredRoadStructure,this.hasSymbolBuckets=!1,this.hasTunnelGeometry=!!e.hasTunnelGeometry;for(const e in this.buckets){const t=this.buckets[e];if(t instanceof qA){if(this.hasSymbolBuckets=!0,!i)break;t.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const e in this.buckets){const t=this.buckets[e];if(t instanceof qA&&t.hasRTLText){this.hasRTLText=!0,$s();break}}this.queryPadding=0;for(const e in this.buckets){const i=this.buckets[e],r=t.style.getOwnLayer(e);if(!r)continue;const n=r.queryRadius(i)||0;this.queryPadding=Math.max(this.queryPadding,n)}e.imageAtlas&&(this.imageAtlas=t.style.imageManager.imageAtlasCache.getOrCache(e.imageAtlas)),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage),e.lineAtlas&&(this.lineAtlas=e.lineAtlas),this._lastUpdatedBrightness=e.brightness}else this.collisionBoxArray=new zc}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=null),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._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._tileDebugIndexBuffer&&(this._tileDebugIndexBuffer.destroy(),this._tileDebugIndexBuffer=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"}}loadModelData(e,t,i){e&&(e.resourceTiming&&(this.resourceTiming=e.resourceTiming),this.buckets=Object.assign({},this.buckets,Nv(e.buckets,t.style)),e.featureIndex&&(this.latestFeatureIndex=e.featureIndex))}getBucket(e){return this.buckets[e.fqid]}upload(e,t){for(const n in this.buckets){const i=this.buckets[n];if(i.uploadPending()){let r={},n=[],o={zoom:0,pitch:0,brightness:0,worldview:""};if(t){if(t.style){n=t.style.listImages();const e=i.layers[0],o=e.sourceLayer||"_geojsonTileLayer",s=t.style.getLayerSourceCache(e);s&&(r=s._state.getState(o,void 0))}o={zoom:t.transform.zoom||0,pitch:t.transform.pitch||0,brightness:t.style.getBrightness()||0,worldview:t.worldview||""}}i.upload(e,this.tileID.canonical,r,n,o)}}const i=e.gl,r=this.imageAtlas;r&&t&&(this.imageAtlasTexture=t.style.imageManager.imageAtlasCache.getTextureForAtlas(r,e,i.RGBA8),r.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new sf(e,this.glyphAtlasImage,i.R8),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new sf(e,this.lineAtlas.image,i.R8),this.lineAtlas.uploaded=!0)}prepare(e,t,i){if(this.imageAtlas&&this.imageAtlasTexture&&t){const r=t.style.getLut(i);this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture,i,r)}if(!t||!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData)return;const r=t.style.getBrightness(),n=t.style.listImages(),o=n.length,s=t.style._changes.getUpd
vendor: 5,952 bytes, line 1
1atedPaintProperties(),a=Object.keys(this.buckets).some(e=>this.buckets[e].layers.some(e=>s.has(e.fqid))),l=Object.keys(this.buckets).some(e=>this.buckets[e].layers.some(e=>e.hasTransition&&e.hasTransition())),c=this._firstPrepareComplete&&o!==this._lastAvailableImagesCount;null===this._hasAppearances&&(this._hasAppearances=this.hasAppearances(t));const h=this._lastUpdatedBrightness!==r;this._lastAvailableImagesCount=o,this._firstPrepareComplete=!0,(this._lastUpdatedBrightness||r||this._hasAppearances||a||l||c)&&(!(this._hasAppearances||a||l||c)&&this._lastUpdatedBrightness&&r&&Math.abs(this._lastUpdatedBrightness-r)<.001||(this.updateBuckets(t,h,void 0,c||a||l,s,n),this._lastUpdatedBrightness=r))}evaluateQueryRenderedFeaturePadding(){let e=0;for(const t in this.buckets){const i=this.buckets[t];i.evaluateQueryRenderedFeaturePadding&&(e=Math.max(e,i.evaluateQueryRenderedFeaturePadding()))}return e}queryRenderedFeatures(e,t,i,r,n,o,s){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData&&!this.latestFeatureIndex.is3DTile)return{};const a=this.evaluateQueryRenderedFeaturePadding(),l=function(e,t){const i=y([],[.5*e.width,.5*-e.height,1]);return f(i,i,[1,-1,0]),d(i,i,e.calculateProjMatrix(t.toUnwrapped())),Float32Array.from(i)}(n,this.tileID);return this.latestFeatureIndex.query(e,{tilespaceGeometry:t,pixelPosMatrix:l,transform:r,availableImages:i,tileTransform:this.tileTransform,worldview:this.worldview,queryRadius:a,scope:s})}querySourceFeatures(e,t){const i=this.latestFeatureIndex;if(!i||!i.rawTileData)return;const r=i.loadVTLayers(),n=t?t.sourceLayer:"",o=r._geojsonTileLayer||r[n];if(!o)return;const s=ma(t&&t.filter),{z:a,x:l,y:c}=this.tileID.canonical,h={z:a,x:l,y:c};for(let u=0;u<o.length;u++){const t=o.feature(u);if(s.needGeometry){const e=jl(t,!0);if(!s.filter(new ea(this.tileID.overscaledZ,{worldview:this.worldview}),e,this.tileID.canonical))continue}else if(!s.filter(new ea(this.tileID.overscaledZ,{worldview:this.worldview}),t))continue;const r=i.getId(t,n),d=new Tv(t,a,l,c,r);d.tile=h,e.push(d)}}loaded(){return"loaded"===this.state||"errored"===this.state}hasData(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state}patternsLoaded(){return!!this.imageAtlas&&!!this.imageAtlas.patternPositions.size}setExpiryData(e){const t=this.expirationTime;if(e.cacheControl){const t=dt(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 i=!1;if(this.expirationTime>e)i=!1;else if(t)if(this.expirationTime<t)i=!0;else{const r=this.expirationTime-t;r?this.expirationTime=e+Math.max(r,3e4):i=!0}else i=!0;i?(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-Date.now(),Math.pow(2,31)-1)}refreshFeatureState(e,t){if(!this.latestFeatureIndex||!this.latestFeatureIndex.rawTileData&&!this.latestFeatureIndex.is3DTile||!e)return;const i=e.style.listImages();this.updateBuckets(e,!1,t,void 0,void 0,i)}hasAppearances(e){for(const t in this.buckets)if(e.style.hasLayer(t)&&this.buckets[t].layers.some(e=>e.appearances&&e.appearances.length>0))return!0;return!1}updateBuckets(e,t,i,r,n,o){if(!this.latestFeatureIndex)return;if(!e.style)return;const s=o||e.style.listImages(),a=e.style.getBrightness(),l=n||new Set;for(const c in this.buckets){if(!e.style.hasLayer(c))continue;const n=this.buckets[c],o=n.layers[0],h=o.sourceLayer||"_geojsonTileLayer",u=e.style.getLayerSourceCache(o),d=n.layers.some(e=>l.has(e.fqid)),f=(r||d)&&n instanceof qA?e.style.getOwnLayer(c):void 0;let p=i&&i[h]||{};u&&!i&&(p=u._state.getState(h,void 0));const A=this.imageAtlas?Object.fromEntries(this.imageAtlas.patternPositions):{},g=Object.keys(p).length>0&&!t;n.hasAppearances=n.layers.some(e=>e.appearances&&e.appearances.length>0);const m=g?n.stateDependentLayers:n.layers;if(g&&0!==n.stateDependentLayers.length||t||d||r){const i=this.latestFeatureIndex.loadVTLayers()[h];if(n.update(p,i,s,A,m,t,a,this.tileID.canonical),(r||d)&&(!t||t&&n instanceof qA&&(!n.text.uboBinder||n.text.uboBinder.isLightConstant||!n.icon.uboBinder||n.icon.uboBinder.isLightConstant))&&n instanceof qA&&f&&"symbol"===f.type){const e=n;e.text&&e.text.uboBinder&&e.text.uboBinder.updateDynamicExpressions(f,i,this.tileID.canonical,s,p,a),e.icon&&e.icon.uboBinder&&e.icon.uboBinder.updateDynamicExpressions(f,i,this.tileID.canonical,s,p,a)}if(n instanceof qA){const t=n,i=e.context;t.text&&t.text.uboBinder&&t.text.uboBinder.upload(i),t.icon&&t.icon.uboBinder&&t.icon.uboBinder.upload(i)}}if(g&&0!==n.stateDependentLayers.length||t||n.hasAppearances){const t={zoom:e.transform.zoom,pitch:e.transform.pitch,brightness:e.style.getBrightness()||0,worldview:e.worldview},i=n.updateAppearances(this.tileID.canonical,p,s,t,e.imageManager,g&&0!==n.stateDependentLayers.length);if(i&&i.hasUboChanges){const t=e.context;n instanceof qA&&n.text&&n.text.uboBinder&&n.text.uboBinder.upload(t),n instanceof qA&&n.icon&&n.icon.uboBinder&&n.icon.uboBinder.upload(t)}}(n instanceof Bu||n instanceof Qh)&&e._terrain&&e._terrain.enabled&&u&&n.uploadPending()&&e._terrain._clearRenderCacheForTile(u.id,this.tileID);const _=e&&e.style&&e.style.getOwnLayer(c);_&&(this.queryPadding=Math.max(this.queryPadding,_.queryRadius(n)||0))}}holdingForFade(){return void 0!==this.symbolFadeHoldUntil}symbolFadeFinished(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<Dt.now()}clearFadeHold(){this.symbolFadeHoldUntil=void 0}setHoldDuration(e){this.symbolFadeHoldUntil=Dt.now()+e}setTexture(e,t){const i=t.context,r=i.gl;this.texture=this.texture||t.getTileTexture(e.width),this.texture&&this.texture instanceof sf?this.texture.update(e):(this.texture=new sf(i,e,r.RGBA8,{useMipmap:!0}),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE))}
vendor: 7,994 bytes, line 1
1setDependencies(e,t){const i={};for(const r of t)i[r]=!0;this.dependencies[e]=i}hasDependency(e,t){for(const i of e){const e=this.dependencies[i];if(e)for(const i of t)if(e[i])return!0}return!1}clearQueryDebugViz(){}_makeDebugTileBoundsBuffers(e,t){if(!t||"mercator"===t.name||this._tileDebugBuffer)return;const i=Hl(Zv,this.tileID.canonical,this.tileTransform)[0],r=new Kl,n=new Tc;for(let o=0;o<i.length;o++){const{x:e,y:t}=i[o];r.emplaceBack(e,t),n.emplaceBack(o)}n.emplaceBack(0),this._tileDebugIndexBuffer=e.createIndexBuffer(n),this._tileDebugBuffer=e.createVertexBuffer(r,pp.members),this._tileDebugSegments=Kc.simpleSegment(0,0,r.length,n.length)}_makeTileBoundsBuffers(e,t){if(this._tileBoundsBuffer||!t||"mercator"===t.name)return;const i=Hl(Zv,this.tileID.canonical,this.tileTransform)[0];let r,n;if(this.isRaster){const e=function(e,t){const i=rA(e,t),r=Math.pow(2,e.z);for(let c=0;c<Vv;c++)for(let n=0;n<Vv;n++){const o=Er((e.x+(n+Wv(n))/Uv)/r),s=br((e.y+(c+Wv(c))/Uv)/r),a=t.project(o,s),l=c*Vv+n;jv[2*l+0]=Math.round((a.x*i.scale-i.x)*Yr),jv[2*l+1]=Math.round((a.y*i.scale-i.y)*Yr)}Gv.fill(0),Yv.fill(0);for(let c=2045;c>=0;c--){const e=4*c,t=Hv[e+0],i=Hv[e+1],r=Hv[e+2],n=Hv[e+3],o=t+r>>1,s=i+n>>1,a=o+s-i,l=s+t-o,h=i*Vv+t,u=n*Vv+r,d=s*Vv+o,f=Math.hypot((jv[2*h+0]+jv[2*u+0])/2-jv[2*d+0],(jv[2*h+1]+jv[2*u+1])/2-jv[2*d+1])>=16;Gv[d]=Gv[d]||(f?1:0),c<1022&&(Gv[d]=Gv[d]||Gv[(i+l>>1)*Vv+(t+a>>1)]||Gv[(n+l>>1)*Vv+(r+a>>1)])}const n=new $l,o=new yc;let s=0;function a(e,t){const i=t*Vv+e;return 0===Yv[i]&&(n.emplaceBack(jv[2*i+0],jv[2*i+1],e*Yr/Uv,t*Yr/Uv),Yv[i]=++s),Yv[i]-1}function l(e,t,i,r,n,s){const c=e+i>>1,h=t+r>>1;if(Math.abs(e-n)+Math.abs(t-s)>1&&Gv[h*Vv+c])l(n,s,e,t,c,h),l(i,r,n,s,c,h);else{const l=a(e,t),c=a(i,r),h=a(n,s);o.emplaceBack(l,c,h)}}return l(0,0,Uv,Uv,Uv,0),l(Uv,Uv,0,0,0,Uv),{vertices:n,indices:o}}(this.tileID.canonical,t);r=e.vertices,n=e.indices}else{r=new $l,n=new yc;for(const{x:t,y:n}of i)r.emplaceBack(t,n,0,0);const e=Ua(r.int16.subarray(0,4*r.length),void 0,4);for(let t=0;t<e.length;t+=3)n.emplaceBack(e[t],e[t+1],e[t+2])}this._tileBoundsBuffer=e.createVertexBuffer(r,Yx.members),this._tileBoundsIndexBuffer=e.createIndexBuffer(n),this._tileBoundsSegments=Kc.simpleSegment(0,0,r.length,n.length)}_makeGlobeTileDebugBuffers(e,t){const i=t.projection;if(!i||"globe"!==i.name||t.freezeTileCoverage)return;const r=this.tileID.canonical,n=Np(Sp(r,t)),o=Gp(t.zoom);let s;o>0&&(s=u(new Float64Array(16),t.globeMatrix)),this._makeGlobeTileDebugBorderBuffer(e,r,t,n,s,o),this._makeGlobeTileDebugTextBuffer(e,r,t,n,s,o)}_globePoint(e,t,i,r,n,o,s){let a=Fp(e,t,i);if(o){const n=1<<i.z,l=vr(r.center.lng),c=wr(r.center.lat),h=(i.x+.5)/n-l;let u=0;h>.5?u=-1:h<-.5&&(u=1);let d=(e/Yr+i.x)/n+u,f=(t/Yr+i.y)/n;d=(d-l)*r._pixelsPerMercatorPixel+l,f=(f-c)*r._pixelsPerMercatorPixel+c;const p=[d*r.worldSize,f*r.worldSize,0];j(p,p,o),a=Qp(a,p,s)}return j(a,a,n)}_makeGlobeTileDebugBorderBuffer(e,t,i,r,n,o){const s=new Kl,a=new Tc,l=new Xl,c=(e,c,h,u,d)=>{const f=(h-e)/(d-1),p=(u-c)/(d-1),A=s.length;for(let g=0;g<d;g++){const h=e+g*f,u=c+g*p;s.emplaceBack(h,u);const d=this._globePoint(h,u,t,i,r,n,o);l.emplaceBack(d[0],d[1],d[2]),a.emplaceBack(A+g)}},h=Yr;c(0,0,h,0,16),c(h,0,h,h,16),c(h,h,0,h,16),c(0,h,0,0,16),this._tileDebugIndexBuffer=e.createIndexBuffer(a),this._tileDebugBuffer=e.createVertexBuffer(s,pp.members),this._globeTileDebugBorderBuffer=e.createVertexBuffer(l,fp.members),this._tileDebugSegments=Kc.simpleSegment(0,0,s.length,a.length)}_makeGlobeTileDebugTextBuffer(e,t,i,r,n,o){const s=new Kl,a=new yc,l=new Xl,c=25;a.reserve(32),s.reserve(c),l.reserve(c);const h=(e,t)=>c*e+t;for(let u=0;u<c;u++){const e=2048*u;for(let a=0;a<c;a++){const c=2048*a;s.emplaceBack(c,e);const h=this._globePoint(c,e,t,i,r,n,o);l.emplaceBack(h[0],h[1],h[2])}}for(let u=0;u<4;u++)for(let e=0;e<4;e++){const t=h(u,e),i=h(u,e+1),r=h(u+1,e),n=h(u+1,e+1);a.emplaceBack(t,i,r),a.emplaceBack(r,i,n)}this._tileDebugTextIndexBuffer=e.createIndexBuffer(a),this._tileDebugTextBuffer=e.createVertexBuffer(s,pp.members),this._globeTileDebugTextBuffer=e.createVertexBuffer(l,fp.members),this._tileDebugTextSegments=Kc.simpleSegment(0,0,c,32)}destroy(e=!0){for(const t in this.buckets)this.buckets[t].destroy(e);this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&delete this.imageAtlasTexture,this.glyphAtlasTexture&&(this.glyphAtlasTexture.destroy(),delete this.glyphAtlasTexture),this.lineAtlasTexture&&(this.lineAtlasTexture.destroy(),delete this.lineAtlasTexture),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._tileDebugIndexBuffer&&(this._tileDebugIndexBuffer.destroy(),this._tileDebugIndexBuffer=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),e&&this.texture&&this.texture instanceof sf&&(this.texture.destroy(),delete this.texture),this.emissiveTexture&&this.emissiveTexture instanceof sf&&(this.emissiveTexture.destroy(),delete this.emissiveTexture),this.hillshadeFBO&&(this.hillshadeFBO.destroy(),delete this.hillshadeFBO),this.dem&&delete this.dem,this.neighboringTiles&&delete this.neighboringTiles,this.demTexture&&(this.demTexture.destroy(),delete this.demTexture),this.rasterParticleState&&(this.rasterParticleState.destroy(),delete this.rasterParticleState),this.latestFeatureIndex=null,this.state="unloaded"}},t.b1=wv,t.b2=ra,t.b3=/^(.*)-use-theme$/,t.b4=lh,t.b5=ah,t.b6=ch,t.b7=hh,t.b8=dh,t.b9=fh,t.bA=r_,t.bB=function(e,t,i){const r=Math.sqrt(e*e+t*t+i*i),n=r>0?Math.acos(i/r)*ke:0;let o=0!==e||0!==t?Math.atan2(-t,-e)*ke+90:0;return o<0&&(o+=360),[r,o,n]},t.bC=Ky,t.bD=(e,t,i,r,n,o)=>{const s=e.transform,a="globe"===s.projection.name;let l;if("map"===o.paint.get("circle-pitch-alignment"))if(a){const e=Hp(s.zoom,t.canonical)*s._pixelsPerMercatorPixel;l=Float32Array.from([e,0,0,e])}else l=s.calculatePixelsToTileUnitsMatrix(i);else l=new Float32Array([s.pixelsToGLUnits[0],0,0,s.pixelsToGLUnits[1]]);const c={u_camera_to_center_distance:e.transform.getCameraToCenterDistance(s.projection),u_matrix:e.translatePosMatrix(t.projMatrix,i,o.paint.get("circle-translate"),o.paint.get("circle-translate-anchor")),u_device_pixel_ratio:Dt.devicePixelRatio,u_extrude_scale:l,u_inv_rot_matrix:qy,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0],u_emissive_strength:o.paint.get("circle-emissive-strength")};if(a){c.u_inv_rot_matrix=r,c.u_merc_center=n,c.u_tile_id=[t.canonical.x,t.canonical.y,1<<t.canonical.z],c.u_zoom_transition=Gp(s.zoom);const e=n[0]*Yr,i=n[1]*Yr;c.u_up_dir=s.projection.upVector(new Xp(0,0,0),e,i)}return c},t.bE=e=>({u_camera_to_center_distance:new lh(e),u_extrude_scale:new Ah(e),u_device_pixel_ratio:new lh(e),u_matrix:new ph(e),u_inv_rot_matrix:new ph(e),u_merc_center:new ch(e),u_tile_id:new hh(e),u_zoom_transition:new lh(e),u_up_dir:new hh(e),u_emissive_strength:new lh(e)}),t.bF=Bl,t.bG=Je,t.bH=function(e){const t=Vt();if(!t)return;const i=t.delete(Ft);e&&i.then(()=>e()).catch(e)},t.bI=du,t.bJ=c,t.bK=I,t.bL=ot,t.bM=Hu,t.bN=Tt,t.bO=function(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=t[3],e},t.bP=bt,t.bQ=b_,t.bR=$m,t.bS=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],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},t.bT=l,t.bU=b,t.bV=o,t.bW=ie,t.bX=X,t.bY=Wo,t.bZ=ma,t.b_=Zl,t.ba=class extends sh{constructor(e){super(e),this.current=ne
1w Float32Array(9)}set(e,t,i){if(!this.fetchUniformLocation(e,t))return;const r=this.current;for(let n=0;n<9;n++)if(i[n]!==r[n]){r.set(i),this.gl.uniformMatrix3fv(this.location,!1,r);break}}},t.bb=ph,t.bc=$p,t.bd=af,t.be=Gh,t.bf=Uh,t.bg=xd,t.bh=Zo,t.bi=Rp,t.bj=T,t.bk=pe,t.bl=GA,t.bm=function(e,t){if(!e||!t)throw new Error("TileProvider name and URL are required");Tt.TILE_PROVIDER_URLS[e]=Dt.resolveURL(t)},t.bn=Tl,t.bo=Bi,t.bp=Ke,t.bq=function(e){return decodeURIComponent(atob(e).split("").map(e=>"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)).join(""))},t.br=function(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(e,t)=>String.fromCharCode(Number("0x"+t))))},t.bs=it,t.bt=Yx,t.bu=function(e,t){const i=[];for(let r=0;r<e.length;r++){const n=qe(r-1,-1,e.length-1),o=qe(r+1,-1,e.length-1),s=e[r],a=e[o],l=e[n].sub(s).unit(),c=a.sub(s).unit(),h=c.angleWithSep(l.x,l.y),u=l.add(c).unit().mult(-1*t/Math.sin(h/2));i.push(s.add(u))}return i},t.bv=function(e){jt++,jt>kt&&(e.getActor().send("enforceCacheSizeLimit",Ot),jt=0)},t.bw=function(e,t){const{x:i,y:r}=e.point,n=jp(i,r,e.worldSize/e._pixelsPerMercatorPixel,0,0);return d(n,n,Up(Mp(t)))},t.bx=function(e){const{x:t,y:i}=e.point,{lng:r,lat:n}=e._center;return jp(t,i,e.worldSize,r,n)},t.by=function(e){const t=e.pixelsPerMeter,i=t/Dl(1,e.center.lat),r=h(new Float64Array(16));return f(r,r,[e.point.x,e.point.y,0]),p(r,r,[i,i,t]),Float32Array.from(r)},t.bz=tA,t.c=rf,t.c$=IA,t.c0=function(e,t,i,r){return"custom"===e.type?new lv(e,t):new Pv[e.type](e,t,i,r)},t.c1=V,t.c2=Ee,t.c3=Aa,t.c4=He,t.c5=L,t.c6=function(e,t,i){return e[0]=t[0]/i[0],e[1]=t[1]/i[1],e[2]=t[2]/i[2],e},t.c7=U,t.c8=Ua,t.c9=El,t.cA=function(e,t){var i=Math.sin(t),r=Math.cos(t);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=r,e[6]=i,e[7]=0,e[8]=0,e[9]=-i,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},t.cB=function(e,t){var i=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=0,e[2]=-i,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=i,e[9]=0,e[10]=r,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},t.cC=function(e){const t=Math.round((e+45+360)%360/90)%4;return Ge[t]},t.cD=function(e,t,i){let r=0;for(let n=0;n<2;++n){const i=0;e[n]>i&&(r+=(e[n]-i)*(e[n]-i)),t[n]<i&&(r+=(i-t[n])*(i-t[n]))}return r},t.cE=Qd,t.cF=$f,t.cG=si,t.cH=function(e,t){var r=2*Math.acos(t[3]),n=Math.sin(r/2);return n>i?(e[0]=t[0]/n,e[1]=t[1]/n,e[2]=t[2]/n):(e[0]=1,e[1]=0,e[2]=0),r},t.cI=function(e){let t=1/0,i=1/0,r=-1/0,n=-1/0;for(const o of e)t=Math.min(t,o.x),i=Math.min(i,o.y),r=Math.max(r,o.x),n=Math.max(n,o.y);return{min:new we(t,i),max:new we(r,n)}},t.cJ=function(){return{API_URL:Tt.API_URL,DRACO_URL:Tt.DRACO_URL,MESHOPT_URL:Tt.MESHOPT_URL,MESHOPT_SIMD_URL:Tt.MESHOPT_SIMD_URL,BUILDING_GEN_URL:Tt.BUILDING_GEN_URL}},t.cK=St,t.cL=vt,t.cM=function(e,t){return ni(Object.assign(e,{method:"GET"}),t)},t.cN=Mt,t.cO=function(e){return e?{cacheControl:e.get("cache-control"),expires:e.get("expires")}:{cacheControl:void 0,expires:void 0}},t.cP=function(e,t,i,r){const n=t.getNorth(),o=t.getSouth(),s=t.getWest(),l=t.getEast(),c=1<<e.z,h=l-s,u=n-o,d=h/ml,f=-u/_l[i],p=[0,d,0,f,0,0,n,s,0];if(e.z>0){const e=180/r;a(p,p,[e/h+1,0,0,0,e/u+1,0,-.5*e/d,.5*e/f,1])}return p[2]=c,p[5]=e.x,p[8]=e.y,p},t.cQ=hi,t.cR=cf,t.cS=function(e){const t=e.lastIndexOf(Ta);return t>=0?e.slice(t+1):""},t.cT=oi,t.cU=function(e){const t=80.051129;e=Je(e,-80.051129,t)/t*90;const i=Math.pow(Math.abs(Math.sin(He(e))),3);return Math.round(i*(_l.length-1))},t.cV=tn,t.cW=Qt,t.cX=Sl,t.cY=function(e){const t=e.indexOf(Ta);return t>=0?e.slice(0,t):e},t.cZ=Qa,t.c_=function(e,t){const{scale:i}=e.tileTransform,r=i*Yr/(e.tileSize*Math.pow(2,t.zoom-e.tileID.overscaledZ+e.tileID.canonical.z)),n=t.inverseAdjustmentMatrix;
1return new Float32Array([n[0]*r,n[1]*r,n[2]*r,n[3]*r])},t.ca=We,t.cb=Ye,t.cc=function(e){return e*e*e*e*e},t.cd=function([e,t,i]){const r=Math.hypot(e,t,i),n=Math.atan2(e,i),o=.5*Math.PI-Math.acos(-t/r);return new Il(je(n),je(o))},t.ce=ou,t.cf=function(e){Ht(),null!=Ut&&Ut.then(t=>{t.keys().then(i=>{for(let r=0;r<i.length-e;r++)t.delete(i[r]).catch(e=>lt(e.message))}).catch(e=>lt(e.message))}).catch(e=>lt(e.message))},t.cg=function(e){return e>>>=0,e=Math.imul(2747636419^e,2654435769)>>>0,e=Math.imul(e^e>>>16,2654435769)>>>0,(e=Math.imul(e^e>>>16,2654435769)>>>0)/4294967296},t.ch=Ud,t.ci=Vd,t.cj=Nf,t.ck=Zs,t.cl=function(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]},t.cm=J,t.cn=Gt,t.co=Dt,t.cp=em,t.cq=Iy,t.cr=nt,t.cs=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},t.ct=w,t.cu=function(e,t){var i=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=i,e[2]=0,e[3]=-i,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},t.cv=y,t.cw=_,t.cx=B,t.cy=function(e,t,i,n){var o=new r(4);return o[0]=e,o[1]=t,o[2]=i,o[3]=n,o},t.cz=de,t.d=256,t.d$=Dx,t.d0=function(e){const t=jm(e,!0);return n([],[t[0],t[1],t[4],t[5]])},t.d1=jm,t.d2=Ym,t.d3=qs,t.d4=ti,t.d5=function(e,t){var i=new r(3);v(i,t);var n=1/i[0],o=1/i[1],s=1/i[2],a=t[0]*n,l=t[1]*o,c=t[2]*s,h=t[4]*n,u=t[5]*o,d=t[6]*s,f=t[8]*n,p=t[9]*o,A=t[10]*s,g=a+u+A,m=0;return g>0?(m=2*Math.sqrt(g+1),e[3]=.25*m,e[0]=(d-p)/m,e[1]=(f-c)/m,e[2]=(l-h)/m):a>u&&a>A?(m=2*Math.sqrt(1+a-u-A),e[3]=(d-p)/m,e[0]=.25*m,e[1]=(l+h)/m,e[2]=(f+c)/m):u>A?(m=2*Math.sqrt(1+u-a-A),e[3]=(f-c)/m,e[0]=(l+h)/m,e[1]=.25*m,e[2]=(d+p)/m):(m=2*Math.sqrt(1+A-a-u),e[3]=(l-h)/m,e[0]=(f+c)/m,e[1]=(d+p)/m,e[2]=.25*m),e},t.d6=Gm,t.d7=v,t.d8=nA,t.d9=function(e,t,i=0){return B(((t.x-i)*e.scale-e.x)*Yr,(t.y*e.scale-e.y)*Yr,Tl(t.z,t.y))},t.dA=function(){return!!document.fullscreenElement||!!document.webkitFullscreenElement},t.dB=Fo,t.dC=wn,t.dD=ei,t.dE=Wp,t.dF=function(e){return Tt.API_CDN_URL_REGEX.test(e)},t.dG=function(e){return Tt.API_FONTS_REGEX.test(e)},t.dH=Rt,t.dI=function(e){return Tt.API_STYLE_REGEX.test(e)&&!Rt(e)},t.dJ=function(e){return Tt.API_TILEJSON_REGEX.test(e)},t.dK=Pt,t.dL=function(e){return 0===e.indexOf("mapbox:")},t.dM=dr,t.dN=hr,t.dO=function(e){const t=e.navigator?e.navigator.userAgent:null;return!!function(e){if(null==xt){const t=e.navigator?e.navigator.userAgent:null;xt=!!e.safari||!(!t||!(Ue.test(t)||t.match("Safari")&&!t.match("Chrome")))}return xt}(e)&&!(!t||!(t.match("Version/15.4")||t.match("Version/15.5")||t.match(Ve)))},t.dP=vn,t.dQ=ur,t.dR=ut,t.dS=function(e,t){const i=[];for(const r in e)r in t||i.push(r);return i},t.dT=br,t.dU=wl,t.dV=K,t.dW=C,t.dX=function(e){var t=e[0],i=e[1],r=e[2],n=e[3];return Math.sqrt(t*t+i*i+r*r+n*n)},t.dY=vi,t.dZ=H,t.d_=function(e,t,i,r){var n=t[0],o=t[1],s=t[2],a=t[3];return e[0]=n+r*(i[0]-n),e[1]=o+r*(i[1]-o),e[2]=s+r*(i[2]-s),e[3]=a+r*(i[3]-a),e},t.da=cr,t.db=function(e,t){const i=document.createElement("video");i.muted=!0,i.onloadstart=function(){t(null,i)};for(let r=0;r<e.length;r++){const t=document.createElement("source");ai(e[r])||(i.crossOrigin="Anonymous"),t.src=e[r],i.appendChild(t)}return{cancel:()=>{}}},t.dc=Jm,t.dd=function(e){const t=[0,0,0],i=h(new Float64Array(16));return d(i,e.pixelMatrix,e.globeMatrix),j(t,t,i),new we(t[0],t[1])},t.de=Up,t.df=function(e,t){const i=[0,0,0];return j(i,i,Np(Mp(t.canonical))),j(i,i,e),i},t.dg=Ip,t.dh=Np,t.di=Hp,t.dj=function(e,t,i){const r=h(new Float64Array(16)),n=(t/(1<<e)-.5)*Math.PI*2;return g(r,i.globeMatrix,n),Float32Array.from(r)},t.dk=Mp,t.dl=Yp,t.dm=Gp,t.dn=function(e,t,i){const r=Gp(i.zoom),n=e.style.map._antialias,o=e.terrain&&e.terrain.exaggeration()>0;return 0===r&&!n&&!o},t.dp=re,t.dq=h,t.dr=u,t.ds=n,t.dt=function(e,t){var i=t[0],r=t[1],n=t[2],o=t[3],s=t[4],a=t[5],l=t[6],c=t[7],h=t[8],u=h*s-a*c,d=-h*o+a*l,f=c*o-s*l,p=i*u+r*d+n*f;return p?(e[0]=u*(p=1/p),e[1]=(-h*r+n*c)*p,e[2]=(a*r-n*s)*p,e[3]=d*p,e[4]=(h*i-n*l)*p,e[5]=(-a*i+n*o)*p,e[6]=f*p,e[7]=(-c*i+r*l)*p,e[8]=(s*i-r*o)*p,e):null},t.du=fr,t.dv=Yo,t.dw=ga,t.dx=function(e){return e.includes(Ta)},t.dy=xn,t.dz=function(e,t){const i=em(e);return null!==i&&!!(t&1<<i)},t.e=Kx,t.e$=_x,t.e0=(e,t,i,r,n,o,s,a,l,c)=>{const h=e.transform,u=h.pitch<15?vi(.07,.7,Je((14-h.zoom)/5,0,1)):.07,d="none"===i.paint.get("line-trim-color-use-theme").
1constantOr("default");return{u_matrix:Bx(e,t,i,r),u_texsize:t.imageAtlasTexture?t.imageAtlasTexture.size:[0,0],u_pixels_to_tile_units:h.calculatePixelsToTileUnitsMatrix(t),u_device_pixel_ratio:n,u_width_scale:o,u_floor_width_scale:s,u_image:0,u_tile_units_to_pixels:Cx(t,h),u_units_to_pixels:[1/h.pixelsToGLUnits[0],1/h.pixelsToGLUnits[1]],u_alpha_discard_threshold:0,u_trim_offset:a,u_trim_fade_range:i.paint.get("line-trim-fade-range"),u_trim_gradient_mix_range:[1,1],u_trim_color:i.paint.get("line-trim-color").toPremultipliedRenderColor(d?null:i.lut).toArray01(),u_zbias_factor:u,u_tile_to_meter:Rl(t.tileID.canonical,0),u_ground_shadow_factor:l,u_pattern_transition:c,u_opacity_multiplier:1}},t.e1=e=>({u_matrix:new ph(e),u_texsize:new ch(e),u_pixels_to_tile_units:new Ah(e),u_device_pixel_ratio:new lh(e),u_width_scale:new lh(e),u_floor_width_scale:new lh(e),u_image:new ah(e),u_units_to_pixels:new ch(e),u_tile_units_to_pixels:new lh(e),u_alpha_discard_threshold:new lh(e),u_trim_offset:new ch(e),u_trim_fade_range:new ch(e),u_trim_gradient_mix_range:new ch(e),u_trim_color:new dh(e),u_zbias_factor:new lh(e),u_tile_to_meter:new lh(e),u_ground_shadow_factor:new hh(e),u_pattern_transition:new lh(e),u_opacity_multiplier:new lh(e)}),t.e2=(e,t,i,r,n,o,s,a,l,c)=>{const h=e.transform,u=h.calculatePixelsToTileUnitsMatrix(t),d="none"===i.paint.get("line-trim-color-use-theme").constantOr("default"),f=h.pitch<15?vi(.07,.7,Je((14-h.zoom)/5,0,1)):.07;return{u_matrix:Bx(e,t,i,r),u_pixels_to_tile_units:u,u_device_pixel_ratio:o,u_width_scale:s,u_floor_width_scale:a,u_units_to_pixels:[1/h.pixelsToGLUnits[0],1/h.pixelsToGLUnits[1]],u_dash_image:0,u_gradient_image:1,u_image_height:n,u_texsize:Tx(i)&&t.lineAtlasTexture?t.lineAtlasTexture.size:[0,0],u_tile_units_to_pixels:Cx(t,e.transform),u_alpha_discard_threshold:0,u_trim_offset:l,u_trim_fade_range:i.paint.get("line-trim-fade-range"),u_trim_gradient_mix_range:[1,1],u_trim_color:i.paint.get("line-trim-color").toPremultipliedRenderColor(d?null:i.lut).toArray01(),u_zbias_factor:f,u_tile_to_meter:Rl(t.tileID.canonical,0),u_ground_shadow_factor:c,u_opacity_multiplier:1}},t.e3=e=>({u_matrix:new ph(e),u_pixels_to_tile_units:new Ah(e),u_device_pixel_ratio:new lh(e),u_width_scale:new lh(e),u_floor_width_scale:new lh(e),u_units_to_pixels:new ch(e),u_dash_image:new ah(e),u_gradient_image:new ah(e),u_image_height:new lh(e),u_texsize:new ch(e),u_tile_units_to_pixels:new lh(e),u_alpha_discard_threshold:new lh(e),u_trim_offset:new ch(e),u_trim_fade_range:new ch(e),u_trim_gradient_mix_range:new ch(e),u_trim_color:new dh(e),u_zbias_factor:new lh(e),u_tile_to_meter:new lh(e),u_ground_shadow_factor:new hh(e),u_opacity_multiplier:new lh(e)}),t.e4=function(e){return[Math.pow(e[0],1/2.2),Math.pow(e[1],1/2.2),Math.pow(e[2],1/2.2)]},t.e5=function(e){let t=0;if(new Uint32Array(e,0,1)[0]!==Bm){const i=new Uint32Array(e,0,7),[,,r,n,o,s]=i;t=i.byteLength+n+o+s+o,(r!==e.byteLength||t>=e.byteLength)&<("Invalid b3dm header information.")}return Pm(e,t)},t.e6=Rm,t.e7=function(e,t,i,r,n){const o=function(i,r){if(i)return n(i);if(r){e.url&&r.tiles&&e.tiles&&delete e.tiles;const i=Vw(e,r,t);if(i instanceof Error)return n(i);n(null,i)}},s=function(e,t,i){if(!e)return null;if(!t&&!i)return e;i=i||e.worldview_default;const r=Object.values(e.language||{});if(0===r.length)return null;const n=Object.values(e.worldview||{});if(0===n.length)return null;const o=r.every(e=>e===t),s=n.every(e=>e===i);return o&&s?e:t in(e.language_options||{})||i in(e.worldview_options||{})?null:e.language_options&&e.worldview_options?e:null}(e.data,i,r);return s?Dt.frame(()=>o(null,s)):e.url?oi(t.transformRequest(t.normalizeSourceURL(e.url,null,i,r),Xt.Source),o):Dt.frame(()=>{const{data:t,...i}=e;o(null,i)})},t.e8=async function(e,t){const i=jw.get(e);if(i)return i;const r=Hw.get(e);if(void 0!==r)return r;const n=import(t).catch(t=>{throw new Error(`TileProvider "${e}" failed to load: ${t instanceof Error?t.message:String(t)}`)}).then(t=>{const i=t.default;if("function"!=typeof i)throw new Error(`TileProvider "${e}" module must default-export a class`);if("function"!=typeof i.prototype.loadTile)throw new Error(`TileProvider "${e}" class must have a loadTile method`);return jw.set(e,i),i}).finally(()=>{Hw.delete(e)});return Hw.set(e,n),n},t.e9=function(e,t,i){const r=JSON.stringify(e.request);return e.data&&(this.deduped.entries[r]={result:[null,e.data]}),this.deduped.request(r,{type:"parseTile",renderSourceType:e.renderSourceType,zoom:e.tileZoom},t=>{const r=si(e.request,(e,r,n)=>{e?ei(e)?t(null,null):t(e):r&&t(null,{rawData:r,vectorTile:i?void 0:new Gh(new sd(r)),responseHeaders:new Map(n.entries())})});return()=>{r.cancel(),t(null,null)}},t)},t.eA=Bt,t.eB=function(e,t,i,r,n,o,s){var a=1/(t-i),l=1/(r-n),c=1/(o-s);return e[0]=-2*a,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10
1]=2*c,e[11]=0,e[12]=(t+i)*a,e[13]=(n+r)*l,e[14]=(s+o)*c,e[15]=1,e},t.eC=function(e,t){const i=e.url&&!e.tiles?t.transformRequest(e.url,Xt.Source):void 0;return{request:i,options:i?Object.assign({},e,{url:i.url}):e}},t.eD=function(e,t,i,r,n,o,s,a=1,l,c,h,u,d,f,p,A,g){e.createArrays(),e.tilePixelRatio=Yr/(512*e.overscaling),e.compareText={},e.iconsNeedLinear=!1;const m=e.layers[0].layout,_=e.layers[0]._unevaluatedLayout._values,y={};y.scaleFactor=a,y.textSizeScaleRange=m.get("text-size-scale-range"),y.iconSizeScaleRange=m.get("icon-size-scale-range");const[x,v]=y.textSizeScaleRange,[w,E]=y.iconSizeScaleRange;y.textScaleFactor=Je(y.scaleFactor,x,v),y.iconScaleFactor=Je(y.scaleFactor,w,E);const b=_["text-size"],I=_["icon-size"];if("composite"===e.textSizeData.kind){const{minZoom:t,maxZoom:i}=e.textSizeData;y.compositeTextSizes=[b.possiblyEvaluate(new ea(t,{worldview:h}),o),b.possiblyEvaluate(new ea(i,{worldview:h}),o)]}if("composite"===e.iconSizeData.kind){const{minZoom:t,maxZoom:i}=e.iconSizeData;y.compositeIconSizes=[I.possiblyEvaluate(new ea(t,{worldview:h}),o,u),I.possiblyEvaluate(new ea(i,{worldview:h}),o,u)]}y.layoutTextSize=b.possiblyEvaluate(new ea(s+1,{worldview:h}),o),y.layoutIconSize=I.possiblyEvaluate(new ea(s+1,{worldview:h}),o,u),y.textMaxSize=b.possiblyEvaluate(new ea(18,{worldview:h}),o);const C=m.get("symbol-placement"),B="map"===m.get("text-rotation-alignment")&&"point"!==C,D=m.get("text-size");let T=!1;const M=[],Q=null!=d&&0!==d;for(const S of e.features){if(Q&&S.properties&&A&&A(S.properties,d))continue;const s=m.get("text-font").evaluate(S,{},o).join(","),a=D.evaluate(S,{},o)*y.textScaleFactor,f=y.layoutTextSize.evaluate(S,{},o)*y.textScaleFactor,p=y.layoutIconSize.evaluate(S,{},o,u)*y.iconScaleFactor,g={horizontal:{},vertical:void 0},x=S.text;let v,w=[0,0];if(x){const r=x.toString(),c=m.get("text-letter-spacing").evaluate(S,{},o)*Xu,h=m.get("text-line-height").evaluate(S,{},o)*Xu,u=Ps(r)?c:0,d=m.get("text-anchor").evaluate(S,{},o),p=m.get("text-variable-anchor");if(!p){const e=m.get("text-radial-offset").evaluate(S,{},o);if(e)w=Nf(d,[e*Xu,Ff]);else{const e=m.get("text-offset").evaluate(S,{},o);w=[e[0]*Xu,e[1]*Xu]}}let A=B?"center":m.get("text-justify").evaluate(S,{},o);const _="point"===C,v=_?m.get("text-max-width").evaluate(S,{},o)*Xu:1/0,E=o=>{e.allowVerticalPlacement&&Ss(r)&&(g.vertical=Ed(x,t,i,n,s,v,h,d,o,u,w,xd.vertical,!0,f,a,l,y.textScaleFactor))};if(!B&&p){const e="auto"===A?p.map(e=>$f(e)):[A];let r=!1;for(let o=0;o<e.length;o++){const c=e[o];if(!g.horizontal[c])if(r)g.horizontal[c]=g.horizontal[0];else{const e=Ed(x,t,i,n,s,v,h,"center",c,u,w,xd.horizontal,!1,f,a,l,y.textScaleFactor);e&&(g.horizontal[c]=e,r=1===e.positionedLines.length)}}E("left")}else{if("auto"===A&&(A=$f(d)),_||m.get("text-writing-mode").includes("horizontal")||!Ss(r)){const e=Ed(x,t,i,n,s,v,h,d,A,u,w,xd.horizontal,!1,f,a,l,y.textScaleFactor);e&&(g.horizontal[A]=e)}E(_?"left":A)}}let E,b,I,P,R,z,L=!1;const F=m.get("icon-text-fit").evaluate(S,{},o);if(S.icon&&S.icon.hasPrimary()){const t=Jf(S.icon,e.iconSizeData,_["icon-size"],o,e.zoom,S,l,y.iconScaleFactor,h,u);E=t.iconPrimary,I=t.iconSecondary;const i=E.toString();if(b=r.get(i),b&&(R=m.get("icon-offset").evaluate(S,{},o),z=m.get("icon-anchor").evaluate(S,{},o),v=Rd(n.get(i),I?n.get(I.toString()):void 0,R,z),L=b.sdf,void 0===e.sdfIcons?e.sdfIcons=b.sdf:e.sdfIcons!==b.sdf&<("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(b.pixelRatio!==e.pixelRatio||0!==m.get("icon-rotate").constantOr(1))&&(e.iconsNeedLinear=!0)),I){const e=I.toString();P=r.get(e)}}T=T||!(!S.icon||!S.icon.hasSecondary());const O=ap(g.horizontal)||g.vertical;e.iconsInText||(e.iconsInText=!!O&&O.iconsInText);const k=f*y.textScaleFactor/Xu,{defaultShapedIcon:N,verticallyShapedIcon:U}=ep(e,v,m,S,o,g,k,R,F);"none"!==F&&v&&(Ld(v)||Fd(v))&&(Yf(0,b,E,v,N,F,c,r,n),Yf(0,P,I,v,N,F,c,r,n),U&&(Yf(0,b,E,v,U,F,c,r,n),Yf(0,P,I,v,U,F,c,r,n))),v=N;const{iconBBox:V,iconVerticalBBox:H,textBBox:j,textVerticalBBox:G}=Uf(e,v,U,m,S,o,p,R,y,n,z,g,f,w,u);M.push({feature:S,shapedTextOrientations:g,shapedText:O,shapedIcon:v,iconPrimary:E,iconSecondary:I,iconOffset:R,iconAnchor:z,verticallyShapedIcon:U,layoutTextSize:f,layoutIconSize:p,textOffset:w,isSDFIcon:L,iconTextFit:F,iconCollisionBounds:V,iconVerticalCollisionBounds:H,textCollisionBounds:j,textVerticalCollisionBounds:G})}return{featureData:M,sizes:y,hasAnySecondaryIcon:T,textAlongLine:B,symbolPlacement:C,coverageFrcMask:d,coveragePolygons:f,coverageTileZoom:p,isFeatureCoveredByFrcMask:A,symbolAnchorInFrcCoverage:g}},t.eE=function(e,t,i,r,n){var o=1/Math.tan(t/2);
1if(e[0]=o/i,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!=n&&n!==1/0){var s=1/(r-n);e[10]=(n+r)*s,e[14]=2*n*r*s}else e[10]=-1,e[14]=-2*r;return e},t.eF=Xe,t.eG=Ix,t.eH=Xs,t.eI=OA,t.eJ=Re,t.eK=function(e){const t=h(new Float64Array(16));d(t,e.pixelMatrix,e.globeMatrix);const i=[0,yl,0],r=[0,xl,0];return j(i,i,t),j(r,r,t),[i[0]>0&&i[0]<=e.width&&i[1]>0&&i[1]<=e.height&&!Wp(e,new Il(e.center.lat,90)),r[0]>0&&r[0]<=e.width&&r[1]>0&&r[1]<=e.height&&!Wp(e,new Il(e.center.lat,-90))]},t.eL=ru,t.eM=nu,t.eN=Jh,t.eO=Yh,t.eP=function(e,t,i=0,r=!0){const n=new we(i,i),o=e.sub(n),s=t.add(n),a=[o,new we(s.x,o.y),s,new we(o.x,s.y)];return r&&a.push(o.clone()),a},t.eQ=pp,t.eR=function(e,t){return ni(Object.assign(e,{method:"POST"}),t)},t.eS=function(e,t,i,r,n,o,s,a,l,c){e.iconAtlasPositions=c.iconPositions;const{featureData:h,hasAnySecondaryIcon:u,sizes:d,textAlongLine:f,symbolPlacement:p,coveragePolygons:A,coverageTileZoom:g,symbolAnchorInFrcCoverage:m}=t;for(const _ of h){const{shapedIcon:t,verticallyShapedIcon:i,feature:o,shapedTextOrientations:h,shapedText:y,layoutTextSize:x,textOffset:v,isSDFIcon:w,iconPrimary:E,iconSecondary:b,iconTextFit:I,iconOffset:C,iconCollisionBounds:B,iconVerticalCollisionBounds:D,textCollisionBounds:T}=_;qf(t,c.iconPositions,E,b),qf(i,c.iconPositions,E,b),Kf(h,c.iconPositions),Zf(E,b,c.iconPositions),(y||t)&&ip(e,o,h,t,i,l,d,x,0,v,w,r,n,s,a,u,I,C,f,p,B,D,T,0,0,A,g,m)}i&&e.generateCollisionDebugBuffers(o,e.collisionBoxArray,d.textScaleFactor),e.text.uboBinder&&e.text.uboBinder.finalize(),e.icon.uboBinder&&e.icon.uboBinder.finalize()},t.eT=Kd,t.eU=function(e){return e<=1?1:Math.pow(2,Math.floor(Math.log2(e)))},t.eV=function(e,t){const i=e.json.extensionsUsed&&e.json.extensionsUsed.includes("mbx_bvh"),r=b_(e);for(const n of r){if(!i)for(const e of n.meshes)I_(e);n.lights&&(n.lightMeshIndex=n.meshes.length,n.meshes.push(B_(n.lights,t)))}return r},t.eW=function(e,t,i){return t?Vw(e,t,i):e.tiles&&e.tiles.length>0?{tiles:e.tiles}:new Error('TileJSON is missing required "tiles" property')},t.eX=je,t.eY=["type","source","source-layer","minzoom","maxzoom","filter","layout"],t.eZ=ts,t.e_=function(e){return e({pluginStatus:Gs,pluginURL:Ys}),Zs.on("pluginStateChange",e),e},t.ea=Ma,t.eb=rt,t.ec=function(e,t,i,r,n){return Je((e-t)/(i-t)*(n-r)+r,r,n)},t.ed=tm,t.ee=function(e,t,i){return e[0]=Math.max(t[0],i[0]),e[1]=Math.max(t[1],i[1]),e[2]=Math.max(t[2],i[2]),e[3]=Math.max(t[3],i[3]),e},t.ef=function(e){const t=e.layers[0];"circle"===t.type&&"hd-road-markup"===t.layout.get("circle-elevation-reference")&&(e.hdExt=new sm)},t.eg=function(e,t){const i=e.layers[0].layout.get("fill-elevation-reference"),r="hd-road-base"===i||"hd-road-markup"===i?i:null,n=!!t&&t.length>0&&tm(t,e.layers[0].source,e.sourceLayerName);(r||n)&&(e.hdExt=new im(e,r,n))},t.eh=function(e,t){const i="hd-road-markup"===e.layers[0].layout.get("line-elevation-reference"),r=!!t&&t.length>0&&tm(t,e.layers[0].source,e.sourceLayerName);(i||r)&&(e.hdExt=new om(i,r))},t.ei=function(e){"hd-road-markup"===e.layers[0].layout.get("symbol-elevation-reference")&&(e.hdExt=new lm)},t.ej=Pl,t.ek=vr,t.el=wr,t.em=Dl,t.en=function(e,t,i){return e[0]=Math.min(t[0],i[0]),e[1]=Math.min(t[1],i[1]),e[2]=Math.min(t[2],i[2]),e[3]=Math.min(t[3],i[3]),e},t.eo=E,t.ep=q,t.eq=vo,t.er=d,t.es=Q,t.et=ui,t.eu=k,t.ev=iA,t.ew=tt,t.ex=N,t.ey=ce,t.ez=ee,t.f=Xp,t.f$=qe,t.f0=Fl,t.f1=function(e){if("provider"in e&&!e.provider)return null;let t=e.provider;if(!t&&"url"in e&&e.url&&(t=function(e){try{const t=new URL(e).pathname.split("/").pop()||"",i=t.lastIndexOf(".");return i>=0?t.slice(i+1):""}catch(t){return""}}(e.url)),!t)return null;const i=Tt.TILE_PROVIDER_URLS[t];if(!i)return null;let r;try{r=new URL(i,Tt.API_URL).href}catch(e){return new Error(`TileProvider "${t}" has an invalid URL: "${i}"`)}return{name:t,url:r}},t.f2=ne,t.f3=A,t.f4=oe,t.f5=function(e,t,i){i*=.5;var r=t[0],n=t[1],o=t[2],s=t[3],a=Math.sin(i),l=Math.cos(i);return e[0]=r*l+n*a,e[1]=n*l-r*a,e[2]=o*l+s*a,e[3]=s*l-o*a,e},t.f6=m,t.f7=Hs,t.f8=function(e,t){return[Math.pow(e[0],2.2)*t,Math.pow(e[1],2.2)*t,Math.pow(e[2],2.2)*t]},t.f9=It,t.fA=Lo,t.fB=Ro,t.fC=Po,t.fD=zo,t.fE=function(e,t,i,r,n,o,s,a,l){if("globe"===l.name)return Rp(e,t,new Xp(i,r,n),!1);const c=rA({z:i,x:r,y:n},l);return new bp([(o+c.x/c.scale)*t,t*(c.y/c.scale),s],[(o+c.x2/c.scale)*t,t*(c.y2/c.scale),a])},t.fF=zp,t.fG=Qv,t.fH=Rl,t.fI=rA,t.fJ=jl,t.fK=G,t.fL=j,t.fM=te,t.fN=FA,t.fO=Y,t.fP=Sp,t.fQ=f,t.fR=function(e,t){if(e===t){var i=t[1],r=t[2],n=t[3],o=t[6],s=t[7],a=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=i,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=o,e[11]=t[14],e[12]=n,e[13]=s,e[14]=a}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e},t.fS=Ws,t.fT=pa,t.fU=et,t.fV=ve,t.fW=function(e,t,i,r,n){const o=5*t+2;e.float32[o+0]=i,e.float32[o+1]=r,e.float32[o+2]=n},t.fX=function(){return function e(t){return t?(t^Math.random()*(16>>t/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()},t.fY=function(e){const t=[],i=e.id;return void 0===i&&t.push({message:`layers.${i}: missing required property "id"`}),void 0===e.render&&t.push({message:`layers.${i}: missing required method "render"`}),e.renderingMode&&"2d"!==e.renderingMode&&"3d"!==e.renderingMode&&t.push({message:`layers.${i}: property "renderingMode" must be either "2d" or "3d"`}),t},t.fZ=function(e){return!!e&&Ne.test(e)},t.f_=lt,t.fa=R,t.fb=$,t.fc=p,t.fd=ge,t.fe=z,t.ff=D,t.fg=function(e){Tt.ACCESS_TOKEN=e},t.fh=function(e){Tt.API_URL=e},t.fi=function(e){Tt.BUILDING_GEN_URL=Dt.resolveURL(e)},t.fj=function(e,t){Ot=e,kt=t},t.fk=function(e,t,i){e[4*t+0]=i[0],e[4*t+1]=i[1],e[4*t+2]=i[2],e[4*t+3]=i[3]},t.fl=function(e){Tt.DRACO_URL=Dt.resolveURL(e)},t.fm=function(e){Tt.MAX_PARALLEL_IMAGE_REQUESTS=e},t.fn=function(e){const t=Dt.resolveURL(e);Tt.MESHOPT_URL=t,Tt.MESHOPT_SIMD_URL=t},t.fo=function(e,t,i=!1){if(Gs===Hs.deferred||Gs===Hs.loading||Gs===Hs.loaded)throw new Error("setRTLTextPlugin cannot be called multiple times.");Ys=Dt.resolveURL(e),Gs=Hs.deferred,js=t,Js(),i||Ks()},t.fp=DA,t.fq=Ze,t.fr=hf,t.fs=fa,t.ft=ht,t.fu=O,t.fv=function(e){try{const t=self[e];return t.setItem("_mapbox_test_",1),t.removeItem("_mapbox_test_"),!0}catch(e){return!1}},t.fw=Lt,t.fx=Z,t.fy=xe,t.fz=M,t.g=Su,t.g0=W,t.h=zc,t.i=Ei,t.j=_r,t.k=fv,t.l=ca,t.m=class{constructor(e){this.entries={}
vendor: 4,529 bytes, line 1
1,this.scheduler=e}request(e,t,i,r){const n=this.entries[e]=this.entries[e]||{callbacks:[]};if(n.result){const[e,i]=n.result;return this.scheduler?this.scheduler.add(()=>{r(e,i)},t):r(e,i),()=>{}}return n.callbacks.push(r),n.cancel||(n.cancel=i((i,r)=>{n.result=[i,r];for(const e of n.callbacks)this.scheduler?this.scheduler.add(()=>{e(i,r)},t):e(i,r);setTimeout(()=>delete this.entries[e],3e3)})),()=>{n.result||(n.callbacks=n.callbacks.filter(e=>e!==r),n.callbacks.length||(n.cancel(),delete this.entries[e]))}}},t.n=[1,1,1],t.o=Lv,t.p=class{constructor(e){this.specification=e}possiblyEvaluate(e,t){return function([e,t]){const i=ht([1,e,t]);return{x:i.x,y:i.y,z:i.z}}(e.expression.evaluate(t))}interpolate(e,t,i){return{x:vi(e.x,t.x,i),y:vi(e.y,t.y,i),z:vi(e.z,t.z,i)}}},t.q=7,t.r=Yr,t.s=class{isDataAvailableAtPoint(e){const t=this._source();if(this.isUsingMockSource()||!t||e.y<0||e.y>1)return!1;const i=t.getSource().maxzoom,r=1<<i,n=Math.floor(e.x),o=Math.floor((e.x-n)*r),s=Math.floor(e.y*r),a=this.findDEMTileFor(new eA(i,n,i,o,s));return!(!a||!a.dem)}getAtPointOrZero(e,t=0){return this.getAtPoint(e,t)||0}getAtPoint(e,t,i=!0){if(this.isUsingMockSource())return null;null==t&&(t=null);const r=this._source();if(!r)return t;if(e.y<0||e.y>1)return t;const n=r.getSource().maxzoom,o=1<<n,s=Math.floor(e.x),a=e.x-s,l=new eA(n,s,n,Math.floor(a*o),Math.floor(e.y*o)),c=this.findDEMTileFor(l);if(!c||!c.dem)return t;const h=c.dem,u=1<<c.tileID.canonical.z,d=(a*u-c.tileID.canonical.x)*h.dim,f=(e.y*u-c.tileID.canonical.y)*h.dim,p=Math.floor(d),A=Math.floor(f);return(i?this.exaggeration():1)*vi(vi(h.get(p,A),h.get(p,A+1),f-A),vi(h.get(p+1,A),h.get(p+1,A+1),f-A),d-p)}static getAtTileOffset(e,t,i,r){const n=1<<e.canonical.z;return r?r.pointElevation(t):i?i.getAtPointOrZero(new zl(e.wrap+(e.canonical.x+t.x/Yr)/n,(e.canonical.y+t.y/Yr)/n)):0}static getAtTileOffsetFunc(e,t,i,r){return(n,o,s)=>{const a=this.getAtTileOffset(e,n,o,s),l=r.upVector(e.canonical,n.x,n.y);return R(l,l,a*r.upVectorScale(e.canonical,t,i).metersToTile),l}}getForTilePoints(e,t,i,r){if(this.isUsingMockSource())return!1;const n=fv.create(this,e,r);return!!n&&(t.forEach(e=>{e[2]=this.exaggeration()*n.getElevationAt(e[0],e[1],i,!0)}),!0)}getMinMaxForTile(e){if(this.isUsingMockSource())return null;const t=this.findDEMTileFor(e);if(!t||!t.dem)return null;const i=t.dem.tree,r=t.tileID,n=1<<e.canonical.z-r.canonical.z;let o=e.canonical.x/n-r.canonical.x,s=e.canonical.y/n-r.canonical.y,a=0;for(let l=0;l<e.canonical.z-r.canonical.z&&!i.leaves[a];l++){o*=2,s*=2;const e=2*Math.floor(s)+Math.floor(o);a=i.childOffsets[a]+e,o%=1,s%=1}return{min:this.exaggeration()*i.minimums[a],max:this.exaggeration()*i.maximums[a]}}getMinElevationBelowMSL(){throw new Error("Pure virtual method called.")}raycast(e,t,i){throw new Error("Pure virtual method called.")}pointCoordinate(e){throw new Error("Pure virtual method called.")}_source(){throw new Error("Pure virtual method called.")}isUsingMockSource(){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.")}getMinMaxForVisibleTiles(){const e=this.visibleDemTiles;if(0===e.length)return null;let t=!1,i=Number.MAX_VALUE,r=Number.MIN_VALUE;for(const n of e){const e=this.getMinMaxForTile(n.tileID);e&&(i=Math.min(i,e.min),r=Math.max(r,e.max),t=!0)}return t?{min:i,max:r}:null}},t.t=class{static parseFrom(e,t){const i=og.parse(e);if(!i)return[];let{vertices:r,features:n}=i;const o=1/Rl(t);n.sort((e,t)=>e.id-t.id),r.sort((e,t)=>e.id-t.id||e.idx-t.idx),r=r.filter((e,t,i)=>t===i.findIndex(t=>t.id===e.id&&t.idx===e.idx));const s=new Array;let a=0;const l=r.length;for(const c of n){if(c.constantHeight){s.push(new ag(c.id,c.bounds,c.constantHeight));continue}for(;a!==l&&r[a].id<c.id;)a++;if(a===l||r[a].id!==c.id)continue;const e=new Array,t=new Array,i=a;for(;a!==l&&r[a].id===c.id;){const n=r[a];if(e.push({position:n.position,height:n.height,extent:n.extent}),a!==i&&r[a-1].idx===n.idx-1){const e=a-i;t.push({a:e-1,b:e})}a++}s.push(new ag(c.id,c.bounds,void 0,e,t,o))}return s}},t.u=XA,t.v=fi,t.w=ea,t.x=di,t.y=gi,t.z=6}),r(["require","./shared"],function(e,t){function i(e){const t=e?e.url.toString():void 0;return t?performance.getEntriesByName(t):[]}function r(e,i){if(Object.hasOwn(e.layers,t.W))return t.t.parseFrom(e.layers[t.W],i)}function n({buckets:e,data:i,sourceLayerCoder:r,canonical:n,options:o}
vendor: 10,098 bytes, line 1
1){if(!o.elevationFeatures||0===o.elevationFeatures.length)return;const s=[];for(const l of Object.values(e))if(l instanceof t.J&&l.hdExt){const e=l.hdExt.getUnevaluatedPortalGraph();e&&s.push(e)}const a=t.u.evaluate(s);for(const l of Object.values(e))if(l instanceof t.J&&l.hdExt){const e=i.layers[r.decode(l.sourceLayerIndex)];l.hdExt.setEvaluatedPortalGraph(a,e,n,o.availableImages,o.brightness,l.worldview)}}function o(e){const i=[];for(let r=0;r<e.length;r++){const n=e.feature(r),o=n.properties.frc_mask;if(null==o)continue;const s=Number(o);if(!s)continue;const a=n.loadGeometry();if(a.length>0){let e=!1;for(const i of a[0])if(i.x<0||i.x>t.r||i.y<0||i.y>t.r){e=!0;break}if(e)continue}const l=1===a.length&&5===a[0].length&&a[0].some(e=>e.x<=0&&e.y<=0)&&a[0].some(e=>e.x>=t.r&&e.y<=0)&&a[0].some(e=>e.x>=t.r&&e.y>=t.r)&&a[0].some(e=>e.x<=0&&e.y>=t.r);i.push(new t.M(s,l?[]:a))}return i}function s(e,i,r,n,o){const s=t.cp(i);if(null===s)return!1;let a=r.x,l=r.y;const c=null!=o?o:n.z;if(n.z!==c){const e=1<<n.z-c,i=t.r/e;a=n.x%e*i+r.x/e,l=n.y%e*i+r.y/e}for(const h of e){if(!(h.hasGeometry()&&h.frcMask&1<<s))continue;const e=h.rings.map(e=>e.map(e=>[e.x,e.y]));if(t.eJ([a,l],e))return!0}return!1}function a(e,i,r,n){const o=i.indoorState.activeFloorsVisible;if(!i.sourceLayers)return o?i.indoorState.activeFloors:void 0;const s=function(e,i){if(!e)return t.f_("No source layers defined in indoor specification"),i;if(0===e.size)return i;const r=e.difference(i);for(const n of r)t.f_(`Missing source layer required in indoor specification: ${n}`);return i.intersection(i)}(i.sourceLayers,new Set(Object.keys(e.layers))),a=i.indoorState,d=function(e,i,r,n,o){const s={};for(const a of i){const i=e.layers[a];if(i)for(let e=0;e<i.length;e++){const t=i.feature(e);if(f(t)){const{id:e,center:i}=h(t);l(s,e,i);continue}if(p(t)){const e=u(t,o);c(s,e.buildings,e.id,e)}}else t.f_(`indoor source layer not found: ${a}`)}return{buildings:s,activeFloors:t.a5.calculate(s,n,r)}}(e,s,a.activeFloors,a.selectedFloorId,n);return r.send("setIndoorData",d),o?d.activeFloors:void 0}function l(e,t,i){e[t]?i&&(e[t].center=i):e[t]={floorIds:new Set,center:i||[0,0],floors:{}}}function c(e,t,i,r){for(const n of t)l(e,n),e[n].floors[i]=r,e[n].floorIds.add(i)}function h(e){return{id:e.properties.id.toString(),center:[e.properties.center_lon||0,e.properties.center_lat||0]}}function u(e,i){const r=e.properties.id.toString(),n=!!e.properties.is_default&&e.properties.is_default,o=e.properties.connected_floor_ids?new Set(e.properties.connected_floor_ids.toString().split(";")):new Set,s=e.properties.conflicted_floor_ids?new Set(e.properties.conflicted_floor_ids.toString().split(";")):new Set,a=e.properties.structure_ids?new Set(e.properties.structure_ids.toString().split(";")):new Set,l=e.properties.name.toString(),c=e.properties.z_index,h=function(e,i){const r=e.loadGeometry();if(!r||0===r.length)return;const n=r.map(r=>r.map(r=>t.cV(r,i,e.extent)));return 0===n.length?void 0:{type:"Polygon",coordinates:[n[0]]}}(e,i);return{id:r,isDefault:n,connections:o,conflicts:s,buildings:a,name:l,zIndex:c,geometry:h}}function d(e,t){return t.every(t=>e.properties&&null!=e.properties[t])}function f(e){return d(e,["type","id","name"])&&"structure"===e.properties.type}function p(e){return d(e,["type","id","name","z_index"])&&"floor"===e.properties.type}function A(e,i){e instanceof t.J?t.eg(e,i):e instanceof t.aa?t.eh(e,i):e instanceof t.g?t.ef(e):e instanceof t.aX&&t.ei(e)}function g(e){if("number"==typeof e||"boolean"==typeof e||"string"==typeof e||null==e)return JSON.stringify(e);if(Array.isArray(e)){let t="[";for(const i of e)t+=`${g(i)},`;return`${t}]`}let t="{";for(const i of Object.keys(e).sort())t+=`${i}:${g(e[i])},`;return`${t}}`}function m(e){let i="";for(const r of t.eY)i+=`/${g(e[r])}`;return i}function _(e,t){return function e(i){return"string"==typeof i&&i===t||(Array.isArray(i)?i.some(e):!(!i||"object"!=typeof i)&&Object.values(i).some(e))}(e)}class y{constructor(e){this.keyCache=Object.create(null),this._layers=Object.create(null),this._layerConfigs=Object.create(null),e&&this.replace(e)}replace(e,t){this._layerConfigs=Object.create(null),this._layers=Object.create(null),this.update(e,[],t)}update(e,i,r){this._options=r;for(const o of e)this._layerConfigs[o.id]=o,(this._layers[o.id]=t.c0(o,this.scope,null,this._options)).compileFilter(r),this.keyCache[o.id]&&delete this.keyCache[o.id];for(const t of i)delete this.keyCache[t],delete this._layerConfigs[t],delete this._layers[t];this.familiesBySource=Object.create(null);const n=function(e,t){const i=Object.create(null);for(let n=0;n<e.length;n++){const r=e[n];let o=t&&t[r.id];o||("symbol"===r.type?o=r.id:(o=m(r),"line"===r.type&&r.paint&&(_(r.paint["line-width"],"line-progress")&&(o+=`/${g(r.paint["line-width"])}`),_(r.paint["line-emissive-strength"],"line-progress")&&(o+=`/${g(r.paint["line-emissive-strength"])}`)))),t&&(t[r.id]=o);let s=i[o];s||(s=i[o]=[]),s.push(r)}const r=[];for(const n in i)r.push(i[n]);return r}(Object.values(this._layerConfigs),this.keyCache);for(const t of n){const e=t.map(e=>this._layers[e.id]),i=e[0];if("none"===i.visibility)continue;const r=i.source||"";let n=this.familiesBySource[r];n||(n=this.familiesBySource[r]=Object.create(null));const o=i.sourceLayer||"_geojsonTileLayer";let s=n[o];s||(s=n[o]=[]),s.push(e)}}}const x=1*t.aI;class v{constructor(e){const i={},r=[];for(const t in e){const n=e[t],o=i[t]={};for(const e in n.glyphs){const t=n.glyphs[+e];if(!t||0===t.bitmap.width||0===t.bitmap.height)continue;const i=t.metrics.localGlyph?x:1,s={x:0,y:0,w:t.bitmap.width+2*i,h:t.bitmap.height+2*i};r.push(s),o[e]=s}}const{w:n,h:o}=t.eT(r),s=new t.b({width:n||1,height:o||1});for(const a in e){const r=e[a];for(const e in r.glyphs){const n=r.glyphs[+e];if(!n||0===n.bitmap.width||0===n.bitmap.height)continue;const o=i[a][e],l=n.metrics.localGlyph?x:1;t.b.copy(n.bitmap,s,{x:0,y:0},{x:o.x+l,y:o.y+l},n.bitmap)}}this.image=s,this.positions=i}}function w(e){for(const t of e){if(null!=t.hdExt)return!0;if(t.requiresHDRuntime)return!0}return!1}function E(e){for(const t of e)if(t.requiresStandardRuntime)return!0;return!1}t.eZ(v,"GlyphAtlas");class b{constructor(e){this.tileID=new t.ap(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.lut=e.lut,this.canonical=e.tileID.canonical,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.scope=e.scope,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.showElevationIdDebug=e.showElevationIdDebug,this.collectResourceTiming=!!e.request&&e.request.collectResourceTiming,this.promoteId=e.promoteId,this.renderSourceType=e.renderSourceType,this.frcCoverage=e.frcCoverage||null,this.deferRoadStructure=!1,this.tileTransform=t.fI(e.tileID.canonical,e.projection),this.projection=e.projection,this.worldview=e.worldview,this.localizableLayerIds=e.localizableLayerIds,this.brightness=e.brightness,this.extraShadowCaster=!!e.extraShadowCaster,this.tessellationStep=e.tessellationStep,this.scaleFactor=e.scaleFactor,this.worldview=e.worldview,this.indoor=e.indoor}isLayerActiveForTile(e){return!(this.renderSourceType===t.aC.Symbol&&"symbol"!==e.type||this.renderSourceType===t.aC.FillExtrusion&&"fill-extrusion"!==e.type||this.renderSourceType===t.aC.Other&&("symbol"===e.type||"fill-extrusion"===e.type)||e.minzoom&&this.zoom<Math.floor(e.minzoom)||e.maxzoom&&this.zoom>=e.maxzoom||"none"===e.visibility)}parse(e,t,i,r,n,o){this._parseAfterHD(e,t,i,r,n,o)}_parseAfterHD(e,i,l,c,h,u){let d;if(this.status="parsing",this.data=e,this.renderSourceType===t.aC.HdRoadCoverage){const i=e.layers[t.X];d=i&&o?o(i):[]}this.collisionBoxArray=new t.h;const f=new t.o(Object.keys(e.layers).sort()),p=new t.I(this.tileID,this.promoteId);p.bucketLayerIDs=[];const g={},m=new t.a9(256,256),_={featureIndex:p,iconDependencies:new Map,patternDependencies:new Map,glyphDependencies:{},lineAtlas:m,availableImages:l,brightness:this.brightness,scaleFactor:this.scaleFactor,showElevationIdDebug:this.showElevationIdDebug,elevationFeatures:void 0,activeFloors:void 0};this.indoor&&a&&(_.activeFloors=a(e,this.indoor,h,this.canonical));const y=[],x=i.familiesBySource[this.source];if(this.deferRoadStructure=!1,this.renderSourceType!==t.aC.HdRoadCoverage&&null!=this.frcCoverage&&!this.frcCoverage.resolved&&null===this.frcCoverage.frcMask)for(const r in x)if(t.ed&&t.ed(this.frcCoverage.sourceLayers,this.source,r)){this.deferRoadStructure=!0;break}for(const n in x){const i=e.layers[n];if(!i)continue;let o=!1,s=!1,a=!1,h=!1;for(const e of x[n])"symbol"===e[0].type?o=!0:"fill-extrusion"===e[0].type?s=!0:a=!0,e[0].is3D()&&"model"!==e[0].type&&(h=!0);if(this.extraShadowCaster&&!h)continue;if(this.renderSourceType===t.aC.Symbol&&!o)continue;if(this.renderSourceType===t.aC.FillExtrusion&&!s)continue;if((this.renderSourceType===t.aC.Other||this.renderSourceType===t.aC.HdRoadCoverage)&&!a)continue;const u=null!=this.frcCoverage&&!!t.ed&&t.ed(this.frcCoverage.sourceLayers,this.source,n);if(this.deferRoadStructure&&u)continue;1===i.version&&t.f_(`Vector tile source "${this.source}" layer "${n}" does not use vector tile spec v2 and therefore may have some rendering errors.`);const d=f.encode(n),m=[],v=this.localizableLayerIds&&this.localizableLayerIds.has(n);let w=!1;for(let e=0,r=0;e<i.length;e++){const o=i.feature(e),s=p.getId(o,n),a=o.properties?o.properties.worldview:null;if(v&&this.worldview&&"string"==typeof a)if("all"===a)o.properties.$localized=!0;else{if(!a.split(",").includes(this.worldview))continue;o.properties.$localized=!0,o.properties.worldview=this.worldview}!w&&o.properties&&Object.hasOwn(o.properties,t.ar)&&(w=!0),u&&this.frcCoverage&&this.frcCoverage.frcMask&&o.properties&&t.dz&&t.dz(o.properties,this.frcCoverage.frcMask)||(m.push({feature:o,id:s,index:r,sourceLayerIndex:d}),r++)}w&&!_.elevationFeatures&&r&&(_.elevationFeatures=r(e,this.canonical));for(const e of x[n]){const i=e[0];if(this.extraShadowCaster&&(!i.is3D()||"model"===i.type))continue;
1if(this.renderSourceType===t.aC.Symbol&&"symbol"!==i.type)continue;if(this.renderSourceType===t.aC.FillExtrusion&&"fill-extrusion"!==i.type)continue;if(!(this.renderSourceType!==t.aC.Other&&this.renderSourceType!==t.aC.HdRoadCoverage||"symbol"!==i.type&&"fill-extrusion"!==i.type))continue;if(!this.isLayerActiveForTile(i))continue;I(e,this.zoom,_.brightness,l,this.worldview,_.activeFloors);const r=p.bucketLayerIDs.length;p.bucketLayerIDs.push(e.map(e=>t.ea(e.id,e.scope)));const o=()=>{const t=g[i.id]=i.createBucket({index:r,layers:e,zoom:this.zoom,lut:this.lut,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:d,sourceLayerName:n,sourceID:this.source,projection:this.projection.spec,tessellationStep:this.tessellationStep,styleDefinedModelURLs:c,worldview:this.worldview,localizable:v,availableImages:l,maxUniformBufferBindings:this.maxUniformBufferBindings,maxUniformBlockSizeDwords:this.maxUniformBlockSizeDwords,disableSymbolUBO:this.disableSymbolUBO});A&&A(t,this.frcCoverage?this.frcCoverage.sourceLayers:null),t.populate(m,_,this.tileID.canonical,this.tileTransform)};i.mayUse("HD")||i.mayUse("Standard")?y.push(i.prepare().then(()=>o())):o()}}const b=()=>{m.trim();const i=!(!_.elevationFeatures||!_.elevationFeatures.some(e=>e.heightRange.min<0));let r,o,a,c,A,y,x;const b={type:"maybePrepare",renderSourceType:this.renderSourceType,zoom:this.zoom},C=()=>{if(r)return this.status="done",u(r);if(this.extraShadowCaster){this.status="done";const e=Object.values(g).filter(e=>!e.isEmpty());u(null,{buckets:e,containsHdExt:w(e),containsStandardExt:E(e),featureIndex:p,collisionBoxArray:null,hasTunnelGeometry:i,glyphAtlasImage:null,lineAtlas:null,imageAtlas:null,brightness:_.brightness,glyphMap:null,iconMap:null,glyphPositions:null})}else if(o&&a&&c&&x){const e=void 0,i=new v(o),r=new Map;for(const[o,s]of a.entries()){const{imagePosition:e}=t.cR(o,s,t.Z);r.set(o,e)}const n={};for(const c in g){const e=g[c];e instanceof t.aX&&(I(e.layers,this.zoom,_.brightness,l,this.worldview,_.activeFloors),n[c]=t.eD(e,o,i.positions,a,r,this.tileID.canonical,this.tileZoom,this.scaleFactor,this.pixelRatio,A,this.worldview,l,this.frcCoverage?this.frcCoverage.frcMask:null,this.frcCoverage?this.frcCoverage.polygons:null,this.frcCoverage?this.frcCoverage.tileZoom:null,t.dz||null,s||null))}A.size||y.size?this.rasterizeTask=h.send("rasterizeImages",{scope:this.scope,iconTasks:A,patternTasks:y},(t,r)=>{if(!t)for(const[e,i]of r.entries())a.has(e)&&a.set(e,Object.assign(a.get(e),{data:i})),c.has(e)&&c.set(e,Object.assign(c.get(e),{data:i}));B(n,i,e,x)}):B(n,i,e,x)}},B=(e,r,n,o)=>{const s=a.size>0||c.size>0,f=Object.keys(e).length>0;if(!s&&!f){this.status="done";const e=Object.values(g).filter(e=>!e.isEmpty());return void u(null,{buckets:e,containsHdExt:w(e),containsStandardExt:E(e),featureIndex:p,collisionBoxArray:this.collisionBoxArray,hasTunnelGeometry:i,glyphAtlasImage:r.image,lineAtlas:m,imageAtlas:null,brightness:_.brightness,hasDeferredRoadStructure:this.deferRoadStructure,frcCoveragePolygons:d})}const A=(n,o)=>{for(const i in g){const r=g[i];if(i in e)t.eS(r,e[i],this.showCollisionBoxes,l,this.tileID.canonical,this.tileZoom,this.projection,this.brightness,a,o);else if(r.hasPattern&&(r instanceof t.aa||r instanceof t.J||r instanceof t.K)){I(r.layers,this.zoom,_.brightness,l,this.worldview,_.activeFloors);const e=Object.fromEntries(o.patternPositions);r.addFeatures(_,this.tileID.canonical,e,l,this.tileTransform,this.brightness)}}this.status="done";const s=Object.values(g).filter(e=>!e.isEmpty());u(null,{buckets:s,containsHdExt:w(s),containsStandardExt:E(s),featureIndex:p,collisionBoxArray:this.collisionBoxArray,hasTunnelGeometry:i,glyphAtlasImage:r.image,lineAtlas:m,imageAtlas:n,brightness:_.brightness,hasDeferredRoadStructure:this.deferRoadStructure,frcCoveragePolygons:d})};if(s){const e=new Map,i=t.fr(a,e),r=t.fr(c,e),n=new t.c(i,r,o,this.lut,e);h.send("checkAtlasCache",{descriptor:n,scope:this.scope},(e,i)=>{let r,n;if(e&&t.f_(`[Worker] Error checking atlas cache: ${e.message}`),i)r=new t.a0(i.sourceHash),n=i;else{const e=new t._(a,c,this.lut,o);r=e,n=e}A(r,n)})}else A(null,{iconPositions:new Map,patternPositions:new Map})};if(!this.extraShadowCaster){const e=t.eb(_.glyphDependencies,e=>Object.keys(e).map(Number));Object.keys(e).length?h.send("getGlyphs",{uid:this.uid,stacks:e},(e,t)=>{r||(r=e,o=t,C())},void 0,!1,b):o={},x=new Map;const i=Array.from(_.iconDependencies.keys()).map(e=>t.a1.parse(e)),n=Array.from(_.patternDependencies.keys()).map(e=>t.a1.parse(e));i.length||n.length?h.send("getImages",{icons:i,patterns:n,source:this.source,scope:this.scope,tileID:this.tileID},(e,t)=>{if(!r){r=e,a=new Map,c=new Map,A=this.updateImageMapAndGetImageTaskQueue(a,t.images,_.iconDependencies),y=this.updateImageMapAndGetImageTaskQueue(c,t.images,_.patternDependencies);for(const[e,i]of t.versions.entries())x.set(e,i);C()}},void 0,!1,b):(a=new Map,c=new Map,A=new Map,y=new Map)}n&&n({buckets:g,data:e,sourceLayerCoder:f,canonical:this.tileID.canonical,options:_}),C()};y.length>0?Promise.allSettled(y).then(b).catch(u):b()}updateParameters(e){this.scaleFactor=e.scaleFactor,this.showCollisionBoxes=e.showCollisionBoxes,this.showElevationIdDebug=e.showElevationIdDebug,this.projection=e.projection,this.brightness=e.brightness,this.tileTransform=t.fI(e.tileID.canonical,e.projection),this.extraShadowCaster=e.extraShadowCaster,this.lut=e.lut,this.worldview=e.worldview,this.indoor=e.indoor,this.frcCoverage=e.frcCoverage||null}updateImageMapAndGetImageTaskQueue(e,t,i){const r=new Map;for(const n of t.keys()){const o=i.get(n)||[];for(const i of o){const n=i.toString(),o=t.get(i.id.toString());o.usvg?r.has(n)||(r.set(n,i),e.set(n,Object.assign({},o))):e.set(n,o)}}return r}cancelRasterize(){this.rasterizeTask&&this.rasterizeTask.cancel()}}function I(e,i,r,n,o,s){const a=new t.w(i,{brightness:r,worldview:o,activeFloors:s});for(const t of e)t.recalculate(a,n)}class C extends t.y{constructor({actor:e,layerIndex:i,availableImages:r,availableModels:n,isSpriteLoaded:o,tileProvider:s,brightness:a,maxUniformBufferBindings:l,maxUniformBlockSizeDwords:c,disableSymbolUBO:h}){super(),this.actor=e,this.layerIndex=i,this.availableImages=r,this.availableModels=n,this.loadVectorData=t.e9,this.tileProvider=s,this.loading={},this.loaded={},this.deduped=new t.m(e.scheduler),this.isSpriteLoaded=o,this.scheduler
1=e.scheduler,this.brightness=a,this.maxUniformBufferBindings=l,this.maxUniformBlockSizeDwords=c,this.disableSymbolUBO=h}loadTileData(e,t){if(!this.tileProvider)return this.loadVectorData(e,t);const i=new AbortController;return this.loadTileWithProvider(this.tileProvider,e,i,t),()=>i.abort()}async loadTileWithProvider(e,t,i,r){const{z:n,x:o,y:s}=t.tileID.canonical;try{const a=await e.loadTile({z:n,x:o,y:s},{request:t.request,signal:i.signal});if(i.signal.aborted)return;if(null==a){const e=new Error("Tile not found");return e.status=404,r(e)}if(null==a.data)return r(null,null);if(a.data instanceof ImageBitmap)return r(new Error("Vector tiles require ArrayBuffer data"));const l=new Map;a.expires&&l.set("expires",a.expires),a.cacheControl&&l.set("cache-control",a.cacheControl),r(null,{rawData:a.data,responseHeaders:l})}catch(e){if(i.signal.aborted)return;r(e instanceof Error?e:new Error(String(e)))}}loadTile(e,r){const n=e.uid,o=e&&e.request,s=o&&o.collectResourceTiming,a=this.loading[n]=new b(e);a.maxUniformBufferBindings=this.maxUniformBufferBindings,a.maxUniformBlockSizeDwords=this.maxUniformBlockSizeDwords,a.disableSymbolUBO=this.disableSymbolUBO,a.abort=this.loadTileData(e,(l,c)=>{const h=!this.loading[n];if(delete this.loading[n],a.cancelRasterize(),h||l||!c)return a.status="done",h||(this.loaded[n]=a),r(l);const u=c.rawData,d={},f=t.cO(c.responseHeaders);f&&f.expires&&(d.expires=f.expires),f&&f.cacheControl&&(d.cacheControl=f.cacheControl),a.vectorTile=c.vectorTile||new t.be(new t.as(u));const p=()=>{a.parse(a.vectorTile,this.layerIndex,this.availableImages,this.availableModels,this.actor,(e,t)=>{if(e||!t)return r(e);const n={};if(s){const e=i(o);e.length>0&&(n.resourceTiming=JSON.parse(JSON.stringify(e)))}r(null,Object.assign({rawTileData:u.slice(0),responseHeaders:c.responseHeaders},t,d,n))})};this.isSpriteLoaded?p():this.once("isSpriteLoaded",()=>{this.scheduler?this.scheduler.add(p,{type:"parseTile",renderSourceType:e.renderSourceType,zoom:e.tileZoom}):p()}),this.loaded=this.loaded||{},this.loaded[n]=a})}reloadTile(e,t){const i=this.loaded,r=e.uid;if(i&&i[r]){const n=i[r];n.updateParameters(e);const o=(e,i)=>{const r=n.reloadCallback;r&&(delete n.reloadCallback,n.parse(n.vectorTile,this.layerIndex,this.availableImages,this.availableModels,this.actor,r)),t(e,i)};"parsing"===n.status?n.reloadCallback=o:"done"===n.status&&(n.vectorTile?n.parse(n.vectorTile,this.layerIndex,this.availableImages,this.availableModels,this.actor,o):o())}else t(null,void 0)}abortTile(e,t){const i=e.uid,r=this.loading[i];r&&(r.abort&&r.abort(),delete this.loading[i]),t()}removeTile(e,t){const i=this.loaded,r=e.uid;i&&i[r]&&delete i[r],t()}}class B{constructor(e){this.tileProvider=e.tileProvider,this.loading={}}loadTile(e,i){const r=e.uid;if(this.tileProvider){const t=new AbortController;return this.loading[r]={cancel:()=>t.abort()},void this.loadTileWithProvider(this.tileProvider,r,e,t,i)}const{cancel:n}=t.cG(e.request,(n,o,s)=>{const a=!this.loading[r];if(delete this.loading[r],a||n||!o)return i(n);this.decodeTile(r,o,e.encoding).then(e=>{const{expires:r,cacheControl:n}=t.cO(s);i(null,Object.assign(e,{expires:r,cacheControl:n}))}).catch(e=>i(e))});this.loading[r]={cancel:n}}async decodeTile(e,i,r){const n=i instanceof ImageBitmap?i:await createImageBitmap(new Blob([new Uint8Array(i)],{type:"image/png"})),o=1-(n.width-t.eU(n.width))/2,s=o<1,a=this.getImageData(n,o);return n.close(),{dem:new t.D(e,a,r,s),borderReady:s}}async loadTileWithProvider(e,t,i,r,n){const{z:o,x:s,y:a}=i.tileID.canonical;try{const l=await e.loadTile({z:o,x:s,y:a},{request:i.request,signal:r.signal});if(r.signal.aborted)return n(null,null);if(null==l){const e=new Error("Tile not found");return e.status=404,n(e)}if(null==l.data)return n(null,null);const c=await this.decodeTile(t,l.data,i.encoding);if(r.signal.aborted)return n(null,null);n(null,Object.assign(c,{expires:l.expires,cacheControl:l.cacheControl}))}catch(e){if(r.signal.aborted)return n(null,null);if(e instanceof DOMException&&"AbortError"===e.name)return n(null,null);n(e instanceof Error?e:new Error(String(e)))}finally{delete this.loading[t]}}reloadTile(e,t){t(null,null)}abortTile(e,t){const i=e.uid,r=this.loading[i];r&&(r.cancel(),delete this.loading[i]),t()}removeTile(e,t){t()}getImageData(e,t){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d",{willReadFrequently:!0})),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);const i=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),i}}t.af.setPbf(t.as);class D{constructor(e){this._mrt=new t.af(e.partial?30:1/0),this._isHeaderLoaded=!1,this.uid=e.uid,this.tileID=e.tileID,this.source=e.source}
1parse(e,i){const r=this._mrt;this.status="parsing",this._entireBuffer=e;try{r.parseHeader(e),this._isHeaderLoaded=!0;const n=[];for(const i in r.layers){const o=r.getLayer(i),s=o.getDataRange(o.getBandList()),a=r.createDecodingTask(s),l=e.slice(s.firstByte,s.lastByte+1),c=t.af.performDecoding(l,a).then(e=>a.complete(null,e)).catch(e=>a.complete(e,null));n.push(c)}Promise.allSettled(n).then(()=>i(null,r)).catch(e=>i(e))}catch(e){i(e)}}}class T{constructor({actor:e}){this.actor=e,this.loading={},this.loaded={}}loadTile(e,i){const r=e.uid,n=e.request,o=this.loading[r]=new D(e),{cancel:s}=t.cG(n,(e,t,n)=>{const s=!this.loading[r];if(delete this.loading[r],s||e||!t)return o.status="done",s||(this.loaded[r]=o),i(e);o.parse(t,(e,t)=>{if(e||!t)return i(e);i(null,t,n)}),this.loaded[r]=o});o.abort=s}reloadTile(e,t){t(null,void 0)}abortTile(e,t){const i=e.uid,r=this.loading[i];r&&(r.abort&&r.abort(),delete this.loading[i]),t()}removeTile(e,t){const i=e.uid;this.loaded[i]&&delete this.loaded[i],t()}decodeRasterArray(e,i){t.af.performDecoding(e.buffer,e.task).then(e=>i(null,e)).catch(e=>i(e))}}const M=t.bf.prototype.toGeoJSON;class Q{constructor(e){this._feature=e,this.extent=t.r,this.type=e.type,this.properties=e.tags,"id"in e&&!isNaN(e.id)&&(this.id=parseInt(e.id,10))}loadGeometry(){if(1===this._feature.type){const e=[];for(const i of this._feature.geometry)e.push([new t.au(i[0],i[1])]);return e}{const e=[];for(const i of this._feature.geometry){const r=[];for(const e of i)r.push(new t.au(e[0],e[1]));e.push(r)}return e}}toGeoJSON(e,t,i){return M.call(this,e,t,i)}}class S{constructor(e,i){this.name=e,this.extent=t.r,this.length=i.length,this._jsonFeatures=i}feature(e){return new Q(this._jsonFeatures[e])}}class P{constructor(e){this.layers={},this.extent=t.r;for(const t of Object.keys(e))this.layers[t]=new S(t,e[t])}}const R=64/4096;class z{constructor(){this.features=new Map}clear(){this.features.clear()}load(e=[],t){for(const i of e){const e=i.id;if(null==e)continue;let r=this.features.get(e);r&&this.updateCache(r,t),i.geometry?(r=F(i),this.updateCache(r,t),this.features.set(e,r)):this.features.delete(e),this.updateCache(r,t)}}updateCache(e,t){for(const{canonical:i,uid:r}of Object.values(t)){const{z:n,x:o,y:s}=i;L(e,Math.pow(2,n),o,s)&&delete t[r]}}getTile(e,t,i){const r=Math.pow(2,e),n=[];for(const o of this.features.values())L(o,r,t,i)&&n.push(U(o,r,t,i));return{features:n}}getFeatures(){return[...this.features.values()]}}function L({minX:e,minY:t,maxX:i,maxY:r},n,o,s){return e<(o+1+R)/n&&t<(s+1+R)/n&&i>(o-R)/n&&r>(s-R)/n}function F(e){const{id:t,geometry:i,properties:r}=e;if(!i)return;if("GeometryCollection"===i.type)throw new Error("GeometryCollection not supported in dynamic mode.");const{type:n,coordinates:o}=i,s={id:t,type:1,geometry:[],tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0},a=s.geometry;if("Point"===n)O(o,a,s);else if("MultiPoint"===n)for(const l of o)O(l,a,s);else if("LineString"===n)s.type=2,k(o,a,s);else if("MultiLineString"===n)s.type=2,N(o,a,s);else if("Polygon"===n)s.type=3,N(o,a,s,!0);else{if("MultiPolygon"!==n)throw new Error("Input data is not a valid GeoJSON object.");s.type=3;for(const e of o)N(e,a,s,!0)}return s}function O([e,i],r,n){const o=t.ek(e);let s=t.el(i);s=s<0?0:s>1?1:s,r.push(o,s),n.minX=Math.min(n.minX,o),n.minY=Math.min(n.minY,s),n.maxX=Math.max(n.maxX,o),n.maxY=Math.max(n.maxY,s)}function k(e,t,i,r=!1,n=!1){const o=[];for(const s of e)O(s,o,i);t.push(o),r&&function(e,t){let i=0;for(let r=0,n=e.length,o=n-2;r<n;o=r,r+=2)i+=(e[r]-e[o])*(e[r+1]+e[o+1]);if(i>0===t)for(let r=0,n=e.length;r<n/2;r+=2){const t=e[r],i=e[r+1];e[r]=e[n-2-r],e[r+1]=e[n-1-r],e[n-2-r]=t,e[n-1-r]=i}}(o,n)}function N(e,t,i,r=!1){for(let n=0;n<e.length;n++)k(e[n],t,i,r,0===n)}function U(e,i,r,n){const{id:o,type:s,geometry:a,tags:l}=e,c=[];if(1===s)!function(e,i,r,n,o){for(let s=0;s<e.length;s+=2){const a=Math.round(t.r*(e[s+0]*i-r)),l=Math.round(t.r*(e[s+1]*i-n));o.push([a,l])}}(a,i,r,n,c);else if(2===s)for(const t of a)V(t,i,r,n,c);else if(3===s)for(const t of a)H(t,i,r,n,c);return{id:o,type:s,geometry:c,tags:l}}function V(e,i,r,n,o){const s=-128,a=t.r+128;let l;for(let c=0;c<e.length-2;c+=2){let h=Math.round(t.r*(e[c+0]*i-r)),u=Math.round(t.r*(e[c+1]*i-n)),d=Math.round(t.r*(e[c+2]*i-r)),f=Math.round(t.r*(e[c+3]*i-n));const p=d-h,A=f-u;h<s&&d<s||(h<s?(u+=Math.round(A*((s-h)/p)),h=s):d<s&&(f=u+Math.round(A*((s-h)/p)),d=s),u<s&&f<s||(u<s?(h+=Math.round(p*((s-u)/A)),u=s):f<s&&(d=h+Math.round(p*((s-u)/A)),f=s),h>=a&&d>=a||(h>
1=a?(u+=Math.round(A*((a-h)/p)),h=a):d>=a&&(f=u+Math.round(A*((a-h)/p)),d=a),u>=a&&f>=a||(u>=a?(h+=Math.round(p*((a-u)/A)),u=a):f>=a&&(d=h+Math.round(p*((a-u)/A)),f=a),l&&h===l.at(-1)[0]&&u===l.at(-1)[1]||(l=[[h,u]],o.push(l)),l.push([d,f])))))}}function H(e,i,r,n,o){const s=(r-R)/i,a=(n-R)/i,l=(r+1+R)/i,c=(n+1+R)/i;function h(e,t){let i=0;return e<s?i|=1:e>l&&(i|=2),t<a?i|=4:t>c&&(i|=8),i}let u=[];for(let t=1;t<=8;t*=2){let i=e[e.length-2],r=e.at(-1),n=!(h(i,r)&t);for(let o=0;o<e.length;o+=2){const d=e[o],f=e[o+1],p=!(h(d,f)&t);p!==n&&(8&t?u.push(i+(d-i)*(c-r)/(f-r),c):4&t?u.push(i+(d-i)*(a-r)/(f-r),a):2&t?u.push(l,r+(f-r)*(l-i)/(d-i)):1&t&&u.push(s,r+(f-r)*(s-i)/(d-i))),p&&u.push(d,f),i=d,r=f,n=p}if(!(e=u).length||8===t)break;u=[]}const d=[];for(let f=0;f<u.length;f+=2)d.push([Math.round(t.r*(u[f]*i-r)),Math.round(t.r*(u[f+1]*i-n))]);d.length&&o.push(d)}function j({name:e,features:i},r){r.writeStringField(1,e),r.writeVarintField(5,t.r);const n=new Map,o=new Map,s={keys:n,values:o,feature:null};for(const t of i)s.feature=t,r.writeMessage(2,G,s);for(const t of n.keys())r.writeStringField(3,t);for(const t of o.keys())r.writeMessage(4,q,t)}function G(e,t){const i=e.feature;void 0!==i.id&&Number.isSafeInteger(+i.id)&&t.writeVarintField(1,+i.id),i.tags&&t.writeMessage(2,Y,e),t.writeVarintField(3,i.type),t.writeMessage(4,Z,i)}function Y({keys:e,values:t,feature:i},r){for(const n of Object.keys(i.tags)){let o=i.tags[n];if(null===o)continue;let s=e.get(n);void 0===s&&(s=e.size,e.set(n,s)),r.writeVarint(s);const a=typeof o;"string"!==a&&"boolean"!==a&&"number"!==a&&(o=JSON.stringify(o));let l=t.get(o);void 0===l&&(l=t.size,t.set(o,l)),r.writeVarint(l)}}function W(e,t){return(t<<3)+(7&e)}function J(e){return e<<1^e>>31}function Z(e,t){const{geometry:i,type:r}=e;let n=0,o=0;if(1===r){t.writeVarint(W(1,i.length));for(const e of i){const i=e[0]-n,r=e[1]-o;t.writeVarint(J(i)),t.writeVarint(J(r)),n+=i,o+=r}}else for(const s of i){if(0===s.length)continue;t.writeVarint(W(1,1));const e=s.length-(3===r?1:0);for(let i=0;i<e;i++){1===i&&t.writeVarint(W(2,e-1));const r=s[i][0]-n,a=s[i][1]-o;t.writeVarint(J(r)),t.writeVarint(J(a)),n+=r,o+=a}3===r&&t.writeVarint(W(7,1))}}function q(e,t){const i=typeof e;"string"===i?t.writeStringField(1,e):"boolean"===i?t.writeBooleanField(7,e):"number"===i&&(e%1!=0?t.writeDoubleField(3,e):e<0?t.writeSVarintField(6,e):t.writeVarintField(5,e))}const K={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},X=Math.fround||($=new Float32Array(1),e=>($[0]=+e,$[0]));var $;class ee{constructor(e){this.options=Object.assign(Object.create(K),e),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){const{log:t,minZoom:i,maxZoom:r}=this.options;t&&console.time("total time");const n=`prepare ${e.length} points`;t&&console.time(n),this.points=e;const o=[];for(let a=0;a<e.length;a++){const t=e[a];if(!t.geometry)continue;const[i,r]=t.geometry.coordinates,n=X(re(i)),s=X(ne(r));o.push(n,s,1/0,a,-1,1),this.options.reduce&&o.push(0)}let s=this.trees[r+1]=this._createTree(o);t&&console.timeEnd(n);for(let a=r;a>=i;a--){const e=+Date.now();s=this.trees[a]=this._createTree(this._cluster(s,a)),t&&console.log("z%d: %d clusters in %dms",a,s.numItems,+Date.now()-e)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let i=((e[0]+180)%360+360)%360-180;const r=Math.max(-90,Math.min(90,e[1]));let n=180===e[2]?180:((e[2]+180)%360+360)%360-180;const o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)i=-180,n=180;else if(i>n){const e=this.getClusters([i,r,180,o],t),s=this.getClusters([-180,r,n,o],t);return e.concat(s)}const s=this.trees[this._limitZoom(t)],a=s.range(re(i),ne(o),re(n),ne(r)),l=s.data,c=[];for(const h of a){const e=this.stride*h;c.push(l[e+5]>1?te(l,e,this.clusterProps):this.points[l[e+3]])}return c}getChildren(e){const t=this._getOriginId(e),i=this._getOriginZoom(e),r="No cluster with the specified id.",n=this.trees[i];if(!n)throw new Error(r);const o=n.data;if(t*this.stride>=o.length)throw new Error(r);const s=this.options.radius/(this.options.extent*Math.pow(2,i-1)),a=n.within(o[t*this.stride],o[t*this.stride+1],s),l=[];for(const c of a){const t=c*this.stride;o[t+4]===e&&l.push(o[t+5]>1?te(o,t,this.clusterProps):this.points[o[t+3]])}if(0===l.length)throw new Error(r);return l}getLeaves(e,t,i){const r=[];return this._appendLeaves(r,e,t=t||10,i=i||0,0),r}getTile(e,t,i){const r=this.trees[this._limitZoom(e)],n=Math.pow(2,e),{extent:o,radius:s}=this.options,a=s/o,l=(i-a)/n,c=(i+1+a)/n,h={features:[]};return this._addTileFeatures(r.range((t-a)/n,l,(t+1+a)/n,c),r.data,t,i,n,h),0===t&&this._addTileFeatures(r.range(1-a/n,l,1,c),r.data,n,i,n,h),t===n-1&&this._addTileFeatures(r.range(0,l,a/n,c),r.data,-1,i,n,h),h.features.length?h:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){const i=this.getChildren(e);if(t++,1!==i.length)break;e=i[0].properties.cluster_id}return t}_appendLeaves(e,t,i,r,n){const o=this.getChildren(t);for(const s of o){const t=s.properties;if(t&&t.cluster?n+t.point_count<=r?n+=t.point_count:n=this._appendLeaves(e,t.cluster_id,i,r,n):n<r?n++:e.push(s),e.length===i)break}return n}_createTree(e){const i=new t.a6(e.length/this.stride|0,this.options.nodeSize,Float32Array);for(let t=0;t<e.length;t+=this.stride)i.add(e[t],e[t+1]);return i.finish(),i.data=e,i}_addTileFeatures(e,t,i,r,n,o){for(const s of e){const e=s*this.stride,a=t[e+5]>1;let l,c,h;if(a)l=ie(t,e,this.clusterProps),c=t[e],h=t[e+1];else{const i=this.points[t[e+3]];l=i.properties;const[r,n]=i.geometry.coordinates;c=re(r),h=ne(n)}const u={type:1,geometry:[[Math.round(this.options.extent*(c*n-i)),Math.round(this.options.extent*(h*n-r))]],tags:l};let d;d=a||this.options.generateId?t[e+3]:this.points[t[e+3]].id,void 0!==d&&(u.id=d),o.features.push(u)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){const{radius:i,extent:r,reduce:n,minPoints:o}=this.options,s=i/(r*Math.pow(2,t)),a=e.data,l=[],c=this.stride;for(let h=0;h<a.length;h+=c){if(a[h+2]<=t)continue;a[h+2]=t;const i=a[h],r=a[h+1],u=e.within(a[h],a[h+1],s),d=a[h+5];let f=d;for(const e of u){const i=e*c;a[i+2]>t&&(f+=a[i+5])}if(f>d&&f>=o){let e,o=i*d,s=r*d,p=-1;const A=(h/c<<5)+(t+1)+this.points.length;for(const i of u){const r=i*c;if(a[r+2]<=t)continue;a[r+2]=t;const l=a[r+5];o+=a[r]*l,s+=a[r+1]*l,a[r+4]=A,n&&(e||(e=this._map(a,h,!0),p=this.clusterProps.length,this.clusterProps.push(e)),n(e,this._map(a,r)))}a[h+4]=A,l.push(o/f,s/f,1/0,A,-1,f),n&&l.push(p)}else{for(let e=0;e<c;e++)l.push(a[h+e]);if(f>1)for(const e of u){const i=e*c;if(!(a[i+2]<=t)){a[i+2]=t;for(let e=0;e<c;e++)l.push(a[i+e])}}}}return l}_getOriginId(e){return e-this.points.length>>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,i){if(e[t+5]>1){const r=this.clusterProps[e[t+6]];return i?Object.assign({},r):r}const r=this.points[e[t+3]].properties,n=this.options.map(r);return i&&n===r?Object.assign({},n):n}}function te(e,t,i){return{type:"Feature",id:e[t+3],properties:ie(e,t,i),geometry:{type:"Point",coordinates:[(r=e[t],360*(r-.5)),oe(e[t+1])]}};var r}function ie(e,t,i){const r=e[t+5],n=r>=1e4?`${Math.round(r/1e3)}k`:r>=1e3?Math.round(r/100)/10+"k":r,o=e[t+6],s=-1===o?{}:Object.assign({},i[o]);return Object.assign(s,{cluster:!0,cluster_id:e[t+3],point_count:r,point_count_abbreviated:n})}function re(e){return e/360+.5}function ne(e){const t=Math.sin(e*Math.PI/180),i=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return i<0?0:i>1?1:i}function oe(e){const t=(180-360*e)*Math.PI/180;return 360*Math.atan(Math.exp(t))/Math.PI-90}function se(e,t,i,r){let n=r;const o=t+(i-t>>1);let s,a=i-t;const l=e[t],c=e[t+1],h=e[i],u=e[i+1];for(let d=t+3;d<i;d+=3){const t=ae(e[d],e[d+1],l,c,h,u);if(t>n)s=d,n=t;else if(t===n){const e=Math.abs(d-o);
vendor: 10,565 bytes, line 1
1e<a&&(s=d,a=e)}}n>r&&(s-t>3&&se(e,t,s,r),e[s+2]=n,i-s>3&&se(e,s,i,r))}function ae(e,t,i,r,n,o){let s=n-i,a=o-r;if(0!==s||0!==a){const l=((e-i)*s+(t-r)*a)/(s*s+a*a);l>1?(i=n,r=o):l>0&&(i+=s*l,r+=a*l)}return s=e-i,a=t-r,s*s+a*a}function le(e,t,i,r){const n={id:null!==e&&void 0!==e?e:null,type:t,geometry:i,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};if("Point"===t||"MultiPoint"===t||"LineString"===t)ce(n,i);else if("Polygon"===t)ce(n,i[0]);else if("MultiLineString"===t)for(const o of i)ce(n,o);else if("MultiPolygon"===t)for(const o of i)ce(n,o[0]);return n}function ce(e,t){for(let i=0;i<t.length;i+=3)e.minX=Math.min(e.minX,t[i]),e.minY=Math.min(e.minY,t[i+1]),e.maxX=Math.max(e.maxX,t[i]),e.maxY=Math.max(e.maxY,t[i+1])}function he(e,t,i,r){if(!t.geometry)return;const n=t.geometry.coordinates;if(n&&0===n.length)return;const o=t.geometry.type,s=Math.pow(i.tolerance/((1<<i.maxZoom)*i.extent),2);let a=[],l=t.id;if(i.promoteId?l=t.properties[i.promoteId]:i.generateId&&(l=r||0),"Point"===o)ue(n,a);else if("MultiPoint"===o)for(const c of n)ue(c,a);else if("LineString"===o)de(n,a,s,!1);else if("MultiLineString"===o){if(i.lineMetrics){for(const i of n)a=[],de(i,a,s,!1),e.push(le(l,"LineString",a,t.properties));return}fe(n,a,s,!1)}else if("Polygon"===o)fe(n,a,s,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"===o){for(const n of t.geometry.geometries)he(e,{id:l,geometry:n,properties:t.properties},i,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(const e of n){const t=[];fe(e,t,s,!0),a.push(t)}}e.push(le(l,o,a,t.properties))}function ue(e,t){t.push(pe(e[0]),Ae(e[1]),0)}function de(e,t,i,r){let n,o,s=0;for(let l=0;l<e.length;l++){const i=pe(e[l][0]),a=Ae(e[l][1]);t.push(i,a,0),l>0&&(s+=r?(n*a-i*o)/2:Math.sqrt(Math.pow(i-n,2)+Math.pow(a-o,2))),n=i,o=a}const a=t.length-3;t[2]=1,se(t,0,a,i),t[a+2]=1,t.size=Math.abs(s),t.start=0,t.end=t.size}function fe(e,t,i,r){for(let n=0;n<e.length;n++){const o=[];de(e[n],o,i,r),t.push(o)}}function pe(e){return e/360+.5}function Ae(e){const t=Math.sin(e*Math.PI/180),i=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return i<0?0:i>1?1:i}function ge(e,t,i,r,n,o,s,a){if(r/=t,o>=(i/=t)&&s<r)return e;if(s<i||o>=r)return null;const l=[];for(const c of e){const e=c.geometry;let t=c.type;const o=0===n?c.minX:c.minY,s=0===n?c.maxX:c.maxY;if(o>=i&&s<r){l.push(c);continue}if(s<i||o>=r)continue;let h=[];if("Point"===t||"MultiPoint"===t)me(e,h,i,r,n);else if("LineString"===t)_e(e,h,i,r,n,!1,a.lineMetrics);else if("MultiLineString"===t)xe(e,h,i,r,n,!1);else if("Polygon"===t)xe(e,h,i,r,n,!0);else if("MultiPolygon"===t)for(const a of e){const e=[];xe(a,e,i,r,n,!0),e.length&&h.push(e)}if(h.length){if(a.lineMetrics&&"LineString"===t){for(const e of h)l.push(le(c.id,t,e,c.tags));continue}"LineString"!==t&&"MultiLineString"!==t||(1===h.length?(t="LineString",h=h[0]):t="MultiLineString"),"Point"!==t&&"MultiPoint"!==t||(t=3===h.length?"Point":"MultiPoint"),l.push(le(c.id,t,h,c.tags))}}return l.length?l:null}function me(e,t,i,r,n){for(let o=0;o<e.length;o+=3){const s=e[o+n];s>=i&&s<=r&&ve(t,e[o],e[o+1],e[o+2])}}function _e(e,t,i,r,n,o,s){let a=ye(e);const l=0===n?we:Ee;let c,h,u=e.start;for(let g=0;g<e.length-3;g+=3){const d=e[g],f=e[g+1],p=e[g+2],A=e[g+3],m=e[g+4],_=0===n?d:f,y=0===n?A:m;let x=!1;s&&(c=Math.sqrt(Math.pow(d-A,2)+Math.pow(f-m,2))),_<i?y>=i&&(h=l(a,d,f,A,m,i),s&&(a.start=u+c*h)):_>r?y<=r&&(h=l(a,d,f,A,m,r),s&&(a.start=u+c*h)):ve(a,d,f,p),y<i&&_>=i&&(h=l(a,d,f,A,m,i),x=!0),y>r&&_<=r&&(h=l(a,d,f,A,m,r),x=!0),!o&&x&&(s&&(a.end=u+c*h),t.push(a),a=ye(e)),s&&(u+=c)}let d=e.length-3;const f=e[d],p=e[d+1],A=0===n?f:p;A>=i&&A<=r&&ve(a,f,p,e[d+2]),d=a.length-3,o&&d>=3&&(a[d]!==a[0]||a[d+1]!==a[1])&&ve(a,a[0],a[1],a[2]),a.length&&t.push(a)}function ye(e){const t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function xe(e,t,i,r,n,o){for(const s of e)_e(s,t,i,r,n,o,!1)}function ve(e,t,i,r){e.push(t,i,r)}function we(e,t,i,r,n,o){const s=(o-t)/(r-t);return ve(e,o,i+(n-i)*s,1),s}function Ee(e,t,i,r,n,o){const s=(o-i)/(n-i);return ve(e,t+(r-t)*s,o,1),s}function be(e,t){const i=[];for(let r=0;r<e.length;r++){const n=e[r],o=n.type;let s;if("Point"===o||"MultiPoint"===o||"LineString"===o)s=Ie(n.geometry,t);else if("MultiLineString"===o||"Polygon"===o){s=[];for(const e of n.geometry)s.push(Ie(e,t))}else if("MultiPolygon"===o){s=[];for(const e of n.geometry){const i=[];for(const r of e)i.push(Ie(r,t));s.push(i)}}i.push(le(n.id,o,s,n.tags))}return i}function Ie(e,t){const i=[];i.size=e.size,void 0!==e.start&&(i.start=e.start,i.end=e.end);for(let r=0;r<e.length;r+=3)i.push(e[r]+t,e[r+1],e[r+2]);return i}function Ce(e,t){if(e.transformed)return e;const i=1<<e.z,r=e.x,n=e.y;for(const o of e.features){const e=o.geometry,s=o.type;if(o.geometry=[],1===s)for(let a=0;a<e.length;a+=2)o.geometry.push(Be(e[a],e[a+1],t,i,r,n));else for(let a=0;a<e.length;a++){const s=[];for(let o=0;o<e[a].length;o+=2)s.push(Be(e[a][o],e[a][o+1],t,i,r,n));o.geometry.push(s)}}return e.transformed=!0,e}function Be(e,t,i,r,n,o){return[Math.round(i*(e*r-n)),Math.round(i*(t*r-o))]}function De(e,t,i,r,n){const o=t===n.maxZoom?0:n.tolerance/((1<<t)*n.extent),s={features:[],numPoints:0,numSimplified:0,numFeatures:e.length,source:null,x:i,y:r,z:t,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0};for(const a of e)Te(s,a,o,n);return s}function Te(e,t,i,r){const n=t.geometry,o=t.type,s=[];if(e.minX=Math.min(e.minX,t.minX),e.minY=Math.min(e.minY,t.minY),e.maxX=Math.max(e.maxX,t.maxX),e.maxY=Math.max(e.maxY,t.maxY),"Point"===o||"MultiPoint"===o)for(let a=0;a<n.length;a+=3)s.push(n[a],n[a+1]),e.numPoints++,e.numSimplified++;else if("LineString"===o)Me(s,n,e,i,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(let a=0;a<n.length;a++)Me(s,n[a],e,i,"Polygon"===o,0===a);else if("MultiPolygon"===o)for(let a=0;a<n.length;a++){const t=n[a];for(let r=0;r<t.length;r++)Me(s,t[r],e,i,!0,0===r)}if(s.length){let i=t.tags||null;if("LineString"===o&&r.lineMetrics){i={};for(const e in t.tags)i[e]=t.tags[e];i.mapbox_clip_start=n.start/n.size,i.mapbox_clip_end=n.end/n.size}const a={geometry:s,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:i};null!==t.id&&(a.id=t.id),e.features.push(a)}}function Me(e,t,i,r,n,o){const s=r*r;if(r>0&&t.size<(n?s:r))return void(i.numPoints+=t.length/3);const a=[];for(let l=0;l<t.length;l+=3)(0===r||t[l+2]>s)&&(i.numSimplified++,a.push(t[l],t[l+1])),i.numPoints++;n&&function(e,t){let i=0;for(let r=0,n=e.length,o=n-2;r<n;o=r,r+=2)i+=(e[r]-e[o])*(e[r+1]+e[o+1]);if(i>0===t)for(let r=0,n=e.length;r<n/2;r+=2){const t=e[r],i=e[r+1];e[r]=e[n-2-r],e[r+1]=e[n-1-r],e[n-2-r]=t,e[n-1-r]=i}}(a,o),e.push(a)}const Qe={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0};class Se{constructor(e,t){const i=(t=this.options=function(e,t){for(const i in t)e[i]=t[i];return e}(Object.create(Qe),t)).debug;if(i&&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.");let r=function(e,t){const i=[];if("FeatureCollection"===e.type)for(let r=0;r<e.features.length;r++)he(i,e.features[r],t,r);else he(i,"Feature"===e.type?e:{geometry:e},t);return i}(e,t);this.tiles={},this.tileCoords=[],i&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",t.indexMaxZoom,t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),r=function(e,t){const i=t.buffer/t.extent;let r=e;const n=ge(e,1,-1-i,i,0,-1,2,t),o=ge(e,1,1-i,2+i,0,-1,2,t);return(n||o)&&(r=ge(e,1,-i,1+i,0,-1,2,t)||[],n&&(r=be(n,1).concat(r)),o&&(r=r.concat(be(o,-1)))),r}(r,t),r.length&&this.splitTile(r,0,0,0),i&&(r.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)))}splitTile(e,t,i,r,n,o,s){const a=[e,t,i,r],l=this.options,c=l.debug;for(;a.length;){r=a.pop(),i=a.pop(),t=a.pop(),e=a.pop();const h=1<<t,u=Pe(t,i,r);let d=this.tiles[u];if(!d&&(c>1&&console.time("creation"),d=this.tiles[u]=De(e,t,i,r,l),this.tileCoords.push({z:t,x:i,y:r}),c)){c>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,i,r,d.numFeatures,d.numPoints,d.numSimplified),console.timeEnd("creation"));const e=`z${t}`;this.stats[e]=(this.stats[e]||0)+1,this.total++}if(d.source=e,null==n){if(t===l.indexMaxZoom||d.numPoints<=l.indexMaxPoints)continue}else{if(t===l.maxZoom||t===n)continue;if(null!=n){const e=n-t;if(i!==o>>e||r!==s>>e)continue}}if(d.source=null,0===e.length)continue;c>1&&console.time("clipping");const f=.5*l.buffer/l.extent,p=.5-f,A=.5+f,g=1+f;let m=null,_=null,y=null,x=null;const v=ge(e,h,i-f,i+A,0,d.minX,d.maxX,l),w=ge(e,h,i+p,i+g,0,d.minX,d.maxX,l);v&&(m=ge(v,h,r-f,r+A,1,d.minY,d.maxY,l),_=ge(v,h,r+p,r+g,1,d.minY,d.maxY,l)),w&&(y=ge(w,h,r-f,r+A,1,d.minY,d.maxY,l),x=ge(w,h,r+p,r+g,1,d.minY,d.maxY,l)),c>1&&console.timeEnd("clipping"),a.push(m||[],t+1,2*i,2*r),a.push(_||[],t+1,2*i,2*r+1),a.push(y||[],t+1,2*i+1,2*r),a.push(x||[],t+1,2*i+1,2*r+1)}}getTile(e,t,i){e=+e,t=+t,i=+i;const r=this.options,{extent:n,debug:o}=r;if(e<0||e>24)return null;const s=1<<e,a=Pe(e,t=t+s&s-1,i);if(this.tiles[a])return Ce(this.tiles[a],n);o>1&&console.log("drilling down to z%d-%d-%d",e,t,i);let l,c=e,h=t,u=i;for(;!l&&c>0;)c--,h>>=1,u>>=1,l=this.tiles[Pe(c,h,u)];return l&&l.source?(o>1&&(console.log("found parent tile z%d-%d-%d",c,h,u),console.time("drilling down")),this.splitTile(l.source,c,h,u,e,t,i),o>1&&console.timeEnd("drilling down"),this.tiles[a]?Ce(this.tiles[a],n):null):null}}function Pe(e,t,i){return 32*((1<<e)*i+t)+e}function Re(e,i){const r=e.tileID.canonical;if(!this._geoJSONIndex)return void i(null,null);const n=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!n)return void i(null,null);const o=e=>e.tags&&"3d_elevation_id"in e.tags&&"source"in e.tags&&"elevation"===e.tags.source,s=n.features.filter(e=>o(e));let a={_geojsonTileLayer:n.features};s.length>0&&(a={_geojsonTileLayer:n.features.filter(e=>!o(e)),hd_road_elevation:s});const l=new P(a),c=function(e){const i=new t.at;for(const t of Object.keys(e))i.writeMessage(3,j,{name:t,features:e[t]});return i.finish()}(a).buffer;i(null,{vectorTile:l,rawData:c})}class ze extends C{constructor(e){super(e),this.loadVectorData=Re,this._dynamicIndex=new z}loadData(e,r){const n=e&&e.request,o=n&&n.collectResourceTiming;this._geoJSONIndex=null,this.loadGeoJSON(e,(s,a)=>
1{if(s||!a)return r(s);if("object"!=typeof a)return r(new Error(`Input data given to '${e.source}' is not a valid GeoJSON object.`));{try{if(e.filter){const i=t.bY(e.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===i.result)throw new Error(i.value.map(e=>`${e.key}: ${e.message}`).join(", "));a.features=a.features.filter(e=>i.value.evaluate({zoom:0},e))}e.dynamic?("Feature"===a.type&&(a={type:"FeatureCollection",features:[a]}),e.append||(this._dynamicIndex.clear(),this.loaded={}),this._dynamicIndex.load(a.features,this.loaded),e.cluster&&(a.features=this._dynamicIndex.getFeatures())):this.loaded={},this._geoJSONIndex=e.cluster?new ee(function({superclusterOptions:e,clusterProperties:i}){if(!i||!e)return e;const r={},n={},o={accumulated:null,zoom:0},s={properties:null},a=Object.keys(i);for(const l of a){const[e,o]=i[l],s=t.bY(o),a=t.bY("string"==typeof e?[e,["accumulated"],["get",l]]:e);r[l]=s.value,n[l]=a.value}return e.map=e=>{s.properties=e;const t={};for(const i of a)t[i]=r[i].evaluate(o,s);return t},e.reduce=(e,t)=>{s.properties=t;for(const i of a)o.accumulated=e[i],e[i]=n[i].evaluate(o,s)},e}(e)).load(a.features):e.dynamic?this._dynamicIndex:function(e,t){return new Se(e,t)}(a,e.geojsonVtOptions)}catch(e){return r(e)}const s={};if(o){const t=i(n);t&&(s.resourceTiming={},s.resourceTiming[e.source]=JSON.parse(JSON.stringify(t)))}r(null,s)}})}reloadTile(e,t){const i=this.loaded;return i&&i[e.uid]?e.partial?t(null,void 0):super.reloadTile(e,t):this.loadTile(e,t)}loadGeoJSON(e,i){if(e.request)t.cT(e.request,i);else{if("string"!=typeof e.data)return i(new Error(`Input data given to '${e.source}' is not a valid GeoJSON object.`));setTimeout(()=>{try{return i(null,JSON.parse(e.data))}catch(t){return i(new Error(`Input data given to '${e.source}' is not a valid GeoJSON object.`))}},0)}}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 Le{constructor(e,i,r){this.tileID=new t.ap(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.projection=e.projection,this.brightness=i,this.worldview=r}parse(e,i,r,n){this.status="parsing";const o=new t.ap(r.tileID.overscaledZ,r.tileID.wrap,r.tileID.canonical.z,r.tileID.canonical.x,r.tileID.canonical.y),s=[],a=i.familiesBySource[r.source],l=new t.I(o,r.promoteId);l.bucketLayerIDs=[],l.is3DTile=!0,t.e5(e).then(e=>{const i=e.json.extensionsUsed&&e.json.extensionsUsed.includes("MAPBOX_mesh_features")||e.json.asset.extras&&e.json.asset.extras.MAPBOX_mesh_features,c=e.json.extensionsUsed&&e.json.extensionsUsed.includes("EXT_meshopt_compression"),h=new t.w(this.zoom,{brightness:this.brightness,worldview:this.worldview});for(const n in a)for(const u of a[n]){const n=u[0];l.bucketLayerIDs.push(u.map(e=>t.ea(e.id,e.scope))),n.recalculate(h,[]);const a=t.eV(e,1/t.fH(r.tileID.canonical)),d=new t.b1(u,a,o,i,c,this.brightness,l,this.worldview);i||(d.needsUpload=!0),s.push(d),d.evaluate(n)}this.status="done",n(null,{buckets:s,featureIndex:l,collisionBoxArray:null,glyphAtlasImage:null,lineAtlas:null,imageAtlas:null,brightness:null})}).catch(e=>n(new Error(e.message)))}}class Fe{constructor({actor:e,layerIndex:t,availableImages:i,availableModels:r,brightness:n,worldview:o}){this.actor=e,this.layerIndex=t,this.availableImages=i,this.availableModels=r,this.brightness=n,this.loading={},this.loaded={},this.worldview=o}loadTile(e,i){const r=e.uid,n=this.loading[r]=new Le(e,this.brightness,this.worldview);t.cG(e.request,(t,o)=>{const s=!this.loading[r];return delete this.loading[r],s||t?(n.status="done",s||(this.loaded[r]=n),i(t)):o&&0!==o.byteLength?void n.parse(o,this.layerIndex,e,(e,t)=>{n.status="done",this.loaded=this.loaded||{},this.loaded[r]=n,e||!t?i(e):i(null,t)}):(n.status="done",this.loaded[r]=n,i())})}reloadTile(e,t){const i=this.loaded,r=e.uid;if(i&&i[r]){const n=i[r];n.projection=e.projection,n.brightness=e.brightness;const o=(i,r)=>{n.reloadCallback&&(delete n.reloadCallback,this.loadTile(e,t)),t(i,r)};"parsing"===n.status?n.reloadCallback=o:"done"===n.status&&this.loadTile(e,t)}}abortTile(e,t){const i=e.uid;this.loading[i]&&delete this.loading[i],t()}removeTile(e,t){const i=this.loaded,r=e.uid;i&&i[r]&&delete i[r],t()}}class Oe{constructor(e){this.self=e,this.actor=new t.a(e,this),this.layerIndexes={},this.availableImages={},this.availableModels={},this.isSpriteLoaded={},this.rtlPluginParsingListeners=[],this.projections={},this.defaultProjection=t.c$({name:"mercator"}),this.workerSourceTypes={vector:C,geojson:ze,"raster-dem":B,"raster-array":T,"batched-model":Fe},this.workerSources={}
1,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=e=>{if(t.eH.isParsed())throw new Error("RTL text plugin already registered.");t.eH.setState({pluginStatus:t.f7.parsed,pluginURL:t.eH.getPluginURL()}),t.eH.applyArabicShaping=e.applyArabicShaping,t.eH.processBidirectionalText=e.processBidirectionalText,t.eH.processStyledBidirectionalText=e.processStyledBidirectionalText;for(const t of this.rtlPluginParsingListeners)t(null,!0);this.rtlPluginParsingListeners=[]}}clearCaches(e,t,i){delete this.layerIndexes[e],delete this.availableImages[e],delete this.availableModels[e],delete this.workerSources[e],i()}checkIfReady(e,t,i){i()}setReferrer(e,t){this.referrer=t}spriteLoaded(e,i){this.isSpriteLoaded[e]||(this.isSpriteLoaded[e]={});const{scope:r,isLoaded:n}=i;if(this.isSpriteLoaded[e][r]=n,this.workerSources[e]&&this.workerSources[e][r])for(const o in this.workerSources[e][r]){const i=this.workerSources[e][r][o];for(const e in i){const r=i[e];r instanceof C&&(r.isSpriteLoaded=n,r.fire(new t.x("isSpriteLoaded")))}}}setImages(e,t,i){this.availableImages[e]||(this.availableImages[e]={});const{scope:r,images:n}=t;if(this.availableImages[e][r]=n,this.workerSources[e]&&this.workerSources[e][r]){for(const t in this.workerSources[e][r]){const i=this.workerSources[e][r][t];for(const e in i)i[e].availableImages=n}i()}else i()}setModels(e,{scope:t,models:i},r){if(this.availableModels[e]||(this.availableModels[e]={}),this.availableModels[e][t]=i,this.workerSources[e]&&this.workerSources[e][t]){for(const r in this.workerSources[e][t]){const n=this.workerSources[e][t][r];for(const e in n)n[e].availableModels=i}r()}else r()}setProjection(e,i){this.projections[e]=t.c$(i)}setBrightness(e,t,i){this.brightness=t,i()}setContextParams(e,t,i){this.maxUniformBufferBindings=t.maxBindingPoints,this.maxUniformBlockSizeDwords=t.maxUniformBlockSizeDwords,this.disableSymbolUBO=t.disableSymbolUBO,i()}setWorldview(e,t,i){this.worldview=t,i()}setLayers(e,t,i){this.getLayerIndex(e,t.scope).replace(t.layers,t.options),i()}updateLayers(e,t,i){this.getLayerIndex(e,t.scope).update(t.layers,t.removedIds,t.options),i()}loadTile(e,t,i){t.projection=this.projections[e]||this.defaultProjection,this.getWorkerSource(e,t).loadTile(t,i)}decodeRasterArray(e,t,i){this.getWorkerSource(e,t).decodeRasterArray(t,i)}reloadTile(e,t,i){t.projection=this.projections[e]||this.defaultProjection,this.getWorkerSource(e,t).reloadTile(t,i)}abortTile(e,t,i){this.getWorkerSource(e,t).abortTile(t,i)}removeTile(e,t,i){this.getWorkerSource(e,t).removeTile(t,i)}removeSource(e,t,i){if(!(this.workerSources[e]&&this.workerSources[e][t.scope]&&this.workerSources[e][t.scope][t.type]&&this.workerSources[e][t.scope][t.type][t.source]))return;const r=this.workerSources[e][t.scope][t.type][t.source];delete this.workerSources[e][t.scope][t.type][t.source],void 0!==r.removeSource?r.removeSource(t,i):i()}loadTileProvider(e,i,r){t.e8(i.name,i.url).then(t=>{const r=new t(i.options);return this.getWorkerSource(e,{type:i.type,source:i.source,scope:i.scope},r),r.load&&i.request?r.load({request:i.request}):null}).then(e=>r(null,e)).catch(e=>r(e instanceof Error?e:new Error(String(e))))}async syncRTLPluginState(e,i,r){if(t.eH.isParsed())return void r(null,!0);if(t.eH.isParsing())return void this.rtlPluginParsingListeners.push(r);t.eH.setState(i);const n=t.eH.getPluginURL();if(!t.eH.isLoaded()||t.eH.isParsed()||t.eH.isParsing())r(null,!1);else{t.eH.setState({pluginStatus:t.f7.parsing,pluginURL:n});try{await import(n),t.eH.isParsed()?r(null,!0):this.rtlPluginParsingListeners.push(r)}catch(e){t.eH.setState({pluginStatus:t.f7.error,pluginURL:n}),r(e);for(const t of this.rtlPluginParsingListeners)t(e);this.rtlPluginParsingListeners=[]}}}setConfig(e,i){Object.assign(t.bN,i)}getAvailableImages(e,t){this.availableImages[e]||(this.availableImages[e]={});let i=this.availableImages[e][t];return i||(i=[]),i}getAvailableModels(e,t){this.availableModels[e]||(this.availableModels[e]={});let i=this.availableModels[e][t];
1return i||(i={}),i}getLayerIndex(e,t){this.layerIndexes[e]||(this.layerIndexes[e]={});let i=this.layerIndexes[e][t];return i||(i=this.layerIndexes[e][t]=new y,i.scope=t),i}getWorkerSource(e,t,i){const{type:r,source:n,scope:o}=t,s=this.workerSources;if(s[e]||(s[e]={}),s[e][o]||(s[e][o]={}),s[e][o][r]||(s[e][o][r]={}),this.isSpriteLoaded[e]||(this.isSpriteLoaded[e]={}),s[e][o][r][n])i&&(s[e][o][r][n].tileProvider=i);else{const t={send:(t,i,r,n,o,s)=>this.actor.send(t,i,r,e,o,s),scheduler:this.actor.scheduler},a=this.workerSourceTypes[r];if(!a)throw new Error(`Unknown worker source type "${r}".`);s[e][o][r][n]=new a({actor:t,layerIndex:this.getLayerIndex(e,o),availableImages:this.getAvailableImages(e,o),availableModels:this.getAvailableModels(e,o),isSpriteLoaded:this.isSpriteLoaded[e][o],tileProvider:i,brightness:this.brightness,worldview:this.worldview,maxUniformBufferBindings:this.maxUniformBufferBindings,maxUniformBlockSizeDwords:this.maxUniformBlockSizeDwords,disableSymbolUBO:this.disableSymbolUBO})}return s[e][o][r][n]}enforceCacheSizeLimit(e,i){t.cf(i)}getWorkerPerformanceMetrics(e,t,i){i(void 0,void 0)}}return t.dR(self)&&(self.worker=new Oe(self)),Oe}),r(["./shared"],function(e){var t="3.25.0";const i={create:"create",load:"load",fullLoad:"fullLoad"},r={mark(e){performance.mark(e)},measure(e,t,i){performance.measure(e,t,i)}};function n(t){const i=t.name.split("?")[0];return e.dF(i)&&i.includes("mapbox-gl.js")?"javascript":e.dF(i)&&i.includes("mapbox-gl.css")?"css":e.dG(i)?"fontRange":e.dH(i)?"sprite":e.dI(i)?"style":e.dJ(i)?"tilejson":"other"}const o={antialias:!1,alpha:!0,stencil:!0,depth:!0};let s,a;function l(e){const t=document.createElement("canvas"),i=Object.create(o);i.failIfMajorPerformanceCaveat=e;const r=t.getContext("webgl2",i);if(!r)return!1;let n;try{n=r.createShader(r.VERTEX_SHADER)}catch(e){return!1}return!(!n||r.isContextLost())&&(r.shaderSource(n,"void main() {}"),r.compileShader(n),!0===r.getShaderParameter(n,r.COMPILE_STATUS))}const c=/firefox/i,h=/macintosh/i;function u(e,t,i){const r=document.createElement(e);return null!=t&&(r.className=t),i&&i.appendChild(r),r}function d(e,t,i){const r=document.createElementNS("http://www.w3.org/2000/svg",e);for(const n of Object.keys(t))r.setAttributeNS(null,n,String(t[n]));return i&&i.appendChild(r),r}const f="undefined"!=typeof document?document.documentElement&&document.documentElement.style:null,p=f&&void 0!==f.userSelect?"userSelect":"WebkitUserSelect";let A;function g(){f&&p&&(A=f[p],f[p]="none")}function m(){f&&p&&(f[p]=A)}function _(e){e.preventDefault(),e.stopPropagation(),window.removeEventListener("click",_,!0)}function y(){window.addEventListener("click",_,!0),window.setTimeout(()=>{window.removeEventListener("click",_,!0)},0)}function x(e,t){const i=e.getBoundingClientRect();return E(e,i,t)}function v(e,t){const i=e.getBoundingClientRect(),r=[];for(let n=0;n<t.length;n++)r.push(E(e,i,t[n]));return r}function w(e){return c.test(navigator.userAgent)&&h.test(navigator.userAgent)&&2===e.button&&e.ctrlKey?0:e.button}function E(t,i,r){const n=t.offsetWidth===i.width?1:t.offsetWidth/i.width;return new e.au((r.clientX-i.left)*n,(r.clientY-i.top)*n)}const b="01",I=/(\.(png|jpg)\d*)(?=$)/,C=/^.+\/v4\//,B=/\.[\w]+$/,D=/^(\/v4\/|\/(raster|rasterarrays)\/v1\/)/,T=/^access_token=(.*)$/,M="NO_ACCESS_TOKEN";class Q{constructor(e,t,i){this._transformRequestFn=e,this._customAccessToken=t,this._silenceAuthErrors=!!i,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",b,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(i,r){if(!e.dL(i))return i;const n=P(i);return n.params.push(`sdk=js-${t}`),n.path=`/styles/v1${n.path}`,this._makeAPIURL(n,this._customAccessToken||r)}normalizeGlyphsURL(t,i){if(!e.dL(t))return t;const r=P(t);return r.path=`/fonts/v1${r.path}`,this._makeAPIURL(r,this._customAccessToken||i)}normalizeModelURL(t,i){if(!e.dL(t))return t;const r=P(t);return r.path=`/models/v1${r.path}`,this._makeAPIURL(r,this._customAccessToken||i)}normalizeSourceURL(t,i,r,n){if(!e.dL(t))return t;const o=P(t);return o.path=`/v4/${o.authority}.json`,o.params.push("secure"),r&&o.params.push(`language=${r}`),n&&o.params.push(`worldview=${n}`),this._makeAPIURL(o,this._customAccessToken||i)}normalizeIconsetURL(t,i){const r=P(t);return e.dL(t)?(r.path=`/styles/v1${r.path}/iconset.pbf`,this._makeAPIURL(r,this._customAccessToken||i)):R(r)}normalizeSpriteURL(t,i,r,n){const o=P(t);return e.dL(t)?(o.path=`/styles/v1${o.path}/sprite${i}${r}`,this._makeAPIURL(o,this._customAccessToken||n)):(o.path+=`${i}${r}`,R(o))}normalizeTileURL(t,i,r){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!e.dL(t))return t;const n=P(t);n.path=n.path.replace(I,`${i||r&&"raster"!==n.authority&&512===r?"@2x":""}${e.cn.supported?".webp":"$1"}`),"raster"===n.authority?n.path=`/${e.bN.RASTER_URL_PREFIX}${n.path}`:"rasterarrays"===n.authority?n.path=`/${e.bN.RASTERARRAYS_URL_PREFIX}${n.path}`:"3dtiles"===n.authority?n.path=`/${e.bN.TILES3D_URL_PREFIX}${n.path}`:(n.path=n.path.replace(C,"/"),n.path=`/${e.bN.TILE_URL_VERSION}${n.path}`);const o=this._customAccessToken||function(e){for(const t of e){const e=t.match(T);if(e)return e[1]}return null}(n.params)||e.bN.ACCESS_TOKEN;return e.bN.REQUIRE_ACCESS_TOKEN&&o&&this._skuToken&&n.params.push(`sku=${this._skuToken}`),this._makeAPIURL(n,o)}canonicalizeTileURL(t,i){const r=P(t);if(!D.test(r.path)||!B.test(r.path))return t;let n="mapbox://";r.path.startsWith("/raster/v1/")?n+=`raster/${r.path.replace(`/${e.bN.RASTER_URL_PREFIX}/`,"")}`:r.path.startsWith("/rasterarrays/v1/")?n+=`rasterarrays/${r.path.replace(`/${e.bN.RASTERARRAYS_URL_PREFIX}/`,"")}`:n+=`tiles/${r.path.replace(`/${e.bN.TILE_URL_VERSION}/`,"")}`;let o=r.params;return i&&(o=o.filter(e=>!e.match(T))),o.length&&(n+=`?${o.join("&")}`),n}canonicalizeTileset(t,i){const r=!!i&&e.dL(i),n=[];for(const o of t.tiles||[])e.dK(o)?n.push(this.canonicalizeTileURL(o,r)):n.push(o);return n}_makeAPIURL(t,i){const r="See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes",n=P(e.bN.API_URL);if(t.protocol=n.protocol,t.authority=n.authority,"http"===t.protocol){const e=t.params.indexOf("secure");e>=0&&t.params.splice(e,1)}if("/"!==n.path&&(t.path=`${n.path}${t.path}`),!e.bN.REQUIRE_ACCESS_TOKEN)return R(t);if(i=i||e.bN.ACCESS_TOKEN,!this._silenceAuthErrors){if(!i)throw new Error(`An API access token is required to use Mapbox GL. ${r}`);if("s"===i[0])throw new Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${r}`)}return t.params=t.params.filter(e=>!e.includes("access_token")),t.params.push(`access_token=${i||""}`),R(t)}}const S=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function P(e){const t=e.match(S);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 R(e){const t=e.params.length?`?${e.params.join("&")}`:"";return`${e.protocol}://${e.authority}${e.path}${t}`}const z="mapbox.eventData";function L(t){if(!t)return null;const i=t.split(".");if(!i||3!==i.length)return null;try{return JSON.parse(e.bq(i[1]))}catch(e){return null}}function F(t){return!(!e.bN.EVENTS_URL||!t&&!e.bN.ACCESS_TOKEN)}let O;const k=/^[\w.+-]+(\/[\w.+-]+)?$/;let N="other";class U{constructor(e){this.type=e,this.anonId=null,this.anonIdTimestamp=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(t){const i=L(e.bN.ACCESS_TOKEN);let r="";return r=i&&i.u?e.br(i.u):e.bN.ACCESS_TOKEN||"",t?`${z}.${t}:${r}`:`${z}:${r}`}fetchEventData(){const t=e.fv("localStorage"),i=this.getStorageKey(),r=this.getStorageKey("uuid"),n=this.getStorageKey("uuidTimestamp");if(t)try{const e=localStorage.getItem(i);e&&(this.eventData=JSON.parse(e));const t=localStorage.getItem(r);t&&(this.anonId=t);const o=localStorage.getItem(n);o&&(this.anonIdTimestamp=Number(o));const s=Date.now()-864e5;(!this.anonIdTimestamp||this.anonIdTimestamp<s)&&this.refreshUUID()}catch(t){e.f_("Unable to read from LocalStorage")}}refreshUUID(){this.anonId=e.fX(),this.anonIdTimestamp=Date.now()}saveEventData(){const t=e.fv("localStorage"),i=this.getStorageKey(),r=this.getStorageKey("uuid"),n=this.getStorageKey("uuidTimestamp"),o=this.anonId,s=this.anonIdTimestamp;if(t&&o)try{localStorage.setItem(r,o),Object.keys(this.eventData).length>=1&&localStorage.setItem(i,JSON.stringify(this.eventData)),s&&localStorage.setItem(n,s.toString())}catch(t){e.f_("Unable to write to LocalStorage")}}processRequests(e){}postEvent(t,i,r,n){if(!e.bN.EVENTS_URL)return;const o=P(e.bN.EVENTS_URL);o.params.push(`access_token=${n||e.bN.ACCESS_TOKEN||""}`);const s={event:this.type,created:new Date(t).toISOString()},a=i?Object.assign(s,i):s,l={url:R(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([a])};this.pendingRequest=e.eR(l,e=>{this.pendingRequest=null,r(e),this.saveEventData(),this.processRequests(n)})}queueRequest(e,t){this.queue.push(e),this.processRequests(t)}}class V extends U{constructor(e){super("metrics"),e&&(this.data=e)}postMetricsEvent(t){if(!F(t))return;this.anonId||this.fetchEventData(),e.fZ(this.anonId)||this.refreshUUID();const i=Object.assign({},this.data,{sessionId:this.anonId});this.queueRequest({timestamp:Date.now(),payload:i},t)}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{timestamp:t,payload:i}=this.queue.shift();this.postEvent(t,i,()=>{},e)}}const H=new class extends U{constructor(e){super("appUserTurnstile"),this._customAccessToken=e}postTurnstileEvent(t,i){F(i)&&Array.isArray(t)&&t.some(t=>e.dL(t)||e.dK(t))&&this.queueRequest(Date.now(),i)}processRequests(i){if(this.pendingRequest||0===this.queue.length)return;this.anonId&&this.anonIdTimestamp&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const r=L(e.bN.ACCESS_TOKEN),n=r?r.u:e.bN.ACCESS_TOKEN;let o=n!==this.eventData.tokenU;e.fZ(this.anonId)||(this.refreshUUID(),o=!0);const s=this.queue.shift();if(this.eventData.lastSuccess){const e=new Date(this.eventData.lastSuccess),t=new Date(s),i=(s-this.eventData.lastSuccess)/864e5;o=o||i>=1||i<-1||e.getDate()!==t.getDate()}else o=!0;if(!o)return void this.processRequests();const a={version:"2.2",sdkIdentifier:"mapbox-gl-js",sdkVersion:t,skuId:b,"enabled.telemetry":!1,userId:this.anonId,bundleFormat:"umd",bundleDistribution:N};O&&(a.sdkInfo=O),this.postEvent(s,a,e=>{e||(this.eventData.lastSuccess=s,this.eventData.tokenU=n)},i)}},j=H.postTurnstileEvent.bind(H),G=new class extends U{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(t,i,r,n){this.skuToken=i,this.errorCb=n,e.bN.EVENTS_URL&&(r||e.bN.ACCESS_TOKEN?this.queueRequest({id:t,timestamp:Date.now()},r):this.errorCb(new Error(M)))}processRequests(i){if(this.pendingRequest||0===this.queue.length)return;const{id:r,timestamp:n}=this.queue.shift();if(r&&this.success[r])return;this.anonId&&this.anonIdTimestamp||this.fetchEventData(),e.fZ(this.anonId)||this.refreshUUID();const o={version:"2.2",sdkIdentifier:"mapbox-gl-js",sdkVersion:t,skuId:b,skuToken:this.skuToken,userId:this.anonId,bundleFormat:"umd",bundleDistribution:N};O&&(o.sdkInfo=O),this.postEvent(n,o,e=>{e?this.errorCb(e):r&&(this.success[r]=!0)},i)}remove(){this.errorCb=null}},Y=G.postMapLoadEvent.bind(G),W=new class extends U{constructor(){super("style.load"),this.eventIdPerMapInstanceMap=new Map,this.mapInstanceIdMap=new WeakMap}getMapInstanceId(t){let i=this.mapInstanceIdMap.get(t);
1return i||(i=e.fX(),this.mapInstanceIdMap.set(t,i)),i}getEventId(e){const t=this.eventIdPerMapInstanceMap.get(e)||0;return this.eventIdPerMapInstanceMap.set(e,t+1),t}postStyleLoadEvent(e,t){const{map:i,style:r,importedStyles:n}=t;if(!F(e))return;const o=this.getMapInstanceId(i),s={mapInstanceId:o,eventId:this.getEventId(o),style:r};n.length&&(s.importedStyles=n),this.queueRequest({timestamp:Date.now(),payload:s},e)}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{timestamp:t,payload:i}=this.queue.shift();this.postEvent(t,i,()=>{},e)}},J=W.postStyleLoadEvent.bind(W),Z=new V({attributes:[{name:"maps/js/layer-animations/style-with-appearances"}]}),q=Z.postMetricsEvent.bind(Z),K=new V({attributes:[{name:"maps/js/layer-animations/runtime-appearances"}]}),X=K.postMetricsEvent.bind(K),$=new class extends U{constructor(){super("gljs.performance")}postPerformanceEvent(e,t){F(e)&&this.queueRequest({timestamp:Date.now(),performanceData:t},e)}processRequests(r){if(this.pendingRequest||0===this.queue.length)return;const{timestamp:o,performanceData:s}=this.queue.shift(),a=function(r){const o=performance.getEntriesByType("resource"),s=performance.getEntriesByType("mark"),a=function(e){const t={};if(e)for(const i in e)if("other"!==i)for(const r of e[i]){const e=`${i}ResolveRangeMin`,n=`${i}ResolveRangeMax`,o=`${i}RequestCount`,s=`${i}RequestCachedCount`;t[e]=Math.min(t[e]||1/0,r.startTime),t[n]=Math.max(t[n]||-1/0,r.responseEnd);const a=e=>{void 0===t[e]&&(t[e]=0),++t[e]};void 0!==r.transferSize&&0===r.transferSize&&a(s),a(o)}return t}(function(e,t){const i={};if(e)for(const r of e){const e=t(r);void 0===i[e]&&(i[e]=[]),i[e].push(r)}return i}(o,n)),l=window.devicePixelRatio,c=navigator.connection||navigator.mozConnection||navigator.webkitConnection,h=c?c.effectiveType:void 0,u={counters:[],metadata:[],attributes:[]},d=(e,t,i)=>{null!=i&&e.push({name:t,value:i.toString()})};for(const e in a)d(u.counters,e,a[e]);if(r.interactionRange[0]!==1/0&&r.interactionRange[1]!==-1/0&&(d(u.counters,"interactionRangeMin",r.interactionRange[0]),d(u.counters,"interactionRangeMax",r.interactionRange[1])),s)for(const e of Object.values(i)){const t=s.find(t=>t.name===e);t&&d(u.counters,e,t.startTime)}return d(u.counters,"visibilityHidden",r.visibilityHidden),d(u.attributes,"style",function(t){if(t)for(const i of t){const t=i.name.split("?")[0];if(e.dI(t)){const e=t.split("/").slice(-2);if(2===e.length)return`mapbox://styles/${e[0]}/${e[1]}`}}}(o)),d(u.attributes,"terrainEnabled",r.terrainEnabled?"true":"false"),d(u.attributes,"fogEnabled",r.fogEnabled?"true":"false"),d(u.attributes,"projection",r.projection),d(u.attributes,"zoom",r.zoom),d(u.metadata,"devicePixelRatio",l),d(u.metadata,"connectionEffectiveType",h),d(u.metadata,"navigatorUserAgent",navigator.userAgent),d(u.metadata,"screenWidth",window.screen.width),d(u.metadata,"screenHeight",window.screen.height),d(u.metadata,"windowWidth",window.innerWidth),d(u.metadata,"windowHeight",window.innerHeight),d(u.metadata,"mapWidth",r.width/l),d(u.metadata,"mapHeight",r.height/l),d(u.metadata,"webglRenderer",r.renderer),d(u.metadata,"webglVendor",r.vendor),d(u.metadata,"sdkVersion",t),d(u.metadata,"sdkIdentifier","mapbox-gl-js"),u}(s);for(const e of a.metadata);for(const e of a.counters);for(const e of a.attributes);this.postEvent(o,a,()=>{},r)}},ee=$.postPerformanceEvent.bind($),te=new class extends U{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(t,i,r,n){if(!e.bN.API_URL||!e.bN.SESSION_PATH)return;const o=P(e.bN.API_URL+e.bN.SESSION_PATH);o.params.push(`sku=${i||""}`),o.params.push(`access_token=${n||e.bN.ACCESS_TOKEN||""}`);const s={url:R(o),headers:{"Content-Type":"text/plain"}};this.pendingRequest=e.cM(s,e=>{this.pendingRequest=null,r(e),this.saveEventData(),this.processRequests(n)})}getSessionAPI(t,i,r,n){this.skuToken=i,this.errorCb=n,e.bN.EVENTS_URL&&e.bN.SESSION_PATH&&e.bN.API_URL&&(r||e.bN.ACCESS_TOKEN?this.queueRequest({id:t,timestamp:Date.now()},r):this.errorCb(new Error(M)))}processRequests(e){if(this.pendingRequest||0===this.queue.length)return;const{id:t,timestamp:i}=this.queue.shift();
vendor: 8,125 bytes, line 1
1t&&this.success[t]||this.getSession(i,this.skuToken,e=>{e?this.errorCb(e):t&&(this.success[t]=!0)},e)}remove(){this.errorCb=null}},ie=te.getSessionAPI.bind(te),re=new Set;function ne(e,t){t?re.add(e):re.delete(e)}class oe{constructor(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSourceCaches={},this._updatedPaintProps=new Set,this._updatedImages={}}isDirty(){return this._changed}setDirty(){this._changed=!0}getUpdatedSourceCaches(){return this._updatedSourceCaches}updateSourceCache(e,t){this._updatedSourceCaches[e]=t,this.setDirty()}discardSourceCacheUpdate(e){delete this._updatedSourceCaches[e]}updateLayer(e){const t=e.scope;this._updatedLayers[t]=this._updatedLayers[t]||new Set,this._updatedLayers[t].add(e.id),this.setDirty()}removeLayer(e){const t=e.scope;this._removedLayers[t]=this._removedLayers[t]||{},this._updatedLayers[t]=this._updatedLayers[t]||new Set,this._removedLayers[t][e.id]=e,this._updatedLayers[t].delete(e.id),this._updatedPaintProps.delete(e.fqid),this.setDirty()}getRemovedLayer(e){return this._removedLayers[e.scope]?this._removedLayers[e.scope][e.id]:null}discardLayerRemoval(e){this._removedLayers[e.scope]&&delete this._removedLayers[e.scope][e.id]}getLayerUpdatesByScope(){const e={};for(const t in this._updatedLayers)e[t]=e[t]||{},e[t].updatedIds=Array.from(this._updatedLayers[t].values());for(const t in this._removedLayers)e[t]=e[t]||{},e[t].removedIds=Object.keys(this._removedLayers[t]);return e}getUpdatedPaintProperties(){return this._updatedPaintProps}updatePaintProperties(e){this._updatedPaintProps.add(e.fqid),this.setDirty()}getUpdatedImages(e){return this._updatedImages[e]?Array.from(this._updatedImages[e].values()):[]}updateImage(t,i){this._updatedImages[i]=this._updatedImages[i]||new Set,this._updatedImages[i].add(e.a1.toString(t)),this.setDirty()}resetUpdatedImages(e){this._updatedImages[e]&&this._updatedImages[e].clear()}reset(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSourceCaches={},this._updatedPaintProps.clear(),this._updatedImages={}}}function se(e){const{userImage:t}=e;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}const ae=new e.i(0,0,0);function le(e,t){const i=[],r=e[`stretch_${t}`];let n=null;for(let o=0;o<r.length;o++)null===n?n=0===i.length?r[0]:i.at(-1)[1]+r[o]:(i.push([n,n+r[o]]),n=null);e[`stretch_${t}_areas`]=i}function ce(e,t){const i={name:void 0};let r;for(;r=e.nextField(t);)1===r?i.name=e.readString():2===r?i.metadata=he(e,e.readVarint()+e.pos):3===r&&(i.usvg_tree=fe(e,e.readVarint()+e.pos),i.data="usvg_tree");return function(e){if(e.usvg_tree.height||(e.usvg_tree.height=e.usvg_tree.width),!e.metadata)return e;const{metadata:t}=e;if(t.content_area){const{content_area:i}=t;null==i.left&&(i.left=0),null==i.top&&(i.top=i.left),null==i.width&&(i.width=e.usvg_tree.width),null==i.height&&(i.height=i.width)}if(t.text_placeholder){const{text_placeholder:e}=t;null==e.top&&(e.top=e.left),null==e.height&&(e.height=e.width)}return t.stretch_x&&t.stretch_x.length&&le(t,"x"),t.stretch_y&&t.stretch_y.length&&le(t,"y"),e}(i)}function he(e,t){const i={stretch_x:null,stretch_y:null,stretch_x_areas:null,stretch_y_areas:null,variables:[]};let r;for(;r=e.nextField(t);)1===r?i.stretch_x=e.readPackedVarint():2===r?i.stretch_y=e.readPackedVarint():3===r?i.content_area=ue(e,e.readVarint()+e.pos):4===r?i.variables.push(de(e,e.readVarint()+e.pos)):5===r&&(i.text_placeholder=ue(e,e.readVarint()+e.pos));return i}function ue(e,t){const i={};let r;for(;r=e.nextField(t);)1===r?i.left=e.readVarint():2===r?i.width=e.readVarint():3===r?i.top=e.readVarint():4===r&&(i.height=e.readVarint());return i}function de(e,t){const i={name:void 0};let r;for(;r=e.nextField(t);)1===r?i.name=e.readString():2===r&&(i.rgb_color=xe(e.readVarint()),i.value="rgb_color");return i}function fe(e,t){const i={width:20,children:[],linear_gradients:[],radial_gradients:[],clip_paths:[],masks:[],height:20};let r;for(;r=e.nextField(t);)1===r?i.width=i.height=e.readVarint():2===r?i.height=e.readVarint():3===r?i.children.push(pe(e,e.readVarint()+e.pos)):4===r?i.linear_gradients.push(ve(e,e.readVarint()+e.pos)):5===r?i.radial_gradients.push(Ee(e,e.readVarint()+e.pos)):7===r?i.clip_paths.push(be(e,e.readVarint()+e.pos)):8===r&&i.masks.push(Ie(e,e.readVarint()+e.pos));return i}function pe(e,t){const i={};let r;for(;r=e.nextField(t);)1===r?(i.group=Ae(e,e.readVarint()+e.pos),i.node="group"):2===r&&(i.path=me(e,e.readVarint()+e.pos),i.node="path");return i}function Ae(e,t){const i={opacity:255,children:[]};let r;for(;r=e.nextField(t);)1===r?i.transform=ge(e,e.readVarint()+e.pos):2===r?i.opacity=e.readVarint():5===r?i.clip_path_idx=e.readVarint():6===r?i.mask_idx=e.readVarint():7===r&&i.children.push(pe(e,e.readVarint()+e.pos));return i}function ge(e,t){const i={sx:1,ky:0,kx:0,sy:1,tx:0,ty:0};let r;for(;r=e.nextField(t);)1===r?i.sx=e.readFloat():2===r?i.ky=e.readFloat():3===r?i.kx=e.readFloat():4===r?i.sy=e.readFloat():5===r?i.tx=e.readFloat():6===r&&(i.ty=e.readFloat());return i}function me(e,t){const i={paint_order:1,commands:[],step:1,diffs:[],rule:1};let r;for(;r=e.nextField(t);)1===r?i.fill=_e(e,e.readVarint()+e.pos):2===r?i.stroke=ye(e,e.readVarint()+e.pos):3===r?i.paint_order=e.readVarint():5===r?e.readPackedVarint(i.commands):6===r?i.step=e.readFloat():7===r?e.readPackedSVarint(i.diffs):8===r&&(i.rule=e.readVarint());return i}function _e(e,t){const i={rgb_color:ae,paint:"rgb_color",opacity:255};let r;for(;r=e.nextField(t);)1===r?(i.rgb_color=xe(e.readVarint()),i.paint="rgb_color"):2===r?(i.linear_gradient_idx=e.readVarint(),i.paint="linear_gradient_idx"):3===r?(i.radial_gradient_idx=e.readVarint(),i.paint="radial_gradient_idx"):5===r&&(i.opacity=e.readVarint());return i}function ye(e,t){const i={rgb_color:ae,paint:"rgb_color",dasharray:[],dashoffset:0,miterlimit:4,opacity:255,width:1,linecap:1,linejoin:1};let r;for(;r=e.nextField(t);)1===r?(i.rgb_color=xe(e.readVarint()),i.paint="rgb_color"):2===r?(i.linear_gradient_idx=e.readVarint(),i.paint="linear_gradient_idx"):3===r?(i.radial_gradient_idx=e.readVarint(),i.paint="radial_gradient_idx"):5===r?e.readPackedFloat(i.dasharray):6===r?i.dashoffset=e.readFloat():7===r?i.miterlimit=e.readFloat():8===r?i.opacity=e.readVarint():9===r?i.width=e.readFloat():10===r?i.linecap=e.readVarint():11===r&&(i.linejoin=e.readVarint());return i}function xe(t){return new e.i((t>>16&255)/255,(t>>8&255)/255,(255&t)/255,1)}function ve(e,t){const i={spread_method:1,stops:[],x1:0,y1:0,x2:1,y2:0};let r;for(;r=e.nextField(t);)1===r?i.transform=ge(e,e.readVarint()+e.pos):2===r?i.spread_method=e.readVarint():3===r?i.stops.push(we(e,e.readVarint()+e.pos)):4===r?i.x1=e.readFloat():5===r?i.y1=e.readFloat():6===r?i.x2=e.readFloat():7===r&&(i.y2=e.readFloat());return i}function we(e,t){const i={offset:0,opacity:255,rgb_color:ae};let r;for(;r=e.nextField(t);)1===r?i.offset=e.readFloat():2===r?i.opacity=e.readVarint():3===r&&(i.rgb_color=xe(e.readVarint()));return i}function Ee(e,t){const i={spread_method:1,stops:[],cx:.5,cy:.5,r:.5,fx:.5,fy:.5,fr:0};let r;for(;r=e.nextField(t);)1===r?i.transform=ge(e,e.readVarint()+e.pos):2===r?i.spread_method=e.readVarint():3===r?i.stops.push(we(e,e.readVarint()+e.pos)):4===r?i.cx=e.readFloat():5===r?i.cy=e.readFloat():6===r?i.r=e.readFloat():7===r?i.fx=e.readFloat():8===r?i.fy=e.readFloat():9===r&&(i.fr=e.readFloat());return i}function be(e,t){const i={children:[]};let r;for(;r=e.nextField(t);)1===r?i.transform=ge(e,e.readVarint()+e.pos):2===r?i.clip_path_idx=e.readVarint():3===r&&i.children.push(pe(e,e.readVarint()+e.pos));return i}function Ie(e,t){const i={left:0,width:20,mask_type:1,children:[]};let r;for(;r=e.nextField(t);)1===r?i.left=i.top=e.readFloat():2===r?i.width=i.height=e.readFloat():3===r?i.top=e.readFloat():4===r?i.height=e.readFloat():5===r?i.mask_type=e.readVarint():6===r?i.mask_idx=e.readVarint():7===r&&i.children.push(pe(e,e.readVarint()+e.pos));return null==i.height&&(i.height=i.width),null==i.top&&(i.top=i.left),i}class Ce{static calculate(t={},i=[]){const r=new Map,n=new Map;if(0===Object.keys(t).length)return r;
vendor: 4,457 bytes, line 1
1i.forEach(t=>{n.set(t.name,t.rgb_color||new e.i(0,0,0))});for(const[e,o]of Object.entries(t))n.has(e)?r.set(n.get(e).toString(),o):console.warn(`Ignoring unknown image variable "${e}"`);return r}}function Be(t,i=255,r){const n=r.get(t.toString())||t;return 255===i?n.toString():new e.i(n.r,n.g,n.b,n.a*i/255).toString()}const De=[];let Te=0;function Me(t,i){if(Te>=De.length){const r=e.eA()?new OffscreenCanvas(t,i).getContext("2d",{willReadFrequently:!0}):document.createElement("canvas").getContext("2d",{willReadFrequently:!0});De.push(r)}const r=De[Te++];return r.canvas.width=t,r.canvas.height=i,r}function Qe(){Te--}function Se(e,t,i,r,n){for(const o of r.children)Pe(e,t,i,o,n)}function Pe(e,t,i,r,n){r.group?(e.save(),function(e,t,i,r,n){const o=null!=r.mask_idx?i.masks[r.mask_idx]:null,s=null!=r.clip_path_idx?i.clip_paths[r.clip_path_idx]:null;if(r.transform&&(t=Ve(r.transform).preMultiplySelf(t)),!function(e,t,i){return 255!==e.opacity||t||i}(r,null!=s,null!=o))return void Se(e,t,i,r,n);const a=Me(e.canvas.width,e.canvas.height);Se(a,t,i,r,n),s&&Ne(a,t,i,s),o&&Ue(a,t,i,o,n),e.globalAlpha=r.opacity/255,e.drawImage(a.canvas,0,0),Qe()}(e,t,i,r.group,n),e.restore()):r.path&&(e.save(),function(e,t,i,r,n){e.setTransform(t),1===r.paint_order?(Re(e,i,r,n),Le(e,i,r,n)):(Le(e,i,r,n),Re(e,i,r,n))}(e,t,i,r.path,n),e.restore())}function Re(e,t,i,r){const n=i.fill;if(!n)return;const o=n.opacity/255;switch(e.save(),e.beginPath(),He(i,e),n.paint){case"rgb_color":e.fillStyle=Be(n.rgb_color,n.opacity,r);break;case"linear_gradient_idx":{const i=t.linear_gradients[n.linear_gradient_idx];i.transform&&e.setTransform(Ve(i.transform).preMultiplySelf(e.getTransform())),e.fillStyle=Fe(e,i,o,r);break}case"radial_gradient_idx":{const i=t.radial_gradients[n.radial_gradient_idx];i.transform&&e.setTransform(Ve(i.transform).preMultiplySelf(e.getTransform())),e.fillStyle=Oe(e,i,o,r)}}e.fill(ze(i)),e.restore()}function ze(e){return 1===e.rule?"nonzero":2===e.rule?"evenodd":void 0}function Le(e,t,i,r){const n=i.stroke;if(!n)return;const o=je(i);e.lineWidth=n.width,e.miterLimit=n.miterlimit,e.setLineDash(n.dasharray),e.lineDashOffset=n.dashoffset;const s=n.opacity/255;switch(n.paint){case"rgb_color":e.strokeStyle=Be(n.rgb_color,n.opacity,r);break;case"linear_gradient_idx":e.strokeStyle=Fe(e,t.linear_gradients[n.linear_gradient_idx],s,r,!0);break;case"radial_gradient_idx":e.strokeStyle=Oe(e,t.radial_gradients[n.radial_gradient_idx],s,r,!0)}switch(n.linejoin){case 2:case 1:e.lineJoin="miter";break;case 3:e.lineJoin="round";break;case 4:e.lineJoin="bevel"}switch(n.linecap){case 1:e.lineCap="butt";break;case 2:e.lineCap="round";break;case 3:e.lineCap="square"}e.stroke(o)}function Fe(e,t,i,r,n=!1){if(1===t.stops.length){const e=t.stops[0];return Be(e.rgb_color,e.opacity*i,r)}const{x1:o,y1:s,x2:a,y2:l}=t;let c=new DOMPoint(o,s),h=new DOMPoint(a,l);if(n){const e=Ve(t.transform);c=e.transformPoint(c),h=e.transformPoint(h)}const u=e.createLinearGradient(c.x,c.y,h.x,h.y);for(const d of t.stops)u.addColorStop(d.offset,Be(d.rgb_color,d.opacity*i,r));return u}function Oe(e,t,i,r,n=!1){if(1===t.stops.length){const e=t.stops[0];return Be(e.rgb_color,e.opacity*i,r)}const o=Ve(t.transform),{fx:s,fy:a,fr:l,cx:c,cy:h,r:u}=t;let d=new DOMPoint(s,a),f=new DOMPoint(c,h),p=l,A=u;if(n){d=o.transformPoint(d),f=o.transformPoint(f);const e=(o.a+o.d)/2;p=l*e,A=t.r*e}const g=e.createRadialGradient(d.x,d.y,p,f.x,f.y,A);for(const m of t.stops)g.addColorStop(m.offset,Be(m.rgb_color,m.opacity*i,r));return g}function ke(e,t,i,r){const n=r.transform?Ve(r.transform).preMultiplySelf(t):t,o=Me(e.canvas.width,e.canvas.height);for(const a of r.children)if(a.group)ke(o,n,i,a.group);else if(a.path){const e=a.path,t=new Path2D;t.addPath(je(e),n),o.fill(t,ze(e))}const s=null!=r.clip_path_idx?i.clip_paths[r.clip_path_idx]:null;s&&Ne(o,n,i,s),e.globalCompositeOperation="source-over",e.drawImage(o.canvas,0,0),Qe()}function Ne(e,t,i,r){const n=Me(e.canvas.width,e.canvas.height);ke(n,t,i,r),e.globalCompositeOperation="destination-in",e.drawImage(n.canvas,0,0),Qe()}function Ue(e,t,i,r,n){if(0===r.children.length)return;const o=null!=r.mask_idx?i.masks[r.mask_idx]:null;o&&Ue(e,t,i,o,n);const s=e.canvas.width,a=e.canvas.height,l=Me(s,a),c=r.width,h=r.height,u=r.left,d=r.top,f=new Path2D,p=new Path2D;p.rect(u,d,c,h),f.addPath(p,t),l.clip(f);for(const m of r.children)Pe(l,t,i,m,n);const A=l.getImageData(0,0,s,a),g=A.data;if(1===r.mask_type)for(let m=0;m<g.length;
vendor: 4,098 bytes, line 1
1m+=4)g[m+3]=g[m+3]/255*(.2126*g[m]+.7152*g[m+1]+.0722*g[m+2]);l.putImageData(A,0,0),e.globalCompositeOperation="destination-in",e.drawImage(l.canvas,0,0),Qe()}function Ve(e){return e?new DOMMatrix([e.sx,e.ky,e.kx,e.sy,e.tx,e.ty]):new DOMMatrix}function He(e,t){const i=e.step;let r=e.diffs[0]*i,n=e.diffs[1]*i;t.moveTo(r,n);for(let o=0,s=2;o<e.commands.length;o++)switch(e.commands[o]){case 1:r+=e.diffs[s++]*i,n+=e.diffs[s++]*i,t.moveTo(r,n);break;case 2:r+=e.diffs[s++]*i,n+=e.diffs[s++]*i,t.lineTo(r,n);break;case 3:{const o=r+e.diffs[s++]*i,a=n+e.diffs[s++]*i;r=o+e.diffs[s++]*i,n=a+e.diffs[s++]*i,t.quadraticCurveTo(o,a,r,n);break}case 4:{const o=r+e.diffs[s++]*i,a=n+e.diffs[s++]*i,l=o+e.diffs[s++]*i,c=a+e.diffs[s++]*i;r=l+e.diffs[s++]*i,n=c+e.diffs[s++]*i,t.bezierCurveTo(o,a,l,c,r,n);break}case 5:t.closePath()}return t}function je(e){return He(e,new Path2D)}class Ge{constructor(){this.cacheMap=new Map,this.cacheDependenciesMap=new Map}static _getImage(t){return new e.ay(t,t.data)}getFromCache(t,i,r){return this.cacheMap.has(r)||this.cacheMap.set(r,new e.a7(150)),this.cacheMap.get(r).get(e.ea(t.toString(),i))}setInCache(t,i,r,n){this.cacheDependenciesMap.has(n)||this.cacheDependenciesMap.set(n,new Map),this.cacheMap.has(n)||this.cacheMap.set(n,new e.a7(150));const o=this.cacheDependenciesMap.get(n),s=e.ea(t.id.toString(),r);o.get(s)||o.set(s,new Set);const a=this.cacheMap.get(n),l=t.toString();o.get(s).add(l),a.put(e.ea(t.toString(),r),i)}removeImagesFromCacheByIds(t,i,r=0){if(!this.cacheMap.has(r)||!this.cacheDependenciesMap.has(r))return;const n=this.cacheMap.get(r),o=this.cacheDependenciesMap.get(r);for(const s of t){const t=e.ea(s.toString(),i);if(o.has(t)){for(const e of o.get(t))n.delete(e);o.delete(t)}}}rasterize(e,t,i,r){const n=this.getFromCache(e,i,r);if(n)return n.clone();const o=function(e,t){const i=Ce.calculate(t.params,e.metadata?e.metadata.variables:[]),r=e.usvg_tree,n=r.width,o=r.height,s=Math.max(1,Math.round(n*t.sx)),a=Math.max(1,Math.round(o*t.sy)),l=new DOMMatrix([s/n,0,0,a/o,0,0]),c=Me(s,a);Se(c,l,r,r,i);const h=c.getImageData(0,0,s,a);return Qe(),h}(t.icon,e),s=Ge._getImage(o);return this.setInCache(e,s,i,r),s.clone()}}class Ye extends e.y{constructor(t){super(),this.imageProviders=new Map,this.images=new Map,this.updatedImages=new Map,this.callbackDispatchedThisFrame=new Map,this.imageVersions=new Map,this.loaded=new Map,this.requestors=[],this.patterns=new Map,this.patternsInFlight=new Set,this.atlasImage=new Map,this.atlasTexture=new Map,this.imageAtlasCache=new e.$,this.dirty=!0,this.spriteFormat=t,this.imageRasterizer=new Ge}addScope(t){this.loaded.set(t,!1),this.imageProviders.set(t,new Map),this.images.set(t,new Map),this.updatedImages.set(t,new Set),this.callbackDispatchedThisFrame.set(t,new Set),this.imageVersions.set(t,new Map),this.patterns.set(t,new Map),this.atlasImage.set(t,new e.ay({width:1,height:1}))}removeScope(e){this.loaded.delete(e),this.imageProviders.delete(e),this.images.delete(e),this.updatedImages.delete(e),this.callbackDispatchedThisFrame.delete(e),this.imageVersions.delete(e),this.patterns.delete(e),this.atlasImage.delete(e);const t=this.atlasTexture.get(e);t&&(t.destroy(),this.atlasTexture.delete(e))}addImageProvider(e,t){this.imageProviders.has(t)||this.imageProviders.set(t,new Map),this.imageProviders.get(t).set(e.id,e)}removeImageProvider(e,t){this.imageProviders.has(t)&&this.imageProviders.get(t).delete(e)}getPendingImageProviders(){const e=[];for(const t of this.imageProviders.values())for(const i of t.values())i.hasPendingRequests()&&e.push(i);return e}isLoaded(){for(const e of this.loaded.keys())if(!this.loaded.get(e))return!1;return!0}setLoaded(e,t){if(this.loaded.get(t)!==e&&(this.loaded.set(t,e),e)){for(const{ids:e,callback:i}of this.requestors)this._notify(e,t,i);this.requestors=[]}}hasImage(e,t){return!!this.getImage(e,t)}getImage(e,t){return this.images.get(t).get(e.toString())}addImage(e,t,i){if(this._validate(e,i)){this.images.get(t).set(e.toString(),i);const r=this.imageVersions.get(t),n=r.get(e.toString())||0;r.set(e.toString(),n+1)}}_validate(t,i){let r=!0;
vendor: 11,130 bytes, line 1
1return this._validateStretch(i.stretchX,i.data&&i.data.width)||(this.fire(new e.v(new Error(`Image "${t.name}" has invalid "stretchX" value`))),r=!1),this._validateStretch(i.stretchY,i.data&&i.data.height)||(this.fire(new e.v(new Error(`Image "${t.name}" has invalid "stretchY" value`))),r=!1),this._validateContent(i.content,i)||(this.fire(new e.v(new Error(`Image "${t.name}" has invalid "content" value`))),r=!1),r}_validateStretch(e,t){if(!e)return!0;let i=0;for(const r of e){if(r[0]<i||r[1]<r[0]||t<r[1])return!1;i=r[1]}return!0}_validateContent(e,t){if(!e)return!0;if(4!==e.length)return!1;if(!t.usvg){if(e[0]<0||t.data.width<e[0])return!1;if(e[1]<0||t.data.height<e[1])return!1;if(e[2]<0||t.data.width<e[2])return!1;if(e[3]<0||t.data.height<e[3])return!1}return!(e[2]<e[0]||e[3]<e[1])}updateImage(e,t,i){const r=this.images.get(t).get(e.toString());i.version=r.version+1,this.images.get(t).set(e.toString(),i),this.updatedImages.get(t).add(e);const n=this.imageVersions.get(t),o=n.get(e.toString())||0;n.set(e.toString(),o+1),this.removeFromImageRasterizerCache(e,t)}clearUpdatedImages(e){this.updatedImages.get(e).clear()}removeFromImageRasterizerCache(e,t){"raster"!==this.spriteFormat&&this.imageRasterizer.removeImagesFromCacheByIds([e],t)}removeImage(e,t){const i=this.images.get(t),r=i.get(e.toString());i.delete(e.toString());const n=this.imageVersions.get(t),o=n.get(e.toString())||0;n.set(e.toString(),o+1),this.patterns.get(t).delete(e.toString()),this.removeFromImageRasterizerCache(e,t),r.userImage&&r.userImage.onRemove&&r.userImage.onRemove()}listImages(t){return Array.from(this.images.get(t).keys()).map(t=>e.a1.from(t))}getImageVersions(e){return this.imageVersions.get(e)||new Map}getImages(e,t,i){const r=[],n=[],o=this.imageProviders.get(t);for(const c of e){if(!c.iconsetId){r.push(c);continue}const e=o.get(c.iconsetId);e&&(this.getImage(c,t)?n.push(c):e.addPendingRequest(c))}if(0===r.length)return void this._notify(n,t,i);let s=!0;const a=!!this.loaded.get(t),l=this.images.get(t);if(!a)for(const c of r)l.has(c.toString())||(s=!1);a||s?this._notify(r,t,i):this.requestors.push({ids:r,scope:t,callback:i})}rasterizeImages(e,t){const i=new Map,{iconTasks:r,patternTasks:n,scope:o}=e;for(const s of[r,n])for(const[e,t]of s.entries()){const r=this.getImage(t.id,o);r&&i.set(e,{image:r,imageVariant:t})}t(null,this._rasterizeImages(o,i))}_rasterizeImages(e,t){const i=new Map;for(const[r,{image:n,imageVariant:o}]of t.entries())i.set(r,this.imageRasterizer.rasterize(o,n,e,0));return i}getUpdatedImages(e){return this.updatedImages.get(e)||new Set}_notify(t,i,r){const n=this.images.get(i),o=new Map;for(const s of t){if(!n.get(s.toString())){if(s.iconsetId)continue;this.fire(new e.x("styleimagemissing",{id:s.name}))}const t=n.get(s.toString());if(!t){e.f_(`Image "${s.name}" 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.`);continue}const i={data:t.usvg?null:t.data.clone(),pixelRatio:t.pixelRatio,sdf:t.sdf,usvg:t.usvg,stretchX:t.stretchX,stretchY:t.stretchY,content:t.content,hasRenderCallback:Boolean(t.userImage&&t.userImage.render)};t.usvg&&Object.assign(i,{width:t.icon.usvg_tree.width,height:t.icon.usvg_tree.height}),o.set(e.a1.toString(s),i)}r(null,{images:o,versions:this.getImageVersions(i)})}getPixelSize(e){const{width:t,height:i}=this.atlasImage.get(e);return{width:t,height:i}}getPattern(t,i,r){const n=t.toString(),o=this.patterns.get(i),s=o.get(n),a=this.getImage(t,i);if(!a)return null;if(s){if(s.position.version===a.version)return s.position;s.position.version=a.version}else{if(a.usvg&&!a.data){const o=this.getPatternInFlightId(n,i);if(this.patternsInFlight.has(o))return null;this.patternsInFlight.add(o);const s=new e.a4(t).scaleSelf(e.co.devicePixelRatio),l=new Map([[s.toString(),{image:a,imageVariant:s}]]),c=this._rasterizeImages(i,l);return this.storePatternImage(s,i,a,r,c),null}this.storePattern(t,i,a)}return this._updatePatternAtlas(i,r),o.get(n).position}getPatternInFlightId(t,i){return e.ea(t,i)}hasPatternsInFlight(){return 0!==this.patternsInFlight.size}storePatternImage(e,t,i,r,n){const o=e.toString(),s=n?n.get(o):void 0;s&&(i.data=s,this.storePattern(e.id,t,i),this._updatePatternAtlas(t,r),this.patternsInFlight.delete(this.getPatternInFlightId(e.id.toString(),t)))}storePattern(t,i,r){const n={w:r.data.width+2*e.aq,h:r.data.height+2*e.aq,x:0,y:0},o=new e.a2(n,r,e.aq);this.patterns.get(i).set(t.toString(),{bin:n,position:o})}destroyAtlasTextures(){for(const e of this.atlasTexture.values())e&&e.destroy();this.atlasTexture.clear()}bind(t,i){const r=t.gl;let n=this.atlasTexture.get(i);n?this.dirty&&(n.update(this.atlasImage.get(i)),this.dirty=!1):(n=new e.a_(t,this.atlasImage.get(i),r.RGBA8),this.atlasTexture.set(i,n)),n.bind(r.LINEAR,r.CLAMP_TO_EDGE)}_updatePatternAtlas(t,i){const r=this.patterns.get(t),n=Array.from(r.values()).map(({bin:e})=>e),{w:o,h:s}=e.eT(n),a=this.atlasImage.get(t);a.resize({width:o||1,height:s||1});const l=this.images.get(t);for(const[c,{bin:h,position:u}]of r.entries()){let t=u.padding;const r=h.x+t,n=h.y+t,o=l.get(c).data,s=o.width,d=o.height;t=t>1?t-1:t,e.ay.copy(o,a,{x:0,y:0},{x:r,y:n},{width:s,height:d},i),e.ay.copy(o,a,{x:0,y:d-t},{x:r,y:n-t},{width:s,height:t},i),e.ay.copy(o,a,{x:0,y:0},{x:r,y:n+d},{width:s,height:t},i),e.ay.copy(o,a,{x:s-t,y:0},{x:r-t,y:n},{width:t,height:d},i),e.ay.copy(o,a,{x:0,y:0},{x:r+s,y:n},{width:t,height:d},i),e.ay.copy(o,a,{x:s-t,y:d-t},{x:r-t,y:n-t},{width:t,height:t},i),e.ay.copy(o,a,{x:0,y:d-t},{x:r+s,y:n-t},{width:t,height:t},i),e.ay.copy(o,a,{x:0,y:0},{x:r+s,y:n+d},{width:t,height:t},i),e.ay.copy(o,a,{x:s-t,y:0},{x:r-t,y:n+d},{width:t,height:t},i)}this.dirty=!0}beginFrame(){for(const e of this.images.keys())this.callbackDispatchedThisFrame.set(e,new Set);this.imageAtlasCache.beginFrame()}dispatchRenderCallbacks(e,t){const i=this.images.get(t);for(const r of e){if(this.callbackDispatchedThisFrame.get(t).has(r.toString()))continue;this.callbackDispatchedThisFrame.get(t).add(r.toString());const e=i.get(r.toString());se(e)&&this.updateImage(r,t,e)}}}class We{constructor(e,t,i,r){this.message=(e?`${e}: `:"")+i,r&&(this.identifier=r),null!=t&&t.__line__&&(this.line=t.__line__)}}class Je extends We{}function Ze(t){const i=t.value,r=t.valueSpec,n=t.style,o=t.styleSpec,s=t.key,a=t.arrayElementValidator||wt;if(!Array.isArray(i))return[new We(s,i,`array expected, ${e.da(i)} found`)];if(r.length&&i.length!==r.length)return[new We(s,i,`array length ${r.length} expected, length ${i.length} found`)];if(r["min-length"]&&i.length<r["min-length"])return[new We(s,i,`array length at least ${r["min-length"]} expected, length ${i.length} found`)];let l={type:r.value,values:r.values,minimum:r.minimum,maximum:r.maximum,function:void 0};o.$version<7&&(l.function=r.function),e.dN(r.value)&&(l=r.value);let c=[];for(let e=0;e<i.length;e++)c=c.concat(a({array:i,arrayIndex:e,value:i[e],valueSpec:l,style:n,styleSpec:o,key:`${s}[${e}]`},!0));return c}function qe(t){const i=t.key,r=t.value,n=t.valueSpec;if(!e.dM(r))return[new We(i,r,`number expected, ${e.da(r)} found`)];if(r!=r)return[new We(i,r,"number expected, NaN found")];if("minimum"in n){let e=n.minimum;if(Array.isArray(n.minimum)&&(e=n.minimum[t.arrayIndex]),r<e)return[new We(i,r,`${r} is less than the minimum value ${e}`)]}if("maximum"in n){let e=n.maximum;if(Array.isArray(n.maximum)&&(e=n.maximum[t.arrayIndex]),r>e)return[new We(i,r,`${r} is greater than the maximum value ${e}`)]}return[]}function Ke(t){const i=t.key,r=t.value;if(!e.dN(r))return[new We(i,r,`object expected, ${e.da(r)} found`)];const n=t.valueSpec,o=e.fT(r.type);let s,a,l,c={};const h="categorical"!==o&&void 0===r.property,u=!h,d=function(t){const i=t.stops;return Array.isArray(i)&&Array.isArray(i[0])&&e.dN(i[0][0])}(r),f=Et({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(e){if("identity"===o)return[new We(e.key,e.value,'identity function may not have a "stops" property')];let t=[];const i=e.value;return t=t.concat(Ze({key:e.key,value:i,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:p})),Array.isArray(i)&&0===i.length&&t.push(new We(e.key,i,"array must have at least one stop")),t},default:function(e){return wt({key:e.key,value:e.value,valueSpec:n,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===o&&h&&f.push(new We(t.key,t.value,'missing required property "property"')),"identity"===o||r.stops||f.push(new We(t.key,t.value,'missing required property "stops"')),"exponential"===o&&n.expression&&!e.fA(n)&&f.push(new We(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(u&&!e.fC(n)?f.push(new We(t.key,t.value,"property functions not supported")):h&&!e.fD(n)&&f.push(new We(t.key,t.value,"zoom functions not supported"))),"categorical"!==o&&!d||void 0!==r.property||f.push(new We(t.key,t.value,'"property" property is required')),f;function p(t){let i=[];const r=t.value,o=t.key;if(!Array.isArray(r))return[new We(o,r,`array expected, ${e.da(r)} found`)];if(2!==r.length)return[new We(o,r,`array length 2 expected, length ${r.length} found`)];if(d){if(!e.dN(r[0]))return[new We(o,r,`object expected, ${e.da(r[0])} found`)];const n=r[0];if(void 0===n.zoom)return[new We(o,r,"object stop key must have zoom")];if(void 0===n.value)return[new We(o,r,"object stop key must have value")];const s=e.fT(n.zoom);if("number"!=typeof s)return[new We(o,n.zoom,"stop zoom values must be numbers")];if(l&&l>s)return[new We(o,n.zoom,"stop zoom values must appear in ascending order")];s!==l&&(l=s,a=void 0,c={}),i=i.concat(Et({key:`${o}[0]`,value:r[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:qe,value:A}}))}else i=i.concat(A({key:`${o}[0]`,value:r[0],style:t.style,styleSpec:t.styleSpec},r));return e.dv(e.c3(r[1]))?i.concat([new We(`${o}[1]`,r[1],"expressions are not allowed in function stops.")]):i.concat(wt({key:`${o}[1]`,value:r[1],valueSpec:n,style:t.style,styleSpec:t.styleSpec}))}function A(t,i){const r=e.da(t.value),l=e.fT(t.value),h=null!==t.value?t.value:i;if(s){if(r!==s)return[new We(t.key,h,`${r} stop domain type must match previous stop domain type ${s}`)]}else s=r;if("number"!==r&&"string"!==r&&"boolean"!==r&&"number"!=typeof l&&"string"!=typeof l&&"boolean"!=typeof l)return[new We(t.key,h,"stop domain value must be a number, string, or boolean")];if("number"!==r&&"categorical"!==o){let i=`number expected, ${r} found`;return e.fC(n)&&void 0===o&&(i+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new We(t.key,h,i)]}return"categorical"!==o||"number"!==r||"number"==typeof l&&isFinite(l)&&Math.floor(l)===l?"categorical"!==o&&"number"===r&&"number"==typeof l&&"number"==typeof a&&void 0!==a&&l<a?[new We(t.key,h,"stop domain values must appear in ascending order")]:(a=l,"categorical"===o&&l in c?[new We(t.key,h,"stop domain values must be unique")]:(c[l]=!0,[])):[new We(t.key,h,`integer expected, found ${String(l)}
1`)]}}function Xe(t){const i=("property"===t.expressionContext?e.b$:e.bY)(e.c3(t.value),t.valueSpec);if("error"===i.result)return i.value.map(e=>new We(`${t.key}${e.key}`,t.value,e.message));const r=i.value.expression||i.value._styleExpression.expression;if("property"===t.expressionContext&&"text-font"===t.propertyKey&&!r.outputDefined())return[new We(t.key,t.value,`Invalid data expression for "${t.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===t.expressionContext&&"layout"===t.propertyType&&!e.dP(r))return[new We(t.key,t.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===t.expressionContext)return $e(r,t);if("appearance"===t.expressionContext)return it(r,t);if(t.expressionContext&&0===t.expressionContext.indexOf("cluster")){if(!e.dC(r,["zoom","feature-state"]))return[new We(t.key,t.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===t.expressionContext&&!e.dy(r))return[new We(t.key,t.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function $e(t,i){const r=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(i.valueSpec&&i.valueSpec.expression)for(const e of i.valueSpec.expression.parameters)r.delete(e);if(0===r.size)return[];const n=[];return t instanceof e.j&&r.has(t.name)?[new We(i.key,i.value,`["${t.name}"] expression is not supported in a filter for a ${i.object.type} layer with id: ${i.object.id}`)]:(t.eachChild(e=>{n.push(...$e(e,i))}),n)}const et=new Set(["get","has","properties","geometry-type","id"]),tt=new Set(["zoom","pitch","distance-from-center","feature","feature-state","measure-light","heatmap-density","line-progress","raster-value","raster-particle-speed","sky-radial-progress"]);function it(t,i){if(i.valueSpec&&i.valueSpec.expression)for(const e of i.valueSpec.expression.parameters)tt.delete(e);if(0===tt.size)return[];const r=[];if(t instanceof e.j){const e=et.has(t.name)?"feature":t.name;if(tt.has(e))return[new We(i.key,i.value,`["${t.name}"] is not an allowed parameter`)]}return t.eachChild(e=>{r.push(...it(e,i))}),r}function rt(t){const i=t.key,r=t.value,n=t.valueSpec,o=[];return Array.isArray(n.values)?n.values.includes(e.fT(r))||o.push(new We(i,r,`expected one of [${n.values.join(", ")}], ${JSON.stringify(r)} found`)):Object.keys(n.values).includes(e.fT(r))||o.push(new We(i,r,`expected one of [${Object.keys(n.values).join(", ")}], ${JSON.stringify(r)} found`)),o}function nt(t){return e.dw(e.c3(t.value))?Xe(Object.assign({},t,{expressionContext:"filter",valueSpec:t.styleSpec[`filter_${t.layerType||"fill"}`]})):ot(t)}function ot(t){const i=t.value,r=t.key;if(!Array.isArray(i))return[new We(r,i,`array expected, ${e.da(i)} found`)];if(i.length<1)return[new We(r,i,"filter array must have at least 1 element")];const n=t.styleSpec;let o=rt({key:`${r}[0]`,value:i[0],valueSpec:n.filter_operator});const s=()=>{i.length>=2&&(e.dQ(i[1])||o.push(new We(`${r}[1]`,i[1],`string expected, ${e.da(i[1])} found`)));for(let t=2;t<i.length;t++)"$type"===e.fT(i[1])?o=o.concat(rt({key:`${r}[${t}]`,value:i[t],valueSpec:n.geometry_type})):e.dQ(i[t])||e.dM(i[t])||e.du(i[t])||o.push(new We(`${r}[${t}]`,i[t],`string, number, or boolean expected, ${e.da(i[t])} found.`))};switch(e.fT(i[0])){case"<":case"<=":case">":case">=":i.length>=2&&"$type"===e.fT(i[1])&&o.push(new We(r,i,`"$type" cannot be use with operator "${i[0]}"`)),3!==i.length&&o.push(new We(r,i,`filter array for operator "${i[0]}" must have 3 elements`)),s();break;case"==":case"!=":3!==i.length&&o.push(new We(r,i,`filter array for operator "${i[0]}" must have 3 elements`)),s();break;case"in":case"!in":s();break;case"any":case"all":case"none":for(let e=1;e<i.length;e++)o=o.concat(ot({key:`${r}[${e}]`,value:i[e],style:t.style,styleSpec:t.styleSpec}));break;case"has":case"!has":2!==i.length?o.push(new We(r,i,`filter array for "${i[0]}" operator must have 2 elements`)):e.dQ(i[1])||o.push(new We(`${r}[1]`,i[1],`string expected, ${e.da(i[1])} found`))}return o}const st=/^{([^}]+)}$/;function at(t,i){const r=t.key,n=t.style,o=t.layer,s=t.styleSpec,a=t.value,l=t.objectKey,c=s[`${i}_${t.layerType}`];if(!c)return[];const h=l.match(e.b3);if(h&&c[h[1]])return e.dv(e.c3(a))?[].concat(wt({key:r,value:a,valueSpec:{type:"string",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},style:n,styleSpec:s,expressionContext:"property",propertyType:i,propertyKey:l})):wt({key:r,value:a,valueSpec:{type:"string"},style:n,styleSpec:s}
1);const u=l.match(e.aY);if("paint"===i&&u&&c[u[1]]&&c[u[1]].transition)return wt({key:r,value:a,valueSpec:s.transition,style:n,styleSpec:s});const d=t.valueSpec||c[l];if(!d)return[new Je(r,a,`unknown property "${l}"`)];let f;if(e.dQ(a)&&e.fC(d)&&!d.tokens&&(f=st.exec(a))){const e=`\`{ "type": "identity", "property": ${f?JSON.stringify(f[1]):'"_"'} }\``;return[new We(r,a,`"${l}" does not support interpolation syntax\nUse an identity property function instead: ${e}.`)]}const p=[];if("symbol"===t.layerType)"text-field"!==l||!n||n.glyphs||n.imports||p.push(new We(r,a,'use of "text-field" requires a style "glyphs" property')),"text-font"===l&&e.dB(e.c3(a))&&"identity"===e.fT(a.type)&&p.push(new We(r,a,'"text-font" does not support identity functions'));else if("model"===t.layerType&&"paint"===i&&o&&o.layout&&Object.hasOwn(o.layout,"model-id")&&e.fC(d)&&(e.fB(d)||e.fD(d))){const t=e.b$(e.c3(a),d).value,i="expression"in t&&t.expression||"_styleExpression"in t&&t._styleExpression&&t._styleExpression.expression;i&&!e.dC(i,["measure-light"])&&("model-emissive-strength"===l&&e.dy(i)&&e.dP(i)||p.push(new We(r,a,`${l} does not support measure-light expressions when the model layer source is vector tile or GeoJSON.`)))}return p.concat(wt({key:t.key,value:a,valueSpec:d,style:n,styleSpec:s,expressionContext:"property",propertyType:i,propertyKey:l}))}function lt(e){return at(e,"paint")}function ct(e){return at(e,"layout")}function ht(t){let i=[];const r=t.value,n=t.key,o=t.style,s=t.styleSpec;if(!e.dN(r))return[new We(n,r,"object expected")];r.type||r.ref||i.push(new We(n,r,'either "type" or "ref" is required'));let a=e.fT(r.type);const l=e.fT(r.ref);if(r.id){const s=e.fT(r.id);for(let a=0;a<t.arrayIndex;a++){const t=o.layers[a];e.fT(t.id)===s&&i.push(new We(n,r.id,`duplicate layer id "${s}", previously used at line ${t.id.__line__}`))}}if("ref"in r){let t;["type","source","source-layer","filter","layout"].forEach(e=>{e in r&&i.push(new We(n,r[e],`"${e}" is prohibited for ref layers`))}),o.layers.forEach(i=>{e.fT(i.id)===l&&(t=i)}),t?t.ref?i.push(new We(n,r.ref,"ref cannot reference another ref layer")):a=e.fT(t.type):"string"==typeof l&&i.push(new We(n,r.ref,`ref layer "${l}" not found`))}else if("background"!==a&&"sky"!==a&&"slot"!==a)if(r.source)if(e.dQ(r.source)){const t=o.sources&&Object.hasOwn(o.sources,r.source)?o.sources[r.source]:void 0,s=t&&e.fT(t.type);t?"vector"===s&&"raster"===a?i.push(new We(n,r.source,`layer "${r.id}" requires a raster source`)):"raster"===s&&"raster"!==a?i.push(new We(n,r.source,`layer "${r.id}" requires a vector source`)):"vector"!==s||r["source-layer"]?"raster-dem"===s&&"hillshade"!==a?i.push(new We(n,r.source,"raster-dem source can only be used with layer type 'hillshade'.")):"raster-array"!==s||["raster","raster-particle"].includes(a)?"line"===a&&r.paint&&r.paint["line-gradient"]&&"geojson"===s&&!t.lineMetrics?i.push(new We(n,r,`layer "${r.id}" specifies a line-gradient, which requires the GeoJSON source to have \`lineMetrics\` enabled.`)):"line"===a&&r.paint&&r.paint["line-trim-offset"]&&"geojson"===s&&!t.lineMetrics?i.push(new We(n,r,`layer "${r.id}" specifies a line-trim-offset, which requires the GeoJSON source to have \`lineMetrics\` enabled.`)):"raster-particle"===a&&"raster-array"!==s&&i.push(new We(n,r.source,`layer "${r.id}" requires a 'raster-array' source.`)):i.push(new We(n,r.source,"raster-array source can only be used with layer type 'raster'.")):i.push(new We(n,r,`layer "${r.id}" must specify a "source-layer"`)):i.push(new We(n,r.source,`source "${r.source}" not found`))}else i.push(new We(`${n}.source`,r.source,'"source" must be a string'));else i.push(new We(n,r,'missing required property "source"'));return i=i.concat(Et({key:n,value:r,valueSpec:s.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{"*":()=>[],type:()=>wt({key:`${n}.type`,value:r.type,valueSpec:s.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:"type"}),filter:e=>nt(Object.assign({layerType:a},e)),layout:e=>Et({layer:r,key:e.key,value:e.value,valueSpec:{},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>ct(Object.assign({layerType:a},e))}}),paint:e=>Et({layer:r,key:e.key,value:e.value,valueSpec:{},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":e=>lt(Object.assign({layerType:a,layer:r},e))}}),appearances(t){const i=Ze({key:t.key,value:t.value,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:t=>function(t){const{key:i,layer:r,layerType:n}=t,o=e.fT(t.value),s=e.fT(o.name),a=e.fT(o.condition),l=Et({key:i,value:o,valueSpec:t.styleSpec.appearance,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{condition:t=>function(t){const i=[];return i.push(...Xe({key:t.key,value:t.object.condition,valueSpec:e.fs.appearance.condition,expressionContext:"appearance"})),i}(Object.assign({layer:r,layerType:n},t)),properties:e=>function(e){const t=[],{styleSpec:i,layer:r,layerType:n}=e,o=i[`paint_${n}`],s=i[`layout_${n}`],a=e.object[e.objectKey];for(const l in a){const i=l in o?"paint":l in s?"layout":void 0;if(!i){t.push(new We(e.key,l,`unknown property "${l}" for layer type "${n}"`));continue}const c=Object.assign({},e,{key:`${e.key}.${l}`,object:a,objectKey:l,layer:r,layerType:n,value:a[l],valueSpec:"paint"===i?o[l]:s[l]});t.push(...at(c,i))}return t}(Object.assign({layer:r,layerType:n},e))}});return"hidden"!==s&&void 0===a&&l.push(new We(t.key,"name",'Appearance with name different than "hidden" must have a condition')),l}(Object.assign({layerType:a,layer:r},t))}),n=Array.isArray(t.value)?t.value:[],o=new Set;
vendor: 11,490 bytes, line 1
1return n.forEach((n,s)=>{const a=e.fT(n.name);if(a)if(o.has(a)){const n=e.fT(r.id);i.push(new We(t.key,a,`Duplicated appearance name "${a}" for layer "${n}"`))}else o.add(a)}),i}}})),i}function ut({key:t,value:i}){return e.dQ(i)?[]:[new We(t,i,`string expected, ${e.da(i)} found`)]}const dt={promoteId:function t({key:i,value:r}){if(e.dQ(r))return ut({key:i,value:r});if(Array.isArray(r)){const t=[],n=e.c3(r),o=e.bY(n);return"error"===o.result?(o.value.forEach(e=>{t.push(new We(`${i}${e.key}`,null,`${e.message}`))}),t):(e.dC(o.value.expression,["zoom","heatmap-density","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed"])||t.push(new We(`${i}`,null,"promoteId expression should be only feature dependent")),t)}if(!e.dN(r))return[new We(i,r,`string, expression or object expected, "${e.da(r)}" found`)];const n=[];for(const e in r)n.push(...t({key:`${i}.${e}`,value:r[e]}));return n}};function ft(t){const i=t.value,r=t.key,n=t.styleSpec,o=t.style;if(!e.dN(i))return[new We(r,i,`object expected, ${e.da(i)} found`)];if(!("type"in i))return[new We(r,i,'"type" is required')];const s=e.fT(i.type);let a=[];switch(["vector","raster","raster-dem","raster-array"].includes(s)&&("url"in i||"tiles"in i||a.push(new Je(r,i,'Either "url" or "tiles" is required.'))),s){case"vector":case"raster":case"raster-dem":case"raster-array":return a=a.concat(Et({key:r,value:i,valueSpec:n[`source_${s.replace("-","_")}`],style:t.style,styleSpec:n,objectElementValidators:dt})),a;case"geojson":if(a=Et({key:r,value:i,valueSpec:n.source_geojson,style:o,styleSpec:n,objectElementValidators:dt}),"cluster"in i&&"clusterProperties"in i){if(!e.dN(i.clusterProperties))return[new We(`${r}.clusterProperties`,i,`object expected, ${e.da(i)} found`)];for(const e in i.clusterProperties){const t=i.clusterProperties[e];if(!Array.isArray(t))return[new We(`${r}.clusterProperties.${e}`,t,"array expected")];const[n,o]=t,s="string"==typeof n?[n,["accumulated"],["get",e]]:n;a.push(...Xe({key:`${r}.${e}.map`,value:o,expressionContext:"cluster-map"})),a.push(...Xe({key:`${r}.${e}.reduce`,value:s,expressionContext:"cluster-reduce"}))}}return a;case"video":return Et({key:r,value:i,valueSpec:n.source_video,style:o,styleSpec:n});case"image":return Et({key:r,value:i,valueSpec:n.source_image,style:o,styleSpec:n});case"canvas":return[new We(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return rt({key:`${r}.type`,value:i.type,valueSpec:{values:pt(n)}})}}function pt(e){return e.source.reduce((t,i)=>{const r=e[i];return"enum"===r.type.type&&(t=t.concat(Object.keys(r.type.values||{}))),t},[])}function At(e,t){const i=!e.includes("://");try{return new URL(e,i&&t?"http://example.com":void 0),!0}catch(e){return!1}}function gt(t){const i=t.value;return i?e.dQ(i)?At(i,!0)?[]:[new We(t.key,i,`invalid url "${i}"`)]:[new We(t.key,i,`string expected, "${e.da(i)}" found`)]:[]}function mt(t){const i=t.value,r=t.styleSpec,n=r.light,o=t.style;if(void 0===i)return[];if(!e.dN(i))return[new We("light",i,`object expected, ${e.da(i)} found`)];let s=[];for(const a in i){const t=a.match(e.aY),l=a.match(e.b3);s=s.concat(l&&n[l[1]]?wt({key:a,value:i[a],valueSpec:{type:"string"},style:o,styleSpec:r}):t&&n[t[1]]&&n[t[1]].transition?wt({key:a,value:i[a],valueSpec:r.transition,style:o,styleSpec:r}):n[a]?wt({key:a,value:i[a],valueSpec:n[a],style:o,styleSpec:r}):[new We(a,i[a],`unknown property "${a}"`)])}return s}function _t(t){const i=t.value;if(!i)return[];const r=t.key;if(!e.dN(i))return[new We(r,i,`object expected, ${e.da(i)} found`)];let n=[];const o=t.styleSpec,s=o["light-3d"],a=t.style,l=t.style.lights;for(const e of["type","id"])if(!(e in i))return n=n.concat([new We(r,i,`missing property "${e}"`)]),n;if(!e.dQ(i.type))return n=n.concat([new We(`${r}.type`,i.type,"string expected")]),n;if(l)for(let u=0;u<t.arrayIndex;u++){const t=e.fT(i.type),o=l[u];e.fT(o.type)===t&&n.push(new We(r,i.id,`duplicate light type "${i.type}", previously defined at line ${o.id.__line__}`))}const c=`properties_light_${i.type}`;if(!(c in o))return n=n.concat([new We(`${r}.type`,i,`Invalid light type ${i.type}`)]),n;const h=o[c];for(const u in i)if("properties"===u){const r=i[u];if(!e.dN(r))return n=n.concat([new We("properties",r,`object expected, ${e.da(r)} found`)]),n;for(const s in r){const l=s.match(e.aY),c=s.match(e.b3);n=n.concat(c&&h[c[1]]?wt({key:u,value:r[s],valueSpec:{type:"string"},style:a,styleSpec:o}):l&&h[l[1]]&&h[l[1]].transition?wt({key:u,value:i[u],valueSpec:o.transition,style:a,styleSpec:o}):h[s]?wt({key:s,value:r[s],valueSpec:h[s],style:a,styleSpec:o}):[new Je(t.key,r[s],`unknown property "${s}"`)])}}else n=n.concat(s[u]?wt({key:u,value:i[u],valueSpec:s[u],style:a,styleSpec:o}):[new Je(u,i[u],`unknown property "${u}"`)]);return n}function yt(t){const i=t.value,r=t.key,n=t.style,o=t.styleSpec,s=o.terrain;if(null==i)return[];if(!e.dN(i))return[new We("terrain",i,`object expected, ${e.da(i)} found`)];let a=[];for(const l in i){const t=l.match(e.aY),r=l.match(e.b3);a=a.concat(r&&s[r[1]]?wt({key:l,value:i[l],valueSpec:{type:"string"},style:n,styleSpec:o}):t&&s[t[1]]&&s[t[1]].transition?wt({key:l,value:i[l],valueSpec:o.transition,style:n,styleSpec:o}):s[l]?wt({key:l,value:i[l],valueSpec:s[l],style:n,styleSpec:o}):[new Je(l,i[l],`unknown property "${l}"`)])}if(i.source)if(e.dQ(i.source)){const t=n.sources&&Object.hasOwn(n.sources,i.source)?n.sources[i.source]:void 0,o=t&&e.fT(t.type);t?"raster-dem"!==o&&a.push(new We(`${r}.source`,i.source,`terrain cannot be used with a source of type ${o}, it only be used with a "raster-dem" source type`)):a.push(new We(`${r}.source`,i.source,`source "${i.source}" not found`))}else a.push(new We(`${r}.source`,i.source,"source must be a string"));else a.push(new We(r,i,'terrain is missing required property "source"'));return a}function xt(t){const i=t.value,r=t.style,n=t.styleSpec,o=n.fog;if(void 0===i)return[];if(!e.dN(i))return[new We("fog",i,`object expected, ${e.da(i)} found`)];let s=[];for(const a in i){const t=a.match(e.aY),l=a.match(e.b3);s=s.concat(l&&o[l[1]]?wt({key:a,value:i[a],valueSpec:{type:"string"},style:r,styleSpec:n}):t&&o[t[1]]&&o[t[1]].transition?wt({key:a,value:i[a],valueSpec:n.transition,style:r,styleSpec:n}):o[a]?wt({key:a,value:i[a],valueSpec:o[a],style:r,styleSpec:n}):[new Je(a,i[a],`unknown property "${a}"`)])}return s}const vt={"*":()=>[],array:Ze,boolean:function(t){const i=t.value,r=t.key;return e.du(i)?[]:[new We(r,i,`boolean expected, ${e.da(i)} found`)]},number:qe,color:function({key:t,value:i}){return e.dQ(i)?void 0===e.i.parse(e.fT(i))?[new We(t,i,`color expected, "${i}" found`)]:[]:[new We(t,i,`color expected, ${e.da(i)} found`)]},enum:rt,filter:nt,function:Ke,layer:ht,object:Et,source:ft,model:gt,light:mt,"light-3d":_t,terrain:yt,fog:xt,string:ut,formatted:function(e){return 0===ut(e).length?[]:Xe(e)},resolvedImage:function(e){return 0===ut(e).length?[]:Xe(e)},projection:function(t){const i=t.value,r=t.styleSpec,n=r.projection,o=t.style;if(e.dN(i)){let e=[];for(const t in i)e=e.concat(wt({key:t,value:i[t],valueSpec:n[t],style:o,styleSpec:r}));return e}return e.dQ(i)?[]:[new We("projection",i,`object or string expected, ${e.da(i)} found`)]},import:function(t){const i=t.key,{value:r,styleSpec:n}=t;if(!e.dN(r))return[new We(i,r,"import must be an object")];const{data:o,...s}=r;Object.defineProperty(s,"__line__",{value:r.__line__,enumerable:!1});let a=Et(Object.assign({},t,{value:s,valueSpec:n.import}));return""===e.fT(s.id)&&a.push(new We(`${t.key}.id`,s,"import id can't be an empty string")),"__proto__"===e.fT(s.id)&&a.push(new We(`${t.key}.id`,s,'import id can\'t be "__proto__"')),o&&(a=a.concat(It(o,n,{key:`${t.key}.data`}))),a},iconset:function(t){const i=t.value,r=t.key,n=t.styleSpec,o=t.style;if(!e.dN(i))return[new We(r,i,"object expected")];if(!i.type)return[new We(r,i,'"type" is required')];const s=e.fT(i.type);let a=[];if(a=a.concat(Et({key:r,value:i,valueSpec:n[`iconset_${s}`],style:o,styleSpec:n})),function(e,t){return!("source"!==e||!t.source)}(s,i)){const t=o.sources&&Object.hasOwn(o.sources,i.source)?o.sources[i.source]:void 0,n=t&&e.fT(t.type);t?"raster-array"!==n&&a.push(new We(r,i.source,`iconset cannot be used with a source of type ${String(n)}, it only be used with a "raster-array" source type`)):a.push(new We(r,i.source,`source "${i.source}" not found`))}return a},option:function(t){const i=t.styleSpec,r=t.value,n=e.dN(r)&&!0===e.fT(r.array)||!e.dN(r)?void 0:e.fT(r.type);return Et(Object.assign({},t,{valueSpec:i.option,objectElementValidators:n?{default:e=>Array.isArray(e.value)?wt(Object.assign({},e,{valueSpec:Object.assign({},e.valueSpec,{type:n})})):wt(e)}:void 0}))}};function wt(t,i=!1){const r=t.value,n=t.valueSpec,o=t.styleSpec;if(n.expression){if(e.dB(e.fT(r)))return Ke(t);if(e.dv(e.c3(r)))return Xe(t)}if(n.type&&vt[n.type]){const e=vt[n.type](t);return!0===i&&e.length>0&&Array.isArray(t.value)?Xe(t):e}return Et(Object.assign({},t,{valueSpec:n.type?o[n.type]:n}))}function Et(t){const i=t.key,r=t.value,n=t.valueSpec||{},o=t.objectElementValidators||{},s=t.style,a=t.styleSpec;if(!e.dN(r))return[new We(i,r,`object expected, ${e.da(r)} found`)];let l=[];for(const e in r){if(!Object.hasOwn(r,e))continue;const t=e.split(".")[0],c=Object.hasOwn(n,t),h=Object.hasOwn(n,"*"),u=c?n[t]:h?n["*"]:void 0;let d;Object.hasOwn(o,t)?d=o[t]:c?d=wt:Object.hasOwn(o,"*")?d=o["*"]:h&&(d=wt),d?l=l.concat(d({key:(i?`${i}.`:i)+e,value:r[e],valueSpec:u,style:s,styleSpec:a,object:r,objectKey:e},r)):l.push(new Je(i,r[e],`unknown property "${e}"`))}for(const e in n){if(!Object.hasOwn(n,e))continue;if(Object.hasOwn(o,e))continue;const t=n[e];!t.required||void 0!==t.default||Object.hasOwn(r,e)&&void 0!==r[e]||l.push(new We(i,r,`missing required property "${e}"`))}return l}function bt({key:e,value:t}){const i=ut({key:e,value:t});if(i.length)return i;const r=t;return r.includes("{fontstack}")||i.push(new We(e,t,'"glyphs" url must include a "{fontstack}" token')),r.includes("{range}")||i.push(new We(e,t,'"glyphs" url must include a "{range}" token')),i}function It(t,i=e.fs,r={}){return Et({key:r.key||"",value:t,valueSpec:Object.assign({},i.$root,{"*":{type:"*"}}),styleSpec:i,style:t,objectElementValidators:{glyphs:bt}})}function Ct(t,i=e.fs){return kt(It(t,i))}const Bt=e=>kt(ft(e)),Dt=e=>kt(mt(e)),Tt=e=>kt(_t(e)),Mt=e=>kt(yt(e)),Qt=e=>kt(xt(e)),St=t=>kt(function(t){const i=t.value,r=t.style,n=t.styleSpec,o=n.snow;if(void 0===i)return[];if(!e.dN(i))return[new We("snow",i,`object expected, ${e.da(i)} found`)];let s=[];for(const a in i){const t=a.match(e.aY);s=s.concat(t&&o[t[1]]&&o[t[1]].transition?wt({key:a,value:i[a],valueSpec:n.transition,style:r,styleSpec:n}):o[a]?wt({key:a,value:i[a],valueSpec:o[a],style:r,styleSpec:n}):[new Je(a,i[a],`unknown property "${a}"`)])}return s}(t)),Pt=t=>kt(function(t){const i=t.value,r=t.style,n=t.styleSpec,o=n.rain;if(void 0===i)return[];if(!e.dN(i))return[new We("rain",i,`object expected, ${e.da(i)} found`)];let s=[];for(const a in i){const t=a.match(e.aY);s=s.concat(t&&o[t[1]]&&o[t[1]].transition?wt({key:a,value:i[a],valueSpec:n.transition,style:r,styleSpec:n}):o[a]?wt({key:a,value:i[a],valueSpec:o[a],style:r,styleSpec:n}):[new Je(a,i[a],`unknown property "${a}"`)])}return s}(t)),Rt=e=>kt(ht(e)),zt=e=>kt(nt(e)),Lt=e=>kt(lt(e)),Ft=e=>kt(ct(e)),Ot=e=>kt(gt(e));function kt(e){return e.slice().sort((e,t)=>
1e.line&&t.line?e.line-t.line:0)}function Nt(t,i){let r=!1;if(i&&i.length)for(const n of i)n instanceof Je?e.f_(n.message):(t.fire(new e.v(new Error(n.message))),r=!0);return r}const Ut=e.fs.light;let Vt;class Ht extends e.y{constructor(t,i="flat"){super(),this._transitionable=new e.b2(Vt||(Vt=new e.ax({anchor:new e.l(Ut.anchor),position:new e.av(Ut.position),color:new e.l(Ut.color),intensity:new e.l(Ut.intensity)}))),this.setLight(t,i),this._transitioning=this._transitionable.untransitioned()}getLight(){return this._transitionable.serialize()}setLight(e,t,i={}){this._validate(Dt,e,i)||(this._transitionable.setTransitionOrValue(e),this.id=t)}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,i,r){return(!r||!1!==r.validate)&&Nt(this,t.call(Ct,Object.assign({value:i,style:{glyphs:!0,sprite:!0},styleSpec:e.fs})))}}const jt=e.fs.terrain;let Gt=class extends e.y{constructor(t,i,r,n,o){super(),this.scope=r,this._transitionable=new e.b2(new e.ax({source:new e.l(jt.source),exaggeration:new e.l(jt.exaggeration)}),r,n),this._transitionable.setTransitionOrValue(t,n),this._transitioning=this._transitionable.untransitioned(),this.drapeRenderMode=i,this.worldview=o}get(){return this._transitionable.serialize()}set(e,t){this._transitionable.setTransitionOrValue(e,t)}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}getExaggeration(t){return this._transitioning.possiblyEvaluate(new e.w(t,{worldview:this.worldview})).get("exaggeration")}getAttenuationRange(){if(!this.isZoomDependent())return null;const t=this._transitionable._values.exaggeration;if(!t)return null;const i=t.value.expression;if(!i)return null;let r=-1,n=-1,o=1;for(const s of i.zoomStops)o=i.evaluate(new e.w(s,{worldview:this.worldview})),o>.01?(r=s,n=-1):n=s;return o<.01&&r>0&&n>r?[r,n]:null}isZoomDependent(){const t=this._transitionable._values.exaggeration;return null!=t&&null!=t.value&&null!=t.value.expression&&t.value.expression instanceof e.bh}};const Yt=.05;function Wt(t,i,r){const n=e.fq(45,65,r),[o,s]=t.range;let a=1-Math.min(1,Math.exp((i-o)/(s-o)*-6));return a*=a*a,a=Math.min(1,1.00747*a),a*n*t.alpha}function Jt(t,i,r,n,o){const s=e.fL([],[i,r,n],o.mercatorFogMatrix);return Wt(t,e.dW(s),o.pitch)}function Zt(t,i,r,n,o,s,a){const l=[[r,n,0],[o,n,0],[o,s,0],[r,s,0]];let c=Number.MAX_VALUE,h=-Number.MAX_VALUE;for(const u of l){const t=e.fL([],u,i),r=e.dW(t);c=Math.min(c,r),h=Math.max(h,r)}return[Wt(t,c,a.pitch),Wt(t,h,a.pitch)]}const qt=e.fs.fog;class Kt extends e.y{constructor(t,i,r,n){super();const o=new e.ax({range:new e.l(qt.range),color:new e.l(qt.color),"color-use-theme":new e.l({type:"string","property-type":"data-constant",default:"default"}),"high-color":new e.l(qt["high-color"]),"high-color-use-theme":new e.l({type:"string","property-type":"data-constant",default:"default"}),"space-color":new e.l(qt["space-color"]),"space-color-use-theme":new e.l({type:"string","property-type":"data-constant",default:"default"}),"horizon-blend":new e.l(qt["horizon-blend"]),"star-intensity":new e.l(qt["star-intensity"]),"vertical-range":new e.l(qt["vertical-range"])});this._transitionable=new e.b2(o,r,n),this.set(t,n),this._transitioning=this._transitionable.untransitioned(),this._transform=i,this.properties=new e.aw(o),this.scope=r}get state(){const t=this._transform,i="globe"===t.projection.name,r=e.dm(t.zoom),n=this.properties.get("range"),o=[2,4.5],s=.5/Math.tan(.5*t._fov),a=[n[0]+s,n[1]+s];return{range:i?[e.dY(o[0],a[0],r),e.dY(o[1],a[1],r)]:a,horizonBlend:this.properties.get("horizon-blend"),alpha:this.properties.get("color").a}}get(){return this._transitionable.serialize()}set(e,t,i={}){if(this._validate(Qt,e,i))return;const r=Object.assign({},e);for(const n of Object.keys(qt))void 0===r[n]&&(r[n]=qt[n].default);this._options=r,this._transitionable.setTransitionOrValue(this._options,t)}getOpacity(t){if(!this._transform.projection.supportsFog)return 0;const i=this.properties&&this.properties.get("color")||1;return("globe"===this._transform.projection.name?1:e.fq(45,65,t))*i.a}getOpacityAtLatLng(t,i){return this._transform.projection.supportsFog?function(t,i,r){const n=e.ag.fromLngLat(i),o=r.elevation?r.elevation.getAtPointOrZero(n):0;return Jt(t,n.x,n.y,o,r)}(this.state,t,i):0}getOpacityForTile(t){if(!this._transform.projection.supportsFog)return[1,1];const i=this._transform.calculateFogTileMatrix(t.toUnwrapped());return Zt(this.state,i,0,0,e.r,e.r,this._transform)}getOpacityForBounds(e,t,i,r,n){return this._transform.projection.supportsFog?Zt(this.state,e,t,i,r,n,this._transform):[1,1]}getRangeForProjection(){return this._transform.projection.supportsFog?this.state.range:[0,1]}isVisibleOnFrustum(t){if(!this._transform.projection.supportsFog)return!1;const i=[4,5,6,7];for(const r of i){const i=t.points[r];let n;if(i[2]>=0)n=i;else{const o=t.points[r-4];n=e.bo(o,i,o[2]/(o[2]-i[2]))}if(Jt(this.state,n[0],n[1],0,this._transform)>=Yt)return!0}return!1}updateConfig(e){this._transitionable.setTransitionOrValue(this._options,e)}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,i,r){return(!r||!1!==r.validate)&&Nt(this,t.call(Ct,Object.assign({value:i,style:{glyphs:!0,sprite:!0},styleSpec:e.fs})))}}let Xt,$t,ei=class extends e.y{constructor(t,i,r,n){super();const o=Xt||(Xt=new e.ax({density:new e.l(e.fs.snow.density),intensity:new e.l(e.fs.snow.intensity),color:new e.l(e.fs.snow.color),opacity:new e.l(e.fs.snow.opacity),vignette:new e.l(e.fs.snow.vignette),"vignette-color":new e.l(e.fs.snow["vignette-color"]),"center-thinning":new e.l(e.fs.snow["center-thinning"]),direction:new e.l(e.fs.snow.direction),"flake-size":new e.l(e.fs.snow["flake-size"])}));this._transitionable=new e.b2(o,r,n),this.set(t,n),this._transitioning=this._transitionable.untransitioned(),this.properties=new e.aw(o),this.scope=r}get state(){const t=this.properties.get("opacity"),i=this.properties.get("color"),r=this.properties.get("direction"),n=e.c4(r[0]),o=-Math.max(e.c4(r[1]),.01),s=[Math.cos(n)*Math.cos(o),Math.sin(n)*Math.cos(o),Math.sin(o)],a=this.properties.get("vignette"),l=this.properties.get("vignette-color"),c=new e.i(l.r,l.g,l.b,a);return{density:this.properties.get("density"),intensity:this.properties.get("intensity"),color:new e.i(i.r,i.g,i.b,i.a*t),direction:s,centerThinning:this.properties.get("center-thinning"),flakeSize:this.properties.get("flake-size"),vignetteColor:c}}get(){return this._transitionable.serialize()}set(t,i,r={}
1){if(this._validate(St,t,r))return;const n=Object.assign({},t),o=e.fs.snow;for(const e of Object.keys(o))void 0===n[e]&&(n[e]=o[e].default);this._options=n,this._transitionable.setTransitionOrValue(this._options,i)}updateConfig(e){this._transitionable.setTransitionOrValue(this._options,e)}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,i,r){return(!r||!1!==r.validate)&&Nt(this,t.call(Ct,Object.assign({value:i,style:{glyphs:!0,sprite:!0},styleSpec:e.fs})))}},ti=class extends e.y{constructor(t,i,r,n){super();const o=$t||($t=new e.ax({density:new e.l(e.fs.rain.density),intensity:new e.l(e.fs.rain.intensity),color:new e.l(e.fs.rain.color),opacity:new e.l(e.fs.rain.opacity),vignette:new e.l(e.fs.rain.vignette),"vignette-color":new e.l(e.fs.rain["vignette-color"]),"center-thinning":new e.l(e.fs.rain["center-thinning"]),direction:new e.l(e.fs.rain.direction),"droplet-size":new e.l(e.fs.rain["droplet-size"]),"distortion-strength":new e.l(e.fs.rain["distortion-strength"])}));this._transitionable=new e.b2(o,r,n),this.set(t,n),this._transitioning=this._transitionable.untransitioned(),this.properties=new e.aw(o),this.scope=r}get state(){const t=this.properties.get("opacity"),i=this.properties.get("color"),r=this.properties.get("direction"),n=e.c4(r[0]),o=-Math.max(e.c4(r[1]),.01),s=[Math.cos(n)*Math.cos(o),Math.sin(n)*Math.cos(o),Math.sin(o)],a=this.properties.get("vignette-color"),l=new e.i(a.r,a.g,a.b,this.properties.get("vignette"));return{density:this.properties.get("density"),intensity:this.properties.get("intensity"),color:new e.i(i.r,i.g,i.b,i.a*t),direction:s,centerThinning:this.properties.get("center-thinning"),dropletSize:this.properties.get("droplet-size"),distortionStrength:this.properties.get("distortion-strength"),vignetteColor:l}}get(){return this._transitionable.serialize()}set(t,i,r={}){if(this._validate(Pt,t,r))return;const n=Object.assign({},t),o=e.fs.rain;for(const e of Object.keys(o))void 0===n[e]&&(n[e]=o[e].default);this._options=n,this._transitionable.setTransitionOrValue(this._options,i)}updateConfig(e){this._transitionable.setTransitionOrValue(this._options,e)}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,i,r){return(!r||!1!==r.validate)&&Nt(this,t.call(Ct,Object.assign({value:i,style:{glyphs:!0,sprite:!0},styleSpec:e.fs})))}};const ii={workerUrl:"",workerClass:null,workerParams:void 0};function ri(e){return null!=ii.workerClass?new ii.workerClass:new self.Worker(ii.workerUrl,Object.assign({name:e},ii.workerParams))}const ni="mapboxgl_preloaded_worker_pool";class oi{constructor(e){this.active={},this.name=e}acquire(e,t=oi.workerCount){if(!this.workers)for(this.workers=[];this.workers.length<t;){const t=ri(`${this.name||""}WorkerPool: ${e}-${this.workers.length}`);this.workers.push(t)}return this.active[e]=!0,this.workers.slice()}release(e){delete this.active[e],this.workers&&0===this.numActive()&&(this.workers.forEach(e=>{e.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[ni]}numActive(){return Object.keys(this.active).length}}oi.workerCount=2;class si{constructor(t,i,r="Worker",n=oi.workerCount){this.workerPool=t,this.actors=[],this.currentActor=0,this.id=e.fU();const o=this.workerPool.acquire(this.id,n);for(let e=0;e<o.length;e++){const t=new si.Actor(o[e],i,this.id);t.name=`${r} ${e}`,this.actors.push(t)}this.ready=!1,this.broadcast("checkIfReady",null,()=>{this.ready=!0})}broadcast(t,i,r){e.bp(this.actors,(e,r)=>{e.send(t,i,r)},r=r||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)}}si.Actor=e.a;class ai extends e.y{constructor(t,i,r,n){super(),this.scope=r,this._options=t,this.properties=new e.aw(i),this._transitionable=new e.b2(i,r,n),this._transitionable.setTransitionOrValue(t.properties),this._transitioning=this._transitionable.untransitioned()}updateConfig(e){this._transitionable.setTransitionOrValue(this._options.properties,e)}updateTransitions(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)}hasTransition(){return this._transitioning.hasTransition()}recalculate(e){this.properties=this._transitioning.possiblyEvaluate(e)}get(){return this._options.properties=this._transitionable.serialize(),this._options}set(e,t){this._options=e,this._transitionable.setTransitionOrValue(e.properties,t)}shadowsEnabled(){return!!this.properties&&!0===this.properties.get("cast-shadows")}}let li;const ci=()=>li||(li=new e.ax({color:new e.l(e.fs.properties_light_ambient.color),"color-use-theme":new e.l({type:"string",default:"default","property-type":"data-constant"}),intensity:new e.l(e.fs.properties_light_ambient.intensity)}));let hi;const ui=()=>hi||(hi=new e.ax({direction:new e.p(e.fs.properties_light_directional.direction),color:new e.l(e.fs.properties_light_directional.color),"color-use-theme":new e.l({type:"string",default:"default","property-type":"data-constant"}),intensity:new e.l(e.fs.properties_light_directional.intensity),"cast-shadows":new e.l(e.fs.properties_light_directional["cast-shadows"]),"shadow-quality":new e.l(e.fs.properties_light_directional["shadow-quality"]),"shadow-intensity":new e.l(e.fs.properties_light_directional["shadow-intensity"]),"shadow-draw-before-layer":new e.l(e.fs.properties_light_directional["shadow-draw-before-layer"])})),di=(e,t,i,r,n,o,s,a,l,c=[0,0,1])=>({u_matrix:e,u_normal_matrix:t,u_opacity:i,u_faux_facade_ao_intensity:r,u_camera_pos:n,u_tile_to_meter:o,u_facade_emissive_chance:s,u_flood_light_color:a,u_flood_light_intensity:l,u_front_cutoff_params:c}),fi=e=>({u_matrix:e}),pi=e=>({u_matrix:e}),Ai=1029,gi=2305;class mi{constructor(e,t,i){this.enable=e,this.mode=t,this.frontFace=i}}mi.disabled=new mi(!1,Ai,gi),mi.backCCW=new mi(!0,Ai,gi),mi.backCW=new mi(!0,Ai,2304),mi.frontCW=new mi(!0,1028,2304),mi.frontCCW=new mi(!0,1028,gi);class _i{constructor(e,t,i){this.func=e,this.mask=t,this.range=i}}_i.ReadOnly=!1,_i.ReadWrite=!0,_i.disabled=new _i(519,_i.ReadOnly,[0,1]);class yi{constructor(e=0,t=0,i=0,r=0){if(isNaN(e)||e<0||isNaN(t)||t<0||isNaN(i)||i<0||isNaN(r)||r<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=i,this.right=r}interpolate(t,i,r){return null!=i.top&&null!=t.top&&(this.top=e.dY(t.top,i.top,r)),null!=i.bottom&&null!=t.bottom&&(this.bottom=e.dY(t.bottom,i.bottom,r)),null!=i.left&&null!=t.left&&(this.left=e.dY(t.left,i.left,r)),null!=i.right&&null!=t.right&&(this.right=e.dY(t.right,i.right,r)),this}getCenter(t,i){const r=e.bG((this.left+t-this.right)/2,0,t),n=e.bG((this.top+i-this.bottom)/2,0,i);return new e.au(r,n)}equals(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}clone(){return new yi(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function xi(t,i){const r=e.cL(t,3);e.ct(t,i),e.fk(t,3,r)}function vi(t,i){const r=e.dp([]);return e.f5(r,r,-i),e.f2(r,r,-t),r}function wi(t,i){const r=[t[0],t[1],0],n=[i[0],i[1],0];if(e.dW(r)>=1e-15){const t=e.ex([],r);e.fa(n,t,e.c7(n,t)),i[0]=n[0],i[1]=n[1]}const o=e.c1([],i,t);
1if(e.dV(o)<1e-15)return null;const s=Math.atan2(-o[1],o[0]);return vi(Math.atan2(Math.sqrt(t[0]*t[0]+t[1]*t[1]),-t[2]),s)}class Ei{constructor(e,t){this.position=e,this.orientation=t}get position(){return this._position}set position(t){if(t){const i=t instanceof e.ag?t:new e.ag(t[0],t[1],t[2]);this._renderWorldCopies&&(i.x=e.f$(i.x,0,1)),this._position=i}else this._position=null}lookAtPoint(t,i,r){if(this.orientation=null,!this.position)return;const n=this.position,o=r||(this._elevation?this._elevation.getAtPointOrZero(e.ag.fromLngLat(t)):0),s=e.ag.fromLngLat(t,o),a=[s.x-n.x,s.y-n.y,s.z-n.z];i||(i=[0,0,1]),i[2]=Math.abs(i[2]),this.orientation=wi(a,i)}setPitchBearing(t,i){this.orientation=vi(e.c4(t),e.c4(-i))}}class bi{constructor(t,i){this._transform=e.dq([]),this.orientation=i,this.position=t}get mercatorPosition(){const t=this.position;return new e.ag(t[0],t[1],t[2])}get position(){const t=e.cL(this._transform,3);return[t[0],t[1],t[2]]}set position(t){var i;t&&e.fk(this._transform,3,[(i=t)[0],i[1],i[2],1])}get orientation(){return this._orientation}set orientation(t){this._orientation=t||e.dp([]),t&&xi(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=vi(e,t),xi(this._transform,this._orientation)}forward(){const t=e.cL(this._transform,2);return[-t[0],-t[1],-t[2]]}up(){const t=e.cL(this._transform,1);return[-t[0],-t[1],-t[2]]}right(){const t=e.cL(this._transform,0);return[t[0],t[1],t[2]]}getCameraToWorld(t,i){const r=new Float64Array(16);return e.dr(r,this.getWorldToCamera(t,i)),r}getCameraToWorldMercator(){return this._transform}getWorldToCameraPosition(t,i,r){const n=this.position;e.fa(n,n,-t);const o=new Float64Array(16);return e.cv(o,[r,r,r]),e.fQ(o,o,n),o[10]*=i,o}getWorldToCamera(t,i){const r=new Float64Array(16),n=new Float64Array(4),o=this.position;return e.bO(n,this._orientation),e.fa(o,o,-t),e.ct(r,n),e.fQ(r,r,o),r[1]*=-1,r[5]*=-1,r[9]*=-1,r[13]*=-1,r[8]*=i,r[9]*=i,r[10]*=i,r[11]*=i,r}getCameraToClipPerspective(t,i,r,n){const o=new Float64Array(16);return e.eE(o,t,i,r,n),o}getCameraToClipOrthographic(t,i,r,n,o,s){const a=new Float64Array(16);return e.eB(a,t,i,r,n,o,s),a}getDistanceToElevation(t,i=!1){const r=0===t?0:e.em(t,i?e.dT(this.position[1]):this.position[1]),n=this.forward();return(r-this.position[2])/n[2]}clone(){return new bi([...this.position],[...this.orientation])}}const Ii=Math.tan(85*Math.PI/180);function Ci(t,i,r,n,o,s,a){const l=e.bT();if(r)if("globe"===s.name){const t=e.bw(o,i);e.er(l,l,t)}else{const t=e.ds([],a);l[0]=t[0],l[1]=t[1],l[4]=t[2],l[5]=t[3],n||e.f6(l,l,o.angle)}else e.er(l,o.labelPlaneMatrix,t);return l}function Bi(e,t,i,r,n,o,s){const a=Ci(e,t,i,r,n,o,s);return"globe"===o.name&&i||(a[2]=a[6]=a[10]=a[14]=0),a}function Di(t,i,r,n,o,s,a){if(r){if("globe"===s.name){const l=Ci(t,i,r,n,o,s,a);return e.dr(l,l),e.er(l,t,l),l}{const i=e.bJ(t),[r,s,l,c]=a,[h,u,d,f,p,A,g,m]=i;return i[0]=r*h+s*p,i[1]=r*u+s*A,i[2]=r*d+s*g,i[3]=r*f+s*m,i[4]=l*h+c*p,i[5]=l*u+c*A,i[6]=l*d+c*g,i[7]=l*f+c*m,n||e.f6(i,i,-o.angle),i}}return o.glCoordMatrix}function Ti(t,i,r,n){const o=[t,i,r,1];r?e.fM(o,o,n):Ni(o,o,n);const s=o[3];return o[0]/=s,o[1]/=s,o[2]/=s,o}function Mi(e,t){return Math.min(.5+e/t*.5,1.5)}function Qi(e,t){const i=e[0]/e[3],r=e[1]/e[3];return i>=-t[0]&&i<=t[0]&&r>=-t[1]&&r<=t[1]}function Si(t,i,r,n,o,s,a,l,c,h,u=1){const d=r.transform,f=n?t.textSizeData:t.iconSizeData,p=e.ci(f,r.transform.zoom,u),A="globe"===d.projection.name,g=[256/r.width*2+1,256/r.height*2+1],m=n?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;m.clear();let _=null;A&&(_=n?t.text.globeExtVertexArray:t.icon.globeExtVertexArray);const y=t.lineVertexArray,x=n?t.text.placedSymbolArray:t.icon.placedSymbolArray,v=r.transform.width/r.transform.height;let w,E=!1;for(let b=0;b<x.length;b++){const u=x.get(b),{numGlyphs:A,writingMode:I}=u;if(I!==e.bg.vertical||E||w===e.bg.horizontal||(E=!0),w=I,(u.hidden||I===e.bg.vertical)&&!E){ki(A,m);continue}E=!1;const C=new e.au(u.tileAnchorX,u.tileAnchorY),B="road"===t.elevationType,D=!!d.elevation||B;let{x:T,y:M,z:Q}=d.projection.projectTilePoint(C.x,C.y,h.canonical),S=null;if(D){const e=B&&t.hdExt?t.hdExt.getElevationFeatureForPlacedSymbol(t,n?t.text:t.icon,b):null;S={getElevation:c,elevation:d.elevation,elevationFeature:e};const[i,r,o]=c(C,d.elevation,e);T+=i,M+=r,Q+=o}const P=[T,M,Q,1];if(e.fM(P,P,i),!Qi(P,g)){ki(A,m);continue}const R=P[3],z=Mi(r.transform.getCameraToCenterDistance(d.projection),R),L=e.ch(f,p,u),F=a?L/z:L*z,O=Ti(T,M,Q,o);if(O[3]<=0){ki(A,m);continue}let k={};const N=e.c4(t.layers[0].layout.get("text-max-angle")),U=Math.cos(N),V=a?null:S,H=zi(u,F,!1,l,i,o,s,t.glyphOffsetArray,y,m,_,O,C,k,v,V,d.projection,h,a,U);E=H.useVertical,V&&H.needsFlipping&&(k={}),(H.notEnoughRoom||E||H.needsFlipping&&zi(u,F,!0,l,i,o,s,t.glyphOffsetArray,y,m,_,O,C,k,v,V,d.projection,h,a,U).notEnoughRoom)&&ki(A,m)}n?(t.text.dynamicLayoutVertexBuffer.updateData(m),_&&t.text.globeExtVertexBuffer&&t.text.globeExtVertexBuffer.updateData(_)):(t.icon.dynamicLayoutVertexBuffer.updateData(m),_&&t.icon.globeExtVertexBuffer&&t.icon.globeExtVertexBuffer.updateData(_))}function Pi(e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g){const{lineStartIndex:m,glyphStartIndex:_,segment:y}=a,x=_+a.numGlyphs,v=m+a.lineLength,w=t.getoffsetX(_),E=t.getoffsetX(x-1),b=Oi(e*w,i,r,n,o,s,y,m,v,l,c,h,u,d,!0,f,p,A,g);if(!b)return null;const I=Oi(e*E,i,r,n,o,s,y,m,v,l,c,h,u,d,!0,f,p,A,g);return I?{first:b,last:I}:null}function Ri(t,i,r,n){return t===e.bg.horizontal&&Math.abs(n)>Math.abs(r)?{useVertical:!0}:t===e.bg.vertical?n>0?{needsFlipping:!0}:null:0!==i&&function(e,t){return 0===e||Math.abs(t/e)>Ii}(r,n)?1===i?{needsFlipping:!0}:null:r<0?{needsFlipping:!0}:null}function zi(t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m,_,y,x){const v=i/24,w=t.lineOffsetX*v,E=t.lineOffsetY*v,{lineStartIndex:b,glyphStartIndex:I,numGlyphs:C,segment:B,writingMode:D,flipState:T}=t,M=b+t.lineLength,Q=t=>{if(u){const[i,r,n]=t.up,o=h.length;
1e.fW(u,o+0,i,r,n),e.fW(u,o+1,i,r,n),e.fW(u,o+2,i,r,n),e.fW(u,o+3,i,r,n)}const[i,r,n]=t.point;e.bl(h,i,r,n,t.angle)};if(C>1){const e=Pi(v,l,w,E,r,d,f,t,c,s,p,g,!1,m,_,y,x);if(!e)return{notEnoughRoom:!0};if(n&&!r){let[i,r,n]=e.first.point,[o,s,l]=e.last.point;[i,r]=Ti(i,r,n,a),[o,s]=Ti(o,s,l,a);const c=Ri(D,T,(o-i)*A,s-r);if(t.flipState=c&&c.needsFlipping?1:2,c)return c}Q(e.first);for(let t=I+1;t<I+C-1;t++){const e=Oi(v*l.getoffsetX(t),w,E,r,d,f,B,b,M,c,s,p,g,!1,!1,m,_,y,x);if(!e)return h.length-=4*(t-I),{notEnoughRoom:!0};Q(e)}Q(e.last)}else{if(n&&!r){const i=Ti(f.x,f.y,0,o),r=b+B+1,n=new e.au(c.getx(r),c.gety(r)),s=Ti(n.x,n.y,0,o),a=s[3]>0?s:Fi(f,n,i,1,o,void 0,m,_.canonical),l=Ri(D,T,(a[0]-i[0])*A,a[1]-i[1]);if(t.flipState=l&&l.needsFlipping?1:2,l)return l}const i=Oi(v*l.getoffsetX(I),w,E,r,d,f,B,b,M,c,s,p,g,!1,!1,m,_,y,x);if(!i)return{notEnoughRoom:!0};Q(i)}return{}}function Li(e,t,i,r,n){const{x:o,y:s,z:a}=r.projectTilePoint(e.x,e.y,t);if(!n)return Ti(o,s,a,i);const[l,c,h]=n.getElevation(e,n.elevation,n.elevationFeature);return Ti(o+l,s+c,a+h,i)}function Fi(t,i,r,n,o,s,a,l){const c=Li(t.sub(i)._unit()._add(t),l,o,a,s);return e.fx(c,r,c),e.ex(c,c),e.fe(c,r,c,n)}function Oi(t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m,_,y){const x=n?t-i:t+i;let v=x>0?1:-1,w=0;n&&(v*=-1,w=Math.PI),v<0&&(w+=Math.PI);let E=l+a+(v>0?0:1)|0,b=o,I=o,C=0,B=0;const D=Math.abs(x),T=[],M=[];let Q=s,S=Q,P=e.g0([]);const R=()=>Fi(S,Q,I,D-C+1,u,f,g,m.canonical);for(;C+B<=D;){if(E+=v,E<l||E>=c)return null;if(I=b,S=Q,T.push(I),p&&M.push(S),Q=new e.au(h.getx(E),h.gety(E)),b=d[E],!b){const e=Li(Q,m.canonical,u,g,f);b=e[3]>0?d[E]=e:R()}C+=B;const t=e.fx([],b,I),i=e.c5(I,b);if(r&&i>0&&B>0&&e.c7(P,t)/(B*i)<y)return null;B=i,P=t}A&&f&&(d[E]&&(b=R(),B=e.c5(I,b),P=e.fx([],b,I)),d[E]=b);const z=(D-C)/B,L=Q.sub(S)._mult(z)._add(S),F=e.fe([],I,P,z);let O=[0,0,1],k=P[0],N=P[1];if(_&&(O=g.upVector(m.canonical,L.x,L.y),0!==O[0]||0!==O[1]||1!==O[2])){const t=[O[2],0,-O[0]],i=e.c1([],O,t);e.ex(t,t),e.ex(i,i),k=e.c7(P,t),N=e.c7(P,i)}if(r){const t=e.c1([],O,P);e.ex(t,t),e.fe(F,F,t,r*v)}const U=w+Math.atan2(N,k);return T.push(F),p&&M.push(L),{point:F,angle:U,path:T,tilePath:M,up:O}}function ki(e,t){const i=t.length,r=i+4*e;t.resize(r),t.float32.fill(-1/0,4*i,4*r)}function Ni(e,t,i){const r=t[0],n=t[1];return e[0]=i[0]*r+i[4]*n+i[12],e[1]=i[1]*r+i[5]*n+i[13],e[3]=i[3]*r+i[7]*n+i[15],e}const Ui=15;class Vi{constructor(t,i,r,n,o,s,a){this.tileSize=512,this._renderWorldCopies=void 0===o||o,this._minZoom=t||0,this._maxZoom=i||22,this._minPitch=null!==r&&void 0!==r?r:0,this._maxPitch=null!==n&&void 0!==n?n:60,this.setProjection(s),this.setMaxBounds(a),this.width=0,this.height=0,this._center=new e.ab(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._nearClipOffset=0,this._unmodified=!0,this._edgeInsets=new yi,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._expandedProjMatrixCache={},this._distanceTileDataCache={},this._camera=new bi,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._pixelsPerMercatorPixel=1,this.globeRadius=0,this.globeCenterInViewSpace=[0,0,0],this._tileCoverLift=0,this.freezeTileCoverage=!1,this._horizonShift=.1,this._orthographicProjectionAtLowPitch=!1,this._allowWorldUnderZoom=!1,this.mercatorMatrix=new Float64Array(16),this.mercatorFogMatrix=new Float32Array(16),this.invProjMatrix=new Float64Array(16),this._expandedFarZProjMatrixBuf=new Float64Array(16),this.expandedFarZProjMatrix=this._expandedFarZProjMatrixBuf,this.starsProjMatrix=new Float32Array(16),this.skyboxMatrix=new Float32Array(16),this._mat4Scratch=new Float64Array(16),this.alignedProjMatrix=new Float64Array(16),this.labelPlaneMatrix=new Float32Array(16),this.glCoordMatrix=new Float32Array(16),this.pixelMatrix=new Float64Array(16),this.pixelMatrixInverse=new Float64Array(16)}clone(){const e=new Vi(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies,this.getProjection(),this.maxBounds);return e._elevation=this._elevation,e._centerAltitude=this._centerAltitude,e._centerAltitudeValidForE
vendor: 5,339 bytes, line 1
1xaggeration=this._centerAltitudeValidForExaggeration,e.tileSize=this.tileSize,e.mercatorFromTransition=this.mercatorFromTransition,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._nearClipOffset=this._nearClipOffset,e._averageElevation=this._averageElevation,e._orthographicProjectionAtLowPitch=this._orthographicProjectionAtLowPitch,e._unmodified=this._unmodified,e._edgeInsets=this._edgeInsets.clone(),e._camera=this._camera.clone(),e._calcMatrices(),e.freezeTileCoverage=this.freezeTileCoverage,e.frustumCorners=this.frustumCorners,e._allowWorldUnderZoom=this._allowWorldUnderZoom,e}get isOrthographic(){return"globe"!==this.projection.name&&this._orthographicProjectionAtLowPitch&&this.pitch<Ui}get elevation(){return this._elevation}set elevation(e){this._elevation!==e&&(this._elevation=e,this._updateCameraOnTerrain(),this._calcMatrices())}get nearClipOffset(){return this._nearClipOffset}set nearClipOffset(e){this._nearClipOffset=e,this._calcMatrices()}get depthOcclusionForSymbolsAndCircles(){return"globe"!==this.projection.name&&!this.isOrthographic}updateElevation(e,t=!1){const i=this._elevation&&this._elevation.exaggeration()!==this._centerAltitudeValidForExaggeration;(null==this._seaLevelZoom||i)&&this._updateCameraOnTerrain(),(e||i)&&this._constrainCamera(t),this._calcMatrices()}getProjection(){return e.eF(this.projection,["name","center","parallels"])}setProjection(t){this.projectionOptions=t||{name:"mercator"};const i=this.projection?this.getProjection():void 0;this.projection=e.c$(this.projectionOptions);const r=this.getProjection(),n=!e.c2(i,r);return n&&this._calcMatrices(),this.mercatorFromTransition=!1,n}setOrthographicProjectionAtLowPitch(e){return this._orthographicProjectionAtLowPitch!==e&&(this._orthographicProjectionAtLowPitch=e,this._calcMatrices(),!0)}setMercatorFromTransition(){const t=this.projection.name;this.mercatorFromTransition=!0,this.projectionOptions={name:"mercator"},this.projection=e.c$({name:"mercator"});const i=t!==this.projection.name;return i&&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 cameraWorldSizeForFog(){const e=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(e))}get cameraWorldSize(){const e=Math.max(this._camera.getDistanceToElevation(this._averageElevation,!0),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(e))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return e.em(1,this.center.lat)*this.cameraWorldSizeForFog}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new e.au(this.width,this.height)}get bearing(){return e.f$(this.rotation,-180,180)}set bearing(e){this.rotation=e}get rotation(){return-this.angle/Math.PI*180}set rotation(e){const t=-e*Math.PI/180;if(this.angle===t)return;this._unmodified=!1,this.angle=t,this._calcMatrices();const i=Math.sin(this.angle),r=Math.cos(this.angle);this.rotationMatrix=[r,i,-i,r]}get pitch(){return this._pitch/Math.PI*180}set pitch(t){const i=e.bG(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==i&&(this._unmodified=!1,this._pitch=i,this._calcMatrices())}get aspect(){return this.width/this.height}get fov(){return this._fov/Math.PI*180}set fov(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=e.c4(t),this._calcMatrices())}get fovX(){return this._fov}get fovY(){const e=1/Math.tan(.5*this.fovX);return 2*Math.atan(1/this.aspect/e)}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}get tileCoverLift(){return this._tileCoverLift}set tileCoverLift(e){this._tileCoverLift!==e&&(this._tileCoverLift=e)}_updateCameraOnTerrain(){const e=this.elevation?this.elevation.getAtPoint(this.locationCoordinate(this.center),Number.NEGATIVE_INFINITY):Number.NEGATIVE_INFINITY,t=this.elevation&&e===Number.NEGATIVE_INFINITY&&this.elevation.visibleDemTiles.length>0&&this.elevation.exaggeration()>
10&&this._centerAltitudeValidForExaggeration;if(!this._elevation||e===Number.NEGATIVE_INFINITY&&(!t||!this._centerAltitude))return this._centerAltitude=0,this._seaLevelZoom=null,void(this._centerAltitudeValidForExaggeration=void 0);const i=this._elevation;t||this._centerAltitude&&this._centerAltitudeValidForExaggeration&&i.exaggeration()&&this._centerAltitudeValidForExaggeration!==i.exaggeration()?(this._centerAltitude=this._centerAltitude/this._centerAltitudeValidForExaggeration*i.exaggeration(),this._centerAltitudeValidForExaggeration=i.exaggeration()):(this._centerAltitude=e||0,this._centerAltitudeValidForExaggeration=i.exaggeration()),this._updateSeaLevelZoom()}_updateSeaLevelZoom(){if(void 0===this._centerAltitudeValidForExaggeration)return;const e=Math.max(0,(this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize);this._seaLevelZoom=this._zoomFromMercatorZ(e)}sampleAverageElevation(){if(!this._elevation)return 0;const t=this._elevation,i=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],r=this.horizonLineFromTop();let n=0,o=0;for(let s=0;s<i.length;s++){const a=new e.au(i[s][0]*this.width,r+i[s][1]*(this.height-r)),l=t.pointCoordinate(a);if(!l)continue;const c=1/Math.hypot(l[0]-this._camera.position[0],l[1]-this._camera.position[1]);n+=l[3]*c,o+=c}return 0===o?NaN:n/o}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)),i=this.pixelsPerMeter/this.worldSize*t,r=this._mercatorZfromZoom(e),n=this._mercatorZfromZoom(this._maxZoom),o=Math.max(r-i,n);this._setZoom(this._zoomFromMercatorZ(o))}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())}equals(e){const t=this.elevation,i=e.elevation,r=null!=t!=(null!=i)||t&&i&&t.exaggeration()!==i.exaggeration();return this.width===e.width&&this.height===e.height&&this.center.lng===e.center.lng&&this.center.lat===e.center.lat&&this.zoom===e.zoom&&this.bearing===e.bearing&&this.pitch===e.pitch&&this.fov===e.fov&&this.projection.name===e.projection.name&&this._edgeInsets.equals(e.padding)&&!r}computeZoomRelativeTo(t){const i=this.rayIntersectionCoordinate(this.pointRayIntersection(this.centerPoint,t.toAltitude()));let r;r=t.z<this._camera.position[2]?[i.x,i.y,i.z]:[t.x,t.y,t.z];const n=e.dW(e.fx([],this._camera.position,r));return e.bG(this._zoomFromMercatorZ(n),this._minZoom,this._maxZoom)}setFreeCameraOptions(t){if(!this.height)return;if(!t.position&&!t.orientation)return;this._updateCameraState();let i=!1;if(t.orientation&&!e.cl(t.orientation,this._camera.orientation)&&(i=this._setCameraOrientation(t.orientation)),t.position){const r=[t.position.x,t.position.y,t.position.z];e.cm(r,this._camera.position)||(this._setCameraPosition(r),i=!0)}i&&(this._updateStateFromCamera(),this.recenterOnTerrain())}getFreeCameraOptions(){this._updateCameraState();const t=this._camera.position,i=new Ei;return i.position=new e.ag(t[0],t[1],t[2]),i.orientation=this._camera.orientation,i._elevation=this.elevation,i._renderWorldCopies=this.renderWorldCopies,i}_setCameraOrientation(t){if(!e.dX(t))return!1;e.ey(t,t);const i=e.fO([],[0,0,-1],t),r=e.fO([],[0,-1,0],t);if(r[2]<0)return!1;const n=wi(i,r);return!!n&&(this._camera.orientation=n,!0)}_setCameraPosition(t){const i=this.zoomScale(this.minZoom)*this.tileSize,r=this.zoomScale(this.maxZoom)*this.tileSize,n=this.cameraToCenterDistance;t[2]=e.bG(t[2],n/r,n/i),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,i){this._unmodified=!1,this._edgeInsets.interpolate(e,t,i),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 i=[new e.bc(0,t)];if(this.renderWorldCopies){const r=this.pointCoordinate(new e.au(0,0)),n=this.pointCoordinate(new e.au(this.width,0)),o=this.pointCoordinate(new e.au(this.width,this.height)),s=this.pointCoordinate(new e.au(0,this.height)),a=Math.floor(Math.min(r.x,n.x,o.x,s.x)),l=Math.floor(Math.max(r.x,n.x,o.x,s.x)),c=1;for(let h=a-c;h<=l+c;h++)0!==h&&i.push(new e.bc(h,t))}return i}isLODDisabled(e){return(!e||this.pitch<=60)&&this._edgeInsets.top<=this._edgeInsets.bottom&&!this._elevation&&!this.projection.isReprojectedInTileSpace}
1extendTileCover(t,i,r,n){let o=[];const s=null!=r,a=!s;if(a&&this.zoom<i)return o;if(s&&0===r[0]&&0===r[1])return o;const l=new Set,c=(t,i,r,n,s)=>{const a=e.bz(i,t,r,n,s);l.has(a)||(o.push(new e.ap(t,i,r,n,s)),l.add(a))};for(let e=0;e<t.length;e++){const o=t[e];if(a&&o.canonical.z!==i)continue;if(s&&void 0!==n&&n>o.canonical.z)continue;const l=o.canonical,h=o.overscaledZ,u=o.wrap,d=1<<l.z,f=l.x+1<d,p=l.x>0,A=l.y+1<d,g=l.y>0,m=o.wrap-(p?0:1),_=o.wrap+(f?0:1),y=p?l.x-1:d-1,x=f?l.x+1:0;if(s)r[0]<0?(c(h,_,l.z,x,l.y),r[1]<0&&A&&(c(h,u,l.z,l.x,l.y+1),c(h,_,l.z,x,l.y+1)),r[1]>0&&g&&(c(h,u,l.z,l.x,l.y-1),c(h,_,l.z,x,l.y-1))):r[0]>0?(c(h,m,l.z,y,l.y),r[1]<0&&A&&(c(h,u,l.z,l.x,l.y+1),c(h,m,l.z,y,l.y+1)),r[1]>0&&g&&(c(h,u,l.z,l.x,l.y-1),c(h,m,l.z,y,l.y-1))):r[1]<0&&A?c(h,u,l.z,l.x,l.y+1):g&&c(h,u,l.z,l.x,l.y-1);else{const e=o.visibleQuadrants;1&e&&(c(h,m,l.z,y,l.y),g&&(c(h,u,l.z,l.x,l.y-1),c(h,m,l.z,y,l.y-1))),2&e&&(c(h,_,l.z,x,l.y),g&&(c(h,u,l.z,l.x,l.y-1),c(h,_,l.z,x,l.y-1))),4&e&&(c(h,m,l.z,y,l.y),A&&(c(h,u,l.z,l.x,l.y+1),c(h,m,l.z,y,l.y+1))),8&e&&(c(h,_,l.z,x,l.y),A&&(c(h,u,l.z,l.x,l.y+1),c(h,_,l.z,x,l.y+1)))}}const h=[];for(const e of o)o.some(t=>e.isChildOf(t))||h.push(e);if(o=h.filter(e=>!t.some(t=>!!(e.overscaledZ<i&&t.isChildOf(e))||e.equals(t)||e.isChildOf(t))),a){const e=1<<i,t="globe"===this.projection.name?this._camera.mercatorPosition:this.pointCoordinate(this.getCameraPoint()),r=[e*t.x,e*t.y],n=4,s=n*n;o=o.filter(e=>{const t=e.canonical.x+.5-r[0],i=e.canonical.y+.5-r[1];return t*t+i*i<s})}return o}extendTileCoverToNearPlane(t,i,r){const n=[],o=new Set;for(const e of t)o.add(e.key);const s=(t,i,r,s,a)=>{const l=e.bz(i,t,r,s,a);o.has(l)||(n.push(new e.ap(t,i,r,s,a)),o.add(l))},a=t.reduce((e,t)=>Math.max(e,t.overscaledZ),r),l=1<<r,c=[new e.au(0,0),new e.au(e.r,0),new e.au(e.r,e.r),new e.au(0,e.r)],h=new e.au(0,0),u=new e.au(0,0),d=(t,i)=>{const n=Math.floor(t[0]),o=Math.floor(t[1]),d=(t[0]-n)*e.r,f=(t[1]-o)*e.r,p=Math.floor(i[0]),A=Math.floor(i[1]),g=(i[0]-p)*e.r,m=(i[1]-A)*e.r;for(let _=-1;_<=1;_++){const t=n+_;if(!(t<0||t>=l)){h.x=d-_*e.r,u.x=g-(t-p)*e.r;for(let i=-1;i<=1;i++){const n=o+i;h.y=f-i*e.r,u.y=m-(n-A)*e.r,e.ce(h,u,c)&&s(a,0,r,t,n)}}}},f=i.points,p=f[e.ak],A=f[e.al],g=this._projectToGround(p,f[e.F]),m=this._projectToGround(A,f[e.z]);return d(p,g),d(A,m),n}_projectToGround(t,i){return e.dZ(e.bU(),t,i,t[2]/(t[2]-i[2]))}_projectToZ(t,i,r){const n=t[2]-i[2];return Math.abs(n)<1e-6?e.bK(t):e.dZ(e.bU(),t,i,(t[2]-r)/n)}extendTileCoverForTunnels(t,i,r,n){if(r<18)return[];const o=i.points,s=o[e.am],a=o[e.an],l=o[e.G],c=o[e.H];if(l[2]>=0&&c[2]>=0||s[2]<=0||a[2]<=0)return[];const h=l[2]<0?this._projectToZ(s,l,0):l,u=c[2]<0?this._projectToZ(a,c,0):c,d=-n,f=l[2]<d?this._projectToZ(s,l,d):l,p=c[2]<d?this._projectToZ(a,c,d):c,A=this._findExtensionTilesInQuad(t,r,[p,f,u,h],[.5*(h[0]+u[0]),.5*(h[1]+u[1])]);return A.length>3&&(A.length=3),A}_findExtensionTilesInQuad(t,i,r,n){const o=[],s=new Set;for(const e of t)s.add(e.key);const a=t.reduce((e,t)=>Math.max(e,t.overscaledZ),i),l=1<<i,c=[new e.au(r[0][0],r[0][1]),new e.au(r[1][0],r[1][1]),new e.au(r[3][0],r[3][1]),new e.au(r[2][0],r[2][1]),new e.au(r[0][0],r[0][1])],h=r[0][0],u=r[1][0],d=r[2][0],f=r[3][0],p=r[0][1],A=r[1][1],g=r[2][1],m=r[3][1],_=Math.max(0,Math.floor(Math.min(h,u,d,f))),y=Math.min(l-1,Math.ceil(Math.max(h,u,d,f))-1),x=Math.max(0,Math.floor(Math.min(p,A,g,m))),v=Math.min(l-1,Math.ceil(Math.max(p,A,g,m))-1);for(let b=x;b<=v;b++)for(let t=_;t<=y;t++){if(!e.eM(c,t,b,t+1,b+1))continue;const r=e.bz(0,a,i,t,b);s.has(r)||(o.push(new e.ap(a,0,i,t,b)),s.add(r))}const w=n[0],E=n[1];return o.sort((e,t)=>{const i=e.canonical.x+.5-w,r=e.canonical.y+.5-E,n=t.canonical.x+.5-w,o=t.canonical.y+.5-E;return i*i+r*r-(n*n+o*o)||e.canonical.x-t.canonical.x||e.canonical.y-t.canonical.y}),o}coveringTiles(t){let i=this.coveringZoomLevel(t);const r=i,n=this.elevation&&this.elevation.exaggeration(),o=n&&!t.isTerrainDEM,s="mercator"===this.projection.name;if(void 0!==t.minzoom&&i<t.minzoom)return[];void 0!==t.maxzoom&&i>t.maxzoom&&(i=t.maxzoom);const a=this.locationCoordinate(this.center),l=this.center.lat,c=1<<i,h=[c*a.x,c*a.y,0],u="globe"===this.projection.name,d=!u,f=e.N.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,i,d),p=u?this._camera.mercatorPosition:this.pointCoordinate(this.getCameraPoint()),A=c*e.em(1,this.center.lat),g=this._camera.position[2]/e.em(1,this.center.lat),m=[c*p.x,c*p.y,g*(d?1:A)],_=u||n,y=this.cameraToCenterDistance/t.tileSize*(t.roundZoom?1:.502),x=this.isLODDisabled(!0)?i:0;let v;if(this._elevation&&t.isTerrainDEM)v=1e4*this._elevation.exaggeration();else if(this._elevation){const e=this._elevation.getMinMaxForVisibleTiles();v=e?e.max:this._centerAltitude}else v=this._centerAltitude;const w=t.isTerrainDEM?-v:this._elevation?this._elevation.getMinElevationBelowMSL():0,E=this.projection.isReprojectedInTileSpace?e.d6(this):1,b=t=>{const i=1/4e4,r=new e.ag(t.x+i,t.y,t.z),n=new e.ag(t.x,t.y+i,t.z),o=t.toLngLat(),s=r.toLngLat(),a=n.toLngLat(),l=this.locationCoordinate(o),c=this.locationCoordinate(s),h=this.locationCoordinate(a),u=Math.hypot(c.x-l.x,c.y-l.y),d=Math.hypot(h.x-l.x,h.y-l.y);return Math.sqrt(u*d)*E/i},I=t=>{const i=v,r=w;return{aabb:e.fE(this,c,0,0,0,t,r,i,this.projection),zoom:0,x:0,y:0,minZ:r,maxZ:i,wrap:t,fullyVisible:!1}},C=[];let B=[];const D=i,T=t.reparseOverscaled?r:i,M=(g-this._centerAltitude)*A,Q=e=>{if(!this._elevation||!e.tileID||!s)return;const t=this._elevation.getMinMaxForTile(e.tileID),i=e.aabb;t?(i.min[2]=t.min,i.max[2]=t.max,i.center[2]=(i.min[2]+i.max[2])/2):(e.shouldSplit=P(e),e.shouldSplit||(i.min[2]=i.max[2]=i.center[2]=this._centerAltitude))},S=(e,t)=>{if(.707*t<e)return 1;const i=t/e;return i/(1.4144271570014144+(Math.pow(1.1,i-1.4144271570014144+1)-1)/(1.1-1)-1)},P=t=>
1{if(t.zoom<x)return!0;if(t.zoom===D)return!1;if(null!=t.shouldSplit)return t.shouldSplit;const i=t.aabb.distanceX(m),n=t.aabb.distanceY(m);let a=M,c=1;if(u){a=t.aabb.distanceZ(m);const i=Math.pow(2,t.zoom),r=e.dT((t.y+1)/i),n=e.dT(t.y/i),o=Math.min(Math.max(l,r),n),s=e.bF(o)/e.bF(l);if(c=o===l?1/Math.max(1,this._mercatorScaleRatio-.3):Math.min(1,s/this._mercatorScaleRatio),this.zoom<=e.S&&t.zoom===D-1&&s>=.9)return!0}else if(o&&(a=t.aabb.distanceZ(m)*A),this.projection.isReprojectedInTileSpace&&r<=5){const i=Math.pow(2,t.zoom),r=b(new e.ag((t.x+.5)/i,(t.y+.5)/i));c=r>.85?1:r}if(!s&&!u){const e=Math.sqrt(i*i+n*n+a*a);let r=(1<<D-t.zoom)*y*c;return r*=S(Math.max(a,M),e),e<r}let d=Number.MAX_VALUE,f=0;const p=t.aabb.getCorners(),g=[0,0,0];for(const r of p){e.fx(g,r,m),u||(o?g[2]*=A:g[2]=M);const t=e.c7(g,this._camera.forward());t<d&&(d=t,f=Math.abs(g[2]))}let _=(1<<D-t.zoom)*y*c;if(_*=S(Math.max(f,M),d),d<_)return!0;const v=t.aabb.closestPoint(h);return v[0]===h[0]&&v[1]===h[1]};if(this.renderWorldCopies)for(let e=1;e<=3;e++)C.push(I(-e)),C.push(I(e));for(C.push(I(0));C.length>0;){const r=C.pop(),n=r.x,a=r.y;let l=r.fullyVisible;const d=()=>"globe"===this.projection.name&&(0===r.y||r.y===(1<<r.zoom)-1);if(!l){let t=_?r.aabb.intersects(f):r.aabb.intersectsFlat(f);if(0===t&&d()){const i=new e.f(r.zoom,n,a);t=e.bi(this,c,i,!0).intersects(f)}if(0===t)continue;l=2===t}if(r.zoom===D||!P(r)){const o=r.zoom===D?T:r.zoom;if(t.minzoom&&t.minzoom>o)continue;let s=0;if(!l){let i=_?r.aabb.intersectsPrecise(f):r.aabb.intersectsPreciseFlat(f);if(0===i&&d()){const t=new e.f(r.zoom,n,a);i=e.bi(this,c,t,!0).intersectsPrecise(f)}if(0===i)continue;if(t.calculateQuadrantVisibility)if(f.containsPoint(r.aabb.center))s=15;else for(let e=0;e<4;e++)0!==r.aabb.quadrant(e).intersects(f)&&(s|=1<<e)}const u=h[0]-(.5+n+(r.wrap<<r.zoom))*(1<<i-r.zoom),p=h[1]-.5-a,A=r.tileID?r.tileID:new e.ap(o,r.wrap,r.zoom,n,a);t.calculateQuadrantVisibility&&(A.visibleQuadrants=s),B.push({tileID:A,distanceSq:u*u+p*p});continue}for(let t=0;t<4;t++){const i=(n<<1)+t%2,h=(a<<1)+(t>>1),d={aabb:s?r.aabb.quadrant(t):e.fE(this,c,r.zoom+1,i,h,r.wrap,r.minZ,r.maxZ,this.projection),zoom:r.zoom+1,x:i,y:h,wrap:r.wrap,fullyVisible:l,tileID:void 0,shouldSplit:void 0,minZ:r.minZ,maxZ:r.maxZ};o&&!u&&(d.tileID=new e.ap(r.zoom+1===D?T:r.zoom+1,r.wrap,r.zoom+1,i,h),Q(d)),C.push(d)}}if(this.fogCullDistSq){const i=this.fogCullDistSq,r=this.horizonLineFromTop();B=B.filter(n=>{const o=[0,0,0,1],s=[e.r,e.r,0,1],a=this.calculateFogTileMatrix(n.tileID.toUnwrapped());e.fM(o,o,a),e.fM(s,s,a);const l=e.en([],o,s),c=e.ee([],o,s),h=e.cD(l,c);if(0===h)return!0;let u=!1;const d=this._elevation;if(d&&h>i&&0!==r){const i=this.calculateProjMatrix(n.tileID.toUnwrapped());let o;t.isTerrainDEM||(o=d.getMinMaxForTile(n.tileID)),o||(o={min:w,max:v});const s=e.cC(this.rotation),a=[s[0]*e.r,s[1]*e.r,o.max];e.fL(a,a,i),u=(1-a[1])*this.height*.5<r}return h<i||u})}return B.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.log2(e)}project(t){const i=e.bG(t.lat,-e.ae,e.ae),r=this.projection.project(t.lng,i);return new e.au(r.x*this.worldSize,r.y*this.worldSize)}unproject(e){return this.projection.unproject(e.x/this.worldSize,e.y/this.worldSize)}get point(){return this.project(this.center)}get pointMerc(){return this.point._div(this.worldSize)}get pixelsPerMeterRatio(){return this.pixelsPerMeter/e.em(1,this.center.lat)/this.worldSize}setLocationAtPoint(t,i){let r,n;const o=this.centerPoint;if("globe"===this.projection.name){const e=this.worldSize;r=(i.x-o.x)/e,n=(i.y-o.y)/e}else{const e=this.pointCoordinate(i),t=this.pointCoordinate(o);r=e.x-t.x,n=e.y-t.y}const s=this.locationCoordinate(t);this.setLocation(new e.ag(s.x-r,s.y-n))}setLocation(e){this.center=this.coordinateLocation(e),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(e,t){return this.projection.locationPoint(this,e,t)}locationPoint3D(e,t){return this.projection.locationPoint(this,e,t,!0)}pointLocation(e){return this.coordinateLocation(this.pointCoordinate(e))}pointLocation3D(e,t){return this.coordinateLocation(this.pointCoordinate3D(e,t))}locationCoordinate(t,i){const r=i?e.em(i,t.lat):void 0,n=this.projection.project(t.lng,t.lat);return new e.ag(n.x,n.y,r)}coordinateLocation(e){return this.projection.unproject(e.x,e.y)}pointRayIntersection(t,i){const r=null!=i?i:this._centerAltitude,n=[t.x,t.y,0,1],o=[t.x,t.y,1,1];e.fM(n,n,this.pixelMatrixInverse),e.fM(o,o,this.pixelMatrixInverse);const s=o[3];e.fb(n,n,1/n[3]),e.fb(o,o,1/s);const a=n[2],l=o[2];
1return{p0:n,p1:o,t:a===l?0:(r-a)/(l-a)}}screenPointToMercatorRay(t){const i=[t.x,t.y,0,1],r=[t.x,t.y,1,1];return e.fM(i,i,this.pixelMatrixInverse),e.fM(r,r,this.pixelMatrixInverse),e.fb(i,i,1/i[3]),e.fb(r,r,1/r[3]),i[2]=e.em(i[2],this._center.lat)*this.worldSize,r[2]=e.em(r[2],this._center.lat)*this.worldSize,e.fb(i,i,1/this.worldSize),e.fb(r,r,1/this.worldSize),new e.aB([i[0],i[1],i[2]],e.ex([],e.fx([],r,i)))}rayIntersectionCoordinate(t){const{p0:i,p1:r,t:n}=t,o=e.em(i[2],this._center.lat),s=e.em(r[2],this._center.lat);return new e.ag(e.dY(i[0],r[0],n)/this.worldSize,e.dY(i[1],r[1],n)/this.worldSize,e.dY(o,s,n))}pointCoordinate(e,t=this._centerAltitude){return this.projection.pointCoordinate(this,e.x,e.y,t)}pointCoordinate3D(t,i){if(!this.elevation)return this.pointCoordinate(t,i);let r=this.projection.pointCoordinate3D(this,t.x,t.y);if(r)return new e.ag(r[0],r[1],r[2]);let n=0,o=this.horizonLineFromTop();if(t.y>o)return this.pointCoordinate(t,i);const s=.02*o,a=t.clone();for(let l=0;l<10&&o-n>s;l++){a.y=e.dY(n,o,.66);const t=this.projection.pointCoordinate3D(this,a.x,a.y);t?(o=a.y,r=t):n=a.y}return r?new e.ag(r[0],r[1],r[2]):this.pointCoordinate(t)}isPointAboveHorizon(e){return this.projection.isPointAboveHorizon(this,e)}isPointOnSurface(t){if(t.y<0||t.y>this.height||t.x<0||t.x>this.width)return!1;if(this.elevation||this.zoom>=e.R)return!this.isPointAboveHorizon(t);const i=this.pointCoordinate(t);return i.y>=0&&i.y<=1}_coordinatePoint(t,i){const r=i&&this.elevation?this.elevation.getAtPointOrZero(t,this._centerAltitude):this._centerAltitude,n=[t.x*this.worldSize,t.y*this.worldSize,r+t.toAltitude(),1];return e.fM(n,n,this.pixelMatrix),n[3]>0?new e.au(n[0]/n[3],n[1]/n[3]):new e.au(Number.MAX_VALUE,Number.MAX_VALUE)}_getBoundsNonRectangular(){const{top:t,left:i}=this._edgeInsets,r=this.height-this._edgeInsets.bottom,n=this.width-this._edgeInsets.right,o=this.pointLocation3D(new e.au(i,t)),s=this.pointLocation3D(new e.au(n,t)),a=this.pointLocation3D(new e.au(n,r)),l=this.pointLocation3D(new e.au(i,r));let c=Math.min(o.lng,s.lng,a.lng,l.lng),h=Math.max(o.lng,s.lng,a.lng,l.lng),u=Math.min(o.lat,s.lat,a.lat,l.lat),d=Math.max(o.lat,s.lat,a.lat,l.lat);const f=Math.pow(2,-this.zoom)/16*270,p="globe"===this.projection.name?1:4,A=(t,i,r,n,o)=>{const s=(t+r)/2,a=(i+n)/2,l=new e.au(s,a),{lng:g,lat:m}=this.pointLocation3D(l),_=Math.max(0,c-g,u-m,g-h,m-d);c=Math.min(c,g),h=Math.max(h,g),u=Math.min(u,m),d=Math.max(d,m),(o<p||_>f)&&(A(t,i,s,a,o+1),A(s,a,r,n,o+1))};if(A(i,t,n,t,1),A(n,t,n,r,1),A(n,r,i,r,1),A(i,r,i,t,1),"globe"===this.projection.name){const[t,i]=e.eK(this);t?(d=90,h=180,c=-180):i&&(u=-90,h=180,c=-180)}return new e.ac(new e.ab(c,u),new e.ab(h,d))}_getBoundsRectangular(t,i){const{top:r,left:n}=this._edgeInsets,o=this.height-this._edgeInsets.bottom,s=this.width-this._edgeInsets.right,a=new e.au(n,r),l=new e.au(s,r),c=new e.au(s,o),h=new e.au(n,o);let u=this.pointCoordinate(a,t),d=this.pointCoordinate(l,t);const f=this.pointCoordinate(c,i),p=this.pointCoordinate(h,i),A=(e,t)=>(t.y-e.y)/(t.x-e.x);return u.y>1&&d.y>=0?u=new e.ag((1-p.y)/A(p,u)+p.x,1):u.y<0&&d.y<=1&&(u=new e.ag(-p.y/A(p,u)+p.x,0)),d.y>1&&u.y>=0?d=new e.ag((1-f.y)/A(f,d)+f.x,1):d.y<0&&u.y<=1&&(d=new e.ag(-f.y/A(f,d)+f.x,0)),(new e.ac).extend(this.coordinateLocation(u)).extend(this.coordinateLocation(d)).extend(this.coordinateLocation(p)).extend(this.coordinateLocation(f))}_getBoundsRectangularTerrain(){const e=this.elevation;if(!e.visibleDemTiles.length||e.isUsingMockSource())return this._getBoundsRectangular(0,0);const t=e.visibleDemTiles.reduce((e,t)=>{if(t.dem){const i=t.dem.tree;e.min=Math.min(e.min,i.minimums[0]),e.max=Math.max(e.max,i.maximums[0])}return e},{min:Number.MAX_VALUE,max:0});return this._getBoundsRectangular(t.min*e.exaggeration(),t.max*e.exaggeration())}getBounds(){return"mercator"===this.projection.name||"equirectangular"===this.projection.name?this._terrainEnabled()?this._getBoundsRectangularTerrain():this._getBoundsRectangular(0,0):this._getBoundsNonRectangular()}horizonLineFromTop(e=!0){const t=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))-this.centerOffset.y,i=this.height/2-t*(1-this._horizonShift);return e?Math.max(0,i):i}getMaxBounds(){return this.maxBounds}setMaxBounds(t){this.maxBounds=t,this.minLat=-e.ae,this.maxLat=e.ae,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.ek(this.minLng)*this.tileSize,this.worldMaxX=e.ek(this.maxLng)*this.tileSize,this.worldMinY=e.el(this.maxLat)*this.tileSize,this.worldMaxY=e.el(this.minLat)*this.tileSize,this._constrain()}calculatePosMatrix(e,t){return this.projection.createTileMatrix(this,t,e)}calculateDistanceTileData(t){const i=t.key,r=this._distanceTileDataCache;if(r[i])return r[i];const n=t.canonical,o=1/this.height,s=this.cameraWorldSize,a=s/this.zoomScale(n.z),l=(n.x+Math.pow(2,n.z)*t.wrap)*a,c=n.y*a,h=this.point;h.x*=s/this.worldSize,h.y*=s/this.worldSize;const u=this.angle,d=Math.sin(-u),f=-Math.cos(-u);return r[i]={bearing:[d,f],center:[(h.x-l)*o,(h.y-c)*o],scale:a/e.r*o},r[i]}calculateFogTileMatrix(t){const i=t.key,r=this._fogTileMatrixCache;if(r[i])return r[i];const n=this.projection.createTileMatrix(this,this.cameraWorldSizeForFog,t);return e.er(n,this.worldToFogMatrix,n),r[i]=new Float32Array(n),r[i]}calculateProjMatrix(t,i=!1,r=!1){const n=t.key;let o;if(o=r?this._expandedProjMatrixCache:i?this._alignedProjMatrixCache:this._projMatrixCache,o[n])return o[n];const s=this.calculatePosMatrix(t,this.worldSize);let a;return a=this.projection.isReprojectedInTileSpace?this.mercatorMatrix:r?this.expandedFarZProjMatrix:i?this.alignedProjMatrix:this.projMatrix,e.er(s,a,s),o[n]=new Float32Array(s),o[n]}calculatePixelsToTileUnitsMatrix(t){const i=t.tileID.key,r=this._pixelsToTileUnitsCache;if(r[i])return r[i];const n=e.c_(t,this);return r[i]=n,r[i]}customLayerMatrix(){return this.mercatorMatrix.slice()}globeToMercatorMatrix(){if("globe"===this.projection.name){const t=1/this.worldSize,i=e.cv([],[t,t,t]);return e.er(i,i,this.globeMatrix),i}}recenterOnTerrain(){if(!this._elevation||"globe"===this.projection.name)return;const t=this._elevation;this._updateCameraState();const i=e.em(1,this._center.lat)*this.worldSize,r=this._computeCameraPosition(i),n=this._camera.forward(),o=e.em(1,this._center.lat);r[2]/=o,n[2]/=o,e.ex(n,n);const s=t.raycast(r,n,t.exaggeration());if(s){const t=e.fe([],r,n,s),i=new e.ag(t[0],t[1],e.em(t[2],e.dT(t[1]))),a=(i.z+e.dW([i.x-r[0],i.y-r[1],i.z-r[2]*o]))*this._pixelsPerMercatorPixel;this._seaLevelZoom=this._zoomFromMercatorZ(a),this._centerAltitude=i.toAltitude(),this._center=this.coordinateLocation(i),this._updateZoomFromElevation(),this._constrain(),this._calcMatrices()}}_constrainCamera(t=!1){if(!this._elevation)return;const i=this._elevation,r=e.em(1,this._center.lat)*this.worldSize,n=this._computeCameraPosition(r),o=i.getAtPointOrZero(new e.ag(...n)),s=this.pixelsPerMeter/this.worldSize*o,a=this._minimumHeightOverTerrain(),l=n[2]-s;if(l<=a)if(l<0||t){const t=this.locationCoordinate(this._center,this._centerAltitude),i=[n[0],n[1],t.z-n[2]],r=e.dW(i);i[2]-=(a-l)/this._pixelsPerMercatorPixel;const o=e.dW(i);if(0===o)return;e.fa(i,i,r/o*this._pixelsPerMercatorPixel),this._camera.position=[n[0],n[1],t.z*this._pixelsPerMercatorPixel-i[2]],this._updateStateFromCamera()}else this._isCameraConstrained=!0}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;const t="globe"===this.projection.name||this.mercatorFromTransition;if(this.projection.isReprojectedInTileSpace||t){const i=this.center;return i.lat=e.bG(i.lat,this.minLat,this.maxLat),(this.maxBounds||!this.renderWorldCopies&&!t)&&(i.lng=e.bG(i.lng,this.minLng,this.maxLng)),this.center=i,void(this._constraining=!1)}const i=this._unmodified,{x:r,y:n}=this.point;let o=0,s=r,a=n;const l=this.width/2,c=this.height/2,h=this.worldMinY*this.scale,u=this.worldMaxY*this.scale;if(n-c<h&&(a=h+c),n+c>u&&(a=u-c),u-h<this.height&&(o=Math.max(o,this.height/(u-h)),a=(u+h)/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;s=(r+i+this.worldSize)%this.worldSize-i,s-l<e&&(s=e+l),s+l>t&&(s=t-l),t-e<this.width&&(o=Math.max(o,this.width/(t-e)),s=(t+e)/2)}s===r&&a===n||this._allowWorldUnderZoom||(this.center=this.unproject(new e.au(s,a))),o&&!this._allowWorldUnderZoom&&(this.zoom+=this.scaleZoom(o)),this._constrainCamera(),this._unmodified=i,this._constraining=!1}_minZoomForBounds(){let e=Math.max(0,this.scaleZoom(Math.max(0,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())}
1_calcMatrices(){if(!this.height)return;const t=this.centerOffset,i="globe"===this.projection.name,r=this.pixelsPerMeter;"globe"===this.projection.name&&(this._mercatorScaleRatio=e.em(1,this.center.lat)/e.em(1,e.Q));const n=e.d2(this.projection,this.zoom,this.width,this.height,1024);this._pixelsPerMercatorPixel=this.projection.pixelSpaceConversion(this.center.lat,this.worldSize,n),this.cameraToCenterDistance=.5/Math.tan(.5*this._fov)*this.height*this._pixelsPerMercatorPixel,this._updateCameraState(),this._farZ=this.projection.farthestPixelDistance(this),this._nearZ=this.height/50;const o="meters"===this.projection.zAxisUnit?r:1,s=this._camera.getWorldToCamera(this.worldSize,o);let a;const l=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,this._nearZ,this._farZ);if(l[8]=2*-t.x/this.width,l[9]=2*t.y/this.height,this.isOrthographic){let i=.5*this.height/Math.tan(this._fov/2)*1*Math.tan(.5*this._fov),r=i*this.aspect,n=-r,o=-i;r-=t.x,n-=t.x,i+=t.y,o+=t.y,a=this._camera.getCameraToClipOrthographic(n,r,o,i,this._nearZ+this._nearClipOffset,this._farZ),((t,i,r,n)=>{for(let o=0;o<16;o++)t[o]=e.dY(i[o],r[o],n)})(a,a,l,e.cc(this.pitch>=Ui?1:this.pitch/Ui))}else a=l;const c=e.eo([],l,s),h=e.eo([],a,s);if(this.projection.isReprojectedInTileSpace){const t=this.locationCoordinate(this.center);e.dq(this._mat4Scratch);const i=this._mat4Scratch;e.fQ(i,i,[t.x*this.worldSize,t.y*this.worldSize,0]),e.er(i,i,e.d1(this)),e.fQ(i,i,[-t.x*this.worldSize,-t.y*this.worldSize,0]),e.er(h,h,i),e.er(c,c,i),this.inverseAdjustmentMatrix=e.d0(this)}else this.inverseAdjustmentMatrix=[1,0,0,1];if(e.fc(this.mercatorMatrix,h,[this.worldSize,this.worldSize,this.worldSize/o,1]),this.projMatrix=h,e.dr(this.invProjMatrix,this.projMatrix),i){const i=this._camera.getCameraToClipPerspective(this._fov,this.width/this.height,this._nearZ,1/0);i[8]=2*-t.x/this.width,i[9]=2*t.y/this.height,e.eo(this._expandedFarZProjMatrixBuf,i,s),this.expandedFarZProjMatrix=this._expandedFarZProjMatrixBuf}else this.expandedFarZProjMatrix=this.projMatrix;e.dr(this._mat4Scratch,a),this.frustumCorners=e.O.fromInvProjectionMatrix(this._mat4Scratch,this.horizonLineFromTop(),this.height),this.cameraFrustum=e.N.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,0,!i),e.cv(this.skyboxMatrix,[1,-1,1]),e.f3(this.skyboxMatrix,this.skyboxMatrix,this._pitch),e.f6(this.skyboxMatrix,this.skyboxMatrix,this.angle),e.eE(this.starsProjMatrix,this._fov,this.width/this.height,this._nearZ,this._farZ);const u=(Math.PI/2-this._pitch)*(this.height/this._fov)*this._horizonShift;e.bS(this._mat4Scratch,this.starsProjMatrix),this._mat4Scratch[8]=2*-t.x/this.width,this._mat4Scratch[9]=2*(t.y+u)/this.height,e.er(this.skyboxMatrix,this._mat4Scratch,this.skyboxMatrix);const d=this.point,f=d.x,p=d.y,A=this.width%2/2,g=this.height%2/2,m=Math.cos(this.angle),_=Math.sin(this.angle),y=f-Math.round(f)+m*A+_*g,x=p-Math.round(p)+m*g+_*A;if(e.bS(this.alignedProjMatrix,h),e.fQ(this.alignedProjMatrix,this.alignedProjMatrix,[y>.5?y-1:y,x>.5?x-1:x,0]),e.cv(this.labelPlaneMatrix,[this.width/2,-this.height/2,1]),e.fQ(this.labelPlaneMatrix,this.labelPlaneMatrix,[1,-1,0]),e.cv(this.glCoordMatrix,[1,-1,1]),e.fQ(this.glCoordMatrix,this.glCoordMatrix,[-1,-1,0]),e.fc(this.glCoordMatrix,this.glCoordMatrix,[2/this.width,2/this.height,1]),e.er(this.pixelMatrix,this.labelPlaneMatrix,c),this._calcFogMatrices(),this._distanceTileDataCache={},!e.dr(this.pixelMatrixInverse,this.pixelMatrix))throw new Error("failed to invert matrix");if("globe"===this.projection.name||this.mercatorFromTransition){this.globeMatrix=e.bx(this);const t=[this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]];this.globeCenterInViewSpace=e.fL(t,t,s),this.globeRadius=this.worldSize/2/Math.PI-1}else this.globeMatrix=this.pixelMatrixInverse;this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={},this._expandedProjMatrixCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};const t=this.cameraWorldSizeForFog,i=this.cameraPixelsPerMeter,r=this._camera.position,n=1/this.height/this._pixelsPerMercatorPixel,o=[t,t,i];e.fa(o,o,n),e.fa(r,r,-1),e.es(r,r,o),e.cw(this.mercatorFogMatrix,r),e.fc(this.mercatorFogMatrix,this.mercatorFogMatrix,o),this.worldToFogMatrix=this._camera.getWorldToCameraPosition(t,i,n)}_computeCameraPosition(e){const t=(e=e||this.pixelsPerMeter)/this.pixelsPerMeter,i=this._camera.forward(),r=this.point,
1n=this._mercatorZfromZoom(this._seaLevelZoom?this._seaLevelZoom:this._zoom)*t-e/this.worldSize*this._centerAltitude;return[r.x/this.worldSize-i[0]*n,r.y/this.worldSize-i[1]*n,e/this.worldSize*this._centerAltitude-i[2]*n]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(t){const i=this._maxCameraBoundsDistance()*Math.cos(this._pitch),r=this._camera.position[2],n=t[2];let o=1;this.projection.wrap&&(this.center=this.center.wrap()),n>0&&(o=Math.min((i-r)/n,1)),this._camera.position=e.fe([],this._camera.position,t,o),this._updateStateFromCamera()}_updateStateFromCamera(){const t=this._camera.position,i=this._camera.forward(),{pitch:r,bearing:n}=this._camera.getPitchBearing(),o=e.em(this._centerAltitude,this.center.lat)*this._pixelsPerMercatorPixel,s=this._mercatorZfromZoom(this._maxZoom)*Math.cos(e.c4(this._maxPitch)),a=Math.max((t[2]-o)/Math.cos(r),s),l=this._zoomFromMercatorZ(a);e.fe(t,t,i,a),this._pitch=e.bG(r,e.c4(this.minPitch),e.c4(this.maxPitch)),this.angle=e.f$(n,-Math.PI,Math.PI),this._setZoom(e.bG(l,this._minZoom,this._maxZoom)),this._updateSeaLevelZoom(),this._center=this.coordinateLocation(new e.ag(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,this._maxZoom)+4;return this._mercatorZfromZoom(e)}_zoomFromMercatorZ(e){return this.scaleZoom(this.cameraToCenterDistance/(Math.max(0,e)*this.tileSize))}zoomFromMercatorZAdjusted(t){let i=0,r=e.R,n=0,o=1/0;for(;r-i>1e-6&&r>i;){const e=i+.5*(r-i),s=this.tileSize*Math.pow(2,e),a=this.getCameraToCenterDistance(this.projection,e,s),l=this.scaleZoom(a/(Math.max(0,t)*this.tileSize)),c=Math.abs(e-l);c<o&&(o=c,n=e),e<l?i=e:r=e}return n}_terrainEnabled(){return!(!this._elevation||!this.projection.supportsTerrain&&(e.f_("Terrain is not yet supported with alternate projections. Use mercator or globe to enable terrain."),1))}anyCornerOffEdge(t,i){const r=Math.min(t.x,i.x),n=Math.max(t.x,i.x),o=Math.min(t.y,i.y),s=Math.max(t.y,i.y);if(o<this.horizonLineFromTop(!1))return!0;if("mercator"!==this.projection.name)return!1;const a=[new e.au(r,o),new e.au(n,s),new e.au(r,s),new e.au(n,o)],l=this.renderWorldCopies?-3:0,c=this.renderWorldCopies?4:1;for(const e of a){const t=this.pointRayIntersection(e);if(t.t<0)return!0;const i=this.rayIntersectionCoordinate(t);if(i.x<l||i.y<0||i.x>c||i.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+e.eX(this.fovAboveCenter)>88||this.anyCornerOffEdge(new e.au(0,0),new e.au(this.width,this.height))}zoomDeltaToMovement(t,i){const r=e.dW(e.fx([],this._camera.position,t)),n=this._zoomFromMercatorZ(r)+i;return r-this._mercatorZfromZoom(n)}getCameraPoint(){if("globe"===this.projection.name){const t=function([t,i,r],n){const o=[t,i,r,1];e.fM(o,o,n);const s=o[3]=Math.max(o[3],1e-6);return o[0]/=s,o[1]/=s,o[2]/=s,o}([this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]],this.pixelMatrix);return new e.au(t[0],t[1])}{const t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.au(0,t))}}getCameraToCenterDistance(t,i=this.zoom,r=this.worldSize){const n=e.d2(t,i,this.width,this.height,1024),o=t.pixelSpaceConversion(this.center.lat,r,n);let s=.5/Math.tan(.5*this._fov)*this.height*o;return this.isOrthographic&&(s=e.dY(1,s,e.cc(this.pitch>=Ui?1:this.pitch/Ui))),s}getWorldToCameraMatrix(){const t=this._camera.getWorldToCamera(this.worldSize,"meters"===this.projection.zAxisUnit?this.pixelsPerMeter:1);return"globe"===this.projection.name&&e.er(t,t,this.globeMatrix),t}getFrustum(t){return e.N.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,t,"meters"===this.projection.zAxisUnit)}}const Hi=(t,i)=>{if(i<=0||t.terrain)return{shouldRenderCutoff:!1,uniformValues:{u_cutoff_params:[0,0,0,1]}};const r=t.transform,n=r.pitch,o=r.isLODDisabled(!1)?60:30;if(n<o-15)return{shouldRenderCutoff:!1,uniformValues:{u_cutoff_params:[0,0,0,1]}};const s=r._farZ-r._nearZ,a=i*r.height*1.3,l=Math.pow(2,.85*Math.max(r._zoom-t.minCutoffZoom,0)),c=1.4*r.cameraToCenterDistance*l,h=e.fq(o-15,o,n),u=e.dY(r._farZ+a,c,h),d=Math.min(a,u-r._nearZ);return{shouldRenderCutoff:h>0,uniformValues:{u_cutoff_params:[r._nearZ,r._farZ,(u-r._nearZ)/s,(u-d-r._nearZ)/s]}}},ji=7680;class Gi{constructor(e,t,i,r,n,o){this.test=e,this.ref=t,this.mask=i,this.fail=r,this.depthFail=n,this.pass=o}}Gi.disabled=new Gi({func:519,mask:0},0,0,ji,ji,ji);const Yi=770,Wi=771;class Ji{constructor(e,t,i,r){this.blendFunction=e,this.blendColor=t.toNonPremultipliedRenderColor(null),this.mask=i,this.blendEquation=r}}
1function Zi(t,i,r=0){const n=Math.pow(2,i.tileID.overscaledZ),o=i.tileSize*Math.pow(2,t.transform.tileZoom)/n,s=o*(i.tileID.canonical.x+i.tileID.wrap*n),a=o*i.tileID.canonical.y;return{u_image:0,u_texsize:i.imageAtlasTexture?i.imageAtlasTexture.size:[0,0],u_tile_units_to_pixels:1/e.eG(i,1,t.transform.tileZoom),u_pixel_coord_upper:[s>>16,a>>16],u_pixel_coord_lower:[65535&s,65535&a],u_pattern_transition:r}}Ji.Replace=[1,0,1,0],Ji.disabled=new Ji(Ji.Replace,e.i.transparent,[!1,!1,!1,!1]),Ji.unblended=new Ji(Ji.Replace,e.i.transparent,[!0,!0,!0,!0]),Ji.alphaBlended=new Ji([1,Wi,1,Wi],e.i.transparent,[!0,!0,!0,!0]),Ji.alphaBlendedNonPremultiplied=new Ji([Yi,Wi,Yi,Wi],e.i.transparent,[!0,!0,!0,!0]),Ji.multiply=new Ji([774,0,774,0],e.i.transparent,[!0,!0,!0,!0]),Ji.multiplyAccumulateAlpha=new Ji([774,0,1,Wi],e.i.transparent,[!0,!0,!0,!0]),Ji.additive=new Ji([1,1,1,1],e.i.transparent,[!0,!0,!0,!0]),Ji.additiveAlphaWeighted=new Ji([Yi,1,773,1],e.i.transparent,[!0,!0,!0,!0]),Ji.additiveAlphaWeightedUnboundedAlpha=new Ji([Yi,1,1,1],e.i.transparent,[!0,!0,!0,!0]);const qi={terrain:0,flat:1},Ki=e.bT(),Xi=(t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m,_,y=[0,0,1])=>{const x=i.style.light,v=x.properties.get("position"),w=[v.x,v.y,v.z],E=e.bV();"viewport"===x.properties.get("anchor")&&(e.cu(E,-i.transform.angle),e.fK(w,w,E));const b=x.properties.get("color").toPremultipliedRenderColor(null),I=i.transform,C={u_matrix:t,u_lightpos:w,u_lightintensity:x.properties.get("intensity"),u_lightcolor:[b.r,b.g,b.b],u_vertical_gradient:+r,u_opacity:n,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:Ki,u_merc_center:[0,0],u_up_dir:[0,0,0],u_height_lift:0,u_height_type:qi[h],u_base_type:qi[u],u_ao:o,u_edge_radius:s,u_width_scale:a,u_flood_light_color:A,u_vertical_scale:g,u_flood_light_intensity:m,u_ground_shadow_factor:_,u_front_cutoff_params:y};return"globe"===I.projection.name&&(C.u_tile_id=[l.canonical.x,l.canonical.y,1<<l.canonical.z],C.u_zoom_transition=d,C.u_inv_rot_matrix=p,C.u_merc_center=f,C.u_up_dir=I.projection.upVector(new e.f(0,0,0),f[0]*e.r,f[1]*e.r),C.u_height_lift=c),C},$i=(e,t,i,r,n,o)=>({u_matrix:e,u_edge_radius:t,u_width_scale:i,u_vertical_scale:r,u_height_type:qi[n],u_base_type:qi[o]}),er=(e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m)=>{const _=Xi(e,t,i,r,n,o,s,a,c,h,u,d,f,p,A,g,1,[0,0,0]),y={u_height_factor:-Math.pow(2,a.overscaledZ)/l.tileSize/8};return Object.assign(_,Zi(t,l,m),y)},tr=(e,t)=>({u_matrix:e,u_ground_shadow_factor:t}),ir=[];function rr(e){return ir[e]=ir[e]||new Float64Array(16)}const nr=[],or=new Float32Array(16);class sr{constructor(e,t){this.aabb=e,this.lastCascade=t}}class ar{add(e,t){const i=this.receivers[e.key];void 0!==i?(i.aabb.min[0]=Math.min(i.aabb.min[0],t.min[0]),i.aabb.min[1]=Math.min(i.aabb.min[1],t.min[1]),i.aabb.min[2]=Math.min(i.aabb.min[2],t.min[2]),i.aabb.max[0]=Math.max(i.aabb.max[0],t.max[0]),i.aabb.max[1]=Math.max(i.aabb.max[1],t.max[1]),i.aabb.max[2]=Math.max(i.aabb.max[2],t.max[2])):this.receivers[e.key]=new sr(t,null)}clear(){this.receivers={}}get(e){return this.receivers[e.key]}computeRequiredCascades(t,i,r){const n=e.A.fromPoints(t.points);let o=0;for(const s in this.receivers){const t=this.receivers[s];if(!t)continue;if(!n.intersectsAabb(t.aabb))continue;t.aabb.min=n.closestPoint(t.aabb.min),t.aabb.max=n.closestPoint(t.aabb.max);const a=t.aabb.getCorners();for(let n=0;n<r.length;n++){let s=!0;for(const t of a){const o=[t[0]*i,t[1]*i,t[2]];if(e.fL(o,o,r[n].matrix),o[0]<-1||o[0]>1||o[1]<-1||o[1]>1){s=!1;break}}if(t.lastCascade=n,o=Math.max(o,n),s)break}}return o+1}}class lr{constructor(e){this.painter=e,this._enabled=!1,this._drawShadowAfterLayer=-1,this._numCascadesToRender=0,this._cascades=[],this._groundShadowTiles=[],this._receivers=new ar,this._depthMode=new _i(e.context.gl.LEQUAL,_i.ReadWrite,[0,1]),this._uniformValues={u_light_matrix_0:new Float32Array(16),u_light_matrix_1:new Float32Array(16),u_shadow_intensity:0,u_fade_range:[0,0],u_shadow_normal_offset:[1,1,1],u_shadow_texel_size:1,u_shadow_map_resolution:1,u_shadow_direction:[0,0,1],u_shadow_bias:[36e-5,.0012,.012],u_shadowmap_0:0,u_shadowmap_1:0},this._forceDisable=!1,this._devtoolsFolder=null,this.useNormalOffset=!1,this._shadowParameters={cascadeCount:2,normalOffset:3,shadowMapResolution:2048}}destroy(){for(const e of this._cascades)e.texture.destroy(),e.framebuffer.destroy();this._cascades=[]}updateShadowParameters(t,i){const r=this.painter;if(this._enabled=!1,this._drawShadowAfterLayer=-1,this._receivers.clear(),!i||!i.properties)return;const n=i.properties.get("shadow-intensity"),o=i.properties.get("shadow-draw-before-layer");if(!i.shadowsEnabled()||n<=0)return;let s=-1,a=0;for(const e of r.style.order){const i=r.style._mergedLayers[e];i.hasShadowPass()&&!i.isHidden(t.zoom)&&(s=a),!o||o!==e&&o!==i.slot||(this._drawShadowAfterLayer=a>0?a-1:0),a+=1}if(this._enabled=s>=0,!this.enabled)return;this._drawShadowAfterLayer<0&&(this._drawShadowAfterLayer=s);const l=r.context,c=this._shadowParameters.shadowMapResolution,h=this._shadowParameters.shadowMapResolution;if(0===this._cascades.length||this._shadowParameters.shadowMapResolution!==this._cascades[0].texture.size[0]){this._cascades=[];for(let t=0;t<this._shadowParameters.cascadeCount;++t){const t=l.gl,i=l.createFramebuffer(c,h,0,"texture"),r=new e.a_(l,{width:c,height:h,data:null},t.DEPTH_COMPONENT16);i.depthAttachment.set(r.texture),this._cascades.push({framebuffer:i,texture:r,matrix:[],far:0,boundingSphereRadius:0,frustum:new e.N,scale:0})}}this.shadowDirection=hr(i);let u=0;if(t.elevation){const e=t.elevation,i=[1e4,-1e4];e.visibleDemTiles.filter(e=>
vendor: 4,219 bytes, line 1
1e.dem).forEach(e=>{const t=e.dem.tree;i[0]=Math.min(i[0],t.minimums[0]),i[1]=Math.max(i[1],t.maximums[0])}),1e4!==i[0]&&(u=(i[1]-i[0])*e.exaggeration())}const d=1.5*t.cameraToCenterDistance,f=3*d,p=new Float64Array(16);for(let m=0;m<this._cascades.length;++m){const i=this._cascades[m];let r=t.height/50,n=1;1===this._shadowParameters.cascadeCount?n=f:0===m?n=d:(r=d,n=f);const[o,s]=dr(t,this.shadowDirection,r,n,this._shadowParameters.shadowMapResolution,u);i.scale=t.scale,i.matrix=o,i.boundingSphereRadius=s,e.dr(p,i.matrix),i.frustum=e.N.fromInvProjectionMatrix(p,1,0,!0),i.far=n}const A=this._cascades.length-1;this._uniformValues.u_fade_range=[.75*this._cascades[A].far,this._cascades[A].far],this._uniformValues.u_shadow_intensity=n,this._uniformValues.u_shadow_direction=[this.shadowDirection[0],this.shadowDirection[1],this.shadowDirection[2]],this._uniformValues.u_shadow_texel_size=1/this._shadowParameters.shadowMapResolution,this._uniformValues.u_shadow_map_resolution=this._shadowParameters.shadowMapResolution,this._uniformValues.u_shadowmap_0=11,this._uniformValues.u_shadowmap_1=12,this._groundShadowTiles=r.transform.coveringTiles({tileSize:512,renderWorldCopies:!0});const g=r.transform.elevation;for(const e of this._groundShadowTiles){let t={min:0,max:0};if(g){const i=g.getMinMaxForTile(e);i&&(t=i)}this.addShadowReceiver(e.toUnwrapped(),t.min,t.max)}}get enabled(){return this._enabled&&!this._forceDisable}set enabled(e){this._enabled=e}drawShadowPass(t,i){if(!this.enabled)return;const r=this.painter,n=r.context;this._numCascadesToRender=this._receivers.computeRequiredCascades(r.transform.getFrustum(0),r.transform.worldSize,this._cascades),n.viewport.set([0,0,this._shadowParameters.shadowMapResolution,this._shadowParameters.shadowMapResolution]);for(let o=0;o<this._numCascadesToRender;++o){r.currentShadowCascade=o,n.bindFramebuffer.set(this._cascades[o].framebuffer.framebuffer),n.clear({color:e.i.white,depth:1});for(const e of t.order){const n=t._mergedLayers[e];if(!n.hasShadowPass()||n.isHidden(r.transform.zoom))continue;const o=t.getLayerSourceCache(n),s=o?i[o.id]:void 0;("model"===n.type||s&&s.length)&&r.renderLayer(r,o,n,s)}}r.currentShadowCascade=0}drawGroundShadows(){if(!this.enabled)return;const e=this.painter,t=e.style,i=e.context,r=i.gl,n=t.directionalLight,o=t.ambientLight;if(!n||!o)return;const s=[],a=Hi(e,e.longestCutoffRange);a.shouldRenderCutoff&&s.push("RENDER_CUTOFF"),s.push("RENDER_SHADOWS"),this.useNormalOffset&&s.push("NORMAL_OFFSET");const l=ur(t,n,o),c=new _i(r.LEQUAL,_i.ReadOnly,e.depthRangeFor3D),h=new Gi({func:r.EQUAL,mask:255},0,255,r.KEEP,r.KEEP,r.KEEP);for(const u of this._groundShadowTiles){const t=u.toUnwrapped(),n=e.isTileAffectedByFog(u),o=e.getOrCreateProgram("groundShadow",{defines:s,overrideFog:n});this.setupShadows(t,o),e.uploadCommonUniforms(i,o,t,null,a);const d=tr(e.transform.calculateProjMatrix(t),l);o.draw(e,r.TRIANGLES,c,h,Ji.multiply,mi.disabled,d,"ground_shadow",e.tileExtentBuffer,e.quadTriangleIndexBuffer,e.tileExtentSegments,null,e.transform.zoom,null,null)}}getShadowPassDepthMode(){return this._depthMode}getGroundShadowLayerIndex(){return this._drawShadowAfterLayer}calculateShadowPassMatrixFromTile(t){const i=this.painter.transform,r=i.calculatePosMatrix(t,i.worldSize);return e.er(r,this._cascades[this.painter.currentShadowCascade].matrix,r),Float32Array.from(r)}calculateShadowPassMatrixFromMatrix(t){return e.er(or,this._cascades[this.painter.currentShadowCascade].matrix,t)}setupShadows(t,i,r){if(!this.enabled)return;const n=this.painter.transform,o=this.painter.context,s=o.gl,a=this._uniformValues,l=n.calculatePosMatrix(t,n.worldSize);for(let c=0;c<this._cascades.length;c++){const t=rr(c);e.er(t,this._cascades[c].matrix,l),a[0===c?"u_light_matrix_0":"u_light_matrix_1"]=t,o.activeTexture.set(s.TEXTURE0+11+c),this._cascades[c].texture.bindExtraParam(s.LINEAR,s.LINEAR,s.CLAMP_TO_EDGE,s.CLAMP_TO_EDGE,s.GREATER)}if(this.useNormalOffset=!!r,this.useNormalOffset){const i=e.fH(t.canonical),o=2/n.tileSize*e.r/this._shadowParameters.shadowMapResolution,s=o*this._cascades[0].boundingSphereRadius,l=o*this._cascades.at(-1).boundingSphereRadius,c=("vector-tile"===r?1:3)*function(t){const i=e.bG((t-22)/-22,0,1
1);return.125*(1-i)+4*i}(n.zoom);a.u_shadow_normal_offset=[i,s*c,l*c],a.u_shadow_bias=[1e-4,.0012,.012]}else a.u_shadow_bias=[36e-5,.0012,.012];i.setShadowUniformValues(o,a)}computeCascadeTileMatrices(t){const i=this._shadowParameters.cascadeCount;for(let r=0;r<i;r++){const i=nr[r]=nr[r]||new Float64Array(16);e.er(i,this._cascades[r].matrix,t)}return nr.length=i,nr}setupShadowsFromMatrix(t,i,r=!1){if(!this.enabled)return;const n=this._shadowParameters.cascadeCount;for(let o=0;o<n;o++)e.er(rr(o),this._cascades[o].matrix,t);ir.length=n,this.setupShadowsFromCascadeMatrices(ir,i,r)}setupShadowsFromCascadeMatrices(e,t,i=!1){if(!this.enabled)return;const r=this.painter.context,n=r.gl,o=this._uniformValues;for(let s=0;s<this._shadowParameters.cascadeCount;s++)o[0===s?"u_light_matrix_0":"u_light_matrix_1"]=e[s],r.activeTexture.set(n.TEXTURE0+11+s),this._cascades[s].texture.bindExtraParam(n.LINEAR,n.LINEAR,n.CLAMP_TO_EDGE,n.CLAMP_TO_EDGE,n.GREATER);if(this.useNormalOffset=i,i){const e=this._shadowParameters.normalOffset;o.u_shadow_normal_offset=[1,e,e],o.u_shadow_bias=[6e-5,.0012,.012]}else o.u_shadow_bias=[36e-5,.0012,.012];t.setShadowUniformValues(r,o)}getShadowUniformValues(){return this._uniformValues}getCurrentCascadeFrustum(){return this._cascades[this.painter.currentShadowCascade].frustum}computeSimplifiedTileShadowVolume(t,i,r,n){if(n[2]>=0)return{};const o=function(t,i,r){const n=r/(1<<t.canonical.z);return new e.A([t.canonical.x*n+t.wrap*r,t.canonical.y*n+t.wrap*r,0],[(t.canonical.x+1)*n+t.wrap*r,(t.canonical.y+1)*n+t.wrap*r,i])}(t,i,r).getCorners(),s=i/-n[2];n[0]<0?(e.bj(o[0],o[0],[n[0]*s,0,0]),e.bj(o[3],o[3],[n[0]*s,0,0])):n[0]>0&&(e.bj(o[1],o[1],[n[0]*s,0,0]),e.bj(o[2],o[2],[n[0]*s,0,0])),n[1]<0?(e.bj(o[0],o[0],[0,n[1]*s,0]),e.bj(o[1],o[1],[0,n[1]*s,0])):n[1]>0&&(e.bj(o[2],o[2],[0,n[1]*s,0]),e.bj(o[3],o[3],[0,n[1]*s,0]));const a={};return a.vertices=o,a.planes=[cr(o[1],o[0],o[4]),cr(o[2],o[1],o[5]),cr(o[3],o[2],o[6]),cr(o[0],o[3],o[7])],a}addShadowReceiver(t,i,r){this._receivers.add(t,e.A.fromTileIdAndHeight(t,i,r))}getMaxCascadeForTile(e){const t=this._receivers.get(e);return t&&t.lastCascade?t.lastCascade:0}}function cr(t,i,r){const n=e.fx([],r,i),o=e.fx([],t,i),s=e.c1([],n,o),a=e.dW(s);return 0===a?[0,0,1,0]:(e.fa(s,s,1/a),[s[0],s[1],s[2],-e.c7(s,i)])}function hr(t){const i=t.properties.get("direction"),r=e.bB(i.x,i.y,i.z);r[2]=e.bG(r[2],0,75);const n=e.ft([r[0],r[1],r[2]]);return e.cx(n.x,n.y,n.z)}function ur(t,i,r){const n="none"===i.properties.get("color-use-theme"),o=i.properties.get("color"),s=i.properties.get("intensity"),a=i.properties.get("direction"),l=[a.x,a.y,a.z],c="none"===r.properties.get("color-use-theme"),h=r.properties.get("color"),u=r.properties.get("intensity"),d=Math.max(e.c7([0,0,1],l),0),f=[0,0,0];e.fa(f,h.toPremultipliedRenderColor(c?null:t.getLut(i.scope)).toArray01Linear().slice(0,3),u);const p=[0,0,0];return e.fa(p,o.toPremultipliedRenderColor(n?null:t.getLut(r.scope)).toArray01Linear().slice(0,3),d*s),e.e4([f[0]>0?f[0]/(f[0]+p[0]):0,f[1]>0?f[1]/(f[1]+p[1]):0,f[2]>0?f[2]/(f[2]+p[2]):0])}function dr(t,i,r,n,o,s){const a=t.zoom,l=t.scale,c=t.worldSize,h=1/c,u=t.aspect,d=Math.sqrt(1+u*u)*Math.tan(.5*t.fovX),f=d*d,p=n-r,A=n+r;let g,m;f>p/A?(g=n,m=n*d):(g=.5*A*(1+f),m=.5*Math.sqrt(p*p+2*(n*n+r*r)*f+A*A*f*f));const _=t.projection.pixelsPerMeter(t.center.lat,c),y=t._camera.getCameraToWorldMercator(),x=[0,0,-g*h];e.fL(x,x,y);let v=m*h;const w=function(i){return i[0]/=l,i[1]/=l,i[2]=e.em(i[2],t._center.lat),i},E=t._edgeInsets;if(!(0===E.left&&0===E.top&&0===E.right&&0===E.bottom||E.left===E.right&&E.top===E.bottom)){const i=t._camera.getWorldToCamera(t.worldSize,"meters"===t.projection.zAxisUnit?_:1),o=t._camera.getCameraToClipPerspective(t._fov,t.width/t.height,r,n);o[8]=2*-t.centerOffset.x/t.width,o[9]=2*t.centerOffset.y/t.height;const s=new Float64Array(16);e.eo(s,o,i);const l=new Float64Array(16);e.dr(l,s);const h=e.N.fromInvProjectionMatrix(l,c,a,!0);for(const t of h.points){const i=w(t);v=Math.max(v,e.dV(e.fz([],x,i)))}}v*=o/(o-1);const b=Math.acos(i[2]),I=Math.atan2(-i[0],-i[1]),C=new bi;C.position=x,C.setPitchBearing(b,I);const B=C.getWorldToCamera(c,_),D=v*c,T=Math.min(t._mercatorZfromZoom(17)*c*-2,-2*D),M=C.getCameraToClipOrthographic(-D,D,-D,D,T,(D+s*_)/i[2]),Q=new Float64Array(16);e.er(Q,M,B);const S=e.cx(Math.floor(1e6*x[0])/1e6*c,Math.floor(1e6*x[1])/1e6*c,0),P=.5*o,R=[0,0,0];
vendor: 4,902 bytes, line 1
1e.fL(R,S,Q),e.fa(R,R,P);const z=[Math.floor(R[0]),Math.floor(R[1]),Math.floor(R[2])],L=[0,0,0];e.fx(L,R,z),e.fa(L,L,-1/P);const F=new Float64Array(16);return e.dq(F),e.fQ(F,F,L),e.er(Q,F,Q),[Q,D]}const fr=new Float32Array(16);function pr(t,i,r,n,o,s,a,l){r.resetLayerRenderingStats(t);const c=t.context,h=c.gl,u=t.transform,d=r.paint.get("fill-extrusion-pattern"),f=r.paint.get("fill-extrusion-pattern-cross-fade"),p=d.constantOr(null),A=d.constantOr(1),g=r.paint.get("fill-extrusion-opacity"),m=t.style.enable3dLights(),_=r.paint.get(m&&!A?"fill-extrusion-ambient-occlusion-wall-radius":"fill-extrusion-ambient-occlusion-radius"),y=[r.paint.get("fill-extrusion-ambient-occlusion-intensity"),_],x=r.layout.get("fill-extrusion-edge-radius"),v=x>0&&!r.paint.get("fill-extrusion-rounded-roof"),w=v?0:x,E="globe"===u.projection.name?e.cq():0,b="globe"===u.projection.name,I=b?e.dm(u.zoom):0,C=[e.ek(u.center.lng),e.el(u.center.lat)],B="none"===r.paint.get("fill-extrusion-flood-light-color-use-theme").constantOr("default"),D=r.paint.get("fill-extrusion-flood-light-color").toNonPremultipliedRenderColor(B?null:r.lut).toArray01().slice(0,3),T=r.paint.get("fill-extrusion-flood-light-intensity"),M=r.paint.get("fill-extrusion-vertical-scale"),Q=0!==r.paint.get("fill-extrusion-line-width").constantOr(1),S=r.paint.get("fill-extrusion-height-alignment"),P=r.paint.get("fill-extrusion-base-alignment"),R=Hi(t,r.paint.get("fill-extrusion-cutoff-fade-range")),z=r.paint.get("fill-extrusion-front-cutoff"),L=gr(u.pitch,z,!!t.terrain),F=L[2]<1;F&&(t.maxFrontCutoffRawStart=Math.max(t.maxFrontCutoffRawStart,z[0]));const O=[];let k;b&&O.push("PROJECTION_GLOBE_VIEW"),y[0]>0&&O.push("FAUX_AO"),v&&O.push("ZERO_ROOF_RADIUS"),l&&O.push("HAS_CENTROID"),T>0&&O.push("FLOOD_LIGHT"),R.shouldRenderCutoff&&O.push("RENDER_CUTOFF"),F&&O.push("RENDER_FRONT_CUTOFF"),Q&&O.push("RENDER_WALL_MODE");const N="shadow"===t.renderPass,U=t.shadowRenderer,V=N&&!!U,H=N?mi.disabled:mi.backCCW;t.shadowRenderer&&(t.shadowRenderer.useNormalOffset=!0);let j=[0,0,0];if(U){const e=t.style.directionalLight,i=t.style.ambientLight;e&&i&&(j=ur(t.style,e,i)),N||(O.push("RENDER_SHADOWS"),U.useNormalOffset&&O.push("NORMAL_OFFSET")),k=O.concat(["SHADOWS_SINGLE_CASCADE"])}const G=V?"fillExtrusionDepth":A?"fillExtrusionPattern":"fillExtrusion",Y=r.getLayerRenderingStats();for(const W of n){const n=i.getTile(W),d=n.getBucket(r);if(!d||d.projection.name!==u.projection.name)continue;let m=!1;U&&(m=0===U.getMaxCascadeForTile(W.toUnwrapped()));const _=t.isTileAffectedByFog(W),x=d.programConfigurations.get(r.id);let v=!1;if(p&&n.imageAtlas){const t=n.imageAtlas,i=e.aG.from(p),r=i.getPrimary().scaleSelf(e.co.devicePixelRatio).toString(),o=i.getSecondary(),s=t.patternPositions.get(r),a=o?t.patternPositions.get(o.scaleSelf(e.co.devicePixelRatio).toString()):null;v=!!s&&!!a,s&&x.setConstantPatternPositions(s,a)}f>0&&(v||x.getPatternTransitionVertexBuffer("fill-extrusion-pattern"))&&O.push("FILL_EXTRUSION_PATTERN_TRANSITION");const B=t.getOrCreateProgram(G,{config:x,defines:m?k:O,overrideFog:_});if(t.terrain&&t.terrain.setupElevationDraw(n,B,{useMeterToDem:!0}),!d.centroidVertexBuffer){const e=B.getAttributeLocation(h,"a_centroid_pos");-1!==e&&h.vertexAttribI4ui(e,0,0,0,0)}!N&&U&&U.setupShadows(n.tileID.toUnwrapped(),B,"vector-tile"),A&&(t.context.activeTexture.set(h.TEXTURE0),n.imageAtlasTexture&&n.imageAtlasTexture.bind(h.LINEAR,h.CLAMP_TO_EDGE),x.updatePaintBuffers());const z=r.paint.get("fill-extrusion-vertical-gradient"),F=1/d.tileToMeter;let V;if(N&&U){if(wr(n.tileID,d.maxHeight,t))continue;const e=U.calculateShadowPassMatrixFromTile(n.tileID.toUnwrapped());V=$i(e,w,F,M,S,P)}else{const e=t.translatePosMatrix(W.expandedProjMatrix,n,r.paint.get("fill-extrusion-translate"),r.paint.get("fill-extrusion-translate-anchor")),i=u.projection.createInversionMatrix(u,W.canonical);V=A?er(e,t,z,g,y,w,F,W,n,E,S,P,I,C,i,D,M,f):Xi(e,t,z,g,y,w,F,W,E,S,P,I,C,i,D,M,T,j,L)}t.uploadCommonUniforms(c,B,W.toUnwrapped(),null,R);let J=d.segments;if("mercator"===u.projection.name&&!N&&(J=d.getVisibleSegments(n.tileID,t.terrain,t.transform.getFrustum(0)),!J.get().length))continue;if(Y)if(N)for(const e of J.get())Y.numRenderedVerticesInShadowPass+=e.primitiveLength;else for(const e of J.get())Y.numRenderedVerticesInTransparentPass+=e.primitiveLength;const Z=[];(t.terrain||l)&&Z.push(d.centroidVertexBuffer),b&&Z.push(d.layoutVertexExtBuffer),Q&&Z.push(d.wallVertexBuffer),B.draw(t,c.gl.TRIANGLES,o,s,a,H,V,r.id,d.layoutVertexBuffer,d.indexBuffer,J,r.paint,t.transform.zoom,x,Z)}t.shadowRenderer&&(t.shadowRenderer.useNormalOffset=!1)}class Ar{constructor(){this.translate=[0,0],this.translateAnchor="map",this.edgeRadius=0,this.cutoffFadeRange=0}}function gr(e,t,i){if(!(t[2]<1)||i)return[0,0,1];const r=180*e/Math.PI;if(r<15)return[-.5,t[1],t[2]];const n=Math.min(1,Math.max(0,(r-15)/5)),o=n*n*(3-2*n);return[-.5*(1-o)+t[0]*o,t[1],t[2]]}
vendor: 6,215 bytes, line 1
1function mr(t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m,_,y,x,v){const w=i.context,E=w.gl,b=i.transform,I=i.transform.zoom,C=[],B=t.translate,D=t.translateAnchor,T=t.edgeRadius,M=Hi(i,t.cutoffFadeRange);"clear"===u?(C.push("CLEAR_SUBPASS"),x&&(C.push("CLEAR_FROM_TEXTURE"),w.activeTexture.set(E.TEXTURE0),x.bind(E.LINEAR,E.CLAMP_TO_EDGE))):"sdf"===u?C.push("SDF_SUBPASS"):"emissive"===u&&(C.push("USE_MRT1"),w.activeTexture.set(E.TEXTURE0),x.bind(E.LINEAR,E.CLAMP_TO_EDGE)),_&&C.push("HAS_CENTROID"),M.shouldRenderCutoff&&C.push("RENDER_CUTOFF");const Q=(e,t,r,o,u)=>{let y=C;null!=t.groundRadiusBuffer&&(y=C.concat("HAS_ATTRIBUTE_a_flood_light_ground_radius"));const v=t.programConfigurations.get(n.id),E=i.isTileAffectedByFog(e),b=i.getOrCreateProgram("fillExtrusionGroundEffect",{config:v,defines:y,overrideFog:E}),B=((e,t,i,r,n,o,s,a,l,c,h)=>({u_matrix:t,u_opacity:i,u_ao_pass:r?1:0,u_meter_to_tile:n,u_ao:o,u_flood_light_intensity:s,u_flood_light_color:a,u_attenuation:l,u_edge_radius:c,u_fb:0,u_fb_size:h,u_dynamic_offset:1}))(0,o,d,h,u,[f,p*u],A,g,m,I>=17?0:T*u,x?x.size[0]:0),D=[];_&&D.push(t.hiddenByLandmarkVertexBuffer),null!=t.groundRadiusBuffer&&D.push(t.groundRadiusBuffer),i.uploadCommonUniforms(w,b,e.toUnwrapped(),null,M),b.draw(i,w.gl.TRIANGLES,s,a,l,c,B,n.id,t.vertexBuffer,t.indexBuffer,r,n.paint,I,v,D)};for(const S of o){const t=r.getTile(S),o=t.getBucket(n);if(!o||o.projection.name!==b.projection.name||!o.groundEffect||o.groundEffect&&!o.groundEffect.hasData())continue;const s=o.groundEffect,a=1/o.tileToMeter;{const e=i.translatePosMatrix(S.projMatrix,t,B,D),r=s.getDefaultSegment();Q(S,s,r,e,a)}if(y)for(let l=0;l<4;l++){const o=e.ev[l](S),s=r.getTile(o);if(!s)continue;const c=s.getBucket(n);if(!c||c.projection.name!==b.projection.name||!c.groundEffect||c.groundEffect&&!c.groundEffect.hasData())continue;const h=c.groundEffect;let u,d;0===l?(u=[-e.r,0,0],d=1):1===l?(u=[e.r,0,0],d=0):2===l?(u=[0,-e.r,0],d=3):(u=[0,e.r,0],d=2);const f=h.regionSegments[d];f&&(e.fQ(fr,S.projMatrix,u),Q(S,h,f,i.translatePosMatrix(fr,t,B,D),a))}}}function _r(t,i,r,n,o,s,a){0===n.centroidVertexArray.length&&n.createCentroidsBuffer();const l=s?s.findDEMTileFor(r):null;if(!(l&&l.dem||a))return;s&&l&&l.dem&&n.selfDEMTileTimestamp!==l.dem._timestamp&&(n.borderDoneWithNeighborZ=[-1,-1,-1,-1],n.selfDEMTileTimestamp=l.dem._timestamp);const c=(t,i)=>{(t.flags|i.flags)&e.Y?(t.flags|=e.Y,i.flags|=e.Y):(t.flags&=~e.Y,i.flags&=~e.Y)},h=t=>new e.au(Math.ceil((t+e.E)*e.q),0),u=(t,i,r)=>{const n=Math.ceil((t+e.E)*e.q),o=Math.floor(Math.max(0,Math.min(e.r-1,r))/4);return new e.au(n,o<<5|(3&i)<<3|7)},d=e=>{const t=i.getSource().minzoom,r=e=>{const t=i.getTileByID(e);if(t&&t.hasData())return t.getBucket(o)},n=[0,-1,1];for(const i of n){if(e.overscaledZ+i<t)continue;const n=r(e.calculateScaledKey(e.overscaledZ+i));if(n)return n}},f=[0,0,0],p=(t,i)=>(f[0]=Math.min(t.min.y,i.min.y),f[1]=Math.max(t.max.y,i.max.y),f[2]=e.r-i.min.x>t.max.x?i.min.x-e.r:t.max.x,f),A=(t,i)=>(f[0]=Math.min(t.min.x,i.min.x),f[1]=Math.max(t.max.x,i.max.x),f[2]=e.r-i.min.y>t.max.y?i.min.y-e.r:t.max.y,f),g=[(e,t)=>p(e,t),(e,t)=>p(t,e),(e,t)=>A(e,t),(e,t)=>A(t,e)],m=(t,i,n,o,a,c,h)=>{if(!s)return 0;const u=[[c?n:t,c?t:n,0],[c?n:i,c?i:n,0]],d=h<0?e.r+h:h,f=[c?d:(t+i)/2,c?(t+i)/2:d,0];return 0===n&&h<0||0!==n&&h>0?s.getForTilePoints(a,[f],!0,o):u.push(f),s.getForTilePoints(r,u,!0,l),Math.max(u[0][2],u[1][2],f[2])/s.exaggeration()};for(let _=0;_<4;_++){const t=n.borderFeatureIndices[_];if(0===t.length)continue;const i=e.ev[_](r),o=d(i);if(!(o&&o instanceof e.K))continue;const l=s?s.findDEMTileFor(i):null;if(!(l&&l.dem||a))continue;if(s&&l&&l.dem&&n.borderDEMTileTimestamp[_]!==l.dem._timestamp&&(n.borderDoneWithNeighborZ[_]=-1,n.borderDEMTileTimestamp[_]=l.dem._timestamp),n.borderDoneWithNeighborZ[_]===o.canonical.z)continue;0===o.centroidVertexArray.length&&o.createCentroidsBuffer();const f=(_<2?1:5)-_,p=o.borderDoneWithNeighborZ[f]!==n.canonical.z,A=o.borderFeatureIndices[f];let y=0;if(n.canonical.z!==o.canonical.z){for(const e of t)n.showCentroid(n.featuresOnBorder[e]);if(p)for(const e of A)o.showCentroid(o.featuresOnBorder[e]);n.borderDoneWithNeighborZ[_]=o.canonical.z,o.borderDoneWithNeighborZ[f]=n.canonical.z;continue}const x=new Map,v=new Set,w=new Set;for(let e=0;e<A.length;e++){const t=o.featuresOnBorder[A[e]];void 0!==t.buildingId&&x.set(t.buildingId,e)}for(const r of t){const t=n.featuresOnBorder[r],s=n.centroidData.get(t.centroidDataIndex);if(void 0===t.buildingId)continue;const h=x.get(t.buildingId);if(void 0===h)continue;const d=o.featuresOnBorder[A[h]],p=o.centroidData.get(d.centroidDataIndex);v.add(r),w.add(h),a&&c(s,p);const y=0!==s.groupCentroidPos.x||0!==s.groupCentroidPos.y?s.groupCentroidPos:t.centroid(),E=0!==p.groupCentroidPos.x||0!==p.groupCentroidPos.y?p.groupCentroidPos:d.centroid(),b=_<2?Math.round((y.y+E.y)/2):Math.round((y.x+E.x)/2),I=t.intersectsCount()>1||d.intersectsCount()>1;{let t=0;if(l&&l.dem&&!I){const r=g[_](s,p),n=_%2?e.r-1:0;t=m(r[0],Math.min(e.r-1,r[1]),n,l,i,_<2,r[2])}s.centroidXY=u(t,_,b),p.centroidXY=u(t,f,b)}if(n.writeCentroidToBuffer(s),o.writeCentroidToBuffer(p),void 0!==t.buildingId){for(const e of n.centroidData)e.buildingId===t.buildingId&&e!==s&&(e.centroidXY=s.centroidXY,n.writeCentroidToBuffer(e));for(const e of o.centroidData)e.buildingId===t.buildingId&&e!==p&&(e.centroidXY=p.centroidXY,o.writeCentroidToBuffer(e))}}for(const r of t){if(v.has(r))continue;const t=n.featuresOnBorder[r],s=n.centroidData.get(t.centroidDataIndex),u=t.borders[_];let d;for(;y<A.length;){if(w.has(y)){y++;continue}d=o.featuresOnBorder[A[y]];const e=d.borders[f];if(e[1]>u[0]+3||e[0]>u[0]-3)break;o.showCentroid(d),y++}if(d&&y<A.length){let r=y,p=0;for(;;)if(w.has(y)){if(++y===A.length)break;d=o.featuresOnBorder[A[y]]}else{if(d.borders[f][0]>u[1]-3)break;if(p++,++y===A.length)break;d=o.featuresOnBorder[A[y]]}for(;r<A.length&&w.has(r);)r++;if(r>=A.length){n.showCentroid(t);continue}d=o.featuresOnBorder[A[r]];let x=!1;if(p>=1){const e=d.borders[f];Math.abs(u[0]-e[0])<3&&Math.abs(u[1]-e[1])<3&&(p=1,x=!0,y=r+1)}else if(0===p){n.showCentroid(t);continue}const v=o.centroidData.get(d.centroidDataIndex);a&&x&&c(s,v);const E=t.intersectsCount()>1||d.intersectsCount()>1;
1if(p>1)y=r,s.centroidXY=v.centroidXY=new e.au(0,0);else if(l&&l.dem&&!E){const t=g[_](s,v),r=_%2?e.r-1:0,n=m(t[0],Math.min(e.r-1,t[1]),r,l,i,_<2,t[2]);s.centroidXY=v.centroidXY=h(n)}else E?s.centroidXY=v.centroidXY=new e.au(0,0):(s.centroidXY=n.encodeBorderCentroid(t),v.centroidXY=o.encodeBorderCentroid(d));n.writeCentroidToBuffer(s),o.writeCentroidToBuffer(v)}else n.showCentroid(t)}n.borderDoneWithNeighborZ[_]=o.canonical.z,o.borderDoneWithNeighborZ[f]=n.canonical.z}(n.needsCentroidUpdate||!n.centroidVertexBuffer&&0!==n.centroidVertexArray.length)&&n.uploadCentroid(t)}const yr=[1,0,0],xr=[0,1,0],vr=[0,0,1];function wr(t,i,r){const n=r.transform,o=r.shadowRenderer;if(!o)return!0;const s=r.frameCounter,a=r.currentShadowCascade;let l=r._shadowCullCache;if(!l||l.frame!==s||l.cascade!==a){const t=n.tileSize*o._cascades[a].scale,i=n.scaleZoom(t),c=o.shadowDirection,h=[c[0],c[1],-c[2]],u=[yr,xr,vr,h,[h[0],0,h[2]],[0,h[1],h[2]]];l={frame:s,cascade:a,cameraFrustum:e.N.fromInvProjectionMatrix(n.invProjMatrix,n.worldSize,i,!("globe"===n.projection.name)),edges:u,shadowDir:h,ws:t,zoom:i},r._shadowCullCache=l}const{cameraFrustum:c,edges:h,shadowDir:u,ws:d,zoom:f}=l;let p=i;if(n.elevation){const e=n.elevation.getMinMaxForTile(t);e&&(p+=e.max)}p/=e.cX(n.center.lat,f);const A=o.computeSimplifiedTileShadowVolume(t.toUnwrapped(),p,d,u);if(!A)return!1;const{vertices:g,planes:m}=A;return 0===c.intersectsPrecise(g,m,h)||0===o.getCurrentCascadeFrustum().intersectsPrecise(g,m,h)}const Er=new Float32Array(16),br=new Float32Array(16);function Ir(t){const{painter:i,source:r,layer:n,coords:o}=t;let s=t.defines;const a=i.context,l="shadow"===i.renderPass,c="light-beam"===i.renderPass,h=i.shadowRenderer,u=e.cX(i.transform.center.lat,i.transform.zoom),d=Hi(i,n.paint.get("building-cutoff-fade-range"));d.shouldRenderCutoff&&(s=s.concat("RENDER_CUTOFF"));const f=n.paint.get("building-front-cutoff"),p=f[2]<1&&!i.terrain,A=gr(i.transform.pitch,f,!!i.terrain);p&&(s=s.concat("RENDER_FRONT_CUTOFF"),i.maxFrontCutoffRawStart=Math.max(i.maxFrontCutoffRawStart,f[0])),t.floodLightIntensity>0&&(s=s.concat("FLOOD_LIGHT"));for(const g of o){const o=r.getTile(g),f=o.getBucket(n);if(!f)continue;h&&0===h.getMaxCascadeForTile(g.toUnwrapped())&&(s=s.concat("SHADOWS_SINGLE_CASCADE"));const p=f.programConfigurations.get(n.id);let m,_;const y=i.translatePosMatrix(g.expandedProjMatrix,o,[0,0],"map");e.fc(Er,y,[1,1,t.verticalScale]);const x=Er;let v;if(l&&h){if(wr(o.tileID,f.maxHeight*u,i))continue;const r=h.calculateShadowPassMatrixFromTile(o.tileID.toUnwrapped());e.fc(r,r,[1,1,t.verticalScale]),v=pi(r),m=_=i.getOrCreateProgram("buildingDepth",{config:p,defines:s,overrideFog:!1})}else if(c)m=_=i.getOrCreateProgram("buildingBloom",{config:p,defines:s,overrideFog:!1}),v=fi(x);else{const r=i.transform.calculatePosMatrix(g.toUnwrapped(),i.transform.worldSize);e.fc(r,r,[1,1,t.verticalScale]),e.fc(br,r,[1,-1,1/u]),e.dr(br,br),e.fR(br,br);const n=br,o=i.transform.getFreeCameraOptions().position,l=1<<g.canonical.z;if(v=di(x,n,t.opacity,t.facadeAOIntensity,[((o.x-g.wrap)*l-g.canonical.x)*e.r,(o.y*l-g.canonical.y)*e.r,o.z*l*e.r],f.tileToMeter,t.facadeEmissiveChance,t.floodLightColor,t.floodLightIntensity,A),_=i.getOrCreateProgram("building",{config:p,defines:s,overrideFog:!1}),!0===t.depthOnly)m=_;else{const e=s.concat(["BUILDING_FAUX_FACADE","HAS_ATTRIBUTE_a_faux_facade_color_emissive"]);m=i.getOrCreateProgram("building",{config:p,defines:e,overrideFog:!1})}h&&(h.setupShadowsFromMatrix(r,_,!0),m!==_&&m.setShadowUniformValues(a,h.getShadowUniformValues()))}const w=(e,r)=>{if(c){const o=e.entranceBloom;r.draw(i,a.gl.TRIANGLES,t.depthMode,Gi.disabled,t.blendMode,mi.disabled,v,n.id,o.layoutVertexBuffer,o.indexBuffer,o.segmentsBucket,n.paint,i.transform.zoom,p,[o.layoutAttenuationBuffer,o.layoutColorBuffer])}else{const o=e.segmentsBucket;let s=[e.layoutNormalBuffer,e.layoutCentroidBuffer,e.layoutColorBuffer,e.layoutFloodLightDataBuffer];e.layoutFacadePaintBuffer&&(s=s.concat([e.layoutFacadeDataBuffer,e.layoutFacadeVerticalRangeBuffer,e.layoutFacadePaintBuffer])),r.draw(i,a.gl.TRIANGLES,t.depthMode,Gi.disabled,t.blendMode,l?mi.disabled:mi.backCW,v,n.id,e.layoutVertexBuffer,e.indexBuffer,o,n.paint,i.transform.zoom,p,s)}};i.uploadCommonUniforms(a,_,g.toUnwrapped(),null,d),f.buildingWithoutFacade&&w(f.buildingWithoutFacade,_),f.buildingWithFacade&&(m!==_&&i.uploadCommonUniforms(a,m,g.toUnwrapped(),null,d),w(f.buildingWithFacade,m))}}function Cr(t,i,r,n,o,s,a,l,c,h,u,d,f,p){const A=t.context.gl,g=t.depthModeForSublayer(1,_i.ReadOnly,A.LEQUAL,!0),m=e.dY(.1,3,u),_=t._showOverdrawInspector,y=d,x=new Ar;_||mr(x,t,i,r,n,g,new Gi({func:A.ALWAYS,mask:255},255,255,A.KEEP,A.KEEP,A.REPLACE),new Ji([A.ONE,A.ONE,A.ONE,A.ONE],e.i.transparent,[!1,!1,!1,!0],A.MIN),mi.disabled,o,"sdf",s,a,l,c,h,m,y,!1,void 0);{const u=_?Gi.disabled:new Gi({func:A.EQUAL,mask:255},255,255,A.KEEP,A.DECR,A.DECR),d=_?t.colorModeForRenderPass():new Ji([A.ONE_MINUS_DST_ALPHA,A.DST_ALPHA,A.ONE,A.ONE],e.i.transparent,[!0,!0,!0,!0]);mr(x,t,i,r,n,g,u,d,mi.disabled,o,"color",s,a,l,c,h,m,y,!1,void 0)}}class Br{constructor(){this._previousClosestBuildingId=null,this._hysteresisRatio=.8,this._indo
1orMinimumZoom=16}findClosestBuilding(e,t,i,r,n){if(i<this._indoorMinimumZoom)return this._previousClosestBuildingId=null,null;let o=null,s=Number.MAX_VALUE,a=Number.MAX_VALUE,l=!1;const c=this._previousClosestBuildingId?e[this._previousClosestBuildingId]:null;this._previousClosestBuildingId&&c&&this._isBuildingVisible(c,r,n)&&(l=!0,a=this._calculateDistance(t,c));for(const[h,u]of Object.entries(e)){if(!this._isBuildingVisible(u,r,n))continue;const e=this._calculateDistance(t,u);e<s&&(s=e,o=h)}return l&&o&&this._previousClosestBuildingId&&o!==this._previousClosestBuildingId?s>a*this._hysteresisRatio&&(o=this._previousClosestBuildingId):l&&!o&&(o=this._previousClosestBuildingId),this._previousClosestBuildingId=o,o}_calculateDistance(e,t){if(!t.center)return Number.MAX_VALUE;const i=e.lat-t.center[1],r=e.lng-t.center[0];return i*i+r*r}_isBuildingVisible(t,i,r){if(!r)return!1;for(const n of t.floorIds){const i=t.floors[n];if(!i.geometry)continue;const o=i.geometry;if("Polygon"===o.type){const t=this._convertRingToPoints(o.coordinates[0]);if(e.eO(t,r))return!0}else if("MultiPolygon"===o.type){const t=this._convertMultiPolygonToPoints(o.coordinates);if(e.eN(r,t))return!0}}return!1}_convertRingToPoints(t){return t.map(t=>new e.au(t[0],t[1]))}_convertMultiPolygonToPoints(t){return t.map(t=>0===t.length?[]:t[0].map(t=>new e.au(t[0],t[1])))}}const Dr=.05,Tr=(e,t,i,r,n,o,s,a,l,c,h,u)=>({u_matrix:e,u_normalize_matrix:t,u_globe_matrix:i,u_merc_matrix:r,u_grid_matrix:n,u_tl_parent:o,u_scale_parent:c,u_fade_t:h.mix,u_opacity:h.opacity,u_image0:0,u_image1:1,u_raster_elevation:u,u_zoom_transition:s,u_merc_center:a,u_cutoff_params:l}),Mr=(e,t,i,r,n,o,s,a,l,c)=>({u_particle_texture:e,u_particle_texture_side_len:t,u_tile_offset:i,u_velocity:r,u_color_ramp:o,u_velocity_res:n,u_max_speed:s,u_uv_offset:a,u_data_scale:[255*l[0],255*l[1]],u_data_offset:c,u_particle_pos_scale:1.1,u_particle_pos_offset:[Dr,Dr]}),Qr=(e,t,i,r,n,o,s,a,l,c)=>({u_particle_texture:e,u_particle_texture_side_len:t,u_velocity:i,u_velocity_res:r,u_max_speed:n,u_speed_factor:o,u_reset_rate:s,u_rand_seed:Math.random(),u_uv_offset:a,u_data_scale:[255*l[0],255*l[1]],u_data_offset:c,u_particle_pos_scale:1.1,u_particle_pos_offset:[Dr,Dr]});function Sr(e,[t,i,r,n],[o,s]){if(o===s)return[0,0,0,0];const a=255*(e-1)/(e*(s-o));return[t*a,i*a,r*a,n*a]}function Pr(e,t,[i,r]){return i===r?0:.5/e+(t-i)*(e-1)/(e*(r-i))}e.af.setPbf(e.as);class Rr extends e.b0{constructor(e,t,i,r,n){super(e,t,i,r,n),this._workQueuePerLayer=new Map,this._fetchQueuePerLayer=new Map,this._taskQueue=new Map,this._isHeaderLoaded=!1,this.textureDescriptorPerLayer=new Map,this.texturePerLayer=new Map}getLayers(){return this._mrt?Object.values(this._mrt.layers):[]}getLayer(e){return this._mrt&&this._mrt.getLayer(e)}setTexturePerLayer(t,i,r){const n=r.context,o=n.gl;let s=this.texturePerLayer.get(t)||r.getTileTexture(i.width);s&&s instanceof e.a_?s.update(i,{premultiply:!1}):s=new e.a_(n,i,o.RGBA8,{premultiply:!1}),this.texturePerLayer.has(t)||this.texturePerLayer.set(t,s)}flushQueues(e){const t=this._workQueuePerLayer.get(e)||[],i=this._fetchQueuePerLayer.get(e)||[];for(;t.length;)t.pop()();for(;i.length;)i.pop()()}flushAllQueues(){for(const e of this._workQueuePerLayer.keys()){const t=this._workQueuePerLayer.get(e)||[];for(;t.length;)t.pop()()}for(const e of this._fetchQueuePerLayer.keys()){const t=this._fetchQueuePerLayer.get(e)||[];for(;t.length;)t.pop()()}}fetchHeader(t=16384,i){const r=this._mrt=new e.af(30),n=Object.assign({},this.requestParams,{headers:{Range:"bytes=0-"+(t-1)}});return this.entireBuffer=null,this.request=e.cG(n,(e,n,o)=>{if(e)i(e);else try{const e=r.getHeaderLength(n);if(e>t)return void(this.request=this.fetchHeader(e,i));r.parseHeader(n),this._isHeaderLoaded=!0;let s=0;for(const t of Object.values(r.layers))s=Math.max(s,t.dataIndex.at(-1).lastByte);n.byteLength>=s&&(this.entireBuffer=n),i(null,this.entireBuffer||n,o)}catch(e){i(e)}}),this.request}fetchBandForRender(e,t,i,r){this.fetchBand(e,t,i,n=>{if(n)return void r(n);this.updateTextureDescriptor(e,t,i);const o=this.textureDescriptorPerLayer.get(t);r(null,o?o.img:null)})}fetchBand(t,i,r,n,o=!0){const s=this._mrt;if(!this._isHeaderLoaded||!s)return void n(new Error("Tile header is not ready"));const a=this.actor;if(!a)return void n(new Error("Can't fetch tile band without an actor"));let l;const c=e.ea(String(r),e.ea(this.tileID.key,t));let h=this._taskQueue.get(c);h?h.add(n):(h=new Set,h.add(n),this._taskQueue.set(c,h));const u=(e,t)=>
1{l.complete(e,t),e?n(e):(h.forEach(e=>e(null,t)),this._taskQueue.delete(c))},d=(e,t)=>{if(e)return n(e);const r=a.send("decodeRasterArray",{type:"raster-array",source:this.source,scope:this.scope,tileID:this.tileID,uid:this.uid,buffer:t,task:l},u,void 0,!0);if(null!==i){const e=this._workQueuePerLayer.get(i)||[];e.push(()=>{r&&r.cancel(),l.cancel()}),this._workQueuePerLayer.has(i)||this._workQueuePerLayer.set(i,e)}};let f;try{f=s.getLayer(t)}catch(e){if("reloading"===this.state)return;throw e}if(!f)return void n(new Error(`Unknown sourceLayer "${t}"`));if(f.hasDataForBand(r))return h.forEach(e=>e(null,null)),void this._taskQueue.delete(c);const p=f.getDataRange([r]);if(l=s.createDecodingTask(p),!l||l.tasks.length)if(null!==i&&this.flushQueues(i),this.entireBuffer)d(null,this.entireBuffer.slice(p.firstByte,p.lastByte+1));else{const t=Object.assign({},this.requestParams,{headers:{Range:`bytes=${p.firstByte}-${p.lastByte}`}}),r=e.cG(t,d);if(null!==i){const e=this._fetchQueuePerLayer.get(i)||[];e.push(()=>{r.cancel(),l.cancel()}),this._fetchQueuePerLayer.has(i)||this._fetchQueuePerLayer.set(i,e)}}}updateNeeded(e,t){return(!this.textureDescriptorPerLayer.get(e)||this.textureDescriptorPerLayer.get(e).band!==t||this.refreshedUponExpiration)&&"errored"!==this.state}updateTextureDescriptor(t,i,r){if(!this._mrt)return;const n=this._mrt.getLayer(t);if(!n||!n.hasBand(r)||!n.hasDataForBand(r))return;const{bytes:o,tileSize:s,buffer:a,offset:l,scale:c}=n.getBandView(r),h=s+2*a,u=new e.ay({width:h,height:h},o),d=this.texturePerLayer.get(i);d&&d instanceof e.a_&&d.update(u,{premultiply:!1}),this.textureDescriptorPerLayer.set(i,{layer:t,band:r,img:u,buffer:a,offset:l,tileSize:s,format:n.pixelFormat,mix:[c,256*c,65536*c,16777216*c]})}destroy(t=!1){if(super.destroy(t),delete this._mrt,!t)for(const i of this.texturePerLayer.values())i&&i instanceof e.a_&&i.destroy();this.texturePerLayer.clear(),this.textureDescriptorPerLayer.clear(),this.fbo&&(this.fbo.destroy(),delete this.fbo),delete this.request,delete this.requestParams,this._isHeaderLoaded=!1}}function zr(t,i){const r=Math.pow(2,i.z),n=Math.floor(e.ek(t.getWest())*r),o=Math.floor(e.el(t.getNorth())*r),s=Math.ceil(e.ek(t.getEast())*r),a=Math.ceil(e.el(t.getSouth())*r);return i.x>=n&&i.x<s&&i.y>=o&&i.y<a}class Lr{constructor(t,i,r){this.bounds=t?e.ac.convert(this.validateBounds(t)):null,this.minzoom=i||0,this.maxzoom=r||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]}addExtraBounds(t){if(t){this.extraBounds||(this.extraBounds=[]);for(const i of t)this.extraBounds.push(e.ac.convert(this.validateBounds(i)))}}contains(e){if(e.z>this.maxzoom||e.z<this.minzoom)return!1;if(this.bounds&&!zr(this.bounds,e))return!1;if(!this.extraBounds)return!0;for(const t of this.extraBounds)if(zr(t,e))return!0;return!1}static fromTileJSON(e){if(!e.bounds&&!e.extra_bounds)return null;const t=new Lr(e.bounds,e.minzoom,e.maxzoom);return t.addExtraBounds(e.extra_bounds),t}}class Fr extends e.y{constructor(t,i,r,n){super(),this.id=t,this.dispatcher=r,this.setEventedParent(n),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=Object.assign({type:"raster"},i),Object.assign(this,e.eF(i,["url","scheme","tileSize"]))}load(t){this._loaded=!1,this.fire(new e.x("dataloading",{dataType:"source"}));const i=this.map.getWorldview(),r=(i,r)=>{this._tileJSONRequest=null,this._loaded=!0,i?this.fire(new e.v(i)):r&&(Object.assign(this,r),r.raster_layers&&(this.rasterLayers=r.raster_layers,this.rasterLayerIds=this.rasterLayers.map(e=>e.id)),this.tileBounds=Lr.fromTileJSON(r),j(r.tiles),this.fire(new e.x("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.x("data",{dataType:"source",sourceDataType:"content"}))),t&&t(i)};this.provider="string"==typeof this._options.provider?this._options.provider:void 0,this._tileProvider=void 0;const n=e.f1(this._options);return n instanceof Error?(this._loaded=!0,this.fire(new e.v(n)),void(t&&t())):this.provider&&!n?(this._loaded=!0,this.fire(new e.v(new Error(`TileProvider "${this.provider}" is not registered`))),void(t&&t())):void(this._tileJSONRequest=n?this.loadTileJSONWithProvider(n,r):e.e7(this._options,this.map._requestManager,null,i,r))}loadTileJSONWithProvider(t,i){this.provider=t.name;const{request:r,options:n}=e.eC(this._options,this.map._requestManager),o=new AbortController;return e.e8(t.name,t.url).then(e=>{if(o.signal.aborted)return;const t=new e(n);return t.load&&r?t.load({request:r}).then(e=>(this._tileProvider=t,e)):(this._tileProvider=t,null)}).then(t=>{if(o.signal.aborted)return;const r=e.eW(this._options,t,this.map._requestManager);r instanceof Error?i(r):i(null,r)}
1).catch(e=>{o.signal.aborted||i(e instanceof Error?e:new Error(String(e)))}),{cancel:()=>o.abort()}}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}reload(){this.cancelTileJSONRequest();const t=e.ea(this.id,this.scope);this.load(()=>this.map.style.clearSource(t))}setTiles(e){return this._options.tiles=e,this.reload(),this}setUrl(e){return this.url=e,this._options.url=e,this.reload(),this}onRemove(e){this.cancelTileJSONRequest()}serialize(){return Object.assign({},this._options)}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(t,i){const r=e.co.devicePixelRatio>=2,n=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),r,this.tileSize),o=this.map._requestManager.transformRequest(n,e.aH.Tile);if(this._tileProvider){const e=new AbortController;t.request={cancel:()=>e.abort()},this.loadTileWithProvider(t,this._tileProvider,o,e,i)}else t.request=e.cQ(o,(r,n,o)=>{if(delete t.request,t.aborted)return t.state="unloaded",i(null);if(r)return t.state="errored",i(r);if(!n)return i(null);const s=e.cO(o);this.map._refreshExpiredTiles&&t.setExpiryData(s),t.setTexture(n,this.map.painter),t.state="loaded",e.bv(this.dispatcher),i(null)})}async loadTileWithProvider(e,t,i,r,n){const{z:o,x:s,y:a}=e.tileID.canonical;try{const l=await t.loadTile({z:o,x:s,y:a},{request:i,signal:r.signal});if(r.signal.aborted)return e.state="unloaded",n(null);if(null==l){const t=new Error("Tile not found");return t.status=404,e.state="errored",n(t)}if(null==l.data)return e.state="loaded",n(null);const c=l.data instanceof ImageBitmap?l.data:await createImageBitmap(new Blob([l.data]));if(r.signal.aborted)return e.state="unloaded",n(null);e.setTexture(c,this.map.painter),e.state="loaded",this.map._refreshExpiredTiles&&e.setExpiryData({cacheControl:l.cacheControl,expires:l.expires}),n(null)}catch(t){if(r.signal.aborted)return e.state="unloaded",n(null);if(t instanceof DOMException&&"AbortError"===t.name)return e.state="unloaded",n(null);e.state="errored",n(t instanceof Error?t:new Error(String(t)))}finally{delete e.request}}abortTile(e,t){e.request&&(e.request.cancel(),delete e.request),t&&t()}
1unloadTile(t,i){t.texture&&t.texture instanceof e.a_?(t.destroy(!1),t.texture&&t.texture instanceof e.a_&&this.map.painter.saveTileTexture(t.texture)):t.destroy(),i&&i()}hasTransition(){return!1}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}function Or([t,i],r,n,{scaled:o=!0}={}){const{tileSize:s,buffer:a}=n,{x:l,y:c,z:h}=r;if(!isFinite(l)||!isFinite(c)||!isFinite(h))throw new Error("Invalid MRT header");const u=2**h,d=u*e.ek(t),f=u*e.el(i);return function([e,t],i,{scaled:r=!0}={}){if(!i)throw new Error("bandView is undefined");const{data:n,tileSize:o,buffer:s,offset:a,scale:l,dimension:c}=i;if(e<-s||e>o+s||t<-s||t>o+s)throw new Error(`Point (${e}, ${t}) out of bounds for tileSize=${o}, buffer=${s}`);const h=(t+s)*(o+2*s)+(e+s);if(4294967295===new Uint32Array(n.buffer)[h])return null;let u=[];u=r?[]:new(0,i.data.constructor)(c);for(let d=0;d<c;d++)u[d]=Math.round(1e12*(n[c*h+d]*l+a))/1e12;return u}([Math.min(Math.max(-a,Math.floor((d-l)*s)),s-1+a),Math.min(Math.max(-a,Math.floor((f-c)*s)),s-1+a)],n,{scaled:o})}class kr extends Fr{constructor(e,t,i,r){super(e,t,i,r),this.type="raster-array",this.maxzoom=22,this.partial=!0,this._loadTilePending={},this._loadTileLoaded={},this._options=Object.assign({type:"raster-array"},t)}triggerRepaint(e){const t=this.map.painter._terrain,i=this.map.style.getSourceCache(this.id);t&&t.enabled&&i&&t._clearRenderCacheForTile(i.id,e.tileID),this.map.triggerRepaint()}loadTile(t,i){const r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize),n=this.map._requestManager.transformRequest(r,e.aH.Tile),o={request:n,uid:t.uid,tileID:t.tileID,type:this.t
1ype,source:this.id,scope:this.scope,partial:this.partial};t.source=this.id,t.scope=this.scope,t.requestParams=n,t.actor||(t.actor=this.dispatcher.getActor());const s=(r,n,o)=>{if(delete t.request,t.aborted)return t.state="unloaded",i(null);if(r){if("AbortError"===r.name)return;return t.state="errored",i(r)}if(this.map._refreshExpiredTiles&&n){const i=e.cO(o);t.setExpiryData(i)}if(this.partial&&"expired"!==t.state)t.state="empty";else if(!this.partial){if(!n)return i(null);t.state="loaded",t._isHeaderLoaded=!0,t._mrt=n}i(null)};t.request=this.partial?t.fetchHeader(void 0,s.bind(this)):t.actor.send("loadTile",o,s.bind(this),void 0,!0)}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,scope:this.scope})}unloadTile(e,t){const i=e.texturePerLayer;if(e.flushAllQueues(),i.size){e.destroy(!1);for(const e of i.values())this.map.painter.saveTileTexture(e)}else e.destroy()}prepareTile(t,i,r,n){t._isHeaderLoaded&&("empty"!==t.state&&(t.state="reloading"),t.fetchBandForRender(i,r,n,(i,n)=>{i?(t.state="errored",this.fire(new e.v(i))):n&&(t._isHeaderLoaded=!0,t.setTexturePerLayer(r,n,this.map.painter),t.state="loaded"),this.triggerRepaint(t)}))}getInitialBand(e){if(!this.rasterLayers)return 0;const t=this.rasterLayers.find(({id:t})=>t===e),i=t&&t.fields,r=i&&i.bands&&i.bands;return r?r[0]:0}getTextureDescriptor(t,i,r){if(!t)return;const n=i.sourceLayer||this.rasterLayerIds&&this.rasterLayerIds[0];if(!n)return;let o=null;i instanceof e.aA?o=i.paint.get("raster-array-band"):i instanceof e.az&&(o=i.paint.get("raster-particle-array-band"));const s=o||this.getInitialBand(n);if(null==s)return;if(!t.textureDescriptorPerLayer.get(i.id))return void this.prepareTile(t,n,i.id,s);if(t.updateNeeded(i.id,s)&&!r)return;const a=t.textureDescriptorPerLayer.get(i.id);return Object.assign({},a,{texture:t.texturePerLayer.get(i.id)})}getImages(t,i){const r=new Map;for(const n of t)for(const t of i){const[i,o]=t.split("/"),s=n.getLayer(i);if(!s)continue;if(!s.hasBand(o)||!s.hasDataForBand(o))continue;const{bytes:a,tileSize:l,buffer:c}=s.getBandView(o),h=l+2*c,u={data:new e.ay({width:h,height:h},a),pixelRatio:2,sdf:!1,usvg:!1,version:0};r.set(t,u)}return r}queryRasterArrayValueByBandId(t,i,r){const n=i._mrt;return new Promise(o=>{const s={},a=new Set;for(const[l,c]of Object.entries(n.layers)){if(r.layerName&&l!==r.layerName)continue;const h={};s[l]=h;for(const{bands:u}of c.dataIndex)for(const d of u)r.bands&&!r.bands.includes(d)||(a.add(e.ea(l,d)),i.fetchBand(l,null,d,i=>{e.co.frame(()=>{h[d]=i?null:Or([t.lng,t.lat],n,c.getBandView(d)),a.delete(e.ea(l,d)),0===a.size&&o(s)})},!1))}0===a.size&&o(s)})}_loadTileForQuery(t,i){if(this._loadTileLoaded[t.uid])return void i(null,t._mrt);if(this._loadTilePending[t.uid])return void this._loadTilePending[t.uid].push(i);this._loadTilePending[t.uid]=[i];const r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize),n=this.map._requestManager.transformRequest(r,e.aH.Tile);t.actor.send("loadTile",{request:n,uid:t.uid,tileID:t.tileID,type:this.t
1ype,source:this.id,scope:this.scope,partial:!1},(i,r,n)=>{if(i)return this._loadTilePending[t.uid].forEach(e=>e(i,null)),void delete this._loadTilePending[t.uid];if(!r)return this._loadTilePending[t.uid].forEach(e=>e(null,null)),void delete this._loadTilePending[t.uid];if(this.map._refreshExpiredTiles&&r){const i=e.cO(n);t.setExpiryData(i)}t._mrt=r,t._isHeaderLoaded=!0,t.state="loaded",this._loadTilePending[t.uid].forEach(e=>e(null,r)),this._loadTileLoaded[t.uid]=!0,delete this._loadTilePending[t.uid]},void 0,!0)}queryRasterArrayValueByAllBands(e,t,i){return new Promise((r,n)=>{this._loadTileForQuery(t,(o,s)=>{o?n(o):r(s?this.queryRasterArrayValueByBandId(e,t,i):null)})})}queryRasterArrayValue(t,i){const r=e.ab.convert(t),n=this.findLoadedParent(r);return n&&n._mrt?i.bands||!this.partial?this.queryRasterArrayValueByBandId(r,n,i):this.queryRasterArrayValueByAllBands(r,n,i):Promise.resolve(null)}findLoadedParent(t){const i=e.ag.fromLngLat(t,this.map.transform.tileSize),r=this.maxzoom+1,n=1<<r,o=Math.floor(i.x),s=Math.floor((i.x-o)*n),a=Math.floor(i.y*n),l=this.map.style.getSourceCache(this.id),c=new e.ap(r,o,r,s,a);return l.findLoadedParent(c,this.minzoom)}}var Nr=e.b_([{name:"a_index",type:"Int16",components:1}]);class Ur{constructor(t,i,r,n){const o={width:r[0],height:r[1],data:null},s=t.gl;this.targetColorTexture=new e.a_(t,o,s.RGBA8,{useMipmap:!1}),this.backgroundColorTexture=new e.a_(t,o,s.RGBA8,{useMipmap:!1}),this.context=t,this.updateParticleTexture(i,n),this.lastInvalidatedAt=0}updateParticleTexture(t,i){if(this.particleTextureDimension===i.width)return;(this.particleTexture0||this.particleTexture1||this.particleIndexBuffer||this.particleSegment)&&(this.particleTexture0.destroy(),this.particleTexture1.destroy(),this.particleIndexBuffer.destroy(),this.particleSegment.destroy());const r=this.context.gl,n=i.width*i.height;this.particleTexture0=new e.a_(this.context,i,r.RGBA8,{premultiply:!1,useMipmap:!1}),this.particleTexture1=new e.a_(this.context,i,r.RGBA8,{premultiply:!1,useMipmap:!1});const o=new e.aL;o.reserve(n);for(let e=0;e<n;e++)o.emplaceBack(e);this.particleIndexBuffer=this.context.createVertexBuffer(o,Nr.members,!0),this.particleSegment=e.aJ.simpleSegment(0,0,this.particleIndexBuffer.length,0),this.particleTextureDimension=i.width}update(t){return!(this.lastInvalidatedAt<t&&(this.lastInvalidatedAt=e.co.now(),1))}destroy(){this.targetColorTexture.destroy(),this.backgroundColorTexture.destroy(),this.particleIndexBuffer.destroy(),this.particleTexture0.destroy(),this.particleTexture1.destroy(),this.particleSegment.destroy()}}function Vr(t,i,r,n,o){if(o>0){const s=e.co.now(),a=(s-t.timeAdded)/o,l=i?(s-i.timeAdded)/o:-1,c=r.getSource(),h=n.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),u=!i||Math.abs(i.tileID.overscaledZ-h)>Math.abs(t.tileID.overscaledZ-h),d=u&&t.refreshedUponExpiration?1:e.bG(u?a:1-l,0,1);return i?{opacity:1,mix:1-d,isFading:a<1}:{opacity:d,mix:0,isFading:a<1}}return{opacity:1,mix:0,isFading:!1}}function Hr(t,i,r){if(!t)return null;const n=i.getTextureDescriptor(t,r,!0);if(!n)return null;let{texture:o,mix:s,offset:a,tileSize:l,buffer:c,format:h}=n;if(!o||!h)return null;let u=!1;return"uint32"===h&&(u=!0,s[3]=0,s=Sr(e.d,s,[0,r.paint.get("raster-particle-max-speed")]),a=Pr(e.d,a,[0,r.paint.get("raster-particle-max-speed")])),{texture:o,textureOffset:[c/(l+2*c),l/(l+2*c)],tileSize:l,scalarData:u,scale:s,offset:a,defines:["RASTER_ARRAY",{uint8:"DATA_FORMAT_UINT8",uint16:"DATA_FORMAT_UINT16",uint32:"DATA_FORMAT_UINT32"}[h]]}}function jr(e){const t=e._nearZ,i=e.projection.farthestPixelDistance(e),r=i-t,n=.2*e.height,o=t+n;return[t,i,(o-n-t)/r,(o-t)/r]}var Gr="#ifdef RASTER_ARRAY\nuniform sampler2D u_velocity;uniform mediump vec2 u_velocity_res;uniform mediump float u_max_speed;const vec4 NO_DATA=vec4(1);const vec2 INVALID_VELOCITY=vec2(-1);uniform highp vec2 u_uv_offset;uniform highp float u_data_offset;uniform highp vec2 u_data_scale;ivec4 rasterArrayLinearCoord(highp vec2 texCoord,highp vec2 texResolution,out highp vec2 fxy) {texCoord=texCoord*texResolution-0.5;fxy=fract(texCoord);texCoord-=fxy;return ivec4(texCoord.xxyy+vec2(1.5,0.5).xyxy);}highp vec2 lookup_velocity(highp vec2 uv) {uv=u_uv_offset.x+u_uv_offset.y*uv;highp vec2 fxy;ivec4 c=rasterArrayLinearCoord(uv,u_velocity_res,fxy);highp vec4 tl=texelFetch(u_velocity,c.yz,0);highp vec4 tr=texelFetch(u_velocity,c.xz,0);highp vec4 bl=texelFetch(u_velocity,c.yw,0);highp vec4 br=texelFetch(u_velocity,c.xw,0);if (tl==NO_DATA) {return INVALID_VELOCITY;}if (tr==NO_DATA) {return INVALID_VELOCITY;}if (bl==NO_DATA) {return INVALID_VELOCITY;}if (br==NO_DATA) {return INVALID_VELOCITY;}highp vec4 t=mix(mix(bl,br,fxy.x),mix(tl,tr,fxy.x),fxy.y);highp vec2 velocity=u_data_offset+vec2(dot(t.rg,u_data_scale),dot(t.ba,u_data_scale));velocity.y=-velocity.y;velocity/=max(u_max_speed,length(velocity));return velocity;}\n#endif\nuniform highp float u_particle_pos_scale;uniform highp vec2 u_particle_pos_offset;highp vec4 pack_pos_to_rgba(highp vec2 p) {highp vec2 v=(p+u_particle_pos_offset)/u_particle_pos_scale;highp vec4 r=vec4(v.x,fract(v.x*255.0),v.y,fract(v.y*255.0));return vec4(r.x-r.y/255.0,r.y,r.z-r.w/255.0,r.w);}highp vec2 unpack_pos_from_rgba(highp vec4 v) {v=floor(v*255.0+0.5)/255.0;highp vec2 p=vec2(v.x+(v.y/255.0),v.z+(v.w/255.0));return u_particle_pos_scale*p-u_particle_pos_offset;}",Yr="\n#define EPSILON 0.0000001\n#define PI 3.141592653589793\n#ifdef RENDER_CUTOFF\nfloat cutoff_opacity(vec4 cutoff_params,float depth) {float near=cutoff_params.x;float far=cutoff_params.y;float cutoffStart=cutoff_params.z;float cutoffEnd=cutoff_params.w;float linearDepth=(depth-near)/(far-near);return clamp((linearDepth-cutoffStart)/(cutoffEnd-cutoffStart),0.0,1.0);}\n#endif",Wr="\n#ifdef DUAL_SOURCE_BLENDING\nlayout(location=0,index=0) out vec4 glFragColor;layout(location=0,index=1) out vec4 glFragColorSrc1;\n#elif defined(FLOAT_RENDER_TARGET)\nlayout(location=0) out highp vec4 glFragColor;\n#else\nlayout(location=0) out vec4 glFragColor;\n#endif\n#ifdef USE_MRT1\nlayout(location=1) out vec4 out_Target1;\n#endif\nhighp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}highp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/255.0,1.0/255.0,1.0/255.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}\n#ifdef INDICATOR_CUTOUT\nuniform vec3 u_indicator_cutout_centers;uniform vec4 u_indicator_cutout_params;\n#endif\nconst float DITHER_THRESHOLDS[16]=float[16](\n1.0/17.0, 9.0/17.0, 3.0/17.0,11.0/17.0,13.0/17.0, 5.0/17.0,15.0/17.0, 7.0/17.0,4.0/17.0,12.0/17.0, 2.0/17.0,10.0/17.0,16.0
1/17.0, 8.0/17.0,14.0/17.0, 6.0/17.0\n);vec4 applyCutout(vec4 color,float height) {\n#ifdef INDICATOR_CUTOUT\nfloat verticalFadeRange=u_indicator_cutout_centers.z*0.25;float holeMinOpacity=mix(1.0,u_indicator_cutout_params.x,smoothstep(u_indicator_cutout_centers.z,u_indicator_cutout_centers.z+verticalFadeRange,height));float holeRadius=max(u_indicator_cutout_params.y,0.0);float holeAspectRatio=u_indicator_cutout_params.z;float fadeStart=u_indicator_cutout_params.w;float distA=distance(vec2(gl_FragCoord.x,gl_FragCoord.y*holeAspectRatio),vec2(u_indicator_cutout_centers[0],u_indicator_cutout_centers[1]*holeAspectRatio));return color*min(smoothstep(fadeStart,holeRadius,distA)+holeMinOpacity,1.0);\n#else\nreturn color;\n#endif\n}float cutoutGroundRoofOpacity(vec4 groundRoof) {\n#ifdef INDICATOR_CUTOUT\nfloat fadeStartX=u_indicator_cutout_params.w;float holeRadius=u_indicator_cutout_params.y;float holeMinOpacity=mix(u_indicator_cutout_params.x,1.0,smoothstep(u_indicator_cutout_params.z,u_indicator_cutout_centers.z,groundRoof.y));float distX=abs(u_indicator_cutout_centers.x-groundRoof.x);float roofOpacity=mix(holeMinOpacity,1.0,smoothstep(fadeStartX,holeRadius,u_indicator_cutout_centers.y-groundRoof.w));float groundOpacity=min(smoothstep(fadeStartX,holeRadius,distX)+holeMinOpacity,1.0);return max(roofOpacity,groundOpacity);\n#else\nreturn 1.0;\n#endif\n}\n#ifdef DEBUG_WIREFRAME\n#define HANDLE_WIREFRAME_DEBUG \\\nglFragColor=vec4(0.7,0.0,0.0,0.7); \\\ngl_FragDepth=gl_FragCoord.z-0.0001;\n#else\n#define HANDLE_WIREFRAME_DEBUG\n#endif\n#ifdef RENDER_CUTOFF\nuniform highp vec4 u_cutoff_params;in float v_cutoff_opacity;\n#endif\nvec4 textureLodCustom(sampler2D image,highp vec2 pos,highp vec2 lod_coord) {highp vec2 size=vec2(textureSize(image,0));highp vec2 dx=dFdx(lod_coord.xy*size);highp vec2 dy=dFdy(lod_coord.xy*size);highp float delta_max_sqr=max(dot(dx,dx),dot(dy,dy));highp float lod=0.5*log2(delta_max_sqr);return textureLod(image,pos,lod);}vec4 premultiplyColor(vec3 nonPremultipliedColor,float a) {return vec4(nonPremultipliedColor*a,a);}vec3 unpremultiplyColor(vec4 premultipliedColor) {if (premultipliedColor.a > 0.0) {return premultipliedColor.rgb/premultipliedColor.a;}return premultipliedColor.rgb;}vec3 applyLUT(highp sampler3D lut,vec3 col) {vec3 size=vec3(textureSize(lut,0));vec3 uvw=(col.rbg*float(size-1.0)+0.5)/size;return texture(lut,uvw).rgb;}vec4 applyLUT(highp sampler3D lut,vec4 premultipliedColor) {return premultiplyColor(applyLUT(lut,unpremultiplyColor(premultipliedColor)),premultipliedColor.a);}",Jr="\n#define EXTENT 8192.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\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);}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 vec2 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);
1return (units_to_pixels*pos+offset)/pattern_size;}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) {return get_pattern_pos(pixel_coord_upper,pixel_coord_lower,pattern_size,vec2(tile_units_to_pixels),pos);}float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(PI/4.0+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);}\n#ifdef RENDER_CUTOFF\nuniform vec4 u_cutoff_params;out float v_cutoff_opacity;\n#endif\nconst vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);const float skirtOffset=24575.0;vec3 decomposeToPosAndSkirt(ivec2 posWithComposedSkirt)\n{float skirt=float(float(posWithComposedSkirt.x) >=skirtOffset);vec2 pos=vec2(posWithComposedSkirt)-vec2(skirt*skirtOffset,0.0);return vec3(pos,skirt);}\n#ifndef HAS_SHADER_STORAGE_BLOCK_material_buffer\n#define GET_ATTRIBUTE_float(attrib,matInfo,attrib_id) attrib\n#define GET_ATTRIBUTE_vec4(attrib,matInfo,attrib_id) attrib\n#define GET_ATTRIBUTE_vec2(attrib,matInfo,attrib_id) attrib\n#define DECLARE_MATERIAL_TABLE_INFO\n#endif",Zr="in highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;out 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;}",qr="\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\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;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;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 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*texture(u_dem,pos).r;\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=texture(u_dem,pos).r;float tr=texture(u_dem,pos+vec2(dd,0)).r;float bl=texture(u_dem,pos+vec2(0,dd)).r;float br=texture(u_dem,pos+vec2(dd,dd)).r;return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}float 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*texture(u_dem_prev,pos).r;\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=texture(u_dem_prev,pos).r;float tr=texture(u_dem_prev,pos+vec2(dd,0)).r;float bl=texture(u_dem_prev,pos+vec2(0,dd)).r;float br=texture(u_dem_prev,pos+vec2(dd,dd)).r;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) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nfloat nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}
1\n#else\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nreturn currentElevation(apos);}\n#endif\nvec4 fourSample(vec2 pos,vec2 off) {float tl=texture(u_dem,pos).r;float tr=texture(u_dem,pos+vec2(off.x,0.0)).r;float bl=texture(u_dem,pos+vec2(0.0,off.y)).r;float br=texture(u_dem,pos+off).r;return 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;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; }\n#endif\n#ifdef DEPTH_OCCLUSION\nuniform highp sampler2D u_depth;uniform highp vec2 u_depth_size_inv;uniform highp vec2 u_depth_range_unpack;uniform highp float u_occluder_half_size;uniform highp float u_occlusion_depth_offset;\n#ifdef DEPTH_D24\nfloat unpack_depth(float depth) {return depth*u_depth_range_unpack.x+u_depth_range_unpack.y;}vec4 unpack_depth4(vec4 depth) {return depth*u_depth_range_unpack.x+vec4(u_depth_range_unpack.y);}\n#else\nhighp float unpack_depth_rgba(vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}\n#endif\nbool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;\n#ifdef CLIP_ZERO_TO_ONE\ncoord.z=-1.0+2.0*coord.z; \n#endif\n#ifdef DEPTH_D24\nfloat depth=unpack_depth(texture(u_depth,(coord.xy+1.0)*0.5).r);\n#else\nfloat depth=unpack_depth_rgba(texture(u_depth,(coord.xy+1.0)*0.5));\n#endif\nreturn coord.z+u_occlusion_depth_offset > depth;}highp vec4 getCornerDepths(vec2 coord) {highp vec3 df=vec3(u_occluder_half_size*u_depth_
1size_inv,0.0);highp vec2 uv=0.5*coord.xy+0.5;\n#ifdef DEPTH_D24\nhighp vec4 depth=vec4(\ntexture(u_depth,uv-df.xz).r,texture(u_depth,uv+df.xz).r,texture(u_depth,uv-df.zy).r,texture(u_depth,uv+df.zy).r\n);depth=unpack_depth4(depth);\n#else\nhighp vec4 depth=vec4(\nunpack_depth_rgba(texture(u_depth,uv-df.xz)),unpack_depth_rgba(texture(u_depth,uv+df.xz)),unpack_depth_rgba(texture(u_depth,uv-df.zy)),unpack_depth_rgba(texture(u_depth,uv+df.zy))\n);\n#endif\nreturn depth;}highp float occlusionFadeMultiSample(vec4 frag) {highp vec3 coord=frag.xyz/frag.w;highp vec2 uv=0.5*coord.xy+0.5;\n#ifdef CLIP_ZERO_TO_ONE\ncoord.z=-1.0+2.0*coord.z; \n#endif\nint NX=3;int NY=4;highp vec2 df=u_occluder_half_size*u_depth_size_inv;highp vec2 oneStep=2.0*u_occluder_half_size*u_depth_size_inv/vec2(NX-1,NY-1);highp float res=0.0;for (int y=0; y < NY;++y) {for (int x=0; x < NX;++x) {\n#ifdef DEPTH_D24\nhighp float depth=unpack_depth(texture(u_depth,uv-df+vec2(float(x)*oneStep.x,float(y)*oneStep.y)).r);\n#else\nhighp float depth=unpack_depth_rgba(texture(u_depth,uv-df+vec2(float(x)*oneStep.x,float(y)*oneStep.y)));\n#endif\nres+=1.0-clamp(300.0*(coord.z+u_occlusion_depth_offset-depth),0.0,1.0);}}res=clamp(2.0*res/float(NX*NY)-0.5,0.0,1.0);return res;}highp float occlusionFade(vec4 frag) {highp vec3 coord=frag.xyz/frag.w;\n#ifdef CLIP_ZERO_TO_ONE\ncoord.z=-1.0+2.0*coord.z; \n#endif\nhighp vec4 depth=getCornerDepths(coord.xy);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z+u_occlusion_depth_offset)-depth),0.0,1.0));}\n#else\nbool isOccluded(vec4 frag) { return false; }highp float occlusionFade(vec4 frag) { return 1.0; }highp float occlusionFadeMultiSample(vec4 frag) { return 1.0; }\n#endif",Kr="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump mat4 u_fog_matrix;out 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);}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",Xr="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump vec2 u_fog_vertical_limit;uniform mediump float u_fog_temporal_offset;in vec3 v_fog_pos;uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform highp vec2 u_viewport;uniform float u_globe_transition;uniform int u_is_globe;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);}float globe_glow_progress() {highp vec2 uv=gl_FragCoord.xy/u_viewport;\n#ifdef FLIP_Y\nuv.y=1.0-uv.y;\n#endif\nhighp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float sdf=length(closest_point-u_globe_pos)/u_globe_radius;return sdf+PI*0.5;}float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos,float opacity_limit) {float depth=length(pos);float opacity;if (u_is_globe==1) {float glow_progress=globe_glow_progress();float t=mix(glow_progress,depth,u_globe_transition);opacity=fog_opacity(fog_range(t));} else {opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);}return mix(color,u_fog_color.rgb,min(opacity,opacity_limit));}vec3 fog_apply(vec3 color,vec3 pos) {return fog_apply(color,pos,1.0);}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;}
1vec3 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;}vec4 fog_apply_premultiplied(vec4 color,vec3 pos,float heightMeters) {float verticalProgress=(u_fog_vertical_limit.x > 0.0 || u_fog_vertical_limit.y > 0.0) ? smoothstep(u_fog_vertical_limit.x,u_fog_vertical_limit.y,heightMeters) : 0.0;float opacityLimit=1.0-smoothstep(0.9,1.0,fog_opacity(pos));return mix(fog_apply_premultiplied(color,pos),color,min(verticalProgress,opacityLimit));}vec3 fog_dither(vec3 color) {return color;}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\n#endif",$r="\n#ifdef LIGHTING_3D_MODE\nuniform mediump vec3 u_lighting_ambient_color;uniform mediump vec3 u_lighting_directional_dir;uniform mediump vec3 u_lighting_directional_color;uniform mediump vec3 u_ground_radiance;float calculate_ambient_directional_factor(vec3 normal) {float NdotL=dot(normal,u_lighting_directional_dir);const float factor_reduction_max=0.3;float dir_luminance=dot(u_lighting_directional_color,vec3(0.2126,0.7152,0.0722));float directional_factor_min=1.0-factor_reduction_max*min(dir_luminance,1.0);float ambient_directional_factor=mix(directional_factor_min,1.0,min((NdotL+1.0),1.0));const float vertical_factor_min=0.92;float vertical_factor=mix(vertical_factor_min,1.0,normal.z*0.5+0.5);return vertical_factor*ambient_directional_factor;}vec3 linearProduct(vec3 srgbIn,vec3 k) {return srgbIn*pow(k,vec3(1./2.2));}vec3 apply_lighting(vec3 color,vec3 normal,float dir_factor) {float ambient_directional_factor=calculate_ambient_directional_factor(normal);vec3 ambient_contrib=ambient_directional_factor*u_lighting_ambient_color;vec3 directional_contrib=u_lighting_directional_color*dir_factor;return linearProduct(color,ambient_contrib+directional_contrib);}vec4 apply_lighting(vec4 color,vec3 normal,float dir_factor) {return vec4(apply_lighting(color.rgb,normal,dir_factor),color.a);}vec3 apply_lighting(vec3 color,vec3 normal) {float dir_factor=max(dot(normal,u_lighting_directional_dir),0.0);return apply_lighting(color.rgb,normal,dir_factor);}vec4 apply_lighting(vec4 color,vec3 normal) {float dir_factor=max(dot(normal,u_lighting_directional_dir),0.0);return vec4(apply_lighting(color.rgb,normal,dir_factor),color.a);}vec3 apply_lighting_ground(vec3 color) {return color*u_ground_radiance;}vec4 apply_lighting_ground(vec4 color) {return vec4(apply_lighting_ground(color.rgb),color.a);}float calculate_NdotL(vec3 normal) {const float ext=0.70710678118;return (clamp(dot(normal,u_lighting_directional_dir),-ext,1.0)+ext)/(1.0+ext);}vec4 apply_lighting_with_emission_ground(vec4 color,float emissive_strength) {return mix(apply_lighting_ground(color),color,emissive_strength);}vec3 compute_flood_lighting(vec3 flood_light_color,float fully_occluded_factor,float occlusion,vec3 ground_shadow_factor) {vec3 fully_occluded_color=flood_light_color*mix(ground_shadow_factor,vec3(1.0),fully_occluded_factor);float occlusion_ramp=smoothstep(0.0,0.2,1.0-occlusion);return mix(fully_occluded_color,flood_light_color,occlusion_ramp);}vec3 compute_emissive_draped(vec3 unlit_color,float fully_occluded_factor,float occlusion,vec3 ground_shadow_factor) {vec3 fully_occluded_color=unlit_color*mix(ground_shadow_factor,vec3(1.0),fully_occluded_factor);return mix(fully_occluded_color,unlit_color,1.0-occlusion);}\n#endif",en="#ifdef RASTER_ARRAY\nuniform highp sampler2D u_image0;uniform sampler2D u_image1;const vec4 NODATA=vec4(1);ivec4 _raTexLinearCoord(highp vec2 texCoord,highp vec2 texResolution,out highp vec2 fxy) {texCoord=texCoord*texResolution-0.5;fxy=fract(texCoord);texCoord-=fxy;return ivec4(texCoord.xxyy+vec2(1.5,0.5).xyxy);}vec2 _raTexLinearMix(highp vec2 fxy,highp vec4 colorMix,highp float colorOffset,highp vec4 t00,highp vec4 t10,highp vec4 t01,highp vec4 t11) {vec2 c00=t00==NODATA ? vec2(0) : vec2(colorOffset+dot(t00,colorMix),1);vec2 c10=t10==NODATA ? vec2(0) : vec2(colorOffset+dot(t10,colorMix),1);vec2 c01=t01==NODATA ? vec2(0) : vec2(colorOffset+dot(t01,colorMix),1);vec2 c11=t11==NODATA ? vec2(0) : vec2(colorOffset+dot(t11,colorMix),1);return mix(mix(c01,c11,fxy.x),mix(c00,c10,fxy.x),fxy.y);}
1vec2 raTexture2D_image0_linear(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec2 fxy;ivec4 c=_raTexLinearCoord(texCoord,texResolution,fxy);return _raTexLinearMix(fxy,colorMix,colorOffset,texelFetch(u_image0,c.yz,0),texelFetch(u_image0,c.xz,0),texelFetch(u_image0,c.yw,0),texelFetch(u_image0,c.xw,0)\n);}vec2 raTexture2D_image1_linear(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec2 fxy;ivec4 c=_raTexLinearCoord(texCoord,texResolution,fxy);return _raTexLinearMix(fxy,colorMix,colorOffset,texelFetch(u_image1,c.yz,0),texelFetch(u_image1,c.xz,0),texelFetch(u_image1,c.yw,0),texelFetch(u_image1,c.xw,0)\n);}vec2 raTexture2D_image0_nearest(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec4 t=texelFetch(u_image0,ivec2(texCoord*texResolution),0);return t==NODATA ? vec2(0) : vec2(colorOffset+dot(t,colorMix),1);}vec2 raTexture2D_image1_nearest(highp vec2 texCoord,highp vec2 texResolution,highp vec4 colorMix,highp float colorOffset) {vec4 t=texelFetch(u_image1,ivec2(texCoord*texResolution),0);return t==NODATA ? vec2(0) : vec2(colorOffset+dot(t,colorMix),1);}\n#endif",tn="#ifdef RENDER_SHADOWS\nuniform mediump vec3 u_shadow_direction;uniform highp vec3 u_shadow_normal_offset;vec3 shadow_normal_offset(vec3 normal) {float tileInMeters=u_shadow_normal_offset[0];vec3 n=vec3(-normal.xy,tileInMeters*normal.z);float dotScale=min(1.0-dot(normal,u_shadow_direction),1.0)*0.5+0.5;return n*dotScale;}vec3 shadow_normal_offset_model(vec3 normal) {vec3 transformed_normal=vec3(-normal.xy,normal.z);float NDotL=dot(normalize(transformed_normal),u_shadow_direction);float dotScale=min(1.0-NDotL,1.0)*0.5+0.5;return normal*dotScale;}float shadow_normal_offset_multiplier0() {return u_shadow_normal_offset[1];}float shadow_normal_offset_multiplier1() {return u_shadow_normal_offset[2];}\n#endif",rn="#ifdef RENDER_SHADOWS\nprecision highp sampler2DShadow;uniform sampler2DShadow u_shadowmap_0;uniform sampler2DShadow u_shadowmap_1;uniform float u_shadow_intensity;uniform float u_shadow_map_resolution;uniform float u_shadow_texel_size;uniform highp vec3 u_shadow_normal_offset;uniform vec2 u_fade_range;uniform mediump vec3 u_shadow_direction;uniform highp vec3 u_shadow_bias;float shadow_sample(sampler2DShadow shadowmap,highp vec3 pos,highp float bias) {\n#ifdef CLIP_ZERO_TO_ONE\nhighp vec3 coord=vec3(pos.xy*0.5+0.5,pos.z-bias);\n#else\nhighp vec3 coord=vec3(pos.xy*0.5+0.5,pos.z*0.5+0.5-bias);\n#endif\nreturn texture(shadowmap,coord);}float shadow_occlusion(highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth,highp float bias) {light_view_pos0.xyz/=light_view_pos0.w;\n#ifdef SHADOWS_SINGLE_CASCADE\nvec2 abs_bounds=abs(light_view_pos0.xy);if (abs_bounds.x >=1.0 || abs_bounds.y >=1.0) {return 0.0;}return shadow_sample(u_shadowmap_0,light_view_pos0.xyz,bias);\n#else\nlight_view_pos1.xyz/=light_view_pos1.w;vec4 abs_bounds=abs(vec4(light_view_pos0.xy,light_view_pos1.xy));if (abs_bounds.x < 1.0 && abs_bounds.y < 1.0) {return shadow_sample(u_shadowmap_0,light_view_pos0.xyz,bias);}if (abs_bounds.z >=1.0 || abs_bounds.w >=1.0) {return 0.0;}float occlusion1=shadow_sample(u_shadowmap_1,light_view_pos1.xyz,bias);return clamp(mix(occlusion1,0.0,smoothstep(u_fade_range.x,u_fade_range.y,view_depth)),0.0,1.0);\n#endif\n}highp float calculate_shadow_bias(float NDotL) {\n#ifdef NORMAL_OFFSET\nreturn 0.5*u_shadow_bias.x;\n#else\nreturn 0.5*(u_shadow_bias.x+clamp(u_shadow_bias.y*tan(acos(NDotL)),0.0,u_shadow_bias.z));\n#endif\n}float shadowed_light_factor_normal(vec3 N,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float NDotL=dot(N,u_shadow_direction);float bias=calculate_shadow_bias(NDotL);float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);return mix(0.0,(1.0-(u_shadow_intensity*occlusion))*NDotL,step(0.0,NDotL));}float shadowed_light_factor_normal_opacity(vec3 N,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth,float shadow_opacity) {float NDotL=dot(N,u_shadow_direction);float bias=calculate_shadow_bias(NDotL);float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias)*shadow_opacity;return mix(0.0,(1.0-(u_shadow_intensity*occlusion))*NDotL,step(0.0,NDotL));}float shadowed_light_factor_normal_unbiased(vec3 N,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float NDotL=dot(N,u_shadow_direction);float bias=0.0;float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);return mix(0.0,(1.0-(u_shadow_intensity*occlusion))*NDotL,step(0.0,NDotL));}highp vec2 compute_receiver_plane_depth_bias(highp vec3 pos_dx,highp vec3 pos_dy)\n{highp vec2 biasUV=vec2(\npos_dy.y*pos_dx.z-pos_dx.y*pos_dy.z,pos_dx.x*pos_dy.z-pos_dy.x*pos_dx.z);biasUV*=1.0/((pos_dx.x*pos_dy.y)-(pos_dx.y*pos_dy.x));return biasUV;}float shadowed_light_factor_plane_bias(highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {highp vec3 light_view_pos0_xyz=light_view_pos0.xyz/light_view_pos0.w*0.5+0.5;highp vec3 light_view_pos0_ddx=dFdx(light_view_pos0_xyz);highp vec3 light_view_pos0_ddy=dFdy(light_view_pos0_xyz);highp vec2 plane_depth_bias=compute_receiver_plane_depth_bias(light_view_pos0_ddx,light_view_pos0_ddy);highp float bias=dot(vec2(u_shadow_texel_size,u_shadow_texel_size),plane_depth_bias)+0.0001;float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);return 1.0-(u_shadow_intensity*occlusion);}float shadowed_light_factor(highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float bias=0.0;float occlusion=shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);return 1.0-(u_shadow_intensity*occlusion);}float shadow_occlusion(float ndotl,highp vec4 light_view_pos0,highp vec4 light_view_pos1,float view_depth) {float bias=calculate_shadow_bias(ndotl);return shadow_occlusion(light_view_pos0,light_view_pos1,view_depth,bias);}\n#endif";
vendor: 6,562 bytes, line 1
1const nn=/#include\s+"([^"]+)"/g,on=/#pragma mapbox: ([\w\-]+) ([\w]+) ([\w]+) ([\w]+)/g,sn=/\b[A-Za-z_][A-Za-z0-9_]*\b/g,an=new Set(["ifdef","ifndef","elif","if","defined"]),ln=new Set;_n(Yr,ln),_n(Jr,ln),_n(Wr,ln);const cn={"_prelude_fog.vertex.glsl":Kr,"_prelude_terrain.vertex.glsl":qr,"_prelude_shadow.vertex.glsl":tn,"_prelude_material_table.vertex.glsl":"#ifdef HAS_SHADER_STORAGE_BLOCK_material_buffer\n#define MATERIAL_TABLE_DEBUG 0\nuniform int u_material_offset;uniform int u_vertex_offset;layout(std140,binding=0)readonly buffer material_buffer{uvec4 material_data[];};struct MaterialInfo{uint dataOffset;\n#if MATERIAL_TABLE_DEBUG\nvec4 colorDebug;\n#endif\n};uint read_buf_no_offset(uint iDword) {return material_data[iDword/4u][iDword % 4u];}uint read_buf(uint iDword) {iDword+=uint(u_material_offset/4);return read_buf_no_offset(iDword);}float read_buf_float(uint iDword){return uintBitsToFloat(read_buf(iDword));}uint read_buf_uint8(uint iDword,uint iUint8){uint dwordOffset=iDword+(iUint8/4u);uint byteOffset=iUint8 & 3u;uint bitOffset=8u*byteOffset;uint mask=0xffu << bitOffset;uint dwordVal=read_buf(dwordOffset);return (dwordVal & mask) >> bitOffset;}uint read_buf_uint16(uint iDword,uint iUint16){uint dwordOffset=iDword+(iUint16 >> 1u);uint bitOffset=(iUint16 & 1u)*16u;uint mask=0xffffu << bitOffset;uint dwordVal=read_buf(dwordOffset);return (dwordVal & mask) >> bitOffset;}uint nrDwordsForVertexIdEntries(uint nrMaterialLookupEntries) {return nrMaterialLookupEntries;}uint nrDwordsForMaterialIdEntries(uint nrMaterialLookupEntries) {return (nrMaterialLookupEntries*2u+3u)/4u;}uint findRangeBinarySearch(uint vertexId,uint numRanges,uint dwordOffset) {uint left=0u;uint right=numRanges-1u;for (uint i=0u; i < 16u; i++) { \nif (left > right) {break;}uint mid=(left+right)/2u;uint start=read_buf(dwordOffset+mid);uint nextStart=(mid+1u < numRanges) ? read_buf(dwordOffset+mid+1u) : 0xffffffffu;if (vertexId >=start && vertexId < nextStart) {return mid;} else if (vertexId < start) {if (mid==0u) {break;}right=mid-1u;} else {left=mid+1u;}}return 0u; \n}uint readVertexId(uint dwordOffset,uint iMaterialLookupEntry) {return read_buf(dwordOffset+iMaterialLookupEntry);}uint findRange(uint vertexId,uint numRanges,uint dwordOffset) {uint iRange;if(numRanges <=64u){uint vertexBegin;for(iRange=0u; iRange < numRanges;++iRange) {vertexBegin=readVertexId(dwordOffset,iRange);if(vertexBegin > vertexId) {break;}}iRange=iRange==0u? 0u : iRange-1u;} else { \niRange=findRangeBinarySearch(vertexId,numRanges,dwordOffset);}return iRange;}MaterialInfo read_material_info(uint vertex_id) {MaterialInfo info;\n#if MATERIAL_TABLE_DEBUG\nconst vec4 red=vec4(1.0,0.0,0.0,1.0);const vec4 orange=vec4(1.0,0.5,0.0,1.0);const vec4 yellow=vec4(1.0,1.0,0.0,1.0);const vec4 green=vec4(0.0,1.0,0.0,1.0);const vec4 indigo=vec4(0.294,0.0,0.510,1.0);const vec4 blue=vec4(0.0,0.0,1.0,1.0);const vec4 purple=vec4(0.5,0.0,0.5,1.0);const vec4 pink=vec4(1.0,0.0,1.0,1.0);info.colorDebug=green;\n#endif\nuint offset=0u;\n#if MATERIAL_TABLE_DEBUG\nbool keepFinding=true;uint magic=read_buf(offset);if(magic !=0xCAFEBABEu) {info.colorDebug=red;keepFinding=false;return info;}\n#endif\noffset++;\n#if MATERIAL_TABLE_DEBUG\nuint nrMaterials=read_buf(offset);uint nrVertices=read_buf(offset+1u);if(keepFinding && vertex_id >=nrVertices) {info.colorDebug=red;keepFinding=false;}\n#endif\noffset+=2u;uint nrMaterialLookupEntries=read_buf(offset++);uint perMaterialEntrySizeDwords=read_buf(offset++);\n#if MATERIAL_TABLE_DEBUG\nif(keepFinding && perMaterialEntrySizeDwords !=1u) {info.colorDebug=red;keepFinding=false;}\n#endif\nuint iMaterialLookup=findRange(vertex_id,nrMaterialLookupEntries,offset);\n#if MATERIAL_TABLE_DEBUG\nif(keepFinding)\n{uint vertexBeginCheck=readVertexId(offset,iMaterialLookup);if(vertexBeginCheck > vertex_id) {info.colorDebug=red;keepFinding=false;}if(iMaterialLookup < nrMaterialLookupEntries-1u) {uint vertexEndCheck=readVertexId(offset,iMaterialLookup+1u);if(vertexEndCheck <=vertex_id) {info.colorDebug=red;keepFinding=false;}}}\n#endif\noffset+=nrDwordsForVertexIdEntries(nrMaterialLookupEntries);uint materialId=iMaterialLookup;\n#if MATERIAL_TABLE_DEBUG\nif(keepFinding) {if(materialId >=nrMaterialLookupEntries) {info.colorDebug=red;}}\n#endif\ninfo.dataOffset=offset+materialId*perMaterialEntrySizeDwords;return info;}uint get_data_location(const MaterialInfo matInfo,uint attribOffsetBytes)\n{uint attribFieldOffsetDwords=attribOffsetBytes/4u;return matInfo.dataOffset+attribFieldOffsetDwords;}vec4 read_material_vec4(const MaterialInfo matInfo,uint attribOffsetBytes){uint loc=get_data_location(matInfo,attribOffsetBytes);return vec4(read_buf_float(loc),read_buf_float(loc+1u),read_buf_float(loc+2u),read_buf_float(loc+3u));}vec2 read_material_vec2(const MaterialInfo matInfo,uint attribOffsetBytes){uint loc=get_data_location(matInfo,attribOffsetBytes);return vec2(read_buf_float(loc),read_buf_float(loc+1u));}float read_material_float(const MaterialInfo matInfo,uint attribOffsetBytes){uint loc=get_data_location(matInfo,attribOffsetBytes);return read_buf_float(loc);}\n#define GET_ATTRIBUTE_float(attrib,matInfo,attrib_offset) read_material_float(matInfo,attrib_offset)\n#define GET_ATTRIBUTE_vec4(attrib,matInfo,attrib_offset) read_material_vec4(matInfo,attrib_offset)\n#define GET_ATTRIBUTE_vec2(attrib,matInfo,attrib_offset) read_material_vec2(matInfo,attrib_offset)\n#define DECLARE_MATERIAL_TABLE_INFO MaterialInfo materialInfo=read_material_info(uint(gl_VertexID));\n#define DECLARE_MATERIAL_TABLE_INFO_DEBUG(dbgColor) MaterialInfo materialInfo=read_material_info(uint(gl_VertexID)); dbgColor=materialInfo.colorDebug;\n#endif","_prelude_fog.fragment.glsl":Xr,"_prelude_shadow.fragment.glsl":rn,"_prelude_lighting.glsl":$r,"_prelude_raster_array.glsl":en},hn={},un="precision highp float;",dn="precision mediump float;",fn="\n#if defined(GL_EXT_blend_func_extended) && defined(DUAL_SOURCE_BLENDING)\n#extension GL_EXT_blend_func_extended : require\n#endif",pn={preludeTerrain:xn("",qr),preludeFog:xn(Xr,Kr),preludeShadow:xn(rn,tn),preludeRasterArray:xn(en,""),preludeLighting:xn($r,$r),preludePrecisionQualifiers:xn(dn,un),prelude:xn(Wr,Jr),preludeExtensions:xn(fn,"")},An=[fn,dn,Yr,pn.prelude.fragmentSource].join("\n"),gn=[un,Yr,pn.prelude.vertexSource].join("\n");var mn={background:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform vec4 u_color;uniform float u_opacity;uniform mediump float u_emissive_strength;\n#ifdef LIGHTING_3D_MODE\nin vec4 v_color;\n#endif\nvoid main() {vec4 out_color;
1\n#ifdef FEATURE_CUTOUT\nvec2 uv=gl_FragCoord.xy*u_inv_viewport_size.xy;\n#ifdef FLIP_Y\nuv.y=1.0-uv.y;\n#endif\nfloat factorTex=min(texture(u_cutout_factor_image,uv).r,1.0);float cutoutFactor=(1.0-u_feature_cutout_params.x)*factorTex;out_color=u_color*(1.0-cutoutFactor);\n#else\n#ifdef LIGHTING_3D_MODE\nout_color=v_color;\n#else\nout_color=u_color;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#endif\nglFragColor=out_color*u_opacity;\n#ifdef USE_MRT1\nout_Target1=vec4(u_emissive_strength*glFragColor.a,0.0,0.0,glFragColor.a);\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_lighting.glsl"\nin ivec2 a_pos;uniform mat4 u_matrix;uniform mediump float u_emissive_strength;\n#ifdef LIGHTING_3D_MODE\nuniform mediump vec4 u_color;out vec4 v_color;\n#endif\nvoid main() {gl_Position=u_matrix*vec4(a_pos,0,1);\n#ifndef FEATURE_CUTOUT\n#ifdef LIGHTING_3D_MODE\nv_color=apply_lighting_with_emission_ground(u_color,u_emissive_strength);\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(vec2(a_pos));\n#endif\n#endif\n}'),backgroundPattern:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform vec2 u_pattern_tl;uniform vec2 u_pattern_br;uniform vec2 u_texsize;uniform float u_opacity;uniform float u_emissive_strength;uniform sampler2D u_image;in highp vec2 v_pos;void main() {highp vec2 imagecoord=mod(v_pos,1.0);highp vec2 pos=mix(u_pattern_tl/u_texsize,u_pattern_br/u_texsize,imagecoord);vec4 out_color=textureLodCustom(u_image,pos,v_pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nglFragColor=out_color*u_opacity;\n#ifdef USE_MRT1\nout_Target1=vec4(u_emissive_strength*glFragColor.a,0.0,0.0,glFragColor.a);\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform vec2 u_pattern_size;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec2 u_pattern_units_to_pixels;in ivec2 a_pos;out highp vec2 v_pos;void main() {vec2 pos=vec2(a_pos);gl_Position=u_matrix*vec4(pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_pattern_size,u_pattern_units_to_pixels,pos);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}'),circle:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nin vec3 v_data;in 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\nuniform float u_emissive_strength;void 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 blur_positive=blur < 0.0 ? 0.0 : 1.0;lowp float antialiasblur=v_data.z;float extrude_length=length(extrude)+antialiasblur*(1.0-blur_positive);float antialiased_blur=-max(abs(blur),antialiasblur);float antialiase_blur_opacity=smoothstep(0.0,antialiasblur,extrude_length-1.0);float opacity_t=blur_positive==1.0 ? \nsmoothstep(0.0,-antialiased_blur,1.0-extrude_length) : \nsmoothstep(antialiased_blur,0.0,extrude_length-1.0)-antialiase_blur_opacity;float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\nantialiased_blur,0.0,extrude_length-radius/(radius+stroke_width)\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#endif\n#ifdef FOG\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\n#endif\nglFragColor=out_color*(v_visibility*opacity_t);\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\n}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\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;in ivec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nin ivec4 a_pos_3;in ivec4 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;\n#endif\n#ifdef ELEVATED_ROADS\nin float a_circle_z_offset;\n#endif\nout vec3 v_data;out 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*v
1iew_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1.0,-1.0),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1.0,-1.0),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1.0,1.0),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1.0,1.0),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() {\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 pos2=vec2(a_pos);vec2 extrude=vec2(mod(pos2,2.0)*2.0-1.0);vec2 circle_center=floor(pos2*0.5);float height=circle_elevation(circle_center);vec4 world_center;mat3 surface_vectors;\n#ifdef PROJECTION_GLOBE_VIEW\nsurface_vectors=globe_mercator_surface_vectors(vec3(a_pos_normal_3)/16384.0,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*height;vec3 globe_pos=vec3(a_pos_3)+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*height;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);world_center=vec4(pos,1);\n#else \nsurface_vectors=mat3(1.0);world_center=vec4(circle_center,height,1);\n#endif\n#ifdef ELEVATED_ROADS\nworld_center.z+=a_circle_z_offset+ELEVATION_BIAS;\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\ngl_Position=project_vertex(extrude,world_center,projected_center,radius,stroke_width,view_scale,surface_vectors);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();vec4 occlusion_world_center;vec4 occlusion_projected_center;\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);occlusion_world_center=vec4(circle_center,cantilevered_height,1);occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nocclusion_world_center=world_center;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:xn("void main() {glFragColor=vec4(1.0);}","in ivec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:xn('#include "_prelude_fog.fragment.glsl"\nuniform highp float u_intensity;in 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);glFragColor=vec4(val,1.0,1.0,1.0);\n#ifdef FOG\nif (u_is_globe==0) {glFragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);}\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);
1\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_terrain.vertex.glsl"\n#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;in ivec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nin ivec4 a_pos_3;in ivec4 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;\n#endif\nout 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() {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(vec2(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(vec2(a_pos)*0.5);vec3 pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=vec3(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=vec3(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;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#else\npos=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:xn("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;in vec2 v_pos;void main() {float t=texture(u_image,v_pos).r;vec4 color=texture(u_color_ramp,vec2(t,0.5));glFragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(0.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}","in ivec2 a_pos;out vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=vec2(a_pos)*0.5+0.5;}"),collisionBox:xn("in float v_placed;in 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);glFragColor =mix(red,blue,step(0.5,v_placed))*0.5;glFragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}",'#include "_prelude_terrain.vertex.glsl"\nin ivec4 a_pos;in ivec2 a_anchor_pos;in ivec2 a_extrude;in uvec2 a_placed;in vec2 a_shift;in vec2 a_elevation_from_sea;in float a_size_scale;in vec2 a_padding;in float a_auto_z_offset;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform float u_zoom_transition;\n#endif\nout float v_placed;out float v_notUsed;void main() {vec2 anchor_pos=vec2(a_anchor_pos);float feature_elevation=a_elevation_from_sea.x+a_auto_z_offset;float terrain_elevation=(a_elevation_from_sea.y==1.0 ? 0.0 : elevation(anchor_pos));vec3 proj_pos=vec3(a_pos)+elevationVector(anchor_pos)*(feature_elevation+terrain_elevation);\n#ifdef PROJECTION_GLOBE_VIEW\n#ifndef PROJECTED_POS_ON_VIEWPORT\nvec3 globe_pos=proj_pos;vec3 mercator_pos=mercator_tile_position(u_inv_rot_matrix,anchor_pos,u_tile_id,u_merc_center);proj_pos=mix_globe_mercator(globe_pos,mercator_pos,u_zoom_transition);\n#endif\n#endif\nvec4 projectedPoint=u_matrix*vec4(proj_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+=(vec2(a_extrude)*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=float(a_placed.x);v_notUsed=float(a_placed.y);}'),collisionCircle:xn("in float v_radius;in vec2 v_extrude;in float v_perspective_ratio;in 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);glFragColor=color*alpha*opacity_t;}","in vec2 a_pos_2f;in float a_radius;in ivec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;out float v_radius;out vec2 v_extrude;out float v_perspective_ratio;out 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;int vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2)),mix(-1.0,1.0,float(vertexIdx >=1 && vertexIdx <=2)));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=float(a_flags.x);gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:xn("uniform highp vec4 u_color;uniform sampler2D u_overlay;in vec2 v_uv;void main() {vec4 overlay_color=texture(u_overlay,v_uv);glFragColor=mix(u_color,overlay_color,overlay_color.a);}",'#include "_prelude_terrain.vertex.glsl"\nin ivec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nin ivec4 a_pos_3;\n#endif\nout vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {vec2 pos=vec2(a_pos);float h=elevation(pos);v_uv=pos/8192.0;
1\n#ifdef PROJECTION_GLOBE_VIEW\ngl_Position=u_matrix*vec4(vec3(a_pos_3)+elevationVector(pos)*h,1);\n#else\ngl_Position=u_matrix*vec4(pos*u_overlay_scale,h,1);\n#endif\n}'),fill:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_shadow.fragment.glsl"\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nuniform float u_emissive_strength;uniform lowp float u_opacity_multiplier;\n#ifdef RENDER_SHADOWS\nuniform vec3 u_ground_shadow_factor;in highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;in highp float v_depth;\n#endif\n#ifdef ELEVATED_ROADS\nin highp float v_road_z_offset;\n#endif\n#ifdef INDICATOR_CUTOUT\nin highp float v_z_offset;\n#endif\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nvec2 cutout_factors=vec2(0.0);\n#ifdef FEATURE_CUTOUT\ncutout_factors=get_cutout_factors(gl_FragCoord);\n#endif\nvec4 out_color=color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#ifdef RENDER_SHADOWS\nfloat light=shadowed_light_factor(v_pos_light_view_0,v_pos_light_view_1,v_depth);light=mix(light,1.0,cutout_factors.y);out_color.rgb*=mix(u_ground_shadow_factor,vec3(1.0),light);\n#endif\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nout_color*=(opacity*u_opacity_multiplier);\n#ifdef INDICATOR_CUTOUT\nif (v_z_offset >=0.0) {out_color=applyCutout(out_color,v_z_offset);}\n#endif\n#ifdef FEATURE_CUTOUT\nout_color=apply_feature_cutout(out_color,gl_FragCoord,cutout_factors.x);\n#endif\nglFragColor=out_color;\n#ifdef USE_MRT1\nout_Target1=vec4(u_emissive_strength*glFragColor.a,0.0,0.0,glFragColor.a);\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\nin ivec2 a_pos;\n#ifdef ELEVATED_ROADS\nin float a_road_z_offset;out highp float v_road_z_offset;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;out highp float v_depth;\n#endif\n#ifdef INDICATOR_CUTOUT\nout highp float v_z_offset;\n#endif\nuniform mat4 u_matrix;uniform lowp float u_opacity_multiplier;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp float z_offset\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp float z_offset\n#ifdef ELEVATED_ROADS\nz_offset+=a_road_z_offset;v_road_z_offset=z_offset;\n#endif\nfloat hidden=float(opacity==0.0);gl_Position=mix(u_matrix*vec4(a_pos,z_offset,1),AWAY,hidden);\n#ifdef RENDER_SHADOWS\nvec3 shd_pos0=vec3(a_pos,z_offset);vec3 shd_pos1=vec3(a_pos,z_offset);\n#ifdef NORMAL_OFFSET\nvec3 offset=shadow_normal_offset(vec3(0.0,0.0,1.0));shd_pos0+=offset*shadow_normal_offset_multiplier0();shd_pos1+=offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);v_depth=gl_Position.w;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(vec2(a_pos));\n#endif\n#ifdef INDICATOR_CUTOUT\nv_z_offset=z_offset;\n#endif\n}'),fillOutline:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_shadow.fragment.glsl"\nin highp vec2 v_pos;uniform float u_emissive_strength;uniform lowp float u_opacity_multiplier;\n#ifdef RENDER_SHADOWS\nuniform vec3 u_ground_shadow_factor;in highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;in highp float v_depth;\n#endif\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;vec2 cutout_factors=vec2(0.0);\n#ifdef FEATURE_CUTOUT\ncutout_factors=get_cutout_factors(gl_FragCoord);\n#endif\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#ifdef RENDER_SHADOWS\nfloat light=shadowed_light_factor(v_pos_light_view_0,v_pos_light_view_1,v_depth);light=mix(light,1.0,cutout_factors.y);out_color.rgb*=mix(u_ground_shadow_factor,vec3(1.0),light);\n#endif\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#ifdef FEATURE_CUTOUT\nout_color=apply_feature_cutout(out_color,gl_FragCoord,cutout_factors.x);\n#endif\nglFragColor=out_color*(alpha*opacity*u_opacity_multiplier);\n#ifdef USE_MRT1\nout_Target1=vec4(u_emissive_strength*glFragColor.a,0.0,0.0,glFragColor.a);\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);
1\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\nin ivec2 a_pos;\n#ifdef ELEVATED_ROADS\nin float a_road_z_offset;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;out highp float v_depth;\n#endif\nuniform mat4 u_matrix;uniform vec2 u_world;uniform lowp float u_opacity_multiplier;out highp vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp float z_offset\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp float z_offset\n#ifdef ELEVATED_ROADS\nz_offset+=a_road_z_offset;\n#endif\nfloat hidden=float(opacity==0.0);gl_Position=mix(u_matrix*vec4(a_pos,z_offset,1),AWAY,hidden);\n#ifdef FLIP_Y\nv_pos=(vec2(gl_Position.x,-gl_Position.y)/gl_Position.w+1.0)/2.0*u_world;\n#else\nv_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#endif\n#ifdef RENDER_SHADOWS\nvec3 shd_pos0=vec3(a_pos,z_offset);vec3 shd_pos1=vec3(a_pos,z_offset);\n#ifdef NORMAL_OFFSET\nvec3 offset=shadow_normal_offset(vec3(0.0,0.0,1.0));shd_pos0+=offset*shadow_normal_offset_multiplier0();shd_pos1+=offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);v_depth=gl_Position.w;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(vec2(a_pos));\n#endif\n}'),fillOutlinePattern:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_shadow.fragment.glsl"\nuniform vec2 u_texsize;uniform sampler2D u_image;\n#ifdef FILL_PATTERN_TRANSITION\nuniform float u_pattern_transition;\n#endif\nuniform float u_emissive_strength;uniform lowp float u_opacity_multiplier;\n#ifdef APPLY_LUT_ON_GPU\nuniform highp sampler3D u_lutTexture;\n#endif\n#ifdef RENDER_SHADOWS\nuniform vec3 u_ground_shadow_factor;in highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;in highp float v_depth;\n#endif\nin highp vec2 v_pos;in highp vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp uvec4 pattern\n#ifdef FILL_PATTERN_TRANSITION\n#pragma mapbox: define mediump uvec4 pattern_b\n#endif\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump uvec4 pattern\n#ifdef FILL_PATTERN_TRANSITION\n#pragma mapbox: initialize mediump uvec4 pattern_b\n#endif\nvec2 pattern_tl=vec2(pattern.xy);vec2 pattern_br=vec2(pattern.zw);highp vec2 imagecoord=mod(v_pos,1.0);highp vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);highp vec2 lod_pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,v_pos);float dist=length(v_pos_world-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=textureLodCustom(u_image,pos,lod_pos);\n#ifdef APPLY_LUT_ON_GPU\nout_color=applyLUT(u_lutTexture,out_color);\n#endif\n#ifdef FILL_PATTERN_TRANSITION\nvec2 pattern_b_tl=pattern_b.xy;vec2 pattern_b_br=pattern_b.zw;highp vec2 pos_b=mix(pattern_b_tl/u_texsize,pattern_b_br/u_texsize,imagecoord);vec4 color_b=textureLodCustom(u_image,pos_b,lod_pos);out_color=out_color*(1.0-u_pattern_transition)+color_b*u_pattern_transition;\n#endif\nvec2 cutout_factors=vec2(0.0);\n#ifdef FEATURE_CUTOUT\ncutout_factors=get_cutout_factors(gl_FragCoord);\n#endif\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#ifdef RENDER_SHADOWS\nfloat light=shadowed_light_factor(v_pos_light_view_0,v_pos_light_view_1,v_depth);light=mix(light,1.0,cutout_factors.y);out_color.rgb*=mix(u_ground_shadow_factor,vec3(1.0),light);\n#endif\n#endif\n#ifdef FEATURE_CUTOUT\nout_color=apply_feature_cutout(out_color,gl_FragCoord,cutout_factors.x);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nglFragColor=out_color*(alpha*opacity*u_opacity_multiplier);\n#ifdef USE_MRT1\nout_Target1=vec4(u_emissive_strength*glFragColor.a,0.0,0.0,glFragColor.a);\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);
1\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\nuniform mat4 u_matrix;uniform vec2 u_world;uniform lowp float u_opacity_multiplier;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;in ivec2 a_pos;\n#ifdef ELEVATED_ROADS\nin float a_road_z_offset;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;out highp float v_depth;\n#endif\nout highp vec2 v_pos;out highp vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp uvec4 pattern\n#ifdef FILL_PATTERN_TRANSITION\n#pragma mapbox: define mediump uvec4 pattern_b\n#endif\n#pragma mapbox: define lowp float pixel_ratio\n#pragma mapbox: define highp float z_offset\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump uvec4 pattern\n#ifdef FILL_PATTERN_TRANSITION\n#pragma mapbox: initialize mediump uvec4 pattern_b\n#endif\n#pragma mapbox: initialize lowp float pixel_ratio\n#pragma mapbox: initialize highp float z_offset\nvec2 pattern_tl=vec2(pattern.xy);vec2 pattern_br=vec2(pattern.zw);\n#ifdef ELEVATED_ROADS\nz_offset+=a_road_z_offset;\n#endif\nfloat hidden=float(opacity==0.0);vec2 pos=vec2(a_pos);gl_Position=mix(u_matrix*vec4(pos,z_offset,1),AWAY,hidden);vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,pos);\n#ifdef FLIP_Y\nv_pos_world=(vec2(gl_Position.x,-gl_Position.y)/gl_Position.w+1.0)/2.0*u_world;\n#else\nv_pos_world=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#endif\n#ifdef RENDER_SHADOWS\nvec3 shd_pos0=vec3(pos,z_offset);vec3 shd_pos1=vec3(pos,z_offset);\n#ifdef NORMAL_OFFSET\nvec3 offset=shadow_normal_offset(vec3(0.0,0.0,1.0));shd_pos0+=offset*shadow_normal_offset_multiplier0();shd_pos1+=offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);v_depth=gl_Position.w;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}'),fillPattern:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_shadow.fragment.glsl"\nuniform vec2 u_texsize;uniform sampler2D u_image;\n#ifdef FILL_PATTERN_TRANSITION\nuniform float u_pattern_transition;\n#endif\nin highp vec2 v_pos;uniform float u_emissive_strength;uniform lowp float u_opacity_multiplier;\n#ifdef RENDER_SHADOWS\nuniform vec3 u_ground_shadow_factor;in highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;in highp float v_depth;\n#endif\n#ifdef ELEVATED_ROADS\nin highp float v_road_z_offset;\n#endif\n#ifdef APPLY_LUT_ON_GPU\nuniform highp sampler3D u_lutTexture;\n#endif\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp uvec4 pattern\n#ifdef FILL_PATTERN_TRANSITION\n#pragma mapbox: define mediump uvec4 pattern_b\n#endif\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump uvec4 pattern\n#ifdef FILL_PATTERN_TRANSITION\n#pragma mapbox: initialize mediump uvec4 pattern_b\n#endif\nvec2 pattern_tl=vec2(pattern.xy);vec2 pattern_br=vec2(pattern.zw);highp vec2 imagecoord=mod(v_pos,1.0);highp vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);highp vec2 lod_pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,v_pos);vec4 out_color=textureLodCustom(u_image,pos,lod_pos);\n#ifdef APPLY_LUT_ON_GPU\nout_color=applyLUT(u_lutTexture,out_color);\n#endif\n#ifdef FILL_PATTERN_TRANSITION\nvec2 pattern_b_tl=vec2(pattern_b.xy);vec2 pattern_b_br=vec2(pattern_b.zw);highp vec2 pos_b=mix(pattern_b_tl/u_texsize,pattern_b_br/u_texsize,imagecoord);vec4 color_b=textureLodCustom(u_image,pos_b,lod_pos);out_color=out_color*(1.0-u_pattern_transition)+color_b*u_pattern_transition;\n#endif\nvec2 cutout_factors=vec2(0.0);\n#ifdef FEATURE_CUTOUT\ncutout_factors=get_cutout_factors(gl_FragCoord);\n#endif\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,u_emissive_strength);\n#ifdef RENDER_SHADOWS\nfloat light=shadowed_light_factor(v_pos_light_view_0,v_pos_light_view_1,v_depth);light=mix(light,1.0,cutout_factors.y);\n#ifdef ELEVATED_ROADS\nout_color.rgb*=mix(v_road_z_offset !=0.0 ? u_ground_shadow_factor : vec3(1.0),vec3(1.0),light);\n#else\nout_color.rgb*=mix(u_ground_shadow_factor,vec3(1.0),light);\n#endif\n#endif\n#endif\n#ifdef FEATURE_CUTOUT\nout_color=apply_feature_cutout(out_color,gl_FragCoord,cutout_factors.x);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nglFragColor=out_color*(opacity*u_opacity_multiplier);\n#ifdef USE_MRT1\nout_Target1=vec4(u_emissive_strength*glFragColor.a,0.0,0.0,glFragColor.a);\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);
1\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\nuniform mat4 u_matrix;uniform lowp float u_opacity_multiplier;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;in ivec2 a_pos;\n#ifdef ELEVATED_ROADS\nin float a_road_z_offset;out highp float v_road_z_offset;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;out highp float v_depth;\n#endif\nout highp vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp uvec4 pattern\n#ifdef FILL_PATTERN_TRANSITION\n#pragma mapbox: define mediump uvec4 pattern_b\n#endif\n#pragma mapbox: define lowp float pixel_ratio\n#pragma mapbox: define highp float z_offset\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump uvec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\n#pragma mapbox: initialize highp float z_offset\n#ifdef FILL_PATTERN_TRANSITION\n#pragma mapbox: initialize mediump uvec4 pattern_b\n#endif\nvec2 pattern_tl=vec2(pattern.xy);vec2 pattern_br=vec2(pattern.zw);vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;\n#ifdef ELEVATED_ROADS\nz_offset+=a_road_z_offset;v_road_z_offset=z_offset;\n#endif\nfloat hidden=float(opacity==0.0);vec2 pos=vec2(a_pos);gl_Position=mix(u_matrix*vec4(pos,z_offset,1),AWAY,hidden);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,pos);\n#ifdef RENDER_SHADOWS\nvec3 shd_pos0=vec3(pos,z_offset);vec3 shd_pos1=vec3(pos,z_offset);\n#ifdef NORMAL_OFFSET\nvec3 offset=shadow_normal_offset(vec3(0.0,0.0,1.0));shd_pos0+=offset*shadow_normal_offset_multiplier0();shd_pos1+=offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);v_depth=gl_Position.w;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}'),lineBlendComposite:xn("uniform highp sampler2D u_image;uniform float u_opacity;uniform int u_blend_mode;uniform highp float u_max_density;in vec2 v_pos;\n#define ADDITIVE 1\nvoid main() {vec4 color=texture(u_image,v_pos);if (u_blend_mode==ADDITIVE) {if (color.a <=0.0) {discard;}highp float density=color.a;vec3 avgColor=color.rgb/max(density,0.001);highp float n=density/max(u_max_density,0.001);highp float t=sqrt(n/(n+1.0));glFragColor=vec4(avgColor*t,t);} else {vec3 multiplyFactor=color.rgb*u_opacity+(1.0-u_opacity);glFragColor=vec4(multiplyFactor,1.0);}\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(0.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}","in ivec2 a_pos;out vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=vec2(a_pos)*0.5+0.5;}"),lineBlendReduce:xn("uniform highp sampler2D u_image;uniform vec2 u_texel_size;uniform bool u_first_pass;in vec2 v_pos;void main() {vec2 o=u_texel_size*0.5;vec4 s0=texture(u_image,v_pos+vec2(-o.x,-o.y));vec4 s1=texture(u_image,v_pos+vec2( o.x,-o.y));vec4 s2=texture(u_image,v_pos+vec2(-o.x, o.y));vec4 s3=texture(u_image,v_pos+vec2( o.x, o.y));float r0; float g0;float r1; float g1;float r2; float g2;float r3; float g3;if (u_first_pass) {float a0=s0.a;float a1=s1.a;float a2=s2.a;float a3=s3.a;r0=a0; g0=a0 > 0.0 ? 1.0 : 0.0;r1=a1; g1=a1 > 0.0 ? 1.0 : 0.0;r2=a2; g2=a2 > 0.0 ? 1.0 : 0.0;r3=a3; g3=a3 > 0.0 ? 1.0 : 0.0;} else {r0=s0.r; g0=s0.g;r1=s1.r; g1=s1.g;r2=s2.r; g2=s2.g;r3=s3.r; g3=s3.g;}glFragColor=vec4((r0+r1+r2+r3)*0.25,(g0+g1+g2+g3)*0.25,0.0,0.0);}","in ivec2 a_pos;out vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=vec2(a_pos)*0.5+0.5;}"),fillExtrusion:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_shadow.fragment.glsl"\n#include "_prelude_lighting.glsl"\nin vec4 v_color;in vec4 v_flat;\n#ifdef RENDER_SHADOWS\nin highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;\n#endif\nuniform lowp float u_opacity;\n#ifdef RENDER_FRONT_CUTOFF\nin float v_front_cutoff_opacity;\n#endif\n#ifdef INDICATOR_CUTOUT\n#ifdef FEATURE_CUTOUT\nin vec4 v_ground_roof;\n#endif\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;in vec2 v_ao;\n#endif\n#if defined(ZERO_ROOF_RADIUS) && !defined(LIGHTING_3D_MODE)\nin vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE)\nin highp vec3 v_normal;\n#endif\nuniform vec3 u_flood_light_color;uniform highp float u_vertical_scale;uniform float u_flood_light_intensity;uniform vec3 u_ground_shadow_factor;\n#if defined(LIGHTING_3D_MODE) && defined(FLOOD_LIGHT)\nin float v_flood_radiu
1s;in float v_has_floodlight;\n#endif\nin float v_height;\n#pragma mapbox: define highp float emissive_strength\nvoid main() {\n#pragma mapbox: initialize highp float emissive_strength\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE)\nvec3 normal=normalize(v_normal);\n#endif\nfloat z;vec4 color=v_color;\n#ifdef ZERO_ROOF_RADIUS\nz=float(normal.z > 0.00001);\n#ifdef LIGHTING_3D_MODE\nnormal=mix(normal,vec3(0.0,0.0,1.0),z);\n#else\ncolor=mix(v_color,v_roof_color,z);\n#endif\n#endif\nfloat h=max(0.0,v_height);float ao_shade=1.0;\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h_floors=h/(u_ao[1]*u_vertical_scale);float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);ao_shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;\n#ifdef ZERO_ROOF_RADIUS\nconcave*=(1.0-z);\n#endif\nfloat x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);ao_shade*=mix(1.0,x_shade*x_shade*x_shade,concave);\n#ifdef LIGHTING_3D_MODE\n#ifdef FLOOD_LIGHT\ncolor.rgb*=mix(ao_shade,1.0,v_has_floodlight);\n#else\ncolor.rgb*=ao_shade;\n#endif\n#else\ncolor.rgb*=ao_shade;\n#endif\n#endif\n#ifdef LIGHTING_3D_MODE\nfloat flood_radiance=0.0;\n#ifdef FLOOD_LIGHT\nflood_radiance=(1.0-min(h/v_flood_radius,1.0))*u_flood_light_intensity*v_has_floodlight;\n#endif\n#ifdef RENDER_SHADOWS\n#ifdef FLOOD_LIGHT\nfloat ndotl_unclamped=dot(normal,u_shadow_direction);float ndotl=max(0.0,ndotl_unclamped);float occlusion=ndotl_unclamped < 0.0 ? 1.0 : shadow_occlusion(ndotl,v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w);vec3 litColor=apply_lighting(color.rgb,normal,(1.0-u_shadow_intensity*occlusion)*ndotl);vec3 floodLitColor=compute_flood_lighting(u_flood_light_color*u_opacity,1.0-u_shadow_intensity,occlusion,u_ground_shadow_factor);color.rgb=mix(litColor,floodLitColor,flood_radiance);\n#else\nfloat shadowed_lighting_factor;\n#ifdef RENDER_CUTOFF\nshadowed_lighting_factor=shadowed_light_factor_normal_opacity(normal,v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w,v_cutoff_opacity);if (v_cutoff_opacity==0.0) {discard;}\n#else\nshadowed_lighting_factor=shadowed_light_factor_normal(normal,v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w);\n#endif\ncolor.rgb=apply_lighting(color.rgb,normal,shadowed_lighting_factor);\n#endif\n#else\ncolor.rgb=apply_lighting(color.rgb,normal);\n#ifdef FLOOD_LIGHT\ncolor.rgb=mix(color.rgb,u_flood_light_color*u_opacity,flood_radiance);\n#endif\n#endif\ncolor.rgb=mix(color.rgb,v_flat.rgb,emissive_strength);color*=u_opacity;\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos,h));\n#endif\n#ifdef INDICATOR_CUTOUT\n#ifdef FEATURE_CUTOUT\n{float ditherOpacity=cutoutGroundRoofOpacity(v_ground_roof);if (ditherOpacity < 1.0) {int index=(int(gl_FragCoord.x) % 4)*4+(int(gl_FragCoord.y) % 4);if (ditherOpacity < DITHER_THRESHOLDS[index]) {discard;}}}\n#else\ncolor=applyCutout(color,h);\n#endif\n#endif\n#ifdef RENDER_FRONT_CUTOFF\nif (v_front_cutoff_opacity < 1.0) {int index=(int(gl_FragCoord.x) % 4)*4+(int(gl_FragCoord.y) % 4);if (v_front_cutoff_opacity < DITHER_THRESHOLDS[index]) {discard;}}\n#endif\n#ifdef FEATURE_CUTOUT\ncolor=apply_feature_cutout(color,gl_FragCoord,get_cutout_factors(gl_FragCoord).x);\n#endif\nglFragColor=color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_material_table.vertex.glsl"\nuniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;
vendor: 9,210 bytes, line 1
1uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_edge_radius;uniform float u_width_scale;in ivec4 a_pos_normal_ed;\n#if defined(HAS_CENTROID) || defined(TERRAIN)\nin uvec2 a_centroid_pos;\n#endif\n#ifdef RENDER_WALL_MODE\nin ivec4 a_join_normal_inside;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nin ivec4 a_pos_3;in ivec4 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\n#ifdef TERRAIN\nuniform int u_height_type;uniform int u_base_type;\n#endif\nuniform highp float u_vertical_scale;\n#ifdef RENDER_FRONT_CUTOFF\nuniform vec3 u_front_cutoff_params;out float v_front_cutoff_opacity;\n#endif\nout vec4 v_color;out vec4 v_flat;\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;\n#endif\n#if defined(ZERO_ROOF_RADIUS) && !defined(LIGHTING_3D_MODE)\nout vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE)\nout highp vec3 v_normal;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;out vec2 v_ao;\n#endif\n#if defined(LIGHTING_3D_MODE) && defined(FLOOD_LIGHT)\nout float v_flood_radius;out float v_has_floodlight;\n#endif\nout float v_height;\n#ifdef INDICATOR_CUTOUT\n#ifdef FEATURE_CUTOUT\nout vec4 v_ground_roof;\n#endif\n#endif\nvec3 linearTosRGB(vec3 color) {return pow(color,vec3(1./2.2));}vec3 sRGBToLinear(vec3 srgbIn) {return pow(srgbIn,vec3(2.2));}\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define highp float flood_light_wall_radius\n#pragma mapbox: define highp float line_width\n#pragma mapbox: define highp float emissive_strength\nvoid main() {DECLARE_MATERIAL_TABLE_INFO\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize highp float flood_light_wall_radius\n#pragma mapbox: initialize highp float line_width\n#pragma mapbox: initialize highp float emissive_strength\nbase*=u_vertical_scale;height*=u_vertical_scale;vec4 top_up_ny_start=vec4(a_pos_normal_ed & 1);vec4 pos_nx=vec4(a_pos_normal_ed >> 1);float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny_start.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny_start.z-1.0)*(1.0-abs(x_normal)),0.0));\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS) || defined(LIGHTING_3D_MODE)\nv_normal=normal;\n#endif\nbase=max(0.0,base);float attr_height=height;height=max(0.0,top_up_ny_start.y==0.0 && top_up_ny_start.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny_start.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=vec2(a_centroid_pos);\n#endif\nfloat ele=0.0;float h=0.0;float c_ele=0.0;vec3 pos;\n#ifdef TERRAIN\nbool is_flat_height=centroid_pos.x !=0.0 && u_height_type==1;bool is_flat_base=centroid_pos.x !=0.0 && u_base_type==1;ele=elevation(pos_nx.xy);bool is_elevation_encoded=centroid_pos.y==0.0 || (centroid_pos.y > 0.0 && (int(centroid_pos.y) & 7)==7);c_ele=is_flat_height || is_flat_base ? (is_elevation_encoded ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos)) : ele;float h_height=is_flat_height ? max(c_ele+height,ele+base+2.0) : ele+height;float h_base=is_flat_base ? max(c_ele+base,ele+base) : ele+(base==0.0 ?-5.0 : base);h=t > 0.0 ? max(h_base,h_height) : h_base;\n#else\nh=t > 0.0 ? height : base;\n#endif\npos=vec3(pos_nx.xy,h);\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(vec3(a_pos_normal_3)/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=vec3(a_pos_3)+globe_normal*(u_tile_up_scale*h);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 cutoff=1.0;vec3 scaled_pos=pos;\n#if defined(RENDER_CUTOFF) || defined(RENDER_FRONT_CUTOFF)\nvec2 centroid_decoded=pos.xy;bool isBorderCentroid=false;if (centroid_pos.x > 0.0 && centroid_pos.y > 0.0) {int iy=int(centroid_pos.y);int spanYbits=iy & 7;if (spanYbits==7) {isBorderCentroid=true;int borderID=(iy >> 3) & 3;float coordAlongBorder=float(iy >> 5)*4.0;if (borderID==0) centroid_decoded=vec2(0.0,coordAlongBorder);else if (borderID==1) centroid_decoded=vec2(EXTENT,coordAlongBorder);else if (borderID==2) centroid_decoded=vec2(coordAlongBorder,0.0);else centroid_decoded=vec2(coordAlongBorder,EXTENT);} else {centroid_decoded=floor(centroid_pos/8.0);}}\n#endif\n#if defined(RENDER_CUTOFF) || defined(RENDER_FRONT_CUTOFF)\nvec4 ground=u_matrix*vec4(centroid_decoded,ele,1.0);\n#endif\n#ifdef RENDER_CUTOFF\n#ifdef CLIP_ZERO_TO_ONE\ncutoff=cutoff_opacity(u_cutoff_params,ground.z*2.0-ground.w);\n#else\ncutoff=cutoff_opacity(u_cutoff_params,ground.z);\n#endif\nif (centroid_pos.y !=0.0 && centroid_pos.x !=0.0) {vec3 centroid_random=vec3(centroid_pos.xy,centroid_pos.x+centroid_pos.y+1.0);vec3 ground_pos=centroid_random/8.0;vec3 g=floor(ground_pos);vec3 mod_=centroid_random-g*8.0;float seed=min(1.0,0.1*(min(3.5,max(mod_.x+mod_.y,0.2*attr_height))*0.35+mod_.z));if (cutoff < 0.8-seed) {cutoff=0.0;}}float cutoff_scale=cutoff;v_cutoff_opacity=cutoff;scaled_pos.z=mix(c_ele,h,cutoff_scale);\n#endif\nfloat hidden=float((centroid_pos.x==0.0 && centroid_pos.y==1.0) || (cutoff==0.0 && centroid_pos.x !=0.0) || (color.a==0.0));\n#ifdef RENDER_FRONT_CUTOFF\nv_front_cutoff_opacity=1.0;if (centroid_pos.x > 0.0 && centroid_pos.y > 0.0) {hidden=max(hidden,float(ground.w <=0.0));float ndc_y=ground.y/max(ground.w,0.001);float threshold=u_front_cutoff_params.x*2.0-1.0;float range_ndc=u_front_cutoff_params.y*2.0;if (!isBorderCentroid) {hidden=max(hidden,float(ndc_y < threshold-range_ndc));}float t=clamp((ndc_y-(threshold-range_ndc))/max(range_ndc,0.001),0.0,1.0);v_front_cutoff_opacity=mix(u_front_cutoff_params.z,1.0,t);}\n#endif\n#ifdef RENDER_WALL_MODE\nvec3 join_normal_inside=vec3(a_join_normal_inside);vec2 wall_offset=u_width_scale*line_width*(join_normal_inside.xy/EXTENT);scaled_pos.xy+=(1.0-join_normal_inside.z)*wall_offset*0.5;scaled_pos.xy-=join_normal_inside.z*wall_offset*0.5;\n#endif\ngl_Position=mix(u_matrix*vec4(scaled_pos,1),AWAY,hidden);h=h-ele;v_height=h;\n#ifdef RENDER_SHADOWS\nvec3 shd_pos0=pos;vec3 shd_pos1=pos;\n#ifdef NORMAL_OFFSET\nvec3 offset=shadow_normal_offset(normal);shd_pos0+=offset*shadow_normal_offset_multiplier0();shd_pos1+=offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);\n#endif\nfloat NdotL=0.0;float colorvalue=0.0;\n#ifndef LIGHTING_3D_MODE\ncolorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;NdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),NdotL);if (normal.y !=0.0) {float r=0.84;r=mix(0.7,0.98,1.0-u_lightintensity);NdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}\n#endif\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec2(mix(concave,-concave,start),y_ground);NdotL*=(1.0+0.05*(1.0-top_up_ny_start.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\n#ifdef FLOOD_LIGHT\nfloat is_wall=1.0-float(t > 0.0 && top_up_ny_start.y > 0.0);v_has_floodlight=float(flood_light_wall_radius > 0.0 && is_wall > 0.0);v_flood_radius=flood_light_wall_radius*u_vertical_scale;\n#endif\nv_color=vec4(color.rgb,1.0);float ndotl=calculate_NdotL(normal);v_flat.rgb=sRGBToLinear(color.rgb);v_flat.rgb=v_flat.rgb*(ndotl+(1.0-min(ndotl*57.29,1.0))*emissive_strength);v_flat=vec4(linearTosRGB(v_flat.rgb),1.0);\n#else\nv_color=vec4(0.0,0.0,0.0,1.0);v_color.rgb+=clamp(color.rgb*NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_color*=u_opacity;\n#endif\n#if defined(ZERO_ROOF_RADIUS) && !defined(LIGHTING_3D_MODE)\nfloat roofNdotL=clamp(u_lightpos.z,0.0,1.0);roofNdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),roofNdotL);v_roof_color=vec4(0.0,0.0,0.0,1.0);v_roof_color.rgb+=clamp(color.rgb*roofNdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_roof_color*=u_opacity;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n#ifdef INDICATOR_CUTOUT\n#ifdef FEATURE_CUTOUT\nvec4 pos_ground=u_matrix*vec4(pos.xy,ele,1.0);vec4 pos_roof=u_matrix*vec4(pos.xy,ele+height,1.0);v_ground_roof=vec4(pos_ground.xy/pos_ground.w,pos_roof.xy/pos_roof.w);\n#endif\n#endif\n}'),fillExtrusion
1Depth:xn("void main() {}",'#include "_prelude_terrain.vertex.glsl"\n#include "_prelude_material_table.vertex.glsl"\nuniform mat4 u_matrix;uniform float u_edge_radius;uniform float u_width_scale;uniform float u_vertical_scale;\n#ifdef TERRAIN\nuniform int u_height_type;uniform int u_base_type;\n#endif\nin ivec4 a_pos_normal_ed;\n#if defined(HAS_CENTROID) || defined(TERRAIN)\nin uvec2 a_centroid_pos;\n#endif\n#ifdef RENDER_WALL_MODE\nin ivec4 a_join_normal_inside;\n#endif\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp float line_width\n#pragma mapbox: define highp vec4 color\nvoid main() {DECLARE_MATERIAL_TABLE_INFO\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp float line_width\n#pragma mapbox: initialize highp vec4 color\nbase*=u_vertical_scale;height*=u_vertical_scale;vec3 top_up_ny=vec3(a_pos_normal_ed.xyz & 1);vec3 pos_nx=vec3(a_pos_normal_ed.xyz >> 1);base=max(0.0,base);height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=vec2(a_centroid_pos);\n#endif\nvec3 pos;\n#ifdef TERRAIN\nbool is_flat_height=centroid_pos.x !=0.0 && u_height_type==1;bool is_flat_base=centroid_pos.x !=0.0 && u_base_type==1;float ele=elevation(pos_nx.xy);bool is_elevation_encoded=centroid_pos.y==0.0 || (centroid_pos.y > 0.0 && int(centroid_pos.y)-(int(centroid_pos.y)/8)*8==7);float c_ele=is_flat_height || is_flat_base ? (is_elevation_encoded ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos)) : ele;float h_height=is_flat_height ? max(c_ele+height,ele+base+2.0) : ele+height;float h_base=is_flat_base ? max(c_ele+base,ele+base) : ele+(base==0.0 ?-5.0 : base);float h=t > 0.0 ? max(h_base,h_height) : h_base;pos=vec3(pos_nx.xy,h);\n#else\npos=vec3(pos_nx.xy,t > 0.0 ? height : base);\n#endif\n#ifdef RENDER_WALL_MODE\nvec3 join_normal_inside=vec3(a_join_normal_inside);vec2 wall_offset=u_width_scale*line_width*(join_normal_inside.xy/EXTENT);pos.xy+=(1.0-join_normal_inside.z)*wall_offset*0.5;pos.xy-=join_normal_inside.z*wall_offset*0.5;\n#endif\nfloat hidden=float((centroid_pos.x==0.0 && centroid_pos.y==1.0) || (color.a==0.0));gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);}'),fillExtrusionPattern:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform vec2 u_texsize;uniform sampler2D u_image;\n#ifdef FILL_EXTRUSION_PATTERN_TRANSITION\nuniform float u_pattern_transition;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;in vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nin vec3 v_normal;\n#endif\n#ifdef APPLY_LUT_ON_GPU\nuniform highp sampler3D u_lutTexture;\n#endif\nin highp vec2 v_pos;in vec4 v_lighting;uniform lowp float u_opacity;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define mediump uvec4 pattern\n#ifdef FILL_EXTRUSION_PATTERN_TRANSITION\n#pragma mapbox: define mediump uvec4 pattern_b\n#endif\n#pragma mapbox: define highp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize mediump uvec4 pattern\n#ifdef FILL_EXTRUSION_PATTERN_TRANSITION\n#pragma mapbox: initialize mediump uvec4 pattern_b\n#endif\n#pragma mapbox: initialize highp float pixel_ratio\nvec2 pattern_tl=vec2(pattern.xy);vec2 pattern_br=vec2(pattern.zw);highp vec2 imagecoord=mod(v_pos,1.0);highp vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);highp vec2 lod_pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,v_pos);vec4 out_color=textureLodCustom(u_image,pos,lod_pos);\n#ifdef APPLY_LUT_ON_GPU\nout_color=applyLUT(u_lutTexture,out_color);\n#endif\n#ifdef FILL_EXTRUSION_PATTERN_TRANSITION\nvec2 pattern_b_tl=vec2(pattern_b.xy);vec2 pattern_b_br=vec2(pattern_b.zw);highp vec2 pos_b=mix(pattern_b_tl/u_texsize,pattern_b_br/u_texsize,imagecoord);vec4 color_b=textureLodCustom(u_image,pos_b,lod_pos);out_color=out_color*(1.0-u_pattern_transition)+color_b*u_pattern_transition;\n#endif\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color,normalize(v_normal))*u_opacity;\n#else\nout_color=out_color*v_lighting;\n#endif\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0
1),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);out_color.rgb=out_color.rgb*shade;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#ifdef INDICATOR_CUTOUT\nout_color=applyCutout(out_color,height);\n#endif\nglFragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_material_table.vertex.glsl"\nuniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform float u_tile_units_to_pixels;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_width_scale;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;in ivec4 a_pos_normal_ed;\n#if defined(HAS_CENTROID) || defined(TERRAIN)\nin uvec2 a_centroid_pos;\n#endif\n#ifdef RENDER_WALL_MODE\nin ivec4 a_join_normal_inside;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nin ivec4 a_pos_3;in ivec4 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\n#ifdef TERRAIN\nuniform int u_height_type;uniform int u_base_type;\n#endif\nout highp vec2 v_pos;out vec4 v_lighting;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;out vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nout vec3 v_normal;\n#endif\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump uvec4 pattern\n#ifdef FILL_EXTRUSION_PATTERN_TRANSITION\n#pragma mapbox: define mediump uvec4 pattern_b\n#endif\n#pragma mapbox: define highp float pixel_ratio\n#pragma mapbox: define highp float line_width\nvoid main() {DECLARE_MATERIAL_TABLE_INFO\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump uvec4 pattern\n#ifdef FILL_EXTRUSION_PATTERN_TRANSITION\n#pragma mapbox: initialize mediump uvec4 pattern_b\n#endif\n#pragma mapbox: initialize highp float pixel_ratio\n#pragma mapbox: initialize highp float line_width\nvec2 pattern_tl=vec2(pattern.xy);vec2 pattern_br=vec2(pattern.zw);vec4 top_up_ny_start=vec4(a_pos_normal_ed & 1);vec4 pos_nx=vec4(a_pos_normal_ed >> 1);float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny_start.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny_start.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=float(a_pos_normal_ed.w);vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny_start.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=vec2(a_centroid_pos);\n#endif\nfloat ele=0.0;float h=z;vec3 p;float c_ele;\n#ifdef TERRAIN\nbool is_flat_height=centroid_pos.x !=0.0 && u_height_type==1;bool is_flat_base=centroid_pos.x !=0.0 && u_base_type==1;ele=elevation(pos_nx.xy);bool is_elevation_encoded=centroid_pos.y==0.0 || (centroid_pos.y > 0.0 && int(centroid_pos.y)-(int(centroid_pos.y)/8)*8==7);c_ele=is_flat_height || is_flat_base ? (is_elevation_encoded ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos)) : ele;float h_height=is_flat_height ? max(c_ele+height,ele+base+2.0) : ele+height;float h_base=is_flat_base ? max(c_ele+base,ele+base) : ele+(base==0.0 ?-5.0 : base);h=t > 0.0 ? max(h_base,h_height) : h_base;p=vec3(pos_nx.xy,h);\n#else\np=vec3(pos_nx.xy,z);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(vec3(a_pos_normal_3)/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=vec3(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\n#ifdef RENDER_WALL_MODE\nvec3 join_normal_inside=vec3(a_join_normal_inside);vec2 wall_offset=u_width_scale*line_width*(join_normal_inside.xy/EXTENT);p.xy+=(1.0-join_normal_inside.z)*wall_offset*0.5;p.xy-=join_normal_inside.z*wall_offset*0.5;\n#endif\nfloat hidden=float((centroid_pos.x==0.0 && centroid_pos.y==1.0) || (color.a==0.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=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float NdotL=0.0;\n#ifdef LIGHTING_3D_MODE\nNdotL=calculate_NdotL(normal);\n#else\nNdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),NdotL);\n#endif\nif (normal.y !=0.0) {float r=0.84;\n#ifndef LIGHTING_3D_MODE\nr=mix(0.7,0.98,1.0-u_lightintensity);
1\n#endif\nNdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny_start.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\nv_normal=normal;\n#else\nv_lighting.rgb+=clamp(NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(p);\n#endif\n}'),groundShadow:xn('#include "_prelude_shadow.fragment.glsl"\nprecision highp float;uniform vec3 u_ground_shadow_factor;in vec4 v_pos_light_view_0;in vec4 v_pos_light_view_1;\n#ifdef FOG\nin float v_fog_opacity;\n#endif\nvoid main() {float light=shadowed_light_factor_plane_bias(v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w);vec3 shadow=mix(u_ground_shadow_factor,vec3(1.0),light);\n#ifdef RENDER_CUTOFF\nshadow=mix(vec3(1.0),shadow,cutoff_opacity(u_cutoff_params,1.0/gl_FragCoord.w));\n#endif\n#ifdef FOG\nshadow=mix(shadow,vec3(1.0),v_fog_opacity);\n#endif\n#ifdef INDICATOR_CUTOUT\nshadow=mix(shadow,vec3(1.0),1.0-applyCutout(vec4(1.0),0.0).r);\n#endif\n#ifdef FEATURE_CUTOUT\nshadow=mix(shadow,vec3(1.0),get_cutout_factors(gl_FragCoord).y);\n#endif\nglFragColor=vec4(shadow,1.0);}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;in ivec2 a_pos;out vec4 v_pos_light_view_0;out vec4 v_pos_light_view_1;\n#ifdef FOG\nout float v_fog_opacity;\n#endif\nvoid main() {gl_Position=u_matrix*vec4(a_pos,0.0,1.0);v_pos_light_view_0=u_light_matrix_0*vec4(a_pos,0.0,1.0);v_pos_light_view_1=u_light_matrix_1*vec4(a_pos,0.0,1.0);\n#ifdef FOG\nv_fog_pos=fog_position(vec2(a_pos));v_fog_opacity=fog(v_fog_pos);\n#endif\n}'),fillExtrusionGroundEffect:xn("uniform highp float u_ao_pass;uniform highp float u_opacity;uniform highp float u_flood_light_intensity;uniform highp vec3 u_flood_light_color;uniform highp float u_attenuation;uniform sampler2D u_fb;uniform float u_fb_size;\n#ifdef SDF_SUBPASS\nin highp vec2 v_pos;in highp vec4 v_line_segment;in highp float v_flood_light_radius_tile;in highp vec2 v_ao;float line_df(highp vec2 a,highp vec2 b,highp vec2 p) {highp vec2 ba=b-a;highp vec2 pa=p-a;highp float r=clamp(dot(pa,ba)/dot(ba,ba),0.0,1.0);return length(pa-r*ba);}\n#ifdef FOG\nin highp float v_fog;\n#endif\n#endif\nvoid main() {\n#ifdef CLEAR_SUBPASS\nvec4 color=vec4(1.0);\n#ifdef CLEAR_FROM_TEXTURE\ncolor=texture(u_fb,gl_FragCoord.xy/vec2(u_fb_size));\n#endif\nglFragColor=color;\n#else\n#ifdef SDF_SUBPASS\nhighp float d=line_df(v_line_segment.xy,v_line_segment.zw,v_pos);highp float effect_radius=mix(v_flood_light_radius_tile,v_ao.y,u_ao_pass);d/=effect_radius;d=min(d,1.0);d=1.0-pow(1.0-d,u_attenuation);highp float effect_intensity=mix(u_flood_light_intensity,v_ao.x,u_ao_pass);highp float fog=1.0;\n#ifdef FOG\nfog=v_fog;\n#endif\n#ifdef RENDER_CUTOFF\nfog*=v_cutoff_opacity;\n#endif\nglFragColor=vec4(vec3(0.0),mix(1.0,d,effect_intensity*u_opacity*fog));\n#else\n#ifdef USE_MRT1\nout_Target1=vec4(1.0-texture(u_fb,gl_FragCoord.xy/vec2(u_fb_size)).a,0.0,0.0,0.0);\n#else\nvec4 color=mix(vec4(u_flood_light_color,1.0),vec4(vec3(0.0),1.0),u_ao_pass);\n#ifdef OVERDRAW_INSPECTOR\ncolor=vec4(1.0);\n#endif\nglFragColor=color;\n#endif\n#endif\nHANDLE_WIREFRAME_DEBUG;\n#endif\n}",'#include "_prelude_fog.vertex.glsl"\nin highp ivec4 a_pos_end;in highp int a_angular_offset_factor;in highp uint a_hidden_by_landmark;\n#ifdef SDF_SUBPASS\nout highp vec2 v_pos;out highp vec4 v_line_segment;out highp float v_flood_light_radius_tile;out highp vec2 v_ao;\n#ifdef FOG\nout highp float v_fog;\n#endif\n#endif\nuniform highp float u_flood_light_intensity;uniform highp mat4 u_matrix;uniform highp float u_ao_pass;uniform highp float u_meter_to_tile;uniform highp float u_edge_radius;uniform highp float u_dynamic_offset;uniform highp vec2 u_ao;
1\n#pragma mapbox: define highp float flood_light_ground_radius\nconst float TANGENT_CUTOFF=4.0;const float NORM=32767.0;void main() {\n#pragma mapbox: initialize highp float flood_light_ground_radius\nvec4 pos_end=vec4(a_pos_end);vec2 p=pos_end.xy;vec2 q=floor(pos_end.zw*0.5);vec2 start_bottom=pos_end.zw-q*2.0;float fl_ground_radius=abs(flood_light_ground_radius);float direction=flood_light_ground_radius < 0.0 ?-1.0 : 1.0;float flood_radius_tile=fl_ground_radius*u_meter_to_tile;vec2 v=normalize(q-p);float ao_radius=u_ao.y/3.5;float effect_radius=mix(flood_radius_tile,ao_radius,u_ao_pass)+u_edge_radius;float angular_offset_factor=float(a_angular_offset_factor)/NORM*TANGENT_CUTOFF;float angular_offset=direction*angular_offset_factor*effect_radius;float top=1.0-start_bottom.y;float side=(0.5-start_bottom.x)*2.0;vec2 extrusion_parallel=v*side*mix(u_dynamic_offset,angular_offset,top);vec2 perp=vec2(v.y,-v.x);vec2 extrusion_perp=direction*perp*effect_radius*top;vec3 pos=vec3(mix(q,p,start_bottom.x),0.0);pos.xy+=extrusion_parallel+extrusion_perp;\n#ifdef SDF_SUBPASS\nv_pos=pos.xy;v_line_segment=vec4(p,q)+perp.xyxy*u_edge_radius;v_flood_light_radius_tile=flood_radius_tile;v_ao=vec2(u_ao.x,ao_radius);\n#ifdef FOG\nv_fog_pos=fog_position(pos);v_fog=1.0-fog(v_fog_pos);\n#endif\n#endif\nfloat hidden_by_landmark=0.0;\n#ifdef HAS_CENTROID\nhidden_by_landmark=float(a_hidden_by_landmark);\n#endif\nfloat isFloodlit=float(fl_ground_radius > 0.0 && u_flood_light_intensity > 0.0);float hidden=mix(1.0-isFloodlit,isFloodlit,u_ao_pass);hidden+=hidden_by_landmark;gl_Position=mix(u_matrix*vec4(pos,1.0),AWAY,float(hidden > 0.0));\n#ifdef RENDER_CUTOFF\nv_cutoff_opacity=cutoff_opacity(u_cutoff_params,gl_Position.z);\n#endif\n}'),hillshadePrepare:xn("precision highp float;uniform highp sampler2D u_image;in vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;float getElevation(vec2 coord) {return texture(u_image,coord).r/4.0;}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+vec2(epsilon.x,0));float f=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float g=getElevation(v_pos+vec2(0,epsilon.y));float h=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+e+e+h)-(a+d+d+f),(f+g+g+h)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));glFragColor=clamp(vec4(\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);}","uniform mat4 u_matrix;uniform vec2 u_dimension;in ivec2 a_pos;in uvec2 a_texture_pos;out 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=(vec2(a_texture_pos)/8192.0)*scale+epsilon;}"),hillshade:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform sampler2D u_image;in vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;uniform float u_emissive_strength;void main() {vec4 pixel=texture(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);glFragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef LIGHTING_3D_MODE\nglFragColor=apply_lighting_with_emission_ground(glFragColor,u_emissive_strength);\n#endif\n#ifdef FOG\nglFragColor=fog_dither(fog_apply_premultiplied(glFragColor,v_fog_pos));\n#endif\n#ifdef USE_MRT1\nout_Target1=vec4(u_emissive_strength*glFragColor.a,0.0,0.0,glFragColor.a);\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);
1\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;in ivec2 a_pos;in uvec2 a_texture_pos;out vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=vec2(a_texture_pos)/8192.0;\n#ifdef FOG\nv_fog_pos=fog_position(vec2(a_pos));\n#endif\n}'),line:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_shadow.fragment.glsl"\nuniform lowp float u_device_pixel_ratio;uniform highp float u_width_scale;uniform highp float u_floor_width_scale;uniform float u_alpha_discard_threshold;uniform lowp float u_opacity_multiplier;uniform highp vec2 u_trim_offset;uniform highp vec2 u_trim_fade_range;uniform highp vec2 u_trim_gradient_mix_range;uniform lowp vec4 u_trim_color;uniform bool u_emissive_in_shadows;uniform bool u_clip_to_tile_borders;in vec4 v_width2_dilute;in vec2 v_normal;in float v_gamma_scale;in highp vec3 v_uv;in vec2 v_tile_pos;\n#ifdef ELEVATED_ROADS\nin highp float v_road_z_offset;\n#endif\n#ifdef VARIABLE_LINE_WIDTH\nin float stub_side;\n#endif\n#ifdef RENDER_LINE_DASH\nuniform sampler2D u_dash_image;in vec2 v_tex;\n#endif\n#ifdef DEBUG_ELEVATION_ID\nin vec3 v_elevation_id_col;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform sampler2D u_gradient_image;\n#endif\n#ifdef INDICATOR_CUTOUT\nin highp float v_z_offset;\n#endif\n#ifdef RENDER_SHADOWS\nuniform vec3 u_ground_shadow_factor;in highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;in highp float v_depth;\n#endif\nfloat luminance(vec3 c) {return (c.r+c.r+c.b+c.g+c.g+c.g)*0.1667;}\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define mediump uvec4 dash\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float side_z_offset\n#pragma mapbox: define lowp float border_width\n#pragma mapbox: define lowp vec4 border_color\n#pragma mapbox: define lowp float emissive_strength\nfloat linearstep(float edge0,float edge1,float x) {return clamp((x-edge0)/(edge1-edge0),0.0,1.0);}void main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump uvec4 dash\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float side_z_offset\n#pragma mapbox: initialize lowp float border_width\n#pragma mapbox: initialize lowp vec4 border_color\n#pragma mapbox: initialize lowp float emissive_strength\nfloat dist=length(v_normal)*v_width2_dilute.x;float ANTIALIASING=1.0/u_device_pixel_ratio/2.0;\n#ifdef RENDER_LINE_BORDER\n#ifndef VARIABLE_LINE_WIDTH\nANTIALIASING*=8.0;\n#endif\n#endif\n#ifdef VARIABLE_LINE_WIDTH\nblur=mix(blur,0.0,stub_side);\n#endif\nfloat diluted_opacity=opacity*v_width2_dilute.z;float blur2=(u_width_scale*blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2_dilute.y-blur2),v_width2_dilute.x-dist)/blur2,0.0,1.0);float pxStep;float delta;\n#ifdef RENDER_LINE_BORDER\n#ifndef VARIABLE_LINE_WIDTH\npxStep=fwidth(dist);float out_edge=v_width2_dilute.x-dist;float in_edge=dist-(v_width2_dilute.y-2.0*ANTIALIASING);delta=v_width2_dilute.y > 0.0 ? min(in_edge,out_edge) : out_edge;float edge=ANTIALIASING;alpha=delta > 0.0 ? smoothstep(edge-pxStep,u_width_scale*blur+edge+pxStep,delta) : 0.0;\n#endif\n#endif\n#ifdef RENDER_LINE_DASH\nfloat sdfdist=texture(u_dash_image,v_tex).r;float sdfgamma=ANTIALIASING/(float(dash.z)+float(dash.w)/65535.0);float scaled_floorwidth=(floorwidth*u_floor_width_scale);alpha*=linearstep(0.5-sdfgamma/scaled_floorwidth,0.5+sdfgamma/scaled_floorwidth,sdfdist);\n#endif\nhighp vec4 out_color;\n#ifdef RENDER_LINE_GRADIENT\nout_color=texture(u_gradient_image,v_uv.xy);\n#else\nout_color=color;\n#endif\nfloat trim_alpha=1.0;\n#ifdef RENDER_LINE_TRIM_OFFSET\nhighp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=v_uv[2];if (trim_end > trim_start) {highp float start_transition=max(0.0,min(1.0,(line_progress-trim_start)/max(u_trim_fade_range[0],1.0e-9)));highp float end_transition=max(0.0,min(1.0,(trim_end-line_progress)/max(u_trim_fade_range[1],1.0e-9)));highp float transition_factor=min(start_transition,end_transition);highp float gradient_trim_color_mix_factor=0.0;\n#ifdef RENDER_LINE_GRADIENT\ngradient_trim_color_mix_factor=smoothstep(u_trim_gradient_mix_range.x,u_trim_gradient_mix_range.y,line_progress);\n#endif\nhighp vec4 trim_color=mix(u_trim_color,out_color,gradient_trim_color_mix_factor);out_color=mix(u_trim_gradient_mix_range.x < 1.0 ? color : out_color,trim_color,transition_factor);trim_alpha=1.0-transition_factor;}\n#endif\nif (u_alpha_discard_threshold !=0.0) {if (alpha < u_alpha_discard_threshold) {discard;}}\n#ifdef RENDER_LINE_BORDER\n#ifndef VARIABLE_LINE_WIDTH\nfloat edge2=border_width*u_width_scale+ANTIALIASING;float alpha2=smoothstep(edge2-pxStep,edge2+pxStep,delta);if (alpha2 < 1.) {if (border_color.a==0.0) {\n#ifndef RENDER_LINE_GRADIENT\nfloat Y=(out_color.a > 0.01) ? luminance(out_color.rgb/out_color.a) : 1.;
1float adjustment=(Y > 0.) ? 0.5/Y : 0.45;if (out_color.a > 0.25 && Y < 0.25) {vec3 borderColor=(Y > 0.) ? out_color.rgb : vec3(1,1,1)*out_color.a;out_color.rgb=out_color.rgb+borderColor*(adjustment*(1.0-alpha2));} else {out_color.rgb*=(0.6+0.4*alpha2);}\n#else\nout_color.rgb*=(0.6+0.4*alpha2);\n#endif\n} else {out_color=mix(border_color*trim_alpha,out_color,alpha2);}out_color*=v_width2_dilute.w;}\n#endif\n#endif\nvec2 cutout_factors=vec2(0.0);\n#ifdef FEATURE_CUTOUT\ncutout_factors=get_cutout_factors(gl_FragCoord);\n#endif\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,emissive_strength);\n#ifdef RENDER_SHADOWS\nfloat light=shadowed_light_factor(v_pos_light_view_0,v_pos_light_view_1,v_depth);light=mix(light,1.0,cutout_factors.y);light=u_emissive_in_shadows ? mix(light,1.0,emissive_strength) : light;\n#ifdef ELEVATED_ROADS\nout_color.rgb*=mix(v_road_z_offset !=0.0 ? u_ground_shadow_factor : vec3(1.0),vec3(1.0),light);\n#else\nout_color.rgb*=mix(u_ground_shadow_factor,vec3(1.0),light);\n#endif\n#endif\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\nout_color*=(alpha*diluted_opacity*u_opacity_multiplier);\n#ifdef INDICATOR_CUTOUT\nout_color=applyCutout(out_color,v_z_offset);\n#endif\n#ifdef FEATURE_CUTOUT\nout_color=apply_feature_cutout(out_color,gl_FragCoord,cutout_factors.x);\n#endif\n#ifdef LINE_BLEND_ADDITIVE\n{float cov=alpha*diluted_opacity;glFragColor=vec4(cov > 0.0 ? out_color.rgb/cov : vec3(0.0),cov);}\n#else\n#ifdef LINE_BLEND_MULTIPLY\nglFragColor=vec4(out_color.rgb+(1.0-out_color.a),1.0);\n#else\nglFragColor=out_color;\n#endif\n#endif\n#ifdef DUAL_SOURCE_BLENDING\nglFragColorSrc1=vec4(vec3(0.0),emissive_strength);\n#else\n#ifdef USE_MRT1\nout_Target1=vec4(emissive_strength*glFragColor.a,0.0,0.0,glFragColor.a);\n#endif\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\n#ifdef DEBUG_ELEVATION_ID\nglFragColor=vec4(v_elevation_id_col,1.0);\n#endif\nif (u_clip_to_tile_borders) {if (v_tile_pos.x > 1.0 || v_tile_pos.y > 1.0 || v_tile_pos.x < 0.0 || v_tile_pos.y < 0.0) {discard;}}HANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\n#define EXTRUDE_SCALE 0.015873016\nin ivec2 a_pos_normal;in uvec4 a_data;\n#if defined(ELEVATED) || defined(ELEVATED_ROADS) || defined(VARIABLE_LINE_WIDTH) || defined(VARIABLE_LINE_EMISSIVE_STRENGTH)\nin vec4 a_z_offset_width;\n#endif\n#ifdef DEBUG_ELEVATION_ID\nin vec3 a_elevation_id_col;\n#endif\n#ifdef DEBUG_ELEVATION_ID\nout vec3 v_elevation_id_col;\n#endif\n#ifdef ELEVATION_GROUND_SCALE\nin float a_elevation_ground_scale;\n#endif\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET) || defined(RENDER_LINE_CURVE)\nin highp vec3 a_packed;\n#endif\n#ifdef RENDER_LINE_DASH\nin 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;uniform float u_width_scale;uniform float u_z_offset;uniform highp float u_floor_width_scale;\n#ifdef RENDER_LINE_CURVE\nuniform mat3 u_curve_points_x;uniform mat3 u_curve_points_y;uniform mat3 u_curve_points_z;uniform float u_curve_point_count;\n#endif\n#ifdef ELEVATED\nuniform lowp float u_zbias_factor;uniform lowp float u_tile_to_meter;float sample_elevation(vec2 apos) {\n#ifdef ELEVATION_REFERENCE_SEA\nreturn 0.0;\n#else\nreturn elevation(apos);\n#endif\n}\n#endif\nout vec2 v_normal;out vec4 v_width2_dilute;out float v_gamma_scale;out highp vec3 v_uv;out vec2 v_tile_pos;\n#ifdef ELEVATED_ROADS\nout highp float v_road_z_offset;\n#endif\n#ifdef VARIABLE_LINE_WIDTH\nout float stub_side;\n#endif\n#ifdef RENDER_LINE_DASH\nuniform vec2 u_texsize;uniform float u_tile_units_to_pixels;out vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform float u_image_height;\n#endif\n#ifdef INDICATOR_CUTOUT\nout highp float v_z_offset;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;out highp float v_depth;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define mediump uvec4 dash\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\n#pragma mapbox: define mediump float side_z_offset\n#pragma mapbox: define lowp float border_width\n#pragma mapbox: define lowp vec4 border_color\n#pragma mapbox: define lowp float emissive_strength\n#ifdef RENDER_LINE_CURVE\nvec3 getCurvePoint(int index) {int row=index/3;int col=index-row*3;float x=u_curve_points_x[row][col];float y=u_curve_points_y[row][col];float z=u_curve_points_z[row][col];return vec3(x,y,z);}vec3 catmullRom(vec3 p0,vec3 p1,vec3 p2,vec3 p3,float t) {float t2
1=t*t;float t3=t2*t;return 0.5*(\n2.0*p1+(-p0+p2)*t+(2.0*p0-5.0*p1+4.0*p2-p3)*t2+(-p0+3.0*p1-3.0*p2+p3)*t3\n);}vec2 catmullRomTangent(vec2 p0,vec2 p1,vec2 p2,vec2 p3,float t) {float t2=t*t;return 0.5*(\n(-p0+p2)+(2.0*p0-5.0*p1+4.0*p2-p3)*2.0*t+(-p0+3.0*p1-3.0*p2+p3)*3.0*t2\n);}struct CurveResult {vec3 point;vec2 tangent;};CurveResult calculateCurve(float line_progress) {float curve_progress=line_progress*(u_curve_point_count-1.0);float curve_progress_local=fract(curve_progress);float curve_segment=floor(curve_progress);int seg=int(curve_segment);vec3 p1=getCurvePoint(seg);vec3 p2=getCurvePoint(seg+1);float is_first_seg=step(curve_segment,0.5);vec3 p0_extrapolated=p1-(p2-p1);vec3 p0_fetched=getCurvePoint(max(seg-1,0));vec3 p0=mix(p0_fetched,p0_extrapolated,is_first_seg);int last_seg=int(u_curve_point_count)-2;float is_last_seg=step(float(last_seg)-0.5,curve_segment);vec3 p3_extrapolated=p2+(p2-p1);vec3 p3_fetched=getCurvePoint(min(seg+2,int(u_curve_point_count)-1));vec3 p3=mix(p3_fetched,p3_extrapolated,is_last_seg);vec3 point=catmullRom(p0,p1,p2,p3,curve_progress_local);vec2 tangent=catmullRomTangent(p0.xy,p1.xy,p2.xy,p3.xy,curve_progress_local)*(u_curve_point_count-1.0);CurveResult result;result.point=point;result.tangent=tangent;return result;}\n#endif\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump uvec4 dash\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\n#pragma mapbox: initialize mediump float side_z_offset\n#pragma mapbox: initialize lowp float border_width\n#pragma mapbox: initialize lowp vec4 border_color\n#pragma mapbox: initialize lowp float emissive_strength\n#ifdef VARIABLE_LINE_EMISSIVE_STRENGTH\nemissive_strength=a_z_offset_width.w;\n#endif\nfloat a_z_offset=u_z_offset;\n#if defined(ELEVATED) || defined(ELEVATED_ROADS)\na_z_offset+=a_z_offset_width.x;\n#endif\n#ifdef DEBUG_ELEVATION_ID\nv_elevation_id_col=a_elevation_id_col;\n#endif\nhighp float line_progress=0.0;\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET) || defined(RENDER_LINE_CURVE)\nline_progress=a_packed[2];\n#endif\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;\n#ifdef RENDER_LINE_BORDER\n#ifndef VARIABLE_LINE_WIDTH\nANTIALIASING*=8.0;\n#endif\n#endif\nvec2 a_extrude=vec2(a_data.xy)-128.0;float a_direction=float(a_data.z & 3u)-1.0;vec2 pos_normal=vec2(a_pos_normal);vec2 pos=floor(pos_normal*0.5);mediump vec2 normal=pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;offset=-1.0*offset*u_width_scale;bool left=normal.y==1.0;\n#ifdef RENDER_LINE_CURVE\nCurveResult curve=calculateCurve(line_progress);pos=curve.point.xy*8192.0;a_extrude=length(a_extrude)*normalize(curve.tangent);a_extrude=left ? vec2(-a_extrude.y,a_extrude.x) : vec2(a_extrude.y,-a_extrude.x);a_z_offset+=curve.point.z;\n#endif\ngapwidth=gapwidth/2.0;float halfwidth;float dilute_scale=1.0;float dilute_border_scale=1.0;float symmetric_outset=0.0;\n#ifdef VARIABLE_LINE_WIDTH\nfloat left_width=a_z_offset_width.y;float right_width=a_z_offset_width.z;halfwidth=u_width_scale*(left ? left_width : right_width);if (side_z_offset !=0.0) {float left_f=step(1.0,normal.y);float is_negative=step(side_z_offset,0.0);float apply=mix(1.0-left_f,left_f,is_negative);a_extrude*=apply;a_z_offset+=abs(side_z_offset)*apply;v_normal*=apply;}offset=border_width > 0.0 ? (left_width+right_width)*u_width_scale : offset;halfwidth=border_width > 0.0 ? border_width*u_width_scale*0.5 : halfwidth;bool zero_right_width=border_width==0.0 && right_width==0.0;symmetric_outset=zero_right_width ? u_width_scale*left_width : halfwidth;stub_side=zero_right_width ?-normal.y : 0.0;v_normal=!left && zero_right_width ? vec2(0.0) : v_normal;ANTIALIASING=!left && zero_right_width ? 0.0 : ANTIALIASING;\n#else\nhalfwidth=(u_width_scale*width)/2.0;\n#endif\nfloat inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth > 0.0 ? ANTIALIASING : 0.0);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);float hidden=float(opacity==0.0);vec2 extrude=dist*u_pixels_to_tile_units;
1vec4 projected_extrude=u_matrix*vec4(extrude,0.0,0.0);vec2 projected_extrude_xy=projected_extrude.xy;\n#ifdef ELEVATED_ROADS\nv_road_z_offset=a_z_offset;v_tile_pos=pos+offset2*u_pixels_to_tile_units;gl_Position=u_matrix*vec4(v_tile_pos,a_z_offset,1.0);\n#else\n#ifdef ELEVATED\nvec2 offsetTile=offset2*u_pixels_to_tile_units;vec2 offset_pos=pos+offsetTile;float ele=0.0;float scaled_z_offset=a_z_offset;\n#ifdef ELEVATION_GROUND_SCALE\nscaled_z_offset=a_z_offset*mix(1.0,u_exaggeration,a_elevation_ground_scale);\n#endif\n#ifdef CROSS_SLOPE_VERTICAL\nfloat top=pos_normal.y-2.0*floor(pos_normal.y*0.5);float line_height=2.0*u_tile_to_meter*outset*top*u_pixels_to_tile_units[1][1]+scaled_z_offset;ele=sample_elevation(offset_pos)+line_height;projected_extrude=vec4(0);\n#else\n#ifdef CROSS_SLOPE_HORIZONTAL\nfloat ele0=sample_elevation(offset_pos);float ele1=max(sample_elevation(offset_pos+extrude),sample_elevation(offset_pos+extrude/2.0));float ele2=max(sample_elevation(offset_pos-extrude),sample_elevation(offset_pos-extrude/2.0));float ele_max=max(ele0,max(ele1,ele2));ele=ele_max+scaled_z_offset;\n#else\nfloat ele0=sample_elevation(offset_pos);float ele1=max(sample_elevation(offset_pos+extrude),sample_elevation(offset_pos+extrude/2.0));float ele2=max(sample_elevation(offset_pos-extrude),sample_elevation(offset_pos-extrude/2.0));float ele_max=max(ele0,0.5*(ele1+ele2));ele=ele_max-ele0+ele1+scaled_z_offset;\n#endif\n#endif\nv_tile_pos=offset_pos;gl_Position=u_matrix*vec4(v_tile_pos,ele,1.0)+projected_extrude;float z=clamp(gl_Position.z/gl_Position.w,0.5,1.0);float zbias=max(0.00005,(pow(z,0.8)-z)*u_zbias_factor*u_exaggeration);gl_Position.z-=(gl_Position.w*zbias);gl_Position=mix(gl_Position,AWAY,hidden);\n#else\nv_tile_pos=pos+offset2*u_pixels_to_tile_units;gl_Position=u_matrix*vec4(v_tile_pos,0.0,1.0);\n#endif\n#endif\n#ifndef ELEVATED\n#ifndef VARIABLE_LINE_WIDTH\n#ifndef RENDER_TO_TEXTURE\nfloat base_w=gl_Position.w;vec2 screen_width=abs(projected_extrude.xy/base_w*u_units_to_pixels);float max_extrude_component=max(screen_width.x,screen_width.y);if (width >=1.0 && base_w > 0.0 && max_extrude_component > 0.0001) {float min_pixel=1.05;if (max_extrude_component < min_pixel) {vec2 abs_pos=abs(gl_Position.xy);float is_out=max(abs_pos.x,abs_pos.y)/base_w;dilute_scale=mix(max_extrude_component/min_pixel,1.0,smoothstep(2.5,4.5,is_out));projected_extrude/=dilute_scale;}else if (gapwidth > 0.0) {float visible_ratio=(halfwidth+ANTIALIASING)/outset;vec2 visible_screen_width=screen_width*visible_ratio;float max_visible_component=max(visible_screen_width.x,visible_screen_width.y);dilute_scale=min(1.0,max_visible_component/min_pixel);}else\n{\n#ifdef RENDER_LINE_BORDER\nfloat border_ratio=(border_width*u_width_scale+ANTIALIASING)/outset;screen_width*=border_ratio;float max_border_component=max(screen_width.x,screen_width.y);dilute_border_scale=min(1.0,max_border_component/min_pixel);\n#endif\n}}\n#endif\n#endif\nv_tile_pos=(v_tile_pos+extrude)/EXTENT;\n#ifdef ELEVATED_ROADS\ngl_Position=gl_Position+projected_extrude;\n#else\ngl_Position=mix(gl_Position+projected_extrude,AWAY,hidden);\n#endif\n#endif\n#ifdef ELEVATED_ROADS\n#ifdef RENDER_SHADOWS\nvec3 shd_pos=vec3(pos+(offset2+dist)*u_pixels_to_tile_units,a_z_offset);vec3 shd_pos0=shd_pos;vec3 shd_pos1=shd_pos;\n#ifdef NORMAL_OFFSET\nvec3 shd_pos_offset=shadow_normal_offset(vec3(0.0,0.0,1.0));shd_pos0+=shd_pos_offset*shadow_normal_offset_multiplier0();shd_pos1+=shd_pos_offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);v_depth=gl_Position.w;\n#endif\n#endif\n#ifndef RENDER_TO_TEXTURE\nfloat epsilon=0.0001;float extrude_length_without_perspective=max(length(dist),epsilon);float extrude_length_with_perspective=max(length(projected_extrude_xy/gl_Position.w*u_units_to_pixels),epsilon);v_gamma_scale=mix(extrude_length_without_perspective/extrude_length_with_perspective,1.0,step(0.01,blur));\n#else\nv_gamma_scale=1.0;\n#endif\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nhighp float a_uv_x=a_packed[0];float a_split_index=a_packed[1];\n#ifdef RENDER_LINE_GRADIENT\nhighp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec3(a_uv_x,a_split_index*texel_height-half_texel_height,line_progress);\n#else\nv_uv=vec3(a_uv_x,0.0,line_progress);\n#endif\n#endif\n#ifdef RENDER_LINE_DASH\nvec4 dashf=vec4(dash);float totalLength=dashf.z+dashf.w/65535.0;float scale=totalLength==0.0 ? 0.0 : u_tile_units_to_pixels/totalLength;v_tex=vec2(a_linesofar*scale/(floorwidth*u_floor_width_scale),(-normal.y*dashf.y+dashf.x+0.5)/u_texsize.y);\n#endif\nv_width2_dilute=vec4(outset,inset,dilute_scale,dilute_border_scale);\n#ifdef VARIABLE_LINE_WIDTH\nv_width2_dilute.x=symmetric_outset;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n#ifdef INDICATOR_CUTOUT\nv_z_offset=a_z_offset;\n#endif\n}'),linePattern:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_shadow
vendor: 12,103 bytes, line 1
1.fragment.glsl"\nuniform highp float u_device_pixel_ratio;uniform highp float u_width_scale;uniform highp float u_alpha_discard_threshold;uniform lowp float u_opacity_multiplier;uniform highp vec2 u_texsize;uniform highp float u_tile_units_to_pixels;uniform highp vec2 u_trim_offset;uniform highp vec2 u_trim_fade_range;uniform lowp vec4 u_trim_color;uniform sampler2D u_image;\n#ifdef APPLY_LUT_ON_GPU\nuniform highp sampler3D u_lutTexture;\n#endif\n#ifdef LINE_PATTERN_TRANSITION\nuniform float u_pattern_transition;\n#endif\nin vec2 v_normal;in vec2 v_width2;in highp float v_linesofar;in float v_gamma_scale;in float v_width;\n#ifdef RENDER_LINE_TRIM_OFFSET\nin highp vec3 v_uv;\n#endif\n#ifdef ELEVATED_ROADS\nin highp float v_road_z_offset;\n#endif\n#ifdef LINE_JOIN_NONE\nin vec2 v_pattern_data;\n#endif\n#ifdef INDICATOR_CUTOUT\nin highp float v_z_offset;\n#endif\n#ifdef RENDER_SHADOWS\nuniform vec3 u_ground_shadow_factor;in highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;in highp float v_depth;\n#endif\n#pragma mapbox: define mediump uvec4 pattern\n#ifdef LINE_PATTERN_TRANSITION\n#pragma mapbox: define mediump uvec4 pattern_b\n#endif\n#pragma mapbox: define mediump float pixel_ratio\n#pragma mapbox: define mediump float blur\n#pragma mapbox: define mediump float opacity\n#pragma mapbox: define lowp float emissive_strength\nvoid main() {\n#pragma mapbox: initialize mediump uvec4 pattern\n#ifdef LINE_PATTERN_TRANSITION\n#pragma mapbox: initialize mediump uvec4 pattern_b\n#endif\n#pragma mapbox: initialize mediump float pixel_ratio\n#pragma mapbox: initialize mediump float blur\n#pragma mapbox: initialize mediump float opacity\n#pragma mapbox: initialize lowp float emissive_strength\nvec2 pattern_tl=vec2(pattern.xy);vec2 pattern_br=vec2(pattern.zw);vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;highp float pattern_size=display_size.x/u_tile_units_to_pixels;float aspect=display_size.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(u_width_scale*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);highp float pattern_x=v_linesofar/pattern_size*aspect;highp float x=mod(pattern_x,1.0);highp float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;highp vec2 pos=mix(pattern_tl*texel_size-texel_size,pattern_br*texel_size+texel_size,vec2(x,y));highp vec2 lod_pos=mix(pattern_tl*texel_size-texel_size,pattern_br*texel_size+texel_size,vec2(pattern_x,y));vec4 color=textureLodCustom(u_image,pos,lod_pos);\n#ifdef APPLY_LUT_ON_GPU\ncolor=applyLUT(u_lutTexture,color);\n#endif\n#ifdef LINE_PATTERN_TRANSITION\nvec2 pattern_b_tl=vec2(pattern_b.xy);vec2 pattern_b_br=vec2(pattern_b.zw);highp vec2 pos_b=mix(pattern_b_tl*texel_size-texel_size,pattern_b_br*texel_size+texel_size,vec2(x,y));vec4 color_b=textureLodCustom(u_image,pos_b,lod_pos);color=color*(1.0-u_pattern_transition)+color_b*u_pattern_transition;\n#endif\n#ifdef RENDER_LINE_TRIM_OFFSET\nhighp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=v_uv[2];if (trim_end > trim_start) {highp float start_transition=max(0.0,min(1.0,(line_progress-trim_start)/max(u_trim_fade_range[0],1.0e-9)));highp float end_transition=max(0.0,min(1.0,(trim_end-line_progress)/max(u_trim_fade_range[1],1.0e-9)));highp float transition_factor=min(start_transition,end_transition);color=mix(color,color.a*u_trim_color,transition_factor);}\n#endif\n#ifdef LINE_JOIN_NONE\nhighp float pattern_len=pattern_size/aspect;highp float segment_phase=pattern_len-mod(v_linesofar-v_pattern_data.x+pattern_len,pattern_len);highp float visible_start=segment_phase-step(pattern_len*0.5,segment_phase)*pattern_len;highp float visible_end=floor((v_pattern_data.y-segment_phase)/pattern_len)*pattern_len+segment_phase;visible_end+=step(pattern_len*0.5,v_pattern_data.y-visible_end)*pattern_len;if (v_pattern_data.x < visible_start || v_pattern_data.x >=visible_end) {color=vec4(0.0);}\n#endif\n#ifdef LIGHTING_3D_MODE\ncolor=apply_lighting_with_emission_ground(color,emissive_strength);\n#ifdef RENDER_SHADOWS\nfloat light=shadowed_light_factor(v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#ifdef ELEVATED_ROADS\ncolor.rgb*=mix(v_road_z_offset !=0.0 ? u_ground_shadow_factor : vec3(1.0),vec3(1.0),light);\n#else\ncolor.rgb*=mix(u_ground_shadow_factor,vec3(1.0),light);\n#endif\n#endif\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ncolor*=(alpha*opacity*u_opacity_multiplier);if (u_alpha_discard_threshold !=0.0) {if (color.a < u_alpha_discard_threshold) {discard;}}\n#ifdef INDICATOR_CUTOUT\ncolor=applyCutout(color,v_z_offset);\n#endif\nglFragColor=color;\n#ifdef DUAL_SOURCE_BLENDING\nglFragColorSrc1=vec4(vec3(0.0),emissive_strength);\n#else\n#ifdef USE_MRT1\nout_Target1=vec4(emissive_strength*glFragColor.a,0.0,0.0,glFragColor.a);\n#endif\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\n#define scale 0.015873016\nin ivec2 a_pos_normal;in uvec4 a_data;\n#if defined(ELEVATED) || defined(ELEVATED_ROADS)\nin vec4 a_z_offset_width;\n#endif\n#ifdef ELEVATION_GROUND_SCALE\nin float a_elevation_ground_scale;\n#endif\n#ifdef RENDER_LINE_TRIM_OFFSET\nin highp vec3 a_packed;\n#endif\nin highp float a_linesofar;\n#ifdef LINE_JOIN_NONE\nin highp vec3 a_pattern_data;out vec2 v_pattern_data;\n#endif\n#ifdef INDICATOR_CUTOUT\nout highp float v_z_offset;\n#endif\nuniform mat4 u_matrix;uniform float u_tile_units_to_pixels;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform float u_device_pixel_ratio;uniform float u_width_scale;uniform float u_floor_width_scale;\n#ifdef ELEVATED\nuniform lowp float u_zbias_factor;uniform lowp float u_tile_to_meter;float sample_elevation(vec2 apos) {\n#ifdef ELEVATION_REFERENCE_SEA\nreturn 0.0;\n#else\nreturn elevation(apos);\n#endif\n}\n#endif\nout vec2 v_normal;out vec2 v_width2;out highp float v_linesofar;out float v_gamma_scale;out float v_width;\n#ifdef RENDER_LINE_TRIM_OFFSET\nout highp vec3 v_uv;\n#endif\n#ifdef ELEVATED_ROADS\nout highp float v_road_z_offset;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;out highp float v_depth;\n#endif\n#pragma mapbox: define mediump float blur\n#pragma mapbox: define mediump float opacity\n#pragma mapbox: define mediump float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define mediump float floorwidth\n#pragma mapbox: define mediump uvec4 pattern\n#ifdef LINE_PATTERN_TRANSITION\n#pragma mapbox: define mediump uvec4 pattern_b\n#endif\n#pragma mapbox: define mediump float pixel_ratio\n#pragma mapbox: define lowp float emissive_strength\nvoid main() {\n#pragma mapbox: initialize mediump float blur\n#pragma mapbox: initialize mediump float opacity\n#pragma mapbox: initialize mediump float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize mediump float floorwidth\n#pragma mapbox: initialize mediump uvec4 pattern\n#ifdef LINE_PATTERN_TRANSITION\n#pragma mapbox: initialize mediump uvec4 pattern_b\n#endif\n#pragma mapbox: initialize mediump float pixel_ratio\n#pragma mapbox: initialize lowp float emissive_strength\nfloat a_z_offset;\n#if defined(ELEVATED) || defined(ELEVATED_ROADS)\na_z_offset=a_z_offset_width.x;\n#endif\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=vec2(a_data.xy)-128.0;float a_direction=float(a_data.z & 3u)-1.0;vec2 pos_normal=vec2(a_pos_normal);vec2 pos=floor(pos_normal*0.5);vec2 normal=pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=(u_width_scale*width)/2.0;offset=-1.0*offset*u_width_scale;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);vec2 dist=outset*a_extrude*scale;float u=0.5*a_direction;float t=1.0-abs(u);vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);float hidden=float(opacity==0.0);vec2 extrude=dist*u_pixels_to_tile_units;vec4 projected_extrude=u_matrix*vec4(extrude,0.0,0.0);vec2 projected_extrude_xy=projected_extrude.xy;\n#ifdef ELEVATED_ROADS\nv_road_z_offset=a_z_offset;gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,a_z_offset,1.0)+projected_extrude;\n#else\n#ifdef ELEVATED\nvec2 offsetTile=offset2*u_pixels_to_tile_units;vec2 offset_pos=pos+offsetTile;float ele=0.0;float scaled_z_offset=a_z_offset;\n#ifdef ELEVATION_GROUND_SCALE\nscaled_z_offset=a_z_offset*mix(1.0,u_exaggeration,a_elevation_ground_scale);\n#endif\n#ifdef CROSS_SLOPE_VERTICAL\nfloat top=pos_normal.y-2.0*floor(pos_normal.y*0.5);float line_height=2.0*u_tile_to_meter*outset*top*u_pixels_to_tile_units[1][1]+scaled_z_offset;ele=sample_elevation(offset_pos)+line_height;projected_extrude=vec4(0);\n#else\n#ifdef CROSS_SLOPE_HORIZONTAL\nfloat ele0=sample_elevation(offset_pos);float ele1=max(sample_elevation(offset_pos+extrude),sample_elevation(offset_pos+extrude/2.0));float ele2=max(sample_elevation(offset_pos-extrude),sample_elevation(offset_pos-extrude/2.0));float ele_max=max(ele0,max(ele1,ele2));ele=ele_max+scaled_z_offset;\n#else\nfloat ele0=sample_elevation(offset_pos);float ele1=max(sample_elevation(offset_pos+extrude),sample_elevation(offset_pos+extrude/2.0));float ele2=max(sample_elevation(offset_pos-extrude),sample_elevation(offset_pos-extrude/2.0));float ele_max=max(ele0,0.5*(ele1+ele2));ele=ele_max-ele0+ele1+scaled_z_offset;\n#endif\n#endif\ngl_Position=u_matrix*vec4(offset_pos,ele,1.0)+projected_extrude;float z=clamp(gl_Position.z/gl_Position.w,0.5,1.0);float zbias=max(0.00005,(pow(z,0.8)-z)*u_zbias_factor*u_exaggeration);gl_Position.z-=(gl_Position.w*zbias);gl_Position=mix(gl_Position,AWAY,hidden);\n#else\ngl_Position=mix(u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude,AWAY,hidden);\n#endif\n#endif\n#ifdef ELEVATED_ROADS\n#ifdef RENDER_SHADOWS\nvec3 shd_pos=vec3(pos+(offset2+dist)*u_pixels_to_tile_units,a_z_offset);vec3 shd_pos0=shd_pos;vec3 shd_pos1=shd_pos;\n#ifdef NORMAL_OFFSET\nvec3 shd_pos_offset=shadow_normal_offset(vec3(0.0,0.0,1.0));shd_pos0+=shd_pos_offset*shadow_normal_offset_multiplier0();shd_pos1+=shd_pos_offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);v_depth=gl_Position.w;\n#endif\n#endif\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=mix(extrude_length_without_perspective/extrude_length_with_perspective,1.0,step(0.01,blur));\n#else\nv_gamma_scale=1.0;\n#endif\n#ifdef RENDER_LINE_TRIM_OFFSET\nhighp float a_uv_x=a_packed[0];highp float line_progress=a_packed[2];v_uv=vec3(a_uv_x,0.0,line_progress);\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=(floorwidth*u_floor_width_scale);\n#ifdef LINE_JOIN_NONE\nv_width=(floorwidth*u_floor_width_scale)+ANTIALIASING;mediump float pixels_to_tile_units=1.0/u_tile_units_to_pixels;mediump float pixel_ratio_inverse=1.0/pixel_ratio;mediump float aspect=v_width/(float(pattern.w-pattern.y)*pixel_ratio_inverse);highp float subt_multiple=float(pattern.z-pattern.x)*pixel_ratio_inverse*pixels_to_tile_units*aspect*32.0;highp float subt=floor(a_pattern_data.z/subt_multiple)*subt_multiple;float offset_sign=(fract(a_pattern_data.x)-0.5)*4.0;float line_progress_offset=offset_sign*v_width*0.5*pixels_to_tile_units;v_linesofar=(a_pattern_data.z-subt)+a_linesofar+line_progress_offset;v_pattern_data=vec2(a_pattern_data.x+line_progress_offset,a_pattern_data.y);\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n#ifdef INDICATOR_CUTOUT\nv_z_offset=a_z_offset;\n#endif\n}'),raster:
1xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_raster_array.glsl"\nuniform float u_fade_t;uniform float u_opacity;uniform highp float u_raster_elevation;uniform highp float u_zoom_transition;in vec2 v_pos0;in vec2 v_pos1;in float v_depth;\n#ifdef PROJECTION_GLOBE_VIEW\nin float v_split_fade;\n#endif\nuniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;uniform float u_emissive_strength;\n#ifndef RASTER_ARRAY\nuniform highp sampler2D u_image0;uniform sampler2D u_image1;\n#endif\n#ifdef RASTER_COLOR\nuniform sampler2D u_color_ramp;uniform highp vec4 u_colorization_mix;uniform highp float u_colorization_offset;uniform vec2 u_texture_res;\n#endif\nvoid main() {vec4 color0,color1,color;vec2 value;\n#ifdef RASTER_COLOR\n#ifdef RASTER_ARRAY\n#ifdef RASTER_ARRAY_LINEAR\nvalue=mix(\nraTexture2D_image0_linear(v_pos0,u_texture_res,u_colorization_mix,u_colorization_offset),raTexture2D_image1_linear(v_pos1,u_texture_res,u_colorization_mix,u_colorization_offset),u_fade_t\n);\n#else\nvalue=mix(\nraTexture2D_image0_nearest(v_pos0,u_texture_res,u_colorization_mix,u_colorization_offset),raTexture2D_image1_nearest(v_pos1,u_texture_res,u_colorization_mix,u_colorization_offset),u_fade_t\n);\n#endif\nif (value.y > 0.0) value.x/=value.y;
vendor: 5,542 bytes, line 1
1\n#else\ncolor=mix(texture(u_image0,v_pos0),texture(u_image1,v_pos1),u_fade_t);value=vec2(u_colorization_offset+dot(color.rgb,u_colorization_mix.rgb),color.a);\n#endif\ncolor=texture(u_color_ramp,vec2(value.x,0.5));if (color.a > 0.0) color.rgb/=color.a;color.a*=value.y;\n#else\ncolor0=texture(u_image0,v_pos0);color1=texture(u_image1,v_pos1);if (color0.a > 0.0) color0.rgb/=color0.a;if (color1.a > 0.0) color1.rgb/=color1.a;color=mix(color0,color1,u_fade_t);\n#endif\ncolor.a*=u_opacity;\n#ifdef GLOBE_POLES\ncolor.a*=1.0-smoothstep(0.0,0.05,u_zoom_transition);\n#endif\nvec3 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 LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(vec4(out_color,1.0),u_emissive_strength).rgb;\n#endif\n#ifdef FOG\nhighp float fog_limit_high_meters=1000000.0;highp float fog_limit_low_meters=600000.0;float fog_limit=1.0-smoothstep(fog_limit_low_meters,fog_limit_high_meters,u_raster_elevation);out_color=fog_dither(fog_apply(out_color,v_fog_pos,fog_limit));\n#endif\nglFragColor=vec4(out_color*color.a,color.a);\n#ifdef PROJECTION_GLOBE_VIEW\nglFragColor*=mix(1.0,1.0-smoothstep(0.0,0.05,u_zoom_transition),smoothstep(0.8,0.9,v_split_fade));\n#endif\n#ifdef RENDER_CUTOFF\nglFragColor=glFragColor*cutoff_opacity(u_cutoff_params,v_depth);\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\n#ifdef USE_MRT1\nout_Target1=vec4(u_emissive_strength*glFragColor.a,0.0,0.0,glFragColor.a);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\nuniform mat4 u_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform mat3 u_grid_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;uniform vec2 u_texture_offset;uniform float u_raster_elevation;uniform float u_zoom_transition;uniform vec2 u_merc_center;\n#ifdef ELEVATED\nuniform lowp float u_zbias_factor;\n#endif\n#define GLOBE_UPSCALE GLOBE_RADIUS/6371008.8\n#ifdef GLOBE_POLES\nin vec3 a_globe_pos;in vec2 a_uv;\n#else\nin ivec2 a_pos;in uvec2 a_texture_pos;\n#endif\nout vec2 v_pos0;out vec2 v_pos1;out float v_depth;\n#ifdef PROJECTION_GLOBE_VIEW\nout float v_split_fade;\n#endif\nvoid main() {vec2 uv;\n#ifdef GLOBE_POLES\nvec3 globe_pos=a_globe_pos;uv=a_uv;float ele=u_raster_elevation;\n#ifdef ELEVATION_REFERENCE_GROUND\nele+=elevation(uv*EXTENT);\n#endif\nglobe_pos+=normalize(globe_pos)*ele*GLOBE_UPSCALE;gl_Position=u_matrix*u_globe_matrix*vec4(globe_pos,1.0);\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(a_globe_pos,1.0)).xyz);\n#endif\n#else\nvec4 world_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec2 texture_pos=vec2(a_texture_pos);uv=texture_pos/8192.0;vec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float mercatorX=mercatorXfromLng(latLng[1]); \nfloat tiles=u_grid_matrix[0][2];if (tiles > 0.0) {float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];float uvY=mercatorY*tiles-idy;float uvX=mercatorX*tiles-idx;uv=vec2(uvX,uvY);}float ele=u_raster_elevation;\n#ifdef ELEVATION_REFERENCE_GROUND\nele+=elevation(uv*EXTENT)-decomposed_pos_and_skirt.z;\n#endif\nvec4 merc_world_pos=vec4(0.0); \nv_split_fade=0.0;if (u_zoom_transition > 0.0) {vec2 merc_pos=vec2(mercatorX,mercatorY);merc_world_pos=vec4(merc_pos,ele,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;float opposite_merc_center=mod(u_merc_center.x+0.5,1.0);float dist_from_poles=(abs(mercatorY-0.5)*2.0);float range=0.1;v_split_fade=abs(opposite_merc_center-mercatorX);v_split_fade=clamp(1.0-v_split_fade,0.0,1.0);v_split_fade=max(smoothstep(1.0-range,1.0,dist_from_poles),max(smoothstep(1.0-range,1.0,v_split_fade),smoothstep(1.0-range,1.0,1.0-v_split_fade)));}vec3 globe_pos=latLngToECEF(latLng.xy);globe_pos+=normalize(globe_pos)*ele*GLOBE_UPSCALE;vec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);world_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition),1.0);\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n#else\nfloat ele=0.0;vec2 decodedPos=vec2(a_pos);\n#ifdef ELEVATION_REFERENCE_GROUND\nvec3 decomposedPosAndSkirt=decomposeToPosAndSkirt(a_pos);float skirt=decomposedPosAndSkirt.z;decodedPos=decomposedPosAndSkirt.xy;uv=decodedPos/8192.0;ele=elevation(decodedPos)-skirt;\n#else\nuv=vec2(a_texture_pos)/8192.0;\n#endif\nworld_pos=vec4(decodedPos,(u_raster_elevation+ele),1.0);\n#ifdef FOG\nv_fog_pos=fog_position(decodedPos);\n#endif\n#endif\nfloat w=1.0+dot(uv*EXTENT,u_perspective_transform);gl_Position=u_matrix*world_pos*w;\n#endif\nv_pos0=uv;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;v_pos0=u_texture_offset.x+u_texture_offset.y*v_pos0;v_pos1=u_texture_offset.x+u_texture_offset.y*v_pos1;\n#ifdef ELEVATED\nfloat z=clamp(gl_Position.z/gl_Position.w,0.5,1.0);float zbias=max(0.00005,(pow(z,0.8)-z)*u_zbias_factor);gl_Position.z-=(gl_Position.w*zbias);\n#endif\n#ifdef RENDER_CUTOFF\nv_depth=gl_Position.z;\n#endif\n}'),symbol:
1xn('#include "_prelude_lighting.glsl"\n#include "_prelude_shadow.fragment.glsl"\n#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;uniform bool u_is_halo;uniform lowp float u_scale_factor;uniform lowp float u_opacity_multiplier;\n#ifdef ICON_TRANSITION\nuniform float u_icon_transition;\n#endif\n#ifdef COLOR_ADJUSTMENT\nuniform mat4 u_color_adj_mat;\n#endif\n#ifdef INDICATOR_CUTOUT\nin highp float v_z_offset;\n#else\n#ifdef RENDER_SHADOWS\nin highp float v_z_offset;\n#endif\n#endif\nin vec2 v_tex_a;\n#ifdef ICON_TRANSITION\nin vec2 v_tex_b;\n#endif\nin float v_draw_halo;in vec3 v_gamma_scale_size_fade_opacity;\n#ifdef RENDER_TEXT_AND_SYMBOL\nin float is_sdf;in vec2 v_tex_a_icon;\n#endif\n#ifdef RENDER_SHADOWS\nuniform vec3 u_ground_shadow_factor;in highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;in highp float v_depth;\n#endif\n#ifdef APPLY_LUT_ON_GPU\nuniform highp sampler3D u_lutTexture;\n#endif\n#ifdef USE_PAINT_PROPERTIES_UBO\nin lowp float v_opacity;\n#ifdef RENDER_SDF\nin lowp vec4 v_fill_np_color;in lowp vec4 v_halo_np_color;in lowp float v_halo_width;in lowp float v_halo_blur;\n#endif\n#ifdef LIGHTING_3D_MODE\nin lowp float v_emissive_strength;\n#endif\n#else\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\n#pragma mapbox: define lowp float emissive_strength\n#endif\nvoid main() {\n#ifdef USE_PAINT_PROPERTIES_UBO\nlowp float opacity=v_opacity;lowp vec4 fill_color=vec4(0.0);lowp vec4 halo_color=vec4(0.0);lowp float halo_width=0.0;lowp float halo_blur=0.0;\n#ifdef RENDER_SDF\nfill_color=vec4(v_fill_np_color.rgb*v_fill_np_color.a,v_fill_np_color.a);halo_color=vec4(v_halo_np_color.rgb*v_halo_np_color.a,v_halo_np_color.a);halo_width=v_halo_width;halo_blur=v_halo_blur;\n#endif\nlowp float emissive_strength=0.0;\n#ifdef LIGHTING_3D_MODE\nemissive_strength=v_emissive_strength;\n#endif\n#else\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\n#pragma mapbox: initialize lowp float emissive_strength\n#endif\nvec4 out_color;float fade_opacity=v_gamma_scale_size_fade_opacity[2];\n#ifdef RENDER_TEXT_AND_SYMBOL\nif (is_sdf==ICON) {vec2 tex_icon=v_tex_a_icon;lowp float alpha=opacity*fade_opacity*u_opacity_multiplier;glFragColor=texture(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nreturn;}\n#endif\nvec2 cutout_factors=vec2(0.0);\n#ifdef FEATURE_CUTOUT\ncutout_factors=get_cutout_factors(gl_FragCoord);\n#endif\n#ifdef RENDER_SDF\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_gamma_scale_size_fade_opacity.x;float size=v_gamma_scale_size_fade_opacity.y;float fontScale=u_is_text ? size/24.0 : size;out_color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;bool draw_halo=v_draw_halo > 0.0;if (draw_halo) {out_color=halo_color;gamma=(halo_blur*u_scale_factor*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width*u_scale_factor/fontScale)/SDF_PX;}lowp float dist=texture(u_texture,v_tex_a).r;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);out_color*=alpha;\n#else\n#ifdef ICON_TRANSITION\nvec4 a=texture(u_texture,v_tex_a)*(1.0-u_icon_transition);vec4 b=texture(u_texture,v_tex_b)*u_icon_transition;out_color=(a+b);\n#else\nout_color=texture(u_texture,v_tex_a);\n#endif\n#ifdef APPLY_LUT_ON_GPU\nout_color=applyLUT(u_lutTexture,out_color);\n#endif\n#ifdef COLOR_ADJUSTMENT\nout_color=u_color_adj_mat*out_color;\n#endif\n#endif\nout_color*=opacity*fade_opacity*u_opacity_multiplier;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(out_color,emissive_strength);\n#ifdef RENDER_SHADOWS\nfloat light=shadowed_light_factor(v_pos_light_view_0,v_pos_light_view_1,v_depth);light=mix(light,1.0,cutout_factors.y);\n#ifdef TERRAIN\nout_color.rgb*=mix(u_ground_shadow_factor,vec3(1.0),light);\n#else\nout_color.rgb*=mix(v_z_offset !=0.0 ? u_ground_shadow_factor : vec3(1.0),vec3(1.0),light);\n#endif\n#endif\n#endif\n#ifdef INDICATOR_CUTOUT\nout_color=applyCutout(out_color,v_z_offset);\n#endif\n#ifdef FEATURE_CUTOUT\nout_color=apply_feature_cutout(out_color,gl_FragCoord,cutout_factors.x);\n#endif\nglFragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);
1\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_terrain.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\n#define USING_APPEARANCE 1.0\nin ivec4 a_pos_offset;in uvec4 a_tex_size;in ivec4 a_pixeloffset;in vec4 a_projected_pos;in uint a_fade_opacity;\n#ifdef Z_OFFSET\nin float a_auto_z_offset;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nin ivec4 a_globe_anchor;in vec3 a_globe_normal;\n#endif\n#ifdef ICON_TRANSITION\nin uvec2 a_texb;\n#endif\n#ifdef OCCLUSION_QUERIES\nin float a_occlusion_query_opacity;\n#endif\n#ifdef ELEVATED_ROADS\nin vec3 a_x_axis;in vec3 a_y_axis;uniform float u_normal_scale;\n#endif\n#ifdef INDICATOR_CUTOUT\nout highp float v_z_offset;\n#else\n#ifdef RENDER_SHADOWS\nout highp float v_z_offset;\n#endif\n#endif\nuniform 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_inv_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_elevation_from_sea;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 vec3 u_up_vector;uniform vec2 u_texsize_icon;uniform bool u_is_halo;\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\nout vec2 v_tex_a;\n#ifdef ICON_TRANSITION\nout vec2 v_tex_b;\n#endif\nout float v_draw_halo;out vec3 v_gamma_scale_size_fade_opacity;\n#ifdef RENDER_TEXT_AND_SYMBOL\nout float is_sdf;out vec2 v_tex_a_icon;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;out highp float v_depth;\n#endif\n#ifdef USE_PAINT_PROPERTIES_UBO\n#ifndef MAX_UBO_SIZE_VEC4\n#define MAX_UBO_SIZE_VEC4 1024u\n#endif\n#define SPP_HEADER_SIZE_VEC4 3u\n#define DWORDS_PER_VEC4 4u\nstruct SymbolPaintProperties {vec4 fill_np_color;vec4 halo_np_color;float opacity;float halo_width;float halo_blur;float emissive_strength;float occlusion_opacity;float z_offset;vec2 translate;};struct PropertyType {bool isDataDriven;bool isZoomDependent;uint offsetDwords;float zoomFactor;};struct SymbolPropertyHeader {uint dataDrivenBlockSizeVec4;PropertyType fill_np_color;PropertyType halo_np_color;PropertyType opacity;PropertyType halo_width;PropertyType halo_blur;PropertyType emissive_strength;PropertyType occlusion_opacity;PropertyType z_offset;PropertyType translate;};uniform lowp vec4 u_spp_fill_np_color;uniform lowp vec4 u_spp_halo_np_color;uniform lowp float u_spp_opacity;uniform lowp float u_spp_halo_width;uniform lowp float u_spp_halo_blur;uniform lowp float u_spp_emissive_strength;uniform lowp float u_spp_occlusion_opacity;uniform highp float u_spp_z_offset;uniform lowp vec2 u_spp_translate_rotation;uniform highp float u_spp_fill_color_zoom_factor;uniform highp float u_spp_halo_color_zoom_factor;uniform highp float u_spp_opacity_zoom_factor;uniform highp float u_spp_halo_width_zoom_factor;uniform highp float u_spp_halo_blur_zoom_factor;uniform highp float u_spp_emissive_strength_zoom_factor;uniform highp float u_spp_occlusion_opacity_zoom_factor;uniform highp float u_spp_z_offset_zoom_factor;uniform highp float u_spp_translate_zoom_factor;in float a_feature_index;layout(std140) uniform SymbolPaintPropertiesHeaderUniform {uvec4 header[SPP_HEADER_SIZE_VEC4];} u_spp_header;layout(std140) uniform SymbolPaintPropertiesUniform {vec4 properties[MAX_UBO_SIZE_VEC4];} u_spp_properties;layout(std140) uniform SymbolPaintPropertiesIndexUniform {uvec4 block_indices[MAX_UBO_SIZE_VEC4];} u_spp_index;out lowp float v_opacity;\n#ifdef RENDER_SDF\nout lowp vec4 v_fill_np_color;out lowp vec4 v_halo_np_color;out lowp float v_halo_width;out lowp float v_halo_blur;\n#endif\n#ifdef LIGHTING_3D_MODE\nout lowp float v_emissive_strength;\n#endif\nPropertyType getPropertyType(uint propertyIndex,uint dataDrivenMask,uint zoomDependentMask,uint offsetDwords,float zoomFactor) {PropertyType type;type.isDataDriven=(dataDrivenMask & (1u << propertyIndex)) !=0u;type.isZoomDependent=(zoomDependentMask & (1u << propertyIndex)) !=0u;type.offsetDwords=offsetDwords;type.zoomFactor=zoomFactor;return type;}SymbolPropertyHeader readSymbolPropertiesHeader() {SymbolPropertyHeader header;uint dataDrivenMask =u_spp_header.header[0][0];uint zoomDependentMask =u_spp_header.header[0][1];header.dataDrivenBlockSizeVec4=u_spp_header.header[0][2];header.fill_np_color =getPropertyType(0u,dataDrivenMask,zoomDependentMask,u_spp_header.header[0][3],u_spp_fill_color_zoom_factor);header.halo_np_color =getPropertyType(1u,dataDrivenMask,zoomDependentMask,u_spp_header.header[1][0],u_spp_halo_color_zoom_factor);header.opacity =getPropertyType(2u,dataDrivenMask,zoomDependentMask,u_spp_header.header[1][1],u_spp_opacity_zoom_factor);header.halo_width =getPropertyType(3u,dataDrivenMask,zoomDependentMask,u_spp_header.header[1][2],u_spp_halo_width_zoom_factor);header.halo_blur =getPropertyType(4u,dataDrivenMask,zoomDependentMask,u_spp_header.header[1][3],u_spp_halo_blur_zoom_factor);header.emissive_strength=getPropertyType(5u,dataDrivenMask,zoomDependentMask,u_spp_header.header[2][0],u_spp_emissive_strength_zoom_factor);header.occlusion_opacity=getPropertyType(6u,dataDrivenMask,zoomDependentMask,u_spp_header.header[2][1],u_spp_occlusion_opacity_zoom_factor);header.z_offset =getPropertyType(7u,dataDrivenMask,zoomDependentMask,u_spp_header.header[2][2],u_spp_z_offset_zoom_factor);header.translate =getPropertyType(8u,dataDrivenMask,zoomDependentMask,u_spp_header.header[2][3],u_spp_translate_zoom_factor);return header;}uint uvec4At(uvec4 v,uint index) {return (index==0u) ? v.x :\n(index==1u) ? v.y :\n(index==2u) ? v.z : v.w;}float vec4At(vec4 v,uint index) {return (index==0u) ? v.x :\n(index==1u) ? v.y :\n(index==2u) ? v.z : v.w;}vec4 readVec4(uint baseOffsetVec4,uint propertyOffsetDwords) {return u_spp_properties.properties[baseOffsetVec4+propertyOffsetDwords/DWORDS_PER_VEC4];}float readFloat(vec4 slot,uint propertyOffsetDwords) {return slot[propertyOffsetDwords % DWORDS_PER_VEC4];}uint readUint(uvec4 slot,uint offset) {return slot[offset % DWORDS_PER_VEC4];}vec2 readVec2(vec4 slot,uint propertyOffsetDwords) {float x=vec4At(slot,propertyOffsetDwords % DWORDS_PER_VEC4);float y=vec4At(slot,propertyOffsetDwords % DWORDS_PER_VEC4+1u);return vec2(x,y);}uint getDataDrivenBlockOffsetVec4(uint dataDrivenBlockSizeVec4) {uint featureIndex=uint(a_feature_index);uvec4 slot=u_spp_index.block_indices[featureIndex/DWORDS_PER_VEC4];uint blockIndex=uvec4At(slot,featureIndex % DWORDS_PER_VEC4);return blockIndex*dataDrivenBlockSizeVec4;}vec4 readColorProperty(PropertyType propertyType,uint dataDrivenBlockSizeVec4) {uint blockOffsetVec4=getDataDrivenBlockOffsetVec4(dataDrivenBlockSizeVec4);vec4 color=readVec4(blockOffsetVec4,propertyType.offsetDwords);if (propertyType.isZoomDependent) {color=unpack_mix_color(color,propertyType.zoomFactor);} else {vec2 packedColor=readVec2(color,propertyType.offsetDwords);color=decode_color(packedColor);}return color;}vec2 readVec2Property(PropertyType propertyType,uint dataDrivenBlockSizeVec4) {uint blockOffsetVec4=getDataDrivenBlockOffsetVec4(dataDrivenBlockSizeVec4);vec4 slot=readVec4(blockOffsetVec4,propertyType.offsetDwords);if (propertyType.isZoomDependent) {return mix(slot.xy,slot.zw,propertyType.zoomFactor);}return readVec2(slot,propertyType.offsetDwords);}float readFloatProperty(PropertyType propertyType,uint dataDrivenBlockSizeVec4) {uint blockOffsetVec4=getDataDrivenBlockOffsetVec4(dataDrivenBlockSizeVec4);vec4 slot=readVec4(blockOffsetVec4,propertyType.offsetDwords);float value;if (propertyType.isZoomDependent) {vec2 packedValues=readVec2(slot,propertyType.offsetDwords);value=unpack_mix_vec2(packedValues,propertyType.zoomFactor);} else {value=readFloat(slot,propertyType.offsetDwords);}return value;}SymbolPaintProperties readSymbolPaintProperties() {SymbolPropertyHeader header=readSymbolPropertiesHeader();uint sizeVec4=header.dataDrivenBlockSizeVec4;SymbolPaintProperties props;props.fill_np_color =header.fill_np_color.isDataDriven ? readColorProperty(header.fill_np_color,sizeVec4) : u_spp_fill_np_color;props.halo_np_color =header.halo_np_color.isDataDriven ? readColorProperty(header.halo_np_color,sizeVec4) : u_spp_halo_np_color;props.opacity =header.opacity.isDataDriven ? readFloatProperty(header.opacity,sizeVec4) : u_spp_opacity;props.halo_width =header.halo_width.isDataDriven ? readFloatProperty(header.halo_width,sizeVec4) : u_spp_halo_width;props.halo_blur =header.halo_blur.isDataDriven ? readFloatProperty(header.halo_blur,sizeVec4) : u_spp_halo_blur;props.emissive_strength =header.emissive_strength.isDataDriven ? readFloatProperty(header.emissive_strength,sizeVec4) : u_spp_emissive_strength;props.occlusion_opacity =header.occlusion_opacity.isDataDriven ? readFloatProperty(header.occlusion_opacity,sizeVec4) : u_spp_occlusion_opacity;props.z_offset =header.z_offset.isDataDriven ? readFloatProperty(header.z_offset,sizeVec4) : u_spp_z_offset;props.translate =header.translate.isDataDriven ? readVec2Property(header.translate,sizeVec4) : vec2(0.0);return props;}\n#else\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\n#pragma mapbox: define lowp float emissive_strength\n#pragma mapbox: define lowp float occlusion_opacity\n#pragma mapbox: define highp float z_offset\n#endif\nvec2 unpack_opacity(uint packedOpacity) {return vec2(float(packedOpacity/2u)/127.0,float(packedOpacity & 1u));}
1void main() {\n#ifdef USE_PAINT_PROPERTIES_UBO\nSymbolPaintProperties paint_properties=readSymbolPaintProperties();lowp float opacity=paint_properties.opacity;v_opacity=opacity;\n#ifdef RENDER_SDF\nv_fill_np_color=paint_properties.fill_np_color;v_halo_np_color=paint_properties.halo_np_color;v_halo_width=paint_properties.halo_width;v_halo_blur=paint_properties.halo_blur;\n#endif\n#ifdef LIGHTING_3D_MODE\nv_emissive_strength=paint_properties.emissive_strength;\n#endif\nlowp float occlusion_opacity=paint_properties.occlusion_opacity;highp float z_offset=paint_properties.z_offset;\n#else\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\n#pragma mapbox: initialize lowp float emissive_strength\n#pragma mapbox: initialize lowp float occlusion_opacity\n#pragma mapbox: initialize highp float z_offset\n#endif\nvec2 a_pos=vec2(a_pos_offset.xy);vec2 a_offset=vec2(a_pos_offset.zw);vec2 a_tex=vec2(a_tex_size.xy);vec2 a_size=vec2(a_tex_size.zw);float a_size_min=floor(a_size[0]*0.5);float a_size_max= floor(a_size[1]*0.5);float a_apperance=a_size[1]-2.0*a_size_max;vec2 a_pxoffset=vec2(a_pixeloffset.xy);vec2 a_min_font_scale=vec2(a_pixeloffset.zw)/256.0;highp float segment_angle=-a_projected_pos[3];float size;if (a_apperance==USING_APPEARANCE) {size=a_size_max/128.0;} else if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size_max,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;}vec2 tile_anchor=a_pos;float e=u_elevation_from_sea ? z_offset : z_offset+elevation(tile_anchor);\n#ifdef Z_OFFSET\ne+=a_auto_z_offset;\n#endif\nvec3 h=elevationVector(tile_anchor)*e;float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;vec3 world_pos_globe;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos_globe=vec3(a_globe_anchor)+h;world_pos=mix_globe_mercator(world_pos_globe,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;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;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;vec2 a;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetprojected_point=u_matrix*vec4(vec3(a_globe_anchor)+displacement,1);vec4 projected_point_globe=u_matrix*vec4(world_pos_globe,1);a=projected_point_globe.xy/projected_point_globe.w;\n#else\noffsetprojected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);a=projected_point.xy/projected_point.w;\n#endif\nvec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\n#ifdef PROJECTED_POS_ON_VIEWPORT\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xyz+h,1.0);\n#else\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz,mercator_pos,u_zoom_transition)+h;projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0); \n#endif\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,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 TERRAIN\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\n#endif\n#ifdef Z_OFFSET\nz+=u_pitch_with_map ? a_auto_z_offset+z_offset : 0.0;\n#else\nz+=u_pitch_with_map ? z_offset : 0.0;\n#endif\nfloat occlusion_fade=globe_occlusion_fade;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float out_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));\n#ifdef DEPTH_OCCLUSION\nfloat depth_occlusion=occlusionFadeMultiSample(projected_point);float depth_occlusion_multplier=mix(occlusion_opacity,1.0,depth_occlusion);out_fade_opacity*=depth_occlusion_multplier;\n#endif\n#ifdef OCCLUSION_QUERIES\nfloat occludedFadeMultiplier=mix(occlusion_opacity,1.0,a_occlusion_query_opacity);out_fade_opacity*=occludedFadeMultiplier;\n#endif\n#ifdef Z_TEST_OCCLUSION\nout_fade_opacity*=occlusion_opacity;\n#endif\nfloat alpha=opacity*out_fade_opacity;float hidden=float(alpha==0.0 || projected_point.w <=0.0 || occlusion_fade==0.0);vec3 pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);pos=projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y;\n#else\n#ifdef ELEVATED_ROADS\nvec3 xAxis=vec3(a_x_axis.xy,a_x_axis.z*u_normal_scale);vec3 yAxis=vec3(a_y_axis.xy,a_y_axis.z*u_normal_scale);pos=projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y;\n#else\npos=vec3(projected_pos.xy/projected_pos.w+offset,z);\n#endif\n#endif\ngl_Position=mix(u_coord_matrix*vec4(pos,1.0),AWAY,hidden);
1\n#ifdef USE_PAINT_PROPERTIES_UBO\n{vec2 tr=paint_properties.translate;vec2 rotated_tr=vec2(\nu_spp_translate_rotation.x*tr.x-u_spp_translate_rotation.y*tr.y,u_spp_translate_rotation.y*tr.x+u_spp_translate_rotation.x*tr.y\n);gl_Position.xy+=(u_coord_matrix*vec4(rotated_tr,0.0,0.0)).xy;}\n#endif\nfloat gamma_scale=gl_Position.w;v_draw_halo=(u_is_halo && float(gl_InstanceID)==0.0) ? 1.0 : 0.0;v_gamma_scale_size_fade_opacity=vec3(gamma_scale,size,out_fade_opacity);v_tex_a=a_tex/u_texsize;\n#ifdef RENDER_TEXT_AND_SYMBOL\nis_sdf=a_size[0]-2.0*a_size_min;v_tex_a_icon=a_tex/u_texsize_icon;\n#endif\n#ifdef ICON_TRANSITION\nv_tex_b=vec2(a_texb)/u_texsize;\n#endif\n#ifdef RENDER_SHADOWS\nvec4 shd_pos=u_inv_matrix*vec4(pos,1.0);vec3 shd_pos0=shd_pos.xyz;vec3 shd_pos1=shd_pos.xyz;\n#ifdef NORMAL_OFFSET\nvec3 shd_pos_offset=shadow_normal_offset(vec3(0.0,0.0,1.0));shd_pos0+=shd_pos_offset*shadow_normal_offset_multiplier0();shd_pos1+=shd_pos_offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);v_depth=gl_Position.w;\n#endif\n#ifdef INDICATOR_CUTOUT\nv_z_offset=e;\n#else\n#ifdef RENDER_SHADOWS\nv_z_offset=e;\n#endif\n#endif\n}'),terrainRaster:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_shadow.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform sampler2D u_image0;\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\nuniform sampler2D u_image1;uniform float u_emissive_texture_available;\n#endif\nin vec2 v_pos0;\n#ifdef FOG\nin float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nin vec4 v_pos_light_view_0;in vec4 v_pos_light_view_1;\n#endif\nuniform vec3 u_ground_shadow_factor;void main() {vec4 image_color=texture(u_image0,v_pos0);vec4 color;\n#ifdef LIGHTING_3D_MODE\nconst vec3 normal=vec3(0.0,0.0,1.0);\n#ifdef RENDER_SHADOWS\nfloat cutoffOpacity=1.0;\n#ifdef RENDER_CUTOFF\ncutoffOpacity=cutoff_opacity(u_cutoff_params,1.0/gl_FragCoord.w);\n#endif\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\nfloat emissive_strength=u_emissive_texture_available > 0.5 ? texture(u_image1,v_pos0).r : image_color.a;vec3 unlit_base=image_color.rgb*(1.0-emissive_strength);vec3 emissive_base=image_color.rgb*emissive_strength;float ndotl=u_shadow_direction.z;float occlusion=ndotl < 0.0 ? 1.0 : shadow_occlusion(v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w,0.0);ndotl=max(0.0,ndotl);vec3 lit=apply_lighting(unlit_base,normal,mix(1.0,(1.0-(u_shadow_intensity*occlusion))*ndotl,cutoffOpacity));vec3 emissive=compute_emissive_draped(emissive_base,1.0-u_shadow_intensity,occlusion,u_ground_shadow_factor);color.rgb=lit+emissive;color.a=1.0;\n#else\nfloat lighting_factor=shadowed_light_factor_normal_unbiased(normal,v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w);color=apply_lighting(image_color,normal,mix(1.0,lighting_factor,cutoffOpacity));\n#endif\n#else\nfloat lighting_factor=u_lighting_directional_dir.z;color=apply_lighting(image_color,normal,lighting_factor);\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\nfloat emissive_strength=u_emissive_texture_available > 0.5 ? texture(u_image1,v_pos0).r : image_color.a;color.rgb=mix(color.rgb,image_color.rgb,emissive_strength);color.a=1.0;\n#endif\n#endif\n#else\ncolor=image_color;\n#endif\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#else\ncolor=fog_dither(fog_apply_from_vert(color,v_fog_opacity));\n#endif\n#endif\nglFragColor=color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\nuniform mat4 u_matrix;uniform float u_skirt_height;in ivec2 a_pos;out vec2 v_pos0;\n#ifdef FOG\nout float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out vec4 v_pos_light_view_0;out vec4 v_pos_light_view_1;\n#endif\nvoid main() {vec3 decomposedPosAndSkirt=decomposeToPosAndSkirt(a_pos);float skirt=decomposedPosAndSkirt.z;vec2 decodedPos=decomposedPosAndSkirt.xy;float elevation=elevation(decodedPos)-skirt*u_skirt_height;v_pos0=decodedPos/8192.0;gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\nv_fog_pos=fog_position(decodedPos);\n#else\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\n#endif\n#endif\n#ifdef RENDER_SHADOWS\nvec3 pos=vec3(decodedPos,elevation);v_pos_light_view_0=u_light_matrix_0*vec4(pos,1.);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1.);\n#endif\n}'),terrainDepth:xn("precision highp float;in float v_depth;void main() {glFragColor=pack_depth(v_depth);}",'#include "_prelude_terrain.vertex.glsl"\nuniform mat4 u_matrix;in ivec2 a_pos;out float v_depth;void main() {float elevation=elevation(vec2(a_pos));gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}'),skybox:xn('#include "_prelude_fog.fragment.glsl"\nin 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
1nd-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=texture(u_cubemap,uv).rgb;\n#ifdef FOG\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\n#endif\nsky_color+=0.1*sun_disk(v_uv,u_sun_direction);glFragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\n}',Zr),skyboxGradient:xn('#include "_prelude_fog.fragment.glsl"\nin 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=texture(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;glFragColor=color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\n}',Zr),skyboxCapture:xn
vendor: 3,689 bytes, line 1
1("\nin 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;precision highp float;\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;glFragColor=vec4(color,1.0);}","in highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;out 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;
1v_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:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform sampler2D u_image0;\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\nuniform sampler2D u_image1;uniform float u_emissive_texture_available;\n#endif\nuniform float u_far_z_cutoff;in vec2 v_pos0;\n#ifndef FOG\nuniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform vec2 u_viewport;\n#endif\nvoid main() {vec4 color;\n#ifdef CUSTOM_ANTIALIASING\nhighp vec2 uv=gl_FragCoord.xy/u_viewport;\n#ifdef FLIP_Y\nuv.y=1.0-uv.y;\n#endif\nhighp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float norm_dist_from_center=1.0-length(closest_point-u_globe_pos)/u_globe_radius;const float antialias_pixel=2.0;highp float antialias_factor=antialias_pixel*fwidth(norm_dist_from_center);highp float antialias=smoothstep(0.0,antialias_factor,norm_dist_from_center);vec4 raster=texture(u_image0,v_pos0);\n#ifdef LIGHTING_3D_MODE\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\nfloat emissive_strength=u_emissive_texture_available > 0.5 ? texture(u_image1,v_pos0).r : raster.a;raster=apply_lighting_with_emission_ground(raster,emissive_strength);color=vec4(clamp(raster.rgb,vec3(0),vec3(1))*antialias,antialias);\n#else\nraster=apply_lighting_ground(raster);color=vec4(raster.rgb*antialias,raster.a*antialias);\n#endif\n#else\ncolor=vec4(raster.rgb*antialias,raster.a*antialias);\n#endif\n#else\ncolor=texture(u_image0,v_pos0);\n#ifdef LIGHTING_3D_MODE\n#ifdef LIGHTING_3D_ALPHA_EMISSIVENESS\nfloat emissive_strength=u_emissive_texture_available > 0.5 ? texture(u_image1,v_pos0).r : color.a;color=apply_lighting_with_emission_ground(color,emissive_strength);color.a=1.0;\n#else\ncolor=apply_lighting_ground(color);\n#endif\n#endif\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ncolor*=1.0-step(u_far_z_cutoff,1.0/gl_FragCoord.w);glFragColor=color;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_terrain.vertex.glsl"\nuniform mat4 u_proj_matrix;uniform mat4 u_normalize_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;uniform float u_skirt_height;\n#ifdef GLOBE_POLES\nin vec3 a_globe_pos;in vec2 a_uv;\n#else\nin ivec2 a_pos;\n#endif\nout vec2 v_pos0;void main() {\n#ifdef GLOBE_POLES\nvec3 globe_pos=a_globe_pos;vec2 uv=a_uv;\n#else\nfloat tiles=u_grid_matrix[0][2];float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];vec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=mercatorX*tiles-idx;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY);\n#endif\nv_pos0=uv;vec2 tile_pos=uv*EXTENT;vec3 globe_derived_up_vector=normalize(globe_pos)*u_tile_up_scale;\n#ifdef GLOBE_POLES\nvec3 up_vector=globe_derived_up_vector;\n#else\nvec3 up_vector=elevationVector(tile_pos);\n#endif\nfloat height=elevation(tile_pos);globe_pos+=up_vector*height;\n#ifndef GLOBE_POLES\nglobe_pos-=globe_derived_up_vector*u_skirt_height*decomposed_pos_and_skirt.z;\n#endif\n#ifdef GLOBE_POLES\nvec4 interpolated_pos=u_globe_matrix*vec4(globe_pos,1.0);\n#else\nvec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {merc_world_pos=vec4(merc_pos,height-u_skirt_height*decomposed_pos_and_skirt.z,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition),1.0);\n#endif\ngl_Position=u_proj_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n}'),globeAtmosphere:xn('#include "_prelude_fog.fragment.glsl"\nuniform float u_transition;uniform highp float u_fadeout_range;uniform highp float u_temporal_offset;uniform vec4 u_atmosphere_fog_color;uniform vec4 u_high_color;uniform vec4 u_space_color;uniform float u_horizon_angle;in highp vec3 v_ray_dir;in highp vec3 v_horizon_dir;void main() {highp vec3 dir=normalize(v_ray_dir);float globe_pos_dot_dir;\n#ifdef PROJECTION_GLOBE_VIEW\nglobe_pos_dot_dir=dot(u_globe_pos,dir);highp vec3 closest_point_forward=abs(globe_pos_dot_dir)*dir;float norm_dist_from_center=length(closest_point_forward-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 0.98) {\n#ifdef ALPHA_PASS\nglFragColor=vec4(0,0,0,0);return;\n#else\n#ifdef NATIVE\nglFragColor=vec4(1,1,1,1);\n#else\nglFragColor=vec4(0,0,0,1);\n#endif\nreturn;\n#endif\n}\n#endif\nhighp vec3 horizon_dir=normalize(v_horizon_dir);float horizon_angle_mercator=dir.y < horizon_dir.y ?\n0.0 : max(acos(clamp(dot(dir,horizon_dir),-1.0,1.0)),0.0);float horizon_angle;\n#ifdef PROJECTION_GLOBE_VIEW\nhighp vec3 closest_point=globe_pos_dot_dir*dir;highp float closest_point_to_center=length(closest_point-u_globe_pos);highp float theta=asin(clamp(closest_point_to_center/length(u_globe_pos),-1.0,1.0));horizon_angle=globe_pos_dot_dir < 0.0 ?\nPI-theta-u_horizon_angle : theta-u_horizon_angle;float angle_t=pow(u_transition,10.0);horizon_angle=mix(horizon_angle,horizon_angle_mercator,angle_t);\n#else\nhorizon_angle=horizon_angle_mercator;\n#endif\nhorizon_angle/=PI;float t=exp(-horizon_angle/u_fadeout_range);float alpha_0=u_atmosphere_fog_color.a;float alpha_1=u_high_color.a;float alpha_2=u_space_color.a;vec3 color_stop_0=u_atmosphere_fog_color.rgb;vec3 color_stop_1=u_high_color.rgb;
1vec3 color_stop_2=u_space_color.rgb;\n#ifdef ALPHA_PASS\nfloat a0=mix(alpha_2,1.0,alpha_1);float a1=mix(a0,1.0,alpha_0);float a2=mix(a0,a1,t);float a =mix(alpha_2,a2,t);glFragColor=vec4(1.0,1.0,1.0,a);\n#else\nvec3 c0=mix(color_stop_2,color_stop_1,alpha_1);vec3 c1=mix(c0,color_stop_0,alpha_0);vec3 c2=mix(c0,c1,t);vec3 c=c2;glFragColor=vec4(c*t,t);\n#endif\n}',"in vec3 a_pos;in vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;uniform float u_horizon;out highp vec3 v_ray_dir;out highp vec3 v_horizon_dir;void main() {v_ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);v_horizon_dir=mix(\nmix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}"),stars:xn("in highp vec2 v_uv;in mediump float v_intensity;float shapeCircle(in vec2 uv)\n{float beginFade=0.6;float lengthFromCenter=length(v_uv);return 1.0-clamp((lengthFromCenter-beginFade)/(1.0-beginFade),0.0,1.0);}void main() {float alpha=shapeCircle(v_uv);vec3 color=vec3(1.0,1.0,1.0);alpha*=v_intensity;glFragColor=vec4(color*alpha,alpha);HANDLE_WIREFRAME_DEBUG;}","\nin vec3 a_pos_3f;in vec2 a_uv;in float a_size_scale;in float a_opacity;uniform mat4 u_matrix;uniform vec3 u_up;uniform vec3 u_right;uniform float u_intensity_multiplier;out highp vec2 v_uv;out mediump float v_intensity;void main() {v_uv=a_uv;v_intensity=a_opacity*u_intensity_multiplier;vec3 pos=a_pos_3f;pos+=a_uv.x*u_right*a_size_scale;pos+=a_uv.y*u_up*a_size_scale;gl_Position=u_matrix*vec4(pos,1.0);}"),occlusion:xn("uniform vec4 u_color;void main() {glFragColor=u_color;}",'#include "_prelude_terrain.vertex.glsl"\nin highp vec2 a_offset_xy;uniform highp vec3 u_anchorPos;uniform mat4 u_matrix;uniform vec2 u_screenSizePx;uniform vec2 u_occluderSizePx;void main() {vec3 world_pos=u_anchorPos;\n#ifdef TERRAIN\nfloat e=elevation(world_pos.xy);world_pos.z+=e;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1.0);projected_point.xy+=projected_point.w*a_offset_xy*0.5*u_occluderSizePx/u_screenSizePx;gl_Position=projected_point;}')};function _n(e,t){const i=e.split("\n");for(let r of i){if(r=r.trimStart(),"#"!==r[0])continue;if(!r.includes("if"))continue;if(r.startsWith("#endif"))continue;const e=r.match(sn);if(e)for(const i of e)an.has(i)||t.add(i)}}function yn(e){return new Set(["uint","int","uvec2","ivec2","uvec3","ivec3","uvec4","ivec4"]).has(e)}function xn(e,t){const i=new Set,r=[],n=[];e=e.replace(nn,(e,t)=>(n.push(t),"")),t=t.replace(nn,(e,t)=>(r.push(t),""));let o=new Set(ln);_n(e,o),_n(t,o);for(const s of[...r,...n])hn[s]||(hn[s]=new Set,_n(cn[s],hn[s])),o=new Set([...o,...hn[s]]);return{fragmentSource:e=e.replace(on,(e,t,r,n,o)=>(i.add(o),"define"===t?`\n#ifndef HAS_UNIFORM_u_${o}\n${yn(n)?"flat ":""}in ${r} ${n} ${o};\n#else\nuniform ${r} ${n} u_${o};\n#endif\n`:"initialize"===t?`\n#ifdef HAS_UNIFORM_u_${o}\n ${r} ${n} ${o} = u_${o};\n#endif\n`:"define-attribute"===t?`\n#ifdef HAS_ATTRIBUTE_a_${o}\n in ${r} ${n} ${o};\n#endif\n`:"initialize-attribute"===t?"":void 0)),vertexSource:t=t.replace(on,(e,t,r,n,o)=>{const s=`MATERIAL_ATTRIBUTE_OFFSET_${o}`,a="float"===n?"vec2":n,l=`GET_ATTRIBUTE_${a}(a_${o}, materialInfo, ${s})`,c=o.includes("color")?"color":a;return"define-attribute-vertex-shader-only"===t?`\n#ifdef HAS_ATTRIBUTE_a_${o}\nin ${r} ${n} a_${o};\n#endif\n`:i.has(o)?"define"===t?`\n#ifndef HAS_UNIFORM_u_${o}\nuniform lowp float u_${o}_t;\n #if !defined(${s})\n in ${r} ${a} a_${o};\n #endif\n${yn(n)?"flat ":""}out ${r} ${n} ${o};\n#else\nuniform ${r} ${n} u_${o};\n#endif\n`:"initialize"===t?"vec4"===c||"uvec4"===c?`\n#ifndef HAS_UNIFORM_u_${o}\n ${o} = a_${o};\n#else\n ${r} ${n} ${o} = u_${o};\n#endif\n`:`\n#if !defined(HAS_UNIFORM_u_${o})\n #ifdef ${s}\n ${o} = unpack_mix_${c}(${l}, u_${o}_t);\n #else\n ${o} = unpack_mix_${c}(a_${o}, u_${o}_t);\n #endif\n#else\n ${r} ${n} ${o} = u_${o};\n#endif\n`:"define-attribute"===t?`\n#ifdef HAS_ATTRIBUTE_a_${o}\n in ${r} ${n} a_${o};\n out ${r} ${n} ${o};\n#endif\n`:"initialize-attribute"===t?`\n#ifdef HAS_ATTRIBUTE_a_${o}\n ${o} = a_${o};\n#endif\n`:void 0:"define"===t?`\n#ifndef HAS_UNIFORM_u_${o}\nuniform lowp float u_${o}_t;\n #if !defined(${s})\n in ${r} ${a} a_${o};\n #endif\n#else\nuniform ${r} ${n} u_${o};\n#endif\n`:"define-instanced"===t?"mat4"===c?`\n#ifdef INSTANCED_ARRAYS\nin vec4 a_${o}0;\nin vec4 a_${o}1;\nin vec4 a_${o}2;\nin vec4 a_${o}3;\n#else\nuniform ${r} ${n} u_${o};\n#endif\n`:`\n#ifdef INSTANCED_ARRAYS\nin ${r} ${a} a_${o};\n#else\nuniform ${r} ${n} u_${o};\n#endif\n`:"initialize-attribute-custom"===t?`\n#ifdef HAS_ATTRIBUTE_a_${o}\n ${r} ${n} ${o} = a_${o};\n#endif\n`:"vec4"===c||"uvec4"===c?`\n#ifndef HAS_UNIFORM_u_${o}\n #ifdef ${s}\n ${r} ${n} ${o} = ${l};\n #else\n ${r} ${n} ${o} = a_${o};\n #endif\n#else\n ${r} ${n} ${o} = u_${o};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${o}\n #ifdef ${s}\n ${r} ${n} ${o} = unpack_mix_${c}(${l}, u_${o}_t);\n #else\n ${r} ${n} ${o} = unpack_mix_${c}(a_${o}, u_${o}_t);\n #endif\n#else\n ${r} ${n} ${o} = u_${o};\n#endif\n`}),usedDefines:o,vertexIncludes:r,fragmentIncludes:n}}cn["_prelude_raster_particle.glsl"]||(cn["_prelude_raster_particle.glsl"]=Gr);var vn={building:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_shadow.fragment.glsl"\n#include "_prelude_lighting.glsl"\nconst float window_depth=0.5;const float ao_radius=0.2;in vec4 v_color;in highp vec3 v_normal;in highp vec3 v_pos;\n#ifdef RENDER_FRONT_CUTOFF\nin float v_front_cutoff_opacity;\n#endif\n#ifdef INDICATOR_CUTOUT\n#ifdef FEATURE_CUTOUT\nin vec4 v_ground_roof;\n#endif\n#endif\n#ifdef BUILDING_FAUX_FACADE\nin lowp float v_faux_facade;in highp float v_faux_facade_ed;in highp vec2 v_faux_facade_window;in highp vec2 v_faux_facade_floor;in highp vec2 v_faux_facade_range;in highp float v_aspect;in highp vec3 v_tbn_0;in highp vec3 v_tbn_1;in highp vec3 v_tbn_2;in highp vec4 v_faux_color_emissive;uniform float u_faux_facade_ao_intensity;\n#endif\n#ifdef RENDER_SHADOWS\nin highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;
1\n#endif\n#ifdef FLOOD_LIGHT\nin highp float v_flood_radius;in float v_has_flood_light;\n#endif\nuniform lowp float u_opacity;uniform vec3 u_camera_pos;uniform highp float u_tile_to_meter;uniform float u_facade_emissive_chance;uniform vec3 u_flood_light_color;uniform float u_flood_light_intensity;vec3 linearTosRGB(in vec3 color) {return pow(color,vec3(1./2.2));}\n#ifdef BUILDING_FAUX_FACADE\nhighp float hash12(in highp vec2 p) {highp vec3 p3 =fract(vec3(p.xyx)*0.1031);p3+=dot(p3,p3.yzx+33.33);return fract((p3.x+p3.y)*p3.z);}float min3(in vec3 v) {return min(min(v.x,v.y),v.z);}highp vec2 get_uv_mask_id(in highp vec2 q,out highp float mask,out highp vec2 id) {highp vec2 p=q;mask=step(v_faux_facade_range.x,p.y)*step(p.y,v_faux_facade_range.y);p.y=p.y-v_faux_facade_range.x;highp vec2 uv=modf(p/v_faux_facade_floor,id);highp vec4 d=(v_faux_facade_floor.xyxy+vec4(-v_faux_facade_window,v_faux_facade_window))*0.5;highp vec4 edge=d/v_faux_facade_floor.xyxy;highp vec2 m=step(edge.xy,uv)*step(uv,edge.zw);mask*=m.x*m.y;uv-=vec2(0.5);uv*=vec2(0.5)/(vec2(0.5)-edge.xy);uv+=vec2(0.5);return uv;}highp float ray_unit_box(in highp vec3 ray_o,in highp vec3 ray_d,in highp vec3 bmin,in highp vec3 bmax) {highp vec3 planes=mix(bmin,bmax,step(0.0,ray_d));highp vec3 t=(planes-ray_o)/ray_d;return min3(t);}float get_emissive(in vec2 id) {if (u_facade_emissive_chance > 0.0) {return (step(hash12(id),u_facade_emissive_chance)+0.05)*v_faux_color_emissive.a;}return 0.0;}vec3 get_shade_info(in highp vec3 v,in highp vec3 v_normalized,in vec3 color,in vec2 id,in mat3 tbn,inout vec3 out_normal,inout float out_emissive) {vec3 out_color=color;highp vec3 abs_v=abs(v_normalized);bool x_major=abs_v.x >=abs_v.y && abs_v.x >=abs_v.z;bool y_major=abs_v.y >=abs_v.x && abs_v.y >=abs_v.z;bool z_major=abs_v.z >=abs_v.x && abs_v.z >=abs_v.y;\n#if 0\nif (x_major) {out_color=v.x > 0.0 ? vec3(1.0,0.0,0.0) : vec3(0.0,1.0,1.0);} else if (y_major) {out_color=v.y > 0.0 ? vec3(0.0,1.0,0.0) : vec3(1.0,0.0,1.0);} else if (z_major) {out_color=v.z > 0.0 ? vec3(0.0,0.0,1.0) : vec3(1.0,1.0,0.0);}out_emissive=1.0;\n#else\nif (x_major) {out_normal=-sign(v.x)*tbn[0];} else if (y_major) {out_normal=vec3(0.0,0.0,-sign(v.y));} else if (z_major) {out_color=v_faux_color_emissive.rgb;out_emissive=v.z <=0.0 ? get_emissive(id) : out_emissive;}float ao=1.0;if (u_faux_facade_ao_intensity > 0.0) {vec4 ao_range=v_faux_facade_window.xxyy*0.5-vec4(0,ao_radius,0,ao_radius);vec2 ao_range_z=vec2(window_depth*0.5)-vec2(0.0,ao_radius);if (x_major || y_major) {ao*=smoothstep(-ao_range_z.x,-ao_range_z.y,v.z);} else if (z_major) {ao*=smoothstep(-ao_range.x,-ao_range.y,v.x)*(1.0-smoothstep(ao_range.y,ao_range.x,v.x));ao*=smoothstep(-ao_range.z,-ao_range.w,v.y)*(1.0-smoothstep(ao_range.w,ao_range.z,v.y));}ao=mix(1.0,min(1.0,ao+0.25),u_faux_facade_ao_intensity);}out_color*=ao;\n#endif\nreturn out_color;}\n#endif\nvec3 apply_lighting_linear(in vec3 color,in vec3 normal,in float dir_factor) {float ambient_directional_factor=calculate_ambient_directional_factor(normal);vec3 ambient_contrib=ambient_directional_factor*u_lighting_ambient_color;vec3 directional_contrib=u_lighting_directional_color*dir_factor;return color*(ambient_contrib+directional_contrib);}void main() {vec3 normal=normalize(v_normal);vec3 base_color=v_color.rgb;float emissive=v_color.a;\n#ifdef BUILDING_FAUX_FACADE\nif (v_faux_facade > 0.0) {highp mat3 tbn=mat3(v_tbn_0,v_tbn_1,v_tbn_2);highp vec3 v=vec3(v_pos.xy,v_pos.z/u_tile_to_meter)-u_camera_pos;highp vec3 view_tangent=transpose(tbn)*v;highp vec2 q=vec2(v_faux_facade_ed,v_pos.z);float mask=0.0;vec2 id=vec2(0.0);highp vec2 uv=get_uv_mask_id(q,mask,id);uv*=v_faux_facade_window;highp vec3 bmin=vec3(0.0,0.0,-window_depth);highp vec3 bmax=bmin+vec3(v_faux_facade_window,window_depth);highp vec3 ray_o=vec3(uv,0.0);highp vec3 ray_d=normalize(view_tangent);highp float t_min=ray_unit_box(ray_o,ray_d,bmin,bmax);highp vec3 hit=ray_o+t_min*ray_d;highp vec3 r=vec3(v_faux_facade_window,-window_depth);hit-=r*0.5;highp vec3 normalized=hit/r;vec3 out_normal=normal;float out_emissive=emissive;vec3 room_color=get_shade_info(hit,normalized,base_color,id,tbn,out_normal,out_emissive);base_color=mix(base_color,room_color,mask);normal=mix(normal,out_normal,mask);emissive=mix(emissive,out_emissive,mask);}\n#endif\nvec4 color=vec4(base_color,1.0);vec3 xy_flipped_normal=vec3(-normal.xy,normal.z);float shadowed_lighting_factor=0.0;\n#ifdef RENDER_SHADOWS\n#ifdef RENDER_CUTOFF\nshadowed_lighting_factor=shadowed_light_factor_normal_opacity(xy_flipped_normal,v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w,v_cutoff_opacity);if (v_cutoff_opacity==0.0) {discard;}\n#else\nshadowed_lighting_factor=shadowed_light_factor_normal(xy_flipped_normal,v_pos_light_view_0,v_pos_light_view_1,1.0/gl_FragCoord.w);\n#endif\n#else\nshadowed_lighting_factor=max(0.0,dot(xy_flipped_normal,u_lighting_directional_dir));\n#endif\ncolor.rgb=apply_lighting_linear(color.rgb,xy_flipped_normal,shadowed_lighting_factor);color.rgb=linearTosRGB(color.rgb);\n#ifdef FLOOD_LIGHT\nfloat flood_radiance=(1.0-min(v_pos.z/v_flood_radiu
1s,1.0))*u_flood_light_intensity*v_has_flood_light;color.rgb=mix(color.rgb,u_flood_light_color,flood_radiance);\n#endif\ncolor.rgb=mix(color.rgb,linearTosRGB(base_color.rgb),emissive);\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos,v_pos.z));\n#endif\ncolor*=u_opacity;\n#ifdef INDICATOR_CUTOUT\n#ifdef FEATURE_CUTOUT\n{float ditherOpacity=cutoutGroundRoofOpacity(v_ground_roof);if (ditherOpacity < 1.0) {int index=(int(gl_FragCoord.x) % 4)*4+(int(gl_FragCoord.y) % 4);if (ditherOpacity < DITHER_THRESHOLDS[index]) {discard;}}}\n#else\ncolor=applyCutout(color,v_pos.z);\n#endif\n#endif\n#ifdef RENDER_FRONT_CUTOFF\nif (v_front_cutoff_opacity < 1.0) {int index=(int(gl_FragCoord.x) % 4)*4+(int(gl_FragCoord.y) % 4);if (v_front_cutoff_opacity < DITHER_THRESHOLDS[index]) {discard;}}\n#endif\n#ifdef FEATURE_CUTOUT\ncolor=apply_feature_cutout(color,gl_FragCoord,get_cutout_factors(gl_FragCoord).x);\n#endif\nglFragColor=color;\n#ifdef DEBUG_SHOW_NORMALS\ncolor.rgb=xy_flipped_normal*0.5+vec3(0.5,0.5,0.5);color.a=1.0;glFragColor=color;\n#endif\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\nin vec3 a_pos_3f;in ivec4 a_normal_3;in ivec4 a_centroid_3;\n#ifdef FLOOD_LIGHT\nin int a_flood_light_wall_radius_1i16;\n#endif\n#ifdef BUILDING_FAUX_FACADE\nin uvec4 a_faux_facade_data;in uvec2 a_faux_facade_vertical_range;\n#endif\nuniform mat4 u_matrix;uniform mat4 u_normal_matrix;uniform highp float u_tile_to_meter;\n#ifdef RENDER_FRONT_CUTOFF\nuniform vec3 u_front_cutoff_params;out float v_front_cutoff_opacity;\n#endif\n#ifdef INDICATOR_CUTOUT\n#ifdef FEATURE_CUTOUT\nout vec4 v_ground_roof;\n#endif\n#endif\nout vec4 v_color;out vec3 v_normal;out highp vec3 v_pos;\n#ifdef BUILDING_FAUX_FACADE\nout lowp float v_faux_facade;out highp float v_faux_facade_ed;out highp vec2 v_faux_facade_window;out highp vec2 v_faux_facade_floor;out highp vec2 v_faux_facade_range;out highp float v_aspect;out highp vec3 v_tbn_0;out highp vec3 v_tbn_1;out highp vec3 v_tbn_2;out highp vec4 v_faux_color_emissive;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;\n#endif\n#ifdef FLOOD_LIGHT\nout highp float v_flood_radius;out float v_has_flood_light;\n#endif\nconst float MAX_UINT_16=65535.0;const float MAX_INT_16=32767.0;const float MAX_UINT_8=255.0;const float TWO_POW_8=256.0;const float FLOOD_LIGHT_MAX_RADIUS_METER=2048.0;vec3 sRGBToLinear(vec3 srgbIn) {return pow(srgbIn,vec3(2.2));}\n#ifdef BUILDING_FAUX_FACADE\nmat3 get_tbn(in vec3 normal) {const vec3 bitangent=vec3(0.0,0.0,1.0);vec3 tangent=normalize(vec3(normal.y,-normal.x,0.0));return mat3(tangent,bitangent,normal);}\n#endif\n#pragma mapbox: define-attribute-vertex-shader-only highp uvec2 part_color_emissive\n#pragma mapbox: define-attribute-vertex-shader-only highp uvec2 faux_facade_color_emissive\nvoid main() {\n#pragma mapbox: initialize-attribute-custom highp uvec2 part_color_emissive\n#pragma mapbox: initialize-attribute-custom highp uvec2 faux_facade_color_emissive\n#ifdef FLOOD_LIGHT\nv_flood_radius=(float(a_flood_light_wall_radius_1i16)/MAX_INT_16*FLOOD_LIGHT_MAX_RADIUS_METER);v_has_flood_light=step(0.0,v_flood_radius);\n#endif\nvec4 color_emissive=decode_color(vec2(part_color_emissive));v_color=vec4(sRGBToLinear(color_emissive.rgb),color_emissive.a);vec3 a_normal_3f=vec3(a_normal_3)/MAX_INT_16;v_normal=vec3(u_normal_matrix*vec4(a_normal_3f,0.0));float hidden=0.0;float depth_offset=0.0;vec2 centroid_xy=vec2(a_centroid_3.xy >> 2);vec2 spanBits=vec2(a_centroid_3.xy & 3);\n#ifdef BUILDING_FAUX_FACADE\nvec4 faux_facade_data=vec4(a_faux_facade_data);v_faux_facade=faux_facade_data.x;if (v_faux_facade > 0.0) {v_faux_facade_ed=faux_facade_data.x *u_tile_to_meter;float window_x_perc=floor(faux_facade_data.y/TWO_POW_8);float window_y_perc=faux_facade_data.y-TWO_POW_8*window_x_perc;vec2 window_perc=vec2(window_x_perc,window_y_perc)/MAX_UINT_8;v_faux_facade_floor=(faux_facade_data.zw/MAX_UINT_16*EXTENT)*u_tile_to_meter;v_faux_facade_window=window_perc*v_faux_facade_floor;v_faux_facade_range=(vec2(a_faux_facade_vertical_range)/MAX_UINT_16*EXTENT)*u_tile_to_meter;v_aspect=v_faux_facade_window.x/v_faux_facade_window.y;mat3 tbn=get_tbn(normalize(v_normal));v_tbn_0=tbn[0];v_tbn_1=tbn[1];v_tbn_2=tbn[2];v_faux_color_emissive=decode_color(vec2(faux_facade_color_emissive));v_faux_color_emissive.rgb=sRGBToLinear(v_faux_color_emissive.rgb);depth_offset=min(1000.0,float(a_centroid_3.z))*0.0000002;}\n#endif\nv_pos=a_pos_3f;\n#if defined(RENDER_CUTOFF) || defined(RENDER_FRONT_CUTOFF)\nfloat halfSpanX=spanBits.x*10.0/u_tile_to_meter;float halfSpanY=spanBits.y*10.0/u_tile_to_meter;
1vec2 screenUpInTile=vec2(u_matrix[0][1],u_matrix[1][1]);vec2 spanOffset=vec2(halfSpanX,halfSpanY)*sign(screenUpInTile);vec2 cutoff_highestCorner=centroid_xy+spanOffset;vec2 cutoff_lowestCorner=centroid_xy-spanOffset;\n#endif\n#if defined(RENDER_CUTOFF) || defined(RENDER_FRONT_CUTOFF)\nvec4 ground=u_matrix*vec4(centroid_xy,0.0,1.0);\n#endif\n#ifdef RENDER_CUTOFF\nv_cutoff_opacity=cutoff_opacity(u_cutoff_params,ground.z);hidden=float(v_cutoff_opacity==0.0);v_pos.z*=v_cutoff_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nvec3 shadow_pos=v_pos;\n#ifdef NORMAL_OFFSET\nvec3 offset=shadow_normal_offset_model(v_normal);shadow_pos+=offset*shadow_normal_offset_multiplier0();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shadow_pos,1.0);v_pos_light_view_1=u_light_matrix_1*vec4(shadow_pos,1.0);\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(v_pos);\n#endif\n#ifdef RENDER_FRONT_CUTOFF\nv_front_cutoff_opacity=1.0;{hidden=max(hidden,float(ground.w <=0.0));float ndc_y=ground.y/max(ground.w,0.001);float threshold=u_front_cutoff_params.x*2.0-1.0;float range_ndc=u_front_cutoff_params.y*2.0;hidden=max(hidden,float(ndc_y < threshold-range_ndc));float t=clamp((ndc_y-(threshold-range_ndc))/max(range_ndc,0.001),0.0,1.0);v_front_cutoff_opacity=mix(u_front_cutoff_params.z,1.0,t);}\n#endif\ngl_Position=mix(u_matrix*vec4(v_pos,1),AWAY,hidden);gl_Position.z-=depth_offset*gl_Position.w;\n#ifdef INDICATOR_CUTOUT\n#ifdef FEATURE_CUTOUT\nvec4 ic_ground=u_matrix*vec4(v_pos.xy,0.0,1.0);vec4 ic_roof=u_matrix*vec4(v_pos.xy,v_pos.z,1.0);v_ground_roof=vec4(ic_ground.xy/ic_ground.w,ic_roof.xy/ic_roof.w);\n#endif\n#endif\n}'),buildingBloom:xn("in vec4 v_color_emissive;\n#pragma mapbox: define-attribute highp vec4 bloom_attenuation\n#pragma mapbox: initialize-attribute highp vec4 bloom_attenuation\nfloat saturate(float val) {return clamp(val,0.0,1.0);}void main() {float emission=v_color_emissive.a;float opacity=1.0;\n#ifdef HAS_ATTRIBUTE_a_bloom_attenuation\nfloat distance=length(vec2(1.3*max(0.0,abs(bloom_attenuation.x)-bloom_attenuation.z),bloom_attenuation.y));distance+= mix(0.5,0.0,clamp(emission-1.0,0.0,1.0));opacity*=saturate(1.0-distance*distance);\n#endif\n#ifdef RENDER_CUTOFF\nopacity*=v_cutoff_opacity;\n#endif\nglFragColor=vec4(v_color_emissive.rgb,1.0)*opacity;}","in vec3 a_pos_3f;\n#pragma mapbox: define-attribute-vertex-shader-only highp uvec2 part_color_emissive\n#pragma mapbox: define-attribute highp vec4 bloom_attenuation\nout vec4 v_color_emissive;uniform mat4 u_matrix;vec3 sRGBToLinear(vec3 srgbIn) {return pow(srgbIn,vec3(2.2));}void main() {\n#pragma mapbox: initialize-attribute-custom highp uvec2 part_color_emissive\n#pragma mapbox: initialize-attribute highp vec4 bloom_attenuation\n#ifdef HAS_ATTRIBUTE_a_part_color_emissive\nvec4 color_emissive=decode_color(vec2(part_color_emissive));float part_emissive=color_emissive.a*5.0;v_color_emissive=vec4(sRGBToLinear(color_emissive.rgb),part_emissive);\n#else\nv_color_emissive=vec4(1.0);\n#endif\ngl_Position=u_matrix*vec4(a_pos_3f,1.0);\n#ifdef RENDER_CUTOFF\nv_cutoff_opacity=cutoff_opacity(u_cutoff_params,gl_Position.z);\n#endif\n}"),buildingDepth:xn("void main() {}","in vec3 a_pos_3f;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos_3f,1.0);}"),rasterParticle:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform float u_fade_t;uniform float u_opacity;uniform highp float u_raster_elevation;in vec2 v_pos0;in vec2 v_pos1;uniform sampler2D u_image0;uniform sampler2D u_image1;void main() {vec4 color0,color1,color;color0=texture(u_image0,v_pos0);color1=texture(u_image1,v_pos1);if (color0.a > 0.0) color0.rgb/=color0.a;if (color1.a > 0.0) color1.rgb/=color1.a;color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 out_color=color.rgb;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting_with_emission_ground(vec4(out_color,1.0),1.0).rgb;\n#endif\n#ifdef FOG\nhighp float fog_limit_high_meters=1000000.0;highp float fog_limit_low_meters=600000.0;float fog_limit=1.0-smoothstep(fog_limit_low_meters,fog_limit_high_meters,u_raster_elevation);out_color=fog_dither(fog_apply(out_color,v_fog_pos,fog_limit));\n#endif\nglFragColor=vec4(out_color*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);
1\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\nuniform mat4 u_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform mat3 u_grid_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_raster_elevation;uniform float u_zoom_transition;uniform vec2 u_merc_center;\n#define GLOBE_UPSCALE GLOBE_RADIUS/6371008.8\nin ivec2 a_pos;in uvec2 a_texture_pos;out vec2 v_pos0;out vec2 v_pos1;void main() {float w=1.0;vec2 uv;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float mercatorX=mercatorXfromLng(latLng[1]);float tiles=u_grid_matrix[0][2];float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];float uvX=mercatorX*tiles-idx;float uvY=mercatorY*tiles-idy;uv=vec2(uvX,uvY);vec3 globe_pos=latLngToECEF(latLng.xy);globe_pos+=normalize(globe_pos)*u_raster_elevation*GLOBE_UPSCALE;vec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {vec2 merc_pos=vec2(mercatorX,mercatorY);merc_world_pos=vec4(merc_pos,u_raster_elevation,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition)*w,w);gl_Position=u_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n#else\nuv=vec2(a_texture_pos)/8192.0;gl_Position=u_matrix*vec4(vec2(a_pos)*w,u_raster_elevation*w,w);\n#ifdef FOG\nv_fog_pos=fog_position(vec2(a_pos));\n#endif\n#endif\nv_pos0=uv;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}'),rasterParticleDraw:xn("uniform sampler2D u_color_ramp;in float v_particle_speed;void main() {glFragColor=texture(u_color_ramp,vec2(v_particle_speed,0.5));}",'#include "_prelude_raster_particle.glsl"\nin int a_index;uniform sampler2D u_particle_texture;uniform float u_particle_texture_side_len;uniform vec2 u_tile_offset;out float v_particle_speed;void main() {ivec2 pixel_coord=ivec2(\nmod(float(a_index),u_particle_texture_side_len),float(a_index)/u_particle_texture_side_len);vec4 pixel=texelFetch(u_particle_texture,pixel_coord,0);vec2 pos=unpack_pos_from_rgba(pixel)+u_tile_offset;vec2 tex_coord=fract(pos);vec2 velocity=lookup_velocity(tex_coord);if (velocity==INVALID_VELOCITY) {gl_Position=AWAY;v_particle_speed=0.0;} else {gl_Position=vec4(2.0*pos-1.0,0,1);v_particle_speed=length(velocity);}gl_PointSize=1.0;}'),rasterParticleTexture:xn("uniform sampler2D u_texture;uniform float u_opacity;in vec2 v_tex_pos;void main() {vec4 color=texture(u_texture,v_tex_pos);glFragColor=vec4(floor(255.0*color*u_opacity)/255.0);}","in ivec2 a_pos;out vec2 v_tex_pos;void main() {vec2 uv=0.5*vec2(a_pos)+vec2(0.5);v_tex_pos=uv;gl_Position=vec4(a_pos,0.0,1.0);}"),rasterParticleUpdate:xn('#include "_prelude_raster_particle.glsl"\nuniform sampler2D u_particle_texture;uniform mediump float u_particle_texture_side_len;uniform mediump float u_speed_factor;uniform highp float u_reset_rate;uniform highp float u_rand_seed;in highp vec2 v_tex_coord;vec2 linearstep(vec2 edge0,vec2 edge1,vec2 x) {return clamp((x-edge0)/(edge1-edge0),vec2(0),vec2(1));}const highp vec3 rand_constants=vec3(12.9898,78.233,4375.85453);highp float rand(const highp vec2 co) {highp float t=dot(rand_constants.xy,co);return fract(sin(t)*(rand_constants.z+t));}void main() {ivec2 pixel_coord=ivec2(v_tex_coord*u_particle_texture_side_len);highp vec4 pixel=texelFetch(u_particle_texture,pixel_coord,0);highp vec2 pos=unpack_pos_from_rgba(pixel);highp vec2 velocity=lookup_velocity(clamp(pos,0.0,1.0));highp vec2 dp=velocity==INVALID_VELOCITY ? vec2(0) : velocity*u_speed_factor;pos=pos+dp;highp vec2 seed=(pos+v_tex_coord)*u_rand_seed;highp vec2 random_pos=vec2(rand(seed+1.3),rand(seed+2.1));highp vec2 persist_rate=pow(\nlinearstep(vec2(-u_particle_pos_offset),vec2(0),pos)*linearstep(vec2(1.0+u_particle_pos_offset),vec2(1),pos),vec2(4)\n);highp vec2 per_frame_persist=pow(persist_rate,abs(dp)/u_particle_pos_offset);highp float drop_rate=1.0-per_frame_persist.x*per_frame_persist.y;drop_rate=any(greaterThanEqual(abs(pos-0.5),vec2(0.5+u_particle_pos_offset))) ? 1.0 : drop_rate;highp float drop=step(1.0-drop_rate-u_reset_rate,rand(seed));highp vec2 next_pos=mix(pos,random_pos,drop);glFragColor=pack_pos_to_rgba(next_pos);}',"in ivec2 a_pos;out vec2 v_tex_coord;void main() {v_tex_coord=0.5*vec2(a_pos+ivec2(1));gl_Position=vec4(a_pos,0.0,1.0);}"),snowParticle:xn("in highp vec2 uv;in highp float alphaMultiplier;uniform vec4 u_particleColor;uniform vec2 u_simpleShapeParameters;void main() {float t=clamp((length(uv)-u_simpleShapeParameters.x)/(1.0-u_simpleShapeParameters.x),0.0,1.0);float alpha=1.0-pow(t,pow(10.0,u_simpleShapeParameters.y));alpha*=alphaMultiplier;alpha*=u_particleColor.a;vec3 color=u_particleColor.rgb*alpha;glFragColor=vec4(color,alpha) ;HANDLE_WIREFRAME_DEBUG;}","\nin highp vec3 a_pos_3f;in highp vec2 a_uv;in highp vec4 a_snowParticleData;in highp vec4 a_snowParticleDataHorizontalOscillation;uniform mat4 u_modelview;uniform mat4 u_projection;uniform vec3 u_cam_pos;uniform vec2 u_screenSize;uniform float u_time;uniform float u_boxSize;uniform float u_velocityConeAperture; \nuniform float u_velocity;uniform vec3 u_direction;uniform float u_horizontalOscillationRadius; \nuniform float u_horizontalOscillationRate; \nuniform float u_billboardSize;uniform vec2 u_thinningCenterPos;uniform vec3 u_thinningShape;uniform float u_thinningAffectedRatio;uniform float u_thinningParticleOffset;out highp vec2 uv;out highp float alphaMultiplier;void main() {vec3 pos=a_pos_3f;float halfBoxSize=0.5*u_boxSize;pos.xyz*=halfBoxSize;pos+=u_cam_pos;float velocityConeApertureRad=radians(u_velocityConeAperture*0.5);float coneAnglePichRad=velocityConeApertureRad*a_snowParticleData.z;float coneAngleHeadingRad=a_snowParticleData.w*radians(360.0);vec3 localZ=normalize(u_direction);vec3 localX=normalize(cross(localZ,vec3(1,0,0)));vec3 localY=normalize(cross(localZ,localX));vec3 direction;direction.x=cos(coneAngleHeadingRad)*sin(coneAnglePichRad);direction.y=sin(coneAngleHeadingRad)*sin(coneAnglePichRad);direction.z=cos(coneAnglePichRad);direction=normalize(direction);vec3 simPosLocal=vec3(0,0,0);float velocityScale=(1.0+3.0*a_snowParticleData.y)*u_velocity;simPosLocal+=direction*velocityScale*u_time;float horizontalOscillationRadius=u_horizontalOscillationRadius*a_snowParticleDataHorizontalOscillation.x;float horizontalOscillationAngle=u_horizontalOscillationRate*u_time*(-1.0+2.0*a_snowParticleDataHorizontalOscillation.y);
1simPosLocal.xy+=horizontalOscillationRadius*vec2(cos(horizontalOscillationAngle),sin(horizontalOscillationAngle));vec3 simPos=localX*simPosLocal.x+\nlocalY*simPosLocal.y+localZ*simPosLocal.z;pos+=simPos;pos=fract((pos+vec3(halfBoxSize))/vec3(u_boxSize))*u_boxSize-vec3(halfBoxSize);float clipZ=-u_cam_pos.z+pos.z;vec4 posView=u_modelview*vec4(pos,1.0);float size=u_billboardSize;alphaMultiplier=1.0;vec4 posScreen=u_projection*posView;posScreen/=posScreen.w;posScreen.xy=vec2(0.5)+posScreen.xy*0.5;posScreen.xy*=u_screenSize;vec2 thinningCenterPos=u_thinningCenterPos.xy;thinningCenterPos.y=u_screenSize.y-thinningCenterPos.y;float screenDist=length((thinningCenterPos-posScreen.xy)/(0.5*u_screenSize));screenDist+=a_snowParticleData.x*u_thinningParticleOffset;float scaleFactorMode=0.0;float thinningShapeDist=u_thinningShape.x+u_thinningShape.y;if (screenDist < thinningShapeDist) {float thinningFadeRatio=clamp((screenDist-u_thinningShape.x)/u_thinningShape.y,0.0,1.0);thinningFadeRatio=pow(thinningFadeRatio,u_thinningShape.z);if (a_snowParticleData.x < u_thinningAffectedRatio) {scaleFactorMode=1.0-thinningFadeRatio;alphaMultiplier=thinningFadeRatio;}}vec4 posScreen1=u_projection*vec4(posView.x-size,posView.yzw);posScreen1/=posScreen1.w;vec4 posScreen2=u_projection*vec4(posView.x+size,posView.yzw);posScreen2/=posScreen2.w;posScreen1.xy=vec2(0.5)+posScreen1.xy*0.5;posScreen1.xy*=u_screenSize;posScreen2.xy=vec2(0.5)+posScreen2.xy*0.5;posScreen2.xy*=u_screenSize;float screenLength=length(posScreen1.xy-posScreen2.xy);float screenEpsilon=3.0;float scaleFactor=1.0;if (screenLength < screenEpsilon) {scaleFactor=screenEpsilon/max(screenLength,0.01);scaleFactor=mix(scaleFactor,1.0,scaleFactorMode);}float screenEpsilon2=15.0;if (screenLength > screenEpsilon2) {scaleFactor=screenEpsilon2/max(screenLength,0.01);}size*=scaleFactor;vec2 right=size*vec2(1,0);vec2 up=size*vec2(0,1);posView.xy+=right*a_uv.x;posView.xy+=up*a_uv.y;uv=a_uv;gl_Position=u_projection*posView;}"),rainParticle:xn("in highp vec2 uv;in highp float particleRandomValue;uniform sampler2D u_texScreen;uniform float u_distortionStrength;uniform vec4 u_color;uniform vec2 u_thinningCenterPos;uniform vec3 u_thinningShape;uniform float u_thinningAffectedRatio;uniform float u_thinningParticleOffset;uniform float u_shapeDirectionalPower;uniform float u_mode;void main() {vec2 st=uv*0.5+vec2(0.5);vec2 uvm=uv;uvm.y=-1.0+2.0*pow(st.y,u_shapeDirectionalPower);float shape=clamp(1.0-length(uvm),0.0,1.0);float alpha=abs(shape)*u_color.a;vec2 screenSize=vec2(textureSize(u_texScreen,0));vec2 thinningCenterPos=u_thinningCenterPos.xy;thinningCenterPos.y=screenSize.y-thinningCenterPos.y;float screenDist=length((thinningCenterPos-gl_FragCoord.xy)/(0.5*screenSize));screenDist+=(0.5+0.5*particleRandomValue)*u_thinningParticleOffset;float thinningShapeDist=u_thinningShape.x+u_thinningShape.y;float thinningAlpha=1.0;if (screenDist < thinningShapeDist) {float thinningFadeRatio=clamp((screenDist-u_thinningShape.x)/u_thinningShape.y,0.0,1.0);thinningFadeRatio=pow(thinningFadeRatio,u_thinningShape.z);thinningAlpha*=thinningFadeRatio;}vec2 offsetXY=normalize(uvm)*abs(shape);vec2 stScreen=(gl_FragCoord.xy+offsetXY*u_distortionStrength*thinningAlpha)/screenSize;vec3 colorScreen=texture(u_texScreen,stScreen).rgb;alpha*=thinningAlpha;glFragColor=mix(vec4(colorScreen,1.0),vec4(u_color.rgb*alpha,alpha),u_mode);HANDLE_WIREFRAME_DEBUG;}","\nin highp vec3 a_pos_3f;in highp vec2 a_uv;in highp vec4 a_rainParticleData;uniform mat4 u_modelview;uniform mat4 u_projection;uniform vec3 u_cam_pos;uniform float u_time;uniform float u_boxSize;uniform float u_velocityConeAperture; \nuniform float u_velocity; \nuniform vec2 u_rainDropletSize;uniform vec3 u_rainDirection;out highp vec2 uv;out highp float particleRandomValue;void main() {vec3 pos=a_pos_3f;float halfBoxSize=0.5*u_boxSize;pos*=halfBoxSize; \npos+=u_cam_pos;float velocityConeApertureRad=radians(u_velocityConeAperture*0.5);float coneAnglePichRad=velocityConeApertureRad*a_rainParticleData.z;float coneAngleHeadingRad=a_rainParticleData.w*radians(360.0);vec3 localZ=normalize(u_rainDirection);vec3 localX=normalize(cross(localZ,vec3(1,0,0)));vec3 localY=normalize(cross(localZ,localX));vec3 directionLocal;directionLocal.x=cos(coneAngleHeadingRad)*sin(coneAnglePichRad);directionLocal.y=sin(coneAngleHeadingRad)*sin(coneAnglePichRad);directionLocal.z=cos(coneAnglePichRad);directionLocal=normalize(directionLocal);vec3 directionWorld=localX*directionLocal.x+localY*directionLocal.y+localZ*directionLocal.z;float velocityScale=(1.0+3.0*a_rainParticleData.y)*u_velocity;vec3 simPosLocal=vec3(0,0,0);simPosLocal+=directionLocal*velocityScale*u_time;vec3 simPos=localX*simPosLocal.x+\nlocalY*simPosLocal.y+localZ*simPosLocal.z;pos+=simPos;pos=fract((pos+vec3(halfBoxSize))/vec3(u_boxSize))*u_boxSize-vec3(halfBoxSize);vec4 posView=u_modelview*vec4(pos,1.0);vec3 directionView=normalize((u_modelview*vec4(directionWorld,0.0)).xyz);vec3 side=cross(directionView,normalize(posView.xyz));posView.xyz+=side*a_uv.x*u_rainDropletSize.x;posView.xyz+=directionView*a_uv.y*u_rainDropletSize.y;uv=a_uv;particleRandomValue=a_rainParticleData.x;gl_Position=u_projection*posView;}"),vignette:xn("uniform vec3 u_vignetteShape;uniform vec4 u_vignetteColor;in vec2 st;void main() {float screenDist=length(st);float alpha=clamp((screenDist-u_vignetteShape.x)/u_vignetteShape.y,0.0,1.0);alpha=pow(alpha,u_vignetteShape.z)*u_vignetteColor.a;vec3 color=u_vignetteColor.rgb;glFragColor=vec4(color*alpha,alpha) ;}","in vec2 a_pos_2f;out vec2 st;void main() {st=a_pos_2f;gl_Position=vec4(a_pos_2f,0,1);}"),elevatedStructuresDepth:xn("void main() {}","in ivec2 a_pos;in float a_height;uniform mat4 u_matrix;uniform float u_depth_bias;void main() {gl_Position=u_matrix*vec4(a_pos,a_height,1);gl_Position.z=gl_Position.z+u_depth_bias;}"),elevatedStructures:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_lighting.glsl"\n#include "_prelude_shadow.fragment.glsl"\nin vec3 v_normal;in float v_height;\n#ifdef RENDER_SHADOWS\nin highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;in float v_depth;\n#endif\nvec3 linearTosRGB(vec3 color) {return pow(color,vec3(1./2.2));}vec3 sRGBToLinear(vec3 srgbIn) {return pow(srgbIn,vec3(2.2));}
1vec3 compute_view_dependent_emissive_color(float ndotl,float emissive_strength,vec3 color)\n{color=sRGBToLinear(color);color=color*(ndotl+(1.0-min(ndotl*57.29,1.0))*emissive_strength);color=linearTosRGB(color.rgb);return color;}uniform float u_emissive_strength;uniform float u_opacity_multiplier;\n#pragma mapbox: define highp vec4 structure_color\nvoid main() {\n#pragma mapbox: initialize highp vec4 structure_color\nvec3 color=structure_color.xyz;vec2 cutout_factors=vec2(0.0);\n#ifdef FEATURE_CUTOUT\ncutout_factors=get_cutout_factors(gl_FragCoord);\n#endif\n#ifdef LIGHTING_3D_MODE\nvec3 normal=normalize(v_normal);vec3 transformed_normal=vec3(-normal.xy,normal.z);float ndotl=calculate_NdotL(transformed_normal);float emissive_strength=u_emissive_strength;emissive_strength=0.0;vec3 emissive_color=compute_view_dependent_emissive_color(ndotl,emissive_strength,color.xyz);\n#ifdef RENDER_SHADOWS\nfloat light=shadowed_light_factor_normal(transformed_normal,v_pos_light_view_0,v_pos_light_view_1,v_depth);light=mix(light,1.0,cutout_factors.y);color.rgb=apply_lighting(color.rgb,transformed_normal,light);\n#else\ncolor=apply_lighting(color,transformed_normal);\n#endif\ncolor=mix(color,emissive_color,emissive_strength);if (v_height < 0.0) {float penetration=max(v_height+7.5,0.0);float occlusion=1.0-1.0/PI*acos(1.0-penetration/4.0);color=color*(1.0-pow(occlusion,2.0)*0.3);}\n#endif\n#ifdef FOG\ncolor=fog_apply(color,v_fog_pos);\n#endif\nvec4 out_color=vec4(color,1.0);\n#ifdef INDICATOR_CUTOUT\nout_color=applyCutout(out_color,v_height);\n#endif\n#ifdef FEATURE_CUTOUT\nout_color=apply_feature_cutout(out_color,gl_FragCoord,cutout_factors.x);\n#endif\nout_color*=u_opacity_multiplier;glFragColor=out_color;HANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\nin ivec2 a_pos;in float a_height;in ivec4 a_pos_normal_3;uniform mat4 u_matrix;out vec3 v_normal;out float v_height;\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;out float v_depth;\n#endif\n#pragma mapbox: define highp vec4 structure_color\nvoid main() {\n#pragma mapbox: initialize highp vec4 structure_color\nv_normal=vec3(a_pos_normal_3)/16384.0;v_height=a_height;vec3 pos=vec3(vec2(a_pos),a_height);gl_Position=u_matrix*vec4(pos,1);\n#ifdef RENDER_SHADOWS\nvec3 shd_pos0=pos;vec3 shd_pos1=pos;\n#ifdef NORMAL_OFFSET\nvec3 offset=shadow_normal_offset(vec3(-v_normal.xy,v_normal.z));shd_pos0+=offset*shadow_normal_offset_multiplier0();shd_pos1+=offset*shadow_normal_offset_multiplier1();\n#endif\nv_pos_light_view_0=u_light_matrix_0*vec4(shd_pos0,1);v_pos_light_view_1=u_light_matrix_1*vec4(shd_pos1,1);v_depth=gl_Position.w;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(vec2(a_pos));\n#endif\n}'),elevatedStructuresDepthReconstruct:xn("#ifdef DEPTH_RECONSTRUCTION\nin float v_height;\n#endif\nvoid main() {\n#ifdef DEPTH_RECONSTRUCTION\nif (v_height >=0.0)\ndiscard;\n#else\n#ifdef FEATURE_CUTOUT\napply_feature_cutout(vec4(0.0,0.0,0.0,1.0),gl_FragCoord,get_cutout_factors(gl_FragCoord).x);\n#endif\n#endif\nglFragColor=vec4(1.0,0.0,0.0,1.0);}","in ivec2 a_pos;in float a_height;uniform mat4 u_matrix;uniform vec3 u_camera_pos;uniform highp float u_depth_bias;uniform lowp float u_height_scale;uniform lowp float u_reset_depth;\n#ifdef DEPTH_RECONSTRUCTION\nout float v_height;\n#endif\nvoid main() {vec3 vpos=vec3(a_pos,a_height*u_height_scale);\n#ifdef DEPTH_RECONSTRUCTION\nif (u_camera_pos.z > vpos.z) {vpos-=(u_camera_pos-vpos)*(vpos.z/(u_camera_pos.z-vpos.z));}v_height=a_height;\n#endif\ngl_Position=u_matrix*vec4(vpos,1);gl_Position.z=u_reset_depth==1.0 ? gl_Position.w : gl_Position.z+u_depth_bias;}")};xn(Gr,"");const wn=e.b_([{type:"Float32",name:"a_pos_3f",components:3},{type:"Float32",name:"a_uv",components:2},{type:"Float32",name:"a_rainParticleData",components:4}]),En=e.b_([{type:"Float32",name:"a_pos_2f",components:2}]);class bn{destroy(){this.vignetteVx&&this.vignetteVx.destroy(),this.vignetteIdx&&this.vignetteIdx.destroy()}draw(t,i){const r=t.getOrCreateProgram("vignette");
vendor: 9,772 bytes, line 1
1if(!this.vignetteVx||!this.vignetteIdx){const i=new e.aO,r=new e.aT;i.emplaceBack(-1,-1),i.emplaceBack(1,-1),i.emplaceBack(1,1),i.emplaceBack(-1,1),r.emplaceBack(0,1,2),r.emplaceBack(0,2,3),this.vignetteVx=t.context.createVertexBuffer(i,En.members),this.vignetteIdx=t.context.createIndexBuffer(r)}const n=e.aJ.simpleSegment(0,0,4,6);if(this.vignetteVx&&this.vignetteIdx){t.uploadCommonUniforms(t.context,r);const e={u_vignetteShape:(o={vignetteShape:[i.start,i.range,Math.pow(10,i.fadePower)],vignetteColor:[i.color.r,i.color.g,i.color.b,i.color.a*i.strength]}).vignetteShape,u_vignetteColor:o.vignetteColor};r.draw(t,t.context.gl.TRIANGLES,_i.disabled,Gi.disabled,Ji.alphaBlended,mi.disabled,e,"vignette",this.vignetteVx,this.vignetteIdx,n)}var o}}class In{constructor(){this._accumulatedOffsetX=0,this._accumulatedOffsetY=0,this._accumulatedElevation=0}update(t,i){const r=t.getFreeCameraOptions().position,n=r.toAltitude(),o=r.toLngLat(),s=e.c4(o.lng),a=e.c4(o.lat),l=t.pixelsPerMeter/i,c=s*e.c9,h=e.c9*Math.log(Math.tan(Math.PI/4+a/2));if(void 0===this._offsetXPrev)this._offsetXPrev=0,this._offsetYPrev=0,this._elevationPrev=0,this._accumulatedOffsetX=0,this._accumulatedOffsetY=0,this._accumulatedElevation=0;else{const e=-this._offsetYPrev+h,t=-this._elevationPrev+n;this._accumulatedOffsetX+=(-this._offsetXPrev+c)*l,this._accumulatedOffsetY+=e*l,this._accumulatedElevation+=t*l,this._offsetXPrev=c,this._offsetYPrev=h,this._elevationPrev=n}}getPosition(){return[this._accumulatedOffsetX,this._accumulatedOffsetY,this._accumulatedElevation]}}function Cn(e,t){return[-(e[0]-Math.floor(e[0]/t)*t),-(e[1]-Math.floor(e[1]/t)*t),-(e[2]-Math.floor(e[2]/t)*t)]}function Bn(t){const i=e.eq(1323123451230),r=[];for(let n=0;n<t;++n){const t=2*i()-1,n=2*i()-1,o=2*i()-1;r.push(e.cx(t,n,o))}return r}function Dn(t,i,r,n,o){const s=e.bG((o-r)/(n-r),0,1);return e.dY(t,i,s)}class Tn{constructor(e){this._movement=new In,this._accumulatedTimeFromStart=0,this._prevTime=Date.now()/1e3,this._vignette=new bn,this._ppmScaleFactor=e}destroy(){this.particlesVx&&this.particlesVx.destroy(),this.particlesIdx&&this.particlesIdx.destroy(),this._vignette&&this._vignette.destroy()}updateOnRender(t,i){const r=t.transform;this._movement.update(r,this._ppmScaleFactor);const n=r.starsProjMatrix,o=e.dp([]);e.f2(o,o,e.c4(90)-r._pitch),e.f5(o,o,-r.angle);const s=e.ct(new Float32Array(16),o),a=new Float32Array([1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1]),l=e.fR([],a),c=e.er([],l,s),h=Date.now()/1e3;return this._accumulatedTimeFromStart+=(h-this._prevTime)*i,this._prevTime=h,{projectionMatrix:n,modelviewMatrix:c}}}const Mn=e.b_([{type:"Float32",name:"a_pos_3f",components:3},{type:"Float32",name:"a_uv",components:2},{type:"Float32",name:"a_snowParticleData",components:4},{type:"Float32",name:"a_snowParticleDataHorizontalOscillation",components:2}]),Qn=(e,t)=>({u_matrix:e,u_depth_bias:t}),Sn=(e,t)=>({u_matrix:e,u_ground_shadow_factor:t,u_opacity_multiplier:1}),Pn=(e,t,i,r,n)=>({u_matrix:e,u_camera_pos:[t[0],t[1],t[2]],u_depth_bias:i,u_height_scale:r,u_reset_depth:n}),Rn={building:t=>({u_matrix:new e.bb(t),u_normal_matrix:new e.bb(t),u_opacity:new e.b4(t),u_faux_facade_ao_intensity:new e.b4(t),u_camera_pos:new e.b7(t),u_tile_to_meter:new e.b4(t),u_facade_emissive_chance:new e.b4(t),u_flood_light_color:new e.b7(t),u_flood_light_intensity:new e.b4(t),u_front_cutoff_params:new e.b7(t)}),buildingBloom:t=>({u_matrix:new e.bb(t)}),buildingDepth:t=>({u_matrix:new e.bb(t)}),elevatedStructuresDepth:t=>({u_matrix:new e.bb(t),u_depth_bias:new e.b4(t)}),elevatedStructures:t=>({u_matrix:new e.bb(t),u_ground_shadow_factor:new e.b7(t),u_opacity_multiplier:new e.b4(t)}),elevatedStructuresDepthReconstruct:t=>({u_matrix:new e.bb(t),u_camera_pos:new e.b7(t),u_depth_bias:new e.b4(t),u_height_scale:new e.b4(t),u_reset_depth:new e.b4(t)}),rasterParticle:t=>({u_matrix:new e.bb(t),u_normalize_matrix:new e.bb(t),u_globe_matrix:new e.bb(t),u_merc_matrix:new e.bb(t),u_grid_matrix:new e.ba(t),u_tl_parent:new e.b6(t),u_scale_parent:new e.b4(t),u_fade_t:new e.b4(t),u_opacity:new e.b4(t),u_image0:new e.b5(t),u_image1:new e.b5(t),u_raster_elevation:new e.b4(t),u_zoom_transition:new e.b4(t),u_merc_center:new e.b6(t),u_cutoff_params:new e.b8(t)}),rasterParticleTexture:t=>({u_texture:new e.b5(t),u_opacity:new e.b4(t)}),rasterParticleDraw:t=>({u_particle_texture:new e.b5(t),u_particle_texture_side_len:new e.b4(t),u_tile_offset:new e.b6(t),u_velocity:new e.b5(t),u_color_ramp:new e.b5(t),u_velocity_res:new e.b6(t),u_max_speed:new e.b4(t),u_uv_offset:new e.b6(t),u_data_scale:new e.b6(t),u_data_offset:new e.b4(t),u_particle_pos_scale:new e.b4(t),u_particle_pos_offset:new e.b6(t)}),rasterParticleUpdate:t=>({u_particle_texture:new e.b5(t),u_particle_texture_side_len:new e.b4(t),u_velocity:new e.b5(t),u_velocity_res:new e.b6(t),u_max_speed:new e.b4(t),u_speed_factor:new e.b4(t),u_reset_rate:new e.b4(t),u_rand_seed:new e.b4(t),u_uv_offset:new e.b6(t),u_data_scale:new e.b6(t),u_data_offset:new e.b4(t),u_particle_pos_scale:new e.b4(t),u_particle_pos_offset:new e.b6(t)}),snowParticle:t=>({u_modelview:new e.bb(t),u_projection:new e.bb(t),u_time:new e.b4(t),u_cam_pos:new e.b7(t),u_velocityConeAperture:new e.b4(t),u_velocity:new e.b4(t),u_horizontalOscillationRadius:new e.b4(t),u_horizontalOscillationRate:new e.b4(t),u_boxSize:new e.b4(t),u_billboardSize:new e.b4(t),u_simpleShapeParameters:new e.b6(t),u_screenSize:new e.b6(t),u_thinningCenterPos:new e.b6(t),u_thinningShape:new e.b7(t),u_thinningAffectedRatio:new e.b4(t),u_thinningParticleOffset:new e.b4(t),u_particleColor:new e.b8(t),u_direction:new e.b7(t)}),rainParticle:t=>({u_modelview:new e.bb(t),u_projection:new e.bb(t),u_time:new e.b4(t),u_cam_pos:new e.b7(t),u_texScreen:new e.b5(t),u_velocityConeAperture:new e.b4(t),u_velocity:new e.b4(t),u_boxSize:new e.b4(t),u_rainDropletSize:new e.b6(t),u_distortionStrength:new e.b4(t),u_rainDirection:new e.b7(t),u_color:new e.b8(t),u_screenSize:new e.b6(t),u_thinningCenterPos:new e.b6(t),u_thinningShape:new e.b7(t),u_thinningAffectedRatio:new e.b4(t),u_thinningParticleOffset:new e.b4(t),u_shapeDirectionalPower:new e.b4(t),u_shapeNormalPower:new e.b4(t),u_mode:new e.b4(t)}),vignette:t=>({u_vignetteShape:new e.b7(t),u_vignetteColor:new e.b8(t)})};function zn(t,i){const r=1<<t.canonical.z,n=(i.x*r-t.canonical.x-t.wrap*r)*e.r,o=(i.y*r-t.canonical.y)*e.r,s=e.bn(i.z,i.y);return e.cx(n,o,s)}function Ln(e){let t=0;for(const i of e)t|=i.frcMask;return t}class Fn{constructor(e=[]){this.tiles=e}getTile(e){for(const t of this.tiles)if(t.tileId.z===e.z&&t.tileId.x===e.x&&t.tileId.y===e.y)return t;return null}getTileOrParent(e){for(let t=e.z;t>0;--t){const i=Math.floor(e.x/(1<<e.z-t)),r=Math.floor(e.y/(1<<e.z-t));for(const e of this.tiles)if(e.tileId.z===t&&e.tileId.x===i&&e.tileId.y===r&&0!==e.frcMask)return e}return null}getFullCoverageMask(t){let i=null,r=0;for(let e=t.z;e>0;--e){const n=Math.floor(t.x/(1<<t.z-e)),o=Math.floor(t.y/(1<<t.z-e));for(const t of this.tiles)if(t.tileId.z===e&&t.tileId.x===n&&t.tileId.y===o){i=t,r=e;break}if(i)break}if(!i||0===i.frcMask)return null;const n=1<<t.z-r,o=e.r/n,s=t.x%n*o,a=t.y%n*o,l=s+o,c=a+o;let h=0;for(const e of i.polygons)0!==e.frcMask&&(e.hasGeometry()?0===e.rings.length||t.z<=r||On(e.rings,s,a,l,c)&&(h|=e.frcMask):h|=e.frcMask);return 0!==h?h:null}equals(e){if(this.tiles.length!==e.length)return!1;for(let t=0;t<this.tiles.length;++t){const i=this.tiles[t],r=e[t];if(i.tileId.z!==r.tileId.z||i.tileId.x!==r.tileId.x||i.tileId.y!==r.tileId.y||i.frcMask!==r.frcMask||i.polygons.length!==r.polygons.length)return!1}return!0}empty(){return 0===this.tiles.length}}function On(e,t,i,r,n){const o=[0,0,0,0],s=[t,r,r,t],a=[i,i,n,n];for(const l of e){const e=l.length;if(!(e<2))for(let c=0,h=e-1;c<e;h=c++){const e=l[h].x,u=l[h].y,d=l[c].x,f=l[c].y;for(let t=0;t<4;++t)u>a[t]!=f>a[t]&&s[t]<e+(d-e)*(a[t]-u)/(f-u)&&o[t]++;let p=0,A=0;if(e<t?p|=1:e>r&&(p|=2),u<i?p|=4:u>n&&(p|=8),d<t?A|=1:d>r&&(A|=2),f<i?A|=4:f>n&&(A|=8),!(p&A)){if(0===p||0===A)return!1;if(kn(e,u,d,f,t,i,r,n))return!1}}}for(let l=0;l<4;++l)if(!(1&o[l]))return!1;return!0}function kn(e,t,i,r,n,o,s,a){const l=(e,t,i,r,n,o,s,a)=>{const l=(i-e)*(o-t)-(r-t)*(n-e),c=(i-e)*(a-t)-(r-t)*(s-e);if(l>0&&c>0||l<0&&c<0)return!1;const h=(s-n)*(t-o)-(a-o)*(e-n),u=(s-n)*(r-o)-(a-o)*(i-n);return!(h>0&&u>0||h<0&&u<0)};return!!(l(e,t,i,r,n,o,s,o)||l(e,t,i,r,s,o,s,a)||l(e,t,i,r,n,a,s,a)||l(e,t,i,r,n,o,n,a))}class Nn{constructor(){this._tileCoverages=[],this._snapshot=new Fn}clear(){this._tileCoverages=[]}addTileCoverage(e,t){this._tileCoverages.push({tileId:e,polygons:t,frcMask:Ln(t)})}empty(){return 0===this._tileCoverages.length}updateSnapshotIfNeeded(){if(this._snapshot.equals(this._tileCoverages))return this._snapshot;const e=this._tileCoverages.map(e=>({tileId:e.tileId,polygons:e.polygons,frcMask:e.frcMask}));return this._snapshot=new Fn(e),this._snapshot}}class Un{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,i){const r=e.wrapped().key;void 0===this.data[r]&&(this.data[r]=[]);const n={value:t,timeout:void 0};if(void 0!==i&&(n.timeout=setTimeout(()=>{this.remove(e,n)},i)),this.data[r].push(n),this.order.push(r),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}
vendor: 13,983 bytes, line 1
1get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;const i=e.wrapped().key,r=void 0===t?0:this.data[i].indexOf(t),n=this.data[i][r];return this.data[i].splice(r,1),n.timeout&&clearTimeout(n.timeout),0===this.data[i].length&&delete this.data[i],this.onRemove(n.value),this.order.splice(this.order.indexOf(i),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 i in this.data)for(const r of this.data[i])e(r.value)||t.push(r);for(const i of t)this.remove(i.value.tileID,i)}}class Vn{constructor(){this.state=Object.create(null),this.stateChanges=Object.create(null),this.deletedStates=Object.create(null)}updateState(e,t,i){const r=String(t);if(this.stateChanges[e]=this.stateChanges[e]||Object.create(null),this.stateChanges[e][r]=this.stateChanges[e][r]||Object.create(null),Object.assign(this.stateChanges[e][r],i),null===this.deletedStates[e]){this.deletedStates[e]=Object.create(null);for(const t in this.state[e])t!==r&&(this.deletedStates[e][t]=null)}else if(this.deletedStates[e]&&null===this.deletedStates[e][r]){this.deletedStates[e][r]=Object.create(null);for(const t in this.state[e][r])i[t]||(this.deletedStates[e][r][t]=null)}else for(const n in i)this.deletedStates[e]&&this.deletedStates[e][r]&&null===this.deletedStates[e][r][n]&&delete this.deletedStates[e][r][n]}removeFeatureState(e,t,i){if(null===this.deletedStates[e])return;const r=String(t);if(this.deletedStates[e]=this.deletedStates[e]||Object.create(null),i&&void 0!==t)null!==this.deletedStates[e][r]&&(this.deletedStates[e][r]=this.deletedStates[e][r]||Object.create(null),this.deletedStates[e][r][i]=null);else if(void 0!==t)if(this.stateChanges[e]&&this.stateChanges[e][r])for(i in this.deletedStates[e][r]=Object.create(null),this.stateChanges[e][r])this.deletedStates[e][r][i]=null;else this.deletedStates[e][r]=null;else this.deletedStates[e]=null}getState(e,t){const i=this.state[e]||Object.create(null),r=this.stateChanges[e]||Object.create(null),n=this.deletedStates[e];if(null===n)return Object.create(null);if(void 0!==t){const e=String(t),o=Object.assign(Object.create(null),i[e],r[e]);if(n){const e=n[t];if(null===e)return Object.create(null);for(const t in e)delete o[t]}return o}const o=Object.assign(Object.create(null),i,r);if(n)for(const s in n)delete o[s];return o}initializeTileState(e,t){e.refreshFeatureState(t)}coalesceChanges(e,t){const i=Object.create(null);for(const r in this.stateChanges){this.state[r]=this.state[r]||Object.create(null);const e=Object.create(null);for(const t in this.stateChanges[r])this.state[r][t]||(this.state[r][t]=Object.create(null)),Object.assign(this.state[r][t],this.stateChanges[r][t]),e[t]=this.state[r][t];i[r]=e}for(const r in this.deletedStates){this.state[r]=this.state[r]||Object.create(null);const e=Object.create(null);if(null===this.deletedStates[r])for(const t in this.state[r])e[t]=Object.create(null),this.state[r][t]=Object.create(null);else for(const t in this.deletedStates[r]){if(null===this.deletedStates[r][t])this.state[r][t]=Object.create(null);else if(this.state[r][t])for(const e of Object.keys(this.deletedStates[r][t]))delete this.state[r][t][e];e[t]=this.state[r][t]}i[r]=i[r]||Object.create(null),Object.assign(i[r],e)}if(this.stateChanges=Object.create(null),this.deletedStates=Object.create(null),0!==Object.keys(i).length)for(const r in e)e[r].refreshFeatureState(t,i)}}class Hn extends e.y{constructor(e,t,i){super(),this.id=e,this._renderSourceType=i,this._maxzoomOverride=null,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 Un(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._minTileCacheSize=t.minTileCacheSize,this._maxTileCacheSize=t.maxTileCacheSize,this._loadedParentTiles={},this.castsShadows=!1,this.tileCoverLift=0,this._coveredTiles={},this._shadowCasterTiles={},this._state=new Vn,this._isRaster="raster"===this._source.type||"raster-dem"===this._source.type||"raster-array"===this._source.type||"custom"===this._source.type&&"_dataType"in this._source&&"raster"===this._source._dataType,this._supportsFading="raster"===this._source.type||"raster-array"===this._source.type||"image"===this._source.type||"video"===this._source.type||"custom"===this._source.type,this._isRasterElevatedOverTerrain=!1}onAdd(e){this.map=e,this._minTileCacheSize=void 0===this._minTileCacheSize&&e?e._minTileCacheSize:this._minTileCacheSize,this._maxTileCacheSize=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)if(!this._tiles[e].loaded())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)}setMaxzoomOverride(e){this._maxzoomOverride=e}_loadTile(e,t){return e.renderSourceType=this._renderSourceType,e.isExtraShadowCaster=this._shadowCasterTiles[e.tileID.key],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){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const t in this._tiles){const i=this._tiles[t];i.upload(e,this.map?this.map.painter:void 0),i.prepare(this.map.style.imageManager,this.map?this.map.painter:null,this._source.scope)}}getIds(){return Object.values(this._tiles).map(e=>e.tileID).sort(jn).map(e=>e.key)}getRenderableIds(t,i){const r=[];for(const e in this._tiles)this._isIdRenderable(+e,t,i)&&r.push(this._tiles[e]);return t?r.sort((t,i)=>{const r=t.tileID,n=i.tileID,o=new e.au(r.canonical.x,r.canonical.y)._rotate(this.transform.angle),s=new e.au(n.canonical.x,n.canonical.y)._rotate(this.transform.angle);return r.overscaledZ-n.overscaledZ||s.y-o.y||s.x-o.x}).map(e=>e.tileID.key):r.map(e=>e.tileID).sort(jn).map(e=>e.key)}hasRenderableParent(e){const t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)}_isIdRenderable(e,t,i){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())&&(i||!this._shadowCasterTiles[e])}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 i=this._tiles[e];i&&("loading"!==i.state&&(i.state=t),this._loadTile(i,this._tileLoaded.bind(this,i,e,t)))}_tileLoaded(t,i,r,n,o){if(n){if(t.state="errored",e.dD(n)){if(this._source.fire(new e.x("data",{dataType:"source",sourceDataType:"error",sourceId:this._source.id,tile:t})),!(t.tileID.key in this._loadedParentTiles))return;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 this._source.fire(new e.v(n,{tile:t}));return}t.timeAdded=e.co.now(),"expired"===r&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(i,t),"raster-dem"===this._source.type&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null);let s=new Map;o&&o.responseHeaders&&(s=o.responseHeaders),this._source.fire(new e.x("data",{dataType:"source",tile:t,coord:t.tileID,sourceCacheId:this.id,responseHeaders:s}))}_hasTunnelGeometry(){for(const e in this._tiles){const t=this._tiles[e];if(t&&t.hasTunnelGeometry)return!0}return!1}_backfillDEM(e){const t=this.getRenderableIds();for(let r=0;r<t.length;r++){const n=t[r];if(e.neighboringTiles&&e.neighboringTiles[n]){const t=this.getTileByID(n);i(e,t),i(t,e)}}function i(e,t){if(!e.dem||e.dem.borderReady)return;e.needsHillshadePrepare=!0,e.needsDEMTextureUpload=!0;let i=t.tileID.canonical.x-e.tileID.canonical.x;const r=t.tileID.canonical.y-e.tileID.canonical.y,n=Math.pow(2,e.tileID.canonical.z),o=t.tileID.key;0===i&&0===r||Math.abs(r)>1||(Math.abs(i)>1&&(1===Math.abs(i+n)?i+=n:1===Math.abs(i-n)&&(i-=n)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,i,r),e.neighboringTiles&&e.neighboringTiles[o]&&(e.neighboringTiles[o].backfilled=!0)))}}getTile(e){return this.getTileByID(e.key)}getTileByID(e){return this._tiles[e]}_retainLoadedChildren(e,t,i,r){for(const n in this._tiles){let o=this._tiles[n];if(r[n]||!o.hasData()||o.tileID.overscaledZ<=t||o.tileID.overscaledZ>i)continue;let s=o.tileID;for(;o&&o.tileID.overscaledZ>t+1;){const e=o.tileID.scaledTo(o.tileID.overscaledZ-1);o=this._tiles[e.key],o&&o.hasData()&&(s=e)}let a=s;for(;a.overscaledZ>t;)if(a=a.scaledTo(a.overscaledZ-1),e[a.key]){r[s.key]=s;break}}}findLoadedParent(e,t){if(e.key in this._loadedParentTiles){const i=this._loadedParentTiles[e.key];return i&&i.tileID.overscaledZ>=t?i:null}for(let i=e.overscaledZ-1;i>=t;i--){const t=e.scaledTo(i),r=this._getLoadedTile(t);if(r)return r}}_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 i=Math.ceil(e.width/t)+1,r=Math.ceil(e.height/t)+1,n=Math.floor(i*r*5),o="number"==typeof this._minTileCacheSize?Math.max(this._minTileCacheSize,n):n,s="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,o):o;this._cache.setMaxSize(s)}handleWrapJump(e){const t=Math.round((e-(void 0===this._prevLng?e:this._prevLng))/360);if(this._prevLng=e,t){const e={};for(const i in this._tiles){const r=this._tiles[i];r.tileID=r.tileID.unwrapTo(r.tileID.wrap+t),e[r.tileID.key]=r}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(t,i,r,n,o){if(this.transform=t,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage)return;if(this.usedForTerrain&&!r)return;this.updateCacheSize(t,i),"globe"!==this.transform.projection.name&&this.handleWrapJump(this.transform.center.lng),this._shadowCasterTiles={},this._coveredTiles={};const s="batched-model"===this._source.type;let a,l=this._source.maxzoom;null!==this._maxzoomOverride&&(l=Math.min(l,this._maxzoomOverride));const c=this.map&&this.map.painter?this.map.painter._terrain:null;if(c&&c.sourceCache===this&&c.attenuationRange()){const e=c.attenuationRange()[0],t=Math.floor(e)-Math.log2(c.getDemUpscale());l>t&&(l=t)}const h=null===this._maxzoomOverride&&this._source.reparseOverscaled;if(this.used||this.usedForTerrain){if(this._source.tileID)a=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(t=>new e.ap(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y));else if(0!==this.tileCoverLift){const n=t.clone();n.tileCoverLift=this.tileCoverLift,a=n.coveringTiles({tileSize:i||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:l,roundZoom:this._source.roundZoom&&!r,reparseOverscaled:h,isTerrainDEM:this.usedForTerrain,calculateQuadrantVisibility:s}),this._source.minzoom<=1&&"globe"===t.projection.name&&(a.push(new e.ap(1,0,1,0,0)),a.push(new e.ap(1,0,1,1,0)),a.push(new e.ap(1,0,1,0,1)),a.push(new e.ap(1,0,1,1,1)))}else if(a=t.coveringTiles({tileSize:i||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:l,roundZoom:this._source.roundZoom&&!r,reparseOverscaled:h,isTerrainDEM:this.usedForTerrain,calculateQuadrantVisibility:s}),this._source.hasTile){const e=this._source.hasTile.bind(this._source);a=a.filter(t=>e(t))}}else a=[];if(a.length>0&&"globe"!==this.transform.projection.name&&!this.usedForTerrain&&!this._supportsFading){const e=t.coveringZoomLevel({tileSize:i||this._source.tileSize,roundZoom:this._source.roundZoom&&!r}),c=Math.min(e,l);if(s){const e=t.extendTileCover(a,c);for(const t of e)a.push(t)}else if(o){const e=this.transform.getFrustum(c),i=t.extendTileCoverToNearPlane(a,e,c);for(const t of i)a.push(t);if(c>=18&&this._hasTunnelGeometry()){const i=t.extendTileCoverForTunnels(a,e,c,20);for(const e of i)a.push(e)}}else if(this.castsShadows&&n){const e=t.extendTileCover(a,c,n,16);for(const t of e)this._shadowCasterTiles[t.key]=!0,a.push(t)}}const u=this._updateRetainedTiles(a);if(this._supportsFading&&0!==a.length){const t={},i={},r=e.co.now(),n=Object.keys(u);for(const e of n){const n=u[e],o=this._tiles[e];if(!o||void 0!==o.fadeEndTime&&o.fadeEndTime<=r)continue;const s=this.findLoadedParent(n,Math.max(n.overscaledZ-Hn.maxOverzooming,this._source.minzoom));s&&(this._addTile(s.tileID),t[s.tileID.key]=s.tileID),i[e]=n}const o=a.at(-1).overscaledZ;for(const e in this._tiles){const t=this._tiles[e];if(u[e]||!t.hasData())continue;let r=t.tileID;for(;r.overscaledZ>o;){r=r.scaledTo(r.overscaledZ-1);const n=this._tiles[r.key];if(n&&n.hasData()&&i[r.key]){u[e]=t.tileID;break}}}for(const e in t)u[e]||(this._coveredTiles[e]=!0,u[e]=t[e])}for(const e in u)this._tiles[e].clearFadeHold();const d=e.dS(this._tiles,u);for(const e of d){const t=this._tiles[e];t.hasSymbolBuckets&&!t.holdingForFade()?t.setHoldDuration(this.map._fadeDuration):t.hasSymbolBuckets&&!t.symbolFadeFinished()||this._removeTile(+e)}this._updateLoadedParentTileCache(),this._renderSourceType===e.aC.Symbol&&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 i={},r=e.reduce((e,t)=>
vendor: 15,897 bytes, line 1
1Math.min(e,t.overscaledZ),1/0),n=e[0].overscaledZ,o=Math.max(n-Hn.maxOverzooming,this._source.minzoom),s=Math.max(n+Hn.maxUnderzooming,this._source.minzoom),a={};for(const l of e){const e=this._addTile(l);t[l.key]=l,e.hasData()||r<this._source.maxzoom&&(a[l.key]=l)}this._retainLoadedChildren(a,r,s,t);for(const l of e){let e=this._tiles[l.key];if(e.hasData())continue;if(l.canonical.z>=this._source.maxzoom){const e=l.children(this._source.maxzoom)[0],i=this.getTile(e);if(i&&i.hasData()){t[e.key]=e;continue}}else{const e=l.children(this._source.maxzoom);if(t[e[0].key]&&t[e[1].key]&&t[e[2].key]&&t[e[3].key])continue}let r=e.wasRequested();for(let n=l.overscaledZ-1;n>=o;--n){const o=l.scaledTo(n);if(i[o.key])break;if(i[o.key]=!0,e=this.getTile(o),!e&&r&&(e=this._addTile(o)),e&&(t[o.key]=o,r=e.wasRequested(),e.hasData()))break}}return t}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const e in this._tiles){const t=[];let i,r=this._tiles[e].tileID;for(;r.overscaledZ>0;){if(r.key in this._loadedParentTiles){i=this._loadedParentTiles[r.key];break}t.push(r.key);const e=r.scaledTo(r.overscaledZ-1);if(i=this._getLoadedTile(e),i)break;r=e}for(const e of t)this._loadedParentTiles[e]=i}}_addTile(t){let i=this._tiles[t.key];if(i)return!0!==i.isExtraShadowCaster||!!this._shadowCasterTiles[t.key]||this._reloadTile(t.key,"reloading"),i;i=this._cache.getAndRemove(t),i&&(this._setTileReloadTimer(t.key,i),i.tileID=t,this._state.initializeTileState(i,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,i)));const r=Boolean(i);if(!r){const r=this.map?this.map.painter:null,n=this._source.tileSize*t.overscaleFactor();i="raster-array"===this._source.type?new Rr(t,n,this.transform.tileZoom,r,this._isRaster):new e.b0(t,n,this.transform.tileZoom,r,this._isRaster,this._source.worldview),this._loadTile(i,this._tileLoaded.bind(this,i,t.key,i.state))}return i.uses++,this._tiles[t.key]=i,r||this._source.fire(new e.x("dataloading",{tile:i,coord:i.tileID,dataType:"source"})),i}_setTileReloadTimer(e,t){e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);const i=t.getExpiryTimeout();i&&(this._timers[e]=setTimeout(()=>{this._reloadTile(e,"expired"),delete this._timers[e]},i))}_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||"empty"===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(t,i,r){const n=[],o=this.transform;if(!o)return n;const s="globe"===o.projection.name,a=e.ek(o.center.lng);for(const l in this._tiles){const c=this._tiles[l];if(r&&c.clearQueryDebugViz(),c.holdingForFade())continue;let h;if(s){const t=c.tileID.canonical;if(0===t.z){const i=[Math.abs(e.bG(a,...Gn(t,-1))-a),Math.abs(e.bG(a,...Gn(t,1))-a)];h=[0,2*i.indexOf(Math.min(...i))-1]}else{const i=[Math.abs(e.bG(a,...Gn(t,-1))-a),Math.abs(e.bG(a,...Gn(t,0))-a),Math.abs(e.bG(a,...Gn(t,1))-a)];h=[i.indexOf(Math.min(...i))-1]}}else h=[0];for(const e of h){const r=t.containsTile(c,o,i,e);r&&n.push(r)}}return n}getShadowCasterCoordinates(){return this._getRenderableCoordinates(!1,!0)}getVisibleCoordinates(e){return this._getRenderableCoordinates(e)}_getRenderableCoordinates(e,t){if(!this.transform)return[];const i=this.getRenderableIds(e,t).map(e=>this._tiles[e].tileID),r="globe"===this.transform.projection.name;for(const n of i)n.projMatrix=this.transform.calculateProjMatrix(n.toUnwrapped()),n.expandedProjMatrix=r?this.transform.calculateProjMatrix(n.toUnwrapped(),!1,!0):n.projMatrix;return i}sortCoordinatesByDistance(e){const t=e.slice(),i=this.transform._camera.position,r=this.transform._camera.forward(),n={};for(const o of t){const e=1/(1<<o.canonical.z);n[o.key]=((o.canonical.x+.5)*e+o.wrap-i[0])*r[0]+((o.canonical.y+.5)*e-i[1])*r[1]-i[2]*r[2]}return t.sort((e,t)=>n[e.key]-n[t.key]),t}hasTransition(){if(this._source.hasTransition())return!0;if(this._supportsFading){const t=e.co.now();for(const e in this._tiles){const i=this._tiles[e];if(void 0!==i.fadeEndTime&&i.fadeEndTime>=t)return!0}}return!1}setFeatureState(e,t,i){this._state.updateState(e=e||"_geojsonTileLayer",t,i)}removeFeatureState(e,t,i){this._state.removeFeatureState(e=e||"_geojsonTileLayer",t,i)}getFeatureState(e,t){return this._state.getState(e=e||"_geojsonTileLayer",t)}setDependencies(e,t,i){const r=this._tiles[e];r&&r.setDependencies(t,i)}reloadTilesForDependencies(e,t){for(const i in this._tiles)this._tiles[i].hasDependency(e,t)&&this._reloadTile(+i,"reloading");this._cache.filter(i=>!i.hasDependency(e,t))}_preloadTiles(t,i){if(!this._sourceLoaded){const e=()=>{this._sourceLoaded&&(this._source.off("data",e),this._preloadTiles(t,i))};return void this._source.on("data",e)}const r=new Map,n=Array.isArray(t)?t:[t],o=this.map.painter.terrain,s=this.usedForTerrain&&o?o.getScaledDemTileSize():this._source.tileSize;for(const e of n){const t=e.coveringTiles({tileSize:s,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(const e of t)r.set(e.key,e);this.usedForTerrain&&e.updateElevation(!1)}const a=Array.from(r.values());e.bp(a,(t,i)=>{const r=new e.b0(t,this._source.tileSize*t.overscaleFactor(),this.transform.tileZoom,this.map.painter,this._isRaster,this._source.worldview);this._loadTile(r,e=>{"raster-dem"===this._source.type&&r.dem&&this._backfillDEM(r),i(e,r)})},i)}}function jn(e,t){const i=Math.abs(2*e.wrap)-+(e.wrap<0),r=Math.abs(2*t.wrap)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||r-i||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function Gn(e,t){const i=1<<e.z;return[e.x/i+t,(e.x+1)/i+t]}Hn.maxOverzooming=10,Hn.maxUnderzooming=3;const Yn=e=>({u_matrix:e});function Wn(e,t){const i=e.context.gl;return new Gi({func:i.EQUAL,mask:255},e._tileClippingMaskIDs[t.key]||0,0,i.KEEP,i.KEEP,i.KEEP)}function Jn(e,t){const i=e.context.gl;return new Gi({func:i.EQUAL,mask:255},255&~(e._tileClippingMaskIDs[t.key]||0),0,i.KEEP,i.KEEP,i.KEEP)}function Zn(t,i){if(!t.frcCoverageSnapshot||!t.frcCoverageRenderer)return null;const r=t.frcCoverageSnapshot.getTileOrParent(i.canonical);if(!r||0===r.frcMask)return null;const n=t.frcCoverageRenderer.getBuffers(r.tileId);if(!n)return null;const o=new e.f(r.tileId.z,r.tileId.x,r.tileId.y),s=new e.bc(i.wrap,o);return{buffers:n,projMatrix:t.transform.calculateProjMatrix(s),coverageTile:r}}function qn(e,t,i){if(!e.frcCoverageSnapshot)return;const r=e.context,n=r.gl,o=e.getOrCreateProgram("clippingMask");r.setColorMode(Ji.disabled),r.setDepthMode(_i.disabled);for(const s of t){const t=Zn(e,s);if(!t)continue;const r=t.buffers.frcLevelSegments[i];r&&o.draw(e,n.TRIANGLES,_i.disabled,new Gi({func:n.EQUAL,mask:255},e._tileClippingMaskIDs[s.key]||0,255,n.KEEP,n.KEEP,n.INVERT),Ji.disabled,mi.disabled,Yn(t.projMatrix),`$frc_coverage_${i}`,t.buffers.vertexBuffer,t.buffers.indexBuffer,r)}}function Kn(e,t,i){if(!e.frcCoverageSnapshot)return;const r=e.context,n=r.gl,o=e.getOrCreateProgram("clippingMask");r.setColorMode(Ji.disabled),r.setDepthMode(_i.disabled);for(const s of t){const t=Zn(e,s);if(!t)continue;const r=t.buffers.frcLevelSegments[i];r&&o.draw(e,n.TRIANGLES,_i.disabled,new Gi({func:n.EQUAL,mask:255},255&~(e._tileClippingMaskIDs[s.key]||0),255,n.KEEP,n.KEEP,n.INVERT),Ji.disabled,mi.disabled,Yn(t.projMatrix),`$frc_coverage_restore_${i}`,t.buffers.vertexBuffer,t.buffers.indexBuffer,r)}}function Xn(e,t,i,r,n){if(0===t.length)return;let o=0;for(const a of t)o|=a.frcMask;const s=t.map(e=>e.coord);for(let a=0;a<9;++a)if(o&1<<a){if(qn(e,s,a),r)for(const i of t)i.frcMask&1<<a&&r(i,a,Wn(e,i.coord));if(i>0&&n)for(const i of t)i.frcMask&1<<a&&n(i,a,Jn(e,i.coord));Kn(e,s,a)}}function $n(e){for(const t of e)if(t.rings.length>0&&t.rings[0].length>0)return!0;return!1}function eo(e){const t=e.frcCoverageFadeRange;return!t||t[1]<=t[0]?0:1-Math.max(0,Math.min(1,(e.transform.zoom-t[0])/(t[1]-t[0])))}const to={loaded:!0,drawBuilding:function(e,t,i,r){e.currentLayer<e.firstLightBeamLayer&&(e.firstLightBeamLayer=e.currentLayer);const n=i.paint.get("building-ambient-occlusion-ground-intensity"),o=i.paint.get("building-ambient-occlusion-ground-radius"),s=i.paint.get("building-ambient-occlusion-ground-attenuation"),a=i.paint.get("building-opacity");if(a<=0)return;let l=n>0&&o>0,c=!0;const h=i.paint.get("building-vertical-scale");if(h<=0)return;e.shadowRenderer||(c=!1);const u=e.conflationActive&&e.style.isLayerClipped(i,t.getSource()),d=e.style.order.indexOf(i.fqid);if(function(e,t,i,r,n,o){for(const s of o){const o=t.getTile(s).getBucket(i);o&&(n&&o.updateReplacement(s,e.replacementSource,r),o.uploadUpdatedIndexBuffer(e.context))}}(e,t,i,d,u,r),function(e,t,i,r){for(const n of r){const r=t.getTile(n).getBucket(i);r&&r.needsEvaluation()&&r.uploadUpdatedColorBuffer(e.context)}}(e,t,i,r),i.resetLayerRenderingStats(e),e.shadowRenderer&&(e.shadowRenderer.useNormalOffset=!0),"shadow"===e.renderPass&&e.shadowRenderer){const n=[],o=e.shadowRenderer.getShadowPassDepthMode();Ir({painter:e,source:t,layer:i,coords:r,defines:n,blendMode:Ji.disabled,depthMode:o,opacity:a,verticalScale:h,facadeEmissiveChance:0,facadeAOIntensity:0,floodLightIntensity:0,floodLightColor:[0,0,0]})}else if("translucent"===e.renderPass){let d=["HAS_ATTRIBUTE_a_part_color_emissive","LIGHTING_3D_MODE"];c&&(d=d.concat("RENDER_SHADOWS")),e.shadowRenderer&&e.shadowRenderer.useNormalOffset&&(d=d.concat("NORMAL_OFFSET"));const f=i.paint.get("building-facade-emissive-chance"),p=i.paint.get("building-ambient-occlusion-intensity"),A=i.paint.get("building-flood-light-intensity"),g="none"===i.paint.get("building-flood-light-color-use-theme").constantOr("default"),m=i.paint.get("building-flood-light-color").toNonPremultipliedRenderColor(g?null:i.lut).toArray01().slice(0,3),_=i.paint.get("building-flood-light-ground-attenuation"),y=A>0,x=new _i(e.context.gl.LEQUAL,_i.ReadWrite,e.depthRangeFor3D);a<1&&Ir({painter:e,source:t,layer:i,coords:r,defines:d,blendMode:Ji.disabled,depthMode:x,opacity:a,verticalScale:h,facadeEmissiveChance:f,facadeAOIntensity:p,floodLightIntensity:A,floodLightColor:m,depthOnly:!0});const v=e.colorModeForRenderPass();Ir({painter:e,source:t,layer:i,coords:r,defines:d,blendMode:v,depthMode:x,opacity:a,verticalScale:h,facadeEmissiveChance:f,facadeAOIntensity:p,floodLightIntensity:A,floodLightColor:m});const w=i.paint.get("building-front-cutoff");gr(e.transform.pitch,w,!!e.terrain),l&&Cr(e,t,i,r,!0,a,n,o,A,m,s,u),y&&Cr(e,t,i,r,!1,a,n,o,A,m,_,u)}else if("light-beam"===e.renderPass){const n=["HAS_ATTRIBUTE_a_part_color_emissive","HAS_ATTRIBUTE_a_bloom_attenuation"],o=new _i(e.context.gl.LEQUAL,_i.ReadOnly,e.depthRangeFor3D);Ir({painter:e,source:t,layer:i,coords:r,defines:n,blendMode:Ji.alphaBlended,depthMode:o,opacity:a,verticalScale:h,facadeEmissiveChance:0,facadeAOIntensity:0,floodLightIntensity:0,floodLightColor:[0,0,0]})}e.shadowRenderer&&(e.shadowRenderer.useNormalOffset=!1),e.resetStencilClippingMasks()},drawRasterParticle:function(t,i,r,n,o,s){"offscreen"===t.renderPass&&function(t,i,r,n){if(!n.length)return;const o=t.context,s=o.gl,a=i.getSource();if(!(a instanceof kr))return;const l=Math.ceil(Math.sqrt(r.paint.get("raster-particle-count")));let c=r.particlePositionRGBAImage;if(!c||c.width!==l){const t=function(t){const i=t*t,r=new Uint8Array(4*i),n=.9090909090909091;for(let o=0;o<i;o++){const t=n*(e.cg(2*o+0)+Dr),i=n*(e.cg(2*o+1)+Dr),s=255*t%1,a=255*i%1,l=s,c=i-a/255,h=a;r[4*o+0]=255*(t-s/255),r[4*o+1]=255*l,r[4*o+2]=255*c,r[4*o+3]=255*h}return r}(l);c=r.particlePositionRGBAImage=new e.ay({width:l,height:l},t)}let h=r.particleFramebuffer;h?h.width!==l&&(h.destroy(),h=r.particleFramebuffer=o.createFramebuffer(l,l,1,null)):h=r.particleFramebuffer=o.createFramebuffer(l,l,1,null);const u=[];for(const e of n){const t=i.getTile(e);if(!(t instanceof Rr))continue;const n=Hr(t,a,r);if(!n)continue;const s=[t.tileSize,t.tileSize];let h=r.tileFramebuffer;h||(h=r.tileFramebuffer=o.createFramebuffer(s[0],s[1],1,null));let d=t.rasterParticleState;d||(d=t.rasterParticleState=new Ur(o,e,s,c));const f=d.update(r.lastInvalidatedAt);d.particleTextureDimension!==l&&d.updateParticleTexture(e,c);const p=d.targetColorTexture;d.targetColorTexture=d.backgroundColorTexture,d.backgroundColorTexture=p;const A=d.particleTexture0;d.particleTexture0=d.particleTexture1,d.particleTexture1=A,u.push([e,n,d,f])}if(0===u.length)return;const d=e.co.now(),f=r.previousDrawTimestamp?.001*(d-r.previousDrawTimestamp):.0167;if(r.previousDrawTimestamp=d,r.hasColorMap()){o.activeTexture.set(s.TEXTURE0+2);let t=r.colorRampTexture;t||(t=r.colorRampTexture=new e.a_(o,r.colorRamp,s.RGBA8)),t.bind(s.LINEAR,s.CLAMP_TO_EDGE)}o.bindFramebuffer.set(r.tileFramebuffer.framebuffer),function(t,i,r){const n=t.context,o=n.gl,s=i.tileFramebuffer;n.activeTexture.set(o.TEXTURE0);const a={u_texture:0,u_opacity:1.05*(c=i.paint.get("raster-particle-fade-opacity-factor"))/(c+.05)},l=t.getOrCreateProgram("rasterParticleTexture",{defines:[],overrideFog:!1});var c;for(const h of r){const[,,r,c]=h;s.colorAttachment0.set(r.targetColorTexture.texture),n.viewport.set([0,0,s.width,s.height]),n.clear({color:e.i.transparent}),c&&(r.backgroundColorTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE),l.draw(t,o.TRIANGLES,_i.disabled,Gi.disabled,Ji.alphaBlended,mi.disabled,a,i.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments))}}(t,r,u),function(t,i,r,n){const o=t.context,s=o.gl,a=r.tileFramebuffer,l="globe"===t.transform.projection.name,c=r.paint.get("raster-particle-max-speed");for(const h of n){const[n,u,d]=h;o.activeTexture.set(s.TEXTURE0+0),u.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE),a.colorAttachment0.set(d.targetColorTexture.texture);const f=t.getOrCreateProgram("rasterParticleDraw",{defines:u.defines,overrideFog:!1});o.activeTexture.set(s.TEXTURE0+1);const p=u.scalarData?[]:[0,1,2,3].map(t=>e.ev[t](n));p.push(n);const A=n.canonical.x,g=n.canonical.y;for(const e of p){const o=i.getTile(l?e.wrapped():e);if(!o)continue;const a=o.rasterParticleState;if(!a)continue;const h=e.canonical.x+(1<<e.canonical.z)*(e.wrap-n.wrap),d=e.canonical.y;a.particleTexture0.bind(s.NEAREST,s.CLAMP_TO_EDGE);const p=Mr(1,a.particleTexture0.size[0],[h-A,d-g],0,u.texture.size,2,c,u.textureOffset,u.scale,u.offset);f.draw(t,s.POINTS,_i.disabled,Gi.disabled,Ji.alphaBlended,mi.disabled,p,r.id,a.particleIndexBuffer,void 0,a.particleSegment)}}}(t,i,r,u),o.bindFramebuffer.set(r.particleFramebuffer.framebuffer),function(t,i,r,n){const o=t.context,s=o.gl,a=i.paint.get("raster-particle-max-speed"),l=n*i.paint.get("raster-particle-speed-factor")*.15,c=function(e){return Math.pow(e,6)}(.01+1*i.paint.get("raster-particle-reset-rate-factor")),h=i.particleFramebuffer;o.viewport.set([0,0,h.width,h.height]);for(const u of r){const[,r,n]=u;o.activeTexture.set(s.TEXTURE0+0),r.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE),o.activeTexture.set(s.TEXTURE0+1);const d=n.particleTexture0;d.bind(s.NEAREST,s.CLAMP_TO_EDGE);const f=Qr(1,d.size[0],0,r.texture.size,a,l,c,r.textureOffset,r.scale,r.offset);h.colorAttachment0.set(n.particleTexture1.texture),o.clear({color:e.i.transparent}),t.getOrCreateProgram("rasterParticleUpdate",{defines:r.defines}).draw(t,s.TRIANGLES,_i.disabled,Gi.disabled,Ji.unblended,mi.disabled,f,i.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments)}}(t,r,u,f)}(t,i,r,n),"translucent"===t.renderPass&&(function(t,i,r,n){const o=t.context,s=o.gl,a=i.get
1Source().tileSize,l=5*(1-e.fq(e.R,e.R+1,t.transform.zoom))*a+r.paint.get("raster-particle-elevation"),c=!t.options.moving,h="globe"===t.transform.projection.name;if(!n.length)return;const[u,d]=t.stencilConfigForOverlap(n),f=[];h&&f.push("PROJECTION_GLOBE_VIEW");const p=t.stencilModeFor3D();for(const A of d){const n=A.toUnwrapped(),a=i.getTile(A);if(!a.rasterParticleState)continue;const d=a.rasterParticleState,g=100;a.registerFadeDuration(g);const m=i.findLoadedParent(A,0),_=Vr(a,m,i,t.transform,g);let y,x;t.terrain&&t.terrain.prepareDrawTile(),o.activeTexture.set(s.TEXTURE0),d.targetColorTexture.bind(s.LINEAR,s.CLAMP_TO_EDGE),o.activeTexture.set(s.TEXTURE1),m&&m.rasterParticleState?(m.rasterParticleState.targetColorTexture.bind(s.LINEAR,s.CLAMP_TO_EDGE),y=Math.pow(2,m.tileID.overscaledZ-a.tileID.overscaledZ),x=[a.tileID.canonical.x*y%1,a.tileID.canonical.y*y%1]):d.targetColorTexture.bind(s.LINEAR,s.CLAMP_TO_EDGE);const v=h?t.transform.expandedFarZProjMatrix:t.transform.calculateProjMatrix(n,c),w=t.transform,E=jr(w),b=e.fF(A.canonical),I=e.cU(b.getCenter().lat);let C,B,D,T,M;h?(C=Float32Array.from(e.dh(e.dk(A.canonical))),B=Float32Array.from(w.globeMatrix),D=Float32Array.from(e.by(w)),T=[e.ek(w.center.lng),e.el(w.center.lat)],M=Float32Array.from(e.cP(A.canonical,b,I,w.worldSize/w._pixelsPerMercatorPixel))):(C=new Float32Array(16),B=new Float32Array(9),D=new Float32Array(16),T=[0,0],M=new Float32Array(9));const Q=Tr(v,C,B,D,M,x||[0,0],e.dm(t.transform.zoom),T,E,y||1,_,l),S=t.isTileAffectedByFog(A),P=t.getOrCreateProgram("rasterParticle",{defines:f,overrideFog:S});if(t.uploadCommonUniforms(o,P,n),h){const e=new _i(s.LEQUAL,_i.ReadOnly,t.depthRangeFor3D),i=0,n=t.globeSharedBuffers;if(n){const[o,a,l]=n.getGridBuffers(I,0!==i);P.draw(t,s.TRIANGLES,e,p,Ji.alphaBlended,t.renderElevatedRasterBackface?mi.frontCCW:mi.backCCW,Q,r.id,o,a,l)}}else{const e=t.depthModeForSublayer(0,_i.ReadOnly),i=u[A.overscaledZ],{tileBoundsBuffer:n,tileBoundsIndexBuffer:o,tileBoundsSegments:l}=t.getTileBoundsBuffers(a);P.draw(t,s.TRIANGLES,e,i,Ji.alphaBlended,mi.disabled,Q,r.id,n,o,l)}}t.resetStencilClippingMasks()}(t,i,r,n),t.style.map.triggerRepaint())},prepareRasterParticle:function(e,t,i){const r=t.getSource();if(!(r instanceof kr&&r.loaded()))return;const n=e.sourceLayer||r.rasterLayerIds&&r.rasterLayerIds[0];if(!n)return;const o=e.paint.get("raster-particle-array-band")||r.getInitialBand(n);if(null==o)return;const s=t.getIds().map(e=>t.getTileByID(e));for(const a of s)a.updateNeeded(e.id,o)&&r.prepareTile(a,n,e.id,o)},Rain:class extends Tn{constructor(){super(4.25),this._params={intensity:.5,timeFactor:1,velocityConeAperture:0,velocity:300,boxSize:2500,dropletSizeX:1,dropletSizeYScale:10,distortionStrength:70,screenThinning:{intensity:.57,start:.46,range:1.17,fadePower:.17,affectedRatio:1,particleOffset:-.2},color:{r:.66,g:.68,b:.74,a:.7},direction:{x:-50,y:-35},shapeDirPower:2,shapeNormalPower:1},this._vignetteParams={strength:1,start:.7,range:1,fadePower:.4,color:{r:.27,g:.27,b:.27,a:1}},this.particlesCount=16e3,this._devtoolsFolder=null,this._painter=null}destroy(){super.destroy()}update(t){const i=t.context;if(!this.particlesVx){const t=Bn(this.particlesCount),r=new e.aW,n=new e.aT;let o=0;const s=e.eq(1323123451230);for(let e=0;e<t.length;++e){const i=t[e],a=[2*s()-1,s(),s(),s()];r.emplaceBack(i[0],i[1],i[2],-1,-1,...a),r.emplaceBack(i[0],i[1],i[2],1,-1,...a),r.emplaceBack(i[0],i[1],i[2],1,1,...a),r.emplaceBack(i[0],i[1],i[2],-1,1,...a),n.emplaceBack(o+0,o+1,o+2),n.emplaceBack(o+0,o+2,o+3),o+=4}this.particlesVx=i.createVertexBuffer(r,wn.members),this.particlesIdx=i.createIndexBuffer(n)}}getDrawParams(e){if(!e.style.rain)return null;const t=e.style.rain.state,i=structuredClone(this._params);i.intensity=t.density,i.timeFactor=t.intensity,i.color=structuredClone(t.color),i.screenThinning.intensity=t.centerThinning,i.dropletSizeX=t.dropletSize[0],i.dropletSizeYScale=t.dropletSize[1]/t.dropletSize[0],i.distortionStrength=100*t.distortionStrength;const r=structuredClone(this._vignetteParams);return r.strength=1,r.color=structuredClone(t.vignetteColor),{params:i,vignetteParam
vendor: 4,247 bytes, line 1
1s:r,revealParams:{revealStart:0,revealRange:.01},direction:structuredClone(t.direction)}}draw(t){const i=this.getDrawParams(t);if(!i)return;const{params:r,revealParams:n,direction:o,vignetteParams:s}=i,a=t.transform.zoom;if(n.revealStart>a)return;const l=Dn(0,1,n.revealStart,n.revealStart+n.revealRange,a);if(!this.particlesVx||!this.particlesIdx)return;s.strength*=l;const c=this.updateOnRender(t,r.timeFactor),h=t.context,u=h.gl,d=t.transform;this.screenTexture&&this.screenTexture.size[0]===t.width&&this.screenTexture.size[1]===t.height||(this.screenTexture=new e.a_(h,{width:t.width,height:t.height,data:null},u.RGBA8)),r.distortionStrength>0&&(h.activeTexture.set(u.TEXTURE0),this.screenTexture.bind(u.LINEAR,u.CLAMP_TO_EDGE),u.copyTexSubImage2D(u.TEXTURE_2D,0,0,0,0,0,t.width,t.height));const f=t.getOrCreateProgram("rainParticle");t.uploadCommonUniforms(h,f),h.activeTexture.set(u.TEXTURE0),this.screenTexture.bind(u.LINEAR,u.CLAMP_TO_EDGE);const p=[r.color.r,r.color.g,r.color.b,r.color.a],A=(i,n)=>{const s=Cn(this._movement.getPosition(),i),a=r.dropletSizeX,l=r.dropletSizeX*r.dropletSizeYScale,h=t.width/2,A=t.height/2,g=Dn(0,r.screenThinning.start,0,1,r.screenThinning.intensity),m=Dn(.001,r.screenThinning.range,0,1,r.screenThinning.intensity),_=Dn(0,r.screenThinning.particleOffset,0,1,r.screenThinning.intensity),y=(x={modelview:c.modelviewMatrix,projection:c.projectionMatrix,time:this._accumulatedTimeFromStart,camPos:s,velocityConeAperture:r.velocityConeAperture,velocity:r.velocity,boxSize:i,rainDropletSize:[a,l],distortionStrength:r.distortionStrength,rainDirection:o,color:p,screenSize:[d.width,d.height],thinningCenterPos:[h,A],thinningShape:[g,m,Math.pow(10,r.screenThinning.fadePower)],thinningAffectedRatio:r.screenThinning.affectedRatio,thinningParticleOffset:_,shapeDirectionalPower:r.shapeDirPower,shapeNormalPower:r.shapeNormalPower,mode:n?0:1},{u_modelview:Float32Array.from(x.modelview),u_projection:Float32Array.from(x.projection),u_time:x.time,u_cam_pos:x.camPos,u_texScreen:0,u_velocityConeAperture:x.velocityConeAperture,u_velocity:x.velocity,u_boxSize:x.boxSize,u_rainDropletSize:x.rainDropletSize,u_distortionStrength:x.distortionStrength,u_rainDirection:x.rainDirection,u_color:x.color,u_screenSize:x.screenSize,u_thinningCenterPos:x.thinningCenterPos,u_thinningShape:x.thinningShape,u_thinningAffectedRatio:x.thinningAffectedRatio,u_thinningParticleOffset:x.thinningParticleOffset,u_shapeDirectionalPower:x.shapeDirectionalPower,u_shapeNormalPower:x.shapeNormalPower,u_mode:x.mode});var x;const v=Math.round(r.intensity*this.particlesCount),w=e.aJ.simpleSegment(0,0,4*v,2*v);f.draw(t,u.TRIANGLES,_i.disabled,Gi.disabled,Ji.alphaBlended,mi.disabled,y,"rain_particles",this.particlesVx,this.particlesIdx,w)};r.distortionStrength>0&&A(r.boxSize,!0),A(r.boxSize,!1),this._vignette.draw(t,s)}},Snow:class extends Tn{constructor(){super(2.25),this._params={intensity:.85,timeFactor:.75,velocityConeAperture:70,velocity:40,horizontalOscillationRadius:4,horizontalOscillationRate:1.5,boxSize:2e3,billboardSize:2,shapeFadeStart:.27,shapeFadePower:.21,screenThinning:{intensity:.4,start:.15,range:1.4,fadePower:.24,affectedRatio:1,particleOffset:-.2},color:{r:1,g:1,b:1,a:1},direction:{x:-50,y:-35}},this._vignetteParams={strength:.3,start:.78,range:.46,fadePower:.2,color:{r:1,g:1,b:1,a:1}},this.particlesCount=16e3,this._devtoolsFolder=null,this._painter=null}destroy(){super.destroy()}update(t){const i=t.context;if(!this.particlesVx){const t=Bn(this.particlesCount),r=new e.aK,n=new e.aT;let o=0;const s=e.eq(1323123451230);for(let e=0;e<t.length;++e){const i=t[e],a=s(),l=s(),c=s(),h=[e/t.length,a,l,c],u=[s(),s()];r.emplaceBack(i[0],i[1],i[2],-1,-1,...h,...u),r.emplaceBack(i[0],i[1],i[2],1,-1,...h,...u),r.emplaceBack(i[0],i[1],i[2],1,1,...h,...u),r.emplaceBack(i[0],i[1],i[2],-1,1,...h,...u),n.emplaceBack(o+0,o+1,o+2),n.emplaceBack(o+0,o+2,o+3),o+=4}this.particlesVx=i.createVertexBuffer(r,Mn.members),this.particlesIdx=i.createIndexBuffer(n)}}getDrawParams(e){if(!e.style.snow)return null;const t=e.style.snow.state,i=structuredClone(this._params);i.intensity=t.density,i.timeFactor=t.intensity,i.color=structuredClone(t.color),i.screenThinning.intensity=t.centerThinning,i.billboardSize=2.79*t.flakeSize;
vendor: 17,710 bytes, line 1
1const r=structuredClone(this._vignetteParams);return r.strength=1,r.color=structuredClone(t.vignetteColor),{params:i,vignetteParams:r,revealParams:{revealStart:0,revealRange:.01},direction:structuredClone(t.direction)}}draw(t){const i=this.getDrawParams(t);if(!i)return;const{params:r,revealParams:n,direction:o,vignetteParams:s}=i,a=t.transform.zoom;if(n.revealStart>a)return;const l=Dn(0,1,n.revealStart,n.revealStart+n.revealRange,a);s.strength*=l;const c=this.updateOnRender(t,r.timeFactor);if(!this.particlesVx||!this.particlesIdx)return;const h=t.context,u=h.gl,d=t.transform,f=t.getOrCreateProgram("snowParticle");t.uploadCommonUniforms(h,f),((i,r,n)=>{const s=Cn(this._movement.getPosition(),i),a=d.width/2,l=d.height/2,h=Dn(0,n.screenThinning.start,0,1,n.screenThinning.intensity),p=Dn(.001,n.screenThinning.range,0,1,n.screenThinning.intensity),A=Dn(0,n.screenThinning.particleOffset,0,1,n.screenThinning.intensity),g=(m={modelview:c.modelviewMatrix,projection:c.projectionMatrix,time:this._accumulatedTimeFromStart,camPos:s,velocityConeAperture:n.velocityConeAperture,velocity:n.velocity,horizontalOscillationRadius:n.horizontalOscillationRadius,horizontalOscillationRate:n.horizontalOscillationRate,boxSize:i,billboardSize:1*n.billboardSize,simpleShapeParameters:[n.shapeFadeStart,n.shapeFadePower],screenSize:[d.width,d.height],thinningCenterPos:[a,l],thinningShape:[h,p,Math.pow(10,n.screenThinning.fadePower)],thinningAffectedRatio:n.screenThinning.affectedRatio,thinningParticleOffset:A,color:[n.color.r,n.color.g,n.color.b,n.color.a],direction:o},{u_modelview:Float32Array.from(m.modelview),u_projection:Float32Array.from(m.projection),u_time:m.time,u_cam_pos:m.camPos,u_velocityConeAperture:m.velocityConeAperture,u_velocity:m.velocity,u_horizontalOscillationRadius:m.horizontalOscillationRadius,u_horizontalOscillationRate:m.horizontalOscillationRate,u_boxSize:m.boxSize,u_billboardSize:m.billboardSize,u_simpleShapeParameters:m.simpleShapeParameters,u_screenSize:m.screenSize,u_thinningCenterPos:m.thinningCenterPos,u_thinningShape:m.thinningShape,u_thinningAffectedRatio:m.thinningAffectedRatio,u_thinningParticleOffset:m.thinningParticleOffset,u_particleColor:m.color,u_direction:m.direction});var m;const _=Math.round(n.intensity*this.particlesCount),y=e.aJ.simpleSegment(0,0,4*_,2*_);this.particlesVx&&this.particlesIdx&&f.draw(t,u.TRIANGLES,_i.disabled,Gi.disabled,Ji.alphaBlended,mi.disabled,g,"snow_particles",this.particlesVx,this.particlesIdx,y)})(r.boxSize,0,r),this._vignette.draw(t,s)}},shaders:vn,programUniforms:Rn,drawElevatedStructures:function(e){const{painter:t,sourceCache:i,layer:r,coords:n,colorMode:o}=e,s=t.context.gl,a=e.painter.shadowRenderer,l=!!a&&a.enabled,c=new _i(t.context.gl.LEQUAL,_i.ReadOnly,t.depthRangeFor3D);let h=[0,0,0];if(l){const e=t.style.directionalLight,i=t.style.ambientLight;e&&i&&(h=ur(t.style,e,i))}const u=e=>{for(const u of n){const n=i.getTile(u),d=n.getBucket(r);if(!d)continue;const f=d.hdExt?d.hdExt.elevatedStructures:void 0;if(!f)continue;let p,A;if(e?(p=f.renderableBridgeSegments,A=f.bridgeProgramConfigurations.get(r.id)):(p=f.renderableTunnelSegments,A=f.tunnelProgramConfigurations.get(r.id)),!p||0===p.segments[0].primitiveLength)continue;A.updatePaintBuffers(),t.prepareDrawTile();const g=t.isTileAffectedByFog(u),m=[];l&&m.push("RENDER_SHADOWS","NORMAL_OFFSET");const _=t.getOrCreateProgram("elevatedStructures",{config:A,overrideFog:g,defines:m}),y=t.translatePosMatrix(u.projMatrix,n,r.paint.get("fill-translate"),r.paint.get("fill-translate-anchor"));l&&a.setupShadows(n.tileID.toUnwrapped(),_,"vector-tile");const x=Sn(y,h);t.uploadCommonUniforms(t.context,_,u.toUnwrapped()),_.draw(t,s.TRIANGLES,c,Gi.disabled,o,mi.backCCW,x,r.id,f.vertexBuffer,f.indexBuffer,p,r.paint,t.transform.zoom,A,[f.vertexBufferNormal])}};u(!0),u(!1)},drawElevatedFillShadows:function(e){const{painter:t,sourceCache:i,layer:r,coords:n}=e,o=t.context.gl,s=e.painter.shadowRenderer;for(const a of n){const e=i.getTile(a),n=e.getBucket(r);if(!n)continue;const l=n.hdExt?n.hdExt.elevatedStructures:void 0;if(!l)continue;if(!l.shadowCasterSegments||0===l.shadowCasterSegments.segments[0].primitiveLength)continue;t.prepareDrawTile();const c=n.bufferData.programConfigurations.get(r.id),h=t.isTileAffectedByFog(a),u=t.getOrCreateProgram("elevatedStructuresDepth",{config:c,overrideFog:h}),d=s.calculateShadowPassMatrixFromTile(e.tileID.toUnwrapped());t.uploadCommonUniforms(t.context,u,a.toUnwrapped());const f=Qn(d,0);u.draw(t,o.TRIANGLES,s.getShadowPassDepthMode(),Gi.disabled,Ji.disabled,mi.disabled,f,r.id,l.vertexBuffer,l.indexBuffer,l.shadowCasterSegments,r.paint,t.transform.zoom,c)}},drawDepthPrepass:function(t,i,r,n,o){if(!i)return;if(!r.layout||"none"===r.layout.get("fill-elevation-reference")||0===r.paint.get("fill-opacity").constantOr(1))return;const s=t.context.gl,a=new _i(t.context.gl.LEQUAL,_i.ReadWrite,t.depthRangeFor3D),l=new _i(t.context.gl.GREATER,_i.ReadWrite,t.depthRangeFor3D),c=function(t){let i=.01;return t.isOrthographic&&(i=e.dY(1e-4,i,e.cc(t.pitch>=Ui?1:t.pitch/Ui))),2*i}(t.transform),h=t.transform.getFreeCameraOptions().position,u="elevatedStructuresDepthReconstruct",d=t.getOrCreateProgram(u,{defines:["DEPTH_RECONSTRUCTION"]}),f=t.getOrCreateProgram(u);for(const e of n){const n=i.getTile(e),u=n.getBucket(r);if(!u)continue;if(!u.hdExt)continue;const p=u.hdExt.elevatedStructures,A=u.hdExt.elevationBufferData;if(!p||!p.depthSegments||!A)continue;const g=A.heightRange,m=zn(e.toUnwrapped(),h),_=t.translatePosMatrix(e.projMatrix,n,r.paint.get("fill-translate"),r.paint.get("fill-translate-anchor"));let y,x,v,w;if("initialize"===o){if(!g||g.min>=1||0===p.depthSegments.segments[0].primitiveLength)continue;y=Pn(_,m,c,1,0),x=a,v=p.depthSegments,w=d}else if("reset"===o){if(!g||g.min>=0||0===p.maskSegments.segments[0].primitiveLength)continue;y=Pn(_,m,0,0,1),x=l,v=p.maskSegments,w=d}else if("geometry"===o){if(0===p.depthSegments.segments[0].primitiveLength)continue;y=Pn(_,m,c,1,0),x=a,v=p.depthSegments,w=f}w.draw(t,s.TRIANGLES,x,Gi.disabled,Ji.disabled,mi.disabled,y,r.id,p.vertexBuffer,p.indexBuffer,v,r.paint,t.transform.zoom)}},drawGroundShadowMask:function(e,t,i,r){if(!t)return;if(!i.layout||"none"===i.layout.get("fill-elevation-reference")||0===i.paint.get("fill-opacity").constantOr(1))return;const n=e.context.gl,o=new _i(n.LEQUAL,_i.ReadOnly,e.depthRangeFor3D),s=new Gi({func:n.ALWAYS,mask:255},255,255,n.KEEP,n.KEEP,n.REPLACE),a=e.transform.getFreeCameraOptions().position,l=e.getOrCreateProgram("elevatedStructuresDepthReconstruct");for(const c of r){const r=t.getTile(c),h=r.getBucket(i);if(!h)continue;const u=h.hdExt?h.hdExt.elevatedStructures:void 0;if(!u||!u.depthSegments||0===u.depthSegments.segments[0].primitiveLength)continue;const d=zn(c.toUnwrapped(),a),f=e.translatePosMatrix(c.projMatrix,r,i.paint.get("fill-translate"),i.paint.get("fill-translate-anchor")),p=Pn(f,d,0,1,0);l.draw(e,n.TRIANGLES,o,s,Ji.disabled,mi.disabled,p,i.id,u.vertexBuffer,u.indexBuffer,u.depthSegments,i.paint,e.transform.zoom)}},IndoorManager:class extends e.y{constructor(t,i=!1){super(),this._style=t,this._buildings={},this._activeFloors=new Set,this._closestBuildingId=null,this._indoorState={selectedFloorId:null,activeFloorsVisible:!0,activeFloors:this._activeFloors},this._buildingDetectionStrategy=new Br,this._initialLoadDone=!1,e.bs(["_updateUI"],this);const r=()=>{this._style.isIndoorEnabled()&&(this._style.map.on("load",()=>{this._initialLoadDone=!0,this._indoorState&&this._indoorState.needsUpdate&&(this._indoorState.needsUpdate=!1,this._style.updateIndoorDependentLayers()),this._updateUI()}),this._style.map.on("move",this._updateUI),this._style.map.on("idle",this._updateUI))};i?(this._initialLoadDone=!0,r()):this._style.on("style.load",r)}destroy(){this._buildings={},this._activeFloors=new Set,this._indoorState=null}selectFloor(e){e===this._selectedFloorId&&this._indoorState&&this._indoorState.activeFloorsVisible||(this._selectedFloorId=e,this._recalculateActiveFloors())}setActiveFloorsVisibility(e){this._updateActiveFloors(e),this._updateIndoorSelector()}setIndoorData(e){let t=!1;for(const[i,r]of Object.entries(e.buildings))if(this._buildings[i])for(const e of r.floorIds)this._buildings[i].floorIds.add(e),this._buildings[i].floors[e]?this._mergeFloors(this._buildings[i].floors[e],r.floors[e]):(this._buildings[i].floors[e]=r.floors[e],t=!0);else this._buildings[i]=r,t=!0;t&&this._recalculateActiveFloors()}getIndoorTileOptions(e,t){return this._indoorState?{sourceLayers:this._style.getIndoorSourceLayers(e,t),indoorState:this._indoorState}:null}getControlState(){const e=this._buildings,t=this._closestBuildingId,i=t&&e?e[t]:void 0;if(!i)return{selectedFloorId:null,activeFloorsVisible:!!this._indoorState&&this._indoorState.activeFloorsVisible,floors:[]};let r=null;for(const o of i.floorIds)if(this._activeFloors&&this._activeFloors.has(o)){r=o;break}const n=Array.from(i.floorIds).map(e=>({id:e,name:i.floors[e].name,zIndex:i.floors[e].zIndex})).sort((e,t)=>t.zIndex-e.zIndex).filter((e,t,i)=>0===t||e.zIndex!==i[t-1].zIndex);return{selectedFloorId:r,activeFloorsVisible:!!this._indoorState&&this._indoorState.activeFloorsVisible,floors:n}}_updateUI(){this._initialLoadDone=!0;const e=this._style.map.transform,t=this._buildingDetectionStrategy.findClosestBuilding(this._buildings,e.center,e.zoom,e.getBounds(),this._makeViewportPolygon());if(t!==this._closestBuildingId){const e=this._closestBuildingId;this._closestBuildingId=t,this._onBuildingTransition(e,t),this._updateIndoorSelector()}}_onBuildingTransition(e,t){if(!this._indoorState)return;const i=!!t&&!e;!t&&e?(this._indoorState.activeFloors=new Set,this._indoorState.activeFloorsVisible=!1,this._style.updateIndoorDependentLayers()):i&&(this._recalculateActiveFloors(),this._updateActiveFloors(!0))}_updateIndoorSelector(){this.fire(new e.x("selector-update",this.getControlState()))}_updateActiveFloors(e){this._indoorState={selectedFloorId:this._selectedFloorId,activeFloorsVisible:e,activeFloors:this._activeFloors},this._initialLoadDone?this._style.updateIndoorDependentLayers():this._indoorState.needsUpdate=!0}_recalculateActiveFloors(){if(!this._buildings)return;const t=e.a5.calculate(this._buildings,this._selectedFloorId,this._activeFloors);(function(e,t){if(e===t)return!0;if(!e||!t)return!1;if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0})(t,this._activeFloors)||(this._activeFloors=t,this._updateActiveFloors(!!this._indoorState&&this._indoorState.activeFloorsVisible),this._updateIndoorSelector())}_mergeFloors(e,t){t.geometry&&(e.geometry?("Polygon"===e.geometry.type&&(e.geometry={type:"MultiPolygon",coordinates:[e.geometry.coordinates]}),"Polygon"===t.geometry.type?e.geometry.coordinates.push(t.geometry.coordinates):"MultiPolygon"===t.geometry.type&&e.geometry.coordinates.push(...t.geometry.coordinates)):e.geometry=t.geometry)}_makeViewportPolygon(){const t=this._style.map.transform,i=t.width,r=t.height;return[t.pointLocation(new e.au(0,0)),t.pointLocation(new e.au(i,0)),t.pointLocation(new e.au(i,r)),t.pointLocation(new e.au(0,r))].map(t=>new e.au(t.lng,t.lat))}},HdCoverageState:class{constructor(){this.coverageSourceCaches={},this.manager=new Nn}},updateFrcCoverage:function(e,t){t.manager.clear();for(const r in e._mergedHdRoadCoverageSourceCaches){const i=e._mergedHdRoadCoverageSourceCaches[r]._tiles;for(const e in i){const r=i[e];if(!r||!r.loaded())continue;const n=r.frcCoveragePolygons;t.manager.addTileCoverage(r.tileID.canonical,n&&n.length>0?n:[])}}const i=t.manager.updateSnapshotIfNeeded();if(e.map.painter&&(e.map.painter.frcCoverageSnapshot=i.empty()?null:i),!i.empty()){const t=[e._mergedOtherSourceCaches,e._mergedSymbolSourceCaches];for(const e of t)for(const t in e){const i=e[t];for(const e in i._tiles){const t=i._tiles[e];t&&t.hasDeferredRoadStructure&&(t.hasDeferredRoadStructure=!1,i._reloadTile(+e,"reloading"))}}}},updateHdCoverageSourceCache:function(t,i,r){if("fill"!==r.type||r.sourceLayer!==e.X)return;if(i.coverageSourceCaches[r.source])return;const n=t.getOwnSource(r.source);if(!n||"vector"!==n.type)return;const o=`hd-road-coverage:${r.source}`,s=e.ea(o,t.scope),a=t._sourceCaches[o]=new Hn(s,n,e.aC.HdRoadCoverage);i.coverageSourceCaches[r.source]=a,a.setMaxzoomOverride(14),a.onAdd(t.map);const l=t._otherSourceCaches[r.source];l&&l._sourceLoaded&&(a._sourceLoaded=!0)},updateFrcCoverageFadeRange:function(t,i){let r=null,n=null;const o={globals:{zoom:0}};t.forEachFragmentStyle(i=>{if(r)return;const s=i.stylesheet?i.stylesheet.schema:null;if(!s||!s.sdCoverageFadeRange)return;const a=e.ea("sdCoverageFadeRange",i.scope),l=i.options?i.options.get(a):void 0,c=l?l.value||l.default:null;if(c){const e=c.evaluate(o);Array.isArray(e)&&2===e.length&&(e[0]>0||e[1]>0)&&(r=[e[0],e[1]])}const h=e.ea("sdCoverageSourceLayers",i.scope),u=i.options?i.options.get(h):void 0,d=u?u.value||u.default:null;if(d){const e=d.evaluate(o);Array.isArray(e)&&e.length>0&&(n=e)}else{const e=t.stylesheet&&t.stylesheet.imports||[];for(const t of e)if(t.id===i.scope){const e=t.config?t.config.sdCoverageSourceLayers:void 0;Array.isArray(e)&&e.length>0&&(n=e);break}}}),i.frcCoverageFadeRange=r,i.frcCoverageSourceLayers=null!=r?n||["road","structure"]:[]},FrcCoverageRenderer:class{constructor(){this.tileBuffers=new Map,this._context=null}update(e,t){this._context=e;const i=new Set;for(const r of t){if(0===r.frcMask)continue;let t=!1;for(const e of r.polygons)if(e.hasGeometry()){t=!0;break}if(!t)continue;const n=`${r.tileId.z}/${r.tileId.x}/${r.tileId.y}`;if(i.add(n),!this.tileBuffers.has(n)){const t=this._createBuffers(e,r);t&&this.tileBuffers.set(n,t)}}for(const r of this.tileBuffers.keys())if(!i.has(r)){const e=this.tileBuffers.get(r);e.vertexBuffer.destroy(),e.indexBuffer.destroy();for(const t of e.frcLevelSegments)t&&t.destroy();this.tileBuffers.delete(r)}}getBuffers(e){return this.tileBuffers.get(`${e.z}/${e.x}/${e.y}`)||null}destroy(){for(const e of this.tileBuffers.values()){e.vertexBuffer.destroy(),e.indexBuffer.destroy();for(const t of e.frcLevelSegments)t&&t.destroy()}this.tileBuffers.clear()}_createBuffers(t,i){const r=new e.aQ,n=new e.aT,o=[];for(const a of i.polygons){if(!a.hasGeometry()||0===a.rings.length)continue;const t=r.length,i=n.length,s=r.length,l=[],c=[];let h=0;for(let e=0;e<a.rings.length;e++){const t=a.rings[e];if(!(t.length<3)){e>0&&c.push(h);for(const e of t)r.emplaceBack(e.x,e.y),l.push(e.x,e.y),h++}}const u=e.c8(l,c.length>0?c:void 0);for(let e=0;e<u.length;e+=3)n.emplaceBack(s+u[e],s+u[e+1],s+u[e+2]);o.push({vertexOffset:t,indexOffset:i,vertexCount:r.length-t,indexCount:n.length-i,frcMask:a.frcMask})}if(0===r.length)return null;const s=new Array(9).fill(null);for(let a=0;a<9;++a){const t=1<<a;if(0===(i.frcMask&t))continue;let r=1/0,n=0,l=0,c=!1;for(const e of o)0!==(e.frcMask&t)&&(r=Math.min(r,e.indexOffset),n=Math.max(n,e.indexOffset+e.indexCount),l=Math.max(l,e.vertexOffset+e.vertexCount),c=!0);c&&(s[a]=e.aJ.simpleSegment(0,r,l,n-r))}return{vertexBuffer:t.createVertexBuffer(r,e.eQ.members),indexBuffer:t.createIndexBuffer(n),frcLevelSegments:s}}},drawFillFrcCoverageFirstPass:function(e){const{painter:t,bucket:i,coord:r,elevatedGeometry:n}=e,o="road"===i.sourceLayerName,s="structure"===i.sourceLayerName;if(!o&&!s)return"fallthrough";if(!t.frcCoverageSnapshot||n)return"fallthrough";const a=t.frcCoverageSnapshot.getTileOrParent(r.canonical);if(!a||0===a.frcMask)return"fallthrough";const l=i.hdExt&&i.hdExt.frcData,c=!!l&&!l.empty(),h=$n(a.polygons);if(s&&!h)return"skip";if(s&&h)return e.polygonCoverageTiles.push({coord:e.coord,bufferData:e.bufferData,program:e.program,programConfiguration:e.programConfiguration,uniformValues:e.uniformValues,depthMode:e.depthMode,dynamicBuffers:e.dynamicBuffers,indexBuffer:e.indexBuffer,segments:e.segments,frcMask:a.frcMask}),"deferred";if(o&&c&&l){const i=a.frcMask,r=t.transform.zoom;for(const[n,o]of l.frcPerLevel)i&1<<n||0!==o.segments.length&&e.program.draw(t,e.drawMode,e.depthMode,e.stencilMode,e.colorMode,mi.disabled,e.uniformValues,e.layer.id,e.bufferData.layoutVertexBuffer,e.indexBuffer,o,e.layer.paint,r,e.programConfiguration,e.dynamicBuffers);return l.frcNonRoadSegments.segments.length>0&&e.program.draw(t,e.drawMode,e.depthMode,e.stencilMode,e.colorMode,mi.disabled,e.uniformValues,e.layer.id,e.bufferData.layoutVertexBuffer,e.indexBuffer,l.frcNonRoadSegments,e.layer.paint,r,e.programConfiguration,e.dynamicBuffers),"drawn"}return"fallthrough"},drawFillFrcCoverageSecondPass:function(e,t,i,r,n){if(0===i.length)return;const o=eo(e),s=e.transform.zoom,a=(i,o,a)=>{1!==a&&(i.uniformValues.u_opacity_multiplier=a),i.program.draw(e,r,i.depthMode,o,n,mi.disabled,i.uniformValues,t.id,i.bufferData.layoutVertexBuffer,i.indexBuffer,i.segments,t.paint,s,i.programConfiguration,i.dynamicBuffers),1!==a&&(i.uniformValues.u_opacity_multiplier=1)};Xn(e,i,o,(e,t,i)=>a(e,i,1),(e,t,i)=>a(e,i,o))},drawLineFrcCoverageDetect:function(e,t,i,r,n,o,s,a,l,c){const h=t.hdExt&&t.hdExt.frcData;if(!h||0===h.frcPerLevel.size)return null;if(!e.frcCoverageSnapshot||r)return null;const u=e.frcCoverageSnapshot.getTileOrParent(i.canonical);if(!u||0===u.frcMask)return null;const d=$n(u.polygons),f=e.frcCoverageFadeRange,p=null!=f&&e.transform.zoom>=f[0];if(d&&p){let e=!1;for(const t of h.frcPerLevel.keys())if(u.frcMask&1<<t){e=!0;break}e&&c.push({coord:i,bucket:t,uniformValues:n,programConfiguration:o,program:s,depthMode:a,colorMode:l,frcMask:u.frcMask})}return{coverageTile:u,frcMask:u.frcMask,active:p,hasPolygonGeometry:d}},drawLineFrcRenderLine:function(e,t,i,r){const n=e.hdExt&&e.hdExt.frcData;if(!n)return;const o=t.frcMask;for(const[a,l]of n.frcPerLevel)o&1<<a||r(i,l);const s=n.frcNonRoadSegments;s.segments.length>0&&r(i,s)}
1,drawLineFrcFadePass:function(e,t,i,r,n,o,s){if(r.hasPolygonGeometry)return;const a=t.hdExt&&t.hdExt.frcData;if(!a||!e.frcCoverageFadeRange)return;const[l,c]=e.frcCoverageFadeRange;if(l>=c)return;const h=1-Math.max(0,Math.min(1,(e.transform.zoom-l)/(c-l)));if(h<=0)return;const u=n?o:e.stencilModeForClipping(i),d=r.frcMask;for(const[f,p]of a.frcPerLevel)d&1<<f&&s(u,p,h)},drawLineFrcCoverageSecondPass:function(e,t,i){if(0===i.length)return;const r=e.context.gl,n=eo(e),o=e.transform.zoom,s=(i,n,s,a)=>{const l=i.bucket.hdExt&&i.bucket.hdExt.frcData,c=l&&l.frcPerLevel.get(n);c&&0!==c.segments.length&&(1!==a&&(i.uniformValues.u_opacity_multiplier=a),i.program.draw(e,r.TRIANGLES,i.depthMode,s,i.colorMode,mi.disabled,i.uniformValues,t.id,i.bucket.layoutVertexBuffer,i.bucket.indexBuffer,c,t.paint,o,i.programConfiguration,[i.bucket.layoutVertexBuffer2,i.bucket.patternVertexBuffer,i.bucket.zOffsetVertexBuffer,i.bucket.elevationIdColVertexBuffer,i.bucket.elevationGroundScaleVertexBuffer]),1!==a&&(i.uniformValues.u_opacity_multiplier=1))};Xn(e,i,n,(e,t,i)=>s(e,t,i,1),(e,t,i)=>s(e,t,i,n))}},io=to;async function ro(){return Promise.resolve()}const no=new Float32Array(e.dq([])),oo=(t,i,r,n,o,s,a,l,c,h,u,d,f,p=[0,0,0],A,g,m,_=1)=>{const y=o.style.light,x=y.properties.get("position"),v=[-x.x,-x.y,x.z],w=e.bV();"viewport"===y.properties.get("anchor")&&(e.cu(w,-o.transform.angle),e.fK(v,v,w));const E="MASK"===u.alphaMode,b=y.properties.get("color").toNonPremultipliedRenderColor(null),I=f.paint.get("model-ambient-occlusion-intensity"),C=f.paint.get("model-color").constantOr(e.i.white).toNonPremultipliedRenderColor(null);return C.a=f.paint.get("model-color-mix-intensity").constantOr(0),m&&(C.r=m[0],C.g=m[1],C.b=m[2],C.a=m[3]),g&&(C.r=g.color.r,C.g=g.color.g,C.b=g.color.b,C.a=g.colorMix,d=g.emissionStrength,s*=g.opacity),{u_matrix:t,u_lighting_matrix:i,u_normal_matrix:r,u_node_matrix:n||no,u_lightpos:v,u_lightintensity:y.properties.get("intensity"),u_lightcolor:[b.r,b.g,b.b],u_camera_pos:p,u_opacity:s,u_baseTextureIsAlpha:0,u_alphaMask:+E,u_alphaCutoff:u.alphaCutoff,u_baseColorFactor:a.toNonPremultipliedRenderColor(null).toArray01(),u_emissiveFactor:l.toNonPremultipliedRenderColor(null).toArray01(),u_metallicFactor:c,u_roughnessFactor:h,u_baseColorTexture:5,u_metallicRoughnessTexture:6,u_normalTexture:7,u_occlusionTexture:8,u_emissionTexture:9,u_lutTexture:10,u_color_mix:C.toArray01(),u_aoIntensity:I,u_emissive_strength:d,u_occlusionTextureTransform:A||[0,0,0,0],u_dithered_discard_threshold:_}},so=(e,t=no,i=no)=>({u_matrix:e,u_instance:t,u_node_matrix:i}),ao=(e,t,i=1)=>({u_matrix:e,u_color:t,u_overlay:0,u_overlay_scale:i}),lo=new Float64Array(16),co=new Float64Array(16),ho=new Float64Array(16),uo=new Float64Array(16),fo=new Float64Array(16),po=new Float64Array(16),Ao=new Float64Array(16),go=[0,0,0],mo=new Float32Array(16),_o=[0,0,0],yo=[0,0,0],xo=[];function vo(t,i,r){const n=r.cameraWorldSizeForFog/r.worldSize;return e.fc(t,r.worldToFogMatrix,[n,n,1]),e.er(t,t,i),t}function wo(t,i,r,n){return e.fQ(t,i,r),e.cm(n,e.n)||e.fc(t,t,n),t}function Eo(t,i,r,n,o){const s=r.material,a=n.context,{baseColorTexture:l,metallicRoughnessTexture:c}=s.pbrMetallicRoughness,{normalTexture:h,occlusionTexture:u,emissionTexture:d}=s;function f(e,i,r){if(e&&(t.push(i),a.activeTexture.set(a.gl.TEXTURE0+r),e.gfxTexture)){const{minFilter:t,magFilter:i,wrapS:r,wrapT:n}=e.sampler;e.gfxTexture.bindExtraParam(t,i,r,n)}}f(l,"HAS_TEXTURE_u_baseColorTexture",5),f(c,"HAS_TEXTURE_u_metallicRoughnessTexture",6),f(h,"HAS_TEXTURE_u_normalTexture",7),f(u,"HAS_TEXTURE_u_occlusionTexture",8),f(d,"HAS_TEXTURE_u_emissionTexture",9),o&&(o.texture||(o.texture=new e.a$(n.context,o.image,[o.image.height,o.image.height,o.image.height],a.gl.RGBA8)),a.activeTexture.set(a.gl.TEXTURE0+10),o.texture&&o.texture.bind(a.gl.LINEAR,a.gl.CLAMP_TO_EDGE),t.push("APPLY_LUT_ON_GPU")),r.texcoordBuffer&&(t.push("HAS_ATTRIBUTE_a_uv_2f"),i.push(r.texcoordBuffer)),r.colorBuffer&&(t.push(12===r.colorBuffer.itemSize?"HAS_ATTRIBUTE_a_color_3f":"HAS_ATTRIBUTE_a_color_4f"),i.push(r.colorBuffer)),r.normalBuffer&&(t.push("HAS_ATTRIBUTE_a_normal_3f"),i.push(r.normalBuffer)),r.pbrBuffer&&(t.push("HAS_ATTRIBUTE_a_pbr"),t.push("HAS_ATTRIBUTE_a_heightBasedEmissiveStrength"),i.push(r.pbrBuffer)),"OPAQUE"!==s.alphaMode&&"MASK"!==s.alphaMode||t.push("UNPREMULT_TEXTURE_IN_SHADER"),s.defined||t.push("DIFFUSE_SHADED");const p=n.shadowRenderer;p&&(t.push("RENDER_SHADOWS"),p.useNormalOffset&&t.push("NORMAL_OFFSET"))}function bo(t,i,r,n,o,s){const a=t.modelOpacity,l=i.context,c=new _i(i.context.gl.LEQUAL,t.isLightMesh?_i.ReadOnly:_i.ReadWrite,i.depthRangeFor3D),h=i.transform,u=t.mesh,d=u.material,f=d.pbrMetallicRoughness,p=i.style.fog;"pixels"===i.transform.projection.zAxisUnit?lo.set(t.nodeModelMatrix):e.er(lo,n.zScaleMatrix,t.nodeModelMatrix),e.er(lo,n.negCameraPosMatrix,lo),e.dr(co,lo),e.fR(co,co);
vendor: 5,332 bytes, line 1
1const A="none"===r.paint.get("model-color-use-theme").constantOr("default"),g=r.paint.get("model-emissive-strength").constantOr(0),m=oo(t.worldViewProjection,lo,co,null,i,a,f.baseColorFactor,d.emissiveFactor,f.metallicFactor,f.roughnessFactor,d,g,r,void 0,void 0,t.materialOverride,t.modelColor),_={defines:[]},y=[],x=i.shadowRenderer;x&&(x.useNormalOffset=!1),Eo(_.defines,y,u,i,A?null:r.lut);let v=null;if(p&&(v=vo(ho,t.nodeModelMatrix,i.transform),"globe"!==h.projection.name)){const e=u.aabb.min,t=u.aabb.max,[i,r]=p.getOpacityForBounds(v,e[0],e[1],t[0],t[1]);_.overrideFog=i>=Yt||r>=Yt}const w=Hi(i,r.paint.get("model-cutoff-fade-range"));w.shouldRenderCutoff&&_.defines.push("RENDER_CUTOFF");const E=i.getOrCreateProgram("model",_);i.uploadCommonUniforms(l,E,null,v,w),"shadow"!==i.renderPass&&x&&x.setupShadowsFromMatrix(t.nodeModelMatrix,E),E.draw(i,l.gl.TRIANGLES,c,o,s,u.material.doubleSided?mi.disabled:mi.backCCW,m,r.id,u.vertexBuffer,u.indexBuffer,u.segments,r.paint,i.transform.zoom,void 0,y)}function Io(e,t){return e.style._importedAsBasemap?"basemap":t.scope}function Co(t,i,r,n,o,s,a,l,c,h){const u=t.transform,d=!!i.isGeometryBloom&&i.isGeometryBloom;if(void 0!==i.minZoom&&t.transform.zoom<i.minZoom)return;if(void 0!==i.maxZoom&&t.transform.zoom>i.maxZoom)return;if(d&&"shadow"===t.renderPass)return;const f="globe"===u.projection.name?e.bR(r,u):[...r];e.er(f,f,i.globalMatrix);const p=e.er([],n,f);if(i.meshes)for(const A of i.meshes){const t=l.get(A.material.name);if(t&&t.opacity<=0)continue;if("BLEND"!==A.material.alphaMode){a.push({mesh:A,depth:0,modelIndex:o,worldViewProjection:p,nodeModelMatrix:f,isLightMesh:d,materialOverride:t,modelOpacity:c,modelColor:h,node:i,modelMatrix:r});continue}const n=e.fL([],A.centroid,p);!u.isOrthographic&&n[2]<=0||s.push({mesh:A,depth:n[2],modelIndex:o,worldViewProjection:p,nodeModelMatrix:f,isLightMesh:d,materialOverride:t,modelOpacity:c,modelColor:h,node:i,modelMatrix:r})}if(i.children)for(const e of i.children)Co(t,e,r,n,o,s,a,l,c,h)}function Bo(e,t,i,r,n){const o=i.shadowRenderer;if(!o)return;const s=o.getShadowPassDepthMode(),a=n||o.calculateShadowPassMatrixFromMatrix(t),l=so(a);i.getOrCreateProgram("modelDepth").draw(i,i.context.gl.TRIANGLES,s,Gi.disabled,Ji.disabled,mi.disabled,l,r.id,e.vertexBuffer,e.indexBuffer,e.segments,r.paint,i.transform.zoom,void 0,void 0)}function Do(t,i,r,n){const o=function(t,i){if(i.footprintDebugMesh)return i.footprintDebugMesh;if(!i.footprint)return null;const r=t.context,n=i.footprint.vertices,o=i.footprint.indices,s=new e.aQ;s.reserve(n.length);for(const e of n)s.emplaceBack(e.x,e.y);const a=new e.aT;a.reserve(o.length);for(let e=0;e<o.length;e+=3)a.emplaceBack(o[e],o[e+1],o[e+2]);const l=r.createVertexBuffer(s,e.eQ.members),c=r.createIndexBuffer(a),h=e.aJ.simpleSegment(0,0,n.length,o.length),u=i.id||i.name||"footprint";let d;const f=parseInt(u,10);d=isNaN(f)?function(e){let t=0;for(let i=0;i<e.length;i++)t=(t<<5)-t+e.charCodeAt(i)|0;return t}(u):f;const p=e.cg(d),A=e.cg(d+1),g=e.cg(d+2);return i.footprintDebugMesh={vertexBuffer:l,indexBuffer:c,segments:h,color:new e.i(p,A,g,.5)},i.footprintDebugMesh}(t,r);if(!o)return;const s=t.context,a=s.gl,l=t.getOrCreateProgram("debug"),c=o.color,h=_i.disabled;s.activeTexture.set(a.TEXTURE0),t.emptyTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),l.draw(t,a.TRIANGLES,h,Gi.disabled,Ji.alphaBlended,mi.disabled,ao(n,c.toPremultipliedRenderColor(null)),"$debug",o.vertexBuffer,o.indexBuffer,o.segments)}function To(e,t,i,r,n,o){for(const s of n){const n=Object.assign({},r);n.part=s;const a={type:"Unknown",id:t,properties:n},l={orientation:e.paint.get("model-rotation").evaluate(a,i)};o.set(s,l)}}function Mo(e,t,i,r,n,o){for(const s of n){const n=Object.assign({},r);n.part=s;const a={type:"Unknown",id:t,properties:n},l={color:e.paint.get("model-color").evaluate(a,i),colorMix:e.paint.get("model-color-mix-intensity").evaluate(a,i),opacity:e.paint.get("model-opacity").evaluate(a,i),emissionStrength:e.paint.get("model-emissive-strength").evaluate(a,i)};o.set(s,l)}}function Qo(e,t,i,r,n){let o=!1;for(const a of r)1!==a.modelOpacity&&(bo(a,e,t,n[a.modelIndex],Gi.disabled,Ji.disabled),o=!0);for(const a of r)bo(a,e,t,n[a.modelIndex],1!==a.modelOpacity?e.stencilModeFor3D():Gi.disabled,e.colorModeForRenderPass());o&&e.resetStencilClippingMasks();const s=Ji.additive;for(const a of i)bo(a,e,t,n[a.modelIndex],Gi.disabled,a.isLightMesh?s:e.colorModeForRenderPass())}function So(t,i,r){const n=i.updateZoomBasedPaintProperties(),o=function(t,i,r){let n,o,s,a=t.terrain?t.terrain.exaggeration():0;if(t.terrain&&a>0){const i=t.terrain,o=i.findDEMTileFor(r);o&&o.dem?n=e.k.create(i,r,o):a=0}if(0===a&&(i.terrainElevationMin=0,i.terrainElevationMax=0),a===i.validForExaggeration&&(0===a||n&&n._demTile&&n._demTile.tileID===i.validForDEMTile.id&&n._dem._timestamp===i.validForDEMTile.timestamp))return!1;for(const e in i.instancesPerModel){const t=i.instancesPerModel[e];for(let e=0;e<t.instancedDataArray.length;++e){const r=(n?a*n.getElevationAt(0|t.instancedDataArray.float32[16*e],0|t.instancedDataArray.float32[16*e+1],!0,!0):0)+t.instancesEvaluatedElevation[e];t.instancedDataArray.float32[16*e+6]=r,o=o?Math.min(i.terrainElevationMin,r):r,s=s?Math.max(i.terrainElevationMax,r):r}}return i.terrainElevationMin=o||0,i.terrainElevationMax=s||0,i.validForExaggeration=a,i.val
1idForDEMTile=n&&n._demTile?{id:n._demTile.tileID,timestamp:n._dem._timestamp}:{id:void 0,timestamp:0},!0}(t,i,r);(n||o)&&(i.uploaded=!1,i.upload(t.context))}const Po={shadowUniformsInitialized:!1,useSingleShadowCascade:!1,tileMatrix:new Float64Array(16),shadowTileMatrix:new Float32Array(16),aabb:new e.A([0,0,0],[e.r,e.r,0])};function Ro(t,i){const r=1<<t.canonical.z,n=i.getFreeCameraOptions().position,o=i.elevation,s=t.canonical.x/r,a=(t.canonical.x+1)/r,l=t.canonical.y/r,c=(t.canonical.y+1)/r;let h=i._centerAltitude;if(o){const e=o.getMinMaxForTile(t);e&&e.max>h&&(h=e.max)}const u=e.bG(n.x,s,a)-n.x,d=e.bG(n.y,l,c)-n.y,f=e.em(h,i.center.lat)-n.z;return i._zoomFromMercatorZ(Math.sqrt(u*u+d*d+f*f))}function zo(e,t,i,r,n,o,s){const a=e.context,l="shadow"===e.renderPass,c=e.shadowRenderer,h=l&&c?c.getShadowPassDepthMode():new _i(a.gl.LEQUAL,_i.ReadWrite,e.depthRangeFor3D),u=e.isTileAffectedByFog(o),d="globe"===e.transform.projection.name;if(i.meshes)for(const f of i.meshes){const p=d?[]:["MODEL_POSITION_ON_GPU"],A=[];let g,m,_;const y=!d&&r.instancedDataArray.length>20;y&&p.push("INSTANCED_ARRAYS");const x=Hi(e,t.paint.get("model-cutoff-fade-range"));if(x.shouldRenderCutoff&&p.push("RENDER_CUTOFF"),l&&c)g=e.getOrCreateProgram("modelDepth",{defines:p}),m=so(s.shadowTileMatrix,s.shadowTileMatrix,i.globalMatrix),_=Ji.disabled;else{Eo(p,A,f,e,"none"===t.paint.get("model-color-use-theme").constantOr("default")?null:t.lut),g=e.getOrCreateProgram("model",{defines:p,overrideFog:u});const r=f.material,l=r.pbrMetallicRoughness,h=t.paint.get("model-opacity").constantOr(1),d=t.paint.get("model-emissive-strength").constantOr(0);m=oo(o.expandedProjMatrix,i.globalMatrix,mo,null,e,h,l.baseColorFactor,r.emissiveFactor,l.metallicFactor,l.roughnessFactor,r,d,t,n),c&&(s.shadowUniformsInitialized?g.setShadowUniformValues(a,c.getShadowUniformValues()):(c.setupShadows(o.toUnwrapped(),g,"model-tile"),s.shadowUniformsInitialized=!0)),_=x.shouldRenderCutoff||h<1||"OPAQUE"!==r.alphaMode?Ji.alphaBlended:Ji.unblended}e.uploadCommonUniforms(a,g,o.toUnwrapped(),null,x);const v=f.material.doubleSided?mi.disabled:mi.backCCW;if(y)A.push(r.instancedDataBuffer),g.draw(e,a.gl.TRIANGLES,h,Gi.disabled,_,v,m,t.id,f.vertexBuffer,f.indexBuffer,f.segments,t.paint,e.transform.zoom,void 0,A,r.instancedDataArray.length);else{const i=l?"u_instance":"u_normal_matrix";for(let n=0;n<r.instancedDataArray.length;++n)m[i]=new Float32Array(r.instancedDataArray.arrayBuffer,64*n,16),g.draw(e,a.gl.TRIANGLES,h,Gi.disabled,_,v,m,t.id,f.vertexBuffer,f.indexBuffer,f.segments,t.paint,e.transform.zoom,void 0,A)}}if(i.children)for(const f of i.children)zo(e,t,f,r,n,o,s)}function Lo(t,i,r,n,o){const s=t.node;if(s.lodMeshes&&s.lodMeshes.length>0)if(t.targetLod<0)t.targetLod=i>n?1:0;else{const s=o>0?r/1e3/o:1;t.targetLod=e.bG(i>n?t.targetLod+s:t.targetLod-s,0,1)}else t.targetLod=0}function Fo(t,i,r,n){if(!r.modelManager)return!0;const o=r.modelManager;if(!r.shadowRenderer)return!0;const s=r.shadowRenderer,a=i.aabb;let l=!0,c=t.maxHeight;if(0===c){let e=0;for(const i in t.instancesPerModel){const t=o.getModel(i,n);t?e=Math.max(e,Math.max(Math.max(t.aabb.max[0],t.aabb.max[1]),t.aabb.max[2])):l=!1}c=t.maxScale*e*1.41+t.maxVerticalOffset,l&&(t.maxHeight=c)}a.max[2]=c,a.min[2]+=t.terrainElevationMin,a.max[2]+=t.terrainElevationMax,e.fL(a.min,a.min,i.tileMatrix),e.fL(a.max,a.max,i.tileMatrix);const h=a.intersects(s.getCurrentCascadeFrustum());return 0===r.currentShadowCascade&&(t.isInsideFirstShadowMapFrustum=2===h),0===h}function Oo(t,i){const r=t.uniformValues.u_cutoff_params[0],n=t.uniformValues.u_cutoff_params[1],o=t.uniformValues.u_cutoff_params[2],s=t.uniformValues.u_cutoff_params[3];return n===r||s===o?1:e.bG(((i-r)/(n-r)-o)/(s-o),0,1)}function ko(t,i,r,n){if(i.pitch<20)return 1;const o=i.getWorldToCameraMatrix();e.er(o,o,t);const s=e.cy(r.min[0],r.min[1],r.min[2],1);let a=e.fM(e.bX(),s,o),l=a,c=a;s[1]=r.max[1],a=e.fM(e.bX(),s,o),l=a[1]<l[1]?a:l,c=a[1]>c[1]?a:c,s[0]=r.max[0],a=e.fM(e.bX(),s,o),l=a[1]<l[1]?a:l,c=a[1]>c[1]?a:c,s[1]=r.min[1],a=e.fM(e.bX(),s,o),l=a[1]<l[1]?a:l,c=a[1]>c[1]?a:c;const h=e.bG(n[0],0,1),u=100*i.pixelsPerMeter*e.bG(n[1],0,1),d=e.bG(n[2],0,1),f=e.d_(e.bX(),l,c,h),p=Math.tan(.5*i.fovX),A=-f[2]*p;if(0===u)return f[1]<-Math.abs(A)?d:1;const g=(-Math.abs(A)-f[1])/u,m=e.bG(e.dY(1,d,g),d,1);
1return e.dY(1,m,e.bG((i.pitch-20)/20,0,1))}const No={drawModels:function(t,i,r,n){if("opaque"===t.renderPass)return;const o=r.paint.get("model-opacity").constantOr(1),s=r.paint.get("model-elevation-reference"),a="ground"===s,l="ground"===s;if(0===o)return;const c=r.paint.get("model-cast-shadows");if("shadow"===t.renderPass){if(!c)return;if(t.terrain&&o<.65&&r._transitionablePaint._values["model-opacity"].value.expression instanceof e.bh)return}const h=t.shadowRenderer,u=r.paint.get("model-receive-shadows");h&&(h.useNormalOffset=!0,u||(h.enabled=!1));const d=()=>{h&&(h.useNormalOffset=!0,u||(h.enabled=!0))},f=i.getSource();if("light-beam"===t.renderPass&&"batched-model"!==f.type)return;if("vector"===f.type||"geojson"===f.type)return function(t,i,r,n,o){const s=t.transform,a="globe"===s.projection.name,l=s.getFreeCameraOptions().position;if(!t.modelManager)return;const c=t.modelManager;r.modelManager=c;const h=t.shadowRenderer;if(!Object.hasOwn(r._unevaluatedLayout._values,"model-id"))return;const u=r._unevaluatedLayout._values["model-id"],d=Object.assign({},r.layout.get("model-id").parameters),f=t.style.order.indexOf(r.fqid),p=r.paint.get("model-opacity").constantOr(1);for(const A of n){const n=i.getTile(A).getBucket(r);if(!n||n.projection.name!==s.projection.name)continue;const g=n.getModelUris();if(g&&!n.modelsRequested&&(c.addModelsFromBucket(g,o),n.modelsRequested=!0),a)d.zoom=A.overscaledZ;else{const e=Ro(A,s);d.zoom=e}const m=u.possiblyEvaluate(d);if(So(t,n,A),Po.shadowUniformsInitialized=!1,Po.useSingleShadowCascade=!!h&&0===h.getMaxCascadeForTile(A.toUnwrapped()),"shadow"===t.renderPass&&h){if(1===t.currentShadowCascade&&n.isInsideFirstShadowMapFrustum)continue;const i=s.calculatePosMatrix(A.toUnwrapped(),s.worldSize);if(Po.tileMatrix.set(i),Po.shadowTileMatrix.set(h.calculateShadowPassMatrixFromMatrix(i)),Po.aabb.min=[0,0,0],Po.aabb.max[0]=Po.aabb.max[1]=e.r,Po.aabb.max[2]=0,Fo(n,Po,t,r.scope))continue}const _=1<<A.canonical.z,y=[((l.x-A.wrap)*_-A.canonical.x)*e.r,(l.y*_-A.canonical.y)*e.r,l.z*_*e.r];t.conflationActive&&Object.keys(n.instancesPerModel).length>0&&t.style.isLayerClipped(r,i.getSource())&&n.updateReplacement(A,t.replacementSource,f,r.scope)&&(n.uploaded=!1,n.upload(t.context));let x=0;const v=new Array,w=new Array,E=new Array;for(let i in n.instancesPerModel){const s=n.instancesPerModel[i];s.features.length>0&&!a&&(i=m.evaluate(s.features[0].feature,{}));const h=c.getModel(i,o);if(h||c.hasURLBeenRequested(i)||n.modelUris.includes(i)||(n.modelUris.push(i),n.modelsRequested=!1),h&&h.uploaded)if(a){const i=e.fa([],[l.x,l.y,l.z],t.transform.worldSize);e.eu(i,i);for(let r=0;r<s.instancedDataArray.length;++r){const o=[0,0,0],a=[1,1,1],l=e.bW(),c=s.tileCoordinatesForInstance(r),u=s.transformForInstance(r);e.d7(a,u),e.d5(l,u),e.cH(o,l);const d=s.translationForInstance(r),f=new e.ab(0,0);e.fG(n.canonical,f,c.x,c.y);const A=e.bT();e.bA(A,h,t.transform,f,o,a,d,!0,!1,!1);const g=s.colorForInstance(r),m=e.cw([],i),_=e.cX(f.lat,t.transform.zoom),y=e.cv([],[1,1,1/_]);E.push({zScaleMatrix:y,negCameraPosMatrix:m});for(const e of h.nodes)Co(t,e,A,t.transform.expandedFarZProjMatrix,x,v,w,h.materialOverrides,p,g);++x}}else for(const e of h.nodes)zo(t,r,e,s,y,A,Po)}if(a)if("shadow"===t.renderPass){for(const e of w)Bo(e.mesh,e.nodeModelMatrix,t,r);for(const e of v)Bo(e.mesh,e.nodeModelMatrix,t,r)}else Qo(t,r,v,w,E)}}(t,i,r,n,Io(t,r)),void d();if(!f.loaded())return;if("batched-model"===f.type)return function(t,i,r,n){r.resetLayerRenderingStats(t);const o=t.context,s=t.transform,a=t.style.fog,l=t.shadowRenderer;if("mercator"!==s.projection.name)return void e.f_(`Drawing 3D landmark models for ${s.projection.name} projection is not yet implemented`);const c=t.transform.getFreeCameraOptions().position,h=e.fa([],[c.x,c.y,c.z],t.transform.worldSize),u=e.eu([],h),d=e.cw([],u),f=e.cX(s.center.lat,s.zoom),p=e.cv([],[1,1,1/f]),A=e.er([],d,p),g=r.paint.get("model-opacity").constantOr(1),m=new _i(o.gl.LEQUAL,_i.ReadWrite,t.depthRangeFor3D),_=new _i(o.gl.LEQUAL,_i.ReadOnly,t.depthRangeFor3D),y=new e.A([1/0,1/0,1/0],[-1/0,-1/0,-1/0]),x="shadow"===t.renderPass,v="light-beam"===t.renderPass,w="none"===r.paint.get("model-color-use-theme").
1constantOr("default"),E=x&&l?l.getCurrentCascadeFrustum():s.getFrustum(s.scaleZoom(s.worldSize)),b=r.paint.get("model-front-cutoff"),I=b[2]<1,C=Hi(t,r.paint.get("model-cutoff-fade-range")),B=r.getLayerRenderingStats();(function(e,t,i,r){const n=e.terrain?e.terrain.exaggeration():0,o=e.transform.zoom;for(const s of r){const r=t.getTile(s).getBucket(i);r&&(r.setFilter(i.filter),e.conflationActive&&r.updateReplacement(s,e.replacementSource),r.evaluateTransform(e,i),e.terrain&&n>0&&r.elevationUpdate(e.terrain,n,s,i.source),r.needsReEvaluation(e,o,i)&&r.evaluate(i))}})(t,i,r,n),function(){const c=new Map;let u,d,p;I?(u=n.length-1,d=-1,p=-1):(u=0,d=n.length,p=1);const D=e.bU(),T=new e.au(0,0);for(let M=u;M!==d;M+=p){const u=n[M],d=i.getTile(u).getBucket(r);if(!d||!d.uploaded)continue;let p=!1;l&&(p=0===l.getMaxCascadeForTile(u.toUnwrapped()));const Q=s.calculatePosMatrix(u.toUnwrapped(),s.worldSize),S=!!(d.modelTraits&e.aj.HasMapboxMeshFeatures);e.er(uo,A,Q),e.er(fo,s.expandedFarZProjMatrix,Q),e.dr(po,uo),e.fR(po,po);const P=!x&&l&&l.enabled?l.computeCascadeTileMatrices(Q):null;!x&&I&&(e.dr(co,Q),e.fL(D,h,co),T.x=D[0],T.y=D[1]);const R=[];d.setFilter(r.filter);for(const i of d.getNodesInfo()){if(i.hiddenByReplacement)continue;if(!i.node.meshes)continue;const r=i.node;let n=0;t.terrain&&r.elevation&&(n=r.elevation*t.terrain.exaggeration());const o=(()=>{const t=i.aabb,r=y.min,o=y.max;return r[0]=t.min[0],r[1]=t.min[1],r[2]=t.min[2]+n,o[0]=t.max[0],o[1]=t.max[1],o[2]=t.max[2]+n,e.fL(r,r,Q),e.fL(o,o,Q),y})(),a=i.evaluatedScale;if(a[0]<=1&&a[1]<=1&&a[2]<=1&&0===o.intersects(E))continue;if(!x){const r=o.min,n=o.max;_o[0]=.5*(r[0]+n[0]),_o[1]=.5*(r[1]+n[1]),_o[2]=.5*(r[2]+n[2]);const s=e.c5(h,_o)*f;Lo(i,s,Math.min(t._debugParams.dt,1e3/30),t._debugParams.lodSwitchDistance,t._debugParams.lodSwitchFadeDuration)}if(!x&&I){const t=1/6;i.cameraCollisionOpacity=h[0]>o.min[0]&&h[0]<o.max[0]&&h[1]>o.min[1]&&h[1]<o.max[1]&&h[2]*f<o.max[2]&&r.footprint&&e.eI(T,r.footprint)?Math.max(i.cameraCollisionOpacity-t,0):Math.min(1,i.cameraCollisionOpacity+t)}const l=1/e.fH(u.canonical),c=r.anchor?r.anchor[0]:0,d=r.anchor?r.anchor[1]:0,p=[c*(a[0]-1)+i.evaluatedTranslation[0]*l,d*(a[1]-1)+i.evaluatedTranslation[1]*l,n+i.evaluatedTranslation[2]],A=wo(new Float64Array(16),Q,p,a),m=e.er([],A,r.globalMatrix),_=e.er([],s.expandedFarZProjMatrix,m),v=_[2]*c+_[6]*d+_[10]*n+_[14];r.hidden=!1;let w=g;x||(I&&(w*=i.cameraCollisionOpacity,w*=ko(A,s,i.aabb,b)),w*=Oo(C,v)),0!==w?R.push({nodeInfo:i,depth:v,opacity:w,wvpForNode:_,nodeModelMatrix:m,tileModelMatrix:A,tileTranslation:p}):r.hidden=!0}x||R.sort((e,t)=>!I||1===e.opacity&&1===t.opacity?e.depth<t.depth?-1:1:1===e.opacity?-1:1===t.opacity?1:e.depth>t.depth?-1:1);for(const i of R){const n=i.nodeInfo,h=n.node;let u=null;if(t._debugParams.show3DModelFootprints&&h.footprint){const e=h.id||h.name||"footprint";if(!c.has(e)){const t=wo(new Float64Array(16),fo,i.tileTranslation,i.nodeInfo.evaluatedScale);c.set(e,{node:h,mvp:t})}}const d=i.nodeInfo.evaluatedScale;wo(lo,uo,i.tileTranslation,d),go[0]=1/d[0],go[1]=-1/d[1],go[2]=1/d[2],e.fc(co,po,go),e.er(lo,lo,h.globalMatrix);const f=S?0:n.evaluatedRMEA[0][2],A=n.targetLod,g=h.lodMeshes&&h.lodMeshes.length>0,y=g&&A>0&&A<1;if(x&&g&&1===Math.round(A))continue;const E=!x&&a?vo(ho,i.nodeModelMatrix,t.transform):null,b=x&&l?l.calculateShadowPassMatrixFromMatrix(i.nodeModelMatrix):null,I=y?2:1,C=g&&1===Math.round(A);for(let e=0;e<I;++e){const c=y?1===e:C,d=c?h.lodMeshes:h.meshes,g=y?c?-A:1-A:1;for(let e=0;e<d.length;++e){const A=d[e],I=!c&&e===h.lightMeshIndex;let C=i.wvpForNode;if(I){if(!v&&!t.terrain&&t.shadowRenderer){t.currentLayer<t.firstLightBeamLayer&&(t.firstLightBeamLayer=t.currentLayer);continue}C=wo(Ao,fo,i.tileTranslation,i.nodeInfo.evaluatedScale)}else if(v)continue;const D={defines:[]},T=[],M=!!A.normalBuffer;if(!x&&l&&(l.useNormalOffset=M),Eo(D.defines,T,A,t,w?null:r.lut),S||D.defines.push("DIFFUSE_SHADED"),p&&D.defines.push("SHADOWS_SINGLE_CASCADE"),B&&(x?B.numRenderedVerticesInShadowPass+=A.vertexArray.length:B.numRenderedVerticesInTransparentPass+=A.vertexArray.length),x){Bo(A,i.nodeModelMatrix,t,r,b);continue}if(a&&"globe"!==s.projection.name){const e=A.aabb.min,t=A.aabb.max,[i,r]=a.getOpacityForBounds(E,e[0],e[1],t[0],t[1]);D.overrideFog=i>=Yt||r>=Yt}const Q=A.material;let R;Q.occlusionTexture&&Q.occlusionTexture.offsetScale&&(R=Q.occlusionTexture.offsetScale,D.defines.push("OCCLUSION_TEXTURE_TRANSFORM")),y&&D.defines.push("DITHERED_DISCARD");const z=t.getOrCreateProgram("model",D);if(!x&&l&&l.enabled)if(u!==M){for(let e=0;e<P.length;e++)wo(xo[e]=xo[e]||new Float64Array(16),P[e],i.tileTranslation,i.nodeInfo.evaluatedScale);l.setupShadowsFromCascadeMatrices(xo,z,M),u=M}else z.setShadowUniformValues(o,l.getShadowUniformValues());t.uploadCommonUniforms(o,z,null,E);const L=Q.pbrMetallicRoughness;L.metallicFactor=.9,L.roughnessFactor=.5;const F=oo(C,lo,co,h.globalMatrix,t,i.opacity,L.baseColorFactor,Q.emissiveFactor,L.metallicFactor,L.roughnessFactor,Q,f,r,yo,R,void 0,void 0,g);!I&&(n.hasTranslucentParts||i.opacity<1)&&z.draw(t,o.gl.TRIANGLES,m,Gi.disabled,Ji.disabled,mi.backCCW,F,r.id,A.vertexBuffer,A.indexBuffer,A.segments,r.paint,t.transform.zoom,void 0,T),z.draw(t,o.gl.TRIANGLES,I?_:m,Gi.disabled,I||i.opacity<1||n.hasTranslucentParts?Ji.alphaBlended:Ji.unblended,mi.backCCW,F,r.id,A.vertexBuffer,A.indexBuffer,A.segments,r.paint,t.transform.zoom,void 0,T)}}}}if(t._debugParams.show3DModelFootprints&&c.size>0){const e=Array.from(c.keys()).sort();for(const i of e){const{node:e,mvp:r}=c.get(i);Do(t,0,e,r)}}}()}(t,i,r,n),void d();if("model"!==f.type)return;const p=f.getModels(),A=[],g=t.transform.getFreeCameraOptions().position,m=e.fa([],[g.x,g.y,g.z],t.transform.worldSize);e.eu(m,m);const _=[],y=[];let x=0;for(const v of p){const n=i.getFeatureState("",v.id),o={type:"Unknown",id:v.id,properties:v.featureProperties},s=r.paint.get("model-rotation").evaluate(o,n),c=r.paint.get("model-scale").evaluate(o,n),h=r.paint.get("model-translation").evaluate(o,n),u=r.paint.get("model-opacity").evaluate(o,n);To(r,v.id,n,v.featureProperties,v.nodeOverrideNames,v.nodeOverrides),Mo(r,v.id,n,v.featureProperties,v.materialOverrideNames,v.materialOverrides),v.nodeOverrides.size>0&&v.computeBoundsAndApplyParent(),v.computeModelMatrix(t,s,c,h,l,a,!1);const d=e.cw([],m),f=e.cX(v.position.lat,t.transform.zoom),p=e.cv([],[1,1,1/f]);A.push({zScaleMatrix:p,negCameraPosMatrix:d});for(const e of v.nodes)Co(t,e,v.matrix,t.transform.expandedFarZProjMatrix,x,_,y,v.materialOverrides,u);x++}if(_.sort((e,t)=>
vendor: 4,848 bytes, line 1
1t.depth-e.depth),"shadow"!==t.renderPass){if(t._debugParams.show3DModelFootprints){const i=t.transform.projMatrix,r=new Map,n=(t,n)=>{if(t.footprint){const o=t.id||t.name||"footprint";if(!r.has(o)){const s=e.er([],i,n);r.set(o,{node:t,mvp:s})}}};for(const e of y)n(e.node,e.modelMatrix);for(const e of _)n(e.node,e.modelMatrix);const o=Array.from(r.keys()).sort();for(const e of o){const{node:i,mvp:n}=r.get(e);Do(t,0,i,n)}}Qo(t,r,_,y,A),d()}else{for(const e of y)Bo(e.mesh,e.nodeModelMatrix,t,r);for(const e of _)Bo(e.mesh,e.nodeModelMatrix,t,r);d()}},prepare:function(e,t,i){const r=t.getSource();if(!r.loaded())return;if("vector"===r.type||"geojson"===r.type)return void(i.modelManager&&i.modelManager.upload(i,Io(i,e)));if("batched-model"===r.type)return;if("model"!==r.type)return;const n=r.getModels();for(const o of n)o.upload(i.context)},shaders:{model:xn('#include "_prelude_fog.fragment.glsl"\n#include "_prelude_shadow.fragment.glsl"\n#include "_prelude_lighting.glsl"\nuniform float u_opacity;\n#ifdef DITHERED_DISCARD\nuniform float u_dithered_discard_threshold;\n#endif\nuniform vec3 u_lightcolor;uniform vec3 u_lightpos;uniform float u_lightintensity;uniform vec4 u_baseColorFactor;uniform vec4 u_emissiveFactor;uniform float u_metallicFactor;uniform float u_roughnessFactor;uniform float u_emissive_strength;in highp vec4 v_position_height;in lowp vec4 v_color_mix;\n#ifdef RENDER_SHADOWS\nin highp vec4 v_pos_light_view_0;in highp vec4 v_pos_light_view_1;in float v_depth_shadows;\n#endif\n#ifdef OCCLUSION_TEXTURE_TRANSFORM\nuniform vec4 u_occlusionTextureTransform;\n#endif\n#pragma mapbox: define-attribute highp vec3 normal_3f\n#pragma mapbox: define-attribute highp vec3 color_3f\n#pragma mapbox: define-attribute highp vec4 color_4f\n#pragma mapbox: define-attribute highp vec2 uv_2f\n#pragma mapbox: initialize-attribute highp vec3 normal_3f\n#pragma mapbox: initialize-attribute highp vec3 color_3f\n#pragma mapbox: initialize-attribute highp vec4 color_4f\n#pragma mapbox: initialize-attribute highp vec2 uv_2f\n#ifdef HAS_ATTRIBUTE_a_pbr\nin lowp vec4 v_roughness_metallic_emissive_alpha;in mediump vec4 v_height_based_emission_params;\n#endif\n#ifdef HAS_TEXTURE_u_baseColorTexture\nuniform sampler2D u_baseColorTexture;uniform bool u_baseTextureIsAlpha;uniform bool u_alphaMask;uniform float u_alphaCutoff;\n#endif\n#ifdef HAS_TEXTURE_u_metallicRoughnessTexture\nuniform sampler2D u_metallicRoughnessTexture;\n#endif\n#ifdef HAS_TEXTURE_u_occlusionTexture\nuniform sampler2D u_occlusionTexture;uniform float u_aoIntensity;\n#endif\n#ifdef HAS_TEXTURE_u_normalTexture\nuniform sampler2D u_normalTexture;\n#endif\n#ifdef HAS_TEXTURE_u_emissionTexture\nuniform sampler2D u_emissionTexture;\n#endif\n#ifdef APPLY_LUT_ON_GPU\nuniform highp sampler3D u_lutTexture;\n#endif\n#ifdef FEATURE_CUTOUT_VERTEX\nin highp float v_cutout_factor;\n#endif\n#ifdef TERRAIN_FRAGMENT_OCCLUSION\nin highp float v_depth;uniform highp sampler2D u_depthTexture;uniform highp vec2 u_inv_depth_size;uniform highp vec2 u_depth_range_unpack;\n#ifdef DEPTH_D24\nhighp float unpack_depth(highp float depth) {return depth*u_depth_range_unpack.x+u_depth_range_unpack.y;}\n#else\nhighp float unpack_depth_rgba(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}\n#endif\nbool isOccluded() {highp vec2 coord=gl_FragCoord.xy*u_inv_depth_size;\n#ifdef FLIP_Y\ncoord.y=1.0-coord.y;\n#endif\n#ifdef DEPTH_D24\nhighp float depth=unpack_depth(texture(u_depthTexture,coord).r);\n#else\nhighp float depth=unpack_depth_rgba(texture(u_depthTexture,coord));\n#endif\nreturn v_depth > depth+0.0005;}\n#endif\n#define saturate(_x) clamp(_x,0.,1.)\nvec3 linearTosRGB(vec3 color) {return pow(color,vec3(1./2.2));}vec3 sRGBToLinear(vec3 srgbIn) {return pow(srgbIn,vec3(2.2));}float calculate_NdotL(vec3 normal,vec3 lightDir) {const float ext=0.70710678118;return (clamp(dot(normal,lightDir),-ext,1.0)+ext)/(1.0+ext);}vec3 getDiffuseShadedColor(vec3 albedo,vec3 normal,vec3 lightDir,vec3 lightColor)\n{\n#ifdef LIGHTING_3D_MODE\nvec3 transformed_normal=vec3(-normal.xy,normal.z);float lighting_factor;\n#ifdef RENDER_SHADOWS\nlighting_factor=shadowed_light_factor_normal(transformed_normal,v_pos_light_view_0,v_pos_light_view_1,v_depth_shadows);\n#else\nlighting_factor=saturate(dot(transformed_normal,u_lighting_directional_dir));\n#endif\nreturn apply_lighting(albedo,transformed_normal,lighting_factor);\n#else\nvec3 n=normal;float colorvalue=((albedo.x*0.2126)+(albedo.y*0.7152))+(albedo.z*0.0722);vec3 c=vec3(0.03,0.03,0.03);float directional=clamp(dot(n,vec3(lightDir)),0.0,1.0);directional=mix(1.0-u_lightintensity,max((1.0-colorvalue)+u_lightintensity,1.0),directional);vec3 c3=c+clamp((albedo*directional)*lightColor,mix(vec3(0.0),vec3(0.3),vec3(1.0)-light
1Color),vec3(1.0));return c3;\n#endif\n}vec4 getBaseColor() {vec4 albedo=u_baseColorFactor;\n#ifdef HAS_ATTRIBUTE_a_color_3f\nalbedo*=vec4(color_3f,1.0);\n#endif\n#ifdef HAS_ATTRIBUTE_a_pbr\n#else\n#ifdef HAS_ATTRIBUTE_a_color_4f\nalbedo*=color_4f;\n#endif\n#endif\n#if defined (HAS_TEXTURE_u_baseColorTexture) && defined (HAS_ATTRIBUTE_a_uv_2f)\nvec4 texColor=texture(u_baseColorTexture,uv_2f);if(u_alphaMask) {if (texColor.w < u_alphaCutoff) {discard;}}\n#ifdef UNPREMULT_TEXTURE_IN_SHADER\ntexColor=vec4(unpremultiplyColor(texColor),1.0);\n#endif\nif(u_baseTextureIsAlpha) {if (texColor.r < 0.5) {discard;}} else {texColor.rgb=sRGBToLinear(texColor.rgb);albedo*=texColor;}\n#endif\nvec4 color=vec4(mix(albedo.rgb,v_color_mix.rgb,v_color_mix.a),albedo.a);\n#ifdef APPLY_LUT_ON_GPU\ncolor=applyLUT(u_lutTexture,color);\n#endif\nreturn color;}highp mat3 cotangentFrame(highp vec3 N,highp vec3 p,highp vec2 uv ) {\n#ifdef HAS_TEXTURE_u_normalTexture\nhighp vec3 dp1=vec3(dFdx(p.x),dFdx(p.y),dFdx(p.z));highp vec3 dp2=vec3(dFdy(p.x),dFdy(p.y),dFdy(p.z));highp vec2 duv1=vec2(dFdx(uv.x),dFdx(uv.y));highp vec2 duv2=vec2(dFdy(uv.x),dFdy(uv.y));highp vec3 dp2perp=cross( dp2,N );highp vec3 dp1perp=cross( N,dp1 );highp vec3 T=dp2perp*duv1.x+dp1perp*duv2.x;highp vec3 B=dp2perp*duv1.y+dp1perp*duv2.y;\n#ifdef FLIP_Y\nT=-T;B=-B;\n#endif\nhighp float lengthT=dot(T,T);highp float lengthB=dot(B,B);highp float maxLength=max(lengthT,lengthB);highp float invmax=inversesqrt( maxLength );highp mat3 res=mat3( T*invmax,B*invmax,N );return res;\n#else\nreturn mat3(1.0);\n#endif\n}highp vec3 getNormal(){highp vec3 n;\n#ifdef HAS_ATTRIBUTE_a_normal_3f\nn=normalize(normal_3f);\n#else\nhighp vec3 fdx=vec3(dFdx(v_position_height.x),dFdx(v_position_height.y),dFdx(v_position_height.z));highp vec3 fdy=vec3(dFdy(v_position_height.x),dFdy(v_position_height.y),dFdy(v_position_height.z));\n#ifdef FLIP_Y\nn=normalize(cross(fdx,fdy));\n#else\nn=normalize(cross(fdx,fdy))*-1.0;\n#endif\n#endif\n#if defined(HAS_TEXTURE_u_normalTexture) && defined(HAS_ATTRIBUTE_a_uv_2f)\nvec3 nMap=texture( u_normalTexture,uv_2f).xyz;nMap=normalize(2.0*nMap-vec3(1.0));highp vec3 v=normalize(-v_position_height.xyz);highp mat3 TBN=cotangentFrame(n,v,uv_2f);n=normalize(TBN*nMap);\n#endif\nreturn n;}struct Material {float perceptualRoughness;float alphaRoughness;float metallic;vec3 f90;vec4 baseColor;vec3 diffuseColor;vec3 specularColor;highp vec3 normal;};Material getPBRMaterial() {Material mat;mat.baseColor=getBaseColor();mat.perceptualRoughness=u_roughnessFactor;mat.metallic=u_metallicFactor;\n#ifdef HAS_ATTRIBUTE_a_pbr\nmat.perceptualRoughness=v_roughness_metallic_emissive_alpha.x;mat.metallic=v_roughness_metallic_emissive_alpha.y;mat.baseColor.w*=v_roughness_metallic_emissive_alpha.w;\n#endif\n#if defined(HAS_TEXTURE_u_metallicRoughnessTexture) && defined(HAS_ATTRIBUTE_a_uv_2f)\nvec4 mrSample=texture(u_metallicRoughnessTexture,uv_2f);mat.perceptualRoughness*=mrSample.g;mat.metallic*=mrSample.b;\n#endif\nconst float c_minRoughness=0.04;mat.perceptualRoughness=clamp(mat.perceptualRoughness,c_minRoughness,1.0);mat.metallic=saturate(mat.metallic);mat.alphaRoughness=mat.perceptualRoughness*mat.perceptualRoughness;const vec3 f0=vec3(0.04);mat.diffuseColor=mat.baseColor.rgb*(vec3(1.0)-f0);mat.diffuseColor*=1.0-mat.metallic;mat.specularColor=mix(f0,mat.baseColor.rgb,mat.metallic);highp float reflectance=max(max(mat.specularColor.r,mat.specularColor.g),mat.specularColor.b);highp float reflectance90=saturate(reflectance*25.0);mat.f90=vec3(reflectance90);mat.normal=getNormal();return mat;}float V_GGX(float NdotL,float NdotV,float roughness)\n{float a2=roughness*roughness;float GGXV=NdotL*sqrt(NdotV*NdotV*(1.0-a2)+a2);float GGXL=NdotV*sqrt(NdotL*NdotL*(1.0-a2)+a2);return 0.5/(GGXV+GGXL);}float V_GGXFast(float NdotL,float NdotV,float roughness) {float a=roughness;float GGXV=NdotL*(NdotV*(1.0-a)+a);float GGXL=NdotV*(NdotL*(1.0-a)+a);return 0.5/(GGXV+GGXL);}vec3 F_Schlick(vec3 specularColor,vec3 f90,float VdotH)\n{return specularColor+(f90-specularColor)*pow(clamp(1.0-VdotH,0.0,1.0),5.0);}vec3 F_SchlickFast(vec3 specularColor,float VdotH)\n{float x=1.0-VdotH;float x4=x*x*x*x;return specularColor+(1.0-specularColor)*x4*x;}float D_GGX(highp float NdotH,float alphaRoughness)\n{highp float a4=alphaRoughness*alphaRoughness;highp float f=(NdotH*a4-NdotH)*NdotH+1.0;return a4/(PI*f*f);}vec3 diffuseBurley(Material mat,float LdotH,float NdotL,float NdotV)\n{float f90=2.0*LdotH*LdotH*mat.alphaRoughness-0.5;return (mat.diffuseColor/PI)*(1.0+f90*pow((1.0-NdotL),5.0))*(1.0+f90*pow((1.0-NdotV),5.0));}vec3 diffuseLambertian(Material mat)\n{\n#ifdef LIGHTING_3D_MODE\nreturn mat.diffuseColor;\n#else\nreturn mat.diffuseColor/PI;\n#endif\n}vec3 EnvBRDFApprox(vec3 specularColor,float roughness,highp float NdotV)\n{vec4 c0=vec4(-1,-0.0275,-0.572,0.022);vec4 c1=vec4(1,0.0425,1.04,-0.04);highp vec4 r=roughness*c0+c1;highp float a004=min(r.x*r.x,exp2(-9.28*NdotV))*r.x+r.y;vec2 AB=vec2(-1.04,1.04)*a004+r.zw;return specularColor*AB.x+AB.y;}vec3 computeIndirectLightContribution(Material mat,float NdotV,vec3 normal)\n{vec3 env_light=vec3(0.65,0.65,0.65);\n#ifdef LIGHTING_3D_MODE\nfloat ambient_factor=calculate_ambient_directional_factor(normal);env_light=u_lighting_ambient_color*ambient_factor;\n#endif\nvec3 envBRDF=EnvBRDFApprox(mat.specularColor,mat.perceptualRoughness,NdotV);vec3 indirectSpecular= envBRDF*env_light;vec3 indirectDiffuse=mat.diffuseColor*env_light;return indirectSpecular+indirectDiffuse;}vec3 computeLightContribution(Material mat,vec3 lightPosition,vec3 lightColor)\n{highp vec3 n=mat.normal;highp vec3 v=normalize(-v_position_height.xyz);highp vec3 l=normalize(lightPosition);highp vec3 h=normalize(v+l);float NdotV=clamp(abs(dot(n,v)),0.001,1.0);float NdotL=saturate(dot(n,l));highp float NdotH=saturate(dot(n,h));float VdotH=saturate(dot(v,h));vec3 f=F_SchlickFast(mat.specularColor,VdotH);float g=V_GGXFast(NdotL,NdotV,mat.alphaRoughness);float d=D_GGX(NdotH,mat.alphaRoughness);vec3 diffuseTerm=(1.0-f)*diffuseLambertian(mat);vec3 specularTerm=f*g*d;vec3 transformed_normal=vec3(-n.xy,n.z);float lighting_factor;\n#ifdef RENDER_SHADOWS\nlighting_factor=shadowed_light_factor_normal(transformed_normal,v_pos_light_view_0,v_pos_light_view_1,v_depth_shadows);\n#else\nlighting_factor=NdotL;\n#endif\nvec3 directLightColor=(specularTerm+diffuseTerm)*lighting_factor*light
1Color;vec3 indirectLightColor=computeIndirectLightContribution(mat,NdotV,transformed_normal);vec3 color=(saturate(directLightColor)+indirectLightColor);float intensityFactor=1.0;\n#if !defined(LIGHTING_3D_MODE)\nconst vec3 luminosityFactor=vec3(0.2126,0.7152,0.0722);float luminance=dot(diffuseTerm,luminosityFactor);intensityFactor=mix((1.0-u_lightintensity),max((1.0-luminance+u_lightintensity),1.0),NdotL);\n#endif\ncolor*=intensityFactor;return color;}void main() {\n#ifdef TERRAIN_FRAGMENT_OCCLUSION\nif (isOccluded()) {discard;}\n#endif\nvec3 lightDir=u_lightpos;vec3 lightColor=u_lightcolor;\n#ifdef LIGHTING_3D_MODE\nlightDir=u_lighting_directional_dir;lightDir.xy=-lightDir.xy;lightColor=u_lighting_directional_color;\n#endif\nvec4 finalColor;\n#ifdef DIFFUSE_SHADED\nvec3 N=getNormal();vec3 baseColor=getBaseColor().rgb;vec3 diffuse=getDiffuseShadedColor(baseColor,N,lightDir,lightColor);\n#ifdef HAS_TEXTURE_u_occlusionTexture\nfloat ao=(texture(u_occlusionTexture,uv_2f).r-1.0)*u_aoIntensity+1.0;diffuse*=ao;\n#endif\nfinalColor=vec4(mix(diffuse,baseColor,u_emissive_strength),1.0)*u_opacity;\n#else\nMaterial mat=getPBRMaterial();vec3 color=computeLightContribution(mat,lightDir,lightColor);float ao=1.0;\n#if defined (HAS_TEXTURE_u_occlusionTexture) && defined(HAS_ATTRIBUTE_a_uv_2f)\n#ifdef OCCLUSION_TEXTURE_TRANSFORM\nvec2 uv=uv_2f.xy*u_occlusionTextureTransform.zw+u_occlusionTextureTransform.xy;\n#else\nvec2 uv=uv_2f;\n#endif\nao=(texture(u_occlusionTexture,uv).x-1.0)*u_aoIntensity+1.0;color*=ao;\n#endif\nvec4 emissive=u_emissiveFactor;\n#if defined(HAS_TEXTURE_u_emissionTexture) && defined(HAS_ATTRIBUTE_a_uv_2f)\nemissive.rgb*=sRGBToLinear(texture(u_emissionTexture,uv_2f).rgb);\n#endif\n#ifdef APPLY_LUT_ON_GPU\nfloat emissiveFactorLength=max(length(u_emissiveFactor.rgb),0.001);emissive.rgb=sRGBToLinear(applyLUT(u_lutTexture,linearTosRGB(emissive.rgb/emissiveFactorLength).rbg))*emissiveFactorLength;\n#endif\ncolor+=emissive.rgb;float opacity=mat.baseColor.w*u_opacity;\n#ifdef HAS_ATTRIBUTE_a_pbr\nfloat resEmission=v_roughness_metallic_emissive_alpha.z;resEmission*=v_height_based_emission_params.z+v_height_based_emission_params.w*pow(clamp(v_height_based_emission_params.x,0.0,1.0),v_height_based_emission_params.y);vec3 color_mix=v_color_mix.rgb;\n#ifdef APPLY_LUT_ON_GPU\ncolor_mix=applyLUT(u_lutTexture,color_mix);\n#endif\ncolor=mix(color,color_mix,min(1.0,resEmission));\n#ifdef HAS_ATTRIBUTE_a_color_4f\nfloat distance=length(vec2(1.3*max(0.0,abs(color_4f.x)-color_4f.z),color_4f.
1y));distance+= mix(0.5,0.0,clamp(resEmission-1.0,0.0,1.0));opacity*=v_roughness_metallic_emissive_alpha.w*saturate(1.0-distance*distance);\n#endif\n#endif\nvec3 unlitColor=mat.baseColor.rgb*ao+emissive.rgb;color=mix(color,unlitColor,u_emissive_strength);color=linearTosRGB(color);color*=opacity;finalColor=vec4(color,opacity);\n#endif\n#ifdef DITHERED_DISCARD\nif (abs(u_dithered_discard_threshold) < 1.0) {float ditherValue=fract(52.9829189*fract(0.06711056*gl_FragCoord.x+0.00583715*gl_FragCoord.y));float compareValue=mix(1.0-ditherValue,ditherValue,step(0.0,u_dithered_discard_threshold));if (abs(u_dithered_discard_threshold) < compareValue) {discard;}}\n#endif\n#ifdef FOG\nfinalColor=fog_dither(fog_apply_premultiplied(finalColor,v_fog_pos,v_position_height.w));\n#endif\n#ifdef RENDER_CUTOFF\nfinalColor*=v_cutoff_opacity;\n#endif\n#ifdef INDICATOR_CUTOUT\nfinalColor=applyCutout(finalColor,v_position_height.w);\n#endif\n#ifdef FEATURE_CUTOUT_VERTEX\napply_feature_cutout_dither(gl_FragCoord,v_cutout_factor);\n#else\n#ifdef FEATURE_CUTOUT\nfinalColor=apply_feature_cutout(finalColor,gl_FragCoord,get_cutout_factors(gl_FragCoord).x);\n#endif\n#endif\nglFragColor=finalColor;\n#ifdef OVERDRAW_INSPECTOR\nglFragColor=vec4(1.0);\n#endif\nHANDLE_WIREFRAME_DEBUG;}','#include "_prelude_fog.vertex.glsl"\n#include "_prelude_shadow.vertex.glsl"\nin vec3 a_pos_3f;\n#pragma mapbox: define-attribute highp vec3 normal_3f\n#pragma mapbox: define-attribute highp vec2 uv_2f\n#pragma mapbox: define-attribute highp vec3 color_3f\n#pragma mapbox: define-attribute highp vec4 color_4f\n#pragma mapbox: define-attribute-vertex-shader-only highp uvec4 pbr\n#pragma mapbox: define-attribute-vertex-shader-only highp vec3 heightBasedEmissiveStrength\nuniform mat4 u_matrix;uniform mat4 u_node_matrix;uniform mat4 u_lighting_matrix;uniform vec3 u_camera_pos;uniform vec4 u_color_mix;\n#ifdef INSTANCED_ARRAYS\nin vec4 a_normal_matrix0;in vec4 a_normal_matrix1;in vec4 a_normal_matrix2;in vec4 a_normal_matrix3;\n#else\nuniform highp mat4 u_normal_matrix;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;out highp vec4 v_pos_light_view_0;out highp vec4 v_pos_light_view_1;out float v_depth_shadows;\n#endif\nout vec4 v_position_height;out lowp vec4 v_color_mix;\n#ifdef TERRAIN_FRAGMENT_OCCLUSION\nout highp float v_depth;\n#endif\n#ifdef FEATURE_CUTOUT_VERTEX\nout highp float v_cutout_factor;\n#endif\n#ifdef HAS_ATTRIBUTE_a_pbr\nout lowp vec4 v_roughness_metallic_emissive_alpha;out mediump vec4 v_height_based_emission_params;\n#endif\nvec3 sRGBToLinear(vec3 srgbIn) {return pow(srgbIn,vec3(2.2));}void main() {\n#pragma mapbox: initialize-attribute highp vec3 normal_3f\n#pragma mapbox: initialize-attribute highp vec2 uv_2f\n#pragma mapbox: initialize-attribute highp vec3 color_3f\n#pragma mapbox: initialize-attribute highp vec4 color_4f\n#pragma mapbox: initialize-attribute-custom highp uvec4 pbr\n#pragma mapbox: initialize-attribute-custom highp vec3 heightBasedEmissiveStrength\nhighp mat4 normal_matrix;\n#ifdef INSTANCED_ARRAYS\nnormal_matrix=mat4(a_normal_matrix0,a_normal_matrix1,a_normal_matrix2,a_normal_matrix3);\n#else\nnormal_matrix=u_normal_matrix;\n#endif\n#ifdef FEATURE_CUTOUT_VERTEX\nv_cutout_factor=1.0;\n#endif\nvec3 local_pos;mat3 rs;\n#ifdef MODEL_POSITION_ON_GPU\nvec3 pos_color=normal_matrix[0].xyz;vec4 translate=normal_matrix[1];vec3 pos_a=floor(pos_color);vec3 rgb=1.05*(pos_color-pos_a);float hidden=float(pos_a.x > EXTENT);float color_mix=pos_a.z/100.0;v_color_mix=vec4(sRGBToLinear(rgb),color_mix);float meter_to_tile=normal_matrix[0].w;vec4 pos=vec4(pos_a.xy,translate.z,1.0);rs[0].x=normal_matrix[1].w;rs[0].yz=normal_matrix[2].xy;rs[1].xy=normal_matrix[2].zw;rs[1].z=normal_matrix[3].x;rs[2].xyz=normal_matrix[3].yzw;vec4 pos_node=u_lighting_matrix*vec4(a_pos_3f,1.0);vec3 rotated_pos_node=rs*pos_node.xyz;vec3 pos_model_tile=(rotated_pos_node+vec3(translate.xy,0.0))*vec3(meter_to_tile,meter_to_tile,1.0);pos.xyz+=pos_model_tile;local_pos=pos.xyz;gl_Position=mix(u_matrix*pos,AWAY,hidden);pos.z*=meter_to_tile;v_position_height.xyz=pos.xyz-u_camera_pos;\n#ifdef FEATURE_CUTOUT_VERTEX\nhighp vec4 ground_pos=vec4(pos_a.xy,0.0,1.0);highp vec4 cutout_clip_pos=mix(u_matrix*ground_pos,AWAY,hidden);highp vec3 cutout_ndc=cutout_clip_pos.xyz/cutout_clip_pos.w;vec2 uv=cutout_ndc.xy*0.5+0.5;highp float fragDepthNDC=cutout_ndc.z*0.5+0.5;\n#ifdef FLIP_Y\nfragDepthNDC=cutout_ndc.z;\n#endif\nhighp float cutoutFactor=get_cutout_factors_vert(uv).x;highp float cutoutDepthNDC=sample_cutout_depth(u_cutout_depth_image,uv);highp float groundThreshold=0.001;
1highp float groundLimit=clamp((fragDepthNDC+groundThreshold-cutoutDepthNDC)/groundThreshold+0.5,0.0,1.0);v_cutout_factor=mix(1.0-cutoutFactor,1.0,groundLimit);\n#endif\n#else\nlocal_pos=a_pos_3f;gl_Position=u_matrix*vec4(a_pos_3f,1);v_position_height.xyz=vec3(u_lighting_matrix*vec4(a_pos_3f,1));v_color_mix=vec4(sRGBToLinear(u_color_mix.rgb),u_color_mix.a);\n#endif\nv_position_height.w=a_pos_3f.z;\n#ifdef HAS_ATTRIBUTE_a_pbr\nvec4 albedo_c=decode_color(vec2(pbr.xy));vec2 e_r_m=unpack_float(float(pbr.z));vec2 r_m= unpack_float(e_r_m.y*16.0);r_m.r=r_m.r*16.0;v_color_mix=vec4(albedo_c.rgb,1.0);v_roughness_metallic_emissive_alpha=vec4(vec3(r_m,e_r_m.x)/255.0,albedo_c.a);v_roughness_metallic_emissive_alpha.z*=2.0;float heightBasedRelativeIntepolation=a_pos_3f.z*heightBasedEmissiveStrength.x+heightBasedEmissiveStrength.y;v_height_based_emission_params.x=heightBasedRelativeIntepolation;v_height_based_emission_params.y=heightBasedEmissiveStrength.z;vec2 emissionMultiplierValues=unpack_float(float(pbr.w))/256.0;v_height_based_emission_params.z=emissionMultiplierValues.x;v_height_based_emission_params.w=emissionMultiplierValues.y-emissionMultiplierValues.x;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(local_pos);\n#endif\n#ifdef RENDER_CUTOFF\nv_cutoff_opacity=cutoff_opacity(u_cutoff_params,gl_Position.z);\n#endif\n#ifdef TERRAIN_FRAGMENT_OCCLUSION\nv_depth=gl_Position.z/gl_Position.w;\n#ifdef CLIP_ZERO_TO_ONE\nv_depth=-1.0+2.0*v_depth; \n#endif\n#endif\n#ifdef HAS_ATTRIBUTE_a_normal_3f\n#ifdef MODEL_POSITION_ON_GPU\nfloat x_squared_scale=dot(rs[0],rs[0]);float y_squared_scale=dot(rs[1],rs[1]);float z_squared_scale=dot(rs[2],rs[2]);vec3 squared_scale=vec3(x_squared_scale,y_squared_scale,z_squared_scale);normal_3f=rs*((u_lighting_matrix*vec4(normal_3f,0.0)).xyz/squared_scale);normal_3f=normalize(normal_3f);\n#else\nnormal_3f=vec3(normal_matrix*vec4(normal_3f,0));\n#endif\n#endif\n#ifdef HAS_ATTRIBUTE_a_pbr\n#ifdef HAS_ATTRIBUTE_a_color_4f\nv_roughness_metallic_emissive_alpha.w=clamp(color_4f.a*v_roughness_metallic_emissive_alpha.w*(v_roughness_metallic_emissive_alpha.z-1.0),0.0,1.0);\n#endif\n#endif\n#ifdef RENDER_SHADOWS\nvec4 shadow_pos=u_node_matrix*vec4(local_pos,1.0);\n#ifdef NORMAL_OFFSET\n#ifdef HAS_ATTRIBUTE_a_normal_3f\n#ifdef MODEL_POSITION_ON_GPU\nvec3 offset=shadow_normal_offset(vec3(-normal_3f.xy,normal_3f.z));shadow_pos.xyz+=offset*shadow_normal_offset_multiplier0();\n#else\nvec3 offset=shadow_normal_offset_model(normal_3f);shadow_pos.xyz+=offset*shadow_normal_offset_multiplier0();\n#endif\n#endif\n#endif\nv_pos_light_view_0=u_light_matrix_0*shadow_pos;v_pos_light_view_1=u_light_matrix_1*shadow_pos;v_depth_shadows=gl_Position.w;\n#endif\n}'),modelDepth:xn("void main() {}","in vec3 a_pos_3f;uniform mat4 u_matrix;\n#ifdef MODEL_POSITION_ON_GPU\n#ifdef INSTANCED_ARRAYS\nin vec4 a_normal_matrix0;in vec4 a_normal_matrix1;in vec4 a_normal_matrix2;in vec4 a_normal_matrix3;\n#else\nuniform highp mat4 u_instance;\n#endif\nuniform highp mat4 u_node_matrix;\n#endif\nvoid main() {\n#ifdef MODEL_POSITION_ON_GPU\nhighp mat4 instance;\n#ifdef INSTANCED_ARRAYS\ninstance=mat4(a_normal_matrix0,a_normal_matrix1,a_normal_matrix2,a_normal_matrix3);\n#else\ninstance=u_instance;\n#endif\nvec3 pos_color=instance[0].xyz;vec4 translate=instance[1];vec3 pos_a=floor(pos_color);float hidden=float(pos_a.x > EXTENT);float meter_to_tile=instance[0].w;vec4 pos=vec4(pos_a.xy,translate.z,1.0);mat3 rs;rs[0].x=instance[1].w;rs[0].yz=instance[2].xy;
1rs[1].xy=instance[2].zw;rs[1].z=instance[3].x;rs[2].xyz=instance[3].yzw;vec4 pos_node=u_node_matrix*vec4(a_pos_3f,1.0);vec3 rotated_pos_node=rs*pos_node.xyz;vec3 pos_model_tile=(rotated_pos_node+vec3(translate.xy,0.0))*vec3(meter_to_tile,meter_to_tile,1.0);pos.xyz+=pos_model_tile;gl_Position=mix(u_matrix*pos,AWAY,hidden);\n#else\ngl_Position=u_matrix*vec4(a_pos_3f,1);\n#endif\n}")},programUniforms:{model:t=>({u_matrix:new e.bb(t),u_lighting_matrix:new e.bb(t),u_normal_matrix:new e.bb(t),u_node_matrix:new e.bb(t),u_lightpos:new e.b7(t),u_lightintensity:new e.b4(t),u_lightcolor:new e.b7(t),u_camera_pos:new e.b7(t),u_opacity:new e.b4(t),u_baseColorFactor:new e.b8(t),u_emissiveFactor:new e.b8(t),u_metallicFactor:new e.b4(t),u_roughnessFactor:new e.b4(t),u_baseTextureIsAlpha:new e.b5(t),u_alphaMask:new e.b5(t),u_alphaCutoff:new e.b4(t),u_baseColorTexture:new e.b5(t),u_metallicRoughnessTexture:new e.b5(t),u_normalTexture:new e.b5(t),u_occlusionTexture:new e.b5(t),u_emissionTexture:new e.b5(t),u_lutTexture:new e.b5(t),u_color_mix:new e.b8(t),u_aoIntensity:new e.b4(t),u_emissive_strength:new e.b4(t),u_occlusionTextureTransform:new e.b8(t),u_dithered_discard_threshold:new e.b4(t)}),modelDepth:t=>({u_matrix:new e.bb(t),u_instance:new e.bb(t),u_node_matrix:new e.bb(t)})}};async function Uo(){return Promise.resolve()}class Vo{constructor(e,t,i){this.screenBounds=e,this.cameraPoint=i.getCameraPoint(),this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=t,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this._bufferedScreenMercator(0,i)}static createFromScreenPoints(t,i){let r,n;if(t instanceof e.au||"number"==typeof t[0]){const o=e.au.convert(t);r=[o],n=i.isPointAboveHorizon(o)}else{const o=e.au.convert(t[0]),s=e.au.convert(t[1]),a=o.add(s)._div(2);r=[o,s],n=e.eP(o,s).every(e=>i.isPointAboveHorizon(e))&&i.isPointAboveHorizon(a)}return new Vo(r,n,i)}isPointQuery(){return 1===this.screenBounds.length}bufferedScreenGeometry(t){return e.eP(this.screenBounds[0],1===this.screenBounds.length?this.screenBounds[0]:this.screenBounds[1],t)}bufferedCameraGeometry(t){const i=this.screenBounds[0],r=1===this.screenBounds.length?this.screenBounds[0].add(new e.au(1,1)):this.screenBounds[1],n=e.eP(i,r,0,!1);return this.cameraPoint.y>r.y&&(this.cameraPoint.x>i.x&&this.cameraPoint.x<r.x?n.splice(3,0,this.cameraPoint):this.cameraPoint.x>=r.x?n[2]=this.cameraPoint:this.cameraPoint.x<=i.x&&(n[3]=this.cameraPoint)),e.bu(n,t)}bufferedCameraGeometryGlobe(t){const i=this.screenBounds[0],r=1===this.screenBounds.length?this.screenBounds[0].add(new e.au(1,1)):this.screenBounds[1],n=e.eP(i,r,t),o=this.cameraPoint.clone(),s=Number(o.x>i.x)+Number(o.x>r.x);switch(3*(Number(o.y>i.y)+Number(o.y>r.y))+s){case 0:n[0]=o,n[4]=o.clone();break;case 1:n.splice(1,0,o);break;case 2:n[1]=o;break;case 3:n.splice(4,0,o);break;case 5:n.splice(2,0,o);break;case 6:n[3]=o;break;case 7:n.splice(3,0,o);break;case 8:n[2]=o}return n}containsTile(t,i,r,n=0){const o=Math.max(t.queryPadding,t.evaluateQueryRenderedFeaturePadding())/i._pixelsPerMercatorPixel+1,s=r?this._bufferedCameraMercator(o,i):this._bufferedScreenMercator(o,i);let a=t.tileID.wrap+(s.unwrapped?n:0);const l=s.polygon.map(i=>e.d8(t.tileTransform,i,a));if(!e.eM(l,0,0,e.r,e.r))return;a=t.tileID.wrap+(this.screenGeometryMercator.unwrapped?n:0);const c=this.screenGeometryMercator.polygon.map(i=>e.d9(t.tileTransform,i,a)),h=c.map(t=>new e.au(t[0],t[1])),u=i.getFreeCameraOptions().position||new e.ag(0,0,0),d=e.d9(t.tileTransform,u,a),f=c.map(t=>{const i=e.fx(t,t,d);return e.ex(i,i),new e.aB(d,i)}),p=e.eG(t,1,i.zoom)*i._pixelsPerMercatorPixel;return{queryGeometry:this,tilespaceGeometry:h,tilespaceRays:f,bufferedTilespaceGeometry:l,bufferedTilespaceBounds:(A=e.cI(l),A.min.x=e.bG(A.min.x,0,e.r),A.min.y=e.bG(A.min.y,0,e.r),A.max.x=e.bG(A.max.x,0,e.r),A.max.y=e.bG(A.max.y,0,e.r),A),tile:t,tileID:t.tileID,pixelToTileUnitsFactor:p};var A}_bufferedScreenMercator(e,t){const i=Go(e);if(this._screenRaycastCache[i])return this._screenRaycastCache[i];{let r;return r="globe"===t.projection.name?this._projectAndResample(this.bufferedScreenGeometry(e),t):{polygon:this.bufferedScreenGeometry(e).map(e=>t.pointCoordinate3D(e)),unwrapped:!0},this._screenRaycastCache[i]=r,r}}_bufferedCameraMercator(e,t){const i=Go(e);if(this._cameraRaycastCache[i])return this._cameraRaycastCache[i];{let r;return r="globe"===t.projection.name?this._projectAndResample(this.bufferedCameraGeometryGlobe(e),t):{polygon:this.bufferedCameraGeometry(e).map(e=>t.pointCoordinate3D(e)),unwrapped:!0},this._cameraRaycastCache[i]=r,r}}_projectAndResample(t,i){const r=function(t,i){const r=e.er([],i.pixelMatrix,i.globeMatrix),n=[0,-e.P,0,1],o=[0,e.P,0,1],s=[0,0,0,1];e.fM(n,n,r),e.fM(o,o,r),e.fM(s,s,r);const a=new e.au(n[0]/n[3],n[1]/n[3]),l=new e.au(o[0]/o[3],o[1]/o[3]),c=e.eL(t,a)&&n[3]<s[3],h=e.eL(t,l)&&o[3]<s[3];if(!c&&!h)return null;const u=function(e,t,i){for(let r=1;r<e.length;r++){const n=jo(t.pointCoordinate3D(e[r-1]).x),o=jo(t.pointCoordinate3D(e[r]).x);if(i<0){if(n<o)return{idx:r,t:-n/(o-1-n)}}else if(o<n)return{idx:r,t:(1-n)/(o+1-n)}}return null}(t,i,c?-1:1);if(!u)return null;const{idx:d,t:f}=u;let p=d>1?Ho(t.slice(0,d),i):[],A=d<t.length?Ho(t.slice(d),i):[];p=p.map(t=>new e.au(jo(t.x),t.y)),A=A.map(t=>new e.au(jo(t.x),t.y));const g=[...p];0===g.length&&g.push(A.at(-1));const m=g.at(-1),_=e.dY(m.y,(0===A.length?p[0]:A[0]).y,f);let y;return y=c?[new e.au(0,_),new e.au(0,0),new e.au(1,0),new e.au(1,_)]:[new e.au(1,_),new e.au(1,1),new e.au(0,1),new e.au(0,_)],g.pu
1sh(...y),0===A.length?g.push(p[0]):g.push(...A),{polygon:g.map(t=>new e.ag(t.x,t.y)),unwrapped:!1}}(t,i);if(r)return r;const n=function(t,i){let r=!1,n=-1/0,o=0;for(let e=0;e<t.length-1;e++)t[e].x>n&&(n=t[e].x,o=e);for(let e=0;e<t.length-1;e++){const i=(o+e)%(t.length-1),n=t[i],s=t[i+1];Math.abs(n.x-s.x)>.5&&(n.x<s.x?(n.x+=1,0===i&&(t.at(-1).x+=1)):(s.x+=1,i+1===t.length-1&&(t[0].x+=1)),r=!0)}const s=e.ek(i.center.lng);return r&&s<Math.abs(s-1)&&t.forEach(e=>{e.x-=1}),{polygon:t,unwrapped:r}}(Ho(t,i).map(t=>new e.au(jo(t.x),t.y)),i);return{polygon:n.polygon.map(t=>new e.ag(t.x,t.y)),unwrapped:n.unwrapped}}}function Ho(t,i){return e.f0(t,e=>{const t=i.pointCoordinate3D(e);e.x=t.x,e.y=t.y},1/256)}function jo(e){return e<0?1+e%1:e%1}function Go(e){return 100*e|0}class Yo extends e.y{constructor(t,i,r,n){if(super(),this.id=t,this.dispatcher=r,this.type="vector",this.provider=i.provider,this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,Object.assign(this,e.eF(i,["url","scheme","tileSize","promoteId"])),this._options=Object.assign({type:"vector"},i),this._collectResourceTiming=!!i.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(n),this._tileWorkers={},this._deduped=new e.m}load(t){this._loaded=!1,this.fire(new e.x("dataloading",{dataType:"source"}));const i=Array.isArray(this.map._language)?this.map._language.join():this.map._language,r=this.map.getWorldview(),n=(n,o)=>{this._tileJSONRequest=null,this._loaded=!0,n?(i&&console.warn(`Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: ${i}`),r&&console.warn(`Requested worldview strings must be a valid ISO alpha-2 code. Found: ${r}`),this.fire(new e.v(n))):o&&(this._setTileJSON(o),j(o.tiles,this.map._requestManager._customAccessToken),this.fire(new e.x("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.x("data",{dataType:"source",sourceDataType:"content"}))),t&&t(n)};this.provider=this._options.provider;const o=e.f1(this._options);return o instanceof Error?(this._loaded=!0,this.fire(new e.v(o)),void(t&&t())):this.provider&&!o?(this._loaded=!0,this.fire(new e.v(new Error(`TileProvider "${this.provider}" is not registered`))),void(t&&t())):void(this._tileJSONRequest=o?this.loadTileJSONWithProvider(o,n):e.e7(this._options,this.map._requestManager,i,r,n))}loadTileJSONWithProvider(t,i){this.provider=t.name;const{request:r,options:n}=e.eC(this._options,this.map._requestManager),o=new AbortController;return this.dispatcher.broadcast("loadTileProvider",{name:t.name,url:t.url,source:this.id,scope:this.scope,type:this.type,options:n,request:r},(t,r)=>{if(o.signal.aborted)return;if(t)return void i(t);const n=r?r.find(e=>null!=e):null,s=e.eW(this._options,n,this.map._requestManager);s instanceof Error?i(s):i(null,s)}),{cancel:()=>o.abort()}}_setTileJSON(e){if(Object.assign(this,e),this.hasWorldviews=!!e.worldview_options,e.worldview_default&&(this.worldviewDefault=e.worldview_default),e.vector_layers){this.vectorLayers=e.vector_layers,this.vectorLayerIds=[],this.localizableLayerIds=new Set;for(const t of e.vector_layers)this.vectorLayerIds.push(t.id),e.worldview&&e.worldview[t.source]&&this.localizableLayerIds.add(t.id)}this.tileBounds=Lr.fromTileJSON(e)}loaded(){return this._loaded}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}onAdd(e){this.map=e,this.load()}reload(){this.cancelTileJSONRequest();const t=e.ea(this.id,this.scope);this.load(()=>this.map.style.clearSource(t))}setTiles(e){return this._options.tiles=e,this.reload(),this}setUrl(e){return this.url=e,this._options.url=e,this.reload(),this}onRemove(e){this.cancelTileJSONRequest()}serialize(){return Object.assign({},this._options)}loadTile(t,i){const r=t.tileID.canonical.url(this.tiles,this.scheme),n=this.map._requestManager.normalizeTileURL(r),o=this.map._requestManager.transformRequest(n,e.aH.Tile),s=this.map.style?this.map.style.getLut(this.scope):null,a=s?{image:s.image.clone()}:null,l={request:o,data:void 0,uid:t.uid,tileID:t.tileID,tileZoom:t.tileZoom,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,lut:a,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.t
1ype,source:this.id,scope:this.scope,pixelRatio:e.co.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,showElevationIdDebug:!!this.map.painter&&this.map.painter._debugParams.showElevationIdDebug,promoteId:this.promoteId,renderSourceType:t.renderSourceType,frcCoverage:(()=>{const e=this.map.painter,i=e?e.frcCoverageFadeRange:null;if(null==i)return null;const r=e?e.frcCoverageSnapshot:null,n=this.map.transform.zoom<i[0],o=r?r.getTileOrParent(t.tileID.canonical):null,s=t.tileID.overscaledZ>=Math.ceil(i[1]),a=r&&s?r.getFullCoverageMask(t.tileID.canonical):null;return{frcMask:s&&null!=a?a:null,resolved:n||null!=r,polygons:o&&0!==o.frcMask?o.polygons:null,tileZoom:o&&0!==o.frcMask?o.tileId.z:null,sourceLayers:e?e.frcCoverageSourceLayers:["road","structure"]}})(),brightness:this.map.style&&this.map.style.getBrightness()||0,extraShadowCaster:t.isExtraShadowCaster,tessellationStep:this.map._tessellationStep,scaleFactor:this.map.getScaleFactor(),worldview:this.map.getWorldview()||this.worldviewDefault,indoor:this.map.getIndoorTileOptions(this.id,this.scope)};if(this.hasWorldviews&&e.dL(r)&&(l.localizableLayerIds=this.localizableLayerIds),l.request.collectResourceTiming=this._collectResourceTiming,t.actor&&"expired"!==t.state)"loading"===t.state?t.reloadCallback=i:t.request=t.actor.send("reloadTile",l,c.bind(this));else if(t.actor=this._tileWorkers[n]=this._tileWorkers[n]||this.dispatcher.getActor(),this.dispatcher.ready||this.provider)t.request=t.actor.send("loadTile",l,c.bind(this),void 0,!0);else{const i=e.e9.call({deduped:this._deduped},l,(i,r)=>{if(i||!r)c.call(this,i);else{const i=e.cO(r.responseHeaders);l.data={rawData:r.rawData.slice(0),expires:i.expires,cacheControl:i.cacheControl},t.actor&&t.actor.send("loadTile",l,c.bind(this),void 0,!0)}},!0);t.request={cancel:i}}function c(r,n){return delete t.request,t.aborted?i(null):r?i(r):(n&&n.resourceTiming&&(t.resourceTiming=n.resourceTiming),this.map._refreshExpiredTiles&&n&&t.setExpiryData(n),void function(){if(t.aborted)return i(null);t.loadVectorData(n,this.map.painter),e.bv(this.dispatcher),i(null,n),t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)}.call(this))}}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.t
1ype,source:this.id,scope:this.scope})}unloadTile(e,t){e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id,scope:this.scope}),e.destroy()}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}const Wo={vector:Yo,raster:Fr,"raster-dem":class extends Fr{constructor(e,t,i,r){super(e,t,i,r),this.type="raster-dem",this.maxzoom=22,this._options=Object.assign({type:"raster-dem"},t),this.encoding=t.encoding||"mapbox"}loadTileJSONWithProvider(t,i){this.provider=t.name;const{request:r,options:n}=e.eC(this._options,this.map._requestManager),o=new AbortController;return this.dispatcher.broadcast("loadTileProvider",{name:t.name,url:t.url,source:this.id,scope:this.scope,type:this.type,options:n,request:r},(t,r)=>{if(o.signal.aborted)return;if(t)return void i(t);const n=r?r.find(e=>null!=e):null,s=e.eW(this._options,n,this.map._requestManager);s instanceof Error?i(s):i(null,s)}),{cancel:()=>o.abort()}}loadTile(t,i){const r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize),n=this.map._requestManager.transformRequest(r,e.aH.Tile),o={uid:t.uid,tileID:t.tileID,source:this.id,type:this.t
1ype,scope:this.scope,request:n,encoding:this.encoding};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.request=t.actor.send("loadTile",o,function(e,r){return delete t.request,t.aborted?(t.state="unloaded",i(null)):e?(t.state="errored",i(e)):(r&&(this.map._refreshExpiredTiles&&t.setExpiryData(r),r.borderReady||t.neighboringTiles||(t.neighboringTiles=this._getNeighboringTiles(t.tileID)),t.dem=r.dem,t.dem.onDeserialize(),t.needsHillshadePrepare=!0,t.needsDEMTextureUpload=!0),t.state="loaded",void i(null))}.bind(this),void 0,!0))}abortTile(e,t){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.type,source:this.id,scope:this.scope}),t&&t()}_getNeighboringTiles(t){const i=t.canonical,r=Math.pow(2,i.z),n=(i.x-1+r)%r,o=0===i.x?t.wrap-1:t.wrap,s=(i.x+1+r)%r,a=i.x+1===r?t.wrap+1:t.wrap,l={};return l[new e.ap(t.overscaledZ,o,i.z,n,i.y).key]={backfilled:!1},l[new e.ap(t.overscaledZ,a,i.z,s,i.y).key]={backfilled:!1},i.y>0&&(l[new e.ap(t.overscaledZ,o,i.z,n,i.y-1).key]={backfilled:!1},l[new e.ap(t.overscaledZ,t.wrap,i.z,i.x,i.y-1).key]={backfilled:!1},l[new e.ap(t.overscaledZ,a,i.z,s,i.y-1).key]={backfilled:!1}),i.y+1<r&&(l[new e.ap(t.overscaledZ,o,i.z,n,i.y+1).key]={backfilled:!1},l[new e.ap(t.overscaledZ,t.wrap,i.z,i.x,i.y+1).key]={backfilled:!1},l[new e.ap(t.overscaledZ,a,i.z,s,i.y+1).key]={backfilled:!1}),l}},"raster-array":kr,geojson:class extends e.y{constructor(t,i,r,n){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=r.getActor(),this.setEventedParent(n),this._data=i.data,this._options=Object.assign({},i),this._collectResourceTiming=i.collectResourceTiming,void 0!==i.maxzoom&&(this.maxzoom=i.maxzoom),void 0!==i.minzoom&&(this.minzoom=i.minzoom),i.type&&(this.type=i.type),i.attribution&&(this.attribution=i.attribution),this.promoteId=i.promoteId;const o=e.r/this.tileSize;this.workerOptions=Object.assign({source:this.id,scope:this.scope,cluster:i.cluster||!1,geojsonVtOptions:{buffer:(void 0!==i.buffer?i.buffer:128)*o,tolerance:(void 0!==i.tolerance?i.tolerance:.375)*o,extent:e.r,maxZoom:this.maxzoom,lineMetrics:i.lineMetrics||!1,generateId:i.generateId||!1},superclusterOptions:{maxZoom:void 0!==i.clusterMaxZoom?i.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,i.clusterMinPoints||2),extent:e.r,radius:(void 0!==i.clusterRadius?i.clusterRadius:50)*o,log:!1,generateId:i.generateId||!1},clusterProperties:i.clusterProperties,filter:i.filter,dynamic:i.dynamic},i.workerOptions)}onAdd(e){this.map=e,this.setData(this._data)}setData(e){return this._data=e,this._updateWorkerData(),this}updateData(t){if(!this._options.dynamic)return this.fire(new e.v(new Error("Can't call updateData on a GeoJSON source with dynamic set to false.")));if("string"!=typeof t&&("Feature"===t.type&&(t={type:"FeatureCollection",features:[t]}),"FeatureCollection"!==t.type))return this.fire(new e.v(new Error("Data to update should be a feature or a feature collection.")));if(this._coalesce&&"string"!=typeof t&&"string"!=typeof this._data&&"FeatureCollection"===this._data.type){const e=new Map;
1for(const t of this._data.features)e.set(t.id,t);for(const i of t.features)e.set(i.id,i);this._data.features=[...e.values()]}else this._data=t;return this._updateWorkerData(!0),this}getClusterExpansionZoom(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id,scope:this.scope},t),this}getClusterChildren(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id,scope:this.scope},t),this}getClusterLeaves(e,t,i,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,scope:this.scope,clusterId:e,limit:t,offset:i},r),this}_updateWorkerData(t=!1){if(this._pendingLoad)return void(this._coalesce=!0);this.fire(new e.x("dataloading",{dataType:"source"})),this._loaded=!1;const i=Object.assign({append:t},this.workerOptions);i.scope=this.scope;const r=this._data;"string"==typeof r?(i.request=this.map._requestManager.transformRequest(e.co.resolveURL(r),e.aH.Source),i.request.collectResourceTiming=this._collectResourceTiming):i.data=JSON.stringify(r),this._pendingLoad=this.actor.send(`${this.type}.loadData`,i,(i,r)=>{if(this._loaded=!0,this._pendingLoad=null,i)this.fire(new e.v(i));else{const i={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&r&&r.resourceTiming&&r.resourceTiming[this.id]&&(i.resourceTiming=r.resourceTiming[this.id]),t&&(this._partialReload=!0),this.fire(new e.x("data",i)),this._partialReload=!1,this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(t),this._coalesce=!1)})}loaded(){return this._loaded}reload(){const t=e.ea(this.id,this.scope);this.map.style.clearSource(t),this._updateWorkerData()}loadTile(t,i){const r=t.actor?"reloadTile":"loadTile";t.actor=this.actor;const n=this.map.style?this.map.style.getLut(this.scope):null,o=n?{image:n.image.clone()}:null,s=this._partialReload,a={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,lut:o,scope:this.scope,pixelRatio:e.co.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,showElevationIdDebug:!!this.map.painter&&this.map.painter._debugParams.showElevationIdDebug,promoteId:this.promoteId,brightness:this.map.style&&this.map.style.getBrightness()||0,extraShadowCaster:t.isExtraShadowCaster,scaleFactor:this.map.getScaleFactor(),partial:s,worldview:this.map.getWorldview(),indoor:this.map.getIndoorTileOptions(this.id,this.scope)};t.request=this.actor.send(r,a,(e,n)=>s&&!n?(t.state="loaded",i(null)):(delete t.request,t.destroy(!1),t.aborted?i(null):e?i(e):(t.loadVectorData(n,this.map.painter,"reloadTile"===r),i(null))),void 0,"loadTile"===r)}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0}unloadTile(e,t){this.actor.send("removeTile",{uid:e.uid,type:this.t
1ype,source:this.id,scope:this.scope}),e.destroy()}onRemove(e){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return Object.assign({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends e.a3{constructor(e,t,i,r){super(e,t,i,r),this.roundZoom=!0,this.type="video",this.options=t}load(){this._loaded=!1;const t=this.options;this.urls=[];for(const i of t.urls)this.urls.push(this.map._requestManager.transformRequest(i,e.aH.Source).url);e.db(this.urls,(t,i)=>{this._loaded=!0,t?this.fire(new e.v(t)):i&&(this.video=i,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 i=this.video.seekable;t<i.start(0)||t>i.end(0)?this.fire(new e.v(new We(`sources.${this.id}`,null,`Playback for this video can be set only between the ${i.start(0)} and ${i.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,i=t.gl;this.texture?this.video.paused||(this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE),i.texSubImage2D(i.TEXTURE_2D,0,0,0,i.RGBA,i.UNSIGNED_BYTE,this.video)):(this.texture=new e.a_(t,this.video,i.RGBA8),this.texture.bind(i.LINEAR,i.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:e.a3,model:e.ai,"batched-model":class extends e.y{constructor(e,t,i,r){super(),this.type="batched-model",this.id=e,this.tileSize=512,this._options=t,this.tiles=this._options.tiles,this.maxzoom=t.maxzoom||19,this.minzoom=t.minzoom||0,this.roundZoom=!0,this.usedInConflation=!0,this.dispatcher=i,this.reparseOverscaled=!1,this.scheme="xyz",this._loaded=!1,this.setEventedParent(r)}onAdd(e){this.map=e,this.load()}reload(){this.cancelTileJSONRequest();const t=e.ea(this.id,this.scope);this.load(()=>this.map.style.clearSource(t))}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}load(t){this._loaded=!1,this.fire(new e.x("dataloading",{dataType:"source"}));const i=Array.isArray(this.map._language)?this.map._language.join():this.map._language,r=this.map.getWorldview();this._tileJSONRequest=e.e7(this._options,this.map._requestManager,i,r,(n,o)=>{this._tileJSONRequest=null,this._loaded=!0,n?(i&&console.warn(`Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: ${i}`),r&&2!==r.length&&console.warn(`Requested worldview strings must be a valid ISO alpha-2 code. Found: ${r}`),this.fire(new e.v(n))):o&&(Object.assign(this,o),o.bounds&&(this.tileBounds=new Lr(o.bounds,this.minzoom,this.maxzoom)),j(o.tiles,this.map._requestManager._customAccessToken),this.fire(new e.x("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.x("data",{dataType:"source",sourceDataType:"content"}))),t&&t(n)})}hasTransition(){return!1}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loaded(){return this._loaded}loadTile(t,i){const r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme)),n={request:this.map._requestManager.transformRequest(r,e.aH.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.t
1ype,source:this.id,scope:this.scope,showCollisionBoxes:this.map.showCollisionBoxes,renderSourceType:t.renderSourceType,brightness:this.map.style&&this.map.style.getBrightness()||0,pixelRatio:e.co.devicePixelRatio,promoteId:this.promoteId};if(t.actor&&"expired"!==t.state)if("loading"===t.state)t.reloadCallback=i;else{if(t.buckets){const e=Object.values(t.buckets);for(const t of e)t.dirty=!0;return void(t.state="loaded")}t.request=t.actor.send("reloadTile",n,o.bind(this))}else t.actor=this.dispatcher.getActor(),t.request=t.actor.send("loadTile",n,o.bind(this),void 0,!0);function o(e,r){return t.aborted?i(null):e&&404!==e.status?i(e):(this.map._refreshExpiredTiles&&r&&t.setExpiryData(r),t.loadModelData(r,this.map.painter),t.state="loaded",void i(null))}}serialize(){return Object.assign({},this._options)}},canvas:class extends e.a3{constructor(t,i,r,n){super(t,i,r,n),i.coordinates?Array.isArray(i.coordinates)&&4===i.coordinates.length&&!i.coordinates.some(e=>!Array.isArray(e)||2!==e.length||e.some(e=>"number"!=typeof e))||this.fire(new e.v(new We(`sources.${t}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.v(new We(`sources.${t}`,null,'missing required property "coordinates"'))),i.animate&&"boolean"!=typeof i.animate&&this.fire(new e.v(new We(`sources.${t}`,null,'optional "animate" property must be a boolean value'))),i.canvas?"string"==typeof i.canvas||i.canvas instanceof HTMLCanvasElement||this.fire(new e.v(new We(`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.v(new We(`sources.${t}`,null,'missing required property "canvas"'))),this.options=i,this.animate=void 0===i.animate||i.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.v(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(e){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 i=this.map.painter.context;this.texture?!t&&!this._playing||this.texture instanceof e.bd||this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.a_(i,this.canvas,i.gl.RGBA8,{premultiply:!0}),this._prepareData(i)}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.y{constructor(t,i,r,n){super(),this.id=t,this.type="custom",this._dataType="raster",this._dispatcher=r,this._implementation=i,this.setEventedParent(n),this.scheme="xyz",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this._loaded=!1,this.roundZoom=!0,this._implementation||this.fire(new e.v(new Error(`Missing implementation for ${this.id} custom source`))),this._implementation.loadTile||this.fire(new e.v(new Error(`Missing loadTile implementation for ${this.id} custom source`))),this._implementation.bounds&&(this.tileBounds=new Lr(this._implementation.bounds,this.minzoom,this.maxzoom));const o=i;o.update=this._update.bind(this),o.clearTiles=this._clearTiles.bind(this),o.coveringTiles=this._coveringTiles.bind(this),Object.assign(this,e.eF(i,["dataType","scheme","minzoom","maxzoom","tileSize","attribution","minTileCacheSize","maxTileCacheSize"]))}serialize(){return e.eF(this,["type","scheme","minzoom","maxzoom","tileSize","attribution"])}load(){this._loaded=!0,this.fire(new e.x("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.x("data",{dataType:"source",sourceDataType:"content"}))}loaded(){return this._loaded}onAdd(t){this.map=t,this._loaded=!1,this.fire(new e.x("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:i,z:r}=e.canonical;return this._implementation.hasTile({x:t,y:i,z:r})}return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(e,t){const{x:i,y:r,z:n}=e.tileID.canonical,o=new AbortController,s=Promise.resolve(this._implementation.loadTile({x:i,y:r,z:n},{signal:o.signal})).then(function(i){return delete e.request,e.aborted?(e.state="unloaded",t(null)):void 0===i?(e.state="errored",t(null)):null===i?(this.loadTileData(e,{width:this.tileSize,height:this.tileSize,data:null}),e.state="loaded",t(null)):function(e){return e instanceof ImageData||e instanceof HTMLCanvasElement||e instanceof ImageBitmap||e instanceof HTMLImageElement}(i)?(this.loadTileData(e,i),e.state="loaded",void t(null)):(e.state="errored",t(new Error(`Can't infer data type for ${this.id}, only raster data supported at the moment`)))}.bind(this)).catch(i=>{"AbortError"!==i.name&&(e.state="errored",t(i))});s.cancel=()=>o.abort(),e.request=s}loadTileData(e,t){e.setTexture(t,this.map.painter)}
vendor: 5,930 bytes, line 1
1unloadTile(t,i){if(t.texture&&t.texture instanceof e.a_?(t.destroy(!1),t.texture&&t.texture instanceof e.a_&&this.map.painter.saveTileTexture(t.texture)):t.destroy(),this._implementation.unloadTile){const{x:e,y:i,z:r}=t.tileID.canonical;this._implementation.unloadTile({x:e,y:i,z:r})}i&&i()}abortTile(e,t){e.request&&e.request.cancel&&(e.request.cancel(),delete e.request),t&&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}))}_clearTiles(){const t=e.ea(this.id,this.scope);this.map.style.clearSource(t)}_update(){this.fire(new e.x("data",{dataType:"source",sourceDataType:"content"}))}}},Jo=function(t,i,r,n){const o=new Wo[i.type](t,i,r,n);if(o.id!==t)throw new Error(`Expected Source id to be ${t} instead of ${o.id}`);return e.bs(["load","abort","unload","serialize","prepare"],o),o};function Zo(e,t,i=""){return`${i}:${t.id||""}:${t.layer.id}:${function(e){if("layerId"in e)return`layer:${e.layerId}`;{const{featuresetId:t,importId:i}=e;return`featureset:${t}${i?`:import:${i}`:""}`}}(e.target)}`}function qo(e,t,i,r=""){if(e.uniqueFeatureID){const n=Zo(e,t,r);if(i.has(n))return!0;i.add(n)}return!1}function Ko(e,t,i,r,n=!1,o=void 0){const s=t.sourceCache.transform,a=t.sourceCache.tilesIn(e,t.has3DLayers,n);a.sort(es);const l=[];for(const c of a){const e=c.tile.queryRenderedFeatures(t,c,i,r,s,n,o);Object.keys(e).length&&l.push({wrappedTileID:c.tile.tileID.wrapped().key,queryResults:e})}for(const c in t.layers){const i=t.layers[c];if(i.styleLayer){const n=i.styleLayer.queryRenderedFeatures(e,t.sourceCache,r);Object.keys(n).length&&l.push({wrappedTileID:0,queryResults:n})}}return 0===l.length?{}:function(e){const t={},i={};for(const r of e){const e=r.queryResults,n=r.wrappedTileID,o=i[n]=i[n]||{};for(const i in e){const r=e[i],n=o[i]=o[i]||{},s=t[i]=t[i]||[];for(const e of r)n[e.featureIndex]||(n[e.featureIndex]=!0,s.push(e))}}return t}(l)}function Xo(e,t,i,r,n,o){const s={},a=r.queryRenderedSymbols(e),l=[];for(const c of Object.keys(a).map(Number))l.push(n[c]);l.sort(es);for(const c of l){const e=c.featureIndex.lookupSymbolFeatures(a[c.bucketInstanceId],c.bucketIndex,c.sourceLayerIndex,t,i,o);for(const t in e){const i=s[t]=s[t]||[],r=e[t];r.sort((e,t)=>{const i=c.featureSortOrder;if(i){const r=i.indexOf(e.featureIndex);return i.indexOf(t.featureIndex)-r}return t.featureIndex-e.featureIndex});for(const e of r)i.push(e)}}return s}function $o(e,t){const i=e.getRenderableIds().map(t=>e.getTileByID(t)),r=[],n={};for(let o=0;o<i.length;o++){const e=i[o],s=e.tileID.canonical.key;n[s]||(n[s]=!0,e.querySourceFeatures(r,t))}return r}function es(e,t){const i=e.tileID,r=t.tileID;return i.overscaledZ-r.overscaledZ||i.canonical.y-r.canonical.y||i.wrap-r.wrap||i.canonical.x-r.canonical.x}class ts{constructor(e){this.style=e,this.layersGotHidden=!1,this.layers=[]}processLayersChanged(){this.layers=[];const e=!1,t=!1;for(const i in this.style._mergedLayers){const r=this.style._mergedLayers[i];if("fill-extrusion"===r.type||"building"===r.type)this.layers.push({layer:r,visible:e,visibilityChanged:t});else if("model"===r.type){const i=this.style.getLayerSource(r);i&&"batched-model"===i.type&&this.layers.push({layer:r,visible:e,visibilityChanged:t})}}}onNewFrame(e){this.layersGotHidden=!1;for(const t of this.layers){const i=t.layer;let r=!1;"fill-extrusion"===i.type?r=!i.isHidden(e)&&i.paint.get("fill-extrusion-opacity")>0:"building"===i.type?r=!i.isHidden(e)&&i.paint.get("building-opacity")>0:"model"===i.type&&(r=!i.isHidden(e)&&i.paint.get("model-opacity").constantOr(1)>0),this.layersGotHidden=this.layersGotHidden||!r&&t.visible,t.visible=r}}updateZOffset(e,t){this.currentBuildingBuckets=[];for(const r of this.layers){const e=r.layer,i=this.style.getLayerSourceCache(e);let n=1;"fill-extrusion"===e.type?n=r.visible?e.paint.get("fill-extrusion-vertical-scale"):0:"building"===e.type&&(n=r.visible?e.paint.get("building-vertical-scale"):0);let o=i?i.getTile(t):null;if(!o&&i)for(const r in i._tiles){const e=i._tiles[r];if(t.canonical.isChildOf(e.tileID.canonical)){o=e;break}}this.currentBuildingBuckets.push({bucket:o?o.getBucket(e):null,tileID:o?o.tileID:t,verticalScale:n})}e.hasAnyZOffset=!1;let i=!1;for(let r=0;r<e.symbolInstances.length;r++){const n=e.symbolInstances.get(r),o=n.zOffset,s=this._getHeightAtTileOffset(t,n.tileAnchorX,n.tileAnchorY);n.zOffset=s!==Number.NEGATIVE_INFINITY?s:o,i||o===n.zOffset||(i=!0),e.hasAnyZOffset||0===n.zOffset||(e.hasAnyZOffset=!0)}i&&(e.zOffsetBuffersNeedUpload=!0,e.zOffsetSortDirty=!0)}_mapCoordToOverlappingTile(t,i,r,n){let o=i,s=r;if(t.canonical.z!==n.canonical.z){const a=n.canonical,l=1/(1<<t.canonical.z-a.z);o=(i+t.canonical.x*e.r)*l-a.x*e.r|0,s=(r+t.canonical.y*e.r)*l-a.y*e.r|0}return{tileX:o,tileY:s}}_getHeightAtTileOffset(e,t,i){let r,n;for(let o=0;o<this.layers.length;++o){const s=this.layers[o].layer;if("fill-extrusion"!==s.type&&"building"!==s.type)continue;const{bucket:a,tileID:l,verticalScale:c}=this.currentBuildingBuckets[o];if(!a)continue;const{tileX:h,tileY:u}=this._mapCoordToOverlappingTile(e,t,i,l),d=a.getHeightAtTileCoord(h,u);d&&void 0!==d.height&&(d.hidden?r=d.height:n=Math.max(d.height*c,n||0))}if(void 0!==n)return n;for(let o=0;o<this.layers.length;++o){const n=this.layers[o];if("model"!==n.layer.type||!n.visible)continue;const{bucket:s,tileID:a}=this.currentBuildingBuckets[o];if(!s)continue;const{tileX:l,tileY:c}=this._mapCoordToOverlappingTile(e,t,i,a),h=s.getHeightAtTileCoord(l,c);if(h&&!h.hidden)return void 0===h.height&&void 0!==r?Math.min(h.maxHeight,r)*h.verticalScale:h.height?h.height*h.verticalScale:Number.NEGATIVE_INFINITY}return this.layersGotHidden?0:Number.NEGATIVE_INFINITY}}let is;function rs(){return is||(is=new oi),is}function ns(t,i){const r={},n=t,o=i,s=r;for(const e in n)"ref"!==e&&(s[e]=n[e]);
1return e.eY.forEach(e=>{e in o&&(s[e]=o[e])}),r}function os(e){e=e.slice();const t=Object.create(null);for(const i of e)t[i.id]=i;for(let i=0;i<e.length;i++){const r=e[i];if(r&&"ref"in r){const n=t[r.ref];n&&(e[i]=ns(r,n))}}return e}const ss={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setSlot:"setSlot",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",setSnow:"setSnow",setRain:"setRain",setCamera:"setCamera",setLights:"setLights",setProjection:"setProjection",addImport:"addImport",removeImport:"removeImport",updateImport:"updateImport",addIconset:"addIconset",removeIconset:"removeIconset"};function as(e,t,i){i.push({command:ss.addSource,args:[e,t[e]]})}function ls(e,t,i){t.push({command:ss.removeSource,args:[e]}),i[e]=!0}function cs(e,t,i,r){ls(e,i,r),as(e,t,i)}function hs(t,i,r){let n;for(n in t[r])if(Object.hasOwn(t[r],n)&&"data"!==n&&!e.c2(t[r][n],i[r][n]))return!1;for(n in i[r])if(Object.hasOwn(i[r],n)&&"data"!==n&&!e.c2(t[r][n],i[r][n]))return!1;return!0}function us(t,i,r,n,o,s){let a;for(a in i=i||{},t=t||{})Object.hasOwn(t,a)&&(e.c2(t[a],i[a])||r.push({command:s,args:[n,a,i[a],o]}));for(a in i)Object.hasOwn(i,a)&&!Object.hasOwn(t,a)&&(e.c2(t[a],i[a])||r.push({command:s,args:[n,a,i[a],o]}))}function ds(e){return e.id}function fs(e,t){return e[t.id]=t,e}function ps(t,i,r){const n=i.createTileMatrix(t,t.worldSize,r.toUnwrapped());return e.er(new Float32Array(16),t.projMatrix,n)}function As(e,t,i){if(t.projection.name===i.projection.name)return e.projMatrix;const r=i.clone();return r.setProjection(t.projection),ps(r,t.getProjection(),e)}function gs(e,t,i){return t.name===i.projection.name?e.projMatrix:ps(i,t,e)}class ms{constructor(e,t,i,r){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):r&&i?1:0,this.placed=i}isHidden(){return 0===this.opacity&&!this.placed}}class _s{constructor(e,t,i,r,n,o=!1){this.text=new ms(e?e.text:null,t,i,n),this.icon=new ms(e?e.icon:null,t,r,n),this.clipped=o}isHidden(){return this.text.isHidden()&&this.icon.isHidden()}}class ys{constructor(e,t,i,r=!1){this.text=e,this.icon=t,this.skipFade=i,this.clipped=r}}class xs{constructor(){this.invProjMatrix=e.bT(),this.viewportMatrix=e.bT(),this.circles=[]}}class vs{constructor(e,t,i,r,n){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=i,this.bucketIndex=r,this.tileID=n}}class ws{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 Es(t,i,r,n,o){const{horizontalAlign:s,verticalAlign:a}=e.cE(t),l=-(s-.5)*i,c=-(a-.5)*r,h=e.cj(t,n);return new e.au(l+h[0]*o,c+h[1]*o)}function bs(t,i,r,n,o){const s=new e.au(t,i);return r&&s._rotate(n?o:-o),s}function Is(t,i,r,n){const{leftJustifiedTextSymbolIndex:o,centerJustifiedTextSymbolIndex:s,rightJustifiedTextSymbolIndex:a,verticalPlacedTextSymbolIndex:l,crossTileID:c}=r,h=e.cF(i),u=n===e.bg.vertical?l:"left"===h?o:"center"===h?s:"right"===h?a:-1;o>=0&&(t.text.placedSymbolArray.get(o).crossTileID=u>=0&&o!==u?0:c),s>=0&&(t.text.placedSymbolArray.get(s).crossTileID=u>=0&&s!==u?0:c),a>=0&&(t.text.placedSymbolArray.get(a).crossTileID=u>=0&&a!==u?0:c),l>=0&&(t.text.placedSymbolArray.get(l).crossTileID=u>=0&&l!==u?0:c)}function Cs(t,i,r){const n=i===e.bg.horizontal||i===e.bg.horizontalOnly?i:0,o=i===e.bg.vertical?i:0,{leftJustifiedTextSymbolIndex:s,centerJustifiedTextSymbolIndex:a,rightJustifiedTextSymbolIndex:l,verticalPlacedTextSymbolIndex:c}=r,h=t.text.placedSymbolArray;s>=0&&(h.get(s).placedOrientation=n),a>=0&&(h.get(a).placedOrientation=n),l>=0&&(h.get(l).placedOrientation=n),c>=0&&(h.get(c).placedOrientation=o)}class Bs{constructor(e,t,i,r,n,o,s,a){this.transform=e.clone(),this.projection=e.projection.name,this.algorithm=r,this.collisionIndex=this.algorithm.createCollisionDetector(this.transform,o,a),this.buildingIndex=s,this.frontCutoff
1Start=0,this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=t,this.retainedQueryData={},this.collisionGroups=new ws(i),this.collisionCircleArrays={},this.prevPlacement=n,n&&(n.prevPlacement=void 0),this.placedOrientations={},this.lastReplacementSourceUpdateTime=0}getBucketParts(t,i,r,n,o=1){const s=r.getBucket(i),a=r.latestFeatureIndex;if(!s||!a||i.fqid!==s.layerIds[0])return;const l=s.layers[0].layout,c=s.layers[0].paint,h=r.collisionBoxArray,u=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),d=r.tileSize/e.r,f=r.tileID.toUnwrapped();this.transform.setProjection(s.projection);const p=(A=r.tileID,g=s.getProjection(),m=this.transform,g.name===this.projection?m.calculateProjMatrix(A.toUnwrapped()):ps(m,g,A));var A,g,m;const _="map"===l.get("text-pitch-alignment"),y="map"===l.get("text-rotation-alignment");i.compileFilter(i.options);const x=i.dynamicFilter(),v=i.dynamicFilterNeedsFeature(),w=i.dynamicFilterNeedsGeometry(),E=this.transform.calculatePixelsToTileUnitsMatrix(r),b=Bi(p,r.tileID.canonical,_,y,this.transform,s.getProjection(),E);let I=null;const C=s.getProjection().createInversionMatrix(this.transform,r.tileID.canonical);if(_){const t=Di(p,r.tileID.canonical,_,y,this.transform,s.getProjection(),E);I=e.er([],this.transform.labelPlaneMatrix,t)}let B=null;x&&r.latestFeatureIndex&&(B={unwrappedTileID:f,dynamicFilter:x,dynamicFilterNeedsFeature:v,needGeometry:w}),this.retainedQueryData[s.bucketInstanceId]=new vs(s.bucketInstanceId,a,s.sourceLayerIndex,s.index,r.tileID);const[D,T]=s.layers[0].layout.get("text-size-scale-range"),M=e.bG(o,D,T),[Q,S]=l.get("icon-size-scale-range"),P=e.bG(o,Q,S),R={bucket:s,layout:l,paint:c,posMatrix:p,invMatrix:C,mercatorCenter:[e.ek(this.transform.center.lng),e.el(this.transform.center.lat)],textLabelPlaneMatrix:b,labelToScreenMatrix:I,clippingData:B,scale:u,textPixelRatio:d,holdingForFade:r.holdingForFade(),collisionBoxArray:h,partiallyEvaluatedTextSize:e.ci(s.textSizeData,this.transform.zoom,M),partiallyEvaluatedIconSize:e.ci(s.iconSizeData,this.transform.zoom,P),collisionGroup:this.collisionGroups.get(s.sourceID),latestFeatureIndex:r.latestFeatureIndex};if(n)for(const e of s.sortKeyRanges){const{sortKey:i,symbolInstanceStart:r,symbolInstanceEnd:n}=e;t.push({sortKey:i,symbolInstanceStart:r,symbolInstanceEnd:n,parameters:R})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:s.symbolInstances.length,parameters:R})}placeLayerBucketPart(e,t,i,r,n=1){this.algorithm.placeLayerBucketPart(this,e,t,i,r,n)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;const t=this.prevPlacement;let i=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;const r=t?t.symbolFadeChange(e):1,n=t?t.opacities:{},o=t?t.variableOffsets:{},s=t?t.placedOrientations:{};for(const a in this.placements){const e=this.placements[a],t=n[a];t?(this.opacities[a]=new _s(t,r,e.text,e.icon,null,e.clipped),i=i||e.text!==t.text.placed||e.icon!==t.icon.placed):(this.opacities[a]=new _s(null,r,e.text,e.icon,e.skipFade,e.clipped),i=i||e.text||e.icon)}for(const a in n){const e=n[a];if(!this.opacities[a]){const t=new _s(e,r,!1,!1);t.isHidden()||(this.opacities[a]=t,i=i||e.text.placed||e.icon.placed)}}for(const a in o)this.variableOffsets[a]||!this.opacities[a]||this.opacities[a].isHidden()||(this.variableOffsets[a]=o[a]);for(const a in s)this.placedOrientations[a]||!this.opacities[a]||this.opacities[a].isHidden()||(this.placedOrientations[a]=s[a]);i?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t,i,r){r&&(this.lastReplacementSourceUpdateTime=r.updateTime);const n=new Set;for(const o of t){const t=o.getBucket(e);t&&o.latestFeatureIndex&&e.fqid===t.layerIds[0]&&(this.updateBucketOpacities(t,n,o,o.collisionBoxArray,i,r,o.tileID,e.scope),"offset"===t.elevationType&&this.buildingIndex&&this.buildingIndex.updateZOffset(t,o.tileID),"road"===t.elevationType&&t.hdExt&&t.hdExt.updateRoadElevation(t,o.tileID.canonical),t.updateZOffset())}}updateBucketOpacities(t,i,r,n,o,s,a,l){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 c=t.layers[0].layout,h=t.layers[0].paint,u=!!t.layers[0].dynamicFilter(),d=new _s(null,0,!1,!1,
vendor: 3,102 bytes, line 1
1!0),f=c.get("text-allow-overlap"),p=c.get("icon-allow-overlap"),A=c.get("text-variable-anchor"),g="map"===c.get("text-rotation-alignment"),m="map"===c.get("text-pitch-alignment"),_=h.get("symbol-z-offset"),y="sea"===c.get("symbol-elevation-reference"),x=!_.isConstant(),v=new _s(null,0,f&&(p||!t.hasIconData()||c.get("icon-optional")),p&&(f||!t.hasTextData()||c.get("text-optional")),!0);!t.collisionArrays&&n&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(n);const w=(e,t,i)=>{for(let r=0;r<t/4;r++)e.opacityVertexArray.emplaceBack(i)};let E=0;s&&t.updateReplacement(a,s),this.collisionIndex.clearClippedSymbolsForBucket(t.bucketInstanceId);for(let b=0;b<t.symbolInstances.length;b++){const n=t.symbolInstances.get(b),{numHorizontalGlyphVertices:c,numVerticalGlyphVertices:h,crossTileID:f,numIconVertices:p,tileAnchorX:I,tileAnchorY:C}=n;let B=null;const D=this.retainedQueryData[t.bucketInstanceId];x&&n&&D&&(B=r.latestFeatureIndex.loadFeature({featureIndex:n.featureIndex,bucketIndex:D.bucketIndex,sourceLayerIndex:D.sourceLayerIndex,layoutVertexArrayOffset:0}));const T=_.evaluate(B,{}),M=i.has(f);let Q=this.opacities[f];M?Q=d:Q||(Q=v,this.opacities[f]=Q),i.add(f);const S=c>0||h>0,P=p>0,R=this.placedOrientations[f],z=R===e.bg.vertical,L=R===e.bg.horizontal||R===e.bg.horizontalOnly;!S&&!P||Q.isHidden()||E++;let F=!1;if((S||P)&&s)for(const i of t.activeReplacements){if(e.fp(i,o,e.a8.Symbol,l))continue;if(i.min.x>I||I>i.max.x||i.min.y>C||C>i.max.y)continue;const t=e.fN(I,C,a.canonical,i.footprintTileId.canonical);if(F=e.eI(t,i.footprint),F)break}if(F&&this.collisionIndex.markSymbolAsClipped(t.bucketInstanceId,n.featureIndex),S){const e=F?Fs:Ls(Q.text);w(t.text,c,z?Fs:e),w(t.text,h,L?Fs:e);const i=Q.text.isHidden(),{leftJustifiedTextSymbolIndex:r,centerJustifiedTextSymbolIndex:o,rightJustifiedTextSymbolIndex:s,verticalPlacedTextSymbolIndex:a}=n,l=t.text.placedSymbolArray,u=i||z?1:0;r>=0&&(l.get(r).hidden=u),o>=0&&(l.get(o).hidden=u),s>=0&&(l.get(s).hidden=u),a>=0&&(l.get(a).hidden=i||L?1:0);const d=this.variableOffsets[f];d&&Is(t,d.anchor,n,R);const p=this.placedOrientations[f];p&&(Is(t,"left",n,p),Cs(t,p,n))}if(P){const e=F?Fs:Ls(Q.icon),{placedIconSymbolIndex:i,verticalPlacedIconSymbolIndex:r}=n,o=t.icon.placedSymbolArray,s=Q.icon.isHidden()?1:0;i>=0&&(w(t.icon,p,z?Fs:e),o.get(i).hidden=s),r>=0&&(w(t.icon,n.numVerticalIconVertices,L?Fs:e),o.get(r).hidden=s)}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){const i=t.collisionArrays[b];if(i){let r=new e.au(0,0),o=!0;if(i.textBox||i.verticalTextBox){if(A){const e=this.variableOffsets[f];e?(r=Es(e.anchor,e.width,e.height,e.textOffset,e.textScale),g&&r._rotate(m?this.transform.angle:-this.transform.angle)):o=!1}u&&(o=!Q.clipped),i.textBox&&Ds(t.textCollisionBox.collisionVertexArray,Q.text.placed,!o||z,T,y,r.x,r.y),i.verticalTextBox&&Ds(t.textCollisionBox.collisionVertexArray,Q.text.placed,!o||L,T,y,r.x,r.y)}const s=o&&Boolean(!L&&i.verticalIconBox);i.iconBox&&Ds(t.iconCollisionBox.collisionVertexArray,Q.icon.placed,s,T,y,n.hasIconTextFit?r.x:0,n.hasIconTextFit?r.
vendor: 6,066 bytes, line 1
1y:0),i.verticalIconBox&&Ds(t.iconCollisionBox.collisionVertexArray,Q.icon.placed,!s,T,y,n.hasIconTextFit?r.x:0,n.hasIconTextFit?r.y:0)}}}if(t.fullyClipped=0===E,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 e-this.lastPlacementChangeTime<this.fadeDuration}stillRecent(e,t){const i=this.zoomAtLastRecencyCheck===t?1-this.zoomAdjustment(t):1;return this.zoomAtLastRecencyCheck=t,this.commitTime+this.fadeDuration*i>e}isStale(){return this.stale}setStale(){this.stale=!0}}function Ds(e,t,i,r,n,o,s){e.emplaceBack(t?1:0,i?1:0,o||0,s||0,r,n?1:0),e.emplaceBack(t?1:0,i?1:0,o||0,s||0,r,n?1:0),e.emplaceBack(t?1:0,i?1:0,o||0,s||0,r,n?1:0),e.emplaceBack(t?1:0,i?1:0,o||0,s||0,r,n?1:0)}const Ts=Math.pow(2,25),Ms=Math.pow(2,24),Qs=Math.pow(2,17),Ss=Math.pow(2,16),Ps=Math.pow(2,9),Rs=Math.pow(2,8),zs=Math.pow(2,1);function Ls(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;const t=e.placed?1:0,i=Math.floor(127*e.opacity);return i*Ts+t*Ms+i*Qs+t*Ss+i*Ps+t*Rs+i*zs+t}const Fs=0;class Os{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let i=1;i<this.points.length;i++)this._distances[i]=this._distances[i-1]+this.points[i].dist(this.points[i-1]);this.length=this._distances.at(-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.bG(t,0,1);let i=1,r=this._distances[i];const n=t*this.paddedLength+this.padding;for(;r<n&&i<this._distances.length;)r=this._distances[++i];const o=i-1,s=this._distances[o],a=r-s,l=a>0?(n-s)/a:0;return this.points[o].mult(1-l).add(this.points[i].mult(l))}}const ks=100;class Ns{constructor(e,t){this.gridRightBoundary=0,this.gridBottomBoundary=0,this.clippedSymbols=new Map,this.reset(e,t)}reset(t,i){const r=t.width+200,n=t.height+200;r!==this.gridRightBoundary||n!==this.gridBottomBoundary?(this.grid=new e.V(r,n,25),this.ignoredGrid=new e.V(r,n,25)):(this.grid.clear(),this.ignoredGrid.clear()),this.transform=t,this.fogState=i,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+ks,this.screenBottomBoundary=t.height+ks,this.gridRightBoundary=r,this.gridBottomBoundary=n,this.clippedSymbols.clear()}clearClippedSymbolsForBucket(e){this.clippedSymbols.delete(e)}markSymbolAsClipped(e,t){let i=this.clippedSymbols.get(e);i||(i=new Set,this.clippedSymbols.set(e,i)),i.add(t)}placeCollisionBox(t,i,r,n,o,s,a,l,c,h,u){let d=r.projectedAnchorX,f=r.projectedAnchorY,p=r.projectedAnchorZ;const A=r.tileAnchorX,g=r.tileAnchorY,m=r.elevation,_=r.tileID,y=t.getProjection();if(m&&_){const[e,t,i]=y.upVector(_.canonical,r.tileAnchorX,r.tileAnchorY),n=y.upVectorScale(_.canonical,this.transform.center.lat,this.transform.worldSize).metersToTile;d+=e*m*n,f+=t*m*n,p+=i*m*n}const x="globe"===t.projection.name,v="globe"===t.projection.name?e.dm(this.transform.zoom):0;if(_&&x&&v<1&&!s){const t=1<<_.canonical.z,i=e.cz(A,g);e.fd(i,i,1/e.r),e.bk(i,i,e.cz(_.canonical.x,_.canonical.y)),e.fd(i,i,1/t),e.fy(i,i,e.cz(n[0],n[1])),i[0]=e.f$(i[0],-.5,.5),e.fd(i,i,e.r);const r=e.cy(i[0],i[1],e.r/(2*Math.PI),1);e.fM(r,r,o),d=e.dY(d,r[0],v),f=e.dY(f,r[1],v),p=e.dY(p,r[2],v)}const w=this.projectAndGetPerspectiveRatio(h,d,f,p,r.tileID,"globe"===y.name||!!m||this.transform.pitch>0,y),E=c*w.perspectiveRatio,b=(r.x1*i+a.x-r.padding)*E+w.point.x,I=(r.y1*i+a.y-r.padding)*E+w.point.y,C=(r.x2*i+a.x+r.padding)*E+w.point.x,B=(r.y2*i+a.y+r.padding)*E+w.point.y,D=w.perspectiveRatio<=.55||w.occluded;return!this.isInsideGrid(b,I,C,B)||!l&&this.grid.hitTest(b,I,C,B,u)||D?{box:[],offscreen:!1,occluded:w.occluded}:{box:[b,I,C,B],offscreen:this.isOffscreen(b,I,C,B),occluded:!1}}placeCollisionCircles(t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g){const m=[],_=this.transform.elevation,y=t.getProjection(),x="road"===t.elevationType,v=!!_||x,w=e.s.getAtTileOffsetFunc(g,this.transform.center.lat,this.transform.worldSize,y),E=new e.au(r.tileAnchorX,r.tileAnchorY),b=new e.au(r.tileAnchorX,r.tileAnchorY);let{x:I,y:C,z:B}=y.projectTilePoint(b.x,b.y,g.canonical),D=null;if(v){const e=x&&t.hdExt?t.hdExt.getElevationFeatureForPlacedSymbol(t,t.text,n):null;D={getElevation:w,elevation:_,elevationFeature:e};const[i,r,o]=w(E,_,e);I+=i,C+=r,B+=o}const T="globe"===y.name,M=this.projectAndGetPerspectiveRatio(l,I,C,B,g,T||!!_||this.transform.pitch>0,y),{perspectiveRatio:Q}=M,S=(d?a/Q:a*Q)/e.ao,P=Ti(I,C,B,c),R=r.lineOffsetX*S,z=r.lineOffsetY*S,L=e.c4(t.layers[0].layout.get("text-max-angle")),F=Math.cos(L),O=M.signedDistanceFromCamera>0?Pi(S,s,R,z,x&&1===r.flipState,P,b,r,o,c,{},v&&!d?D:null,d&&v,y,g,d,F):null;let k=!1,N=!1,U=!0;if(O&&!M.occluded){const t=.5*p*Q+A,r=new e.au(-100,-100),n=new e.au(this.screenRightBoundary,this.screenBottomBoundary),o=new Os,{first:s,last:a}=O,l=s.path.length;let c=[];for(let e=l-1;e>=1;e--)c.push(s.path[e]);for(let e=1;e<a.path.length;e++)c.push(a.path[e]);const d=2.5*t;h&&(c=c.map(([e,t,i],r)=>
1(v&&!T&&(i=w(r<l-1?s.tilePath[l-1-r]:a.tilePath[r-l+2],_,D.elevationFeature)[2]),Ti(e,t,i,h))),c.some(e=>e[3]<=0)&&(c=[]));let g=[];if(c.length>0){let t=1/0,i=-1/0,o=1/0,s=-1/0;for(const e of c)t=Math.min(t,e[0]),o=Math.min(o,e[1]),i=Math.max(i,e[0]),s=Math.max(s,e[1]);i>=r.x&&t<=n.x&&s>=r.y&&o<=n.y&&(g=[c.map(t=>new e.au(t[0],t[1]))],(t<r.x||i>n.x||o<r.y||s>n.y)&&(g=e.bI(g,r.x,r.y,n.x,n.y)))}for(const e of g){o.reset(e,.25*t);let r=0;r=o.length<=.5*t?1:Math.ceil(o.paddedLength/d)+1;for(let e=0;e<r;e++){const n=e/Math.max(r-1,1),s=o.lerp(n),a=s.x+ks,l=s.y+ks;m.push(a,l,t,0);const c=a-t,h=l-t,d=a+t,p=l+t;if(U=U&&this.isOffscreen(c,h,d,p),N=N||this.isInsideGrid(c,h,d,p),!i&&this.grid.hitTestCircle(a,l,t,f)&&(k=!0,!u))return{circles:[],offscreen:!1,collisionDetected:k,occluded:!1}}}}return{circles:!u&&k||!N?[]:m,offscreen:U,collisionDetected:k,occluded:M.occluded}}queryRenderedSymbols(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};const i=[];let r=1/0,n=1/0,o=-1/0,s=-1/0;for(const h of t){const t=new e.au(h.x+ks,h.y+ks);r=Math.min(r,t.x),n=Math.min(n,t.y),o=Math.max(o,t.x),s=Math.max(s,t.y),i.push(t)}const a=this.grid.query(r,n,o,s).concat(this.ignoredGrid.query(r,n,o,s)),l={},c={};for(const h of a){const t=h.key;if(void 0===l[t.bucketInstanceId]&&(l[t.bucketInstanceId]={}),l[t.bucketInstanceId][t.featureIndex])continue;const r=this.clippedSymbols.get(t.bucketInstanceId);if(r&&r.has(t.featureIndex))continue;const n=[new e.au(h.x1,h.y1),new e.au(h.x2,h.y1),new e.au(h.x2,h.y2),new e.au(h.x1,h.y2)];e.eO(i,n)&&(l[t.bucketInstanceId][t.featureIndex]=!0,void 0===c[t.bucketInstanceId]&&(c[t.bucketInstanceId]=[]),c[t.bucketInstanceId].push(t.featureIndex))}return c}insertCollisionBox(e,t,i,r,n){(t?this.ignoredGrid:this.grid).insert({bucketInstanceId:i,featureIndex:r,collisionGroupID:n},e[0],e[1],e[2],e[3])}insertCollisionCircles(e,t,i,r,n){const o=t?this.ignoredGrid:this.grid,s={bucketInstanceId:i,featureIndex:r,collisionGroupID:n};for(let a=0;a<e.length;a+=4)o.insertCircle(s,e[a],e[a+1],e[a+2])}projectAndGetPerspectiveRatio(t,i,r,n,o,s,a){const l=[i,r,n,1];let c=!1;if(n||this.transform.pitch>0){if(e.fM(l,l,t),this.fogState&&o&&"globe"!==a.name){const t=function(t,i,r,n,o,s){const a=s.calculateFogTileMatrix(o),l=[i,r,n];return e.fL(l,l,a),Wt(t,e.dW(l),s.pitch)}(this.fogState,i,r,n,o.toUnwrapped(),this.transform);c=t>.9}}else Ni(l,l,t);const h=l[3];return{point:new e.au((l[0]/h+1)/2*this.transform.width+ks,(-l[1]/h+1)/2*this.transform.height+ks),perspectiveRatio:Math.min(.5+this.transform.getCameraToCenterDistance(a)/h*.5,1.5),signedDistanceFromCamera:h,occluded:s&&l[2]>h||c}}isOffscreen(e,t,i,r){return i<ks||e>=this.screenRightBoundary||r<ks||t>this.screenBottomBoundary}isInsideGrid(e,t,i,r){return i>=0&&e<this.gridRightBoundary&&r>=0&&t<this.gridBottomBoundary}getViewportMatrix(){const t=e.dq([]);return e.fQ(t,t,[-100,-100,0]),t}}const Us={default:new class{createCollisionDetector(e,t,i){return i instanceof Ns?(i.reset(e,t),i):new Ns(e,t)}shouldPause(e){return e>2}placeLayerBucketPart(t,i,r,n,o,s=1){const{bucket:a,layout:l,paint:c,posMatrix:h,textLabelPlaneMatrix:u,labelToScreenMatrix:d,clippingData:f,textPixelRatio:p,mercatorCenter:A,invMatrix:g,holdingForFade:m,collisionBoxArray:_,partiallyEvaluatedTextSize:y,partiallyEvaluatedIconSize:x,collisionGroup:v,latestFeatureIndex:w}=i.parameters,E=l.get("text-optional"),b=l.get("icon-optional"),I=l.get("text-allow-overlap"),C=l.get("icon-allow-overlap"),B="map"===l.get("text-rotation-alignment"),D="map"===l.get("icon-rotation-alignment"),T="map"===l.get("text-pitch-alignment"),M=c.get("symbol-z-offset"),Q="sea"===l.get("symbol-elevation-reference"),S=l.get("symbol-placement"),[P,R]=l.get("text-size-scale-range"),[z,L]=l.get("icon-size-scale-range"),F=e.bG(s,P,R),O=e.bG(s,z,L),k=l.get("text-variable-anchor"),N=B&&"point"!==S,U=D&&"point"!==S,V=k&&a.hasTextData(),H=a.hasIconTextFit()&&V&&a.hasIconData();t.transform.setProjection(a.projection);const j=V||N,G=U||H;let Y=I&&(C||!a.hasIconData()||b),W=C&&(I||!a.hasTextData()||E);const J=!M.isConstant();!a.collisionArrays&&_&&a.deserializeCollisionBoxes(_),n&&o&&a.updateCollisionDebugBuffers(t.transform.zoom,_,F,O);const Z=(i,o,s)=>{const{crossTileID:c,numVerticalGlyphVertices:_}=i;let D=null;if(f&&f.dynamicFilterNeedsFeature||J){const r=t.retainedQueryData[a.bucketInstanceId],n=w.loadFeature({featureIndex:i.featureIndex,bucketIndex:r.bucketIndex,sourceLayerIndex:r.
1sourceLayerIndex,layoutVertexArrayOffset:0}),o=n.properties?n.properties.worldview:null;if(a.localizable&&a.worldview&&"string"==typeof o)if("all"===o)n.properties.$localized=!0;else{if(!o.split(",").includes(a.worldview))return;n.properties.$localized=!0,n.properties.worldview=a.worldview}D=f&&f.needGeometry?e.fJ(n,!0):n}if(f&&!(0,f.dynamicFilter)({zoom:t.transform.zoom,pitch:t.transform.pitch,worldview:a.worldview},D,t.retainedQueryData[a.bucketInstanceId].tileID.canonical,new e.au(i.tileAnchorX,i.tileAnchorY),t.transform.calculateDistanceTileData(f.unwrappedTileID)))return t.placements[c]=new ys(!1,!1,!1,!0),void r.add(c);const S=M.evaluate(D,{});if((i.zOffset||0)+(S||0)>0&&t.frontCutoffStart>0){const n=2*t.frontCutoffStart-1,o=[i.tileAnchorX,i.tileAnchorY,0,1],s=e.fM(e.bX(),o,h);if(s[1]/s[3]<n)return t.placements[c]=new ys(!1,!1,!1,!0),void r.add(c)}if(r.has(c))return;if(m)return void(t.placements[c]=new ys(!1,!1,!1));let P=!1,R=!1,z=!0,L=!1,F=!1,O=null,N={box:null,offscreen:null,occluded:null},U={box:null},V=null,H=null,Z=null,q=0,K=0,X=0;s.textFeatureIndex?q=s.textFeatureIndex:i.useRuntimeCollisionCircles&&(q=i.featureIndex),s.verticalTextFeatureIndex&&(K=s.verticalTextFeatureIndex);const $=a.hdExt?a.hdExt.elevationFeatures[i.elevationFeatureIndex]:void 0,ee=r=>{r.tileID=t.retainedQueryData[a.bucketInstanceId].tileID;const n=t.transform.elevation;r.elevation=Q?S:S+e.s.getAtTileOffset(r.tileID,new e.au(r.tileAnchorX,r.tileAnchorY),n,$),r.elevation+=i.zOffset},te=s.textBox;if(te){ee(te);const r=r=>{let n=e.bg.horizontal;if(a.allowVerticalPlacement&&!r&&t.prevPlacement){const e=t.prevPlacement.placedOrientations[c];e&&(t.placedOrientations[c]=e,n=e,Cs(a,n,i))}return n},n=(t,i)=>{if(a.allowVerticalPlacement&&_>0&&s.verticalTextBox){for(const r of a.writingModes)if(r===e.bg.vertical?(N=i(),U=N):N=t(),N&&N.box&&N.box.length)break}else N=t()};if(k){let l=k;if(t.prevPlacement&&t.prevPlacement.variableOffsets[c]){const e=t.prevPlacement.variableOffsets[c];l.indexOf(e.anchor)>0&&(l=l.filter(t=>t!==e.anchor),l.unshift(e.anchor))}const u=(e,r,n)=>{const s=a.getSymbolInstanceTextSize(y,i,t.transform.zoom,o),c=(e.x2-e.x1)*s+2*e.padding,u=(e.y2-e.y1)*s+2*e.padding,d=i.hasIconTextFit&&!C?r:null;d&&ee(d);let f={box:[],offscreen:!1,occluded:!1};const m=I?2*l.length:l.length;for(let _=0;_<m;++_){const r=this.attemptAnchorPlacement(t,l[_%l.length],e,A,g,j,c,u,s,B,T,p,h,v,_>=l.length,i,o,a,n,d,y,x);if(r&&(f=r.placedGlyphBoxes,f&&f.box&&f.box.length)){P=!0,O=r.shift;break}}return f};n(()=>u(te,s.iconBox,e.bg.horizontal),()=>{const t=s.verticalTextBox;return t&&ee(t),a.allowVerticalPlacement&&!(N&&N.box&&N.box.length)&&_>0&&t?u(t,s.verticalIconBox,e.bg.vertical):{box:null,offscreen:null,occluded:null}}),N&&(P=N.box,z=N.offscreen,L=N.occluded);const d=r(!(!N||!N.box));if(!P&&t.prevPlacement){const e=t.prevPlacement.variableOffsets[c];e&&(t.variableOffsets[c]=e,Is(a,e.anchor,i,d))}}else{const l=(r,n)=>{const s=a.getSymbolInstanceTextSize(y,i,t.transform.zoom,o),l=t.collisionIndex.placeCollisionBox(a,s,r,A,g,j,new e.au(0,0),I,p,h,v.predicate);return l&&l.box&&l.box.length&&(Cs(a,n,i),t.placedOrientations[c]=n),l};n(()=>l(te,e.bg.horizontal),()=>{const t=s.verticalTextBox;return a.allowVerticalPlacement&&_>0&&t?(ee(t),l(t,e.bg.vertical)):{box:null,offscreen:null,occluded:null}}),r(!!(N&&N.box&&N.box.length))}}if(V=N,P=V&&V.box&&V.box.length>0,z=V&&V.offscreen,L=V&&V.occluded,i.useRuntimeCollisionCircles){const r=i.centerJustifiedTextSymbolIndex>=0?i.centerJustifiedTextSymbolIndex:i.verticalPlacedTextSymbolIndex,o=a.text.placedSymbolArray.get(r),s=e.ch(a.textSizeData,y,o),c=l.get("text-padding");H=t.collisionIndex.placeCollisionCircles(a,I,o,r,a.lineVertexArray,a.glyphOffsetArray,s,h,u,d,n,T,v.predicate,i.collisionCircleDiameter*s/e.ao,c,t.retainedQueryData[a.bucketInstanceId].tileID),P=I||H.circles.length>0&&!H.collisionDetected,z=z&&H.offscreen,L=H.occluded}if(s.iconFeatureIndex&&(X=s.iconFeatureIndex),s.iconBox){const r=r=>{ee(r);const n=i.hasIconTextFit&&O?bs(O.x,O.y,B,T,t.transform.angle):new e.au(0,0),o=a.getSymbolInstanceIconSize(x,t.transform.zoom,i.placedIconSymbolIndex);return t.collisionIndex.placeCollisionBox(a,o,r,A,g,G,n,C,p,h,v.predicate)};U&&U.box&&U.box.length&&s.verticalIconBox?(Z=r(s.verticalIconBox),R=Z.box.length>0):(Z=r(s.iconBox),R=Z.box.length>0),z=z&&Z.offscreen,F=Z.occluded}const ie=E||0===i.numHorizontalGlyphVertices&&0===_,re=b||0===i.numIconVertices;if(ie||re?re?ie||(R=R&&P):P=R&&P:R=P=R&&P,P&&V&&V.box&&t.collisionIndex.insertCollisionBox(V.box,l.get("text-ignore-placement"),a.bucketInstanceId,U&&U.box&&K?K:q,v.ID),R&&Z&&t.collisionIndex.insertCollisionBox(Z.box,l.get("icon-ignore-placement"),a.bucketInstanceId,X,v.ID),H&&(P&&t.collisionIndex.insertCollisionCircles(H.circles,l.get("text-ignore-placement"),a.bucketInstanceId,q,v.ID),n)){const e=a.bucketInstanceId;let i=t.collisionCircleArrays[e];void 0===i&&(i=t.collisionCircleArrays[e]=new xs);for(let t=0;t<H.circles.length;t+=4)i.circles.push(H.circles[t+0]),i.circles.push(H.circles[t+1]),i.circles.push(H.circles[t+2]),i.circles.push(H.collisionDetected?1:0)}const ne="globe"!==a.projection.name;Y=Y&&(ne||!L),W=W&&(ne||!F),t.placements[c]=new ys(P||Y,R||W,z||a.justReloaded),r.add(c)},q=t.retainedQueryData[a.bucketInstanceId].tileID;if("offset"===a.elevationType&&t.buildingIndex&&t.buildingIndex.updateZOffset(a,q),"road"===a.elevationType&&a.hdExt&&a.hdExt.updateRoadElevation(a,q.canonical),a.updateZOffset(),a.sortFeaturesByY){const i=a.getSortedSymbolIndexe
1s(t.transform.angle);for(let e=i.length-1;e>=0;--e){const t=i[e];Z(a.symbolInstances.get(t),t,a.collisionArrays[t])}a.hasAnyZOffset&&e.f_(`${a.layerIds[0]} layer symbol-z-elevate: symbols are not sorted by elevation if symbol-z-order is evaluated to viewport-y`)}else if(a.hasAnyZOffset){const e=a.getSortedIndexesByZOffset();for(let t=0;t<e.length;++t){const i=e[t];Z(a.symbolInstances.get(i),i,a.collisionArrays[i])}}else for(let e=i.symbolInstanceStart;e<i.symbolInstanceEnd;e++)Z(a.symbolInstances.get(e),e,a.collisionArrays[e]);if(n&&a.bucketInstanceId in t.collisionCircleArrays){const i=t.collisionCircleArrays[a.bucketInstanceId];e.dr(i.invProjMatrix,h),i.viewportMatrix=t.collisionIndex.getViewportMatrix()}a.justReloaded=!1}attemptAnchorPlacement(e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m,_,y,x,v){const{textOffset0:w,textOffset1:E,crossTileID:b}=A,I=[w,E],C=Es(t,s,a,I,l),B=e.collisionIndex.placeCollisionBox(m,l,i,r,n,o,bs(C.x,C.y,c,h,e.transform.angle),p,u,d,f.predicate);if(y){const t=m.getSymbolInstanceIconSize(v,e.transform.zoom,A.placedIconSymbolIndex);if(0===e.collisionIndex.placeCollisionBox(m,t,y,r,n,o,bs(C.x,C.y,c,h,e.transform.angle),p,u,d,f.predicate).box.length)return}if(B.box.length>0){let i;return e.prevPlacement&&e.prevPlacement.variableOffsets[b]&&e.prevPlacement.placements[b]&&e.prevPlacement.placements[b].text&&(i=e.prevPlacement.variableOffsets[b].anchor),e.variableOffsets[b]={textOffset:I,width:s,height:a,anchor:t,textScale:l,prevAnchor:i},Is(m,t,A,_),m.allowVerticalPlacement&&(Cs(m,_,A),e.placedOrientations[b]=_),{shift:C,placedGlyphBoxes:B}}}}};class Vs{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=new Set,this._bucketParts=[]}continuePlacement(e,t,i,r,n,o){const s=this._bucketParts;for(;this._currentTileIndex<e.length;)if(t.getBucketParts(s,r,e[this._currentTileIndex],this._sortAcrossTiles,o),this._currentTileIndex++,n())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,s.sort((e,t)=>
vendor: 5,223 bytes, line 1
1e.sortKey-t.sortKey));this._currentPartIndex<s.length;){const e=s[this._currentPartIndex];if(t.placeLayerBucketPart(e,this._seenCrossTileIDs,i,0===e.symbolInstanceStart,o),this._currentPartIndex++,n())return!0}return!1}}class Hs{constructor(){this._retiredCI=null}startNewPlacement(e,t,i,r,n,o,s,a,l){return this.placement=new Bs(e,r,n,Us[l||"default"],o,s,a,this._retiredCI),this._retiredCI=null,this._currentPlacementIndex=t.length-1,this._forceFullPlacement=!1,this._showCollisionBoxes=i,this._fadeDuration=r,this._done=!1,this._inProgressLayer=null,this}requestFullPlacement(){this._forceFullPlacement=!0}isFullPlacementRequested(){return this._forceFullPlacement}setStale(){this.placement&&(this.placement.stale=!0)}isStale(){return!!this.placement&&this.placement.stale}isDone(){return this._done}continuePlacement(t,i,r,n,o){const s=e.co.now(),a=()=>!this.isFullPlacementRequested()&&0!==this._fadeDuration&&this.placement.algorithm.shouldPause(e.co.now()-s);for(;this._currentPlacementIndex>=0;){const s=i[t[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&"none"!==s.visibility&&(!s.minzoom||s.minzoom<=l)&&(!s.maxzoom||s.maxzoom>l)){const t=s,i=t.layout.get("symbol-z-elevate"),l=void 0!==t.layout.get("symbol-sort-key").constantOr(1),c=t.layout.get("symbol-z-order"),h="viewport-y"===c||"auto"===c&&!("viewport-y"!==c&&l),u=t.layout.get("text-allow-overlap")||t.layout.get("icon-allow-overlap")||t.layout.get("text-ignore-placement")||t.layout.get("icon-ignore-placement"),d=h&&u,f=this._inProgressLayer=this._inProgressLayer||new Vs(t),p=e.ea(s.source,s.scope);if(f.continuePlacement(i||d?n[p]:r[p],this.placement,this._showCollisionBoxes,s,a,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._forceFullPlacement=!1,this._done=!0}commit(e){return this._retiredCI=this.placement.prevPlacement?this.placement.prevPlacement.collisionIndex:null,this.placement.commit(e),this.placement}}const js=512/e.r/2;class Gs{constructor(t,i,r){this.tileID=t,this.bucketInstanceId=r,this.index=new e.a6(i.length,16,Int32Array),this.keys=[],this.crossTileIDs=[];const n=t.canonical.x*e.r,o=t.canonical.y*e.r;for(let e=0;e<i.length;e++){const{key:t,crossTileID:r,tileAnchorX:s,tileAnchorY:a}=i.get(e),l=Math.floor((n+s)*js),c=Math.floor((o+a)*js);this.index.add(l,c),this.keys.push(t),this.crossTileIDs.push(r)}this.index.finish()}findMatches(t,i,r){const n=this.tileID.canonical.z<i.canonical.z?1:Math.pow(2,this.tileID.canonical.z-i.canonical.z),o=js/Math.pow(2,i.canonical.z-this.tileID.canonical.z),s=i.canonical.x*e.r,a=i.canonical.y*e.r;for(let e=0;e<t.length;e++){const i=t.get(e);if(i.crossTileID)continue;const{key:l,tileAnchorX:c,tileAnchorY:h}=i,u=Math.floor((s+c)*o),d=Math.floor((a+h)*o),f=this.index.range(u-n,d-n,u+n,d+n).sort((e,t)=>e-t);for(const e of f){const t=this.crossTileIDs[e];if(this.keys[e]===l&&!r.has(t)){r.add(t),i.crossTileID=t;break}}}}}class Ys{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class Ws{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){const t=Math.round((e-this.lng)/360);if(0!==t)for(const i in this.indexes){const e=this.indexes[i],r={};for(const i in e){const n=e[i];n.tileID=n.tileID.unwrapTo(n.tileID.wrap+t),r[n.tileID.key]=n}this.indexes[i]=r}this.lng=e}addBucket(e,t,i){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 n=0;n<t.symbolInstances.length;n++)t.symbolInstances.get(n).crossTileID=0;this.usedCrossTileIDs[e.overscaledZ]||(this.usedCrossTileIDs[e.overscaledZ]=new Set);const r=this.usedCrossTileIDs[e.overscaledZ];for(const n in this.indexes){const i=this.indexes[n];if(Number(n)>e.overscaledZ)for(const n in i){const o=i[n];o.tileID.isChildOf(e)&&o.findMatches(t.symbolInstances,e,r)}else{const o=i[e.scaledTo(Number(n)).key];o&&o.findMatches(t.symbolInstances,e,r)}}for(let n=0;n<t.symbolInstances.length;n++){const e=t.symbolInstances.get(n);e.crossTileID||(e.crossTileID=i.generate(),r.add(e.crossTileID))}return void 0===this.indexes[e.overscaledZ]&&(this.indexes[e.overscaledZ]={}),this.indexes[e.overscaledZ][e.key]=new Gs(e,t.symbolInstances,t.bucketInstanceId),!0}removeBucketCrossTileIDs(e,t){for(const i of t.crossTileIDs)this.usedCrossTileIDs[e].delete(i)}removeStaleBuckets(e){let t=!1;for(const i in this.indexes){const r=this.indexes[i];for(const n in r)e[r[n].bucketInstanceId]||(this.removeBucketCrossTileIDs(i,r[n]),delete r[n],t=!0)}return t}}class Js{constructor(){this.layerIndexes={},this.crossTileIDs=new Ys,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}}addLayer(e,t,i,r){let n=this.layerIndexes[e.fqid];void 0===n&&(n=this.layerIndexes[e.fqid]=new Ws);let o=!1;const s={};"globe"!==r.name&&n.handleWrapJump(i);for(const a of t){const t=a.getBucket(e);t&&e.fqid===t.layerIds[0]&&(t.bucketInstanceId||(t.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(a.tileID,t,this.crossTileIDs)&&(o=!0),s[t.bucketInstanceId]=!0)}return n.removeStaleBuckets(s)&&(o=!0),o}pruneUnusedLayers(e){const t={};
1e.forEach(e=>{t[e]=!0});for(const i in this.layerIndexes)t[i]||delete this.layerIndexes[i]}}class Zs extends e.y{constructor(e){super(),this.requestManager=e,this.models=Object.create(null),this.models[""]=Object.create(null),this.modelUris=Object.create(null),this.modelUris[""]=Object.create(null),this.modelByURL=Object.create(null),this.numModelsLoading=Object.create(null)}loadModel(t,i){return e.e6(this.requestManager.transformRequest(i,e.aH.Model).url).then(r=>{const n=e.bQ(r),o=new e.ah(t,i,void 0,void 0,n);return o.computeBoundsAndApplyParent(),o}).catch(r=>{if(r&&404===r.status)return null;this.fire(new e.v(new Error(`Could not load model ${t} from ${i}: ${r.message}`)))})}load(t,i,r={forceReload:!1}){this.models[i]||(this.models[i]=Object.create(null));const n=Object.keys(t),o=[],s=[];for(const e of n){const n=t[e];this.hasURLBeenRequested(n)&&!r.forceReload||(this.modelByURL[n]={modelId:e,scope:i},o.push(this.loadModel(e,n)),s.push(e)),this.models[i][e]||(this.models[i][e]={model:null,numReferences:1})}this.numModelsLoading[i]=(this.numModelsLoading[i]||0)+s.length,Promise.allSettled(o).then(t=>{for(let e=0;e<t.length;e++){const{status:r}=t[e];if("rejected"===r)continue;const{value:n}=t[e];this.models[i][s[e]]||(this.models[i][s[e]]={model:null,numReferences:1}),this.models[i][s[e]].model=n}this.numModelsLoading[i]-=s.length,this.fire(new e.x("data",{dataType:"style"}))}).catch(t=>{this.fire(new e.v(new Error(`Could not load models: ${t.message}`)))})}isLoaded(){for(const e in this.numModelsLoading)if(this.numModelsLoading[e]>0)return!1;return!0}hasModel(e,t,i={exactIdMatch:!1}){return!!(i.exactIdMatch?this.getModel(e,t):this.getModelByURL(this.modelUris[t][e]))}getModel(e,t){return this.models[t]||(this.models[t]=Object.create(null)),this.models[t][e]?this.models[t][e].model:void 0}getModelByURL(e){if(!e)return null;const t=this.modelByURL[e];return t?this.models[t.scope][t.modelId].model:null}hasModelBeenAdded(e,t){return this.models[t]&&void 0!==this.models[t][e]}getModelURIs(e){return this.modelUris[e]||Object.create(null)}addModel(e,t,i){this.models[i]||(this.models[i]=Object.create(null)),this.modelUris[i]||(this.modelUris[i]=Object.create(null));const r=this.requestManager.normalizeModelURL(t);if((this.hasModel(e,i,{exactIdMatch:!0})||this.hasModelBeenAdded(e,i))&&this.modelUris[i][e]===r)this.models[i][e].numReferences++;else if(this.hasURLBeenRequested(r)){const{scope:e,modelId:t}=this.modelByURL[r];this.models[e][t].numReferences++}else this.modelUris[i][e]=r,this.load({[e]:this.modelUris[i][e]},i)}addModelURLs(e,t){this.models[t]||(this.models[t]=Object.create(null)),this.modelUris[t]||(this.modelUris[t]=Object.create(null));const i=this.modelUris[t];for(const r of Object.keys(e))i[r]=this.requestManager.normalizeModelURL(e[r])}reloadModels(e){this.load(this.modelUris[e],e,{forceReload:!0})}addModelsFromBucket(e,t){this.models[t]||(this.models[t]=Object.create(null)),this.modelUris[t]||(this.modelUris[t]=Object.create(null));const i=Object.create(null);for(const r of e)this.hasModel(r,t,{exactIdMatch:!0})||this.hasURLBeenRequested(r)?this.models[t][r].numReferences++:this.modelUris[t][r]&&!this.hasURLBeenRequested(r)?i[r]=this.modelUris[t][r]:!this.hasURLBeenRequested(r)&&At(r,!1)&&(this.modelUris[t][r]=this.requestManager.normalizeModelURL(r),i[r]=this.modelUris[t][r]);this.load(i,t)}hasURLBeenRequested(e){return void 0!==this.modelByURL[e]}removeModel(e,t,i=!1,r=!1){if(this.models[t]&&this.models[t][e]&&(this.models[t][e].numReferences--,0===this.models[t][e].numReferences||r)){const r=this.modelUris[t][e];i||delete this.modelUris[t][e],delete this.modelByURL[r];const n=this.models[t][e].model;if(!n)return;delete this.models[t][e],n.destroy()}}destroy(){for(const e of Object.keys(this.models))for(const t of Object.keys(this.models[e])){const i=this.models[e][t].model;delete this.models[e][t],i&&i.destroy()}this.models=Object.create(null),this.models[""]=Object.create(null),this.modelUris=Object.create(null),this.modelUris[""]=Object.create(null),this.modelByURL=Object.create(null),this.numModelsLoading=Object.create(null)}listModels(e){return this.models[e]||(this.models[e]=Object.create(null)),Object.keys(this.models[e])}upload(e,t){this.models[t]||(this.models[t]=Object.create(null));for(const i in this.models[t])this.models[t][i].model&&this.models[t][i].model.upload(e.context)}}const qs=["RENDER_SHADOWS","NORMAL_OFFSET"],Ks=new Set(["symbol","circle"]),Xs=class t{constructor(){this._queue=[],this._needsBuild=!0,this._idleHandle=null}needsBuild(){return this._needsBuild}buildQueue(e,t,i){null!=this._idleHandle&&"undefined"!=typeof cancelIdleCallback&&cancelIdleCallback(this._idleHandle),this._idleHandle=null,this._queue=[],this._needsBuild=!1;const r=i.stylesheet,n=!!i.fog,o=!!(i.getTerrain()||r&&r.terrain),s=!(!i.projection||"globe"!==i.projection.name),a=o||s,l=!(!i.directionalLight||!i.directionalLight.shadowsEnabled()),c=i.map&&i.map.painter,h=!c||!c.context.extParallelShaderCompile,u=!!c&&"mrt-fallback"===c.emissiveMode,d=(e,t=[],i={})=>{this._queue.push({programId:e,params:Object.assign({},i.params,{defines:t,overrideFog:!!i.fog,overrideTerrain:!!i.terrain,overrideGlobe:!!i.globe,overrideRtt:!!i.rtt,precompiled:!0})})};for(const f of e){if("none"===f.visibility)continue;const e=f.getProgramIds();if(e)for(const r of e){if(Ks.has(r))continue;const e=f.getDefaultProgramParams(r,t.zoom,i._styleColorTheme.lut);
1if(!e)continue;const p=c?c.getShaderSource(r):null,A=a&&(!p||p.usedDefines.has("RENDER_TO_TEXTURE")),g=u&&A?(e.defines||[]).concat("USE_MRT1"):e.defines;if(h){d(r,e.defines,{params:e}),A&&d(r,g,{params:e,rtt:!0});continue}const m=n&&(!p||p.usedDefines.has("FOG")),_=o&&!f.isDraped()&&(!p||p.usedDefines.has("TERRAIN")),y=s&&(!p||p.usedDefines.has("GLOBE")),x=l&&f.hasElevation()&&(!p||p.usedDefines.has("RENDER_SHADOWS"));for(const t of x?[!1,!0]:[!1]){const i=t?(e.defines||[]).concat(qs):e.defines||[];for(const t of _?[!1,!0]:[!1])for(const n of y?[!1,!0]:[!1])for(const o of m?[!1,!0]:[!1])d(r,i,{params:e,fog:o,terrain:t,globe:n})}A&&d(r,g,{params:e,rtt:!0})}}if(d("clippingMask"),o)for(const f of[!1,!0])d("terrainRaster",f?["TERRAIN_VERTEX_MORPHING"]:[],{terrain:!0,fog:n});if(!h){if(e.some(e=>"hillshade"===e.type)&&d("hillshadePrepare"),l)for(const e of[!1,!0])for(const t of[!1,!0]){const i=[];e&&i.push("RENDER_CUTOFF"),i.push("RENDER_SHADOWS"),t&&i.push("NORMAL_OFFSET"),d("groundShadow",i),n&&d("groundShadow",i,{fog:!0})}if(s){for(const e of[[],["TERRAIN_VERTEX_MORPHING"],["GLOBE_POLES"]])for(const t of[!1,!0]){const i=[...e,"PROJECTION_GLOBE_VIEW"];t&&i.push("CUSTOM_ANTIALIASING"),d("globeRaster",i,{terrain:o,globe:!0,fog:n})}for(const e of[!1,!0]){const t=e?["PROJECTION_GLOBE_VIEW","FOG"]:["FOG"];d("globeAtmosphere",t,{fog:!0,terrain:o,globe:e}),d("globeAtmosphere",[...t,"ALPHA_PASS"],{fog:!0,terrain:o,globe:e})}d("stars",[],{fog:n,terrain:o,globe:!0})}}}_executeBatch(i,r,n){if(n.map&&n.map.isMoving())return void(this._idleHandle=e.co.requestIdleCallback(e=>this._executeBatch(e,r,n)));r.context.sweepPendingPrograms();const o=r.context.extParallelShaderCompile?t.DEADLINE_MARGIN_KHR_MS:t.DEADLINE_MARGIN_SYNC_MS;let s=0;for(;this._queue.length>0;){const e=this._queue.shift();if(!e)break;if(r.style=n,r._fogVisible=!!e.params.overrideFog,r.getOrCreateProgram(e.programId,e.params),s++,i.timeRemaining()<=o)break}const a=0===this._queue.length||i.timeRemaining()>o;s>0&&a&&r.context.gl.flush(),this._idleHandle=this._queue.length>0||r.context._pendingPrograms.size>0?e.co.requestIdleCallback(e=>this._executeBatch(e,r,n)):null}processQueue(t,i){0!==this._queue.length&&(null!=this._idleHandle&&"undefined"!=typeof cancelIdleCallback&&cancelIdleCallback(this._idleHandle),this._idleHandle=e.co.requestIdleCallback(e=>this._executeBatch(e,t,i)))}reset(){null!=this._idleHandle&&"undefined"!=typeof cancelIdleCallback&&cancelIdleCallback(this._idleHandle),this._queue=[],this._idleHandle=null,this._needsBuild=!0}};Xs.DEADLINE_MARGIN_KHR_MS=5,Xs.DEADLINE_MARGIN_SYNC_MS=25;let $s=Xs;const ea=e.fs.colorTheme,ta=new e.ax({data:new e.l(ea.data)});function ia(t){if(!t.metadata||!t.metadata.content_area)return;const i=e.co.devicePixelRatio,{left:r,top:n,width:o,height:s}=t.metadata.content_area,a=r*i,l=n*i;return[a,l,a+o*i,l+s*i]}function ra(t){if(t)return t.map(([t,i])=>[t*e.co.devicePixelRatio,i*e.co.devicePixelRatio])}class na{constructor(e,t,i){this.id=e,this.scope=t,this.sourceCache=i,this.pendingRequests=new Set,this.missingRequests=new Set}addPendingRequest(e){this.missingRequests.has(e.name)||this.pendingRequests.has(e.name)||this.pendingRequests.add(e.name)}hasPendingRequests(){return this.pendingRequests.size>0}resolvePendingRequests(){const t=new Map;if(!this.sourceCache.loaded())return t;const i=this.sourceCache.getVisibleCoordinates();if(0===i.length)return t;const r=this.sourceCache.getSource();if(!(r instanceof kr))return t;const n=i.map(e=>this.sourceCache.getTile(e)),o=r.getImages(n,Array.from(this.pendingRequests));for(const[s,a]of o)t.set(e.a1.from({name:s,iconsetId:this.id}),a),this.pendingRequests.delete(s);for(const e of this.pendingRequests)this.missingRequests.add(e);return this.pendingRequests.clear(),t}}const oa=(e,t)=>Nt(e,t&&t.filter(e=>"source.canvas"!==e.identifier)),sa=(t,i)=>{const r=t.type&&!t.array&&Array.isArray(i)?{type:t.type,"property-type":"data-constant"}:void 0;return e.bY(i,r)},aa=e.eF(ss,["addLayer","removeLayer","setLights","setPaintProperty","setLayoutProperty","setLayerProperty","setSlot","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setSnow","setRain","setProjection","setCamera","addImport","removeImport","updateImport","addIconset","removeIconset"]),la=e.eF(ss,["setCenter","setZoom","setBearing","setP
1itch"]),ca=new Set(["background","sky","slot","custom"]),ha={version:8,layers:[],sources:{}},ua={duration:300,delay:0};class da extends e.y{constructor(t,i={}){if(super(),this.map=t,this.scope=i.scope||"",this.globalId=null,this.fragments=[],this.importDepth=i.importDepth||0,this.importsCache=i.importsCache||new Map,this.resolvedImports=i.resolvedImports||new Set,this.transition=Object.assign({},ua),this._buildingIndex=new ts(this),this.crossTileSymbolIndex=new Js,this._mergedOrder=[],this._drapedFirstOrder=[],this._mergedLayers=Object.create(null),this._mergedIndoor={},this._indoorEnabled=!1,this._mergedSourceCaches={},this._mergedOtherSourceCaches=Object.create(null),this._mergedSymbolSourceCaches=Object.create(null),this._mergedFillExtrusionSourceCaches=Object.create(null),this._mergedHdRoadCoverageSourceCaches=Object.create(null),this._hdCoverage=null,this._clipLayerPresent=!1,this._hasAppearances=!1,this._has3DLayers=!1,this._hasCircleLayers=!1,this._hasSymbolLayers=!1,this._importedAsBasemap=!1,this._changes=i.styleChanges||new oe,this._hasDataDrivenEmissive=!1,this.indoorManager=null,this.dispatcher=i.dispatcher?i.dispatcher:new si(rs(),this),this.map.painter&&this.map.painter.context){const e=this.map.painter.context.maxUniformBufferBindings,t=Math.floor(this.map.painter.context.maxUniformBlockSize/4);this.dispatcher.broadcast("setContextParams",{maxBindingPoints:e,maxUniformBlockSizeDwords:t,disableSymbolUBO:this.map.painter.context.disableSymbolUBO})}i.imageManager?this.imageManager=i.imageManager:(this.imageManager=new Ye(this.map._spriteFormat),this.imageManager.setEventedParent(this)),this.imageManager.addScope(this.scope),this.glyphManager=i.glyphManager?i.glyphManager:new e.U(t._requestManager,i.localFontFamily?e.ad.all:i.localIdeographFontFamily?e.ad.ideographs:e.ad.none,i.localFontFamily||i.localIdeographFontFamily,i.fontstackCompositing),i.modelManager?this.modelManager=i.modelManager:(this.modelManager=new Zs(t._requestManager),this.modelManager.setEventedParent(this)),this._layers=Object.create(null),this._sourceCaches={},this._otherSourceCaches=Object.create(null),this._symbolSourceCaches=Object.create(null),this._fillExtrusionSourceCaches=Object.create(null),this._hdCoverage=null,this._loaded=!1,this._initialBroadcastDone=!1,this._programPrecompiler=this.map._precompilePrograms&&this.isRootStyle()?new $s:null,this._availableImages=[],this._availableModels={},this._order=[],this._markersNeedUpdate=!1,this.options=i.configOptions?i.configOptions:new Map,this._configDependentLayers=i.configDependentLayers?i.configDependentLayers:new Set,this._indoorDependentLayers=i.indoorDependentLayers?i.indoorDependentLayers:new Set,this._config=i.config,this._styleColorTheme={lut:null,lutLoading:!1,lutLoadingCorrelationID:0,colorTheme:null,colorThemeOverride:i.colorThemeOverride},this._styleColorThemeForScope={},this._initialConfig=i.initialConfig,this.dispatcher.broadcast("setReferrer",e.d4()),this.dispatcher.broadcast("setConfig",e.cJ());const r=this;this._rtlTextPluginCallback=da.registerForPluginStateChange(t=>{r.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:t.pluginStatus,pluginURL:t.pluginURL},(t,i)=>{if(e.fS(t),i&&i.every(e=>e))for(const e in r._sourceCaches){const t=r._sourceCaches[e],i=t.getSource().type;"vector"!==i&&"geojson"!==i||t.reload()}})}),this.on("data",e=>{if("source"!==e.dataType||"metadata"!==e.sourceDataType)return;const t=this.getOwnSource(e.sourceId);if(t&&t.vectorLayerIds)for(const i in this._layers){const e=this._layers[i];e.source===t.id&&this._validateLayer(e)}})}load(e){return e?("string"==typeof e?this.loadURL(e):this.loadJSON(e),this):this}_getGlobalId(t){if(!t)return null;if("string"==typeof t){if(e.dL(t))return t;const i=e.fw(t);if(!i.startsWith("http"))try{return new URL(i,location.href).toString()}catch(e){return i}return i}return`json://${e.et(JSON.stringify(t))}`}_diffStyle(t,i,r){this.globalId=this._getGlobalId(t);const n=(e,t)=>{try{t(null,this.setState(e,r))}catch(e){t(e,!1)}};if("string"==typeof t){const r=this.map._requestManager.normalizeStyleURL(t),o=this.map._requestManager.transformRequest(r,e.aH.Style);e.cT(o,(t,r)=>{t?this.fire(new e.v(t)):r&&n(r,i)})}else"object"==typeof t&&n(t,i)}loadURL(t,i={}){this.fire(new e.x("dataloading",{dataType:"style"}));
1const r="boolean"==typeof i.validate?i.validate:!e.dL(t);this.globalId=this._getGlobalId(t),t=this.map._requestManager.normalizeStyleURL(t,i.accessToken),this.resolvedImports.add(t);const n=this.importsCache.get(t);if(n)return this._load(n,r);const o=this.map._requestManager.transformRequest(t,e.aH.Style);this._request=e.cT(o,(i,n)=>{if(this._request=null,i)this.fire(new e.v(i));else if(n)return this.importsCache.set(t,n),this._load(n,r)})}loadJSON(t,i={}){this.fire(new e.x("dataloading",{dataType:"style"})),this.globalId=this._getGlobalId(t),this._request=e.co.frame(()=>{this._request=null,this._load(t,!1!==i.validate)})}loadEmpty(){this.fire(new e.x("dataloading",{dataType:"style"})),this._load(ha,!1)}_loadImports(t,i,r){if(this.importDepth>=4)return e.f_("Style doesn't support nesting deeper than 5"),Promise.resolve();const n=[];for(const o of t){const t=this._createFragmentStyle(o),s=new Promise(e=>{t.once("style.import.load",e),t.once("error",e)}).then(()=>{this.mergeAll(),this.fire(new e.x("data",{dataType:"style"}))});if(n.push(s),this.resolvedImports.has(o.url)){t.loadEmpty();continue}const a=o.data||this.importsCache.get(o.url);a?(o.data?(t.fire(new e.x("dataloading",{dataType:"style"})),t.globalId=t._getGlobalId(a),queueMicrotask(()=>t._load(a,i))):t.loadJSON(a,{validate:i}),this._isInternalStyle(a)&&(t.globalId=null)):o.url?t.loadURL(o.url,{validate:i}):t.loadEmpty();const l={style:t,id:o.id,config:o.config};if(r){const e=this.fragments.findIndex(({id:e})=>e===r);this.fragments=this.fragments.slice(0,e).concat(l).concat(this.fragments.slice(e))}else this.fragments.push(l)}return Promise.allSettled(n)}getImportGlobalIds(e=this,t=new Set){for(const i of e.fragments)i.style.globalId&&t.add(i.style.globalId),this.getImportGlobalIds(i.style,t);return[...t.values()]}_createFragmentStyle(t){const i=this.scope?e.ea(t.id,this.scope):t.id;let r;const n=this._initialConfig&&this._initialConfig[i];(t.config||n)&&(r=Object.assign({},t.config,n));const o=new da(this.map,{scope:i,styleChanges:this._changes,importDepth:this.importDepth+1,importsCache:this.importsCache,resolvedImports:new Set(this.resolvedImports),dispatcher:this.dispatcher,imageManager:this.imageManager,glyphManager:this.glyphManager,modelManager:this.modelManager,config:r,configOptions:this.options,colorThemeOverride:t["color-theme"],configDependentLayers:this._configDependentLayers,indoorDependentLayers:this._indoorDependentLayers});return o.setEventedParent(this.map,{style:o}),o}_reloadImports(e=!1){this.mergeAll(),this._updateMapProjection(),e||this.updateConfigDependencies(),this._updateLayers(this._indoorDependentLayers),this.map._triggerCameraUpdate(this.camera),(!e||this.isRootStyle()||this.map.style._initialBroadcastDone)&&(e&&this.isRootStyle()?(this.forEachFragmentStyle(e=>{this.dispatcher.broadcast("setLayers",{layers:e._serializeLayers(e._order),scope:e.scope,options:e.options})}),this._initialBroadcastDone=!0):this.dispatcher.broadcast("setLayers",{layers:this._serializeLayers(this._order),scope:this.scope,options:this.options}))}_isInternalStyle(e){return this.isRootStyle()&&(e.fragment||!!e.schema&&!1!==e.fragment)}_load(t,i){if(this._isInternalStyle(t)){const e=Object.assign({},ha,{imports:[{id:"basemap",data:t,url:""}]},t.center?{center:t.center}:{},t.bearing?{bearing:t.bearing}:{},t.pitch?{pitch:t.pitch}:{},t.zoom?{zoom:t.zoom}:{},t.light?{light:t.light}:{});return this._importedAsBasemap=!0,void this._load(e,i)}if(this.updateConfig(this._config,t.schema),i&&oa(this,Ct(t)))return;this._loaded=!0;for(const e in t.sources)this.addSource(e,t.sources[e],{validate:!1,isInitialLoad:!0});this.stylesheet=e.bL(t);const r=()=>{if(t.iconsets)for(const e in t.iconsets)this.addIconset(e,t.iconsets[e]);t.sprite?this._loadIconset(t.sprite):(this.imageManager.setLoaded(!0,this.scope),this.dispatcher.broadcast("spriteLoaded",{scope:this.scope,isLoaded:!0})),!this.glyphManager.url&&t.glyphs&&this.glyphManager.setURL(t.glyphs);const r=os(this.stylesheet.layers);if(this._order=r.map(e=>e.id),this.stylesheet.light&&e.f_("The `light` root property is deprecated, prefer using `lights` with `flat` light type instead."),this.stylesheet.lights)if(1===this.stylesheet.lights.length&&"flat"===this.stylesheet.lights[0].type){const e=this.stylesheet.lights[0];this.light=new Ht(e.properties,e.id)}else this.setLights(this.stylesheet.lights);this.light||(this.light=new Ht(this.stylesheet.light)),this._layers=Object.create(null);let n=!1;for(const t of r){const i=e.c0(t,this.scope,this._styleColorTheme.lut,this.options);0!==i.expressionDependencies.configDependencies.size&&this._configDependentLayers.add(i.fqid),i.expressionDependencies.isIndoorDependent&&this._indo
vendor: 5,241 bytes, line 1
1orDependentLayers.add(i.fqid),this._hasAppearances=this._hasAppearances||0!==i.getAppearances().length,i.setEventedParent(this,{layer:{id:i.id}}),this._layers[i.id]=i,this._updateHdCoverageSourceCache(i)&&(n=!0);const r=this.getOwnLayerSourceCache(i),o=!!this.directionalLight&&this.directionalLight.shadowsEnabled();r&&i.canCastShadows()&&o&&(r.castsShadows=!0)}if(n&&ro().then(()=>{if(!this.map)return;for(const t in this._layers)this._updateHdCoverageSourceCache(this._layers[t]);this.map.style.mergeAll();const e=this.map.transform;for(const t in this.map.style._mergedHdRoadCoverageSourceCaches){const i=this.map.style._mergedHdRoadCoverageSourceCaches[t];i.used=!0,e&&i.update(e)}this.map._update()}),this.glyphManager.url){const e=new Set;for(const t in this._layers){const i=this._layers[t];if("symbol"===i.type&&i.layout){const t=i.layout.get("text-font");t&&t.value&&"constant"===t.value.kind&&e.add(t.value.value.join(","))}}for(const t of e)this.glyphManager.prefetchRange(t,0)}this.stylesheet.featuresets&&this.setFeaturesetSelectors(this.stylesheet.featuresets),this.stylesheet.models&&this.addModelURLs(this.stylesheet.models);const o=this.stylesheet.terrain;o&&(this.checkCanvasFingerprintNoise(),this.disableElevatedTerrain||this.terrainSetForDrapingOnly()||this._createTerrain(o,1)),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this.stylesheet.snow&&this._createSnow(this.stylesheet.snow),this.stylesheet.rain&&this._createRain(this.stylesheet.rain),this.stylesheet.transition&&this.setTransition(this.stylesheet.transition),this.fire(new e.x("data",{dataType:"style"}));const s=this.isRootStyle();t.imports?this._loadImports(t.imports,i).then(()=>{this._reloadImports(!0),this.fire(new e.x(s?"style.load":"style.import.load"))}).catch(t=>{this.fire(new e.v(new Error("Failed to load imports",t))),this.fire(new e.x(s?"style.load":"style.import.load"))}):(this._reloadImports(!0),this.fire(new e.x(s?"style.load":"style.import.load")))};this._styleColorTheme.colorTheme=this.stylesheet["color-theme"];const n=this._styleColorTheme.colorThemeOverride?this._styleColorTheme.colorThemeOverride:this._styleColorTheme.colorTheme;if(n){const t=this._evaluateColorThemeData(n);this._loadColorTheme(t).then(()=>{r()}).catch(t=>{e.f_(`Couldn't load color theme from the stylesheet: ${t}`),r()})}else this._styleColorTheme.lut=null,r()}isRootStyle(){return 0===this.importDepth}hasAppearances(){return this._hasAppearances||this.fragments.some(e=>e.style.hasAppearances())}mergeAll(){let e,t,i,r,n,o,s,a,l,c;const h={};this.terrain&&this.terrain.scope!==this.scope&&delete this.terrain,this.forEachFragmentStyle(u=>{if(u.stylesheet){if(u.disableElevatedTerrain&&(this.disableElevatedTerrain=!0),null!=u.light&&(e=u.light),u.stylesheet.lights)for(const e of u.stylesheet.lights)"ambient"===e.type&&null!=u.ambientLight&&(t=u.ambientLight),"directional"===e.type&&null!=u.directionalLight&&(i=u.directionalLight);r=this._prioritizeTerrain(r,u.terrain,u.stylesheet.terrain),u.stylesheet.fog&&null!=u.fog&&(n=u.fog),u.stylesheet.snow&&null!=u.snow&&(o=u.snow),u.stylesheet.rain&&null!=u.rain&&(s=u.rain),null!=u.stylesheet.camera&&(c=u.stylesheet.camera),null!=u.stylesheet.projection&&(a=u.stylesheet.projection),null!=u.stylesheet.transition&&(l=u.stylesheet.transition),h[u.scope]=u._styleColorTheme}}),this.light=e,this.ambientLight=t,this.directionalLight=i,this.fog=n,this.snow=o,this.rain=s,this._styleColorThemeForScope=h,null===r?delete this.terrain:this.terrain=r,this.camera=c||{"camera-projection":"perspective"},this.projection=a||{name:"mercator"},this.transition=Object.assign({},ua,l),this.mergeSources(),this.mergeLayers(),this.mergeIndoor(),this._programPrecompiler&&this._programPrecompiler.reset()}forEachFragmentStyle(e){const t=i=>{for(const e of i.fragments)t(e.style);e(i)};t(this)}_prioritizeTerrain(e,t,i){const r=e&&0===e.drapeRenderMode;return null===i?t&&0===t.drapeRenderMode?t:r?e:null:null!=t&&(!e||r||t&&1===t.drapeRenderMode)?t:e}mergeTerrain(){let e;this.terrain&&this.terrain.scope!==this.scope&&delete this.terrain,this.forEachFragmentStyle(t=>{e=this._prioritizeTerrain(e,t.terrain,t.stylesheet.terrain)}),null===e?delete this.terrain:this.terrain=e,this._programPrecompiler&&this._programPrecompiler.reset()}mergeProjection(){let e;this.forEachFragmentStyle(t=>{null!=t.stylesheet.projection&&(e=t.stylesheet.projection)}),this.projection=e||{name:"mercator"},this._programPrecompiler&&this._programPrecompiler.reset()}mergeSources(){const t={},i=Object.create(null),r=Object.create(null),n=Object.create(null),o=Object.create(null);this.forEachFragmentStyle(s=>{for(const i in s._sourceCaches){const r=e.ea(i,s.scope);t[r]=s._sourceCaches[i]}for(const t in s._otherSourceCaches){const r=e.ea(t,s.scope);i[r]=s._otherSourceCaches[t]}for(const t in s._symbolSourceCaches){const i=e.ea(t,s.scope);r[i]=s._symbolSourceCaches[t]}for(const t in s._fillExtrusionSourceCaches){const i=e.ea(t,s.scope);n[i]=s._fillExtrusionSourceCaches[t]}if(s._hdCoverage){const t=s._hdCoverage.coverageSourceCaches;for(const i in t)o[e.ea(i,s.scope)]=t[i]}}),this._mergedSourceCaches=t,this._mergedOtherSourceCaches=i,this._mergedSymbolSourceCaches=r,this._mergedFillExtrusionSourceCaches=n,this._mergedHdRoa
1dCoverageSourceCaches=o,Object.keys(o).length>0&&!this._hdCoverage&&io.HdCoverageState&&(this._hdCoverage=new io.HdCoverageState)}mergeIndoor(){this._mergedIndoor={},this.forEachFragmentStyle(t=>{if(t.stylesheet&&t.stylesheet.indoor)for(const i of Object.values(t.stylesheet.indoor)){const r=i,n=e.ea(r.sourceId,t.scope);this._mergedIndoor[n]=new Set(r.sourceLayers||[])}}),this._updateIndoorEnabled()}_updateIndoorEnabled(){const t=this._indoorEnabled;if(this._indoorEnabled=!1,Object.keys(this._mergedIndoor).length>0)for(const i of this._mergedOrder){const t=this._mergedLayers[i];if("none"!==t.visibility&&this._mergedIndoor[e.ea(t.source,t.scope)]){this._indoorEnabled=!0;break}}!this._indoorEnabled||t||this.indoorManager||ro().then(()=>{this._initIndoorManager()})}_initIndoorManager(){if(!this.indoorManager&&io.IndoorManager&&this.isRootStyle()&&0!==Object.keys(this._mergedIndoor).length&&(this.indoorManager=new io.IndoorManager(this,this._loaded),this._loaded))for(const e of Object.keys(this._mergedIndoor)){const t=this._mergedSourceCaches[e]||this._mergedOtherSourceCaches[e];t&&t.reload()}}mergeLayers(){const t={},i=[],r=Object.create(null);this._mergedSlots=[],this._has3DLayers=!1,this._hasCircleLayers=!1,this._hasSymbolLayers=!1,this.forEachFragmentStyle(r=>{for(const n of r._order){const o=r._layers[n];if("slot"===o.type){const i=e.cY(n);if(t[i])continue;t[i]=[]}o.slot&&t[o.slot]?t[o.slot].push(o):i.push(o)}}),this._mergedOrder=[];let n=-1;const o=(i=[])=>{for(const s of i)if("slot"===s.type){const i=e.cY(s.id);t[i]&&o(t[i]),this._mergedSlots.push(i)}else{const t=e.ea(s.id,s.scope);this._mergedOrder.push(t),r[t]=s,s.is3D(!!this.terrain)&&(this._has3DLayers=!0,n=this._mergedOrder.length-1),"circle"===s.type&&(this._hasCircleLayers=!0),"symbol"===s.type&&(this._hasSymbolLayers=!0),"clip"===s.type&&(this._clipLayerPresent=!0)}};if(o(i),this._has3DLayers){const e={};for(let t=0;t<this._mergedOrder.length;++t){const i=this._mergedOrder[t];e[i]=t===n?1:t<n?r[i].hasOcclusionOpacityProperties?2:0:4}this._mergedOrder.sort((t,i)=>e[t]-e[i])}this._mergedLayers=r,this.updateDrapeFirstLayers(),this._buildingIndex.processLayersChanged(),this._updateDataDrivenEmissiveStrength()}terrainSetForDrapingOnly(){return!!this.terrain&&0===this.terrain.drapeRenderMode}getCamera(){return this.stylesheet.camera}setCamera(e){return this.stylesheet.camera=Object.assign({},this.stylesheet.camera,e),this.camera=this.stylesheet.camera,this}_evaluateColorThemeData(t){return t.data?function(t,i,r){const n=Object.assign({},i);for(const e of Object.keys(ea))void 0===n[e]&&(n[e]=ea[e].default);const o=new e.b2(ta,t,new Map(r));return o.setTransitionOrValue(n,r),o.untransitioned().possiblyEvaluate(new e.w(0,{worldview:void 0}))}(this.scope,t,this.options).get("data"):null}_loadColorTheme(t){this._styleColorTheme.lutLoading=!0,this._styleColorTheme.lutLoadingCorrelationID+=1;const i=this._styleColorTheme.lutLoadingCorrelationID;return new Promise((r,n)=>{const o="data:image/png;base64,";if(!t||0===t.length)return this._styleColorTheme.lut=null,this._styleColorTheme.lutLoading=!1,void r();let s=t;s.startsWith(o)||(s=o+s);const a=e.a1.from("mapbox-reserved-lut"),l=new Image;l.src=s,l.onerror=()=>{this._styleColorTheme.lutLoading=!1,n(new Error("Failed to load image data"))},l.onload=()=>{if(this._styleColorTheme.lutLoadingCorrelationID!==i)return void r();this._styleColorTheme.lutLoading=!1;const{width:o,height:s,data:c}=e.co.getImageData(l);if(s>32)return void n(new Error("The height of the image must be less than or equal to 32 pixels."));if(o!==s*s)return void n(new Error("The width of the image must be equal to the height squared."));this.getImage(a)&&this.removeImage(a),this.addImage(a,{data:new e.ay({width:o,height:s},c),pixelRatio:1,sdf:!1,usvg:!1,version:0});const h=this.imageManager.getImage(a,this.scope);h?(this._styleColorTheme.lut={image:h.data,data:t},r()):n(new Error("Missing LUT image."))}})}getLut(e){const t=this._styleColorThemeForScope[e];return t?t.lut:null}setProjection(e){e?this.stylesheet.projection=e:delete this.stylesheet.projection,this.mergeProjection(),this._updateMapProjection()}applyProjectionUpdate(){this._loaded&&(this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),this.map.transform.projection.requiresDraping?(this.getTerrain()||this.stylesheet.terrain)&&!this.disableElevatedTerrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null,0))}_updateMapProjection(){this.isRootStyle()&&(this.map._useExplicitProjection?this.applyProjectionUpdate():this.map._prioritizeAndUpdateProjection(null,this.projection))}_loadSprite(t){this._spriteRequest=function(t,i,r){let n,o,s;const a=e.co.devicePixelRatio>1?"@2x":"";let l=e.cT(i.transformRequest(i.normalizeSpriteURL(t,a,".json"),e.aH.SpriteJSON),(e,t)=>{l=null,s||(s=e,n=t,h())}),c=e.cQ(i.transformRequest(i.normalizeSpriteURL(t,a,".png"),e.aH.SpriteImage),(e,t)=>{c=null,s||(s=e,o=t,h())});function h(){if(s)r(s);else if(n&&o){const t=e.co.getImageData(o),i={};for(const r in n){const{width:o,height:s,x:a,y:l,sdf:c,pixelRatio:h,stretchX:u,stretchY:d,content:f}=n[r],p=new e.ay({width:o,height:s});e.ay.copy(t,p,{x:a,y:l},{x:0,y:0},{width:o,height:s},null),i[r]={data:p,pixelRatio:void 0!==h?h:1,sdf:void 0!==c&&c,stretchX:u,stretchY:d,content:f,usvg:!1,version:0}}r(null,i)}}return{cancel(){l&&(l.cancel(),l=null),c&&(c.cancel(),c=null)}}}(t,this.map._requestManager,(t,i)=>{if(this._spriteRequest=null,t)this.fire(new e.v(t));else if(i){const t=new Map;for(const r in i)t.set(e.a1.from(r),i[r]);this.addImages(t)}this.imageManager.setLoaded(!0,this.scope),this.dispatcher.broadcast("spriteLoaded",{scope:this.scope,isLoaded:!0}),this.fire(new e.x("data",{dataType:"style"}))})}addIconset(t,i){if("sprite"===i.type)return void this._loadSprite(i.url);const r=this.getOwnSourceCache(i.source);if(!r)return void this.fire(new e.v(new Error(`Source "${i.source}" as specified by iconset "${t}" does not exist and cannot be used as an iconset source`)));const n=r.getSource();if("raster-array"!==n.type)return void this.fire(new e.v(new Error(`Source "${i.source}" as specified by iconset "${t}" is not a "raster-array" source and cannot be used as an iconset source`)));n.partial=!1;const o=new na(t,this.scope,r);this.imageManager.addImageProvider(o,this.scope)}removeIconset(e){this.imageManager.removeImageProvider(e,this.scope)}_loadIconset(t){if(!e.dL(t)&&"icon_set"!==this.map._spriteFormat||"raster"===this.map._spriteFormat)return void this._loadSprite(t);const i="auto"===this.map._spriteFormat;var r,n;this._spriteRequest=(n=(r,n)=>{if(this._spriteRequest=null,r)i?this._loadSprite(t):this.fire(new e.v(r));else if(n){const t=new Map;for(const i in n)t.set(e.a1.from(i),n[i]);this.addImages(t)}this.imageManager.setLoaded(!0,this.scope),this.dispatcher.broadcast("spriteLoaded",{scope:this.scope,isLoaded:!0}),this.fire(new e.x("data",{dataType:"style"}))}
1,e.cG((r=this.map._requestManager).transformRequest(r.normalizeIconsetURL(t),e.aH.Iconset),(t,i)=>{if(t)return void n(t);const r={},o=function(e){const t={icons:[]};let i;for(;i=e.nextField(void 0);)1===i&&t.icons.push(ce(e,e.readVarint()+e.pos));return t}(new e.as(i));for(const n of o.icons){const t={version:1,pixelRatio:e.co.devicePixelRatio,content:ia(n),stretchX:n.metadata?ra(n.metadata.stretch_x_areas):void 0,stretchY:n.metadata?ra(n.metadata.stretch_y_areas):void 0,sdf:!1,usvg:!0,icon:n};r[n.name]=t}n(null,r)}))}_validateLayer(t){const i=this.getOwnSource(t.source);if(!i)return;const r=t.sourceLayer;r&&("geojson"===i.type||i.vectorLayerIds&&!i.vectorLayerIds.includes(r))&&this.fire(new e.v(new Error(`Source layer "${r}" does not exist on source "${i.id}" as specified by style layer "${t.id}"`)))}loaded(){if(!this._loaded)return!1;if(Object.keys(this._changes.getUpdatedSourceCaches()).length)return!1;for(const e in this._sourceCaches)if(!this._sourceCaches[e].loaded())return!1;if(!this.imageManager.isLoaded())return!1;if(this.imageManager.hasPatternsInFlight())return!1;if(!this.modelManager.isLoaded())return!1;if(this._styleColorTheme.lutLoading)return!1;for(const{style:e}of this.fragments)if(!e.loaded())return!1;return!0}_serializeImports(){if(this.stylesheet.imports)return this.stylesheet.imports.map((e,t)=>{const i=this.fragments[t];return i&&i.style&&(e.data=i.style.serialize()),e})}_serializeSources(){const e={};for(const t in this._sourceCaches){const i=this._sourceCaches[t].getSource();e[i.id]||(e[i.id]=i.serialize())}return e}_serializeLayers(e){const t=[];for(const i of e){const e=this._layers[i];e&&"custom"!==e.type&&t.push(e.serialize())}return t}hasLightTransitions(){return!(!this.light||!this.light.hasTransition())||!(!this.ambientLight||!this.ambientLight.hasTransition())||!(!this.directionalLight||!this.directionalLight.hasTransition())}hasFogTransition(){return!!this.fog&&this.fog.hasTransition()}hasSnowTransition(){return!!this.snow&&this.snow.hasTransition()}hasRainTransition(){return!!this.rain&&this.rain.hasTransition()}hasTransitions(){if(this.hasLightTransitions())return!0;if(this.hasFogTransition())return!0;if(this.hasSnowTransition())return!0;if(this.hasRainTransition())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}_updateDataDrivenEmissiveStrength(){for(const e in this._mergedLayers){const t=this._mergedLayers[e];if(t._transitionablePaint&&t._transitionablePaint._values){const e=t._transitionablePaint._values["line-emissive-strength"];if(e&&e.value&&e.value.isDataDriven())return void(this._hasDataDrivenEmissive=!0)}}this._hasDataDrivenEmissive=!1}hasDataDrivenEmissiveStrength(){return this._hasDataDrivenEmissive}get order(){return this.terrain?this._drapedFirstOrder:this._mergedOrder}_getOrder(e){return e?this.order:this._mergedOrder}isLayerDraped(e){return!!this.terrain&&e.isDraped(this.getLayerSourceCache(e))}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading")}_checkLayer(t){const i=this.getOwnLayer(t);if(i)return i;this.fire(new e.v(new Error(`The layer '${t}' does not exist in the map's style.`)))}_checkSource(t){const i=this.getOwnSource(t);if(i)return i;this.fire(new e.v(new Error(`The source '${t}' does not exist in the map's style.`)))}handleIdle(){const e=this.map.painter;e&&(e.context.sweepPendingPrograms(),this._programPrecompiler&&this._programPrecompiler.processQueue(e,this))}handleContextLost(){this._programPrecompiler&&this._programPrecompiler.reset()}update(t){if(!this._loaded)return;this.ambientLight&&this.ambientLight.recalculate(t),this.directionalLight&&this.directionalLight.recalculate(t);const i=this.calculateLightsBrightness();t.brightness=i||0,i!==this._brightness&&(this._brightness=i,this.dispatcher.broadcast("setBrightness",i)),t.worldview!==this._worldview&&(this._worldview=t.worldview,this.dispatcher.broadcast("setWorldview",this._worldview));const r=this._changes.isDirty();let n=!1;if(this._changes.isDirty()){const e=this._changes.getLayerUpdatesByScope();for(const t in e){const{updatedIds:i,removedIds:r}=e[t];(i||r)&&(this._updateWorkerLayers(t,i,r),n=!0)}this.updateSourceCaches(),this._updateTilesForChangedImages(),this.updateLayers(t),this.light&&this.light.updateTransitions(t),this.ambientLight&&this.ambientLight.updateTransitions(t),this.directionalLight&&this.directionalLight.updateTransitions(t),this.fog&&this.fog.updateTransitions(t),this.snow&&this.snow.updateTransitions(t),this.rain&&this.rain.updateTransitions(t),this._changes.reset()}const o={};for(const e in this._mergedSourceCaches){const t=this._mergedSourceCaches[e];o[e]=t.used,t.used=!1,t.tileCoverLift=0}const s={};for(const l of this._mergedOrder){const i=this._mergedLayers[l];if(("none"!==i.visibility||i.hasTransition())&&i.recalculate(t,this._availableImages),!i.isHidden(t.zoom)){i.mayUse("HD")&&(i.prepare(),ro()),i.mayUse("Standard")&&(i.prepare(),Uo());const e=this.getLayerSourceCache(i);e&&(e.used=!0,e.tileCoverLift=Math.max(e.tileCoverLift,i.tileCoverLift()))}
1if(i.source){const t=e.ea(i.source,i.scope),r=this._mergedHdRoadCoverageSourceCaches[t];r&&!r.used&&(r.used=!0)}if("fill-extrusion"===i.type){const t=e.ea(i.source,i.scope);if(t in this._mergedFillExtrusionSourceCaches){const e=i.layout&&i.layout.get("source-max-zoom");if(null!=e){const i=s[t];s[t]=null==i?e:Math.min(i,e)}}}}if(this._programPrecompiler&&this._programPrecompiler.needsBuild()){const e=this._mergedOrder.map(e=>this._mergedLayers[e]);this._programPrecompiler.buildQueue(e,t,this)}for(const e in this._mergedFillExtrusionSourceCaches)this._mergedFillExtrusionSourceCaches[e].setMaxzoomOverride(null!=s[e]?s[e]:null);this.terrain&&n&&this.mergeLayers();const a=this.imageManager.getPendingImageProviders();for(const e of a)e.sourceCache.used=!0;for(const l in o){const t=this._mergedSourceCaches[l];o[l]!==t.used&&t.getSource().fire(new e.x("data",{sourceDataType:"visibility",dataType:"source",sourceId:t.getSource().id}))}this.light&&this.light.recalculate(t),this.terrain&&this.terrain.recalculate(t),this.fog&&this.fog.recalculate(t),this.snow&&this.snow.recalculate(t),this.rain&&this.rain.recalculate(t),this.z=t.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),this.imageManager.clearUpdatedImages(this.scope),r&&this.fire(new e.x("data",{dataType:"style"}))}updateImageProviders(){const e=this.imageManager.getPendingImageProviders();for(const t of e){const e=t.resolvePendingRequests(),i=this.getFragmentStyle(t.scope);i&&i.addImages(e)}}_updateTilesForChangedImages(){const e={};for(const t in this._mergedSourceCaches){const i=this._mergedSourceCaches[t].getSource().scope;e[i]=e[i]||this._changes.getUpdatedImages(i),0!==e[i].length&&this._mergedSourceCaches[t].reloadTilesForDependencies(["icons","patterns"],e[i])}for(const t in e)this._changes.resetUpdatedImages(t)}_updateWorkerLayers(e,t,i){const r=this.getFragmentStyle(e);r&&this.dispatcher.broadcast("updateLayers",{layers:t?r._serializeLayers(t):[],scope:e,removedIds:i||[],options:r.options})}setState(t,i){if(this._checkLoaded(),oa(this,Ct(t)))return!1;(t=e.bL(t)).layers=os(t.layers);const r=function(t,i){if(!t)return[{command:ss.setStyle,args:[i]}];let r=[];try{if(!e.c2(t.version,i.version))return[{command:ss.setStyle,args:[i]}];if(e.c2(t.center,i.center)||r.push({command:ss.setCenter,args:[i.center]}),e.c2(t.zoom,i.zoom)||r.push({command:ss.setZoom,args:[i.zoom]}),e.c2(t.bearing,i.bearing)||r.push({command:ss.setBearing,args:[i.bearing]}),e.c2(t.pitch,i.pitch)||r.push({command:ss.setPitch,args:[i.pitch]}),e.c2(t.sprite,i.sprite)||r.push({command:ss.setSprite,args:[i.sprite]}),e.c2(t.glyphs,i.glyphs)||r.push({command:ss.setGlyphs,args:[i.glyphs]}),e.c2(t.imports,i.imports)||function(t=[],i=[],r){i=i||[];const n=(t=t||[]).map(ds),o=i.map(ds),s=t.reduce(fs,{}),a=i.reduce(fs,{}),l=n.slice();let c,h,u,d;for(c=0,h=0;c<n.length;c++)u=n[c],Object.hasOwn(a,u)?h++:(r.push({command:ss.removeImport,args:[u]}),l.splice(l.indexOf(u,h),1));for(c=0,h=0;c<o.length;c++)u=o[o.length-1-c],l[l.length-1-c]!==u&&(Object.hasOwn(s,u)?(r.push({command:ss.removeImport,args:[u]}),l.splice(l.lastIndexOf(u,l.length-h),1)):h++,d=l[l.length-c],r.push({command:ss.addImport,args:[a[u],d]}),l.splice(l.length-c,0,u));for(const f of i){const t=s[f.id];t&&(delete t.data,e.c2(t,f)||r.push({command:ss.updateImport,args:[f.id,f]}))}}(t.imports,i.imports,r),e.c2(t.transition,i.transition)||r.push({command:ss.setTransition,args:[i.transition]}),e.c2(t.light,i.light)||r.push({command:ss.setLight,args:[i.light]}),e.c2(t.fog,i.fog)||r.push({command:ss.setFog,args:[i.fog]}),e.c2(t.snow,i.snow)||r.push({command:ss.setSnow,args:[i.snow]}),e.c2(t.rain,i.rain)||r.push({command:ss.setRain,args:[i.rain]}),e.c2(t.projection,i.projection)||r.push({command:ss.setProjection,args:[i.projection]}),e.c2(t.lights,i.lights)||r.push({command:ss.setLights,args:[i.lights]}),e.c2(t.camera,i.camera)||r.push({command:ss.setCamera,args:[i.camera]}),e.c2(t.iconsets,i.iconsets)||function(t,i,r){let n;for(n in i=i||{},t=t||{})Object.hasOwn(t,n)&&(Object.hasOwn(i,n)||r.push({command:ss.removeIconset,args:[n]}));for(n in i){if(!Object.hasOwn(i,n))continue;const o=i[n];Object.hasOwn(t,n)?e.c2(t[n],o)||(r.push({command:ss.removeIconset,args:[n]}),r.push({command:ss.addIconset,args:[n,o]})):r.push({command:ss.addIconset,args:[n,o]})}}(t.iconsets,i.iconsets,r),!e.c2(t["color-theme"],i["color-theme"]))return[{command:ss.setStyle,args:[i]}];const n={},o=[];!function(t,i,r,n){let o;for(o in i=i||{},t=t||{})Object.hasOwn(t,o)&&(Object.hasOwn(i,o)||ls(o,r,n));for(o in i){if(!Object.hasOwn(i,o))continue;const s=i[o];Object.hasOwn(t,o)?e.c2(t[o],s)||("geojson"===t[o].type&&"geojson"===s.type&&hs(t,i,o)?r.pu
1sh({command:ss.setGeoJSONSourceData,args:[o,s.data]}):cs(o,i,r,n)):as(o,i,r)}}(t.sources,i.sources,o,n);const s=[];t.layers&&t.layers.forEach(e=>{e.source&&n[e.source]?r.push({command:ss.removeLayer,args:[e.id]}):s.push(e)});let a=t.terrain;a&&n[a.source]&&(r.push({command:ss.setTerrain,args:[void 0]}),a=void 0),r=r.concat(o),e.c2(a,i.terrain)||r.push({command:ss.setTerrain,args:[i.terrain]}),function(t,i,r){i=i||[];const n=(t=t||[]).map(ds),o=i.map(ds),s=t.reduce(fs,{}),a=i.reduce(fs,{}),l=n.slice(),c=Object.create(null);let h,u,d,f,p,A,g;for(h=0,u=0;h<n.length;h++)d=n[h],Object.hasOwn(a,d)?u++:(r.push({command:ss.removeLayer,args:[d]}),l.splice(l.indexOf(d,u),1));for(h=0,u=0;h<o.length;h++)d=o[o.length-1-h],l[l.length-1-h]!==d&&(Object.hasOwn(s,d)?(r.push({command:ss.removeLayer,args:[d]}),l.splice(l.lastIndexOf(d,l.length-u),1)):u++,A=l[l.length-h],r.push({command:ss.addLayer,args:[a[d],A]}),l.splice(l.length-h,0,d),c[d]=!0);for(h=0;h<o.length;h++)if(d=o[h],f=s[d],p=a[d],!c[d]&&!e.c2(f,p))if(e.c2(f.source,p.source)&&e.c2(f["source-layer"],p["source-layer"])&&e.c2(f.type,p.type)){for(g in us(f.layout,p.layout,r,d,null,ss.setLayoutProperty),us(f.paint,p.paint,r,d,null,ss.setPaintProperty),e.c2(f.slot,p.slot)||r.push({command:ss.setSlot,args:[d,p.slot]}),e.c2(f.filter,p.filter)||r.push({command:ss.setFilter,args:[d,p.filter]}),e.c2(f.minzoom,p.minzoom)&&e.c2(f.maxzoom,p.maxzoom)||r.push({command:ss.setLayerZoomRange,args:[d,p.minzoom,p.maxzoom]}),f)Object.hasOwn(f,g)&&"layout"!==g&&"paint"!==g&&"filter"!==g&&"metadata"!==g&&"minzoom"!==g&&"maxzoom"!==g&&"slot"!==g&&(0===g.indexOf("paint.")?us(f[g],p[g],r,d,g.slice(6),ss.setPaintProperty):e.c2(f[g],p[g])||r.push({command:ss.setLayerProperty,args:[d,g,p[g]]}));for(g in p)Object.hasOwn(p,g)&&!Object.hasOwn(f,g)&&"layout"!==g&&"paint"!==g&&"filter"!==g&&"metadata"!==g&&"minzoom"!==g&&"maxzoom"!==g&&"slot"!==g&&(0===g.indexOf("paint.")?us(f[g],p[g],r,d,g.slice(6),ss.setPaintProperty):e.c2(f[g],p[g])||r.push({command:ss.setLayerProperty,args:[d,g,p[g]]}))}else r.push({command:ss.removeLayer,args:[d]}),A=l[l.lastIndexOf(d)+1],r.push({command:ss.addLayer,args:[p,A]})}(s,i.layers,r)}catch(e){console.warn("Unable to compute style diff:",e),r=[{command:ss.setStyle,args:[i]}]}return r}(this.serialize(),t).filter(e=>!(e.command in la));if(0===r.length)return!1;const n=r.filter(e=>!(e.command in aa));if(n.length>0)throw new Error(`Unimplemented: ${n.map(e=>e.command).join(", ")}.`);const o=[];return r.forEach(e=>{o.push(this[e.command](...e.args))}),i&&Promise.all(o).then(i).catch(i),this.stylesheet=t,this.mergeAll(),this.dispatcher.broadcast("setLayers",{layers:this._serializeLayers(this._order),scope:this.scope,options:this.options}),!0}_updateWorkerImages(){this._availableImages=this.imageManager.listImages(this.scope),this.dispatcher.broadcast("setImages",{scope:this.scope,images:this._availableImages})}_updateWorkerModels(){this._availableModels=this.modelManager.getModelURIs(this.scope),this.dispatcher.broadcast("setModels",{scope:this.scope,models:this._availableModels})}addImages(t){if(0===t.size)return this;for(const[i,r]of t.entries()){if(this.getImage(i))return this.fire(new e.v(new Error(`An image with the name "${i.name}" already exists.`)));this.imageManager.addImage(i,this.scope,r),this._changes.updateImage(i,this.scope)}return this._updateWorkerImages(),this.fire(new e.x("data",{dataType:"style"})),this}addImage(t,i){return this.getImage(t)?this.fire(new e.v(new Error(`An image with the name "${t.name}" already exists.`))):(this.imageManager.addImage(t,this.scope,i),this._changes.updateImage(t,this.scope),this._updateWorkerImages(),this.fire(new e.x("data",{dataType:"style"})),this)}updateImage(t,i,r=!1){this.imageManager.updateImage(t,this.scope,i),r&&(this._changes.updateImage(t,this.scope),this._updateWorkerImages(),this.fire(new e.x("data",{dataType:"style"})))}getImage(e){return this.imageManager.getImage(e,this.scope)}removeImage(t){return this.getImage(t)?(this.imageManager.removeImage(t,this.scope),this._changes.updateImage(t,this.scope),this._updateWorkerImages(),this.fire(new e.x("data",{dataType:"style"})),this):this.fire(new e.v(new Error("No image with this name exists.")))}listImages(){return this._checkLoaded(),this._availableImages.slice()}getActualScope(){return this._importedAsBasemap?"basemap":this.scope}addModelURLs(t){return this.modelManager.addModelURLs(t,this.getActualScope()),this._updateWorkerModels(),this.fire(new e.x("data",{dataType:"style"})),this}addModel(t,i,r={}
vendor: 5,760 bytes, line 1
1){return this._checkLoaded(),this._validate(Ot,`models.${t}`,i,null,r)||(this.modelManager.addModel(t,i,this.getActualScope()),this.fire(new e.x("data",{dataType:"style"}))),this}hasModel(e){return this.modelManager.hasModel(e,this.getActualScope())}removeModel(t){return this.hasModel(t)?(this.modelManager.removeModel(t,this.getActualScope(),!1,!0),this.fire(new e.x("data",{dataType:"style"})),this):this.fire(new e.v(new Error("No model with this ID exists.")))}listModels(){return this._checkLoaded(),this.modelManager.listModels(this.getActualScope())}addSource(t,i,r={}){if(this._checkLoaded(),void 0!==this.getOwnSource(t))throw new Error(`There is already a source with ID "${t}".`);if(!i.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(i).join(", ")}.`);if(["vector","raster","geojson","video","image"].includes(i.type)&&this._validate(Bt,`sources.${t}`,i,null,r))return;this.map&&this.map._collectResourceTiming&&(i.collectResourceTiming=!0);const n=Jo(t,i,this.dispatcher,this);n.scope=this.scope,n.setEventedParent(this,()=>({isSourceLoaded:this._isSourceCacheLoaded(n.id),source:n.serialize(),sourceId:n.id}));const o=t=>{const i=(t===e.aC.Symbol?"symbol:":t===e.aC.FillExtrusion?"fill-extrusion:":"other:")+n.id,r=e.ea(i,this.scope),o=this._sourceCaches[i]=new Hn(r,n,t);t===e.aC.Symbol?this._symbolSourceCaches[n.id]=o:t===e.aC.FillExtrusion?this._fillExtrusionSourceCaches[n.id]=o:this._otherSourceCaches[n.id]=o,o.onAdd(this.map)};o(e.aC.Other),"vector"!==i.type&&"geojson"!==i.type||(o(e.aC.Symbol),"vector"===i.type&&o(e.aC.FillExtrusion)),n.onAdd&&n.onAdd(this.map),r.isInitialLoad||(this.mergeSources(),this._changes.setDirty())}removeSource(t){this._checkLoaded();const i=this.getOwnSource(t);if(!i)throw new Error("There is no source with this ID");for(const n in this._layers)if(this._layers[n].source===t)return this.fire(new e.v(new Error(`Source "${t}" cannot be removed while layer "${n}" is using it.`)));if(this.terrain&&this.terrain.scope===this.scope&&this.terrain.get().source===t)return this.fire(new e.v(new Error(`Source "${t}" cannot be removed while terrain is using it.`)));if(this.stylesheet.iconsets){const i=Object.entries(this.stylesheet.iconsets).find(([e,i])=>"source"===i.type&&i.source===t);if(i)return this.fire(new e.v(new Error(`Source "${t}" cannot be removed while iconset "${i[0]}" is using it.`)))}const r=this.getOwnSourceCaches(t);for(const n of r){const t=e.cY(n.id);delete this._sourceCaches[t],this._changes.discardSourceCacheUpdate(n.id),n.fire(new e.x("data",{sourceDataType:"metadata",dataType:"source",sourceId:n.getSource().id})),n.setEventedParent(null),n.clearTiles()}return delete this._otherSourceCaches[t],delete this._symbolSourceCaches[t],delete this._fillExtrusionSourceCaches[t],this._hdCoverage&&delete this._hdCoverage.coverageSourceCaches[t],this.mergeSources(),i.setEventedParent(null),i.onRemove&&i.onRemove(this.map),this._changes.setDirty(),this}setGeoJSONSourceData(e,t){this._checkLoaded(),this.getOwnSource(e).setData(t),this._changes.setDirty()}getOwnSource(e){const t=this.getOwnSourceCache(e);return t&&t.getSource()}getOwnSources(){const e=[];for(const t in this._otherSourceCaches){const i=this.getOwnSourceCache(t);i&&e.push(i.getSource())}return e}areTilesLoaded(){const e=this._mergedSourceCaches;for(const t in e){const i=e[t]._tiles;for(const e in i){const t=i[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}}return!0}setLights(t){if(this._checkLoaded(),this._programPrecompiler&&this._programPrecompiler.reset(),!t)return delete this.ambientLight,void delete this.directionalLight;const i=this._getTransitionParameters();for(const e of t){if(this._validate(Tt,"lights",e))return;switch(e.type){case"ambient":if(this.ambientLight){const t=this.ambientLight;t.set(e),t.updateTransitions(i)}else this.ambientLight=new ai(e,ci(),this.scope,this.options);break;case"directional":if(this.directionalLight){const t=this.directionalLight;t.set(e),t.updateTransitions(i)}else this.directionalLight=new ai(e,ui(),this.scope,this.options)}}const r=Object.assign(i,{worldview:this.map.getWorldview()}),n=new e.w(this.z||0,r);this.ambientLight&&this.ambientLight.recalculate(n),this.directionalLight&&this.directionalLight.recalculate(n),this._brightness=this.calculateLightsBrightness(),this.dispatcher.broadcast("setBrightness",this._brightness)}calculateLightsBrightness(){const t=this.directionalLight,i=this.ambientLight;if(!t||!i)return;const r=e=>.2126*(e[0]<=.03928?e[0]/12.92:Math.pow((e[0]+.055)/1.055,2.4))+.7152*(e[1]<=.03928?e[1]/12.92:Math.pow((e[1]+.055)/1.055,2.4))+.0722*(e[2]<=.03928?e[2]/12.92:Math.pow((e[2]+.055)/1.055,2.4)),n=t.properties.get("color").toNonPremultipliedRenderColor(null).toArray01(),o=t.properties.get("intensity"),s=t.properties.get("direction"),a=1-e.bB(s.x,s.y,s.z)[2]/90,l=r(n)*o*a,c=i.properties.get("color").toNonPremultipliedRenderColor(null).toArray01(),h=i.properties.get("intensity"),u=r(c)*h;return Number(((l+u)/2).toFixed(6))}getBrightness(){return this._brightness}getLights(){if(!this.enable3dLights())return null;const e=[];return this.directionalLight&&e.push(this.directionalLight.get()),this.ambientLight&&e.push(this.ambientLight.get()),e}enable3dLights(){return!!this.ambientLight&&!!this.directionalLight}getFragmentStyle(t){if(null==t||""===t&&this.isRootStyle())return this;if(e.dx(t)){const i=e.cS(t),r=this.fragments.find(({id:e})=>e===i);if(!r)return;const n=e.cY(t);return r.style.getFragmentStyle(n)}{const e=this.fragments.find(({id:e})=>e===t);return e?e.style:void 0}}setFeaturesetSelectors(t){if(!t)return;const i=(e,t="")=>`${e}::${t}`;this._featuresetSelectors={};for(const r in t){const n={},o=this._featuresetSelectors[r]=[];
1for(const s of t[r].selectors){if(s.featureNamespace){const t=this.getOwnLayer(s.layer);if(!t){e.f_(`Layer is undefined for selector: ${s.layer}`);continue}const o=i(t.source,t.sourceLayer);if(o in n&&n[o]!==s.featureNamespace){e.f_(`"featureNamespace ${s.featureNamespace} of featureset ${r}'s selector is not associated to the same source, skip this selector`);continue}n[o]=s.featureNamespace}let t;if(s.properties)for(const i in s.properties){const r=e.bY(s.properties[i]);"success"===r.result&&(t=t||{},t[i]=r.value)}o.push({layerId:s.layer,namespace:s.featureNamespace,properties:t,uniqueFeatureID:s._uniqueFeatureID})}}}getFeaturesetDescriptors(e){const t=this.getFragmentStyle(e);if(!t||!t.stylesheet.featuresets)return[];const i=[];for(const r in t.stylesheet.featuresets)i.push({featuresetId:r,importId:t.scope?t.scope:void 0});return i}getFeaturesetLayers(t,i){const r=this.getFragmentStyle(i),n=r.stylesheet.featuresets;if(!n||!n[t])return this.fire(new e.v(new Error(`The featureset '${t}' does not exist in the map's style and cannot be queried.`))),[];const o=[];for(const e of n[t].selectors){const t=r.getOwnLayer(e.layer);t&&o.push(t)}return o}getConfigProperty(t,i){const r=this.getFragmentStyle(t);if(!r)return null;const n=e.ea(i,r.scope),o=r.options.get(n),s=o?o.value||o.default:null;return s?s.serialize():null}isIndoorEnabled(){return this._indoorEnabled}getIndoorSourceLayers(t,i){const r=e.ea(t,i);return this._mergedIndoor[r]}setIndoorData(e,t){this.indoorManager&&this.indoorManager.setIndoorData(t)}updateIndoorDependentLayers(){this._updateLayers(this._indoorDependentLayers),this.map._styleDirty=!0,this.map.triggerRepaint()}setConfigProperty(t,i,r){const n=this.getFragmentStyle(t);if(!n)return;const o=n.stylesheet.schema;if(!o||!o[i])return;const s=sa(o[i],r);if("success"!==s.result)return void oa(this,s.value);const a=s.value.expression,l=e.ea(i,n.scope),c=n.options.get(l);if(!c)return;let h;const{minValue:u,maxValue:d,stepValue:f,type:p,values:A}=o[i],g=sa(o[i],o[i].default);"success"===g.result&&(h=g.value.expression),h?(this.options.set(l,Object.assign({},c,{value:a,default:h,minValue:u,maxValue:d,stepValue:f,type:p,values:A})),this.updateConfigDependencies(i)):this.fire(new e.v(new Error(`No schema defined for the config option "${i}" in the "${t}" fragment.`)))}getConfig(t){const i=this.getFragmentStyle(t);if(!i)return null;const r=i.stylesheet.schema;if(!r)return null;const n={};for(const o in r){const t=e.ea(o,i.scope),r=i.options.get(t),s=r?r.value||r.default:null;n[o]=s?s.serialize():null}return n}setConfig(e,t){const i=this.getFragmentStyle(e);i&&(i.updateConfig(t,i.stylesheet.schema),this.updateConfigDependencies())}getSchema(e){const t=this.getFragmentStyle(e);return t?t.stylesheet.schema:null}setSchema(e,t){const i=this.getFragmentStyle(e);i&&(i.stylesheet.schema=t,i.updateConfig(i._config,t),this.updateConfigDependencies())}updateConfig(t,i){if(this._config=t,t||i)if(i)for(const r in i){let n,o;const s=sa(i[r],i[r].default);if("success"===s.result&&(n=s.value.expression),t&&void 0!==t[r]){const e=sa(i[r],t[r]);"success"===e.result&&(o=e.value.expression)}const{minValue:a,maxValue:l,stepValue:c,type:h,values:u}=i[r];if(n){const t=e.ea(r,this.scope);this.options.set(t,{default:n,value:o,minValue:a,maxValue:l,stepValue:c,type:h,values:u})}else this.fire(new e.v(new Error(`No schema defined for config option "${r}".`)))}else this.fire(new e.v(new Error("Attempting to set config for a style without schema.")))}_updateLayers(e,t=()=>!0){for(const i of e){const e=this.getLayer(i);e&&t(e)&&(e.possiblyEvaluateVisibility(),this._updateLayer(e),this._changes.setDirty())}}updateConfigDependencies(e){this._updateLayers(this._configDependentLayers,t=>!e||t.expressionDependencies.configDependencies.has(e)),this.ambientLight&&this.ambientLight.updateConfig(this.options),this.directionalLight&&this.directionalLight.updateConfig(this.options),this.fog&&this.fog.updateConfig(this.options),this.snow&&this.snow.updateConfig(this.options),this.rain&&this.rain.updateConfig(this.options),this.forEachFragmentStyle(e=>{const t=e._styleColorTheme.colorThemeOverride?e._styleColorTheme.colorThemeOverride:e._styleColorTheme.colorTheme;if(t){const i=e._evaluateColorThemeData(t);(!e._styleColorTheme.lut&&""!==i||e._styleColorTheme.lut&&i!==e._styleColorTheme.lut.data)&&e.setColorTheme(t)}}),this._updateIndoorEnabled(),this._changes.setDirty()}addLayer(t,i,r={}){this._checkLoaded();const n=t.id;if(this._layers[n])return void this.fire(new e.v(new Error(`Layer with i
1d "${n}" already exists on this map`)));let o;if("custom"===t.type){if(oa(this,e.fY(t)))return;o=e.c0(t,this.scope,this._styleColorTheme.lut,this.options)}else{if("object"==typeof t.source&&(this.addSource(n,t.source),t=e.bL(t),t=Object.assign(t,{source:n})),this._validate(Rt,`layers.${n}`,t,{arrayIndex:-1},r))return;o=e.c0(t,this.scope,this._styleColorTheme.lut,this.options),this._validateLayer(o),o.setEventedParent(this,{layer:{id:n}})}const s=e.ea(o.source,o.scope);0!==o.expressionDependencies.configDependencies.size&&this._configDependentLayers.add(s),o.expressionDependencies.isIndoorDependent&&this._indoorDependentLayers.add(s);let a=this._order.length;if(i){const t=this._order.indexOf(i);if(-1===t)return void this.fire(new e.v(new Error(`Layer with id "${i}" does not exist on this map.`)));o.slot&&o.slot!==this._layers[i].slot?e.f_(`Layer with id "${i}" has a different slot. Layers can only be rearranged within the same slot.`):a=t}this._order.splice(a,0,n),this._handleLayerOrderChange(),this._layers[n]=o;const l=this.getOwnLayerSourceCache(o),c=!!this.directionalLight&&this.directionalLight.shadowsEnabled();l&&o.canCastShadows()&&c&&(l.castsShadows=!0);const h=this._changes.getRemovedLayer(o);if(h&&o.source&&l&&"custom"!==o.type){this._changes.discardLayerRemoval(o);const t=e.ea(o.source,o.scope);h.type!==o.type?this._changes.updateSourceCache(t,"clear"):(this._changes.updateSourceCache(t,"reload"),l.pause())}this._updateLayer(o),o.onAdd&&o.onAdd(this.map),o.scope=this.scope,this.mergeLayers()}moveLayer(t,i){this._checkLoaded();const r=this._checkLayer(t);if(!r)return;if(t===i)return;const n=this._order.indexOf(t);this._order.splice(n,1);let o=this._order.length;if(i){const t=this._order.indexOf(i);
1if(-1===t)return void this.fire(new e.v(new Error(`Layer with id "${i}" does not exist on this map.`)));r.slot&&r.slot!==this._layers[i].slot?e.f_(`Layer with id "${i}" has a different slot. Layers can only be rearranged within the same slot.`):o=t}this._order.splice(o,0,t),this._changes.setDirty(),this._handleLayerOrderChange(),this.mergeLayers()}removeLayer(e){this._checkLoaded();const t=this._checkLayer(e);if(!t)return;t.setEventedParent(null);const i=this._order.indexOf(e);this._order.splice(i,1),delete this._layers[e],this._changes.setDirty(),this._handleLayerOrderChange(),this._configDependentLayers.delete(t.fqid),this._indoorDependentLayers.delete(t.fqid),this._changes.removeLayer(t);const r=this.getOwnLayerSourceCache(t);if(r&&r.castsShadows){let e=!1;for(const i in this._layers)if(this._layers[i].source===t.source&&this._layers[i].canCastShadows()){e=!0;break}r.castsShadows=e}t.onRemove&&t.onRemove(this.map),this.mergeLayers()}getOwnLayer(e){return this._layers[e]}hasLayer(e){return e in this._mergedLayers}hasLayerType(e){for(const t in this._layers)if(this._layers[t].type===e)return!0;return!1}setLayerZoomRange(e,t,i){this._checkLoaded();const r=this._checkLayer(e);r&&(r.minzoom===t&&r.maxzoom===i||(null!=t&&(r.minzoom=t),null!=i&&(r.maxzoom=i),this._updateLayer(r)))}getSlots(){return this._checkLoaded(),this._mergedSlots}setSlot(e,t){this._checkLoaded();const i=this._checkLayer(e);i&&i.slot!==t&&(i.slot=t,this._updateLayer(i))}setFilter(t,i,r={}){this._checkLoaded();const n=this._checkLayer(t);if(n&&!e.c2(n.filter,i))return null==i?(n.filter=void 0,void this._updateLayer(n)):void(this._validate(zt,`layers.${n.id}.filter`,i,{layerType:n.type},r)||(n.filter=e.bL(i),this._updateLayer(n)))}getFilter(t){const i=this._checkLayer(t);if(i)return e.bL(i.filter)}setLayoutProperty(t,i,r,n={}){this._checkLoaded();const o=this._checkLayer(t);if(o&&!e.c2(o.getLayoutProperty(i),r)){if(null!=r&&(!n||!1!==n.validate)&&oa(o,Ft.call(Ct,{key:`layers.${t}.layout.${i}`,layerType:o.type,objectKey:i,value:r,styleSpec:e.fs,style:{glyphs:!0,sprite:!0}})))return;o.setLayoutProperty(i,r),0!==o.expressionDependencies.configDependencies.size&&this._configDependentLayers.add(o.fqid),o.expressionDependencies.isIndoorDependent&&this._indoorDependentLayers.add(o.fqid),this._updateLayer(o)}}getLayerProperty(e,t){const i=this._checkLayer(e);if(i){switch(t){case"minzoom":return i.minzoom;case"maxzoom":return i.maxzoom;case"filter":return this.getFilter(e);case"slot":return i.slot;case"appearances":return i.getAppearances().map(e=>e.serialize())}return i.isPaintProperty(t)?this.getPaintProperty(e,t):this.getLayoutProperty(e,t)}}setLayerProperty(e,t,i,r={}){this._checkLoaded();const n=this._checkLayer(e);if(n){switch(t){case"appearances":return n.setAppearances(i),void this._updateLayer(n);case"minzoom":return this.setLayerZoomRange(e,i);case"maxzoom":return this.setLayerZoomRange(e,null,i);case"filter":return this.setFilter(e,i,r);case"slot":return this.setSlot(e,i)}n.isPaintProperty(t)?this.setPaintProperty(e,t,i,r):this.setLayoutProperty(e,t,i,r)}}getLayoutProperty(e,t){const i=this._checkLayer(e);if(i)return i.getLayoutProperty(t)}setPaintProperty(t,i,r,n={}){this._checkLoaded();const o=this._checkLayer(t);if(!o)return;if(e.c2(o.getPaintProperty(i),r))return;if(null!=r&&(!n||!1!==n.validate)&&oa(o,Lt.call(Ct,{key:`layers.${t}.paint.${i}`,layerType:o.type,objectKey:i,value:r,styleSpec:e.fs})))return;const s=o.setPaintProperty(i,r);0!==o.expressionDependencies.configDependencies.size&&this._configDependentLayers.add(o.fqid),o.expressionDependencies.isIndoorDependent&&this._indoorDependentLayers.add(o.fqid),s&&this._updateLayer(o),this._changes.updatePaintProperties(o)}getPaintProperty(e,t){const i=this._checkLayer(e);if(i)return i.getPaintProperty(t)}setFeatureState(t,i){if(this._checkLoaded(),"target"in t){if("featuresetId"in t.target){const{featuresetId:e,importId:r}=t.target,n=this.getFragmentStyle(r),o=n.getFeaturesetLayers(e);for(const{source:s,sourceLayer:a}of o)n.setFeatureState({id:t.id,source:s,sourceLayer:a},i)}else if("layerId"in t.target){const{layerId:e}=t.target,r=this.getLayer(e);this.setFeatureState({id:t.id,source:r.source,sourceLayer:r.sourceLayer},i)}return}const r=t.source,n=t.sourceLayer,o=this._checkSource(r);if(!o)return;const s=o.type;if("geojson"===s&&n)return void this.fire(new e.v(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===s&&!n)return void this.fire(new e.v(new Error("The sourceLayer parameter must be provided for vector source types.")));void 0===t.id&&this.fire(new e.v(new Error("The feature id parameter must be provided.")));const a=this.getOwnSourceCaches(r);for(const e of a)e.setFeatureState(n,t.id,i)}removeFeatureState(t,i){if(this._checkLoaded(),"target"in t){if("featuresetId"in t.target){const{featuresetId:e,importId:r}=t.target,n=this.getFragmentStyle(r),o=n.getFeaturesetLayers(e);for(const{source:s,sourceLayer:a}of o)n.removeFeatureState({id:t.id,source:s,sourceLayer:a},i)}else if("layerId"in t.target){const{layerId:e}=t.target,r=this.getLayer(e);this.removeFeatureState({id:t.id,source:r.source,sourceLayer:r.sourceLayer},i)}return}const r=t.source,n=this._checkSource(r);if(!n)return;
1const o=n.type,s="vector"===o?t.sourceLayer:void 0;if("vector"===o&&!s)return void this.fire(new e.v(new Error("The sourceLayer parameter must be provided for vector source types.")));if(i&&"string"!=typeof t.id&&"number"!=typeof t.id)return void this.fire(new e.v(new Error("A feature id is required to remove its specific state property.")));const a=this.getOwnSourceCaches(r);for(const e of a)e.removeFeatureState(s,t.id,i)}getFeatureState(t){if(this._checkLoaded(),"target"in t){let i;if("featuresetId"in t.target){const{featuresetId:r,importId:n}=t.target,o=this.getFragmentStyle(n),s=o.getFeaturesetLayers(r);for(const{source:a,sourceLayer:l}of s){const r=o.getFeatureState({id:t.id,source:a,sourceLayer:l});if(r&&!i)i=r;else if(!e.c2(i,r))return void this.fire(new e.v(new Error("The same feature id exists in multiple sources in the featureset, but their feature states are not consistent through the sources.")))}}else if("layerId"in t.target){const{layerId:e}=t.target,r=this.getLayer(e);i=this.getFeatureState({id:t.id,source:r.source,sourceLayer:r.sourceLayer})}return i}const i=t.source,r=t.sourceLayer,n=this._checkSource(i);if(n){if("vector"!==n.type||r)return void 0===t.id&&this.fire(new e.v(new Error("The feature id parameter must be provided."))),this.getOwnSourceCaches(i)[0].getFeatureState(r,t.id);this.fire(new e.v(new Error("The sourceLayer parameter must be provided for vector source types.")))}}setTransition(e){return this.stylesheet.transition=Object.assign({},this.stylesheet.transition,e),this.transition=this.stylesheet.transition,this}getTransition(){return Object.assign({},this.stylesheet.transition)}setWorldview(e){e!==this._worldview&&(this._worldview=e,this.dispatcher.broadcast("setWorldview",this._worldview),this.reloadSources())}serialize(){this._checkLoaded();const t=this.getTerrain(),i=t&&this.terrain&&this.terrain.scope===this.scope?t:this.stylesheet.terrain;return e.cr({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,fragment:this.stylesheet.fragment,iconsets:this.stylesheet.iconsets,featuresets:this.stylesheet.featuresets,imports:this._serializeImports(),schema:this.stylesheet.schema,camera:this.stylesheet.camera,light:this.stylesheet.light,lights:this.stylesheet.lights,terrain:i,fog:this.stylesheet.fog,snow:this.stylesheet.snow,rain:this.stylesheet.rain,indoor:this.stylesheet.indoor,center:this.stylesheet.center,"color-theme":this.stylesheet["color-theme"],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:this._serializeSources(),layers:this._serializeLayers(this._order)},e=>void 0!==e)}_updateFilteredLayers(e){for(const t of Object.values(this._mergedLayers))e(t)&&this._updateLayer(t)}_updateLayer(t){this._changes.updateLayer(t);const i=this.getLayerSourceCache(t),r=e.ea(t.source,t.scope),n=this._changes.getUpdatedSourceCaches();t.source&&!n[r]&&i&&"raster"!==i.getSource().type&&(this._changes.updateSourceCache(r,"reload"),i.pause()),t.invalidateCompiledFilter()}_flattenAndSortRenderedFeatures(e){const t=e=>this._mergedLayers[e].is3D(!!this.terrain),i=this.order,r={},n=[];for(let s=i.length-1;s>=0;s--){const o=i[s];if(t(o)){r[o]=s;for(const t of e){const e=t[o];if(e)for(const t of e)n.push(t)}}}n.sort((e,t)=>t.intersectionZ-e.intersectionZ);const o=[];for(let s=i.length-1;s>=0;s--){const a=i[s];if(t(a))for(let e=n.length-1;e>=0;e--){const t=n[e].feature;if(t.layer&&r[t.layer.id]<s)break;o.push(t),n.pop()}else for(const t of e){const e=t[a];if(e)for(const t of e)o.push(t.feature)}}return o}queryRasterValue(t,i,r){const n=this.getOwnSource(t);return n?"raster-array"!==n.type?(this.fire(new e.v(new Error('queryRasterValue support only "raster-array" sources.'))),Promise.resolve(null)):n.queryRasterArrayValue(i,r):(this.fire(new e.v(new Error(`Source with id "${t}" does not exist in the style.`))),Promise.resolve(null))}queryRenderedFeatures(t,i,r){let n;
1i&&!Array.isArray(i)&&i.filter&&(this._validate(zt,"queryRenderedFeatures.filter",i.filter,null,i),n=e.bZ(i.filter));const o={},s=e=>{if(ca.has(e.type))return;const t=this.getOwnLayerSourceCache(e),i=o[t.id]=o[t.id]||{sourceCache:t,layers:{},has3DLayers:!1};e.is3D(!!this.terrain)&&(i.has3DLayers=!0),i.layers[e.fqid]=i.layers[e.fqid]||{styleLayer:e,targets:[]},i.layers[e.fqid].targets.push({filter:n})};if(i&&i.layers){if(!Array.isArray(i.layers))return this.fire(new e.v(new Error("parameters.layers must be an Array."))),[];for(const t of i.layers){const i=this._layers[t];if(!i)return this.fire(new e.v(new Error(`The layer '${t}' does not exist in the map's style and cannot be queried for features.`))),[];s(i)}}else for(const e in this._layers)s(this._layers[e]);const a=this._queryRenderedFeatures(t,o,r),l=this._flattenAndSortRenderedFeatures(a),c=[];for(const h of l)e.cZ(h.layer.id)===this.scope&&c.push(h);return c}queryRenderedFeatureset(t,i,r){let n;i&&!Array.isArray(i)&&i.filter&&(this._validate(zt,"queryRenderedFeatures.filter",i.filter,null,i),n=e.bZ(i.filter));const o="mock",s=[];if(i&&i.target)s.push(Object.assign({},i,{targetId:o,filter:n}));else{const e=this.getFeaturesetDescriptors();for(const t of e)s.push({targetId:o,filter:n,target:t});for(const{style:t}of this.fragments){const e=t.getFeaturesetDescriptors();for(const t of e)s.push({targetId:o,filter:n,target:t})}}const a=this.queryRenderedTargets(t,s,r),l=[],c=new Set;for(const h of a)for(const t of h.variants[o])qo(t,h,c)||l.push(new e.aZ(h,t));return l}queryRenderedTargets(t,i,r){const n={},o=(e,t,i,r)=>{const o=n[t.id]=n[t.id]||{sourceCache:t,layers:{},has3DLayers:!1};if(o.layers[e.fqid]=o.layers[e.fqid]||{styleLayer:e,targets:[]},e.is3D(!!this.terrain)&&(o.has3DLayers=!0),!r)return i.uniqueFeatureID=!1,void o.layers[e.fqid].targets.push(i);o.layers[e.fqid].targets.push(Object.assign({},i,{namespace:r.namespace,properties:r.properties,uniqueFeatureID:r.uniqueFeatureID}))};for(const a of i)if("featuresetId"in a.target){const{featuresetId:t,importId:i}=a.target,r=this.getFragmentStyle(i);if(!r||!r._featuresetSelectors)continue;const n=r._featuresetSelectors[t];if(!n){this.fire(new e.v(new Error(`The featureset '${t}' does not exist in the map's style and cannot be queried for features.`)));continue}for(const e of n){const t=r.getOwnLayer(e.layerId);t&&!ca.has(t.type)&&o(t,r.getOwnLayerSourceCache(t),a,e)}}else if("layerId"in a.target){const{layerId:e}=a.target,t=this.getLayer(e);if(!t||ca.has(t.type))continue;o(t,this.getLayerSourceCache(t),a)}const s=this._queryRenderedFeatures(t,n,r);return this._flattenAndSortRenderedFeatures(s)}_queryRenderedFeatures(t,i,r){const n=[],o=!!this.map._showQueryGeometry,s=Vo.createFromScreenPoints(t,r);for(const e in i){const t=Ko(s,i[e],this._availableImages,r,o,this.getActualScope());Object.keys(t).length&&n.push(t)}if(this.placement)for(const a in i){if(i[a].sourceCache._renderSourceType!==e.aC.Symbol)continue;const t=Xo(s.screenGeometry,i[a],this._availableImages,this.placement.collisionIndex,this.placement.retainedQueryData,this.map.getWorldview());Object.keys(t).length&&n.push(t)}return n}querySourceFeatures(e,t){const i=t&&t.filter;i&&this._validate(zt,"querySourceFeatures.filter",i,null,t);let r=[];const n=this.getOwnSourceCaches(e);for(const o of n)r=r.concat($o(o,t));return r}addSourceType(e,t,i){return da.getSourceType(e)?i(new Error(`A source type called "${e}" already exists.`)):(da.setSourceType(e,t),i(null,null))}getFlatLight(){return this.light.getLight()}setFlatLight(t,i,r={}){this._checkLoaded();const n=this.light.getLight();let o=!1;for(const a in t)if(!e.c2(t[a],n[a])){o=!0;break}if(!o)return;const s=this._getTransitionParameters();this.light.setLight(t,i,r),this.light.updateTransitions(s)}getTerrain(){return this.terrain&&1===this.terrain.drapeRenderMode?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},0)}checkCanvasFingerprintNoise(){void 0===this.disableElevatedTerrain&&(this.disableElevatedTerrain=e.co.hasCanvasFingerprintNoise(),this.disableElevatedTerrain&&e.f_("Terrain and hillshade are disabled because of Canvas2D limitations when fingerprinting protection is enabled (e.g. in private browsing mode)."))}setTerrain(t,i=1){if(this._checkLoaded(),!t)return this.terrainSetForDrapingOnly()||(delete this.terrain,this.map.transform.projection.requiresDraping&&this.setTerrainForDraping()),0===i&&delete this.terrain,null===t?this.stylesheet.terrain=null:delete this.stylesheet.terrain,this._force3DLayerUpdate(),void(this._markersNeedU
vendor: 4,664 bytes, line 1
1pdate=!0);this.checkCanvasFingerprintNoise();let r=t;const n=!("source"in t)||null==t.source;if(1===i){if(this.disableElevatedTerrain)return;if("source"in r&&"object"==typeof r.source){const t="terrain-dem-src";this.addSource(t,r.source),r=e.bL(r),r=Object.assign(r,{source:t})}const t=Object.assign({},r),i={};if(this.terrain&&n){t.source=this.terrain.get().source;const e=this.terrain?this.getFragmentStyle(this.terrain.scope):null;e&&(i.style=e.serialize())}if(this._validate(Mt,"terrain",t,i))return}if(!this.terrain||this.terrain.scope!==this.scope&&!n||this.terrain&&i!==this.terrain.drapeRenderMode){if(!r)return;this._createTerrain(r,i),this.fire(new e.x("data",{dataType:"style"}))}else{const i=this.terrain,n=i.get();for(const t of Object.keys(e.fs.terrain))!Object.hasOwn(r,t)&&e.fs.terrain[t].default&&(r[t]=e.fs.terrain[t].default);for(const r in t)if(!e.c2(t[r],n[r])){i.set(t,this.options),this.stylesheet.terrain=t;const r=this._getTransitionParameters({duration:0});i.updateTransitions(r),this.fire(new e.x("data",{dataType:"style"}));break}}this.mergeTerrain(),this.updateDrapeFirstLayers(),this._markersNeedUpdate=!0}_createFog(e){const t=this.fog=new Kt(e,this.map.transform,this.scope,this.options);this.stylesheet.fog=t.get();const i=this._getTransitionParameters({duration:0});t.updateTransitions(i)}_createSnow(e){const t=this.snow=new ei(e,this.map.transform,this.scope,this.options);this.stylesheet.snow=t.get();const i=this._getTransitionParameters({duration:0});t.updateTransitions(i)}_createRain(e){const t=this.rain=new ti(e,this.map.transform,this.scope,this.options);this.stylesheet.rain=t.get();const i=this._getTransitionParameters({duration:0});t.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)if(this.fog){const i=this.fog;if(!e.c2(i.get(),t)){i.set(t,this.options),this.stylesheet.fog=i.get();const e=this._getTransitionParameters({duration:0});i.updateTransitions(e)}}else this._createFog(t);else delete this.fog,delete this.stylesheet.fog;this._markersNeedUpdate=!0,this._programPrecompiler&&this._programPrecompiler.reset()}getSnow(){return this.snow?this.snow.get():null}setSnow(t){if(this._checkLoaded(),!t)return delete this.snow,void delete this.stylesheet.snow;if(this.snow){const i=this.snow;if(!e.c2(i.get(),t)){i.set(t,this.options),this.stylesheet.snow=i.get();const e=this._getTransitionParameters({duration:0});i.updateTransitions(e)}}else this._createSnow(t);this._markersNeedUpdate=!0}getRain(){return this.rain?this.rain.get():null}setRain(t){if(this._checkLoaded(),!t)return delete this.rain,void delete this.stylesheet.rain;if(this.rain){const i=this.rain;if(!e.c2(i.get(),t)){i.set(t,this.options),this.stylesheet.rain=i.get();const e=this._getTransitionParameters({duration:0});i.updateTransitions(e)}}else this._createRain(t);this._markersNeedUpdate=!0}_reloadColorTheme(){const t=()=>{for(const e in this._layers)this._layers[e].lut=this._styleColorTheme.lut;for(const e in this._sourceCaches)this._sourceCaches[e].clearTiles()},i=this._styleColorTheme.colorThemeOverride?this._styleColorTheme.colorThemeOverride:this._styleColorTheme.colorTheme;if(!i)return this._styleColorTheme.lut=null,void t();const r=this._evaluateColorThemeData(i);this._loadColorTheme(r).then(()=>{this.fire(new e.x("colorthemeset")),t()}).catch(t=>{e.f_(`Couldn't set color theme: ${t}`)})}setColorTheme(t){this._checkLoaded(),this._styleColorTheme.colorThemeOverride&&e.f_("Note: setColorTheme is called on a style with a color-theme override, the passed color-theme won't be visible."),this._styleColorTheme.colorTheme=t,this._reloadColorTheme()}setImportColorTheme(e,t){const i=this.getFragmentStyle(e);i&&(i._styleColorTheme.colorThemeOverride=t,i._reloadColorTheme())}_getTransitionParameters(t){return{now:e.co.now(),transition:Object.assign(this.transition,t)}}updateDrapeFirstLayers(){if(!this.terrain)return;const e=[],t=[];for(const i of this._mergedOrder)this.isLayerDraped(this._mergedLayers[i])?e.push(i):t.push(i);this._drapedFirstOrder=[],this._drapedFirstOrder.push(...e),this._drapedFirstOrder.push(...t)}_createTerrain(e,t){const i=this.terrain=new Gt(e,t,this.scope,this.options,this.map.getWorldview());1===t&&(this.stylesheet.terrain=e),this.mergeTerrain(),this.updateDrapeFirstLayers(),this._force3DLayerUpdate();const r=this._getTransitionParameters({duration:0});i.updateTransitions(r)}_force3DLayerUpdate(){for(const e in this._layers){const t=this._layers[e];"fill-extrusion"===t.type&&this._updateLayer(t)}}
1_forceSymbolLayerUpdate(){for(const e in this._layers){const t=this._layers[e];"symbol"===t.type&&this._updateLayer(t)}}_validate(t,i,r,n,o={}){if(o&&!1===o.validate)return!1;const s=Object.assign({},this.serialize());return oa(this,t.call(Ct,Object.assign({key:i,style:s,value:r,styleSpec:e.fs},n)))}_remove(){this._programPrecompiler&&(this._programPrecompiler.reset(),this._programPrecompiler=null),this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),e.ck.off("pluginStateChange",this._rtlTextPluginCallback);for(const e in this._mergedLayers)this._mergedLayers[e].setEventedParent(null);for(const e in this._mergedSourceCaches){const t=this._mergedSourceCaches[e];t.clearTiles(),t.setEventedParent(null);const i=t.getSource();i&&i.onRemove&&i.onRemove(this.map)}this.imageManager.removeScope(this.scope),this.imageManager.imageAtlasCache.clear(),this.setEventedParent(null),delete this.fog,delete this.snow,delete this.rain,delete this.terrain,delete this.ambientLight,delete this.directionalLight,this.indoorManager&&this.indoorManager.destroy(),this.isRootStyle()&&(this.imageManager.setEventedParent(null),this.modelManager.setEventedParent(null),this.modelManager.destroy(),this.dispatcher.remove())}clearSource(e){const t=this.getSourceCaches(e);for(const i of t)i.clearTiles()}clearSources(){for(const e in this._mergedSourceCaches)this._mergedSourceCaches[e].clearTiles()}clearLayers(){for(const e in this._mergedLayers){const t=this._mergedLayers[e];t._clear&&t._clear()}}reloadSource(e){const t=this.getSourceCaches(e);for(const i of t)i.resume(),i.reload()}reloadSources(){for(const e of this.getSources())e.reload&&e.reload()}reloadModels(){this.modelManager.reloadModels(""),this.forEachFragmentStyle(e=>{e.modelManager.reloadModels(e.scope)})}updateSources(e){let t;this.directionalLight&&(t=hr(this.directionalLight));const i=new Set,r=new Set,n=new Set;for(const o in this._mergedLayers){const e=this._mergedLayers[o];"building"===e.type?i.add(e.source):"raster"===e.type&&e.paint&&"ground"===e.paint.get("raster-elevation-reference")&&n.add(e.source),e.hasElevation()&&
vendor: 4,805 bytes, line 1
1!r.has(e.source)&&r.add(e.source)}this.updateFrcCoverageFadeRange();for(const o in this._mergedSourceCaches){const s=this._mergedSourceCaches[o],a=r.has(s._source.id);s._isRasterElevatedOverTerrain=n.has(s._source.id),i.has(s._source.id)&&(s._source.reparseOverscaled=!1),s.update(e,void 0,void 0,t,a)}this.updateFrcCoverage()}_reloadSources(){for(const e in this._sourceCaches){const t=this._sourceCaches[e];t.resume(),t.reload()}}updateFrcCoverageFadeRange(){this.map.painter&&io.updateFrcCoverageFadeRange&&io.updateFrcCoverageFadeRange(this,this.map.painter)}updateFrcCoverage(){this._hdCoverage&&io.updateFrcCoverage&&io.updateFrcCoverage(this,this._hdCoverage)}_handleLayerOrderChange(){this._requestFullLabelPlacement(),this.fire(new e.x("neworder"))}_requestFullLabelPlacement(){this.pauseablePlacement||(this.pauseablePlacement=new Hs),this.pauseablePlacement.requestFullPlacement()}_setLabelPlacementStale(){this.placement&&this.placement.setStale()}_updatePlacement(t,i,r,n,o,s){this.pauseablePlacement||(this.pauseablePlacement=new Hs);let a=!1,l=!1;const c={},h={};for(const g of this._mergedOrder){const i=this._mergedLayers[g];if("symbol"!==i.type)continue;const r=e.ea(i.source,i.scope);let n=c[r];if(!n){const e=this.getLayerSourceCache(i);if(!e)continue;const t=e.getRenderableIds(!0).map(t=>e.getTileByID(t));h[r]=t.slice(),n=c[r]=t.sort((e,t)=>t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1))}const o=this.crossTileSymbolIndex.addLayer(i,n,t.center.lng,t.projection);a=a||o}this.crossTileSymbolIndex.pruneUnusedLayers(this._mergedOrder);const u=Boolean(this.placement&&!t.equals(this.placement.transform)),d=Boolean(this.placement&&(0!==this.placement.lastReplacementSourceUpdateTime&&!o||this.placement.lastReplacementSourceUpdateTime!==o.updateTime)),f=u||d||a,p=(f||this.pauseablePlacement.isStale())&&0===r,A=this.pauseablePlacement.isDone()&&!this.placement.stillRecent(e.co.now(),t.zoom)&&0!==r;if((this.pauseablePlacement.isFullPlacementRequested()||!this.pauseablePlacement.placement||p||A)&&(this.pauseablePlacement=this.pauseablePlacement.startNewPlacement(t,this._mergedOrder,i,r,n,this.placement,this.fog&&t.projection.supportsFog?this.fog.state:null,this._buildingIndex,s),this.map.painter)){const e=this.map.painter.maxFrontCutoffRawStart;if(e>0){const i=180*t.pitch/Math.PI;if(i>=15){const t=Math.min(1,Math.max(0,(i-15)/5)),r=t*t*(3-2*t);this.pauseablePlacement.placement.frontCutoffStart=-.5*(1-r)+e*r}}}if(this.pauseablePlacement.isDone()?f&&0!==r&&this.pauseablePlacement.setStale():(this.pauseablePlacement.continuePlacement(this._mergedOrder,this._mergedLayers,c,h,this.map.painter.scaleFactor),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.co.now()),l=!0),a&&this.pauseablePlacement.setStale()),l||a){this._buildingIndex.onNewFrame(t.zoom);for(let t=0;t<this._mergedOrder.length;t++){const i=this._mergedLayers[this._mergedOrder[t]];if("symbol"!==i.type)continue;if("none"===i.visibility)continue;const r=this.isLayerClipped(i);this.placement.updateLayerOpacities(i,c[e.ea(i.source,i.scope)],t,r?o:null)}}return!this.pauseablePlacement.isDone()||this.placement.isStale()||this.placement.hasTransitions(e.co.now())}_releaseSymbolFadeTiles(){for(const e in this._sourceCaches)this._sourceCaches[e].releaseSymbolFadeTiles()}addImport(t,i){this._checkLoaded();const r=this.stylesheet.imports=this.stylesheet.imports||[];if(-1!==r.findIndex(({id:e})=>e===t.id))return void this.fire(new e.v(new Error(`Import with id '${t.id}' already exists in the map's style.`)));if(!i)return r.push(t),this._loadImports([t],!0);const n=r.findIndex(({id:e})=>e===i);return-1===n&&this.fire(new e.v(new Error(`Import with id "${i}" does not exist on this map.`))),this.stylesheet.imports=r.slice(0,n).concat(t).concat(r.slice(n)),this._loadImports([t],!0,i)}updateImport(t,i){this._checkLoaded();const r=this.stylesheet.imports||[],n=this.getImportIndex(t);return-1===n?this:"string"==typeof i?(this.setImportUrl(t,i),this):(i.url&&i.url!==r[n].url&&this.setImportUrl(t,i.url),e.c2(i.config,r[n].config)||this.setImportConfig(t,i.config,i.data.schema),e.c2(i.data,r[n].data)||this.setImportData(t,i.data),this)}moveImport(e,t){this._checkLoaded();let i=this.stylesheet.imports||[];const r=this.getImportIndex(e);if(-1===r)return this;const n=this.getImportIndex(t);if(-1===n)return this;const o=i[r],s=this.fragments[r];return i=i.filter(({id:t})=>t!==e),this.fragments=this.fragments.filter(({id:t})=>t!==e),this.stylesheet.imports=i.slice(0,n).concat(o).concat(i.slice(n)),this.fragments=this.fragments.slice(0,n).concat(s).concat(this.fragments.slice(n)),this.mergeLayers(),this}setImportUrl(e,t){this._checkLoaded();const i=this.stylesheet.imports||[],r=this.getImportIndex(e);if(-1===r)return this;i[r].url=t;
1const n=this.fragments[r];return n.style=this._createFragmentStyle(i[r]),n.style.on("style.import.load",()=>this.mergeAll()),n.style.loadURL(t),this}setImportData(e,t){this._checkLoaded();const i=this.getImportIndex(e),r=this.stylesheet.imports||[];return-1===i?this:t?(this.fragments[i].style.setState(t),this._reloadImports(),this):(delete r[i].data,this.setImportUrl(e,r[i].url))}setImportConfig(e,t,i){this._checkLoaded();const r=this.getImportIndex(e),n=this.stylesheet.imports||[];if(-1===r)return this;t?n[r].config=t:delete n[r].config;const o=this.fragments[r];i&&o.style.stylesheet&&(o.style.stylesheet.schema=i);const s=o.style.stylesheet&&o.style.stylesheet.schema;return o.config=t,o.style.updateConfig(t,s),this.updateConfigDependencies(),this}removeImport(e){this._checkLoaded();const t=this.stylesheet.imports||[],i=this.getImportIndex(e);-1!==i&&(t.splice(i,1),this.fragments[i].style._remove(),this.fragments.splice(i,1),this._reloadImports())}getImportIndex(t){const i=(this.stylesheet.imports||[]).findIndex(e=>e.id===t);return-1===i&&this.fire(new e.v(new Error(`Import '${t}' does not exist in the map's style and cannot be updated.`))),i}getLayer(e){return this._mergedLayers[e]}getSources(){const e=[];for(const t in this._mergedOtherSourceCaches){const i=this._mergedOtherSourceCaches[t];i&&e.push(i.getSource())}return e}getSource(e,t){const i=this.getSourceCache(e,t);return i&&i.getSource()}getLayerSource(e){const t=this.getLayerSourceCache(e);return t&&t.getSource()}getSourceCache(t,i){const r=e.ea(t,i);return this._mergedOtherSourceCaches[r]}getLayerSourceCache(t){const i=e.ea(t.source,t.scope);return"symbol"===t.type?this._mergedSymbolSourceCaches[i]:"fill-extrusion"===t.type?this._mergedFillExtrusionSourceCaches[i]||this._mergedOtherSourceCaches[i]:"fill"===t.type&&t.sourceLayer===e.X&&this._mergedHdRoadCoverageSourceCaches[i]?this._mergedHdRoadCoverageSourceCaches[i]:this._mergedOtherSourceCaches[i]}getSourceCaches(e){if(null==e)return Object.values(this._mergedSourceCaches);const t=[];return this._mergedOtherSourceCaches[e]&&t.push(this._mergedOtherSourceCaches[e]),this._mergedSymbolSourceCaches[e]&&t.push(this._mergedSymbolSourceCaches[e]),this._mergedFillExtrusionSourceCaches[e]&&t.push(this._mergedFillExtrusionSourceCaches[e]),this._mergedHdRoadCoverageSourceCaches[e]&&t.push(this._mergedHdRoadCoverageSourceCaches[e]),t}updateSourceCaches(){const e=this._changes.getUpdatedSourceCaches();for(const t in e){const i=e[t];"reload"===i?this.reloadSource(t):"clear"===i&&this.clearSource(t)}}updateLayers(e){const t=this._changes.getUpdatedPaintProperties();for(const i of t){const t=this.getLayer(i);t&&t.updateTransitions(e)}}getGlyphsUrl(){return this.stylesheet.glyphs}setGlyphsUrl(e){this.stylesheet.glyphs=e,this.glyphManager.setURL(e)}getImages(t,i,r){this.imageManager.getImages(i.icons.concat(i.patterns),i.scope,r),this._updateTilesForChangedImages();const n=i.icons.map(t=>e.a1.toString(t)),o=i.patterns.map(t=>e.a1.toString(t)),s=e=>{e&&(e.setDependencies(i.tileID.key,"icons",n),e.setDependencies(i.tileID.key,"patterns",o))},a=e.ea(i.source,i.scope);s(this._mergedOtherSourceCaches[a]),s(this._mergedSymbolSourceCaches[a]),(i.icons.some(e=>e.iconsetId)||i.patterns.some(e=>e.iconsetId))&&this.fire(new e.x("data",{dataType:"style"}))}rasterizeImages(e,t,i){this.imageManager.rasterizeImages(t,i)}checkAtlasCache(e,t,i){const r=this.imageManager.imageAtlasCache.findCachedAtlas(t.descriptor);i(null,r&&r.contentDescriptor?{iconPositions:r.iconPositions,patternPositions:r.patternPositions,sourceHash:r.contentDescriptor.hash}:null)}getGlyphs(e,t,i){this.glyphManager.getGlyphs(t.stacks,i)}getOwnSourceCache(e){return this._otherSourceCaches[e]}getOwnLayerSourceCache(e){return"symbol"===e.type?this._symbolSourceCaches[e.source]:"fill-extrusion"===e.type&&this._fillExtrusionSourceCaches[e.source]||this._otherSourceCaches[e.source]}getOwnSourceCaches(e){const t=[];return this._otherSourceCaches[e]&&t.push(this._otherSourceCaches[e]),this._symbolSourceCaches[e]&&t.push(this._symbolSourceCaches[e]),this._fillExtrusionSourceCaches[e]&&t.push(this._fillExtrusionSourceCaches[e]),this._hdCoverage&&this._hdCoverage.coverageSourceCaches[e]&&t.push(this._hdCoverage.coverageSourceCaches[e]),t}_updateHdCoverageSourceCache(t){return io.HdCoverageState&&io.updateHdCoverageSourceCache?(this._hdCoverage||(this._hdCoverage=new io.HdCoverageState),io.updateHdCoverageSourceCache(this,this._hdCoverage,t),!1):"fill"===t.type&&t.sourceLayer===e.X}_isSourceCacheLoaded(t){const i=this.getOwnSourceCaches(t);return 0===i.length?(this.fire(new e.v(new Error(`There is no source with ID '${t}'`))),!1):i.every(e=>e.loaded())}has3DLayers(){return this._has3DLayers}hasSymbolLayers(){return this._hasSymbolLayers}hasCircleLayers(){return this._hasCircleLayers}isLayerClipped(e,t){if(!this._clipLayerPresent&&"fill-extrusion"!==e.type&&"building"!==e.type)return!1;const i="fill-extrusion"===e.type&&("building"===e.sourceLayer||"procedural_buildings"===e.sourceLayer),r="building"===e.type;if(e.is3D(!!this.terrain)){if(i||r||t&&"batched-model"===t.type)return!0;
vendor: 6,045 bytes, line 1
1if("model"===e.type)return!0}else if("symbol"===e.type)return!0;return!1}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}getBOMObject(){}destroy(){this._clearWorkerCaches(),this.imageManager.imageAtlasCache.clear(),this.fragments.forEach(e=>{e.style._remove()}),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}da.getSourceType=function(e){return Wo[e]},da.setSourceType=function(e,t){Wo[e]=t},da.registerForPluginStateChange=e.e_;class fa{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffers=[],this.vao=null}bind(e,t,i,r,n,o,s,a){this.context=e;let l=this.boundPaintVertexBuffers.length!==r.length;for(let h=0;!l&&h<r.length;h++)this.boundPaintVertexBuffers[h]!==r[h]&&(l=!0);let c=this.boundDynamicVertexBuffers.length!==s.length;for(let h=0;!c&&h<s.length;h++)this.boundDynamicVertexBuffers[h]!==s[h]&&(c=!0);if(!this.vao||this.boundProgram!==t||this.boundLayoutVertexBuffer!==i||l||c||this.boundIndexBuffer!==n||this.boundVertexOffset!==o)this.freshBind(t,i,r,n,o,s,a);else{e.bindVertexArrayOES.set(this.vao);for(const i of s)i&&(i.bind(),a&&i.instanceCount&&i.setVertexAttribDivisor(e.gl,t,a));n&&n.dynamicDraw&&n.bind()}}freshBind(e,t,i,r,n,o,s){const a=this.context,l=a.gl;this.vao&&this.destroy(),this.vao=a.gl.createVertexArray(),a.bindVertexArrayOES.set(this.vao),this.boundProgram=e,this.boundLayoutVertexBuffer=t,this.boundPaintVertexBuffers=i,this.boundIndexBuffer=r,this.boundVertexOffset=n,this.boundDynamicVertexBuffers=o,t.enableAttributes(l,e),t.bind(),t.setVertexAttribPointers(l,e,n);for(const c of i)c.enableAttributes(l,e),c.bind(),c.setVertexAttribPointers(l,e,n);for(const c of o)c&&(c.enableAttributes(l,e),c.bind(),c.setVertexAttribPointers(l,e,n),s&&c.instanceCount&&c.setVertexAttribDivisor(l,e,s));r&&r.bind()}destroy(){this.vao&&(this.context.gl.deleteVertexArray(this.vao),this.vao=null)}}function pa(t,i){const r=Math.pow(2,i.canonical.z),n=i.canonical.y;return[new e.ag(0,n/r).toLngLat().lat,new e.ag(0,(n+1)/r).toLngLat().lat]}function Aa(t,i,r,n,o,s,a){const l=t.context,c=l.gl,h=r.hillshadeFBO;if(!h)return;t.prepareDrawTile();const u=t.isTileAffectedByFog(i),d=[];t.terrain&&t.terrain.renderingToTexture&&"mrt-fallback"===t.emissiveMode&&d.push("USE_MRT1");const f=t.getOrCreateProgram("hillshade",{overrideFog:u,defines:d});l.activeTexture.set(c.TEXTURE0),c.bindTexture(c.TEXTURE_2D,h.colorAttachment0.get());const p=((t,i,r,n)=>{const o=r.paint.get("hillshade-shadow-color"),s="none"===r.paint.get("hillshade-shadow-color-use-theme").constantOr("default"),a=r.paint.get("hillshade-highlight-color"),l="none"===r.paint.get("hillshade-highlight-color-use-theme").constantOr("default"),c=r.paint.get("hillshade-accent-color"),h="none"===r.paint.get("hillshade-accent-color-use-theme").constantOr("default"),u=r.paint.get("hillshade-emissive-strength");let d=e.c4(r.paint.get("hillshade-illumination-direction"));if("viewport"===r.paint.get("hillshade-illumination-anchor"))d-=t.transform.angle;else if(t.style&&t.style.enable3dLights()&&t.style.directionalLight){const i=t.style.directionalLight.properties.get("direction"),r=e.bB(i.x,i.y,i.z);d=e.c4(r[1])}const f=!t.options.moving;return{u_matrix:n||t.transform.calculateProjMatrix(i.tileID.toUnwrapped(),f),u_image:0,u_latrange:pa(0,i.tileID),u_light:[r.paint.get("hillshade-exaggeration"),d],u_shadow:o.toPremultipliedRenderColor(s?null:r.lut),u_highlight:a.toPremultipliedRenderColor(l?null:r.lut),u_emissive_strength:u,u_accent:c.toPremultipliedRenderColor(h?null:r.lut)}})(t,r,n,t.terrain?i.projMatrix:null);t.uploadCommonUniforms(l,f,i.toUnwrapped());const{tileBoundsBuffer:A,tileBoundsIndexBuffer:g,tileBoundsSegments:m}=t.getTileBoundsBuffers(r);f.draw(t,c.TRIANGLES,o,s,a,mi.disabled,p,n.id,A,g,m)}function ga(t,i,r){if(!i.needsDEMTextureUpload)return;const n=t.context,o=n.gl;n.pixelStoreUnpackPremultiplyAlpha.set(!1),i.demTexture=i.demTexture||t.getTileTexture(r.stride);const s=r.getPixels();i.demTexture?i.demTexture.update(s,{premultiply:!1}):i.demTexture=new e.a_(n,s,o.R32F,{premultiply:!1}),i.needsDEMTextureUpload=!1}function ma(t,i,r){const n=t.context,o=n.gl;if(!i.dem)return;const s=i.dem;if(n.activeTexture.set(o.TEXTURE1),ga(t,i,s),!i.demTexture)return;i.demTexture.bind(o.NEAREST,o.CLAMP_TO_EDGE);const a=s.dim;n.activeTexture.set(o.TEXTURE0);let l=i.hillshadeFBO;if(!l){const t=new e.a_(n,{width:a,height:a,data:null},o.RGBA8);t.bind(o.LINEAR,o.CLAMP_TO_EDGE),l=i.hillshadeFBO=n.createFramebuffer(a,a,1,"renderbuffer"),l.colorAttachment0.set(t.texture)}n.bindFramebuffer.set(l.framebuffer),n.viewport.set([0,0,a,a]);const{tileBoundsBuffer:c,tileBoundsIndexBuffer:h,tileBoundsSegments:u}=t.getMercatorTileBoundsBuffers(),d=[];t.linearFloatFilteringSupported()&&d.push("TERRAIN_DEM_FLOAT_FORMAT"),t.terrain&&t.terrain.renderingToTexture&&"mrt-fallback"===t.emissiveMode&&d.push("USE_MRT1"),t.getOrCreateProgram("hillshadePrepare",{defines:d}).draw(t,o.TRIANGLES,_i.disabled,Gi.disabled,Ji.unblended,mi.disabled,((t,i)=>{const r=i.stride,n=e.bT();return e.eB(n,0,e.r,-e.r,0,0,1),e.fQ(n,n,[0,-e.r,0]),{u_matrix:n,u_image:1,u_dimension:[r,r],u_zoom:t.overscaledZ}})(i.tileID,s),r.id,c,h,u),i.needsHillshadePrepare=!1}class _a{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 ya extends _a{getDefault(){return e.i.transparent.toNonPremultipliedRenderColor(null)}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 xa extends _a{getDefault(){return 1}set(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)}}class va extends _a{getDefault(){return 0}set(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)}}
vendor: 7,304 bytes, line 1
1class wa extends _a{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 Ea extends _a{getDefault(){return!0}set(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)}}class ba extends _a{getDefault(){return 255}set(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)}}class Ia extends _a{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 Ca extends _a{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 Ba extends _a{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 Da extends _a{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 Ta extends _a{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 Ma extends _a{getDefault(){return this.gl.LESS}set(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)}}class Qa extends _a{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 Sa extends _a{getDefault(){const e=this.gl;return[e.ONE,e.ZERO,e.ONE,e.ZERO]}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.blendFuncSeparate(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)}}class Pa extends _a{getDefault(){return e.i.transparent.toNonPremultipliedRenderColor(null)}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 Ra extends _a{getDefault(){return this.gl.FUNC_ADD}set(e){(e!==this.current||this.dirty)&&(this.gl.blendEquationSeparate(e,e),this.current=e,this.dirty=!1)}}class za extends _a{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 La extends _a{getDefault(){return this.gl.BACK}set(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)}}class Fa extends _a{getDefault(){return this.gl.CCW}set(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)}}let Oa=class extends _a{getDefault(){return null}set(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)}};class ka extends _a{getDefault(){return this.gl.TEXTURE0}set(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)}}class Na extends _a{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 Ua extends _a{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 Va extends _a{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 Ha extends _a{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 ja extends _a{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 Ga extends _a{getDefault(){return null}set(e){const t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1}}class Ya extends _a{getDefault(){return null}set(e){this.gl&&(e!==this.current||this.dirty)&&(this.gl.bindVertexArray(e),this.current=e,this.dirty=!1)}}class Wa extends _a{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 Ja extends _a{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 Za extends _a{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 qa extends _a{constructor(e,t){super(e),this.context=e,this.parent=t}getDefault(){return null}}class Ka extends qa{constructor(e,t,i=0){super(e,t),this.attachmentPoint=e.gl.COLOR_ATTACHMENT0+i}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,this.attachmentPoint,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}}class Xa extends qa{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 $a extends qa{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.framebufferTexture2D(t.FRAMEBUFFER,this.attachment(),t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}}class el extends Xa{attachment(){return this.gl.DEPTH_STENCIL_ATTACHMENT}}const tl=(e,t,i,r)=>({u_matrix:e,u_image0:0,u_image1:1,u_skirt_height:t,u_ground_shadow_factor:i,u_emissive_texture_available:r}),il=(e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g)=>({u_proj_matrix:Float32Array.from(e),u_globe_matrix:t,u_normalize_matrix:Float32Array.from(r),u_merc_matrix:i,u_zoom_transition:n,u_merc_center:o,u_image0:0,u_image1:1,u_frustum_tl:s,u_frustum_tr:a,u_frustum_br:l,u_frustum_bl:c,u_globe_pos:h,u_globe_radius:u,u_viewport:d,u_grid_matrix:g?Float32Array.from(g):new Float32Array(9),u_skirt_height:f,u_far_z_cutoff:p,u_emissive_texture_available:A});function rl(e,t){return null!=e&&null!=t&&!(!e.hasData()||!t.hasData())&&null!=e.demTexture&&null!=t.demTexture&&e.tileID.key!==t.tileID.key}const nl=new class{constructor(){this.operations={}}newMorphing(e,t,i,r,n){if(e in this.operations){const t=this.operations[e];t.to.tileID.key!==i.tileID.key&&(t.queued=i)}else this.operations[e]={startTime:r,phase:0,duration:n,from:t,to:i,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 i=this.operations[t];for(i.phase=(e-i.startTime)/i.duration;i.phase>
1=1||!this._validOp(i);)if(!this._nextOp(i,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()}};function ol(e,t,i){if(0===t)return 0;const r=t<1&&514===i?.25/t:1;return 6*Math.pow(1.5,22-e)*Math.max(t,1)*r}function sl(e,t){const i=1<<e.z;return!t&&(0===e.x||e.x===i-1)||0===e.y||e.y===i-1}function al(e,t){if(!e.style||!e.style.enable3dLights())return;const i=e.context,r=i.gl;i.activeTexture.set(r.TEXTURE1),t?t.bind(r.LINEAR,r.CLAMP_TO_EDGE):e.emptyTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}class ll extends Hn{constructor(e){const t={type:"raster-dem",maxzoom:Math.ceil(e.transform.maxZoom)},i=Jo("mock-dem",t,e.style.dispatcher,e.style);super("mock-dem",i,null),i.setEventedParent(this),this._sourceLoaded=!0}_loadTile(e,t){e.state="loaded",t(null)}}class cl extends Hn{constructor(e){const t=Jo("proxy",{type:"geojson",maxzoom:Math.ceil(e.transform.maxZoom)},e.style.dispatcher,e.style);super("proxy",t,null),t.setEventedParent(this),this.map=this.getSource().map=e,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(t,i,r){if(t.freezeTileCoverage)return;this.transform=t;const n=t.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce((i,r)=>{if(i[r.key]="",!this._tiles[r.key]){const i=new e.b0(r,this._source.tileSize*r.overscaleFactor(),t.tileZoom,void 0,void 0,this._source.worldview);i.state="loaded",this._tiles[r.key]=i}return i},{});for(const e in this._tiles)e in n||(this.freeFBO(e),this._tiles[e].unloadVectorData(),delete this._tiles[e])}freeFBO(e){const t=this.proxyCachedFBO[e];if(void 0!==t){const i=Object.values(t);this.renderCachePool.push(...i),delete this.proxyCachedFBO[e]}}deallocRenderCache(){this.renderCache.forEach(e=>e.fb.destroy()),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class hl extends e.ap{constructor(e,t,i){super(e.overscaledZ,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y),this.proxyTileKey=t,this.projMatrix=i}}class ul extends e.s{constructor(t,i){super(),this.painter=t,this.terrainTileForTile={},this.prevTerrainTileForTile={};const[r,n,o]=function(){const t=new e.aQ,i=new e.aT,r=131;t.reserve(17161),i.reserve(33800);const n=e.r/128,o=e.r+n/2,s=o+n;for(let l=-n;l<s;l+=n)for(let i=-n;i<s;i+=n){const r=i<0||i>o||l<0||l>o?24575:0,n=e.bG(Math.round(i),0,e.r),s=e.bG(Math.round(l),0,e.r);t.emplaceBack(n+r,s)}const a=(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++)a(t,e);return[0,129].forEach(e=>{for(let t=0;t<130;t++)a(t,e),a(e,t)}),[t,i,32768]}(),s=t.context;this.gridBuffer=s.createVertexBuffer(r,e.eQ.members),this.gridIndexBuffer=s.createIndexBuffer(n),this.gridSegments=e.aJ.simpleSegment(0,0,r.length,n.length),this.gridNoSkirtSegments=e.aJ.simpleSegment(0,0,r.length,o),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new cl(i.map),this.orthoMatrix=e.bT(),e.eB(this.orthoMatrix,"globe"===this.painter.transform.projection.name?.015:0,e.r,0,e.r,0,1);const a=s.gl;this._overlapStencilMode=new Gi({func:a.GEQUAL,mask:255},0,255,a.KEEP,a.KEEP,a.REPLACE),this._previousZoom=t.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=i,this._useVertexMorphing=!0,this._exaggeration=1,this._mockSourceCache=new ll(i.map),this._pendingGroundEffectLayers=[],this._emissiveTexture=!1,this._devtoolsFolder=null}set style(e){e.on("data",this._onStyleDataEvent.bind(this)),this._style=e,this._style.map.on("moveend",()=>{this._clearLineLayersFromRenderCache()})}update(t,i,r){if(t&&t.terrain){this._style!==t&&(this.style=t,this._evaluationZoom=void 0);const n=t.terrain.properties,o=0===t.terrain.drapeRenderMode,s=t.terrain.isZoomDependent();this._previousUpdateTimestamp=this.enabled?this._updateTimestamp:void 0,this._updateTimestamp=e.co.now();const a=t.terrain&&t.terrain.scope,l=n.get("source"),c=o?this._mockSourceCache:t.getSourceCache(l,a);if(!c)return void e.f_(`Couldn't find terrain source "${l}".`);if(this.sourceCache=c,this._attenuationRange=t.terrain.getAttenuationRange(),this._exaggeration=s?this.calculateExaggeration(i):n.get("exaggeration"),!i.projection.requiresDraping&&s&&0===this._exaggeration)return void this._disable();this.enabled=!0;const h=()=>{this.sourceCache.used&&e.f_(`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(i,t,!0),this.resetTileLookupCache(this.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,h(),this._initializing=!0),h(),i.updateElevation(!0,r),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(i),this._emptyDEMTextureDirty=!0,this._previousZoom=i.zoom}else this._disable()}calculateExaggeration(t){if(this._attenuationRange&&t.zoom>=Math.ceil(this._attenuationRange[1]))return this._style.terrain.getExaggeration(t.zoom);const i=this._previousCameraAltitude,r=t.getFreeCameraOptions().position.z/t.pixelsPerMeter*t.worldSize;this._previousCameraAltitude=r;
vendor: 4,470 bytes, line 1
1const n=null!=i?r-i:Number.MAX_VALUE;if(Math.abs(n)<2)return this._exaggeration;const o=t.zoom,s=this._style.terrain;if(!this._previousUpdateTimestamp)return s.getExaggeration(o);let a=o-this._previousZoom;const l=this._previousUpdateTimestamp;let c=o;null!=this._evaluationZoom&&(c=this._evaluationZoom,Math.abs(o-c)>.5&&(a=.5*(o-c+a)),a*n<0&&(c+=a)),this._evaluationZoom=c;const h=s.getExaggeration(c),u=h===s.getExaggeration(Math.max(0,c-.1));if(u&&Math.abs(h-this._exaggeration)<.01)return h;let d=Math.min(.1,.00375*(this._updateTimestamp-l));return(u||h<.1||Math.abs(a)<1e-4)&&(d=Math.min(.2,4*d)),e.dY(this._exaggeration,h,d)}resetTileLookupCache(e){this._findCoveringTileCache[e]={}}attenuationRange(){return this._attenuationRange}getDemUpscale(){return this.proxySourceCache.getSource().tileSize/128}getScaledDemTileSize(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}_onStyleDataEvent(e){"source"===e.dataType&&e.coord?this._clearRenderCacheForTile(e.sourceCacheId,e.coord):"style"===e.dataType&&(this.invalidateRenderCache=!0,this._evaluationZoom=void 0,this._previousUpdateTimestamp=void 0,this._previousCameraAltitude=void 0)}_disable(){if(this.enabled&&(this.enabled=!1,this._emptyDEMTextureDirty=!0,this._sharedDepthStencil=void 0,this._evaluationZoom=void 0,this._previousUpdateTimestamp=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(const e in this._style._mergedSourceCaches)this._style._mergedSourceCaches[e].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this.pool.forEach(e=>e.fb.destroy()),this.pool=[],this.framebufferCopyTexture&&this.framebufferCopyTexture.destroy()}_source(){return this.enabled?this.sourceCache:null}isUsingMockSource(){return this.sourceCache===this._mockSourceCache}exaggeration(){return this.enabled?this._exaggeration:0}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 i=this.proxySourceCache,r=this.painter.transform;this._initializing&&(this._initializing=0===r._centerAltitude&&-1===this.getAtPointOrZero(e.ag.fromLngLat(r.center),-1),this._emptyDEMTextureDirty=!this._initializing);const n=this.proxyCoords=i.getIds().map(e=>{const t=i.getTileByID(e).tileID;return t.projMatrix=r.calculateProjMatrix(t.toUnwrapped()),t});!function(t,i){const r=i.transform.pointCoordinate(i.transform.getCameraPoint()),n=new e.au(r.x,r.y);t.sort((t,i)=>{if(i.overscaledZ-t.overscaledZ)return i.overscaledZ-t.overscaledZ;const r=new e.au(t.canonical.x+(1<<t.canonical.z)*t.wrap,t.canonical.y),o=new e.au(i.canonical.x+(1<<i.canonical.z)*i.wrap,i.canonical.y),s=n.mult(1<<t.canonical.z);return s.x-=.5,s.y-=.5,s.distSqr(r)-s.distSqr(o)})}(n,this.painter);const o=this.proxyToSource||{};this.proxyToSource={},n.forEach(e=>{this.proxyToSource[e.key]={}}),this.terrainTileForTile={};const s=this._style._mergedSourceCaches;for(const e in s){const i=s[e];if(!i.used)continue;if(i!==this.sourceCache&&this.resetTileLookupCache(i.id),this._setupProxiedCoordsForOrtho(i,t[e],o),i.usedForTerrain)continue;const r=t[e];(i.getSource().reparseOverscaled||i._isRasterElevatedOverTerrain)&&this._assignTerrainTiles(r)}this.proxiedCoords[i.id]=n.map(e=>new hl(e,e.key,this.orthoMatrix)),this._assignTerrainTiles(n),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(o),this.renderingToTexture=!1;const a={};this._visibleDemTiles=[];for(const e of this.proxyCoords){const t=this.terrainTileForTile[e.key];if(!t)continue;const i=t.tileID.key;i in a||(this._visibleDemTiles.push(t),a[i]=i)}}_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 i in this.terrainTileForTile){const r=this.terrainTileForTile[i],n=r.dem;!n||r.demTexture&&!r.needsDEMTextureUpload||(e.activeTexture.set(t.TEXTURE1),ga(this.painter,r,n))}}_prepareDemTileUniforms(e,t,i,r){if(!t||null==t.demTexture)return!1;const n=e.tileID.canonical,o=Math.pow(2,t.tileID.canonical.z-n.z),s=r||"";return i[`u_dem_tl${s}`]=[n.x*o%1,n.y*o%1],i[`u_dem_scale${s}`]=o,!0}
vendor: 6,060 bytes, line 1
1get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}_getLoadedAreaMinimum(){if(!this.enabled)return 0;let e=0;const t=this._visibleDemTiles.reduce((t,i)=>{if(!i.dem)return t;const r=i.dem.tree.minimums[0];return r>0&&e++,t+r},0);return e?t/e:0}_updateEmptyDEMTexture(){const t=this.painter.context,i=t.gl;t.activeTexture.set(i.TEXTURE2);const r=this._getLoadedAreaMinimum(),n=new e.L({width:1,height:1},new Float32Array([r]));this._emptyDEMTextureDirty=!1;let o=this._emptyDEMTexture;return o?o.update(n,{premultiply:!1}):o=this._emptyDEMTexture=new e.a_(t,n,i.R32F,{premultiply:!1}),o}setupElevationDraw(t,i,r){const n=this.painter.context,o=n.gl,s={u_dem:2,u_dem_prev:4,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_depth_range_unpack:[0,1],u_occluder_half_size:16,u_occlusion_depth_offset:-1e-4,u_exaggeration:0};s.u_exaggeration=this.exaggeration();let a=null,l=null,c=1;if(r&&r.morphing&&this._useVertexMorphing){const e=r.morphing.srcDemTile,i=r.morphing.dstDemTile;c=r.morphing.phase,e&&i&&(this._prepareDemTileUniforms(t,e,s,"_prev")&&(l=e),this._prepareDemTileUniforms(t,i,s)&&(a=i))}const h=e=>e&&e.demTexture&&this.painter.linearFloatFilteringSupported()?o.LINEAR:o.NEAREST;let u=null;var d;if(this.enabled?l&&a?(u=a.demTexture,n.activeTexture.set(o.TEXTURE4),l.demTexture.bind(h(l),o.CLAMP_TO_EDGE),s.u_dem_lerp=c):(a=this.terrainTileForTile[t.tileID.key],u=this._prepareDemTileUniforms(t,a,s)?a.demTexture:this.emptyDEMTexture):u=this.emptyDEMTexture,n.activeTexture.set(o.TEXTURE2),u&&(s.u_dem_size=1===(d=u).size[0]?1:d.size[0]-2,u.bind(h(a),o.CLAMP_TO_EDGE)),this.painter.setupDepthForOcclusion(r&&r.useDepthForOcclusion,i,s),r&&r.useMeterToDem&&a){const t=(1<<a.tileID.canonical.z)*e.em(1,this.painter.transform.center.lat)*this.sourceCache.getSource().tileSize;s.u_meter_to_dem=t}if(r&&r.labelPlaneMatrixInv&&(s.u_label_plane_matrix_inv=r.labelPlaneMatrixInv),i.setTerrainUniformValues(n,s),"globe"===this.painter.transform.projection.name){const e=this.globeUniformValues(this.painter.transform,t.tileID.canonical,r&&r.useDenormalizedUpVectorScale);i.setGlobeUniformValues(n,e)}}globeUniformValues(t,i,r){const n=t.projection;return{u_tile_tl_up:n.upVector(i,0,0),u_tile_tr_up:n.upVector(i,e.r,0),u_tile_br_up:n.upVector(i,e.r,e.r),u_tile_bl_up:n.upVector(i,0,e.r),u_tile_up_scale:r?e.dg(1):n.upVectorScale(i,t.center.lat,t.worldSize).metersToTile}}renderToBackBuffer(t){const i=this.painter,r=this.painter.context;0!==t.length&&(r.bindFramebuffer.set(null),r.viewport.set([0,0,i.width,i.height]),i.gpuTimingDeferredRenderStart(),this.renderingToTexture=!1,function(t,i,r,n,o){if("globe"===t.transform.projection.name)!function(t,i,r,n,o){const s=t.context,a=s.gl;let l,c;const h=t.transform,u=e.dn(t,s,h),d=(e,i)=>{if(c===i)return;const r=[];1===i&&r.push("TERRAIN_VERTEX_MORPHING"),r.push("PROJECTION_GLOBE_VIEW"),u&&r.push("CUSTOM_ANTIALIASING");const n=t.isTileAffectedByFog(e);l=t.getOrCreateProgram("globeRaster",{defines:r,overrideFog:n}),c=i},f=t.colorModeForRenderPass(),p=new _i(a.LEQUAL,_i.ReadWrite,t.depthRangeFor3D);nl.update(o);const A=e.by(h),g=[e.ek(h.center.lng),e.el(h.center.lat)],m=t.globeSharedBuffers,_=[h.width*e.co.devicePixelRatio,h.height*e.co.devicePixelRatio],y=Float32Array.from(h.globeMatrix),x={useDenormalizedUpVectorScale:!0};{const h=t.transform,u=ol(h.zoom,i.exaggeration(),i.sourceCache._source.tileSize);c=-1;const v=a.TRIANGLES;for(const c of n){const n=r.getTile(c),w=Gi.disabled,E=i.prevTerrainTileForTile[c.key],b=i.terrainTileForTile[c.key];rl(E,b)&&nl.newMorphing(c.key,E,b,o,250),al(t,n.emissiveTexture),s.activeTexture.set(a.TEXTURE0),n.texture&&n.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE);const I=nl.getMorphValuesForProxy(c.key),C=I?1:0;I&&Object.assign(x,{morphing:{srcDemTile:I.from,dstDemTile:I.to,phase:e.cb(I.phase)}});const B=e.fF(c.canonical),D=e.cU(B.getCenter().lat),T=e.cP(c.canonical,B,D,h.worldSize/h._pixelsPerMercatorPixel),M=e.dh(e.dk(c.canonical)),Q="mrt-fallback"===t.emissiveMode?1:0,S=il(h.expandedFarZProjMatrix,y,A,M,e.dm(h.zoom),g,h.frustumCorners.TL,h.frustumCorners.TR,h.frustumCorners.BR,h.frustumCorners.BL,h.globeCenterInViewSpace,h.globeRadius,_,u,h._farZ,Q,T);if(d(c,C),l&&(i.setupElevationDraw(n,l,x),t.uploadCommonUniforms(s,l,c.toUnwrapped()),m)){const[e,i,r]=m.getGridBuffers(D,0!==u);l.draw(t,v,p,w,f,mi.backCCW,S,"globe_raster",e,i,r)}}}if(m&&(t.renderDefaultNorthPole||t.renderDefaultSouthPole)){const o=["GLOBE_POLES","PROJECTION_GLOBE_VIEW"];u&&o.push("CUSTOM_ANTIALIASING"),l=t.getOrCreateProgram("globeRaster",{defines:o});for(const c of n){const{x:n,y:o,z:u}=c.canonical,d=0===o,A=o===(1<<u)-1,[y,v,w,E]=m.getPoleBuffers(u,!1);if(E&&(d||A)){const o=r.getTile(c);al(t,o.emissiveTexture),s.activeTexture.set(a.TEXTURE0),o.texture&&o.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE);let m=e.dj(u,n,h);const b=e.dh(e.dk(c.canonical)),I="mrt-fallback"===t.emissiveMode?1:0,C=(e,i)=>e.draw(t,a.TRIANGLES,p,Gi.disabled,f,mi.disabled,il(h.expandedFarZProjMatrix,m,m,b,0,g,h.frustumCorners.TL,h.frustumCorners.TR,h.frustumCorners.BR,h.frustumCorners.BL,h.globeCenterInViewSpace,h.globeRadius,_,0,h._farZ,I),"globe_pole_raster",i,w,E);i.setupElevationDraw(o,l,x),t.uploadCommonUniforms(s,l,c.toUnwrapped()),d&&t.renderDefaultNorthPole&&C(l,y),A&&t.renderDefaultSouthPole&&(m=e.fc(e.bT(),m,[1,-1,1]),C(l,v))}}}}(t,i,r,n,o);else{const s=t.context,a=s.gl;let l,c;const h=t.shadowRenderer,u=Hi(t,t.longestCutoffRange),d=e=>{if(c===e)return;const i=[];1===e&&i.push("TERRAIN_VERTEX_MORPHING"),u.shouldRenderCutoff&&i.push("RENDER_CUTOFF"),h&&(i.push("RENDER_SHADOWS"),h.useNormalOffset&&i.push("NORMAL_OFFSET")),l=t.getOrCreateProgram("terrainRaster",{defines:i}),c=e},f=t.colorModeForRenderPass(),p=new _i(a.LEQUAL,_i.ReadWrite,t.depthRangeFor3D);nl.update(o);const A=t.transform,g=ol(A.zoom,i.exaggeration(),i.sourceCache._source.tileSize);let m=[0,0,0];if(h){const e=t.style.directionalLight,i=t.style.ambientLight;
vendor: 14,258 bytes, line 1
1e&&i&&(m=ur(t.style,e,i))}{c=-1;const _=a.TRIANGLES,[y,x]=[i.gridIndexBuffer,i.gridSegments];for(const c of n){const n=r.getTile(c),v=Gi.disabled,w=i.prevTerrainTileForTile[c.key],E=i.terrainTileForTile[c.key];rl(w,E)&&nl.newMorphing(c.key,w,E,o,250),al(t,n.emissiveTexture),s.activeTexture.set(a.TEXTURE0),n.texture&&n.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE);const b=nl.getMorphValuesForProxy(c.key),I=b?1:0;let C;b&&(C={morphing:{srcDemTile:b.from,dstDemTile:b.to,phase:e.cb(b.phase)}});const B="mrt-fallback"===t.emissiveMode?1:0,D=tl(c.projMatrix,sl(c.canonical,A.renderWorldCopies)?g/10:g,m,B);if(d(I),!l)continue;i.setupElevationDraw(n,l,C);const T=c.toUnwrapped();h&&h.setupShadows(T,l),t.uploadCommonUniforms(s,l,T,null,u),l.draw(t,_,p,v,f,mi.backCCW,D,"terrain_raster",i.gridBuffer,y,x)}}}}(i,this,this.proxySourceCache,t,this._updateTimestamp),this.renderingToTexture=!0,i.gpuTimingDeferredRenderEnd(),t.splice(0,t.length))}renderBatch(t){if(0===this._drapedRenderBatches.length)return t+1;this.renderingToTexture=!0;const i=this.painter,r=this.painter.context,n=this.proxySourceCache,o=this.proxiedCoords[n.id],s=this._drapedRenderBatches.shift(),a=i.style.order,l=[];this._updateFBOs("mrt-fallback"===i.emissiveMode);let c=0;for(const h of o){const o=n.getTileByID(h.proxyTileKey),u=n.proxyCachedFBO[h.key]?n.proxyCachedFBO[h.key][t]:void 0,d=void 0!==u?n.renderCache[u]:this.pool[c++],f=void 0!==u;if(o.texture=d.tex,o.emissiveTexture=d.emissiveTex,f&&!d.dirty){l.push(o.tileID);continue}r.bindFramebuffer.set(d.fb.framebuffer);const p=r.gl;let A;p.drawBuffers("mrt-fallback"===i.emissiveMode?[p.COLOR_ATTACHMENT0,p.COLOR_ATTACHMENT1]:[p.COLOR_ATTACHMENT0]),this.renderedToTile=!1,d.dirty&&(r.clear({color:e.i.transparent,stencil:0}),d.dirty=!1);for(let e=s.start;e<=s.end;++e){const t=i.style._mergedLayers[a[e]];if(t.isHidden(i.transform.zoom))continue;const n=i.style.getLayerSourceCache(t),o=n?this.proxyToSource[h.key][n.id]:[h];if(!o)continue;const s=o;r.viewport.set([0,0,d.fb.width,d.fb.height]),A!==(n?n.id:null)&&(this._setupStencil(d,o,t,n),A=n?n.id:null),i.renderLayer(i,n,t,s)}if(p.drawBuffers([p.COLOR_ATTACHMENT0]),0===this._drapedRenderBatches.length)for(const e of this._pendingGroundEffectLayers){const t=i.style._mergedLayers[a[e]];if(t.isHidden(i.transform.zoom))continue;const n=i.style.getLayerSourceCache(t),o=n?this.proxyToSource[h.key][n.id]:[h];if(!o)continue;const s=o;r.viewport.set([0,0,d.fb.width,d.fb.height]),A!==(n?n.id:null)&&(this._setupStencil(d,o,t,n),A=n?n.id:null),i.renderLayer(i,n,t,s)}this.renderedToTile?(d.dirty=!0,l.push(o.tileID)):f||--c,5===c&&(c=0,this.renderToBackBuffer(l))}return this.renderToBackBuffer(l),this.renderingToTexture=!1,r.bindFramebuffer.set(null),r.viewport.set([0,0,i.width,i.height]),s.end+1}postRender(){}isLayerOrderingCorrect(e){const t=e.order.length;let i=-1,r=t;for(let n=0;n<t;++n)this._style.isLayerDraped(e._mergedLayers[e.order[n]])?i=Math.max(i,n):r=Math.min(r,n);return r>i}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,i){if(!this._visibleDemTiles)return null;const r=this._visibleDemTiles.filter(e=>e.dem).map(r=>{const n=r.tileID,o=1<<n.overscaledZ,{x:s,y:a}=n.canonical,l=s/o,c=(s+1)/o,h=a/o,u=(a+1)/o;return{minx:l,miny:h,maxx:c,maxy:u,t:r.dem.tree.raycastRoot(l,h,c,u,e,t,i),tile:r}});r.sort((e,t)=>(null!==e.t?e.t:Number.MAX_VALUE)-(null!==t.t?t.t:Number.MAX_VALUE));for(const n of r){if(null==n.t)return null;const r=n.tile.dem.tree.raycast(n.minx,n.miny,n.maxx,n.maxy,e,t,i);if(null!=r)return r}return null}_createFBO(){const t=this.painter.context,i=t.gl,r=this.drapeBufferSize;t.activeTexture.set(i.TEXTURE0);const n=new e.a_(t,{width:r[0],height:r[1],data:null},i.RGBA8);n.bind(i.LINEAR,i.CLAMP_TO_EDGE);const o=t.createFramebuffer(r[0],r[1],1,null);let s;return o.colorAttachment0.set(n.texture),this._emissiveTexture&&(s=new e.a_(t,{width:r[0],height:r[1],data:null},i.R8),s.bind(i.LINEAR,i.CLAMP_TO_EDGE),o.createColorAttachment(t,1),o.colorAttachment1.set(s.texture)),o.depthAttachment=new el(t,o.framebuffer),void 0===this._sharedDepthStencil?(this._sharedDepthStencil=t.createRenderbuffer(t.gl.DEPTH_STENCIL,r[0],r[1]),this._stencilRef=0,o.depthAttachment.set(this._sharedDepthStencil),t.clear({stencil:0})):o.depthAttachment.set(this._sharedDepthStencil),t.extTextureFilterAnisotropic&&i.texParameterf(i.TEXTURE_2D,t.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,t.extTextureFilterAnisotropicMax),{fb:o,tex:n,emissiveTex:s,dirty:!1}}_updateFBOs(e){if(this._emissiveTexture!==e){for(const t of this.pool)this._updateFBO(t,e);for(const t of this.proxySourceCache.renderCache)this._updateFBO(t,e);this._emissiveTexture=e}}_updateFBO(t,i){const r=t.fb,n=this.painter.context,o=n.gl,s=this.drapeBufferSize;if(i){const i=new e.a_(n,{width:s[0],height:s[1],data:null},o.R8);i.bind(o.LINEAR,o.CLAMP_TO_EDGE),t.emissiveTex=i,r.createColorAttachment(n,1),r.colorAttachment1.set(i.texture)}else t.emissiveTex=void 0,r.removeColorAttachment(n,1);t.dirty=!0}_initFBOPool(){for(;this.pool.length<Math.min(5,this.proxyCoords.length);)this.pool.push(this._createFBO())}_shouldDisableRenderCache(){if(this._style.hasLightTransitions())return!0;for(const e in this._style._mergedSourceCaches)if(this._style._mergedSourceCaches[e].hasTransition())return!0;return this._style.order.some(e=>{const t=this._style._mergedLayers[e],i=t.isHidden(this.painter.transform.zoom);return"hillshade"===t.type||"custom"===t.type?!i&&t.shouldRedrape():!i&&t.hasTransition()})}_clearLineLayersFromRenderCache(){let t=!1;for(const e of this._style.getSources())if(e instanceof Yo){t=!0;break}if(!t)return;const i={};for(let r=0;r<this._style.order.length;++r){const t=this._style._mergedLayers[this._style.order[r]],n=this._style.getLayerSourceCache(t);if(!n||i[n.id])continue;if(t.isHidden(this.painter.transform.zoom)||"line"!==t.type)continue;const o=t.widthExpression(),s=t.emissiveStrengthExpression();if(o instanceof e.bh||s instanceof e.bh){i[n.id]=!0;for(const e of this.proxyCoords){const t=this.proxyToSource[e.key][n.id];if(t)for(const e of t)this._clearRenderCacheForTile(n.id,e)}}}}_clearRasterLayersFromRenderCache(){let e=!1;for(const i in this._style._mergedSourceCaches)if(this._style._mergedSourceCaches[i]._source instanceof Fr){e=!0;break}if(!e)return;const t={};for(let i=0;i<this._style.order.length;++i){const e=this._style._mergedLayers[this._style.order[i]],r=this._style.getLayerSourceCache(e);if(!r||t[r.id])continue;if(e.isHidden(this.painter.transform.zoom)||"raster"!==e.type)continue;const n=e.paint.get("raster-fade-duration");for(const t of this.proxyCoords){const e=this.proxyToSource[t.key][r.id];if(e)for(const t of e){const e=Vr(r.getTile(t),r.findLoadedParent(t,0),r,this.painter.transform,n);(1!==e.opacity||0!==e.mix)&&this._clearRenderCacheForTile(r.id,t)}}}}_setupDrapedRenderBatches(){this._style.updateDrapeFirstLayers();const t=this._style.order,i=t.length;if(0===i)return;const r=[];this._pendingGroundEffectLayers=[];let n,o=0,s=this._style._mergedLayers[t[o]];for(;!this._style.isLayerDraped(s)&&s.isHidden(this.painter.transform.zoom)&&++o<i;)s=this._style._mergedLayers[t[o]];for(;o<i;++o){const e=this._style._mergedLayers[t[o]];e.isHidden(this.painter.transform.zoom)||(this._style.isLayerDraped(e)?void 0===n&&(n=o):("fill-extrusion"===e.type&&this._pendingGroundEffectLayers.push(o),void 0!==n&&(r.push({start:n,end:o-1}),n=void 0)))}if(void 0!==n&&r.push({start:n,end:o-1}),0!==r.length){const t=r.at(-1);this._pendingGroundEffectLayers.every(e=>e>t.end)||e.f_("fill-extrusion with flood lighting and/or ground ambient occlusion should be moved to be on top of all draped layers.")}this._drapedRenderBatches=r}_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 i=0;i<e.length;++i){const r=Object.values(e[i]);t.renderCachePool.push(...r)}}return}this._clearRasterLayersFromRenderCache();const i=this.proxyCoords,r=this._tilesDirty;for(let o=i.length-1;o>=0;o--){const n=i[o];if(t.getTileByID(n.key),void 0!==t.proxyCachedFBO[n.key]){const i=e[n.key],o=this.proxyToSource[n.key];let s=0;for(const e in o){const t=o[e],n=i[e];if(!n||n.length!==t.length||t.some((t,i)=>t!==n[i]||r[e]&&Object.hasOwn(r[e],t.key))){s=-1;break}++s}for(const e in t.proxyCachedFBO[n.key])t.renderCache[t.proxyCachedFBO[n.key][e]].dirty=s<0||s!==Object.values(i).length}}const n=[...this._drapedRenderBatches];n.sort((e,t)=>t.end-t.start-(e.end-e.start));for(const o of n)for(const e of i){if(t.proxyCachedFBO[e.key])continue;let i=t.renderCachePool.pop();void 0===i&&t.renderCache.length<50&&(i=t.renderCache.length,t.renderCache.push(this._createFBO())),void 0!==i&&(t.proxyCachedFBO[e.key]={},t.proxyCachedFBO[e.key][o.start]=i,t.renderCache[i].dirty=!0)}this._tilesDirty={}}_setupStencil(e,t,i,r){if(!r||!this._sourceTilesOverlap[r.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const n=this.painter.context,o=n.gl;if(t.length<=1)return void(this._overlapStencilType=!1);let s;if(i.isTileClipped())s=t.length,this._overlapStencilMode.test={func:o.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(t[0].overscaledZ>t.at(-1).overscaledZ))return void(this._overlapStencilType=!1);s=1,this._overlapStencilMode.test={func:o.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+s>255&&(n.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=s,this._overlapStencilMode.ref=this._stencilRef,i.isTileClipped()&&this._renderTileClippingMasks(t,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return"Clip"===this._overlapStencilType||"Mask"===this._overlapStencilType}stencilModeForRTTOverlap(e){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[e.key]),this._overlapStencilMode):Gi.disabled}_renderTileClippingMasks(e,t){const i=this.painter,r=this.painter.context,n=r.gl;i._tileClippingMaskIDs={},r.setColorMode(Ji.disabled),r.setDepthMode(_i.disabled);const o=i.getOrCreateProgram("clippingMask");for(const s of e){const e=i._tileClippingMaskIDs[s.key]=--t;o.draw(i,n.TRIANGLES,_i.disabled,new Gi({func:n.ALWAYS,mask:0},e,255,n.KEEP,n.KEEP,n.REPLACE),Ji.disabled,mi.disabled,Yn(s.projMatrix),"$clipping",i.tileExtentBuffer,i.quadTriangleIndexBuffer,i.tileExtentSegments)}}pointCoordinate(t){const i=this.painter.transform;if(t.x<0||t.x>i.width||t.y<0||t.y>i.height)return null;const r=[t.x,t.y,1,1];e.fM(r,r,i.pixelMatrixInverse),e.fb(r,r,1/r[3]),r[0]/=i.worldSize,r[1]/=i.worldSize;const n=i._camera.position,o=e.em(1,i.center.lat),s=[n[0],n[1],n[2]/o,0],a=e.fz([],r.slice(0,3),s);e.ex(a,a);const l=this.raycast(s,a,this._exaggeration);return null!==l&&l?(e.fe(s,s,a,l),s[3]=s[2],s[2]*=o,s):null}_setupProxiedCoordsForOrtho(t,i,r){if(t.getSource()instanceof e.a3)return this._setupProxiedCoordsForImageSource(t,i,r);this._findCoveringTileCache[t.id]=this._findCoveringTileCache[t.id]||{};const n=this.proxiedCoords[t.id]=[],o=this.proxyCoords;for(let e=0;e<o.length;e++){const i=o[e],s=this._findTileCoveringTileID(i,t);if(s){const e=this._createProxiedId(i,s,r[i.key]&&r[i.key][t.id]);n.push(e),this.proxyToSource[i.key][t.id]=[e]}}let s=!1;const a=new Set;for(let e=0;e<i.length;e++){const o=t.getTile(i[e]);if(!o||!o.hasData())continue;const l=this._findTileCoveringTileID(o.tileID,this.proxySourceCache);if(l&&l.tileID.canonical.z!==o.tileID.canonical.z){const e=this.proxyToSource[l.tileID.key][t.id],i=this._createProxiedId(l.tileID,o,r[l.tileID.key]&&r[l.tileID.key][t.id]);e?e.splice(e.length-1,0,i):this.proxyToSource[l.tileID.key][t.id]=[i];const c=this.proxyToSource[l.tileID.key][t.id];a.has(c)||a.add(c),n.push(i),s=!0}}if(this._sourceTilesOverlap[t.id]=s,s)for(const e of a)e.sort((e,t)=>t.overscaledZ-e.overscaledZ)}_setupProxiedCoordsForImageSource(t,i,r){if(!t.getSource().loaded())return;const n=this.proxiedCoords[t.id]=[],o=this.proxyCoords,s=t.getSource(),a=s.tileID;if(!a)return;const l=new e.au(a.x,a.y)._div(1<<a.z),c=s.coordinates.map(e.ag.fromLngLat).reduce((e,t)=>(e.min.x=Math.min(e.min.x,t.x-l.x),e.min.y=Math.min(e.min.y,t.y-l.y),e.max.x=Math.max(e.max.x,t.x-l.x),e.max.y=Math.max(e.max.y,t.y-l.y),e),{min:new e.au(Number.MAX_VALUE,Number.MAX_VALUE),max:new e.au(-Number.MAX_VALUE,-Number.MAX_VALUE)}),h=(t,i)=>{const r=t.wrap+t.canonical.x/(1<<t.canonical.z),n=t.canonical.y/(1<<t.canonical.z),o=e.r/(1<<t.canonical.z),s=i.wrap+i.canonical.x/(1<<i.canonical.z),a=i.canonical.y/(1<<i.canonical.z);return r+o<s+c.min.x||r>s+c.max.x||n+o<a+c.min.y||n>a+c.max.y};for(let e=0;e<o.length;e++){const s=o[e];for(let e=0;e<i.length;e++){const o=t.getTile(i[e]);if(!o||!o.hasData())continue;if(h(s,o.tileID))continue;const a=this._createProxiedId(s,o,r[s.key]&&r[s.key][t.id]),l=this.proxyToSource[s.key][t.id];l?l.push(a):this.proxyToSource[s.key][t.id]=[a],n.push(a)}}}_createProxiedId(t,i,r){let n=this.orthoMatrix;if(r){const e=r.find(e=>e.key===i.tileID.key);if(e)return e}if(i.tileID.key!==t.key){const r=t.canonical.z-i.tileID.canonical.z;let o,s,a;n=e.bT();const l=i.tileID.wrap-t.wrap<<t.overscaledZ;r>0?(o=e.r>>r,s=o*((i.tileID.canonical.x<<r)-t.canonical.x+l),a=o*((i.tileID.canonical.y<<r)-t.canonical.y)):(o=e.r<<-r,s=e.r*(i.tileID.canonical.x-(t.canonical.x+l<<-r)),a=e.r*(i.tileID.canonical.y-(t.canonical.y<<-r))),e.eB(n,0,o,0,o,0,1),e.fQ(n,n,[s,a,0])}return new hl(i.tileID,t.key,n)}_findTileCoveringTileID(t,i){let r=i.getTile(t);if(r&&r.hasData())return r;const n=this._findCoveringTileCache[i.id],o=n[t.key];if(r=o?i.getTileByID(o):null,r&&r.hasData()||null===o)return r;let s=r?r.tileID:t,a=s.overscaledZ;const l=i.getSource().minzoom,c=[];if(!o){const n=i.getSource().maxzoom;if(t.canonical.z>=n){const r=t.canonical.z-n;i.getSource().reparseOverscaled?(a=Math.max(t.canonical.z+2,i.transform.tileZoom),s=new e.ap(a,t.wrap,n,t.canonical.x>>r,t.canonical.y>>r)):0!==r&&(a=n,s=new e.ap(a,t.wrap,n,t.canonical.x>>r,t.canonical.y>>r))}s.key!==t.key&&(c.push(s.key),r=i.getTile(s))}const h=e=>
vendor: 3,921 bytes, line 1
1{c.forEach(t=>{n[t]=e}),c.length=0};for(a-=1;a>=l&&(!r||!r.hasData());a--){r&&h(r.tileID.key);const e=s.calculateScaledKey(a);if(r=i.getTileByID(e),r&&r.hasData())break;const t=n[e];if(null===t)break;void 0===t?c.push(e):r=i.getTileByID(t)}return h(r?r.tileID.key:null),r&&r.hasData()?r:null}findDEMTileFor(e){return this.enabled?this._findTileCoveringTileID(e,this.sourceCache):null}prepareDrawTile(){this.renderedToTile=!0}_clearRenderCacheForTile(e,t){let i=this._tilesDirty[e];i||(i=this._tilesDirty[e]={}),i[t.key]=!0}}function dl(t,i,r){const n=function(t,i,r){const n=e.c7(i,t),o=e.c7(r,[.2126,.7152,.0722]),s=1-.3*Math.min(o,1),a=e.dY(s,1,Math.min(n+1,1));return e.dY(.92,1,Math.asin(e.bG(i[2],-1,1))/Math.PI+.5)*a}(t,[0,0,1],i),o=[0,0,0];e.fa(o,r.slice(0,3),n);const s=[0,0,0];e.fa(s,i.slice(0,3),t[2]);const a=[0,0,0];return e.bj(a,o,s),e.e4(a)}const fl=["fill","fillOutline","fillPattern","line","linePattern","background","backgroundPattern","hillshade","raster"],pl=["stars","rainParticle","snowParticle","fillExtrusion","fillExtrusionGroundEffect","building","buildingBloom","elevatedStructures","model","symbol"];class Al{static cacheKey(e,t,i,r){const n=[t];r&&n.push(r.cacheKey);for(const o of i)("string"==typeof o&&o.includes(" ")||e.usedDefines.has(o))&&n.push(o);return n.join("/")}constructor(e,t,i,r,n,o,s=!1){const a=e.gl;this.program=a.createProgram(),this._context=e,this._fixedUniformsFn=n,this._pending=!0,this._precompiled=s,this.attributes={},this.configuration=r,this.name=t,this.fixedDefines=[...o],s?e._compileStats.precompiled++:e._compileStats.onDemand++;const l=`#version 300 es\n${(r?r.defines():[]).concat(o.map(e=>`#define ${e}`)).join("\n")}`,c=[l,An];for(const A of i.fragmentIncludes)c.push(cn[A]);c.push(i.fragmentSource);const h=c.join("\n"),u=[l,gn];for(const A of i.vertexIncludes)u.push(cn[A]);this.forceManualRenderingForInstanceIDShaders=e.forceManualRenderingForInstanceIDShaders&&i.vertexSource.includes("gl_InstanceID"),this.forceManualRenderingForInstanceIDShaders&&u.push("uniform int u_instanceID;"),u.push(i.vertexSource);let d=u.join("\n");this.forceManualRenderingForInstanceIDShaders&&(d=d.replaceAll("gl_InstanceID","u_instanceID"));const f=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())return this.failedToCreate=!0,void(this._pending=!1);a.shaderSource(f,h),a.compileShader(f),a.attachShader(this.program,f);const p=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())return this.failedToCreate=!0,void(this._pending=!1);a.shaderSource(p,d),a.compileShader(p),a.attachShader(this.program,p),a.linkProgram(this.program),this._fragmentShader=f,this._vertexShader=p,e.extParallelShaderCompile?e._pendingPrograms.add(this):this._finalize()}_finalize(){if(!this._pending)return;this._pending=!1;const t=this._context,i=t.gl;t._pendingPrograms.delete(this);const r=e.co.now(),n=i.getProgramParameter(this.program,i.LINK_STATUS),o=e.co.now()-r,s=t._compileStats;if(s.totalStallMs+=o,o>s.maxStallMs&&(s.maxStallMs=o),o>1){s.framesMissed+=Math.floor(60*o/1e3);const e=this.fixedDefines.join(",");s.stalls.push({name:`${this.name}${e?"/":""}${e}`,ms:o,timestamp:r})}if(this._fragmentShader&&(n||e.f_(`Fragment shader '${this.name}': ${i.getShaderInfoLog(this._fragmentShader)}`),i.deleteShader(this._fragmentShader),this._fragmentShader=null),this._vertexShader&&(n||e.f_(`Vertex shader '${this.name}': ${i.getShaderInfoLog(this._vertexShader)}`),i.deleteShader(this._vertexShader),this._vertexShader=null),!n)return e.f_(`Failed to link program '${this.name}': ${i.getProgramInfoLog(this.program)}`),void(this.failedToCreate=!0);this.fixedUniforms=this._fixedUniformsFn(t),this.fixedUniformsEntries=Object.entries(this.fixedUniforms),this.binderUniforms=this.configuration?this.configuration.getUniforms(t):[],this.forceManualRenderingForInstanceIDShaders&&(this.instancingUniforms=(t=>({u_instanceID:new e.b5(t)}))(t));const a=this.fixedDefines,l=this.name;
1(a.includes("TERRAIN")||a.includes("ELEVATED")||l.includes("symbol")||l.includes("circle"))&&(this.terrainUniforms=(t=>({u_dem:new e.b5(t),u_dem_prev:new e.b5(t),u_dem_tl:new e.b6(t),u_dem_scale:new e.b4(t),u_dem_tl_prev:new e.b6(t),u_dem_scale_prev:new e.b4(t),u_dem_size:new e.b4(t),u_dem_lerp:new e.b4(t),u_exaggeration:new e.b4(t),u_depth:new e.b5(t),u_depth_size_inv:new e.b6(t),u_depth_range_unpack:new e.b6(t),u_occluder_half_size:new e.b4(t),u_occlusion_depth_offset:new e.b4(t),u_meter_to_dem:new e.b4(t),u_label_plane_matrix_inv:new e.bb(t)}))(t)),a.includes("GLOBE")&&(this.globeUniforms=(t=>({u_tile_tl_up:new e.b7(t),u_tile_tr_up:new e.b7(t),u_tile_br_up:new e.b7(t),u_tile_bl_up:new e.b7(t),u_tile_up_scale:new e.b4(t)}))(t)),a.includes("FOG")&&(this.fogUniforms=(t=>({u_fog_matrix:new e.bb(t),u_fog_range:new e.b6(t),u_fog_color:new e.b8(t),u_fog_horizon_blend:new e.b4(t),u_fog_vertical_limit:new e.b6(t),u_fog_temporal_offset:new e.b4(t),u_frustum_tl:new e.b7(t),u_frustum_tr:new e.b7(t),u_frustum_br:new e.b7(t),u_frustum_bl:new e.b7(t),u_globe_pos:new e.b7(t),u_globe_radius:new e.b4(t),u_globe_transition:new e.b4(t),u_is_globe:new e.b5(t),u_viewport:new e.b6(t)}))(t)),a.includes("RENDER_CUTOFF")&&(this.cutoffUniforms=(t=>({u_cutoff_params:new e.b8(t)}))(t)),a.includes("LIGHTING_3D_MODE")&&(this.lightsUniforms=(t=>({u_lighting_ambient_color:new e.b7(t),u_lighting_directional_dir:new e.b7(t),u_lighting_directional_color:new e.b7(t),u_ground_radiance:new e.b7(t)}))(t)),a.includes("RENDER_SHADOWS")&&(this.shadowUniforms=(t=>({u_light_matrix_0:new e.bb(t),u_light_matrix_1:new e.bb(t),u_fade_range:new e.b6(t),u_shadow_normal_offset:new e.b7(t),u_shadow_intensity:new e.b4(t),u_shadow_texel_size:new e.b4(t),u_shadow_map_resolution:new e.b4(t),u_shadow_direction:new e.b7(t),u_shadow_bias:new e.b7(t),u_shadowmap_0:new e.b5(t),u_shadowmap_1:new e.b5(t)}))(t))}maybeFinalize(){if(!this._pending)return;const e=this._context.extParallelShaderCompile;e&&!this._context.gl.getProgramParameter(this.program,e.COMPLETION_STATUS_KHR)||this._finalize()}_ensureReady(){this._pending&&(this._finalize(),this._context.sweepPendingPrograms())}getAttributeLocation(e,t){this._ensureReady();let i=this.attributes[t];return void 0===i&&(i=this.attributes[t]=e.getAttribLocation(this.program,t)),i}setTerrainUniformValues(e,t){if(this._ensureReady(),!this.terrainUniforms)return;const i=this.terrainUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)i[e]&&i[e].set(this.program,e,t[e])}}setGlobeUniformValues(e,t){if(this._ensureReady(),!this.globeUniforms)return;const i=this.globeUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)i[e]&&i[e].set(this.program,e,t[e])}}setFogUniformValues(e,t){if(this._ensureReady(),!this.fogUniforms)return;const i=this.fogUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)i[e].set(this.program,e,t[e])}}setCutoffUniformValues(e,t){if(this._ensureReady(),!this.cutoffUniforms)return;const i=this.cutoffUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)i[e].set(this.program,e,t[e])}}setLightsUniformValues(e,t){if(this._ensureReady(),!this.lightsUniforms)return;const i=this.lightsUniforms;if(!this.failedToCreate){e.program.set(this.program);for(const e in t)i[e].set(this.program,e,t[e])}}setShadowUniformValues(e,t){if(this._ensureReady(),this.failedToCreate||!this.shadowUniforms)return;const i=this.shadowUniforms;e.program.set(this.program);for(const r in t)i[r].set(this.program,r,t[r])}_drawDebugWireframe(t,i,r,n,o,s,a,l,c,h){const u=t.options.wireframe;if(!1===u.terrain&&!1===u.layers2D&&!1===u.layers3D)return;const d=t.context;if(!(()=>!(!u.terrain||"terrainRaster"!==this.name&&"globeRaster"!==this.name)||!(!u.layers2D||t._terrain&&t._terrain.renderingToTexture||!fl.includes(this.name))||!(!u.layers3D||!pl.includes(this.name)))())return;const f=d.gl,p=t.wireframeDebugCache.getLinesFromTrianglesBuffer(t.frameCounter,o,d);if(!p)return;const A=[...this.fixedDefines,"DEBUG_WIREFRAME"],g=t.getOrCreateProgram(this.name,{config:this.configuration,defines:A});g._ensureReady(),d.program.set(g.program);const m=(e,t,i)=>{if(t[e]&&i[e])for(const r in t[e])i[e][r]&&i[e][r].set(i.program,r,t[e][r].current)};c&&c.setUniforms(g.program,d,g.binderUniforms,a,{zoom:l}),m("fixedUniforms",this,g),m("terrainUniforms",this,g),m("globeUniforms",this,g),m("fogUniforms",this,g),m("lightsUniforms",this,g),m("shadowUniforms",this,g),p.bind(),d.setColorMode(new Ji([f.ONE,f.ONE_MINUS_SRC_ALPHA,f.ZERO,f.ONE],e.i.transparent,[!0,!0,!0,!1])),d.setDepthMode(new _i(i.func===f.LESS?f.LEQUAL:i.func,_i.ReadOnly,i.range)),d.setStencilMode(Gi.disabled);const _=3*s.primitiveLength*2,y=3*s.primitiveOffset*2*2;if(this.forceManualRenderingForInstanceIDShaders){const e=h||1;for(let t=0;t<e;++t)g.instancingUniforms.u_instanceID.set(this.program,"u_instanceID",t),f.drawElements(f.LINES,_,f.UNSIGNED_SHORT,y)}else h&&h>1?f.drawElementsInstanced(f.LINES,_,f.UNSIGNED_SHORT,y,h):f.drawElements(f.LINES,_,f.UNSIGNED_SHORT,y);o.bind(),d.program.set(this.program),d.setDepthMode(i),d.setStencilMode(r),d.setColorMode(n)}checkUniforms(e,t,i){if(this.fixedDefines.includes(t))for(const r of Object.keys(i))if(!i[r].initialized)throw new Error(`Program '${this.name}', from draw '${e}': uniform ${r} not set but required by ${t} being defined`)}draw(e,t,i,r,n,o,s,a,l,c,h,u,d,f,p,A){const g=e.context,m=g.gl;if(this._ensureReady(),this.failedToCreate)return;g.program.set(this.program),g.setDepthMode(i),g.setStencilMode(r),g.setColorMode(n),g.setCullFace(o);for(const[E,b]of this.fixedUniformsEntries)b.set(this.program,E,s[E]);f&&f.setUniforms(this.program,g,this.binderUniforms,u,{zoom:d});
vendor: 5,377 bytes, line 1
1const _={[m.POINTS]:1,[m.LINES]:2,[m.TRIANGLES]:3,[m.LINE_STRIP]:1}[t];this.checkUniforms(a,"RENDER_SHADOWS",this.shadowUniforms);const y=p||[],x=f?f.getPaintVertexBuffers():[],v=t===m.TRIANGLES&&c,w=A&&A>0?1:void 0;for(const E of h.get()){const o=E.vaos||(E.vaos={});if((o[a]||(o[a]=new fa)).bind(g,this,l,x,c,E.vertexOffset,y,w),this.forceManualRenderingForInstanceIDShaders){const e=A||1;for(let i=0;i<e;++i)this.instancingUniforms.u_instanceID.set(this.program,"u_instanceID",i),c?m.drawElements(t,E.primitiveLength*_,m.UNSIGNED_SHORT,E.primitiveOffset*_*2):m.drawArrays(t,E.vertexOffset,E.vertexLength)}else A&&A>1?m.drawElementsInstanced(t,E.primitiveLength*_,m.UNSIGNED_SHORT,E.primitiveOffset*_*2,A):c?m.drawElements(t,E.primitiveLength*_,m.UNSIGNED_SHORT,E.primitiveOffset*_*2):m.drawArrays(t,E.vertexOffset,E.vertexLength);v&&this._drawDebugWireframe(e,i,r,n,c,E,u,d,f,A)}}}const gl=(e,t,i)=>({u_matrix:e,u_emissive_strength:t,u_ground_shadow_factor:i,u_opacity_multiplier:1}),ml=(e,t,i,r,n,o=0)=>Object.assign(gl(e,t,n),Zi(i,r,o)),_l=(e,t,i,r)=>({u_matrix:e,u_world:i,u_emissive_strength:t,u_ground_shadow_factor:r,u_opacity_multiplier:1}),yl=(e,t,i,r,n,o,s=0)=>Object.assign(ml(e,t,i,r,o,s),{u_world:n}),xl=(e,t,i)=>({u_image:e,u_texel_size:t,u_first_pass:i?1:0}),vl=(t,i,r,n,o,s,a,l)=>{const c=e.r/s.tileSize;return{u_matrix:t,u_inv_rot_matrix:i,u_camera_to_center_distance:r.getCameraToCenterDistance(l),u_extrude_scale:[r.pixelsToGLUnits[0]/c,r.pixelsToGLUnits[1]/c],u_zoom_transition:n,u_tile_id:a,u_merc_center:o}},wl=(e,t,i,r)=>({u_matrix:e,u_inv_matrix:t,u_camera_to_center_distance:i.getCameraToCenterDistance(r),u_viewport_size:[i.width,i.height]}),El=e.bT(),bl=(t,i,r,n,o,s,a)=>{const l=t.transform,c="globe"===l.projection.name,h=c?e.di(l.zoom,i.canonical)*l._pixelsPerMercatorPixel:e.eG(r,1,s),u={u_matrix:i.projMatrix,u_extrude_scale:h,u_intensity:a,u_inv_rot_matrix:El,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(c){u.u_inv_rot_matrix=n,u.u_merc_center=o,u.u_tile_id=[i.canonical.x,i.canonical.y,1<<i.canonical.z],u.u_zoom_transition=e.dm(l.zoom);const t=o[0]*e.r,r=o[1]*e.r;u.u_up_dir=l.projection.upVector(new e.f(0,0,0),t,r)}return u};function Il(t){const i=t.terrain?t.terrain.exaggeration():1;return(t.transform.pitch<15?e.dY(.07,.7,e.bG((14-t.transform.zoom)/5,0,1)):.07)*i}const Cl=(t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m,_,y,x,v,w)=>({u_matrix:i,u_normalize_matrix:r,u_globe_matrix:n,u_merc_matrix:o,u_grid_matrix:s,u_tl_parent:a,u_scale_parent:u,u_fade_t:d.mix,u_opacity:d.opacity*f.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:f.paint.get("raster-brightness-min"),u_brightness_high:f.paint.get("raster-brightness-max"),u_saturation_factor:e.f9(f.paint.get("raster-saturation")),u_contrast_factor:e.bP(f.paint.get("raster-contrast")),u_spin_weights:Bl(f.paint.get("raster-hue-rotate")),u_perspective_transform:p,u_raster_elevation:A,u_zoom_transition:l,u_merc_center:c,u_cutoff_params:h,u_colorization_mix:Sr(e.e,m,y),u_colorization_offset:Pr(e.e,_,y),u_color_ramp:g,u_texture_offset:[v/(x+2*v),x/(x+2*v)],u_texture_res:[x+2*v,x+2*v],u_emissive_strength:w,u_zbias_factor:Il(t)});function Bl(e){e*=Math.PI/180;const t=Math.sin(e),i=Math.cos(e);return[(2*i+1)/3,(-Math.sqrt(3)*t-i+1)/3,(Math.sqrt(3)*t-i+1)/3]}const Dl=e.bT(),Tl=(t,i,r,n,o,s,a,l,c,h,u,d,f,p,A,g,m,_,y,x,v,w,E,b)=>{const I=o.transform,C={u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:i?i.uSizeT:0,u_size:i?i.uSize:0,u_camera_to_center_distance:I.getCameraToCenterDistance(y),u_rotate_symbol:+r,u_aspect_ratio:I.width/I.height,u_fade_change:o.options.fadeDuration?o.symbolFadeChange:1,u_matrix:s,u_label_plane_matrix:a,u_coord_matrix:l,u_is_text:+h,u_elevation_from_sea:c?1:0,u_pitch_with_map:+n,u_texsize:u,u_texsize_icon:d,u_texture:0,u_texture_icon:1,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:Dl,u_merc_center:[0,0],u_camera_forward:[0,0,0],u_ecef_origin:[0,0,0],u_tile_matrix:Dl,u_up_vector:[0,-1,0],u_color_adj_mat:w,u_icon_transition:E||0,u_gamma_scale:n?o.transform.getCameraToCenterDistance(y)*Math.cos(o.terrain?0:o.transform._pitch):1,u_device_pixel_ratio:e.co.devicePixelRatio,u_is_halo:1,u_scale_factor:b||1,u_ground_shadow_factor:x,u_inv_matrix:e.dr(e.bT(),a),u_normal_scale:v,u_lutTexture:10,u_spp_fill_np_color:[0,0,0,1],u_spp_halo_np_color:[0,0,0,0],u_spp_opacity:1,u_spp_halo_width:0,u_spp_halo_blur:0,u_spp_emissive_strength:0,u_spp_occlusion_opacity:1,u_spp_z_offset:0,u_spp_translate_rotation:[1,0],u_spp_fill_color_zoom_factor:0,u_spp_halo_color_zoom_factor:0,u_spp_opacity_zoom_factor:0,u_spp_halo_width_zoom_factor:0,u_spp_halo_blur_zoom_factor:0,u_spp_emissive_strength_zoom_factor:0,u_spp_occlusion_opacity_zoom_factor:0,u_spp_z_offset_zoom_factor:0,u_spp_translate_zoom_factor:0,u_opacity_multiplier:1};return"globe"===y.name&&(C.u_tile_id=[p.canonical.x,p.canonical.y,1<<p.canonical.z],C.u_zoom_transition=A,C.u_inv_rot_matrix=m,C.u_merc_center=g,C.u_camera_forward=I._camera.forward(),C.u_ecef_origin=e.df(I.globeMatrix,p.toUnwrapped()),C.u_tile_matrix=I.globeMatrix,C.u_up_vector=_),C},Ml=(e,t,i,r)=>({u_matrix:e,u_emissive_strength:t,u_opacity:i,u_color:r}),Ql=(t,i,r,n,o,s,a,l,c)=>Object.assign(function(t,i,r,n,o,s){const{width:a,height:l}=n.imageManager.getPixelSize(i),c=Math.pow(2,s.tileID.overscaledZ
1),h=s.tileSize*Math.pow(2,n.transform.tileZoom)/c,u=h*(s.tileID.canonical.x+s.tileID.wrap*c),d=h*s.tileID.canonical.y;return{u_image:0,u_pattern_tl:r.tl,u_pattern_br:r.br,u_texsize:[a,l],u_pattern_size:r.displaySize,u_pattern_units_to_pixels:o?[n.transform.width,-1*n.transform.height]:[1/e.eG(s,1,n.transform.tileZoom),1/e.eG(s,1,n.transform.tileZoom)],u_pixel_coord_upper:[u>>16,d>>16],u_pixel_coord_lower:[65535&u,65535&d]}}(0,s,a,n,l,c),{u_matrix:t,u_emissive_strength:i,u_opacity:r}),Sl={fillExtrusion:t=>({u_matrix:new e.bb(t),u_lightpos:new e.b7(t),u_lightintensity:new e.b4(t),u_lightcolor:new e.b7(t),u_vertical_gradient:new e.b4(t),u_opacity:new e.b4(t),u_edge_radius:new e.b4(t),u_width_scale:new e.b4(t),u_ao:new e.b6(t),u_height_type:new e.b5(t),u_base_type:new e.b5(t),u_tile_id:new e.b7(t),u_zoom_transition:new e.b4(t),u_inv_rot_matrix:new e.bb(t),u_merc_center:new e.b6(t),u_up_dir:new e.b7(t),u_height_lift:new e.b4(t),u_flood_light_color:new e.b7(t),u_vertical_scale:new e.b4(t),u_flood_light_intensity:new e.b4(t),u_ground_shadow_factor:new e.b7(t),u_front_cutoff_params:new e.b7(t)}),fillExtrusionDepth:t=>({u_matrix:new e.bb(t),u_edge_radius:new e.b4(t),u_width_scale:new e.b4(t),u_vertical_scale:new e.b4(t),u_height_type:new e.b5(t),u_base_type:new e.b5(t)}),fillExtrusionPattern:t=>({u_matrix:new e.bb(t),u_lightpos:new e.b7(t),u_lightintensity:new e.b4(t),u_lightcolor:new e.b7(t),u_vertical_gradient:new e.b4(t),u_height_factor:new e.b4(t),u_edge_radius:new e.b4(t),u_width_scale:new e.b4(t),u_ao:new e.b6(t),u_height_type:new e.b5(t),u_base_type:new e.b5(t),u_tile_id:new e.b7(t),u_zoom_transition:new e.b4(t),u_inv_rot_matrix:new e.bb(t),u_merc_center:new e.b6(t),u_up_dir:new e.b7(t),u_height_lift:new e.b4(t),u_image:new e.b5(t),u_texsize:new e.b6(t),u_pixel_coord_upper:new e.b6(t),u_pixel_coord_lower:new e.b6(t),u_tile_units_to_pixels:new e.b4(t),u_opacity:new e.b4(t),u_pattern_transition:new e.b4(t)}),fillExtrusionGroundEffect:t=>({u_matrix:new e.bb(t),u_opacity:new e.b4(t),u_ao_pass:new e.b4(t),u_meter_to_tile:new e.b4(t),u_ao:new e.b6(t),u_flood_light_intensity:new e.b4(t),u_flood_light_color:new e.b7(t),u_attenuation:new e.b4(t),u_edge_radius:new e.b4(t),u_fb:new e.b5(t),u_fb_size:new e.b4(t),u_dynamic_offset:new e.b4(t)}),fill:t=>({u_matrix:new e.bb(t),u_emissive_strength:new e.b4(t),u_ground_shadow_factor:new e.b7(t),u_opacity_multiplier:new e.b4(t)}),fillPattern:t=>({u_matrix:new e.bb(t),u_emissive_strength:new e.b4(t),u_image:new e.b5(t),u_texsize:new e.b6(t),u_pixel_coord_upper:new e.b6(t),u_pixel_coord_lower:new e.b6(t),u_tile_units_to_pixels:new e.b4(t),u_ground_shadow_factor:new e.b7(t),u_pattern_transition:new e.b4(t),u_opacity_multiplier:new e.b4(t)}),fillOutline:t=>({u_matrix:new e.bb(t),u_emissive_strength:new e.b4(t),u_world:new e.b6(t),u_ground_shadow_factor:new e.b7(t),u_opacity_multiplier:new e.b4(t)}),fillOutlinePattern:t=>({u_matrix:new e.bb(t),u_emissive_strength:new e.b4(t),u_world:new e.b6(t),u_image:new e.b5(t),u_texsize:new e.b6(t),u_pixel_coord_upper:new e.b6(t),u_pixel_coord_lower:new e.b6(t),u_tile_units_to_pixels:new e.b4(t),u_ground_shadow_factor:new e.b7(t),u_pattern_transition:new e.b4(t),u_opacity_multiplier:new e.b4(t)}),lineBlendComposite:t=>({u_image:new e.b5(t),u_opacity:new e.b4(t),u_blend_mode:new e.b5(t),u_max_density:new e.b4(t)}),lineBlendReduce:t=>({u_image:new e.b5(t),u_texel_size:new e.b6(t),u_first_pass:new e.b5(t)}),circle:e.bE,collisionBox:t=>({u_matrix:new e.bb(t),u_inv_rot_matrix:new e.bb(t),u_camera_to_center_distance:new e.b4(t),u_extrude_scale:new e.b6(t),u_zoom_transition:new e.b4(t),u_merc_center:new e.b6(t),u_tile_id:new e.b7(t)}),collisionCircle:t=>({u_matrix:new e.bb(t),u_inv_matrix:new e.bb(t),u_camera_to_center_distance:new e.b4(t),u_viewport_size:new e.b6(t)}),debug:t=>({u_color:new e.b9(t),u_matrix:new e.bb(t),u_overlay:new e.b5(t),u_overlay_scale:new e.b4(t)}),clippingMask:t=>({u_matrix:new e.bb(t)}),heatmap:t=>({u_extrude_scale:new e.b4(t),u_intensity:new e.b4(t),u_matrix:new e.bb(t),u_inv_rot_matrix:new e.bb(t),u_merc_center:new e.b6(t),u_tile_id:new e.b7(t),u_zoom_transition:new e.b4(t),u_up_dir:new e.b7(t)}),heatmapTexture:t=>({u_image:new e.b5(t),u_color_ramp:new e.b5(t),u_opacity:new e.b4(t)}),hillshade:t=>({u_matrix:new e.bb(t),u_image:new e.b5(t),u_latrange:new e.b6(t),u_light:new e.b6(t),u_shadow:new e.b9(t),u_highlight:new e.b9(t),u_emissive_strength:new e.b4(t),u_accent:new e.b9(t)}),hillshadePrepare:t=>({u_matrix:new e.bb(t),u_image:new e.b5(t),u_dimension:new e.b6(t),u_zoom:new e.b4(t)}),line:e.e3,linePattern:e.e1,raster:t=>({u_matrix:new e.bb(t),u_normalize_matrix:new e.bb(t),u_globe_matrix:new e.bb(t),u_merc_matrix:new e.bb(t),u_grid_matrix:new e.ba(t),u_tl_parent:new e.b6(t),u_scale_parent:new e.b4(t),u_fade_t:new e.b4(t),u_opacity:new e.b4(t),u_image0:new e.b5(t),u_image1:new e.b5(t),u_brightness_low:new e.b4(t),u_brightness_high:new e.b4(t),u_saturation_factor:new e.b4(t),u_contrast_factor:new e.b4(t),u_spin_weights:new e.b7(t),u_perspective_transform:new e.b6(t),u_raster_elevation:new e.b4(t),u_zoom_transition:new e.b4(t),u_merc_center:new e.b6(t),u_cutoff_params:new e.b8(t),u_colorization_mix:new e.b8(t),u_colorization_offset:new e.b4(t),u_color_ramp:new e.b5(t),u_texture_offset:new e.b6(t),u_texture_res:new e.b6(t),u_emissive_strength:new e.b4(t),u_zbias_factor:new e.b4(t)}),symbol:t=>({u_is_size_zoom_constant:new e.b5(t),u_is_size_feature_constant:new e.b5(t),u_size_t:new e.b4(t),u_size:new e.b4(t),u_camera_to_center_distance:new e.b4(t),u_rotate_symbol:new e.b5(t),u_aspect_ratio:new e.b4(t),u_fade_change:new e.b4(t),u_matrix:new e.bb(t),u_label_plane_matrix:new e.bb(t),u_coord_matrix:new e.bb(t),u_is_text:new e.b5(t),u_elevation_from_sea:new e.b5(t),u_pitch_with_map:new e.b5(t),u_texsize:new e.b6(t),u_texsize_icon:new e.b6(t),u_texture:new e.b5(t),u_texture_icon:new e.b5(t),u_gamma_scale:new e.b4(t),u_device_pixel_ratio:new e.b4(t),u_tile_id:new e.b7(t),u_zoom_transition:new e.b4(t),u_inv_rot_matrix:new e.bb(t),u_merc_center:new e.b6(t),u_c
vendor: 4,656 bytes, line 1
1amera_forward:new e.b7(t),u_tile_matrix:new e.bb(t),u_up_vector:new e.b7(t),u_ecef_origin:new e.b7(t),u_is_halo:new e.b5(t),u_icon_transition:new e.b4(t),u_color_adj_mat:new e.bb(t),u_scale_factor:new e.b4(t),u_ground_shadow_factor:new e.b7(t),u_inv_matrix:new e.bb(t),u_normal_scale:new e.b4(t),u_lutTexture:new e.b5(t),u_spp_fill_np_color:new e.b8(t),u_spp_halo_np_color:new e.b8(t),u_spp_opacity:new e.b4(t),u_spp_halo_width:new e.b4(t),u_spp_halo_blur:new e.b4(t),u_spp_emissive_strength:new e.b4(t),u_spp_occlusion_opacity:new e.b4(t),u_spp_z_offset:new e.b4(t),u_spp_translate_rotation:new e.b6(t),u_spp_fill_color_zoom_factor:new e.b4(t),u_spp_halo_color_zoom_factor:new e.b4(t),u_spp_opacity_zoom_factor:new e.b4(t),u_spp_halo_width_zoom_factor:new e.b4(t),u_spp_halo_blur_zoom_factor:new e.b4(t),u_spp_emissive_strength_zoom_factor:new e.b4(t),u_spp_occlusion_opacity_zoom_factor:new e.b4(t),u_spp_z_offset_zoom_factor:new e.b4(t),u_spp_translate_zoom_factor:new e.b4(t),u_opacity_multiplier:new e.b4(t)}),background:t=>({u_matrix:new e.bb(t),u_emissive_strength:new e.b4(t),u_opacity:new e.b4(t),u_color:new e.b9(t)}),backgroundPattern:t=>({u_matrix:new e.bb(t),u_emissive_strength:new e.b4(t),u_opacity:new e.b4(t),u_image:new e.b5(t),u_pattern_tl:new e.b6(t),u_pattern_br:new e.b6(t),u_texsize:new e.b6(t),u_pattern_size:new e.b6(t),u_pixel_coord_upper:new e.b6(t),u_pixel_coord_lower:new e.b6(t),u_pattern_units_to_pixels:new e.b6(t)}),terrainRaster:t=>({u_matrix:new e.bb(t),u_image0:new e.b5(t),u_image1:new e.b5(t),u_skirt_height:new e.b4(t),u_ground_shadow_factor:new e.b7(t),u_emissive_texture_available:new e.b4(t)}),skybox:t=>({u_matrix:new e.bb(t),u_sun_direction:new e.b7(t),u_cubemap:new e.b5(t),u_opacity:new e.b4(t),u_temporal_offset:new e.b4(t)}),skyboxGradient:t=>({u_matrix:new e.bb(t),u_color_ramp:new e.b5(t),u_center_direction:new e.b7(t),u_radius:new e.b4(t),u_opacity:new e.b4(t),u_temporal_offset:new e.b4(t)}),skyboxCapture:t=>({u_matrix_3f:new e.ba(t),u_sun_direction:new e.b7(t),u_sun_intensity:new e.b4(t),u_color_tint_r:new e.b8(t),u_color_tint_m:new e.b8(t),u_luminance:new e.b4(t)}),globeRaster:t=>({u_proj_matrix:new e.bb(t),u_globe_matrix:new e.bb(t),u_normalize_matrix:new e.bb(t),u_merc_matrix:new e.bb(t),u_zoom_transition:new e.b4(t),u_merc_center:new e.b6(t),u_image0:new e.b5(t),u_image1:new e.b5(t),u_grid_matrix:new e.ba(t),u_skirt_height:new e.b4(t),u_far_z_cutoff:new e.b4(t),u_frustum_tl:new e.b7(t),u_frustum_tr:new e.b7(t),u_frustum_br:new e.b7(t),u_frustum_bl:new e.b7(t),u_globe_pos:new e.b7(t),u_globe_radius:new e.b4(t),u_viewport:new e.b6(t),u_emissive_texture_available:new e.b4(t)}),globeAtmosphere:t=>({u_frustum_tl:new e.b7(t),u_frustum_tr:new e.b7(t),u_frustum_br:new e.b7(t),u_frustum_bl:new e.b7(t),u_horizon:new e.b4(t),u_transition:new e.b4(t),u_fadeout_range:new e.b4(t),u_atmosphere_fog_color:new e.b8(t),u_high_color:new e.b8(t),u_space_color:new e.b8(t),u_temporal_offset:new e.b4(t),u_horizon_angle:new e.b4(t)}),groundShadow:t=>({u_matrix:new e.bb(t),u_ground_shadow_factor:new e.b7(t)}),stars:t=>({u_matrix:new e.bb(t),u_up:new e.b7(t),u_right:new e.b7(t),u_intensity_multiplier:new e.b4(t)}),occlusion:t=>({u_matrix:new e.bb(t),u_anchorPos:new e.b7(t),u_screenSizePx:new e.b6(t),u_occluderSizePx:new e.b6(t),u_color:new e.b8(t)})};class Pl{constructor(e,t,i,r){this.id=Pl.uniqueIdxCounter,Pl.uniqueIdxCounter++,this.context=e;const n=e.gl;this.buffer=n.createBuffer(),this.dynamicDraw=Boolean(i),this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||r||t.destroy()}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){this.id=Pl.uniqueIdxCounter,Pl.uniqueIdxCounter++;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)}}Pl.uniqueIdxCounter=0;const Rl={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class zl{constructor(e,t,i,r,n,o){this.length=t.length,this.attributes=i,this.itemSize=t.bytesPerElement,this.dynamicDraw=r,this.instanceCount=o,this.context=e;const s=e.gl;this.buffer=s.createBuffer(),e.bindVertexBuffer.set(this.buffer),s.bufferData(s.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?s.DYNAMIC_DRAW:s.STATIC_DRAW),this.dynamicDraw||n||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)}
vendor: 9,655 bytes, line 1
1enableAttributes(e,t){for(const i of this.attributes){const r=t.getAttributeLocation(e,i.name);-1!==r&&e.enableVertexAttribArray(r)}}setVertexAttribPointers(e,t,i){for(const r of this.attributes){const n=t.getAttributeLocation(e,r.name);if(-1!==n){const t=r.offset+this.itemSize*(i||0);"Float32"===r.type?e.vertexAttribPointer(n,r.components,e.FLOAT,!1,this.itemSize,t):e.vertexAttribIPointer(n,r.components,e[Rl[r.type]],this.itemSize,t)}}}setVertexAttribDivisor(e,t,i){for(let r=0;r<this.attributes.length;r++){const n=t.getAttributeLocation(e,this.attributes[r].name);-1!==n&&this.instanceCount&&this.instanceCount>0&&e.vertexAttribDivisor(n,i)}}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}class Ll{constructor(e,t,i,r,n){this.context=e,this.width=t,this.height=i;const o=this.framebuffer=e.gl.createFramebuffer();r>0&&(this.colorAttachment0=new Ka(e,o,0)),r>1&&(this.colorAttachment1=new Ka(e,o,1)),n&&(this.depthAttachmentType=n,this.depthAttachment="renderbuffer"===n?new Xa(e,o):new $a(e,o))}static createWithTexture(t,i,r,n,o){const s=t.gl;if(t.activeTexture.set(s.TEXTURE1),t.viewport.set([0,0,r,n]),i&&i.width===r&&i.height===n)return s.bindTexture(s.TEXTURE_2D,i.colorAttachment0.get()),t.bindFramebuffer.set(i.framebuffer),i;i&&i.destroy();const a=t.extRenderToTextureHalfFloat||t.extColorBufferFloat?t.gl.RGBA16F:t.gl.RGBA8,l=new e.a_(t,{width:r,height:n,data:null},a);l.bind(s.LINEAR,s.CLAMP_TO_EDGE);const c=t.createFramebuffer(r,n,1,null);if(c.format=a,c.colorAttachment0.set(l.texture),o){const e=t.createRenderbuffer(s.DEPTH24_STENCIL8,r,n);t.bindFramebuffer.set(c.framebuffer),s.framebufferRenderbuffer(s.FRAMEBUFFER,s.DEPTH_STENCIL_ATTACHMENT,s.RENDERBUFFER,e),c._stencilRbo=e}return c}createColorAttachment(e,t){0===t?this.colorAttachment0=new Ka(e,this.framebuffer,0):1===t&&(this.colorAttachment1=new Ka(e,this.framebuffer,1))}removeColorAttachment(e,t){const i=this.context.gl;let r;0===t?(r=this.colorAttachment0.get(),this.colorAttachment0=void 0):1===t&&(r=this.colorAttachment1.get(),this.colorAttachment1=void 0),r&&i.deleteTexture(r)}destroy(){const e=this.context.gl;if(this.colorAttachment0){const t=this.colorAttachment0.get();t&&e.deleteTexture(t)}if(this.colorAttachment1){const t=this.colorAttachment1.get();t&&e.deleteTexture(t)}if(this.depthAttachment&&this.depthAttachmentType)if("renderbuffer"===this.depthAttachmentType){const t=this.depthAttachment.get();t&&e.deleteRenderbuffer(t)}else{const t=this.depthAttachment.get();t&&e.deleteTexture(t)}this._stencilRbo&&(e.deleteRenderbuffer(this._stencilRbo),this._stencilRbo=null),e.deleteFramebuffer(this.framebuffer)}}class Fl{constructor(e,t){this.gl=e,this._pendingPrograms=new Set,this._compileStats={precompiled:0,onDemand:0,totalStallMs:0,maxStallMs:0,framesMissed:0,stalls:[]},this.clearColor=new ya(this),this.clearDepth=new xa(this),this.clearStencil=new va(this),this.colorMask=new wa(this),this.depthMask=new Ea(this),this.stencilMask=new ba(this),this.stencilFunc=new Ia(this),this.stencilOp=new Ca(this),this.stencilTest=new Ba(this),this.depthRange=new Da(this),this.depthTest=new Ta(this),this.depthFunc=new Ma(this),this.blend=new Qa(this),this.blendFunc=new Sa(this),this.blendColor=new Pa(this),this.blendEquation=new Ra(this),this.cullFace=new za(this),this.cullFaceSide=new La(this),this.frontFace=new Fa(this),this.program=new Oa(this),this.activeTexture=new ka(this),this.viewport=new Na(this),this.bindFramebuffer=new Ua(this),this.bindRenderbuffer=new Va(this),this.bindTexture=new Ha(this),this.bindVertexBuffer=new ja(this),this.bindElementBuffer=new Ga(this),this.bindVertexArrayOES=new Ya(this),this.pixelStoreUnpack=new Wa(this),this.pixelStoreUnpackPremultiplyAlpha=new Ja(this),this.pixelStoreUnpackFlipY=new Za(this),this.options=t?Object.assign({},t):{},this.options.extTextureFilterAnisotropicForceOff||(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.extDebugRendererInfo=e.getExtension("WEBGL_debug_renderer_info"),this.extDebugRendererInfo&&(this.renderer=e.getParameter(this.extDebugRendererInfo.UNMASKED_RENDERER_WEBGL),this.vendor=e.getParameter(this.extDebugRendererInfo.UNMASKED_VENDOR_WEBGL)),this.forceManualRenderingForInstanceIDShaders=t&&!!t.forceManualRenderingForInstanceIDShaders||this.renderer&&this.renderer.includes("PowerVR"),this.disableSymbolUBO=t&&!!t.forceDisableSymbolUBO,this.options.extTextureFloatLinearForceOff||(this.extTextureFloatLinear=e.getExtension("OES_texture_float_linear")),this.extRenderToTextureHalfFloat=e.getExtension("EXT_color_buffer_half_float"),this.extColorBufferFloat=e.getExtension("EXT_color_buffer_float"),this.extTimerQuery=e.getExtension("EXT_disjoint_timer_query_webgl2"),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),this.maxUniformBlockSize=Math.min(e.getParameter(e.MAX_UNIFORM_BLOCK_SIZE),32768),this.maxUniformBufferBindings=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS),this.extBlendFuncExtended=e.getExtension("WEBGL_blend_func_extended"),this.extParallelShaderCompile=e.getExtension("KHR_parallel_shader_compile")}sweepPendingPrograms(){if(0!==this._pendingPrograms.size)for(const e of this._pendingPrograms)e.maybeFinalize()}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.bindVertexArrayOES.dirty=!0,this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0}createIndexBuffer(e,t,i){return new Pl(this,e,t,i)}createVertexBuffer(e,t,i,r,n){return new zl(this,e,t,i,r,n)}createRenderbuffer(e,t,i){const r=this.gl,n=r.createRenderbuffer();return this.bindRenderbuffer.set(n),r.renderbufferStorage(r.RENDERBUFFER,e,t,i),this.bindRenderbuffer.set(null),n}createFramebuffer(e,t,i,r){return new Ll(this,e,t,i,r)}clear({color:e,depth:t,stencil:i,colorMask:r}){const n=this.gl;let o=0;e&&(o|=n.COLOR_BUFFER_BIT,this.clearColor.set(e.toNonPremultipliedRenderColor(null)),this.colorMask.set(r||[!0,!0,!0,!0])),void 0!==t&&(o|=n.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(t),this.depthMask.set(!0)),void 0!==i&&(o|=n.STENCIL_BUFFER_BIT,this.clearStencil.set(i),this.stencilMask.set(255)),n.clear(o)}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){e.c2(t.blendFunction,Ji.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(t.blendFunction),this.blendColor.set(t.blendColor),t.blendEquation?this.blendEquation.set(t.blendEquation):this.blendEquation.setDefault()),this.colorMask.set(t.mask)}unbindVAO(){this.bindVertexArrayOES.set(null)}}let Ol;function kl(t,i,r,n,o,s,a){const l=t.context,c=l.gl,h=t.transform,u=[e.ek(h.center.lng),e.el(h.center.lat)],d=r.layout.get("symbol-placement"),f=r.layout.get("text-variable-anchor"),p="map"===r.layout.get("icon-rotation-alignment"),A="map"===r.layout.get("text-rotation-alignment"),g="point"!==d,m=[];let _=0,y=0;for(let I=0;I<n.length;I++){const l=n[I],d=i.getTile(l),x=d.getBucket(r);if(!x)continue;const v=x.getProjection().createInversionMatrix(h,l.canonical),w=[],E=As(l,x,h),b=!a&&p&&g,C=a&&A&&g,B=f&&x.hasTextData(),D=x.hasIconTextFit()&&B&&x.hasIconData(),T=b||C||a&&B||D,M="globe"===x.projection.name,Q=M?e.dm(h.zoom):0;M&&(w.push("PROJECTION_GLOBE_VIEW"),T&&w.push("PROJECTED_POS_ON_VIEWPORT"));const S=t.getOrCreateProgram("collisionBox",{defines:w});let P=E;0===o[0]&&0===o[1]||(P=t.translatePosMatrix(E,d,o,s));const R=a?x.textCollisionBox:x.iconCollisionBox,z=x.collisionCircleArray;
1if(z.length>0){const t=e.bT(),i=P;e.eo(t,x.placementInvProjMatrix,h.glCoordMatrix),e.eo(t,t,x.placementViewportMatrix),m.push({circleArray:z,circleOffset:y,transform:i,invTransform:t,projection:x.getProjection()}),_+=z.length/4,y=_}if(!R)continue;t.terrain&&t.terrain.setupElevationDraw(d,S);const L=M?[l.canonical.x,l.canonical.y,1<<l.canonical.z]:[0,0,0];S.draw(t,c.LINES,_i.disabled,Gi.disabled,t.colorModeForRenderPass(),mi.disabled,vl(P,v,h,Q,u,d,L,x.getProjection()),r.id,R.layoutVertexBuffer,R.indexBuffer,R.segments,null,h.zoom,null,[R.collisionVertexBuffer,R.collisionVertexBufferExt])}if(!a||!m.length)return;const x=t.getOrCreateProgram("collisionCircle"),v=new e.aN;v.resize(4*_),v._trim();let w=0;for(const e of m)for(let t=0;t<e.circleArray.length/4;t++){const i=4*t,r=e.circleArray[i+0],n=e.circleArray[i+1],o=e.circleArray[i+2],s=e.circleArray[i+3];v.emplace(w++,r,n,o,s,0),v.emplace(w++,r,n,o,s,1),v.emplace(w++,r,n,o,s,2),v.emplace(w++,r,n,o,s,3)}(!Ol||Ol.length<2*_)&&(Ol=function(t){const i=2*t,r=new e.aT;r.resize(i),r._trim();for(let e=0;e<i;e++){const t=6*e;r.uint16[t+0]=4*e+0,r.uint16[t+1]=4*e+1,r.uint16[t+2]=4*e+2,r.uint16[t+3]=4*e+2,r.uint16[t+4]=4*e+3,r.uint16[t+5]=4*e+0}return r}(_));const E=l.createIndexBuffer(Ol,!0),b=l.createVertexBuffer(v,e.bM.members,!0);for(const I of m){const i=wl(I.transform,I.invTransform,h,I.projection);x.draw(t,c.TRIANGLES,_i.disabled,Gi.disabled,t.colorModeForRenderPass(),mi.disabled,i,r.id,b,E,e.aJ.simpleSegment(0,2*I.circleOffset,I.circleArray.length,I.circleArray.length/2),null,h.zoom)}b.destroy(),E.destroy()}const Nl=e.bT();function Ul(t){const i=t._camera.getWorldToCamera(t.worldSize,1),r=e.er([],i,t.globeMatrix);e.dr(r,r);const n=[0,0,0],o=[0,1,0,0];return e.fM(o,o,r),n[0]=o[0],n[1]=o[1],n[2]=o[2],e.ex(n,n),n}function Vl({width:t,height:i,anchor:r,textOffset:n,textScale:o},s){const{horizontalAlign:a,verticalAlign:l}=e.cE(r),c=-(a-.5)*t,h=-(l-.5)*i,u=e.cj(r,n);return new e.au((c/o+u[0])*s,(h/o+u[1])*s)}function Hl(t,i,r,n,o,s,a,l,c,h){const u=t.text.placedSymbolArray,d=t.text.dynamicLayoutVertexArray,f=t.icon.dynamicLayoutVertexArray,p={},A=t.getProjection(),g=gs(a,A,o),m=o.elevation,_=A.upVectorScale(a.canonical,o.center.lat,o.worldSize).metersToTile;d.clear();for(let y=0;y<u.length;y++){const f=u.get(y),{tileAnchorX:x,tileAnchorY:v,numGlyphs:w}=f,E=f.hidden||!f.crossTileID||t.allowVerticalPlacement&&!f.placedOrientation?null:n[f.crossTileID];if(E){let n=0,u=0,b=0;const I="road"===t.elevationType;if(m||I){const i=I&&t.hdExt?t.hdExt.getElevationFeatureForPlacedSymbol(t,t.text,y):null,r=e.s.getAtTileOffset(a,new e.au(x,v),m,i),[o,s,l]=A.upVector(a.canonical,x,v);n=r*o*_,u=r*s*_,b=r*l*_}let[C,B,D,T]=Ti(f.projectedAnchorX+n,f.projectedAnchorY+u,f.projectedAnchorZ+b,r?g:s);const M=Mi(o.getCameraToCenterDistance(A),T);let Q=e.ch(t.textSizeData,c,f)*M/e.ao;r&&(Q*=t.tilePixelRatio/l);const S=Vl(E,Q);r?(({x:C,y:B,z:D}=A.projectTilePoint(x+S.x,v+S.y,a.canonical)),[C,B,D]=Ti(C+n,B+u,D+b,s)):(i&&S._rotate(-o.angle),C+=S.x,B+=S.y,D=0);const P=t.allowVerticalPlacement&&f.placedOrientation===e.bg.vertical?Math.PI/2:0;for(let t=0;t<w;t++)e.bl(d,C,B,D,P);h&&f.associatedIconIndex>=0&&(p[f.associatedIconIndex]={x:C,y:B,z:D,angle:P})}else ki(w,d)}if(h){f.clear();const i=t.icon.placedSymbolArray;for(let t=0;t<i.length;t++){const r=i.get(t),{numGlyphs:n}=r,o=p[t];if(r.hidden||!o)ki(n,f);else{const{x:t,y:i,z:r,angle:s}=o;for(let o=0;o<n;o++)e.bl(f,t,i,r,s)}}t.icon.dynamicLayoutVertexBuffer.updateData(f)}t.text.dynamicLayoutVertexBuffer.updateData(d)}function jl(t,i,r,n,o,s,a={}){const l=r.paint.get("icon-translate"),c=r.paint.get("text-translate"),h=r.paint.get("icon-translate-anchor"),u=r.paint.get("text-translate-anchor"),d=r.layout.get("icon-rotation-alignment"),f=r.layout.get("text-rotation-alignment"),p=r.layout.get("icon-pitch-alignment"),A=r.layout.get("text-pitch-alignment"),g=r.layout.get("icon-keep-upright"),m=r.layout.get("text-keep-upright"),_=r.paint.get("icon-color-saturation"),y=r.paint.get("icon-color-contrast"),x=r.paint.get("icon-color-brightness-min"),v=r.paint.get("icon-color-brightness-max"),w="sea"===r.layout.get("symbol-elevation-reference"),E="none"===r.layout.get("icon-image-use-theme"),b=t.context,I=b.gl,C=t.transform,B="map"===d,D="map"===f,T="map"===p,M="map"===A,Q=void 0!==r.layout.get("symbol-sort-key").constantOr(1);let S=!1;const P=t.depthModeForSublayer(0,_i.ReadOnly),R=new _i(t.context.gl.LEQUAL,_i.ReadOnly,t.depthRangeFor3D),z=[e.ek(C.center.lng),e.el(C.center.lat)],L=r.layout.get("text-variable-anchor"),F="globe"===C.projection.name,O=[],k=[0,-1,0];for(const N of n){const n=i.getTile(N),o=n.getBucket(r);
vendor: 4,416 bytes, line 1
1if(!o)continue;if("mercator"===o.projection.name&&F)continue;if(o.fullyClipped)continue;const s="globe"===o.projection.name,d=s?e.dm(C.zoom):0,f=gs(N,o.getProjection(),C),p=C.calculatePixelsToTileUnitsMatrix(n),A=L&&o.hasTextData(),U=o.hasIconTextFit()&&A&&o.hasIconData(),V=o.getProjection().createInversionMatrix(C,N.canonical),H=(1<<n.tileID.canonical.z)*e.r/t.transform.worldSize,j=e=>{let i=[0,0,0];if(e){const e=t.style.directionalLight,r=t.style.ambientLight;e&&r&&(i=ur(t.style,e,r))}return i},G=e=>{if(t.context.disableSymbolUBO)return;e.push("USE_PAINT_PROPERTIES_UBO");const i=Math.floor(t.context.maxUniformBlockSize/4),r=Math.floor(i/4);e.push(`MAX_UBO_SIZE_VEC4 ${r}u`)},Y=e=>{C.depthOcclusionForSymbolsAndCircles&&(r.hasOcclusionOpacityProperties||t.terrain)&&(e.push("DEPTH_D24"),e.push("DEPTH_OCCLUSION"))},W=i=>{r.lut&&!E&&(r.lut.texture||(r.lut.texture=new e.a$(t.context,r.lut.image,[r.lut.image.height,r.lut.image.height,r.lut.image.height],b.gl.RGBA8)),b.activeTexture.set(b.gl.TEXTURE0+10),r.lut.texture&&r.lut.texture.bind(b.gl.LINEAR,b.gl.CLAMP_TO_EDGE),i.push("APPLY_LUT_ON_GPU"))},J=()=>{const i=B&&"point"!==r.layout.get("symbol-placement"),a=[];Y(a),W(a);const c=i||U,u="road"===o.elevationType,A=t.shadowRenderer,m=u&&T&&!!A&&A.enabled,E=j(m),D=u&&T&&!t.terrain?R:P,M=r.paint.get("icon-image-cross-fade");t.terrainRenderModeElevated()&&T&&a.push("PITCH_WITH_MAP_TERRAIN"),s&&(a.push("PROJECTION_GLOBE_VIEW"),c&&a.push("PROJECTED_POS_ON_VIEWPORT")),M>0&&o.hasAnySecondaryIcon&&a.push("ICON_TRANSITION"),!o.icon.zOffsetVertexBuffer||u&&t.terrain||a.push("Z_OFFSET"),0===_&&0===y&&0===x&&1===v||a.push("COLOR_ADJUSTMENT"),o.sdfIcons&&a.push("RENDER_SDF"),m&&a.push("RENDER_SHADOWS","NORMAL_OFFSET"),u&&T&&!t.terrain&&o.icon.orientationVertexBuffer&&a.push("ELEVATED_ROADS"),G(a);const Q=b.disableSymbolUBO?o.icon.programConfigurations.get(r.id):null,S=t.getOrCreateProgram("symbol",{config:Q,defines:a}),L=n.imageAtlasTexture?n.imageAtlasTexture.size:[0,0],O=o.iconSizeData,J=e.ci(O,C.zoom),Z=T||!C.isOrthographic,q=Ci(f,n.tileID.canonical,T,B,C,o.getProjection(),p),K=Di(f,n.tileID.canonical,T,B,C,o.getProjection(),p),X=o.icon.uboBinder&&o.icon.uboBinder.hasPerFeatureTranslate()?[0,0]:l,$=t.translatePosMatrix(K,n,X,h,!0),ee=t.translatePosMatrix(f,n,X,h),te=c?Nl:q,ie=B&&!T&&!i;let re=k;!F&&!C.mercatorFromTransition||B||(re=Ul(C));const ne=s?re:k,oe=r.getColorAdjustmentMatrix(_,y,x,v),se=Tl(O.kind,J,ie,T,t,ee,te,$,w,!1,L,[0,0],0,N,d,z,V,ne,o.getProjection(),E,H,oe,M,null),ae=n.imageAtlasTexture?n.imageAtlasTexture:null,le=1!==r.layout.get("icon-size").constantOr(0)||o.iconsNeedLinear,ce=o.sdfIcons||t.options.rotating||t.options.zooming||le||Z?I.LINEAR:I.NEAREST,he=o.sdfIcons&&0!==r.paint.get("icon-halo-width").constantOr(1),ue=t.terrain&&T&&i?e.dr(e.bT(),q):Nl;if(i&&o.icon){const i=e.s.getAtTileOffsetFunc(N,C.center.lat,C.worldSize,o.getProjection()),s=Bi(f,n.tileID.canonical,T,B,C,o.getProjection(),p),a=r.layout.get("icon-size-scale-range"),l=e.bG(t.scaleFactor,a[0],a[1]);Si(o,f,t,!1,s,K,T,g,i,N,l)}return{program:S,buffers:o.icon,uniformValues:se,atlasTexture:ae,atlasTextureIcon:null,atlasInterpolation:ce,atlasInterpolationIcon:null,isSDF:o.sdfIcons,hasHalo:he,depthMode:D,tile:n,renderWithShadows:m,labelPlaneMatrixInv:ue}},Z=()=>{const i=D&&"point"!==r.layout.get("symbol-placement"),a=[],l=i||L||U,h="road"===o.elevationType,A=t.shadowRenderer,g=h&&M&&!!A&&A.enabled,_=j(g),y=h&&M&&!t.terrain?R:P;t.terrainRenderModeElevated()&&M&&a.push("PITCH_WITH_MAP_TERRAIN"),s&&(a.push("PROJECTION_GLOBE_VIEW"),l&&a.push("PROJECTED_POS_ON_VIEWPORT")),!o.text.zOffsetVertexBuffer||h&&t.terrain||a.push("Z_OFFSET"),o.iconsInText&&a.push("RENDER_TEXT_AND_SYMBOL"),a.push("RENDER_SDF"),g&&a.push("RENDER_SHADOWS","NORMAL_OFFSET"),h&&M&&!t.terrain&&o.text.orientationVertexBuffer&&a.push("ELEVATED_ROADS"),Y(a),G(a);const x=b.disableSymbolUBO?o.text.programConfigurations.get(r.id):null,v=t.getOrCreateProgram("symbol",{config:x,defines:a});let E,B=[0,0],T=null;const Q=o.textSizeData;o.iconsInText&&(B=n.imageAtlasTexture?n.imageAtlasTexture.size:[0,0],T=n.imageAtlasTexture?n.imageAtlasTexture:null,E=M||!C.isOrthographic||t.options.rotating||t.options.zooming||"composite"===Q.kind||"camera"===Q.kind?I.LINEAR:I.NEAREST);const S=n.glyphAtlasTexture?n.glyphAtlasTexture.size:[0,0],O=r.layout.get("text-size-scale-range"),W=e.bG(t.scaleFactor,O[0],O[1]),J=e.ci(Q,C.zoom,W),Z=Ci(f,
vendor: 1,605 bytes, line 1
1n.tileID.canonical,M,D,C,o.getProjection(),p),q=Di(f,n.tileID.canonical,M,D,C,o.getProjection(),p),K=o.text.uboBinder&&o.text.uboBinder.hasPerFeatureTranslate()?[0,0]:c,X=t.translatePosMatrix(q,n,K,u,!0),$=t.translatePosMatrix(f,n,K,u),ee=l?Nl:Z,te=D&&!M&&!i;let ie=k;!F&&!C.mercatorFromTransition||D||(ie=Ul(C));const re=Tl(Q.kind,J,te,M,t,$,ee,X,w,!0,S,B,0,N,d,z,V,s?ie:k,o.getProjection(),_,H,null,null,W),ne=n.glyphAtlasTexture?n.glyphAtlasTexture:null,oe=I.LINEAR,se=0!==r.paint.get("text-halo-width").constantOr(1),ae=t.terrain&&M&&i?e.dr(e.bT(),Z):Nl;if(i&&o.text){const i=e.s.getAtTileOffsetFunc(N,C.center.lat,C.worldSize,o.getProjection()),r=Bi(f,n.tileID.canonical,M,D,C,o.getProjection(),p);Si(o,f,t,!0,r,q,M,m,i,N,W)}return{program:v,buffers:o.text,uniformValues:re,atlasTexture:ne,atlasTextureIcon:T,atlasInterpolation:oe,atlasInterpolationIcon:E,isSDF:!0,hasHalo:se,depthMode:y,tile:n,renderWithShadows:g,labelPlaneMatrixInv:ae}},q=o.icon.segments.get().length,K=o.text.segments.get().length,X=q&&!a.onlyText?J():null,$=K&&!a.onlyIcons?Z():null,ee=r.paint.get("icon-opacity").constantOr(1),te=r.paint.get("text-opacity").constantOr(1);if(Q&&o.canOverlap){S=!0;const t=ee&&!a.onlyText?o.icon.segments.get():[],i=te&&!a.onlyIcons?o.text.segments.get():[];for(const r of t)O.push({segments:new e.aJ([r]),sortKey:r.sortKey,state:X});for(const r of i)O.push({segments:new e.aJ([r]),sortKey:r.sortKey,state:$})}else a.onlyText||O.push({segments:ee?o.icon.segments:new e.aJ([]),sortKey:0,state:X}),a.onlyIcons||O.push({segments:te?o.text.segments:new e.aJ([]),sortKey:0,state:$})}S&&O.sort((e,t)=>
vendor: 4,486 bytes, line 1
1e.sortKey-t.sortKey);for(const e of O){const i=e.state;if(i)if(t.terrain?t.terrain.setupElevationDraw(i.tile,i.program,{useDepthForOcclusion:C.depthOcclusionForSymbolsAndCircles,labelPlaneMatrixInv:i.labelPlaneMatrixInv}):t.setupDepthForOcclusion(C.depthOcclusionForSymbolsAndCircles,i.program),b.activeTexture.set(I.TEXTURE0),i.atlasTexture&&i.atlasTexture.bind(i.atlasInterpolation,I.CLAMP_TO_EDGE,!0),i.atlasTextureIcon&&(b.activeTexture.set(I.TEXTURE1),i.atlasTextureIcon&&i.atlasTextureIcon.bind(i.atlasInterpolationIcon,I.CLAMP_TO_EDGE,!0)),i.renderWithShadows&&t.shadowRenderer.setupShadows(i.tile.tileID.toUnwrapped(),i.program,"vector-tile"),t.uploadCommonLightUniforms(t.context,i.program),i.hasHalo){const n=i.uniformValues;n.u_is_halo=1,Gl(i.buffers,e.segments,r,t,i.program,i.depthMode,o,s,n,2),n.u_is_halo=0}else{if(i.isSDF){const n=i.uniformValues;i.hasHalo&&(n.u_is_halo=1,Gl(i.buffers,e.segments,r,t,i.program,i.depthMode,o,s,n,1)),n.u_is_halo=0}Gl(i.buffers,e.segments,r,t,i.program,i.depthMode,o,s,i.uniformValues,1)}}}function Gl(e,t,i,r,n,o,s,a,l,c){const h=r.context,u=h.gl,d=[e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer,e.iconTransitioningVertexBuffer,e.globeExtVertexBuffer,e.zOffsetVertexBuffer,e.orientationVertexBuffer];e.featureIdBuffer&&d.push(e.featureIdBuffer);const f=e.uboBinder?null:e.programConfigurations.get(i.id);if(e.uboBinder){e.uboBinder.layer=i;const t=r.transform.zoom,n=r.style.getBrightness?r.style.getBrightness():null,o=e.uboBinder.getConstantUniformValues(t,n);l.u_spp_fill_np_color=o.fill_np_color,l.u_spp_halo_np_color=o.halo_np_color,l.u_spp_opacity=o.opacity,l.u_spp_halo_width=o.halo_width,l.u_spp_halo_blur=o.halo_blur,l.u_spp_emissive_strength=o.emissive_strength,l.u_spp_occlusion_opacity=o.occlusion_opacity,l.u_spp_z_offset=o.z_offset;const s=o.zoomFactors;l.u_spp_fill_color_zoom_factor=s[0],l.u_spp_halo_color_zoom_factor=s[1],l.u_spp_opacity_zoom_factor=s[2],l.u_spp_halo_width_zoom_factor=s[3],l.u_spp_halo_blur_zoom_factor=s[4],l.u_spp_emissive_strength_zoom_factor=s[5],l.u_spp_occlusion_opacity_zoom_factor=s[6],l.u_spp_z_offset_zoom_factor=s[7],l.u_spp_translate_zoom_factor=s[8];const a=i.paint.get(e.uboBinder.isText?"text-translate-anchor":"icon-translate-anchor"),c=e.uboBinder.hasPerFeatureTranslate()&&"map"===a?r.transform.angle:0;l.u_spp_translate_rotation=[Math.cos(c),Math.sin(c)]}const{batchIndices:p,batchSegments:A}=e.getBatchGrouping(t);for(const g of p){const t=A.get(g);e.uboBinder&&e.uboBinder.bind(h,n.program,g),n.draw(r,u.TRIANGLES,o,s,a,mi.disabled,l,i.id,e.layoutVertexBuffer,e.indexBuffer,t,i.paint,r.transform.zoom,f,d,c)}}function Yl(t,i,r,n,o,s){const a=r.paint.get("line-width"),l=r.paint.get("line-emissive-strength").isConstant(),c=r.paint.get("line-emissive-strength").constantOr(0),h=r.paint.get("line-occlusion-opacity"),u=r.layout.get("line-elevation-reference"),d="meters"===r.layout.get("line-width-unit"),f="sea"===u,p=!(!t.terrain||!t.terrain.enabled),A=t.context,g=A.gl;if(r.hasElevatedBuckets&&"globe"===t.transform.projection.name)return;const m=r.layout.get("line-cross-slope"),_=void 0!==m,y=m<1,x=o||t.colorModeForDrapableLayerRenderPass(l?c:null),v=t.terrain&&t.terrain.renderingToTexture||s,w=v?1:e.co.devicePixelRatio,E=r.paint.get("line-dasharray"),b=E.constantOr(1),I=r.layout.get("line-cap"),C=E.constantOr(null),B=I.constantOr(null),D=r.paint.get("line-pattern"),T=D.constantOr(1),M=r.paint.get("line-pattern-cross-fade"),Q=D.constantOr(null),S=r.paint.get("line-opacity").constantOr(1);let P=!T&&1!==S||t.depthOcclusion&&h>0&&h<1;const R=r.paint.get("line-gradient"),z=T?"linePattern":"line",L=e.d$(r);let F;if(v&&t.terrain&&t.terrain.clipOrMaskOverlapStencilType()&&(P=!1),0!==h&&t.depthOcclusion){const t=r.paint._values["line-opacity"];t&&t.value&&"constant"===t.value.kind?F=t.value:e.f_(`Occlusion opacity for layer ${r.id} is supported only when line-opacity isn't data-driven.`)}"constant"!==a.value.kind&&!1===a.value.isLineProgressConstant&&L.push("VARIABLE_LINE_WIDTH");const O=r.paint.get("line-emissive-strength");T||"constant"===O.value.kind||!1!==O.value.isLineProgressConstant||L.push("VARIABLE_LINE_EMISSIVE_STRENGTH"),t._debugParams.showElevationIdDebug&&L.push("DEBUG_ELEVATION_ID"),v&&("dual-source-blending"!==t.emissiveMode||l?"mrt-fallback"===t.emissiveMode&&L.push("USE_MRT1"):L.push("DUAL_SOURCE_BLENDING"));const k={},N=[],U=(n,o,s,a,l,c)=>{for(const u of n){const n=i.getTile(u);if(T&&!n.patternsLoaded())continue;const f=n.getBucket(r);
1if(!f)continue;if("none"!==f.elevationType&&!l||"none"===f.elevationType&&l)continue;t.prepareDrawTile();const p=[...o],m=t.shadowRenderer,_="road"===f.elevationType&&!!m&&m.enabled;let y=[0,0,0];if(_){const e=t.style.directionalLight,i=t.style.ambientLight;e&&i&&(y=ur(t.style,e,i)),p.push("RENDER_SHADOWS","NORMAL_OFFSET")}const E=f.programConfigurations.get(r.id);let I=!1;if(Q&&n.imageAtlas){const t=e.aG.from(Q),i=t.getPrimary().scaleSelf(w).toString(),r=n.imageAtlas.patternPositions.get(i),o=t.getSecondary(),s=o?n.imageAtlas.patternPositions.get(o.scaleSelf(w).toString()):null;I=!!r&&!!s,r&&E.setConstantPatternPositions(r,s)}M>0&&(I||E.getPatternTransitionVertexBuffer("line-pattern"))&&p.push("LINE_PATTERN_TRANSITION"),f.elevationGroundScaleVertexBuffer&&p.push("ELEVATION_GROUND_SCALE");const D=t.isTileAffectedByFog(u),L=t.getOrCreateProgram(z,{config:E,defines:p,overrideFog:D});if(!T&&C&&B&&n.lineAtlas){const e=n.lineAtlas.getDash(C,B);e&&E.setConstantPatternPositions(e)}_&&m.setupShadows(n.tileID.toUnwrapped(),L,"vector-tile");let[O,U]=r.paint.get("line-trim-offset");if("round"===B||"square"===B){const e=1;O!==U&&(0===O&&(O-=e),1===U&&(U+=e))}const V=v?u.projMatrix:null,H=d?1/f.tileToMeter/e.eG(n,1,t.transform.zoom):1,j=d?1/f.tileToMeter/e.eG(n,1,Math.floor(t.transform.zoom)):1,G=b?r.paint._values["line-floorwidth"]:null;let Y;if(G&&"constant"===G.value.kind){const e=f.zoom;e in k||(k[e]=Math.max(.01,r.widthExpression().evaluate({zoom:e}))),Y=G.value.value;const i=Math.floor(t.transform.zoom);G.value.value=k[e]*Math.pow(2,i-n.tileID.overscaledZ)}const W=T?e.e0(t,n,r,V,w,H,j,[O,U],y,M):e.e2(t,n,r,V,f.lineClipsArray.length,w,H,j,[O,U],y);if(R){const n=f.gradients[r.id];let o=n.texture;if(r.gradientVersion!==n.version){let s=256;if(r.stepInterpolant){const r=i.getSource().maxzoom,n=u.canonical.z===r?Math.ceil(1<<t.transform.maxZoom-u.canonical.z):1;s=e.bG(e.ew(f.maxLineLength/e.r*1024*n),256,A.maxTextureSize)}const a="none"===r.paint.get("line-gradient-use-theme").constantOr("default");n.gradient=e.e$({expression:r.gradientExpression(),evaluationKey:"lineProgress",resolution:s,image:n.gradient||void 0,clips:f.lineClipsArray,lut:a?null:r.lut}),n.texture?n.texture.update(n.gradient):n.texture=new e.a_(A,n.gradient,g.RGBA8),n.version=r.gradientVersion,o=n.texture}A.activeTexture.set(g.TEXTURE1),o.bind(r.stepInterpolant?g.NEAREST:g.LINEAR,g.CLAMP_TO_EDGE)}b&&(A.activeTexture.set(g.TEXTURE0),n.lineAtlasTexture&&n.lineAtlasTexture.bind(g.LINEAR,g.REPEAT),E.updatePaintBuffers()),T&&(A.activeTexture.set(g.TEXTURE0),n.imageAtlasTexture&&n.imageAtlasTexture.bind(g.LINEAR,g.CLAMP_TO_EDGE),E.updatePaintBuffers()),l&&t.terrain.setupElevationDraw(n,L),t.uploadCommonUniforms(A,L,u.toUnwrapped());const J=io.drawLineFrcCoverageDetect?io.drawLineFrcCoverageDetect(t,f,u,l,W,E,L,s,x,N):null,Z=(e,i,n)=>{i&&0!==i.get().length&&(null!=F&&(F.value=S*h),void 0!==n&&(W.u_opacity_multiplier=n),L.draw(t,g.TRIANGLES,s,e,x,mi.disabled,W,r.id,f.layoutVertexBuffer,f.indexBuffer,i,r.paint,t.transform.zoom,E,[f.layoutVertexBuffer2,f.patternVertexBuffer,f.zOffsetVertexBuffer,f.elevationIdColVertexBuffer,f.elevationGroundScaleVertexBuffer]),void 0!==n&&(W.u_opacity_multiplier=1),null!=F&&(F.value=S))},q=e=>{J&&J.active&&io.drawLineFrcRenderLine?io.drawLineFrcRenderLine(f,J,e,Z):Z(e,f.segments)};if(P&&!l){const e=t.stencilModeForClipping(u).ref;0===e&&v&&A.clear({stencil:0});const i={func:g.EQUAL,mask:255};W.u_alpha_discard_threshold=.8,q(new Gi(i,e,255,g.KEEP,g.KEEP,g.INVERT)),W.u_alpha_discard_threshold=0,q(new Gi(i,e,255,g.KEEP,g.KEEP,g.KEEP))}else W.u_alpha_discard_threshold=P&&l&&c?.8:0,q(l?a:t.stencilModeForClipping(u));J&&io.drawLineFrcFadePass&&io.drawLineFrcFadePass(t,f,u,J,l,a,Z),void 0!==Y&&(G.value.value=Y)}};let V=t.depthModeForSublayer(0,_i.ReadOnly);const H=new _i(t.depthOcclusion?g.GREATER:g.LEQUAL,_i.ReadOnly,t.depthRangeFor3D);if(r.hasNonElevatedBuckets){const i=!v&&t.terrain;0!==h&&i?e.f_(`Occlusion opacity for layer ${r.id} is supported on terrain only if the layer has line-z-offset enabled.`):i?e.f_(`Cannot render non-elevated lines in immediate mode when terrain is enabled. Layer: ${r.id}.`):U(n,L,V,Gi.disabled,!1,!0)}if(r.hasElevatedBuckets){"hd-road-markup"===u?p||(V=H,L.push("ELEVATED_ROADS")):(L.push("ELEVATED"),V=H,_&&L.push(y?"CROSS_SLOPE_HORIZONTAL":"CROSS_SLOPE_VERTICAL"),f&&L.push("ELEVATION_REFERENCE_SEA"));const e=P?t.stencilModeFor3D():Gi.disabled;t.forceTerrainMode=!0,U(n,L,V,e,!0,!0),P&&U(n,L,V,e,!0,!1),t.forceTerrainMode=!1}io.drawLineFrcCoverageSecondPass&&io.drawLineFrcCoverageSecondPass(t,r,N),P&&(t.resetStencilClippingMasks(),v&&A.clear({stencil:0})),0===h||t.depthOcclusion||v||t.layersWithOcclusionOpacity.push(t.currentLayer)}class Wl{destroy(){this.fbo&&(this.fbo.destroy(),this.fbo=null),this.drapeFbo&&(this.drapeFbo.destroy(),this.drapeFbo=null)}}class Jl{constructor(e){this.pbo=e.createBuffer(),this.sync=null,this.fboA=null,this.fboB=null,this.maxDensity=0}destroy(e){this.sync&&(e.deleteSync(this.sync),this.sync=null),e.deleteBuffer(this.pbo),this.fboA&&(this.fboA.destroy(),this.fboA=null),this.fboB&&(this.fboB.destroy(),this.fboB=null)}}const Zl={additive:{clearColor:new e.i(0,0,0,0),colorMode:Ji.additiveAlphaWeighted,compositeUniformValue:1},multiply:{clearColor:new e.i(1,1,1,1),colorMode:Ji.multiply,compositeUniformValue:0}};function ql(e){return!(!e.extRenderToTextureHalfFloat&&!e.extColorBufferFloat)}function Kl(e,t){return"additive"===e&&ql(t)?Ji.additiveAlphaWeightedUnboundedAlpha:Zl[e].colorMode}function Xl(e,t,i){const r=e.context,n=r.gl;let o=i.width,s=i.height,a=i.colorAttachment0.get();t.lineBlendDensityReadback||(t.lineBlendDensityReadback=new Jl(n));const l=t.lineBlendDensityReadback;let c=0,h=!0;for(;o>1||s>1;){const i=Math.max(1,Math.floor(o/2)),u=Math.max(1,Math.floor(s/2)),d=0===c?"fboA":"fboB";l[d]=Ll.createWithTexture(r,l[d],i,u,!1);const f=l[d];r.bindFramebuffer.set(f.framebuffer),r.viewport.set([0,0,i,u]),r.activeTexture.set(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,a),e.getOrCreateProgram("lineBlendReduce").draw(e,n.TRIANGLES,_i.disabled,Gi.disabled,Ji.unblended,mi.disabled,xl(0,[1/o,1/s],h),t.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,t.paint,e.transform.zoom),o=i,s=u,a=f.colorAttachment0.get(),c=1-c,h=!1}const u=ql(r),d=u?16:4;l.sync&&(n.deleteSync(l.sync),l.sync=null),n.bindBuffer(n.PIXEL_PACK_BUFFER,l.pbo),n.bufferData(n.PIXEL_PACK_BUFFER,d,n.STREAM_READ),n.readPixels(0,0,1,1,n.RGBA,u?n.FLOAT:n.UNSIGNED_BYTE,0),n.bindBuffer(n.PIXEL_PACK_BUFFER,null),l.sync=n.fenceSync(n.SYNC_GPU_COMMANDS_COMPLETE,0),r.viewport.set([0,0,e.width,e.height])}function $l(e,t,i){if(!ql(e.context))return;const r=t.lineBlendDensityReadback;r&&r.sync?(function(e,t,i){if(e.sync&&t.getSyncParameter(e.sync,t.SYNC_STATUS)===t.SIGNALED){if(t.deleteSync(e.sync),e.sync=null,t.bindBuffer(t.PIXEL_PACK_BUFFER,e.pbo),ql(i)){const i=new Float32Array(4);t.getBufferSubData(t.PIXEL_PACK_BUFFER,0,i);const r=i[1];e.maxDensity=Math.max(2*(r>
vendor: 6,160 bytes, line 1
10?i[0]/r:0),1)}else e.maxDensity=1;t.bindBuffer(t.PIXEL_PACK_BUFFER,null)}}(r,e.context.gl,e.context),r.sync||(Xl(e,t,i),e.style.map.triggerRepaint())):(Xl(e,t,i),e.style.map.triggerRepaint())}function ec(e,t,i,r,n,o){const s=e.context,a=s.gl,l="additive"===i?1:t.paint.get("line-opacity").constantOr(1),c="additive"===i?function(e,t){const i=t.paint.get("line-blend-additive-clamp");if(i>0)return i;const r=t.lineBlendDensityReadback;return r&&0!==r.maxDensity?r.maxDensity:null}(0,t):1;if(null===c)return;s.bindFramebuffer.set(n),o&&s.viewport.set([0,0,o[0],o[1]]),s.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,r.colorAttachment0.get());const h=Kl(i,e.context);e.getOrCreateProgram("lineBlendComposite").draw(e,a.TRIANGLES,_i.disabled,Gi.disabled,h,mi.disabled,((e,t,i,r)=>({u_image:0,u_opacity:t,u_blend_mode:i,u_max_density:r}))(0,l,Zl[i].compositeUniformValue,c),t.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,t.paint,e.transform.zoom)}function tc(t,i,r,n){const{painter:o,sourceCache:s,layer:a,coords:l,colorMode:c,elevationType:h,terrainEnabled:u,pass:d}=t,f=o.context.gl,p=a.paint.get("fill-pattern"),A=a.paint.get("fill-pattern-cross-fade"),g=p.constantOr(null);let m=h;"road"!==h||i&&!u||(m="none");const _="road"===m,y=t.painter.shadowRenderer,x=_&&!!y&&y.enabled,v=new _i(o.context.gl.LEQUAL,_i.ReadOnly,o.depthRangeFor3D);let w=[0,0,0];if(x){const e=o.style.directionalLight,t=o.style.ambientLight;e&&t&&(w=ur(o.style,e,t))}const E=p&&p.constantOr(1),b=o.terrain&&o.terrain.renderingToTexture,I=(t,d)=>{let p,m,I,C,B;d?(p=E&&!a.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",I=f.LINES):(p=E?"fillPattern":"fill",I=f.TRIANGLES);const D=[];for(const T of l){const l=s.getTile(T);if(E&&!l.patternsLoaded())continue;const M=l.getBucket(a);if(!M)continue;const Q=i?M.hdExt&&M.hdExt.elevationBufferData:M.bufferData;if(!Q||Q.isEmpty())continue;o.prepareDrawTile();const S=Q.programConfigurations.get(a.id),P=o.isTileAffectedByFog(T),R=[],z=[];_&&(R.push("ELEVATED_ROADS"),z.push(Q.elevatedLayoutVertexBuffer)),x&&R.push("RENDER_SHADOWS","NORMAL_OFFSET"),b&&r&&R.push("USE_MRT1"),E&&(o.context.activeTexture.set(f.TEXTURE0),l.imageAtlasTexture&&l.imageAtlasTexture.bind(f.LINEAR,f.CLAMP_TO_EDGE),S.updatePaintBuffers());let L=!1;if(g&&l.imageAtlas){const t=l.imageAtlas,i=e.aG.from(g),r=i.getPrimary().scaleSelf(e.co.devicePixelRatio).toString(),n=i.getSecondary(),o=t.patternPositions.get(r),s=n?t.patternPositions.get(n.scaleSelf(e.co.devicePixelRatio).toString()):null;L=!!o&&!!s,o&&S.setConstantPatternPositions(o,s)}A>0&&(L||S.getPatternTransitionVertexBuffer("fill-pattern"))&&R.push("FILL_PATTERN_TRANSITION");const F=o.getOrCreateProgram(p,{config:S,overrideFog:P,defines:R}),O=o.translatePosMatrix(T.projMatrix,l,a.paint.get("fill-translate"),a.paint.get("fill-translate-anchor"));x&&y.setupShadows(l.tileID.toUnwrapped(),F,"vector-tile");const k=a.paint.get("fill-emissive-strength");if(d){C=Q.lineIndexBuffer,B=Q.lineSegments;const e=o.terrain&&o.terrain.renderingToTexture?o.terrain.drapeBufferSize:[f.drawingBufferWidth,f.drawingBufferHeight];m="fillOutlinePattern"===p&&E?yl(O,k,o,l,e,w,A):_l(O,k,e,w)}else C=Q.indexBuffer,B=Q.triangleSegments,m=E?ml(O,k,o,l,w,A):gl(O,k,w);o.uploadCommonUniforms(o.context,F,T.toUnwrapped());let N=t;if(("road"===h&&!u||"offset"===h)&&(N=v),!B||B.get&&0===B.get().length)continue;const U=n||o.stencilModeForClipping(T);let V="fallthrough";!d&&io.drawFillFrcCoverageFirstPass&&(V=io.drawFillFrcCoverageFirstPass({painter:o,layer:a,bucket:M,coord:T,elevatedGeometry:i,program:F,programConfiguration:S,uniformValues:m,drawMode:I,depthMode:N,stencilMode:U,colorMode:c,bufferData:Q,indexBuffer:C,segments:B,dynamicBuffers:z,polygonCoverageTiles:D})),"fallthrough"===V&&F.draw(o,I,N,U,c,mi.disabled,m,a.id,Q.layoutVertexBuffer,C,B,a.paint,o.transform.zoom,S,z)}!d&&io.drawFillFrcCoverageSecondPass&&io.drawFillFrcCoverageSecondPass(o,a,D,I,c)};o.renderPass===d&&I(o.depthModeForSublayer(1,"opaque"===o.renderPass?_i.ReadWrite:_i.ReadOnly),!1),"none"===m&&"translucent"===o.renderPass&&a.paint.get("fill-antialias")&&I(o.depthModeForSublayer(a.getPaintProperty("fill-outline-color")?2:0,_i.ReadOnly),!0)}function ic(t){return[t[0]*e.C,t[1]*e.C,t[2]*e.C,0]}function rc(t,i,r,n,o,s,a,l,c){const h=n.getSource(),u=r.globeSharedBuffers;if(!u)return;let d,f,p;if(i&&(d=n.getTile(i)),h instanceof e.a3?(f=h.texture,p=e.dj(0,0,r.transform)):d&&i&&(f=d.texture,p=e.dj(i.canonical.z,i.canonical.x,r.transform)),!f||!p)return;t||(p=e.fc(e.bT(),p,[1,-1,1]));const A=r.context,g=A.gl,m="nearest"===o.paint.get("raster-resampling")?g.NEAREST:g.LINEAR,_=r.colorModeForDrapableLayerRenderPass(s),y=a.defines;y.push("GLOBE_POLES");const x=new _i(g.LEQUAL,_i.ReadWrite,r.depthRangeFor3D),v=r.transform.expandedFarZProjMatrix,w=Float32Array.from(e.dh(e.dk(new e.f(0,0,0))));r.terrain&&r.terrain.prepareDrawTile(),A.activeTexture.set(g.TEXTURE0),f.bind(m,g.CLAMP_TO_EDGE),A.activeTexture.set(g.TEXTURE1),f.bind(m,g.CLAMP_TO_EDGE),"useMipmap"in f&&A.extTextureFilterAnisotropic&&r.transform.pitch>20&&g.texParameterf(g.TEXTURE_2D,A.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,A.extTextureFilterAnisotropicMax);const[E,b,I,C]=i?u.getPoleBuffers(i.canonical.z,!1):u.getPoleBuffers(0,!0),B=o.paint.get("raster-elevation");let D;t?(D=E,r.renderDefaultNorthPole=0!==B):(D=b,r.renderDefaultSouthPole=0!==B);const T=ic(a.mix),M=((e,t,i,r,n,o,s,a,l,c,h,u,d,f)=>Cl(e,t,i,r,new Float32Array(16),new Float32Array(9),[0,0],n,[0,0],[0,0,0,0],1,{opacity:1,mix:0},s,[0,0]||0,l,2,h,u,d,1,0,f))(r,v,w,p,e.dm(r.transform.zoom),0,o,0,B,0,T,a.offset,a.range,s),Q=r.getOrCreateProgram("raster",{defines:y});r.uploadCommonUniforms(A,Q,null),Q.draw(r,g.TRIANGLES,x,c,_,l,M,o.id,D,I,C)}function nc(e){if(e.isOrthographic)return[0,0,0,0];const t=e._nearZ,i=e.projection.farthestPixelDistance(e),r=i-t,n=.2*e.height,o=t+n;return[t,i,(o-n-t)/r,(o-t)/r]}function oc(e,t,i,r){if(e)return t instanceof kr&&e instanceof Rr?t.getTextureDescriptor(e,i,!0):{texture:e.texture,mix:ic(r.mix),offset:r.offset,buffer:0,tileSize:1}}const sc=e.dq(new Float32Array(16)),ac=new e.i(1,0,0,1),lc=new e.i(0,
vendor: 10,297 bytes, line 1
11,0,1),cc=new e.i(0,0,1,1),hc=new e.i(1,0,1,1),uc=new e.i(0,1,1,1);function dc(t,i,r,n,o,s,a){const l=t.context,c=t.transform,h=l.gl,u="globe"===c.projection.name,d=u?["PROJECTION_GLOBE_VIEW"]:[];let f=e.bJ(r.projMatrix);if(u&&e.dm(c.zoom)>0){const t=e.fP(r.canonical,c),i=e.de(t);f=e.er(new Float32Array(16),c.globeMatrix,i),e.er(f,c.projMatrix,f)}const p=e.bT();p[12]+=2*o/(e.co.devicePixelRatio*c.width),p[13]+=2*s/(e.co.devicePixelRatio*c.height),e.er(f,p,f);const A=t.getOrCreateProgram("debug",{defines:d}),g=i.getTileByID(r.key);t.terrain&&t.terrain.setupElevationDraw(g,A);const m=_i.disabled,_=Gi.disabled,y=t.colorModeForRenderPass(),x="$debug";l.activeTexture.set(h.TEXTURE0),t.emptyTexture.bind(h.LINEAR,h.CLAMP_TO_EDGE),u?g._makeGlobeTileDebugBuffers(t.context,c):g._makeDebugTileBoundsBuffers(t.context,c.projection);const v=g._tileDebugBuffer||t.debugBuffer,w=g._tileDebugIndexBuffer||t.debugIndexBuffer,E=g._tileDebugSegments||t.debugSegments;if(A.draw(t,h.LINE_STRIP,m,_,y,mi.disabled,ao(f,n.toPremultipliedRenderColor(null)),x,v,w,E,null,null,null,[g._globeTileDebugBorderBuffer]),a){const e=g.latestRawTileData,i=Math.floor((e&&e.byteLength||0)/1024);let n=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(n+=` => ${r.overscaledZ}`),n+=` ${g.state}`,n+=` ${i}kb`,function(e,t){e.initDebugOverlayCanvas();const i=e.debugOverlayCanvas,r=e.context.gl,n=e.debugOverlayCanvas.getContext("2d");n.clearRect(0,0,i.width,i.height),n.shadowColor="white",n.shadowBlur=2,n.lineWidth=1.5,n.strokeStyle="white",n.textBaseline="top",n.font="bold 36px Open Sans, sans-serif",n.fillText(t,5,5),n.strokeText(t,5,5),e.debugOverlayTexture.update(i),e.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(t,n)}const b=i.getTile(r).tileSize,I=512/Math.min(b,512)*(r.overscaledZ/c.zoom)*.5,C=g._tileDebugTextBuffer||t.debugBuffer,B=g._tileDebugTextIndexBuffer||t.quadTriangleIndexBuffer,D=g._tileDebugTextSegments||t.debugSegments;A.draw(t,h.TRIANGLES,m,_,Ji.alphaBlended,mi.disabled,ao(f,e.i.transparent.toPremultipliedRenderColor(null),I),x,C,B,D,null,null,null,[g._globeTileDebugTextBuffer])}function fc(e,t,i,r){Ac(e,0,t+i/2,e.transform.width,i,r)}function pc(e,t,i,r){Ac(e,t-i/2,0,i,e.transform.height,r)}function Ac(t,i,r,n,o,s){const a=t.context,l=a.gl;l.enable(l.SCISSOR_TEST),l.scissor(i*e.co.devicePixelRatio,r*e.co.devicePixelRatio,n*e.co.devicePixelRatio,o*e.co.devicePixelRatio),a.clear({color:s}),l.disable(l.SCISSOR_TEST)}const gc=e.b_([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:mc}=gc;function _c(e,t,i,r){e.emplaceBack(t,i,r)}class yc{constructor(t){this.vertexArray=new e.aS,this.indices=new e.aT,_c(this.vertexArray,-1,-1,1),_c(this.vertexArray,1,-1,1),_c(this.vertexArray,-1,1,1),_c(this.vertexArray,1,1,1),_c(this.vertexArray,-1,-1,-1),_c(this.vertexArray,1,-1,-1),_c(this.vertexArray,-1,1,-1),_c(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,mc),this.indexBuffer=t.createIndexBuffer(this.indices),this.segment=e.aJ.simpleSegment(0,0,36,12)}}function xc(t,i,r,n,o,s){const a=t.context.gl,l=i.paint.get("sky-atmosphere-color"),c=i.paint.get("sky-atmosphere-halo-color"),h=i.paint.get("sky-atmosphere-sun-intensity"),u=((e,t,i,r,n)=>({u_matrix_3f:e,u_sun_direction:t,u_sun_intensity:i,u_color_tint_r:[r.r,r.g,r.b,r.a],u_color_tint_m:[n.r,n.g,n.b,n.a],u_luminance:5e-5}))(e.cs(e.bV(),n),o,h,l.toPremultipliedRenderColor(null),c.toPremultipliedRenderColor(null));a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_CUBE_MAP_POSITIVE_X+s,i.skyboxTexture,0),r.draw(t,a.TRIANGLES,_i.disabled,Gi.disabled,Ji.unblended,mi.frontCW,u,"skyboxCapture",i.skyboxGeometry.vertexBuffer,i.skyboxGeometry.indexBuffer,i.skyboxGeometry.segment)}const vc=e.b_([{type:"Float32",name:"a_pos",components:3},{type:"Float32",name:"a_uv",components:2}]);class wc{constructor(t){const i=new e.aU;i.emplaceBack(-1,1,1,0,0),i.emplaceBack(1,1,1,1,0),i.emplaceBack(1,-1,1,1,1),i.emplaceBack(-1,-1,1,0,1);const r=new e.aT;r.emplaceBack(0,1,2),r.emplaceBack(2,3,0),this.vertexBuffer=t.createVertexBuffer(i,vc.members),this.indexBuffer=t.createIndexBuffer(r),this.segments=e.aJ.simpleSegment(0,0,4,2)}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy()}}const Ec=e.b_([{type:"Float32",name:"a_pos_3f",components:3},{type:"Float32",name:"a_uv",components:2},{type:"Float32",name:"a_size_scale",components:1},{type:"Float32",name:"a_opacity",components:1}]);class bc{constructor(){this.colorModeAlphaBlendedWriteRGB=new Ji([1,Wi,1,Wi],e.i.transparent,[!0,!0,!0,!1]),this.colorModeWriteAlpha=new Ji([1,0,1,0],e.i.transparent,[!1,!1,!1,!0]),this.params={starsCount:16e3,sizeMultiplier:.15,sizeRange:100,intensityRange:200},this.updateNeeded=!0,this._painter=null,this._devtoolsFolder=null}update(t){this._painter=t;const i=t.context;if(!this.atmosphereBuffer||this.updateNeeded){this.updateNeeded=!1,this.atmosphereBuffer=new wc(i);let t=this.params;const r=t.sizeRange,n=t.intensityRange,o=function(t){const i=e.eq(30),r=[];for(let n=0;n<t;++n){const t=2*Math.PI*i(),n=Math.acos(1-2*i())-.5*Math.PI;r.push(e.cx(Math.cos(n)*Math.cos(t),Math.cos(n)*Math.sin(t),Math.sin(n)))}return r}(t.starsCount),s=e.eq(300),a=new e.aV,l=new e.aT;let c=0;for(let i=0;i<o.length;++i){const t=e.fa([],o[i],200),h=Math.max(0,1+.01*r*(1*s()-.5)),u=Math.max(0,1+.01*n*(1*s()-.5));a.emplaceBack(t[0],t[1],t[2],-1,-1,h,u),a.emplaceBack(t[0],t[1],t[2],1,-1,h,u),a.emplaceBack(t[0],t[1],t[2],1,1,h,u),a.emplaceBack(t[0],t[1],t[2],-1,1,h,u),l.emplaceBack(c+0,c+1,c+2),l.emplaceBack(c+0,c+2,c+3),c+=4}this.starsVx=i.createVertexBuffer(a,Ec.members),this.starsIdx=i.createIndexBuffer(l),this.starsSegments=e.aJ.simpleSegment(0,0,a.length,l.length)}}destroy(){this.atmosphereBuffer&&this.atmosphereBuffer.destroy(),this.starsVx&&this.starsVx.destroy(),this.starsIdx&&this.starsIdx.destroy(),this._painter=null}drawAtmosphereGlow(t,i){const r=t.context,n=r.gl,o=t.transform,s=new _i(n.LEQUAL,_i.ReadOnly,[0,1]),a=e.dm(o.zoom),l=t.style.getLut(i.scope),c="none"===i.properties.get("color-use-theme"),h=i.properties.get("color").toNonPremultipliedRenderColor(c?null:l),u="none"===i.properties.get("high-color-use-theme"),d=i.properties.get("high-color").toNonPremultipliedRenderColor(u?null:l),f="none"===i.properties.get("space-color-use-theme"),p=i.properties.get("space-color").toNonPremultipliedRenderColor(f?null:l),A=5e-4,g=e.ec(i.properties.get("horizon-blend"),0,1,A,.25),m=e.dn(t,r,o)&&g===A?o.worldSize/(2*Math.PI*1.025)-1:o.globeRadius,_=t.frameCounter/1e3%1,y=e.dW(o.globeCenterInViewSpace),x=Math.sqrt(Math.pow(y,2)-Math.pow(m,2)),v=Math.acos(x/y),w=e=>{const i="globe"===o.projection.name?["PROJECTION_GLOBE_VIEW","FOG"]:["FOG"];e&&i.push("ALPHA_PASS");const l=t.getOrCreateProgram("globeAtmosphere",{defines:i}),c=((e,t,i,r,n,o,s,a,l,c,h,u)=>({u_frustum_tl:e,u_frustum_tr:t,u_frustum_br:i,u_frustum_bl:r,u_horizon:n,u_transition:o,u_fadeout_range:s,u_atmosphere_fog_color:a.toArray01(),u_high_color:l.toArray01(),u_space_color:c.toArray01(),u_temporal_offset:h,u_horizon_angle:u}))(o.frustumCorners.TL,o.frustumCorners.TR,o.frustumCorners.BR,o.frustumCorners.BL,o.frustumCorners.horizon,a,g,h,d,p,_,v);t.uploadCommonUniforms(r,l);const u=this.atmosphereBuffer;u&&l.draw(t,n.TRIANGLES,s,Gi.disabled,e?this.colorModeWriteAlpha:this.colorModeAlphaBlendedWriteRGB,mi.backCW,c,e?"atmosphere_glow_alpha":"atmosphere_glow",u.vertexBuffer,u.indexBuffer,u.segments)};w(!1),w(!0)}drawStars(t,i){const r=e.bG(i.properties.get("star-intensity"),0,1);if(0===r)return;const n=t.context,o=n.gl,s=t.transform,a=t.getOrCreateProgram("stars"),l=e.dp([]);e.f2(l,l,-s._pitch),e.f5(l,l,-s.angle),e.f2(l,l,e.c4(s._center.lat)),e.f4(l,l,-e.c4(s._center.lng));const c=e.ct(new Float32Array(16),l),h=e.er([],s.starsProjMatrix,c),u=e.cs([],c),d=e.dt([],u);let f=this.params.sizeMultiplier;const p=[0,1,0];e.fK(p,p,d),e.fa(p,p,f);const A=[1,0,0];e.fK(A,A,d),e.fa(A,A,f);const g=(m=p,_=A,y=r,{u_matrix:Float32Array.from(h),u_up:m,u_right:_,u_intensity_multiplier:y});var m,_,y;t.uploadCommonUniforms(n,a),this.starsVx&&this.starsIdx&&a.draw(t,o.TRIANGLES,_i.disabled,Gi.disabled,this.colorModeAlphaBlendedWriteRGB,mi.disabled,g,"atmosphere_stars",this.starsVx,this.starsIdx,this.starsSegments)}}class Ic{constructor(){this.visibleTiles=[]}updateBorders(t,i){const r=[],n=[],o=t._getRenderableCoordinates(!1,!0);for(const e of o){const o=t.getTile(e);if(!o.hasData())continue;const s=o.getBucket(i);s&&(s.isEmpty()||(r.push(e.key),n.push({bucket:s,tileID:e.canonical})))}let s=r.length!==this.visibleTiles.length;if(!s){r.sort();for(let e=0;e<r.length;e++)if(r[e]!==this.visibleTiles[e]){s=!0;break}}if(!s)return;const a=new Set;this.visibleTiles=r,n.sort((e,t)=>e.tileID.z-t.tileID.z||e.tileID.x-t.tileID.x||e.tileID.y-t.tileID.y);for(const l of n){const t=new Array,i=new Array,r=l.bucket;for(const e of r.featuresOnBorder)a.has(e.featureId)?i.push(e.footprintIndex):(a.add(e.featureId),t.push(e.footprintIndex));r.updateFootprintHiddenFlags(t,e.B,!1),r.updateFootprintHiddenFlags(i,e.B,!0)}}}class Cc{}class Bc{constructor(){this._storage=new Map}getLinesFromTrianglesBuffer(t,i,r){{const e=this._storage.get(i.id);if(e)return e.lastUsedFrameIdx=t,e.buf}const n=r.gl,o=n.getBufferParameter(n.ELEMENT_ARRAY_BUFFER,n.BUFFER_SIZE),s=new ArrayBuffer(o),a=new Int16Array(s);n.getBufferSubData(n.ELEMENT_ARRAY_BUFFER,0,new Int16Array(s));const l=new e.aR;for(let e=0;e<o/2;e+=3){const t=a[e],i=a[e+1],r=a[e+2];l.emplaceBack(t,i),l.emplaceBack(i,r),l.emplaceBack(r,t)}const c=r.bindVertexArrayOES.current,h=new Cc;return h.buf=new Pl(r,l),h.lastUsedFrameIdx=t,this._storage.set(i.id,h),r.bindVertexArrayOES.set(c),h.buf}update(e){for(const[t,i]of this._storage)e-i.lastUsedFrameIdx>30&&(i.buf.destroy(),this._storage.delete(t))}destroy(){for(const[e,t]of this._storage)t.buf.destroy(),this._storage.delete(e)}}class Dc{constructor(){this.occluderSize=30,this.depthOffset=-1e-4}}
vendor: 8,973 bytes, line 1
1const Tc={symbol:function(t,i,r,n,o){if("translucent"!==t.renderPass)return;const s=Gi.disabled,a=t.colorModeForRenderPass(),l=r.layout.get("text-variable-anchor"),c=r.layout.get("text-size-scale-range"),h=e.bG(t.scaleFactor,c[0],c[1]);l&&function(t,i,r,n,o,s,a,l){const c=i.transform,h="map"===o,u="map"===s;for(const d of t){const t=n.getTile(d),i=t.getBucket(r);if(!i||!i.text||!i.text.segments.get().length)continue;const o=e.ci(i.textSizeData,c.zoom,l),s=gs(d,i.getProjection(),c),f=c.calculatePixelsToTileUnitsMatrix(t),p=Ci(s,t.tileID.canonical,u,h,c,i.getProjection(),f),A=i.hasIconTextFit()&&i.hasIconData();o&&Hl(i,h,u,a,c,p,d,Math.pow(2,c.zoom-t.tileID.overscaledZ),o,A)}}(n,t,r,i,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),o,h);const u=0!==r.paint.get("icon-opacity").constantOr(1),d=0!==r.paint.get("text-opacity").constantOr(1);void 0!==r.layout.get("symbol-sort-key").constantOr(1)&&(u||d)?jl(t,i,r,n,s,a):(u&&jl(t,i,r,n,s,a,{onlyIcons:!0}),d&&jl(t,i,r,n,s,a,{onlyText:!0})),i.map.showCollisionBoxes&&(kl(t,i,r,n,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),!0),kl(t,i,r,n,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),!1))},circle:function(t,i,r,n){if("translucent"!==t.renderPass)return;const o=r.paint.get("circle-opacity"),s=r.paint.get("circle-stroke-width"),a=r.paint.get("circle-stroke-opacity"),l=void 0!==r.layout.get("circle-sort-key").constantOr(1),c=r.paint.get("circle-emissive-strength");if(0===o.constantOr(1)&&(0===s.constantOr(1)||0===a.constantOr(1)))return;const h=t.context,u=h.gl,d=t.transform,f=!(!t.terrain||!t.terrain.enabled),p=r.layout.get("circle-elevation-reference"),A=t.depthModeForSublayer(0,_i.ReadOnly),g=new _i(t.context.gl.LEQUAL,_i.ReadOnly,t.depthRangeFor3D),m="none"===p||f?A:g,_=Gi.disabled,y=t.colorModeForDrapableLayerRenderPass(c),x="globe"===d.projection.name,v=[e.ek(d.center.lng),e.el(d.center.lat)],w=[];for(let b=0;b<n.length;b++){const o=n[b],s=i.getTile(o),a=s.getBucket(r);if(!a||a.projection.name!==d.projection.name)continue;const c=a.programConfigurations.get(r.id),h=a.layoutVertexBuffer,u=a.globeExtVertexBuffer,f=a.indexBuffer,p=e.bC(r),A=[u],g=t.isTileAffectedByFog(o);x&&p.push("PROJECTION_GLOBE_VIEW"),p.push("DEPTH_D24"),t.terrain&&d.depthOcclusionForSymbolsAndCircles&&p.push("DEPTH_OCCLUSION"),a.hdExt&&a.hdExt.hasElevation&&!t.terrain&&(p.push("ELEVATED_ROADS"),A.push(a.hdExt.elevatedLayoutVertexBuffer));const m=t.getOrCreateProgram("circle",{config:c,defines:p,overrideFog:g}),_=d.projection.createInversionMatrix(d,o.canonical),y={programConfiguration:c,program:m,layoutVertexBuffer:h,dynamicBuffers:A,indexBuffer:f,uniformValues:e.bD(t,o,s,_,v,r),tile:s};if(l){const t=a.segments.get();for(const i of t)w.push({segments:new e.aJ([i]),sortKey:i.sortKey,state:y})}else w.push({segments:a.segments,sortKey:0,state:y})}l&&w.sort((e,t)=>e.sortKey-t.sortKey);const E={useDepthForOcclusion:d.depthOcclusionForSymbolsAndCircles};for(const e of w){const{programConfiguration:i,program:n,layoutVertexBuffer:o,dynamicBuffers:s,indexBuffer:a,uniformValues:l,tile:c}=e.state,f=e.segments;t.terrain&&t.terrain.setupElevationDraw(c,n,E),t.uploadCommonUniforms(h,n,c.tileID.toUnwrapped()),n.draw(t,u.TRIANGLES,m,_,y,mi.disabled,l,r.id,o,a,f,r.paint,d.zoom,i,s)}},heatmap:function(t,i,r,n){if(0!==r.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){const o=t.context,s=o.gl,a=Gi.disabled,l=new Ji([s.ONE,s.ONE,s.ONE,s.ONE],e.i.transparent,[!0,!0,!0,!0]),c="globe"===t.transform.projection.name?.5:.25;r.heatmapFbo=Ll.createWithTexture(o,r.heatmapFbo,t.width*c,t.height*c),o.clear({color:e.i.transparent});const h=t.transform,u="globe"===h.projection.name,d=u?["PROJECTION_GLOBE_VIEW"]:[],f=u?mi.frontCCW:mi.disabled,p=[e.ek(h.center.lng),e.el(h.center.lat)];for(let e=0;e<n.length;e++){const c=n[e];if(i.hasRenderableParent(c))continue;const A=i.getTile(c),g=A.getBucket(r);if(!g||g.projection.name!==h.projection.name)continue;const m=t.isTileAffectedByFog(c),_=g.programConfigurations.get(r.id),y=t.getOrCreateProgram("heatmap",{config:_,defines:d,overrideFog:m}),{zoom:x}=t.transform;t.terrain&&t.terrain.setupElevationDraw(A,y),t.uploadCommonUniforms(o,y,c.toUnwrapped());const v=h.projection.createInversionMatrix(h,c.canonical);y.draw(t,s.TRIANGLES,_i.disabled,a,l,f,bl(t,c,A,v,p,x,r.paint.get("heatmap-intensity")),r.id,g.layoutVertexBuffer,g.indexBuffer,g.segments,r.paint,t.transform.zoom,_,u?[g.globeExtVertexBuffer]:null)}o.viewport.set([0,0,t.width,t.height])}else"translucent"===t.renderPass&&(t.context.setColorMode(t.colorModeForRenderPass()),function(t,i){const r=t.context,n=r.gl,o=i.heatmapFbo;if(!o)return;r.activeTexture.set(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,o.colorAttachment0.get()),r.activeTexture.set(n.TEXTURE1);let s=i.colorRampTexture;s||(s=i.colorRampTexture=new e.a_(r,i.colorRamp,n.RGBA8)),s.bind(n.LINEAR,n.CLAMP_TO_EDGE),t.getOrCreateProgram("heatmapTexture").draw(t,n.TRIANGLES,_i.disabled,Gi.disabled,t.colorModeForRenderPass(),mi.disabled,((e,t)=>({u_image:0,u_color_ramp:1,u_opacity:t.paint.get("heatmap-opacity")}))(0,i),i.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,i.paint,t.transform.zoom)}(t,r))},line:function(e,t,i,r){const n=i.paint.get("line-opacity"),o=i.paint.get("line-width");if(0===n.constantOr(1)||0===o.constantOr(1))return;const s=i.paint.get("line-blend-mode"),a=e.terrain&&e.terrain.renderingToTexture;if("default"===s||"globe"===e.transform.projection.name)"translucent"===e.renderPass&&Yl(e,t,i,r);else{if(a)return void function(e,t,i,r,n){if("translucent"!==e.renderPass)return;const o=e.context,s=o.gl,a=e.terrain;if(!a)return;const l=o.bindFramebuffer.current,c="mrt-fallback"===e.emissiveMode,h=a.drapeBufferSize[0],u=a.drapeBufferSize[1];i.lineBlendFbos||(i.lineBlendFbos=new Wl),i.lineBlendFbos.drapeFbo=Ll.createWithTexture(o,i.lineBlendFbos.drapeFbo,h,u,!0),c&&s.drawBuffers([s.COLOR_ATTACHMENT0]),o.clear({color:Zl[n].clearColor,depth:1,stencil:0});const d=e.currentStencilSource,f=e._tileClippingMaskIDs,p=e.nextStencilID;e.currentStencilSource=void 0,e._tileClippingMaskIDs={},e.nextStencilID=1;const A=e._terrain;e._terrain=null,e._renderTileClippingMasks(i,t,r),Yl(e,t,i,r,Kl(n,e.context),!0),e._terrain=A,e.currentStencilSource=d,e._tileClippingMaskIDs=f,e.nextStencilID=p,c&&s.drawBuffers([s.COLOR_ATTACHMENT0,s.COLOR_ATTACHMENT1]);const g=a.drapeBufferSize,m=i.lineBlendFbos&&i.lineBlendFbos.drapeFbo;m&&("additive"===n&&$l(e,i,m),ec(e,i,n,m,l,g))}(e,t,i,r,s);if("offscreen"===e.renderPass)return void function(e,t,i,r,n){const o=e.context,s=Math.ceil(e.width),a=Math.ceil(e.height);i.lineBlendFbos||(i.lineBlendFbos=new Wl),i.lineBlendFbos.fbo=Ll.createWithTexture(o,i.lineBlendFbos.fbo,s,a,!0),o.clear({color:Zl[n].clearColor,depth:1,stencil:0});const l=e.currentStencilSource,c=e._tileClippingMaskIDs,h=e.nextStencilID;e.currentStencilSource=void 0,e._tileClippingMaskIDs={},e.nextStencilID=1,e._renderTileClippingMasks(i,t,r);const u=e.renderPass;e.renderPass="translucent",Yl(e,t,i,r,Kl(n,e.context)),e.renderPass=u,e.currentStencilSource=l,e._tileClippingMaskIDs=c,e.nextStencilID=h,o.viewport.set([0,0,e.width,e.height]),"additive"===n&&$l(e,i,i.lineBlendFbos.fbo)}(e,t,i,r,s);if("translucent"===e.renderPass){const t=i.lineBlendFbos&&i.lineBlendFbos.fbo;return void(t&&ec(e,i,s,t,null))}}},fill:function(t,i,r,n){const o=r.paint.get("fill-color"),s=r.paint.get("fill-opacity");if(0===s.constantOr(1))return;const a=r.paint.get("fill-emissive-strength"),l=t.colorModeForDrapableLayerRenderPass(a),c=r.paint.get("fill-pattern"),h=t.opaquePassEnabledForLayer()&&!c.constantOr(1)&&1===o.constantOr(e.i.transparent).a&&1===s.constantOr(0)?"opaque":"translucent";let u="none";"none"!==r.layout.get("fill-elevation-reference")?u="road":0!==r.paint.get("fill-z-offset").constantOr(1)&&(u="offset");const d=!(!t.terrain||!t.terrain.enabled),f={painter:t,sourceCache:i,layer:r,coords:n,colorMode:l,elevationType:u,terrainEnabled:d,pass:h};if("shadow"===t.renderPass)return void(t.shadowRenderer&&"road"===u&&!d&&io.drawElevatedFillShadows&&io.drawElevatedFillShadows(f));const p="mrt-fallback"===t.emissiveMode;if("offset"!==u){if(tc(f,!1,p),"road"===u){const e=!d&&"translucent"===t.renderPass;e&&io.drawDepthPrepass&&io.drawDepthPrepass(t,i,r,n,"geometry"),tc(f,!0,p,Gi.disabled),e&&io.drawElevatedStructures&&io.drawElevatedStructures(f)}}else tc(f,!1,p,t.stencilModeFor3D())},"fill-extrusion":function(t,i,r,n){const o=r.paint.get("fill-extrusion-opacity"),s=t.context,a=s.gl,l=t.terrain,c=l&&l.renderingToTexture;if(0===o)return;const h="mrt-fallback"===t.emissiveMode,u=t.conflationActive&&t.style.isLayerClipped(r,i.getSource()),d=t.style.order.indexOf(r.fqid);if(u&&function(e,t,i,r,n){for(const o of r){const r=t.getTile(o).getBucket(i);r&&(r.updateReplacement(o,e.replacementSource,n),r.uploadCentroid(e.context))}}(t,i,r,n,d),l||u)for(const e of n){const n=i.getTile(e).getBucket(r);n&&_r(t.context,i,e,n,r,l,u)}
1if("shadow"===t.renderPass&&t.shadowRenderer){if(l&&o<.65&&r._transitionablePaint._values["fill-extrusion-opacity"].value.expression instanceof e.bh)return;const s=t.shadowRenderer.getShadowPassDepthMode();pr(t,i,r,n,s,Gi.disabled,Ji.disabled,u)}else if("translucent"===t.renderPass){const d=!r.paint.get("fill-extrusion-pattern").constantOr(1),f=r.paint.get("fill-extrusion-color").constantOr(e.i.white);if(!c&&0!==f.a){const e=new _i(t.context.gl.LEQUAL,_i.ReadWrite,t.depthRangeFor3D);1===o&&d?pr(t,i,r,n,e,Gi.disabled,Ji.unblended,u):(pr(t,i,r,n,e,Gi.disabled,Ji.disabled,u),pr(t,i,r,n,e,t.stencilModeFor3D(),t.colorModeForRenderPass(),u),t.resetStencilClippingMasks())}if(t.style.enable3dLights()&&d&&(!l&&"globe"!==t.transform.projection.name||c)){const o=r.paint.get("fill-extrusion-opacity"),d=r.paint.get("fill-extrusion-ambient-occlusion-intensity"),f=r.paint.get("fill-extrusion-ambient-occlusion-ground-radius"),p=r.paint.get("fill-extrusion-flood-light-intensity"),A="none"===r.paint.get("fill-extrusion-flood-light-color-use-theme").constantOr("default"),g=r.paint.get("fill-extrusion-flood-light-color").toNonPremultipliedRenderColor(A?null:r.lut).toArray01().slice(0,3),m=d>0&&f>0,_=p>0,y=new Ar;y.translate=r.paint.get("fill-extrusion-translate"),y.translateAnchor=r.paint.get("fill-extrusion-translate-anchor"),y.edgeRadius=r.layout.get("fill-extrusion-edge-radius"),y.cutoffFadeRange=r.paint.get("fill-extrusion-cutoff-fade-range");const x=s=>{const l=t.depthModeForSublayer(1,_i.ReadOnly,a.LEQUAL,!0),c=r.paint.get(s?"fill-extrusion-ambient-occlusion-ground-attenuation":"fill-extrusion-flood-light-ground-attenuation"),h=e.dY(.1,3,c),A=t._showOverdrawInspector;if(!A){const c=new Gi({func:a.ALWAYS,mask:255},255,255,a.KEEP,a.KEEP,a.REPLACE),A=new Ji([a.ONE,a.ONE,a.ONE,a.ONE],e.i.transparent,[!1,!1,!1,!0],a.MIN);mr(y,t,i,r,n,l,c,A,mi.disabled,s,"sdf",o,d,f,p,g,h,u,!1)}{const c=A?Gi.disabled:new Gi({func:a.EQUAL,mask:255},255,255,a.KEEP,a.DECR,a.DECR),m=A?t.colorModeForRenderPass():new Ji([a.ONE_MINUS_DST_ALPHA,a.DST_ALPHA,a.ONE,a.ONE],e.i.transparent,[!0,!0,!0,!0]);mr(y,t,i,r,n,l,c,m,mi.disabled,s,"color",o,d,f,p,g,h,u,!1)}};if(c){const c=()=>{const t=l.drapeBufferSize[0],i=l.drapeBufferSize[1];let r=l.framebufferCopyTexture;return r&&(!r||r.size[0]===t&&r.size[1]===i)||(r&&r.destroy(),r=l.framebufferCopyTexture=new e.a_(s,new e.ay({width:t,height:i}),a.RGBA8)),r.bind(a.LINEAR,a.CLAMP_TO_EDGE),a.copyTexSubImage2D(a.TEXTURE_2D,0,0,0,0,0,t,i),r},A=(s,l,A)=>{const m=t.depthModeForSublayer(1,_i.ReadOnly,a.LEQUAL,!1),_=r.paint.get(s?"fill-extrusion-ambient-occlusion-ground-attenuation":"fill-extrusion-flood-light-ground-attenuation"),x=e.dY(.1,3,_);{const c=new Ji([a.ONE,a.ONE,a.ONE,a.ONE],e.i.transparent,[!1,!1,!1,!0]);mr(y,t,i,r,n,m,Gi.disabled,c,mi.disabled,s,"clear",o,d,f,p,g,x,u,l)}{const c=new Gi({func:a.ALWAYS,mask:255},255,255,a.KEEP,a.KEEP,a.REPLACE),h=new Ji([a.ONE,a.ONE,a.ONE,a.ONE],e.i.transparent,[!1,!1,!1,!0],a.MIN);mr(y,t,i,r,n,m,c,h,mi.disabled,s,"sdf",o,d,f,p,g,x,u,l)}h&&!s&&(A=c());{const c=s?a.ZERO:a.ONE_MINUS_DST_ALPHA,h=new Gi({func:a.EQUAL,mask:255},255,255,a.KEEP,a.DECR,a.DECR),A=new Ji([c,a.DST_ALPHA,a.ONE_MINUS_DST_ALPHA,a.ZERO],e.i.transparent,[!0,!0,!0,!0]);mr(y,t,i,r,n,m,h,A,mi.disabled,s,"color",o,d,f,p,g,x,u,l)}if(!h||s){const c=new Ji([a.ONE,a.ONE,a.ONE,s?a.ZERO:a.ONE],e.i.transparent,[!1,!1,!1,!0],s?a.FUNC_ADD:a.MAX);mr(y,t,i,r,n,m,Gi.disabled,c,mi.disabled,s,"clear",o,d,f,p,g,x,u,l,A)}else{a.drawBuffers([a.NONE,a.COLOR_ATTACHMENT1]);const c=new Gi({func:a.EQUAL,mask:255},254,255,a.KEEP,a.DECR,a.DECR),h=new Ji([a.ONE,a.ONE,a.ONE,a.ONE],e.i.transparent,[!0,!1,!1,!1],a.MAX);mr(y,t,i,r,n,m,c,h,mi.disabled,s,"emissive",o,d,f,p,g,x,u,l,A),a.drawBuffers([a.COLOR_ATTACHMENT0])}};if(m||_){let e;t.prepareDrawTile(),h&&!m||(e=c()),m&&A(!0,!1,e),_&&A(!1,!0,e)}}else m&&x(!0),_&&x(!1),(m||_)&&t.resetStencilClippingMasks()}}},hillshade:function(e,t,i,r){if("offscreen"!==e.renderPass&&"translucent"!==e.renderPass)return;if(e.style.disableElevatedTerrain)return;const n=e.context,o=e.terrain&&e.terrain.renderingToTexture,[s,a]="translucent"!==e.renderPass||o?[{},r]:e.stencilConfigForOverlap(r);for(const l of a){const r=t.getTile(l);
1if(r.needsHillshadePrepare&&"offscreen"===e.renderPass)ma(e,r,i);else if("translucent"===e.renderPass){const t=e.depthModeForSublayer(0,_i.ReadOnly),n=i.paint.get("hillshade-emissive-strength"),a=e.colorModeForDrapableLayerRenderPass(n),c=o&&e.terrain?e.terrain.stencilModeForRTTOverlap(l):s[l.overscaledZ];Aa(e,l,r,i,t,c,a)}}n.viewport.set([0,0,e.width,e.height]),e.resetStencilClippingMasks()},raster:function(t,i,r,n,o,s){if("translucent"!==t.renderPass)return;const a=r.paint.get("raster-opacity");if(0===a)return;const l="globe"===t.transform.projection.name,c=0!==r.paint.get("raster-elevation"),h=c&&l,u=t.terrain&&t.terrain.exaggeration()>0&&c&&"ground"===r.paint.get("raster-elevation-reference"),d=!l&&u;if(t.renderElevatedRasterBackface&&!h)return;const f=t.context,p=f.gl,A=i.getSource(),g=function(t,i,r,n,o){const s=i.paint.get("raster-color"),a="raster-array"===t.type,l=[],c=i.paint.get("raster-resampling"),h=i.paint.get("raster-color-mix");let u=i.paint.get("raster-color-range");const d=[h[0],h[1],h[2],0],f=h[3];let p="nearest"===c?n.NEAREST:n.LINEAR;if(a&&(l.push("RASTER_ARRAY"),s||l.push("RASTER_COLOR"),"linear"===c&&l.push("RASTER_ARRAY_LINEAR"),p=n.NEAREST,!u&&t.rasterLayers)){const e=t.rasterLayers.find(({id:e})=>e===i.sourceLayer);e&&e.fields&&e.fields.range&&(u=e.fields.range)}if(u=u||[0,1],s){l.push("RASTER_COLOR"),r.activeTexture.set(n.TEXTURE2),i.updateColorRamp(u);let t=i.colorRampTexture;t||(t=i.colorRampTexture=new e.a_(r,i.colorRamp,n.RGBA8)),t.bind(p,n.CLAMP_TO_EDGE)}return o&&l.push("USE_MRT1"),{mix:d,range:u,offset:f,defines:l,resampling:p}}(A,r,f,p,t.terrain&&t.terrain.renderingToTexture&&"mrt-fallback"===t.emissiveMode);if(A instanceof e.a3&&!n.length&&!l)return;const m=r.paint.get("raster-emissive-strength"),_=t.colorModeForDrapableLayerRenderPass(m),y=t.terrain&&t.terrain.renderingToTexture,x=!t.options.moving,v="nearest"===r.paint.get("raster-resampling")?p.NEAREST:p.LINEAR;if(A instanceof e.a3&&!n.length&&(A.onNorthPole||A.onSouthPole)){const e=c?t.stencilModeFor3D():Gi.disabled;return void rc(!!A.onNorthPole,null,t,i,r,m,g,mi.disabled,e)}if(!n.length)return;const[w,E]=A instanceof e.a3||y?[{},n]:t.stencilConfigForOverlap(n),b=E.at(-1).overscaledZ;h&&g.defines.push("PROJECTION_GLOBE_VIEW"),c&&g.defines.push("RENDER_CUTOFF","ELEVATED"),u&&g.defines.push("ELEVATION_REFERENCE_GROUND");const I=(n,o,E)=>{for(const I of n){const n=I.toUnwrapped(),C=i.getTile(I);if(y&&(!C||!C.hasData()))continue;f.activeTexture.set(p.TEXTURE0);const B=oc(C,A,r,g);if(!B||!B.texture)continue;const{texture:D,mix:T,offset:M,tileSize:Q,buffer:S}=B;let P,R;y?(P=_i.disabled,R=I.projMatrix):c?(P=new _i(p.LEQUAL,_i.ReadWrite,t.depthRangeFor3D),R=l?t.transform.expandedFarZProjMatrix:t.transform.calculateProjMatrix(n,x)):(P=t.depthModeForSublayer(I.overscaledZ-b,1===a?_i.ReadWrite:_i.ReadOnly,p.LESS),R=t.transform.calculateProjMatrix(n,x));const z=t.terrain&&y?t.terrain.stencilModeForRTTOverlap(I):w[I.overscaledZ],L=s?0:r.paint.get("raster-fade-duration");C.registerFadeDuration(L);const F=i.findLoadedParent(I,0),O=Vr(C,F,i,t.transform,L);let k,N;!O.isFading&&C.refreshedUponExpiration&&(C.refreshedUponExpiration=!1),t.terrain&&t.terrain.prepareDrawTile(),f.activeTexture.set(p.TEXTURE0),D.bind(v,p.CLAMP_TO_EDGE),f.activeTexture.set(p.TEXTURE1),F?(F.texture&&F.texture.bind(v,p.CLAMP_TO_EDGE),k=Math.pow(2,F.tileID.overscaledZ-C.tileID.overscaledZ),N=[C.tileID.canonical.x*k%1,C.tileID.canonical.y*k%1]):D.bind(v,p.CLAMP_TO_EDGE),"useMipmap"in D&&f.extTextureFilterAnisotropic&&t.transform.pitch>20&&p.texParameterf(p.TEXTURE_2D,f.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,f.extTextureFilterAnisotropicMax);const U=t.transform;let V;const H=c?nc(U):[0,0,0,0];let j,G,Y,W,J,Z=0;if(h&&A instanceof e.a3&&A.coordinates.length>3)j=Float32Array.from(e.dh(e.dk(new e.f(0,0,0)))),G=Float32Array.from(U.globeMatrix),Y=Float32Array.from(e.by(U)),W=[e.ek(U.center.lng),e.el(U.center.lat)],V=A.elevatedGlobePerspectiveTransform,J=A.elevatedGlobeGridMatrix||new Float32Array(9);else if(h){const t=e.fF(I.canonical);Z=e.cU(t.getCenter().lat),j=Float32Array.from(e.dh(e.dk(I.canonical))),G=Float32Array.from(U.globeMatrix),Y=Float32Array.from(e.by(U)),W=[e.ek(U.center.lng),e.el(U.center.lat)],V=[0,0],J=Float32Array.from(e.cP(I.canonical,t,Z,U.worldSize/U._pixelsPerMercatorPixel))}else V=A instanceof e.a3?A.perspectiveTransform:[0,0],j=new Float32Array(16),G=new Float32Array(9),Y=new Float32Array(16),W=[0,0],J=new Float32Array(9);const q=Cl(t,R,j,G,Y,J,N||[0,0],e.dm(t.transform.zoom),W,H,k||1,O,r,V,c?r.paint.get("raster-elevation"):0,2,T,M,g.range,Q,S,m),K=t.isTileAffectedByFog(I),X=t.getOrCreateProgram("raster",{defines:g.defines,overrideFog:K});if(t.uploadCommonUniforms(f,X,n),A instanceof e.a3){const i=A.elevatedGlobeVertexBuffer,n=A.elevatedGlobeIndexBuffer;if(y||!l)A.boundsBuffer&&A.boundsSegments&&X.draw(t,p.TRIANGLES,P,Gi.disabled,_,mi.disabled,q,r.id,A.boundsBuffer,t.quadTriangleIndexBuffer,A.boundsSegments);else if(i&&n){const s=U.zoom<=e.S?A.elevatedGlobeSegments:A.getSegmentsForLongitude(U.center.lng);s&&X.draw(t,p.TRIANGLES,P,Gi.disabled,_,o,q,r.id,i,n,s)}}else if(h){P=new _i(p.LEQUAL,_i.ReadOnly,t.depthRangeFor3D);const e=t.globeSharedBuffers;if(e){u&&(t.terrain.setupElevationDraw(C,X),t.uploadCommonUniforms(f,X,C.tileID.toUnwrapped()));const[i,n,s]=e.getGridBuffers(Z,!1),a=X.getAttributeLocation(p,"a_texture_pos");-1!==a&&p.vertexAttribI4ui(a,0,0,0,0),X.draw(t,p.TRIANGLES,P,E||z,t.colorModeForRenderPass(),o,q,r.id,i,n,s)}}else if(d)P=new _i(p.LEQUAL,_i.ReadWrite,t.depthRangeFor3D),t.terrain.setupElevationDraw(C,X),t.uploadCommonUniforms(f,X,C.tileID.toUnwrapped()),U.pitch>20&&X.draw(t,p.TRIANGLES,P,Gi.disabled,Ji.disabled,mi.frontCCW,q,r.id,t.terrain.gridBuffer,t.terrain.gridIndexBuffer,t.terrain.gridSegments),X.draw(t,p.TRIANGLES,P,z,_,mi.backCCW,q,r.id,t.terrain.gridBuffer,t.terrain.gridIndexBuffer,t.terrain.gridSegments);else{const{tileBoundsBuffer:e,tileBoundsIndexBuffer:i,tileBoundsSegments:n}=t.getTileBoundsBuffers(C);X.draw(t,p.TRIANGLES,P,z,_,mi.disabled,q,r.id,e,i,n)}}if(!(A instanceof e.a3)&&h)for(const e of n){const n=e.canonical.y===(1<<e.canonical.z)-1;0===e.canonical.y&&rc(!0,e,t,i,r,m,g,o,E||Gi.disabled),n&&rc(!1,e,t,i,r,m,g,o===mi.frontCW?mi.backCW:mi.frontCW,E||Gi.disabled)}};h?I(E,t.renderElevatedRasterBackface?mi.backCW:mi.frontCW,t.stencilModeFor3D()):I(E,mi.disabled,void 0),t.resetStencilClippingMasks()},background:function(t,i,r,n){const o=r.paint.get("background-color"),s="none"===r.paint.get("background-color-use-theme").
1constantOr("default"),a=r.paint.get("background-opacity"),l=r.paint.get("background-emissive-strength"),c="viewport"===r.paint.get("background-pitch-alignment");if(0===a)return;const h=t.context,u=h.gl,d=t.transform,f=d.tileSize,p=r.paint.get("background-pattern");let A;if(void 0!==p){if(null===p)return;if(A=t.imageManager.getPattern(e.a1.from(p.toString()),r.scope,t.style.getLut(r.scope)),!A)return}const g=!p&&1===o.a&&1===a&&t.opaquePassEnabledForLayer()?"opaque":"translucent";if(t.renderPass!==g)return;const m=Gi.disabled,_=t.depthModeForSublayer(0,"opaque"===g?_i.ReadWrite:_i.ReadOnly),y=t.colorModeForDrapableLayerRenderPass(l),x=p?"backgroundPattern":"background";let v,w=n;w||(v=t.getBackgroundTiles(),w=Object.values(v).map(e=>e.tileID)),p&&(h.activeTexture.set(u.TEXTURE0),t.imageManager.bind(t.context,r.scope));const E=[];if(t.terrain&&t.terrain.renderingToTexture&&"mrt-fallback"===t.emissiveMode&&E.push("USE_MRT1"),c){const i=t.getOrCreateProgram(x,{overrideFog:!1,overrideRtt:!0,defines:E}),n=sc,h=new e.ap(0,0,0,0,0),d=p?Ql(n,l,a,t,0,r.scope,A,c,{tileID:h,tileSize:f}):Ml(n,l,a,o.toPremultipliedRenderColor(s?null:r.lut));return void i.draw(t,u.TRIANGLES,_,m,y,mi.disabled,d,r.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments)}for(const b of w){const g=t.isTileAffectedByFog(b),w=t.getOrCreateProgram(x,{overrideFog:g,defines:E}),I=b.toUnwrapped(),C=n?b.projMatrix:t.transform.calculateProjMatrix(I);t.prepareDrawTile();const B=i?i.getTile(b):v?v[b.key]:new e.b0(b,f,d.zoom,t),D=p?Ql(C,l,a,t,0,r.scope,A,c,{tileID:b,tileSize:f}):Ml(C,l,a,o.toPremultipliedRenderColor(s?null:r.lut));t.uploadCommonUniforms(h,w,I);const{tileBoundsBuffer:T,tileBoundsIndexBuffer:M,tileBoundsSegments:Q}=t.getTileBoundsBuffers(B);w.draw(t,u.TRIANGLES,_,m,y,mi.disabled,D,r.id,T,M,Q)}},sky:function(t,i,r){const n=t._atmosphere?e.dm(t.transform.zoom):1,o=r.paint.get("sky-opacity")*n;if(0===o)return;const s=t.context,a=r.paint.get("sky-type"),l=new _i(s.gl.LEQUAL,_i.ReadOnly,[0,1]),c=t.frameCounter/1e3%1;"atmosphere"===a?"offscreen"===t.renderPass?r.needsSkyboxCapture(t)&&(function(t,i){const r=t.context,n=r.gl;let o=i.skyboxFbo;if(!o){o=i.skyboxFbo=r.createFramebuffer(32,32,1,null),i.skyboxGeometry=new yc(r),i.skyboxTexture=r.gl.createTexture(),n.bindTexture(n.TEXTURE_CUBE_MAP,i.skyboxTexture),n.texParameteri(n.TEXTURE_CUBE_MAP,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_CUBE_MAP,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_CUBE_MAP,n.TEXTURE_MIN_FILTER,n.L
1INEAR),n.texParameteri(n.TEXTURE_CUBE_MAP,n.TEXTURE_MAG_FILTER,n.LINEAR);for(let e=0;e<6;++e)n.texImage2D(n.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,n.RGBA,32,32,0,n.RGBA,n.UNSIGNED_BYTE,null)}r.bindFramebuffer.set(o.framebuffer),r.viewport.set([0,0,32,32]);const s=i.getCenter(t,!0),a=t.getOrCreateProgram("skyboxCapture"),l=new Float64Array(16);e.cB(l,.5*-Math.PI),xc(t,i,a,l,s,0),e.cB(l,.5*Math.PI),xc(t,i,a,l,s,1),e.cA(l,.5*-Math.PI),xc(t,i,a,l,s,2),e.cA(l,.5*Math.PI),xc(t,i,a,l,s,3),e.dq(l),xc(t,i,a,l,s,4),e.cB(l,Math.PI),xc(t,i,a,l,s,5),r.viewport.set([0,0,t.width,t.height])}(t,r),r.markSkyboxValid(t)):"sky"===t.renderPass&&function(e,t,i,r,n){const o=e.context,s=o.gl,a=e.transform,l=e.getOrCreateProgram("skybox");o.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_CUBE_MAP,t.skyboxTexture);const c=((e,t,i,r,n)=>({u_matrix:e,u_sun_direction:t,u_cubemap:0,u_opacity:r,u_temporal_offset:n}))(a.skyboxMatrix,t.getCenter(e,!1),0,r,n);e.uploadCommonUniforms(o,l),l.draw(e,s.TRIANGLES,i,Gi.disabled,e.colorModeForRenderPass(),mi.backCW,c,"skybox",t.skyboxGeometry.vertexBuffer,t.skyboxGeometry.indexBuffer,t.skyboxGeometry.segment)}(t,r,l,o,c):"gradient"===a&&"sky"===t.renderPass&&function(t,i,r,n,o){const s=t.context,a=s.gl,l=t.transform,c=t.getOrCreateProgram("skyboxGradient");i.skyboxGeometry||(i.skyboxGeometry=new yc(s)),s.activeTexture.set(a.TEXTURE0);let h=i.colorRampTexture;h||(h=i.colorRampTexture=new e.a_(s,i.colorRamp,a.RGBA8)),h.bind(a.LINEAR,a.CLAMP_TO_EDGE);const u=((t,i,r,n,o)=>({u_matrix:t,u_color_ramp:0,u_center_direction:i,u_radius:e.c4(r),u_opacity:n,u_temporal_offset:o}))(l.skyboxMatrix,i.getCenter(t,!1),i.paint.get("sky-gradient-radius"),n,o);t.uploadCommonUniforms(s,c),c.draw(t,a.TRIANGLES,r,Gi.disabled,t.colorModeForRenderPass(),mi.backCW,u,"skyboxGradient",i.skyboxGeometry.vertexBuffer,i.skyboxGeometry.indexBuffer,i.skyboxGeometry.segment)}(t,r,l,o,c)},custom:function(t,i,r,n){const o=t.context,s=r.implementation;if(!t.transform.projection.unsupportedLayers||!t.transform.projection.unsupportedLayers.includes("custom")||t.terrain&&(t.terrain.renderingToTexture||"offscreen"===t.renderPass)&&r.isDraped(i)){if("offscreen"===t.renderPass){const i=s.prerender;if(i){if(t.setCustomLayerDefaults(),o.setColorMode(t.colorModeForRenderPass()),"globe"===t.transform.projection.name){const r=t.transform.pointMerc;i.call(s,o.gl,t.transform.customLayerMatrix(),t.transform.getProjection(),t.transform.globeToMercatorMatrix(),e.dm(t.transform.zoom),[r.x,r.y],t.transform.pixelsPerMeterRatio)}else i.call(s,o.gl,t.transform.customLayerMatrix());o.setDirty(),t.setBaseState()}}else if("translucent"===t.renderPass){if(t.terrain&&t.terrain.renderingToTexture){const e=s.renderToTile;if(e){const i=n[0].canonical,r={x:i.x+n[0].wrap*(s.wrapTileId?0:1<<i.z),y:i.y,z:i.z};o.setDepthMode(_i.disabled),o.setStencilMode(Gi.disabled),o.setColorMode(t.colorModeForRenderPass()),t.setCustomLayerDefaults();const a=o.gl;"mrt-fallback"===t.emissiveMode&&a.drawBuffers([a.COLOR_ATTACHMENT0]),e.call(s,o.gl,r),"mrt-fallback"===t.emissiveMode&&a.drawBuffers([a.COLOR_ATTACHMENT0,a.COLOR_ATTACHMENT1]),o.setDirty(),t.setBaseState()}return}t.setCustomLayerDefaults(),o.setColorMode(t.colorModeForRenderPass()),o.setStencilMode(Gi.disabled);const i="3d"===s.renderingMode?new _i(t.context.gl.LEQUAL,_i.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,_i.ReadOnly);if(o.setDepthMode(i),"globe"===t.transform.projection.name){const i=t.transform.pointMerc;s.render(o.gl,t.transform.customLayerMatrix(),t.transform.getProjection(),t.transform.globeToMercatorMatrix(),e.dm(t.transform.zoom),[i.x,i.y],t.transform.pixelsPerMeterRatio)}else s.render(o.gl,t.transform.customLayerMatrix());o.setDirty(),t.setBaseState(),o.bindFramebuffer.set(null)}}else e.f_("Custom layers are not yet supported with this projection. Use mercator or globe to enable usage of custom layers.")}},Mc={line:function(e,t,i){if(e.hasElevatedBuckets=!1,e.hasNonElevatedBuckets=!1,void 0!==e._unevaluatedLayout.getValue("line-elevation-reference")||void 0!==e._unevaluatedLayout.getValue("line-z-offset")){if(t){const i=t.getVisibleCoordinates();for(const r of i){const i=t.getTile(r).getBucket(e);if(i&&("none"!==i.elevationType?e.hasElevatedBuckets=!0:e.hasNonElevatedBuckets=!0,e.hasElevatedBuckets&&e.hasNonElevatedBuckets))break}}}else e.hasNonElevatedBuckets=!0},raster:function(e,t,i){const r=t.getSource();if(!(r instanceof kr&&r.loaded()))return;const n=e.sourceLayer||r.rasterLayerIds&&r.rasterLayerIds[0];if(!n)return;const o=e.paint.get("raster-array-band")||r.getInitialBand(n);if(null==o)return;const s=t.getIds().map(e=>t.getTileByID(e));for(const a of s)a.updateNeeded(e.id,o)&&r.prepareTile(a,n,e.id,o)}};class Qc{constructor(t,i,r,n,o){this.context=new Fl(t,i),this.transform=r,this._tileTextures={},this.frameCopies=[],this.loadTimeStamps=[],this.frcCoverageSnapshot=null,this.frcCoverageFadeRange=null,this.frcCoverageSourceLayers=[],this.frcCoverageRenderer=io.FrcCoverageRenderer?new io.FrcCoverageRenderer:null,this._debugParams={averageFPS:0,fpsHistory:[],fpsWindow:30,dt:0,timeStamp:e.co.now(),continousRedraw:!1,enabledLayers:{},buildingsShowNormals:!1,buildingsDrawGroundAO:!0,buildingsDrawShadowPass:!0,buildingsDrawTranslucentPass:!0,showTerrainProxyTiles:!1,terrainSortTilesHiZFirst:!0,terrainDisableRenderCache:!1,forceEnablePrecipitation:!1,overrideSnowParams:!1,snowParamsOverride:null,snowRevealParamsOverride:null,snowVignetteParam
1sOverride:null,overrideRainParams:!1,rainParamsOverride:null,rainRevealParamsOverride:null,rainVignetteParamsOverride:null,overrideStarsParams:!1,starsParamsOverride:null,show3DModelFootprints:!1,showElevationIdDebug:!1,lodSwitchDistance:5e3,lodSwitchFadeDuration:.5},this.occlusionParams=new Dc,this.setup(),this.numSublayers=Hn.maxUnderzooming+Hn.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.deferredRenderGpuTimeQueries=[],this.gpuTimers={},this.frameCounter=0,this._shadowCullCache=null,this._backgroundTiles={},this.conflationActive=!1,this.replacementSource=new e.aF,this.longestCutoffRange=0,this.minCutoffZoom=0,this._fogVisible=!1,this._cachedTileFogOpacities={},this._shadowRenderer=new lr(this),this._wireframeDebugCache=new Bc,this.renderDefaultNorthPole=!0,this.renderDefaultSouthPole=!0,this.layersWithOcclusionOpacity=[];const s=new e.ay({width:1,height:1},Uint8Array.of(0,0,0,0));this.emptyDepthTexture=new e.a_(this.context,s,t.RGBA8),this._clippingActiveLastFrame=!1,this.scaleFactor=n,this.maxFrontCutoffRawStart=0,this.worldview=o,this._forceEmissiveMode=!1,this.emissiveMode="constant"}updateTerrain(e,t){const i=!!e&&!!e.terrain&&this.transform.projection.supportsTerrain;if(!(i||this._terrain&&this._terrain.enabled))return;this._terrain||(this._terrain=new ul(this,e));const r=this._terrain;this.transform.elevation=i?r:null,r.update(e,this.transform,t),this.transform.elevation&&!r.enabled&&(this.transform.elevation=null)}_updateFog(e){const t=e.fog;if(!t||"globe"===this.transform.projection.name||t.getOpacity(this.transform.pitch)<1||t.properties.get("horizon-blend")<.03)return void(this.transform.fogCullDistSq=null);const[i,r]=t.getRangeForProjection();if(i>r)return void(this.transform.fogCullDistSq=null);const n=i+.78*(r-i);this.transform.fogCullDistSq=n*n}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled||this._forceTerrainMode?this._terrain:null}get forceTerrainMode(){return this._forceTerrainMode}set forceTerrainMode(e){e&&!this._terrain&&(this._terrain=new ul(this,this.style)),this._forceTerrainMode=e}get shadowRenderer(){return this._shadowRenderer&&this._shadowRenderer.enabled?this._shadowRenderer:null}get wireframeDebugCache(){return this._wireframeDebugCache}resize(t,i){if(this.width=t*e.co.devicePixelRatio,this.height=i*e.co.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const e of this.style.order)this.style._mergedLayers[e].resize()}setup(){const t=this.context,i=new e.aQ;i.emplaceBack(0,0),i.emplaceBack(e.r,0),i.emplaceBack(0,e.r),i.emplaceBack(e.r,e.r),this.tileExtentBuffer=t.createVertexBuffer(i,e.eQ.members),this.tileExtentSegments=e.aJ.simpleSegment(0,0,4,2);const r=new e.aQ;r.emplaceBack(0,0),r.emplaceBack(e.r,0),r.emplaceBack(0,e.r),r.emplaceBack(e.r,e.r),this.debugBuffer=t.createVertexBuffer(r,e.eQ.members),this.debugSegments=e.aJ.simpleSegment(0,0,4,5);const n=new e.aQ;n.emplaceBack(-1,-1),n.emplaceBack(1,-1),n.emplaceBack(-1,1),n.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(n,e.eQ.members),this.viewportSegments=e.aJ.simpleSegment(0,0,4,2);const o=new e.aP;o.emplaceBack(0,0,0,0),o.emplaceBack(e.r,0,e.r,0),o.emplaceBack(0,e.r,0,e.r),o.emplaceBack(e.r,e.r,e.r,e.r),this.mercatorBoundsBuffer=t.createVertexBuffer(o,e.bt.members),this.mercatorBoundsSegments=e.aJ.simpleSegment(0,0,4,2);const s=new e.aT;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(s);const a=new e.aM;for(const e of[0,1,3,2,0])a.emplaceBack(e);this.debugIndexBuffer=t.createIndexBuffer(a),this.emptyTexture=new e.a_(t,new e.ay({width:1,height:1},Uint8Array.of(0,0,0,0)),t.gl.RGBA8),this.identityMat=e.bT();const l=this.context.gl;this.stencilClearMode=new Gi({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO),this.loadTimeStamps.push(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 e=this.context.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs={},this.getOrCreateProgram("clippingMask").draw(this,e.TRIANGLES,_i.disabled,this.stencilClearMode,Ji.disabled,mi.disabled,Yn(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs={})}_renderTileClippingMasks(e,t,i){if(!t||this.currentStencilSource===t.id||!e.isTileClipped()||!i||0===i.length)return;if(this._tileClippingMaskIDs&&!this.terrain){let e=!1;for(const t of i)if(void 0===this._tileClippingMaskIDs[t.key]){e=!0;break}if(!e)return}this.currentStencilSource=t.id;const r=this.context,n=r.gl;this.nextStencilID+i.length>256&&this.clearStencil(),r.setColorMode(Ji.disabled),r.setDepthMode(_i.disabled);const o=this.getOrCreateProgram("clippingMask");this._tileClippingMaskIDs={};for(const s of i){const e=t.getTile(s),i=this._tileClippingMaskIDs[s.key]=this.nextStencilID++,{tileBoundsBuffer:r,tileBoundsIndexBuffer:a,tileBoundsSegments:l}=this.getTileBoundsBuffers(e);o.draw(this,n.TRIANGLES,_i.disabled,new Gi({func:n.ALWAYS,mask:0},i,255,n.KEEP,n.KEEP,n.REPLACE),Ji.disabled,mi.disabled,Yn(s.projMatrix),"$clipping",r,a,l)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const e=this.nextStencilID++,t=this.context.gl;return new Gi({func:t.NOTEQUAL,mask:255},e,255,t.KEEP,t.KEEP,t.REPLACE)}stencilModeForClipping(e){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(e);const t=this.context.gl;return new Gi({func:t.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,t.KEEP,t.KEEP,t.REPLACE)}stencilConfigForOverlap(e){const t=this.context.gl,i=e.sort((e,t)=>
vendor: 4,541 bytes, line 1
1t.overscaledZ-e.overscaledZ),r=i.at(-1).overscaledZ,n=i[0].overscaledZ-r+1;if(n>1){this.currentStencilSource=void 0,this.nextStencilID+n>256&&this.clearStencil();const e={};for(let i=0;i<n;i++)e[i+r]=new Gi({func:t.GEQUAL,mask:255},i+this.nextStencilID,255,t.KEEP,t.KEEP,t.REPLACE);return this.nextStencilID+=n,[e,i]}return[{[r]:Gi.disabled},i]}colorModeForRenderPass(){const t=this.context.gl;if(this._showOverdrawInspector){const i=1/8;return new Ji([t.CONSTANT_COLOR,t.ONE,t.CONSTANT_COLOR,t.ONE],new e.i(i,i,i,0),[!0,!0,!0,!0])}return"opaque"===this.renderPass?Ji.unblended:Ji.alphaBlended}colorModeForDrapableLayerRenderPass(t){const i=this.context.gl;return(()=>this.style&&this.style.enable3dLights()&&this.terrain&&this.terrain.renderingToTexture)()&&"translucent"===this.renderPass?null!=t&&"mrt-fallback"!==this.emissiveMode||"constant"===this.emissiveMode?new Ji([i.ONE,i.ONE_MINUS_SRC_ALPHA,i.CONSTANT_ALPHA,i.ONE_MINUS_SRC_ALPHA],new e.i(0,0,0,null!=t?t:0),[!0,!0,!0,!0]):"dual-source-blending"===this.emissiveMode?new Ji([i.ONE,i.ONE_MINUS_SRC_ALPHA,this.context.extBlendFuncExtended.SRC1_ALPHA_WEBGL,i.ONE_MINUS_SRC_ALPHA],e.i.transparent,[!0,!0,!0,!0]):this.colorModeForRenderPass():this.colorModeForRenderPass()}depthModeForSublayer(e,t,i,r=!1){if(this.depthOcclusion)return new _i(this.context.gl.GREATER,_i.ReadOnly,this.depthRangeFor3D);if(!this.opaquePassEnabledForLayer()&&!r)return _i.disabled;const n=1-((1+this.currentLayer)*this.numSublayers+e)*this.depthEpsilon;return new _i(i||this.context.gl.LEQUAL,t,[n,n])}opaquePassEnabledForLayer(){return this.currentLayer<this.opaquePassCutoff}blitDepth(){const t=this.context.gl,i=Math.ceil(this.width),r=Math.ceil(this.height),n=this.context.bindFramebuffer.get(),o=t.getParameter(t.TEXTURE_BINDING_2D);this.depthFBO&&this.depthFBO.width===i&&this.depthFBO.height===r||(this.depthFBO&&(this.depthFBO.destroy(),this.depthFBO=void 0,this.depthTexture=void 0),0!==i&&0!==r&&(this.depthFBO=new Ll(this.context,i,r,0,"texture"),this.depthTexture=new e.a_(this.context,{width:i,height:r,data:null},t.DEPTH24_STENCIL8),this.depthFBO.depthAttachment.set(this.depthTexture.texture))),this.context.bindFramebuffer.set(n),t.bindTexture(t.TEXTURE_2D,o),this.depthFBO&&(t.bindFramebuffer(t.READ_FRAMEBUFFER,null),t.bindFramebuffer(t.DRAW_FRAMEBUFFER,this.depthFBO.framebuffer),t.blitFramebuffer(0,0,i,r,0,0,i,r,t.DEPTH_BUFFER_BIT,t.NEAREST),t.bindFramebuffer(t.FRAMEBUFFER,this.context.bindFramebuffer.current))}render(t,i){this.context.sweepPendingPrograms(),this._wireframeDebugCache.update(this.frameCounter),this.style=t,this.options=i,this.frcCoverageSnapshot&&!this.frcCoverageSnapshot.empty()&&(!this.frcCoverageRenderer&&io.FrcCoverageRenderer&&(this.frcCoverageRenderer=new io.FrcCoverageRenderer),this.frcCoverageRenderer&&this.frcCoverageRenderer.update(this.context,this.frcCoverageSnapshot.tiles));const r=this.style._mergedLayers,n=!(!this.terrain||!this.terrain.enabled),o=()=>this.style._getOrder(n);let s=o(),a=!1,l=!1,c=null,h=0,u=!1;for(const e of s){const t=r[e];"none"!==t.visibility&&("circle"===t.type?a=!0:"building"===t.type?(c=t,++h):"symbol"===t.type&&(t.hasOcclusionOpacityProperties?l=!0:a=!0))}this.updateEmissiveMode();let d=s.map(e=>r[e]);const f=this.style._mergedSourceCaches;this.imageManager=t.imageManager,this.modelManager=t.modelManager,this.symbolFadeChange=t.placement.symbolFadeChange(e.co.now()),this.imageManager.beginFrame();for(const e in f){const t=f[e];t.used&&(t.prepare(this.context),t.getSource().usedInConflation&&++h)}let p=!1;for(const e of d)e.isHidden(this.transform.zoom)||("clip"===e.type&&(p=!0),this.prepareLayer(e));const A={},g={},m={},_={},y={};for(const e in f){const t=f[e];A[e]=t.getVisibleCoordinates(),g[e]=A[e].slice().reverse(),m[e]=t.getVisibleCoordinates(!0).reverse(),_[e]=t.getShadowCasterCoordinates(),y[e]=t.sortCoordinatesByDistance(A[e])}const x=e=>{const t=this.style.getLayerSourceCache(e);return t&&t.used?t.getSource():null};if(h||p||this._clippingActiveLastFrame){const t=[],i=[];let r=0;for(const e of d)this.isSourceForClippingOrConflation(e,x(e))&&(t.push(e),i.push(r)),r++;if(t&&(p||t.length>1)||this._clippingActiveLastFrame){p=!1;const r=[];for(let n=0;n<t.length;n++){const o=t[n],s=i[n],a=this.style.getLayerSourceCache(o);if(!a||!a.used||!a.getSource().usedInConflation&&"clip"!==o.type&&"building"!==o.type)continue;let l=e.aE,c=e.a8.None;const h=[];let u=!0;if("building"===o.type)l=e.aD;else if("clip"===o.type)if(l=s,o.isHidden(this.transform.zoom))u=!1;else{if(!o.layout){u=!1;continue}
1for(const t of o.layout.get("clip-layer-types"))c|="model"===t?e.a8.Model:"symbol"===t?e.a8.Symbol:e.a8.FillExtrusion;for(const t of o.layout.get("clip-layer-scope"))h.push(e.ea(t,o.scope));p=!0}u&&r.push({layer:o.fqid,cache:a,order:l,clipMask:c,clipScope:h})}this.replacementSource.setSources(r),u=!0}}this._clippingActiveLastFrame=p,u||this.replacementSource.clear(),this.conflationActive=u,this.minCutoffZoom=0,this.longestCutoffRange=0,this.maxFrontCutoffRawStart=0,this.opaquePassCutoff=1/0,this._lastOcclusionLayer=-1,this.layersWithOcclusionOpacity=[];for(let e=0;e<d.length;e++){const t=d[e];if("none"===t.visibility)continue;const i=t.cutoffRange();if(this.longestCutoffRange=Math.max(i,this.longestCutoffRange),i>0){const e=x(t);e&&(this.minCutoffZoom=Math.max(e.minzoom,this.minCutoffZoom)),t.minzoom&&(this.minCutoffZoom=Math.max(t.minzoom,this.minCutoffZoom))}t.is3D(n)&&(this.opaquePassCutoff===1/0&&(this.opaquePassCutoff=e),this._lastOcclusionLayer=e)}const v=this.style&&this.style.fog;v?(this._fogVisible=0!==v.getOpacity(this.transform.pitch),this._fogVisible&&"globe"!==this.transform.projection.name&&(this._fogVisible=v.isVisibleOnFrustum(this.transform.cameraFrustum))):this._fogVisible=!1,this._cachedTileFogOpacities={},this.terrain&&(this.terrain.updateTileBinding(m),this.opaquePassCutoff=0,s=o(),d=s.map(e=>r[e]));const w=this._shadowRenderer;if(w){w.updateShadowParameters(this.transform,this.style.directionalLight);for(const e in f)for(const t of A[e]){let e={min:0,max:0};this.terrain&&(e=this.terrain.getMinMaxForTile(t)||e),w.addShadowReceiver(t.toUnwrapped(),e.min,e.max)}}"globe"!==this.transform.projection.name||this.globeSharedBuffers||(this.globeSharedBuffers=new e.T(this.context)),this.style.fog&&this.transform.projection.supportsFog?(this._atmosphere||(this._atmosphere=new bc),this._atmosphere.update(this)):this._atmosphere&&(this._atmosphere.destroy(),this._atmosphere=void 0);let E=!(!this.style||!this.style.snow),b=!(!this.style||!this.style.rain);if(E&&!this._snow&&io.Snow&&(this._snow=new io.Snow),!E&&this._snow&&(this._snow.destroy(),delete this._snow),b&&!this._rain&&io.Rain&&(this._rain=new io.Rain),!b&&this._rain&&(this._rain.destroy(),delete this._rain),this._snow&&this._snow.update(this),this._rain&&this._rain.update(this),c){this.buildingTileBorderManager||(this.buildingTileBorderManager=new Ic);const e=this.style.getLayerSourceCache(c);this.buildingTileBorderManager.updateBorders(e,c)}if(!re.has(this.context.gl))return;this.renderPass="offscreen";for(const e of d){const i=t.getLayerSourceCache(e);if(!e.hasOffscreenPass()||e.isHidden(this.transform.zoom))continue;const r=i?g[i.id]:void 0;("custom"===e.type||"raster"===e.type||"raster-particle"===e.type||e.isSky()||r&&r.length)&&this.renderLayer(this,i,e,r)}this.depthRangeFor3D=[0,1-(d.length+2)*this.numSublayers*this.depthEpsilon],this._shadowRenderer&&(this.renderPass="shadow",this._shadowRenderer.drawShadowPass(this.style,_)),this.context.bindFramebuffer.set(null),this.context.viewport.set([0,0,this.width,this.height]);const I="globe"===this.transform.projection.name||this.transform.isHorizonVisible(),C=(()=>{if(i.showOverdrawInspector)return e.i.black;const t=this.style.fog;if(t&&this.transform.projection.supportsFog){const i=this.style.getLut(t.scope);if(!I){const r="none"===t.properties.get("color-use-theme"),n=t.properties.get("color").toNonPremultipliedRenderColor(r?null:i).toArray01();return new e.i(...n)}if(I){const r="none"===t.properties.get("space-color-use-theme"),n=t.properties.get("space-color").toNonPremultipliedRenderColor(r?null:i).toArray01();return new e.i(...n)}}return e.i.transparent})();if(this.context.clear({color:C,depth:1}),this.clearStencil(),this._showOverdrawInspector=i.showOverdrawInspector,this.renderPass="opaque",this.style.fog&&this.transform.projection.supportsFog&&this._atmosphere&&!this._showOverdrawInspector&&I&&this._atmosphere.drawStars(this,this.style.fog),!this.terrain)for(this.currentLayer=s.length-1;this.currentLayer>=0;this.currentLayer--){const e=d[this.currentLayer],i=t.getLayerSourceCache(e);if(e.isSky())continue;const r=i?(e.is3D(n)?y:g)[i.id]:void 0;this._renderTileClippingMasks(e,i,r),this.renderLayer(this,i,e,r)}if(this.style.fog&&this.transform.projection.supportsFog&&this._atmosphere&&!this._showOverdrawInspector&&I&&this._atmosphere.drawAtmosphereGlow(this,this.style.fog),this.renderPass="sky",(!this._atmosphere||e.dm(this.transform.zoom)>0)&&("globe"===this.transform.projection.name||this.transform.isH
vendor: 4,249 bytes, line 1
1orizonVisible()))for(this.currentLayer=0;this.currentLayer<s.length;this.currentLayer++){const e=d[this.currentLayer],i=t.getLayerSourceCache(e);e.isSky()&&this.renderLayer(this,i,e,i?g[i.id]:void 0)}function B(e,t){let i;return t&&(i=("symbol"===e.type?m:e.is3D(n)?y:g)[t.id]),i}if(this.renderPass="translucent","globe"===this.transform.projection.name){for(this.renderElevatedRasterBackface=!0,this.currentLayer=0;this.currentLayer<s.length;){const e=d[this.currentLayer];if("raster"===e.type||"raster-particle"===e.type){const i=t.getLayerSourceCache(e);this.renderLayer(this,i,e,B(e,i))}++this.currentLayer}this.renderElevatedRasterBackface=!1}this.currentLayer=0,this.firstLightBeamLayer=Number.MAX_SAFE_INTEGER;const D=w?w.getGroundShadowLayerIndex():-1;let T=!1,M=-1;for(let e=0;e<s.length;++e){const t=d[e];t.isHidden(this.transform.zoom)||t.is3D(n)&&(M=e)}l&&-1===M&&(a=!0);let Q=!1;for(;this.currentLayer<s.length;){const e=d[this.currentLayer],i=t.getLayerSourceCache(e);if(e.isSky())++this.currentLayer;else if(this.terrain&&this.style.isLayerDraped(e)){if(e.isHidden(this.transform.zoom)){++this.currentLayer;continue}this.currentLayer=this.terrain.renderBatch(this.currentLayer),this._lastOcclusionLayer=Math.max(this.currentLayer,this._lastOcclusionLayer)}else{if(!Q&&e.is3D(n)&&!n){const e=this.currentLayer,t=e=>{for(this.currentLayer=0;this.currentLayer<d.length;this.currentLayer++){const t=d[this.currentLayer];if("fill"===t.type&&io.drawDepthPrepass){const i=this.style.getLayerSourceCache(t);io.drawDepthPrepass(this,i,t,B(t,i),e)}}};t("initialize"),t("reset"),this.currentLayer=e,Q=!0}if(a&&!T&&this.terrain&&!this.transform.isOrthographic&&(T=!0,this.blitDepth()),l&&-1!==M&&this.currentLayer===M+1&&!this.transform.isOrthographic&&this.blitDepth(),this.terrain||this._renderTileClippingMasks(e,i,i?A[i.id]:void 0),this.renderLayer(this,i,e,B(e,i)),!this.terrain&&w&&this.currentLayer===D){{this.clearStencil(),this.resetStencilClippingMasks();const e=this.currentLayer;for(this.currentLayer=0;this.currentLayer<d.length;this.currentLayer++){const e=d[this.currentLayer];if("fill"===e.type&&io.drawGroundShadowMask){const t=this.style.getLayerSourceCache(e);io.drawGroundShadowMask(this,t,e,B(e,t))}}this.currentLayer=e}if(w.drawGroundShadows(),this.firstLightBeamLayer<=this.currentLayer){const e=this.currentLayer;for(this.renderPass="light-beam",this.currentLayer=this.firstLightBeamLayer;this.currentLayer<=e;this.currentLayer++){const e=d[this.currentLayer];if(!e.hasLightBeamPass())continue;const i=t.getLayerSourceCache(e);this.renderLayer(this,i,e,i?g[i.id]:void 0)}this.currentLayer=e,this.renderPass="translucent"}}if(this.currentLayer>=this._lastOcclusionLayer&&this.layersWithOcclusionOpacity.length>0){const e=this.currentLayer;this.depthOcclusion=!0;for(const i of this.layersWithOcclusionOpacity){this.currentLayer=i;const e=d[this.currentLayer],r=t.getLayerSourceCache(e),n=r?g[r.id]:void 0;this.terrain||this._renderTileClippingMasks(e,r,r?A[r.id]:void 0),this.renderLayer(this,r,e,n)}this.depthOcclusion=!1,this.currentLayer=e,this.renderPass="translucent",this.layersWithOcclusionOpacity=[]}++this.currentLayer}}if(this.terrain&&this.terrain.postRender(),this._snow&&this._snow.draw(this),this._rain&&this._rain.draw(this),this.options.showTileBoundaries||this.options.showQueryGeometry||this.options.showTileAABBs){let i=null;d.forEach(e=>{const r=t.getLayerSourceCache(e);r&&!e.isHidden(this.transform.zoom)&&r.getVisibleCoordinates().length&&(!i||i.getSource().maxzoom<r.getSource().maxzoom)&&(i=r)}),i&&this.options.showTileBoundaries&&function(e,t,i,r,n,o){for(let s=0;s<i.length;s++)dc(e,t,i[s],r,0,0,o)}(this,i,i.getVisibleCoordinates(),e.i.red,0,this.options.showParseStatus)}this.options.showPadding&&function(e){const t=e.transform.padding;fc(e,e.transform.height-(t.top||0),3,ac),fc(e,t.bottom||0,3,lc),pc(e,t.left||0,3,cc),pc(e,e.transform.width-(t.right||0),3,hc);const i=e.transform.centerPoint;!function(e,t,i,r){Ac(e,t-1,i-10,2,20,r),Ac(e,t-10,i-1,20,2,r)}(e,i.x,e.transform.height-i.y,uc)}(this),this.context.setDefault(),this.frameCounter=(this.frameCounter+1)%Number.MAX_SAFE_INTEGER,this.tileLoaded&&this.options.speedIndexTiming&&(this.loadTimeStamps.push(performance.now()),this.saveC
vendor: 4,227 bytes, line 1
1anvasCopy()),u||(this.conflationActive=!1)}prepareLayer(e){this.gpuTimingStart(e);const{unsupportedLayers:t}=this.transform.projection,i=!t||!t.includes(e.type);if(Mc[e.type]&&(i||this.terrain&&"custom"===e.type)){const t=this.style.getLayerSourceCache(e);Mc[e.type](e,t,this)}this.gpuTimingEnd()}renderLayer(e,t,i,r){i.isHidden(this.transform.zoom)||("background"===i.type||"sky"===i.type||"custom"===i.type||"model"===i.type||"raster"===i.type||"raster-particle"===i.type||r&&r.length)&&(this.id=i.id,this.gpuTimingStart(i),(!e.transform.projection.unsupportedLayers||!e.transform.projection.unsupportedLayers.includes(i.type)||e.terrain&&"custom"===i.type)&&"clip"!==i.type&&"slot"!==i.type&&Tc[i.type]&&Tc[i.type](e,t,i,r,this.style.placement.variableOffsets,this.options.isInitialLoad),Tc[i.type]||(i.mayUse("HD")&&async function(){await ro(),Object.assign(Tc,{building:io.drawBuilding,"raster-particle":io.drawRasterParticle}),Object.assign(Mc,{"raster-particle":io.prepareRasterParticle})}(),i.mayUse("Standard")&&async function(){await Uo(),Object.assign(Tc,{model:No.drawModels}),Object.assign(Mc,{model:No.prepare})}()),this.gpuTimingEnd())}gpuTimingStart(e){if(!this.options.gpuTiming)return;const t=this.context.extTimerQuery,i=this.context.gl;let r=this.gpuTimers[e.id];r||(r=this.gpuTimers[e.id]={calls:0,cpuTime:0,query:i.createQuery()}),r.calls++,i.beginQuery(t.TIME_ELAPSED_EXT,r.query)}gpuTimingDeferredRenderStart(){if(this.options.gpuTimingDeferredRender){const e=this.context.extTimerQuery,t=this.context.gl,i=t.createQuery();this.deferredRenderGpuTimeQueries.push(i),t.beginQuery(e.TIME_ELAPSED_EXT,i)}}gpuTimingDeferredRenderEnd(){this.options.gpuTimingDeferredRender&&this.context.gl.endQuery(this.context.extTimerQuery.TIME_ELAPSED_EXT)}gpuTimingEnd(){this.options.gpuTiming&&this.context.gl.endQuery(this.context.extTimerQuery.TIME_ELAPSED_EXT)}collectGpuTimers(){const e=this.gpuTimers;return this.gpuTimers={},e}collectDeferredRenderGpuQueries(){const e=this.deferredRenderGpuTimeQueries;return this.deferredRenderGpuTimeQueries=[],e}queryGpuTimers(e){const t={};for(const i in e){const r=e[i],n=this.context.extTimerQuery,o=n.getQueryParameter(r.query,this.context.gl.QUERY_RESULT)/1e6;n.deleteQueryEXT(r.query),t[i]=o}return t}queryGpuTimeDeferredRender(e){if(!this.options.gpuTimingDeferredRender)return 0;const t=this.context.gl;let i=0;for(const r of e)i+=t.getQueryParameter(r,t.QUERY_RESULT)/1e6,t.deleteQuery(r);return i}translatePosMatrix(t,i,r,n,o){if(!r[0]&&!r[1])return t;const s=o?"map"===n?this.transform.angle:0:"viewport"===n?-this.transform.angle:0;if(s){const e=Math.sin(s),t=Math.cos(s);r=[r[0]*t-r[1]*e,r[0]*e+r[1]*t]}const a=[o?r[0]:e.eG(i,r[0],this.transform.zoom),o?r[1]:e.eG(i,r[1],this.transform.zoom),0],l=new Float32Array(16);return e.fQ(l,t,a),l}saveTileTexture(e){if(e.context!==this.context)return;const t=e.size[0],i=this._tileTextures[t];i?i.push(e):this._tileTextures[t]=[e]}getTileTexture(e){const t=this._tileTextures[e];return t&&t.length>0?t.pop():null}terrainRenderModeElevated(){return this.style&&!!this.style.getTerrain()&&!!this.terrain&&!this.terrain.renderingToTexture||this.forceTerrainMode}linearFloatFilteringSupported(){return null!=this.context.extTextureFloatLinear}currentGlobalDefines(e,t,i,r,n){const o=void 0===i?this.terrain&&this.terrain.renderingToTexture:i,s=void 0===r?this.terrainRenderModeElevated():r,a=void 0===n?"globe"===this.transform.projection.name:n,l=[];return this.style&&this.style.enable3dLights()&&("globeRaster"===e||"terrainRaster"===e?(l.push("LIGHTING_3D_MODE"),l.push("LIGHTING_3D_ALPHA_EMISSIVENESS")):o||l.push("LIGHTING_3D_MODE")),s&&(l.push("TERRAIN"),this.linearFloatFilteringSupported()&&l.push("TERRAIN_DEM_FLOAT_FORMAT")),a&&l.push("GLOBE"),!this._fogVisible||o||void 0!==t&&!t||l.push("FOG"),o&&l.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&l.push("OVERDRAW_INSPECTOR"),l}getOrCreateProgram(e,t){this.cache=this.cache||{};const{defines:i,config:r,overrideFog:n,overrideRtt:o,overrideTerrain:s,overrideGlobe:a,precompiled:l}=t||{},c=this.currentGlobalDefines(e,n,o,s,a).concat(i||[]),h=this.getShaderSource(e),u=io.programUniforms,d=No.programUniforms,f=Sl[e]||u&&u[e]||d&&d[e],p=Al.cacheKey(h,e,c,r);
1return this.cache[p]||(this.cache[p]=new Al(this.context,e,h,r,f,c,l)),this.cache[p]}getShaderSource(e){const t=io.shaders,i=No.shaders;return mn[e]||t&&t[e]||i&&i[e]}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=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new e.a_(this.context,this.debugOverlayCanvas,this.context.gl.RGBA8))}destroy(){this._terrain&&this._terrain.destroy(),this._atmosphere&&(this._atmosphere.destroy(),this._atmosphere=void 0),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this._wireframeDebugCache.destroy(),this.depthFBO&&(this.depthFBO.destroy(),this.depthFBO=void 0,this.depthTexture=void 0),this.emptyDepthTexture&&this.emptyDepthTexture.destroy()}prepareDrawTile(){this.terrain&&this.terrain.prepareDrawTile()}uploadCommonLightUniforms(t,i){if(this.style.enable3dLights()){const r=this.style.directionalLight,n=this.style.ambientLight;if(r&&n){const o=((t,i,r)=>{const n=t.properties.get("direction"),o="none"===t.properties.get("color-use-theme"),s=t.properties.get("color").toNonPremultipliedRenderColor(o?null:r.getLut(t.scope)).toArray01(),a=t.properties.get("intensity"),l="none"===i.properties.get("color-use-theme"),c=i.properties.get("color").toNonPremultipliedRenderColor(l?null:r.getLut(i.scope)).toArray01(),h=i.properties.get("intensity"),u=[n.x,n.y,n.z],d=e.f8(c,h),f=e.f8(s,a);return{u_lighting_ambient_color:d,u_lighting_directional_dir:u,u_lighting_directional_color:f,u_ground_radiance:dl(u,f,d)}})(r,n,this.style);i.setLightsUniformValues(t,o)}}}uploadCommonUniforms(t,i,r,n,o){if(this.uploadCommonLightUniforms(t,i),this.terrain&&this.terrain.renderingToTexture)return;const s=this.style.fog;if(s){const o=s.getOpacity(this.transform.pitch),a=((t,i,r,n,o,s,a,l,c,h,u,d)=>{const f=t.transform,p="none"===i.properties.get("color-use-theme"),A=i.properties.get("color").toNonPremultipliedRenderColor(p?null:t.style.getLut(i.scope)).toArray01();A[3]=n;const g=t.frameCounter/1e3%1,[m,_]=i.properties.get("vertical-range");return{u_fog_matrix:r?f.calculateFogTileMatrix(r):d||t.identityMat,u_fog_range:i.getRangeForProjection(),u_fog_color:A,u_fog_horizon_blend:i.properties.get("horizon-blend"),u_fog_vertical_limit:[Math.min(m,_),_],u_fog_temporal_offset:g,u_frustum_tl:o,u_frustum_tr:s,u_frustum_br:a,u_frustum_bl:l,u_globe_pos:c,u_globe_radius:h,u_viewport:u,u_globe_transition:e.dm(f.zoom),u_is_globe:+("globe"===f.projection.name)}})(this,s,r,o,this.transform.frustumCorners.TL,this.transform.frustumCorners.TR,this.transform.frustumCorners.BR,this.transform.frustumCorners.BL,this.transform.globeCenterInViewSpace,this.transform.globeRadius,[this.transform.width*e.co.devicePixelRatio,this.transform.height*e.co.devicePixelRatio],n);i.setFogUniformValues(t,a)}o&&i.setCutoffUniformValues(t,o.uniformValues)}setTileLoadedFlag(e){this.tileLoaded=e}saveCanvasCopy(){const e=this.canvasCopy();e&&(this.frameCopies.push(e),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,i=this._backgroundTiles={},r=this.transform.coveringTiles({tileSize:512});for(const n of r)i[n.key]=t[n.key]||new e.b0(n,512,this.transform.tileZoom,this,void 0,this.worldview);return i}
vendor: 4,909 bytes, line 1
1clearBackgroundTiles(){this._backgroundTiles={}}isSourceForClippingOrConflation(e,t){return!(!e.is3D(!(!this.terrain||!this.terrain.enabled))||"clip"!==e.type&&"building"!==e.type&&(e.minzoom&&e.minzoom>this.transform.zoom||(this.style._clipLayerPresent||"building"!==e.sourceLayer&&"procedural_buildings"!==e.sourceLayer)&&(!t||"batched-model"!==t.type)))}isTileAffectedByFog(e){if(!this.style||!this.style.fog)return!1;if("globe"===this.transform.projection.name)return!0;let t=this._cachedTileFogOpacities[e.key];return t||(this._cachedTileFogOpacities[e.key]=t=this.style.fog.getOpacityForTile(e)),t[0]>=Yt||t[1]>=Yt}setupDepthForOcclusion(e,t,i){const r=this.context,n=r.gl,o=!!i;var s;i||(i={u_dem:2,u_dem_prev:4,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_depth_range_unpack:[0,1],u_occluder_half_size:16,u_occlusion_depth_offset:-1e-4,u_exaggeration:0}),r.activeTexture.set(n.TEXTURE3),e&&this.depthFBO&&this.depthTexture?(this.depthTexture.bind(n.NEAREST,n.CLAMP_TO_EDGE),i.u_depth_size_inv=[1/this.depthFBO.width,1/this.depthFBO.height],i.u_depth_range_unpack=[2/((s=this.depthRangeFor3D)[1]-s[0]),-1-2*s[0]/(s[1]-s[0])],i.u_occluder_half_size=.5*this.occlusionParams.occluderSize,i.u_occlusion_depth_offset=this.occlusionParams.depthOffset):this.emptyDepthTexture.bind(n.NEAREST,n.CLAMP_TO_EDGE),r.activeTexture.set(n.TEXTURE0),o||t.setTerrainUniformValues(r,i)}updateEmissiveMode(){if(this._forceEmissiveMode)return;const e=this.style.hasDataDrivenEmissiveStrength();this.emissiveMode=e?this.context.extBlendFuncExtended?"dual-source-blending":"mrt-fallback":"constant"}}function Sc(e,t){let i=!1,r=null;const n=()=>{r=null,i&&(e(),r=setTimeout(n,t),i=!1)};return()=>(i=!0,r||n(),r)}const Pc=/(#.+)?$/;class Rc{constructor(t){this._hashName=t&&encodeURIComponent(t),e.bs(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=Sc(this._updateHashUnthrottled.bind(this),300)}addTo(e){return this._map=e,window.addEventListener("hashchange",this._onHashChange,!1),e.on("moveend",this._updateHash),this}remove(){return this._map?(this._map.off("moveend",this._updateHash),window.removeEventListener("hashchange",this._onHashChange,!1),clearTimeout(this._updateHash()),this._map=void 0,this):this}getHashString(){const e=this._map;if(!e)return"";const t=zc(e);if(this._hashName){const e=this._hashName;let i=!1;const r=location.hash.slice(1).split("&").map(r=>{const n=r.split("=")[0];return n===e?(i=!0,`${n}=${t}`):r}).filter(e=>e);return i||r.push(`${e}=${t}`),`#${r.join("&")}`}return`#${t}`}_getCurrentHash(){const e=location.hash.replace("#","");if(this._hashName){let t;return e.split("&").map(e=>e.split("=")).forEach(e=>{e[0]===this._hashName&&(t=e)}),(t&&t[1]||"").split("/")}return e.split("/")}_onHashChange(){const e=this._map;if(!e)return!1;const t=this._getCurrentHash();if(t.length>=3&&!t.some(e=>isNaN(Number(e)))){const i=e.dragRotate.isEnabled()&&e.touchZoomRotate.isEnabled()?+(t[3]||0):e.getBearing();return e.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:i,pitch:+(t[4]||0)}),!0}return!1}_updateHashUnthrottled(){history.replaceState(history.state,"",location.href.replace(Pc,this.getHashString()))}}function zc(e,t){const i=e.getCenter(),r=Math.round(100*e.getZoom())/100,n=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),o=Math.pow(10,n),s=Math.round(i.lng*o)/o,a=Math.round(i.lat*o)/o,l=e.getBearing(),c=e.getPitch();let h=t?`/${s}/${a}/${r}`:`${r}/${a}/${s}`;return(l||c)&&(h+="/"+Math.round(10*l)/10),c&&(h+=`/${Math.round(c)}`),h}const Lc={linearity:.3,easing:e.fV(0,0,.3,1)},Fc=Object.assign({deceleration:2500,maxSpeed:1400},Lc),Oc=Object.assign({deceleration:20,maxSpeed:1400},Lc),kc=Object.assign({deceleration:1e3,maxSpeed:360},Lc),Nc=Object.assign({deceleration:1e3,maxSpeed:90},Lc);class Uc{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.co.now(),settings:t})}_drainInertiaBuffer(){const t=this._inertiaBuffer,i=e.co.now();for(;t.length>0&&i-t[0].time>160;)t.shift()}_onMoveEnd(t){if(this._map._prefersReducedMotion())return;if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;const i={zoom:0,bearing:0,pitch:0,pan:new e.au(0,0),pinchAround:void 0,around:void 0};for(const{settings:e}of this._inertiaBuffer)i.zoom+=e.zoomDelta||0,i.bearing+=e.bearingDelta||0,i.pitch+=e.pitchDelta||0,e.panDelta&&i.pan._add(e.panDelta),e.around&&(i.around=e.around),e.pinchAround&&(i.pinchAround=e.pinchAround);const r=this._inertiaBuffer.at(-1).time-this._inertiaBuffer[0].time,n={};if(i.pan.mag()){const e=Hc(i.pan.mag(),r,Object.assign({},Fc,t||{}));n.offset=i.pan.mult(e.amount/i.pan.mag()),n.center=this._map.transform.center,Vc(n,e)}if(i.zoom){const e=Hc(i.zoom,r,Oc);n.zoom=this._map.transform.zoom+e.amount,Vc(n,e)}if(i.bearing){const t=Hc(i.bearing,r,kc);
vendor: 4,478 bytes, line 1
1n.bearing=this._map.transform.bearing+e.bG(t.amount,-179,179),Vc(n,t)}if(i.pitch){const e=Hc(i.pitch,r,Nc);n.pitch=this._map.transform.pitch+e.amount,Vc(n,e)}if(n.zoom||n.bearing){const e=void 0===i.pinchAround?i.around:i.pinchAround;n.around=e?this._map.unproject(e):this._map.getCenter()}return this.clear(),n.noMoveStart=!0,n}}function Vc(e,t){(!e.duration||e.duration<t.duration)&&(e.duration=t.duration,e.easing=t.easing)}function Hc(t,i,r){const{maxSpeed:n,linearity:o,deceleration:s}=r,a=e.bG(t*o/(i/1e3),-n,n),l=Math.abs(a)/(s*o);return{easing:r.easing,duration:1e3*l,amount:a*(l/2)}}class jc extends e.x{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,i,r={}){const n=x(t.getCanvasContainer(),i),o=t.unproject(n);super(e,Object.assign({point:n,lngLat:o,originalEvent:i},r)),this._defaultPrevented=!1,this.target=t}}class Gc extends e.x{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(t,i,r){const n="touchend"===t?r.changedTouches:r.touches,o=v(i.getCanvasContainer(),n),s=o.map(e=>i.unproject(e)),a=o.reduce((e,t,i,r)=>e.add(t.div(r.length)),new e.au(0,0));super(t,{points:o,point:a,lngLats:s,lngLat:i.unproject(a),originalEvent:r}),this._defaultPrevented=!1}}class Yc extends e.x{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t){super("wheel",{originalEvent:t}),this._defaultPrevented=!1}}class Wc{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){this._mousedownPos=void 0}wheel(e){return this._firePreventable(new Yc(this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new jc(e.type,this._map,e))}mouseup(e){this._map.fire(new jc(e.type,this._map,e))}preclick(e){const t=new MouseEvent("preclick",e);this._map.fire(new jc(t.type,this._map,t))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||(this.preclick(e),this._map.fire(new jc(e.type,this._map,e)))}dblclick(e){return this._firePreventable(new jc(e.type,this._map,e))}mouseover(e){this._map.fire(new jc(e.type,this._map,e))}mouseout(e){this._map.fire(new jc(e.type,this._map,e))}touchstart(e){return this._firePreventable(new Gc(e.type,this._map,e))}touchmove(e){this._map.fire(new Gc(e.type,this._map,e))}touchend(e){this._map.fire(new Gc(e.type,this._map,e))}touchcancel(e){this._map.fire(new Gc(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Jc{constructor(e){this._map=e}reset(){this._delayContextMenu=!1,this._contextMenuEvent=void 0}mousemove(e){this._map.fire(new jc(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new jc("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(e){this._delayContextMenu?this._contextMenuEvent=e:this._map.fire(new jc(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Zc{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&&(g(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active)return;const i=t,r=this._startPos,n=this._lastPos;if(!r||!n||n.equals(i)||!this._box&&i.dist(r)<this._clickTolerance)return;this._lastPos=i,this._box||(this._box=u("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",e));const o=Math.min(r.x,i.x),s=Math.max(r.x,i.x),a=Math.min(r.y,i.y),l=Math.max(r.y,i.y);this._map._requestDomTask(()=>{this._box&&(this._box.style.transform=`translate(${o}px,${a}px)`,this._box.style.width=s-o+"px",this._box.style.height=l-a+"px")})}mouseupWindow(t,i){if(!this._active)return;const r=this._startPos,n=i;if(r&&0===t.button){if(this.reset(),y(),r.x!==n.x||r.y!==n.y)return this._map.fire(new e.x("boxzoomend",{originalEvent:t})),{cameraAnimation:e=>e.fitScreenCoordinates(r,n,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",t)}}
vendor: 5,103 bytes, line 1
1keydown(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),m(),delete this._startPos,delete this._lastPos}_fireEvent(t,i){return this._map.fire(new e.x(t,{originalEvent:i}))}}function qc(e,t){const i={};for(let r=0;r<e.length;r++)i[e[r].identifier]=t[r];return i}class Kc{constructor(e){this.reset(),this.numTouches=e.numTouches}reset(){this.centroid=void 0,this.startTime=0,this.touches={},this.aborted=!1}touchstart(t,i,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),this.aborted||(0===this.startTime&&(this.startTime=t.timeStamp),r.length===this.numTouches&&(this.centroid=function(t){const i=new e.au(0,0);for(const e of t)i._add(e);return i.div(t.length)}(i),this.touches=qc(r,i)))}touchmove(e,t,i){if(this.aborted||!this.centroid)return;const r=qc(i,t);for(const n in this.touches){const e=r[n];(!e||e.dist(this.touches[n])>30)&&(this.aborted=!0)}}touchend(e,t,i){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===i.length){const e=!this.aborted&&this.centroid;if(this.reset(),e)return e}}}class Xc{constructor(e){this.singleTap=new Kc(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,i){this.singleTap.touchstart(e,t,i)}touchmove(e,t,i){this.singleTap.touchmove(e,t,i)}touchend(e,t,i){const r=this.singleTap.touchend(e,t,i);if(r){const t=e.timeStamp-this.lastTime<500,i=!this.lastTap||this.lastTap.dist(r)<30;if(t&&i||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}}}class $c{constructor(){this._zoomIn=new Xc({numTouches:1,numTaps:2}),this._zoomOut=new Xc({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,i){this._zoomIn.touchstart(e,t,i),this._zoomOut.touchstart(e,t,i)}touchmove(e,t,i){this._zoomIn.touchmove(e,t,i),this._zoomOut.touchmove(e,t,i)}touchend(e,t,i){const r=this._zoomIn.touchend(e,t,i),n=this._zoomOut.touchend(e,t,i);return 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})}):n?(this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:t.getZoom()-1,around:t.unproject(n)},{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 eh=0,th=2,ih={[eh]:1,[th]:2},rh={Control:"ctrlKey",Alt:"altKey",Shift:"shiftKey",Meta:"metaKey"};class nh{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 i=w(e);this._correctButton(e,i)&&(this._lastPoint=t,this._eventButton=i)}mousemoveWindow(e,t){const i=this._lastPoint;if(i)if(e.preventDefault(),null!=this._eventButton&&function(e,t){const i=ih[t];return void 0===e.buttons||(e.buttons&i)!==i}(e,this._eventButton))this.reset();else if(this._moved||!(t.dist(i)<this._clickTolerance))return this._moved=!0,this._lastPoint=t,this._move(i,t)}mouseupWindow(e){this._lastPoint&&w(e)===this._eventButton&&(this._moved&&y(),this.reset())}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class oh extends nh{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 sh extends nh{constructor(e){super(e),this._pitchRotateKey=e.pitchRotateKey?rh[e.pitchRotateKey]:void 0}_correctButton(e,t){return this._pitchRotateKey?0===t&&e[this._pitchRotateKey]:0===t&&e.ctrlKey||2===t}_move(e,t){const i=.8*(t.x-e.x);if(i)return this._active=!0,{bearingDelta:i}}contextmenu(e){this._pitchRotateKey||e.preventDefault()}}class ah extends nh{constructor(e){super(e),this._pitchRotateKey=e.pitchRotateKey?rh[e.pitchRotateKey]:void 0}_correctButton(e,t){return this._pitchRotateKey?0===t&&e[this._pitchRotateKey]:0===t&&e.ctrlKey||2===t}_move(e,t){const i=-.5*(t.y-e.y);if(i)return this._active=!0,{pitchDelta:i}}contextmenu(e){this._pitchRotateKey||e.preventDefault()}}class lh{constructor(t,i){this._map=t,this._el=t.getCanvasContainer(),this._minTouches=1,this._clickTolerance=i.clickTolerance||1,this.reset(),e.bs(["_addTouchPanBlocker","_showTouchPanBlockerAlert"],this)}reset(){this._active=!1,this._touches={},this._sum=new e.au(0,0)}touchstart(e,t,i){return this._calculateTransform(e,t,i)}touchmove(t,i,r){if(this._active&&!(r.length<this._minTouches)){if(this._map._cooperativeGestures&&!this._map.isMoving()){if(1===r.length&&!e.dA())return void this._showTouchPanBlockerAlert();
vendor: 4,240 bytes, line 1
1"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}return t.cancelable&&t.preventDefault(),this._calculateTransform(t,i,r)}}touchend(e,t,i){this._calculateTransform(e,t,i),this._active&&i.length<this._minTouches&&this.reset()}touchcancel(){this.reset()}_calculateTransform(t,i,r){r.length>0&&(this._active=!0);const n=qc(r,i),o=new e.au(0,0),s=new e.au(0,0);let a=0;for(const e in n){const t=n[e],i=this._touches[e];i&&(o._add(t),s._add(t.sub(i)),a++,n[e]=t)}if(this._touches=n,a<this._minTouches||!s.mag())return;const l=s.div(a);return this._sum._add(l),this._sum.mag()<this._clickTolerance?void 0:{around:o.div(a),panDelta:l}}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=u("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(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=window.setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show"),this._alertContainer.removeAttribute("role")},500)}}class ch{constructor(){this.reset()}reset(){this._active=!1,this._firstTwoTouches=void 0}_start(e){}_move(e,t,i){return{}}touchstart(e,t,i){this._firstTwoTouches||i.length<2||(this._firstTwoTouches=[i[0].identifier,i[1].identifier],this._start([t[0],t[1]]))}touchmove(e,t,i){const r=this._firstTwoTouches;if(!r)return;e.preventDefault();const[n,o]=r,s=hh(i,t,n),a=hh(i,t,o);if(!s||!a)return;const l=this._aroundCenter?null:s.add(a).div(2);return this._move([s,a],l,e)}touchend(e,t,i){if(!this._firstTwoTouches)return;const[r,n]=this._firstTwoTouches,o=hh(i,t,r),s=hh(i,t,n);o&&s||(this._active&&y(),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 hh(e,t,i){for(let r=0;r<e.length;r++)if(e[r].identifier===i)return t[r]}function uh(e,t){return Math.log2(e/t)}class dh extends ch{reset(){super.reset(),this._distance=0,this._startDistance=0}_start(e){this._startDistance=this._distance=e[0].dist(e[1])}_move(e,t){const i=this._distance;if(this._distance=e[0].dist(e[1]),this._active||!(Math.abs(uh(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:uh(this._distance,i),pinchAround:t}}}function fh(e,t){return 180*e.angleWith(t)/Math.PI}class ph extends ch{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 i=this._vector;if(this._vector=e[0].sub(e[1]),i&&(this._active||!this._isBelowThreshold(this._vector)))return this._active=!0,{bearingDelta:fh(this._vector,i),pinchAround:t}}_isBelowThreshold(e){this._minDiameter=Math.min(this._minDiameter,e.mag());const t=25/(Math.PI*this._minDiameter)*360,i=this._startVector;if(!i)return!1;const r=fh(e,i);return Math.abs(r)<t}}function Ah(e){return Math.abs(e.y)>Math.abs(e.x)}class gh extends ch{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,Ah(e[0].sub(e[1]))&&(this._valid=!1)}_move(t,i,r){const n=this._lastPoints;if(!n)return;const o=t[0].sub(n[0]),s=t[1].sub(n[1]);return this._map._cooperativeGestures&&!e.dA()&&r.touches.length<3||(this._val
vendor: 4,157 bytes, line 1
1id=this.gestureBeginsVertically(o,s,r.timeStamp),!this._valid)?void 0:(this._lastPoints=t,this._active=!0,{pitchDelta:(o.y+s.y)/2*-.5})}gestureBeginsVertically(e,t,i){if(void 0!==this._valid)return this._valid;const r=e.mag()>=2,n=t.mag()>=2;if(!r&&!n)return;if(!r||!n)return null==this._firstMove&&(this._firstMove=i),i-this._firstMove<100&&void 0;const o=e.y>0==t.y>0;return Ah(e)&&Ah(t)&&o}}const mh={panStep:100,bearingStep:15,pitchStep:10};class _h{constructor(){const e=mh;this._panStep=e.panStep,this._bearingStep=e.bearingStep,this._pitchStep=e.pitchStep,this._rotationDisabled=!1,this._panDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,i=0,r=0,n=0,o=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?i=-1:(e.preventDefault(),n=-1);break;case 39:e.shiftKey?i=1:(e.preventDefault(),n=1);break;case 38:e.shiftKey?r=1:(e.preventDefault(),o=-1);break;case 40:e.shiftKey?r=-1:(e.preventDefault(),o=1);break;default:return}return this._rotationDisabled&&(i=0,r=0),this._panDisabled&&(n=0,o=0),{cameraAnimation:s=>{const a=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:yh,zoom:t?Math.round(a)+t*(e.shiftKey?2:1):a,bearing:s.getBearing()+i*this._bearingStep,pitch:s.getPitch()+r*this._pitchStep,offset:[-n*this._panStep,-o*this._panStep],center:s.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}disablePan(){this._panDisabled=!0}enablePan(){this._panDisabled=!1}}function yh(e){return e*(2-e)}const xh=4.000244140625,vh=1/450,wh=/(Mac|iPad)/i;class Eh{constructor(t,i){this._map=t,this._el=t.getCanvasContainer(),this._handler=i,this._delta=0,this._lastDelta=0,this._defaultZoomRate=.01,this._wheelZoomRate=vh,e.bs(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert"],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()||e.dA()))return void this._showBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let i=t.deltaMode===WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY;const r=e.co.now(),n=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==i&&i%xh===0?this._type="wheel":0!==i&&Math.abs(i)<4?this._type="trackpad":n>400?(this._type=null,this._lastValue=i,this._timeout=window.setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(n*i)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,i+=this._lastValue)),t.shiftKey&&i&&(i/=4),this._type&&(this._lastWheelEvent=t,this._delta-=i,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=x(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;"wheel"===this._type&&t.projection.wrap&&(t._center.lng>
vendor: 10,542 bytes, line 1
1=180||t._center.lng<=-180)&&(this._prevEase=null,this._easing=null,this._lastWheelEvent=null,this._lastWheelEventTime=0);const i=()=>t._terrainEnabled()&&this._aroundCoord?t.computeZoomRelativeTo(this._aroundCoord):t.zoom;if(0!==this._delta){const e="wheel"===this._type&&Math.abs(this._delta)>xh?this._wheelZoomRate:this._defaultZoomRate;let r=2/(1+Math.exp(-Math.abs(this._delta*e)));this._delta<0&&0!==r&&(r=1/r);const n=i(),o=Math.pow(2,n),s="number"==typeof this._targetZoom?t.zoomScale(this._targetZoom):o;this._targetZoom=Math.min(t.maxZoom,Math.max(t.minZoom,t.scaleZoom(s*r))),"wheel"===this._type&&(this._startZoom=n,this._easing=this._smoothOutEasing(200)),this._lastDelta=this._delta,this._delta=0}const r="number"==typeof this._targetZoom?this._targetZoom:i(),n=this._startZoom,o=this._easing;let s,a=!1;if("wheel"===this._type&&n&&o){const t=Math.min((e.co.now()-this._lastWheelEventTime)/200,1),i=o(t);s=e.dY(n,r,i),t<1?this._frameId||(this._frameId=!0):a=!0}else s=r,a=!0;this._active=!0,a&&(this._active=!1,this._finishTimeout=window.setTimeout(()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200));let l=s-i();return l*this._lastDelta<0&&(l=0),{noInertia:!0,needsRenderFrame:!a,zoomDelta:l,around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(t){let i=e.ca;if(this._prevEase){const t=this._prevEase,r=(e.co.now()-t.start)/t.duration,n=t.easing(r+.01)-t.easing(r),o=.27/Math.sqrt(n*n+1e-4)*.01,s=Math.sqrt(.0729-o*o);i=e.fV(o,s,.25,1)}return this._prevEase={start:e.co.now(),duration:t,easing:i},i}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=u("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=wh.test(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`)}_showBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=window.setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.removeAttribute("role")},200)}}class bh{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 Ih{constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(e,t){return e.preventDefault(),{cameraAnimation:i=>{i.easeTo({duration:300,zoom:i.getZoom()+(e.shiftKey?-1:1),around:i.unproject(t)},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Ch{constructor(){this._tap=new Xc({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,i){this._swipePoint||(this._tapTime&&e.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?i.length>0&&(this._swipePoint=t[0],this._swipeTouch=i[0].identifier):this._tap.touchstart(e,t,i))}touchmove(e,t,i){if(this._tapTime){if(this._swipePoint){if(i[0].identifier!==this._swipeTouch)return;const r=t[0],n=r.y-this._swipePoint.y;return this._swipePoint=r,e.preventDefault(),this._active=!0,{zoomDelta:n/128}}}else this._tap.touchmove(e,t,i)}touchend(e,t,i){this._tapTime?this._swipePoint&&0===i.length&&this.reset():this._tap.touchend(e,t,i)&&(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 Bh{constructor(e,t,i){this._el=e,this._mousePan=t,this._touchPan=i}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 Dh{constructor(e,t,i){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=i,this._pitchDisabled=!1}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&!this._pitchDisabled&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._pitchDisabled||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}disablePitch(){this._pitchDisabled=!0,this._mousePitch.disable()}enablePitch(){this._pitchDisabled=!1,this._pitchWithRotate&&this._mouseRotate.isEnabled()&&this._mousePitch.enable()}}class Th{constructor(e,t,i,r){this._el=e,this._touchZoom=t,this._touchRotate=i,this._tapDragZoom=r,this._rotationDisabled=!1,this._tapDragZoomDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoomDisabled||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._tapDragZoomDisabled||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()}disableTapDragZoom(){this._tapDragZoomDisabled=!0,this._tapDragZoom.disable()}enableTapDragZoom(){this._tapDragZoomDisabled=!1,this._touchZoom.isEnabled()&&this._tapDragZoom.enable()}}const Mh=e=>e.zoom||e.drag||e.pitch||e.rotate;class Qh extends e.x{}class Sh{constructor(){this.constants=[1,1,.01],this.radius=0}setup(t,i){const r=e.fx([],i,t);this.radius=e.dW(r[2]<0?e.c6([],r,this.constants):[r[0],r[1],0])}projectRay(t){e.c6(t,t,this.constants),e.ex(t,t),e.ep(t,t,this.constants);const i=e.fa([],t,this.radius);if(i[2]>0){const t=e.fa([],[0,0,1],e.c7(i,[0,0,1])),r=e.fa([],e.ex([],[i[0],i[1],0]),this.radius),n=e.bj([],i,e.fa([],e.fx([],e.bj([],r,t),i),2));i[0]=n[0],i[1]=n[1]}return i}}function Ph(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}class Rh{constructor(t,i){this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Uc(t),this._bearingSnap=i.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new Sh,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(i),e.bs(["handleEvent","handleWindowEvent"],this);const r=this._el;this._listeners=[[r,"touchstart",{passive:!0}],[r,"touchmove",{passive:!1}],[r,"touchend",void 0],[r,"touchcancel",void 0],[r,"mousedown",void 0],[r,"mousemove",void 0],[r,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[r,"mouseover",void 0],[r,"mouseout",void 0],[r,"dblclick",void 0],[r,"click",void 0],[r,"keydown",{capture:!1}],[r,"keyup",void 0],[r,"wheel",{passive:!1}],[r,"contextmenu",void 0],[window,"blur",void 0]];for(const[e,n,o]of this._listeners){const t=e===document?this.handleWindowEvent:this.handleEvent;e.addEventListener(n,t,o)}}destroy(){for(const[e,t,i]of this._listeners){const r=e===document?this.handleWindowEvent:this.handleEvent;e.removeEventListener(t,r,i)}}_addDefaultHandlers(e){const t=this._map,i=t.getCanvasContainer();this._add("mapEvent",new Wc(t,e));const r=t.boxZoom=new Zc(t,e);this._add("boxZoom",r);const n=new $c,o=new Ih;t.doubleClickZoom=new bh(o,n),this._add("tapZoom",n),this._add("clickZoom",o);const s=new Ch;this._add("tapDragZoom",s);const a=t.touchPitch=new gh(t);this._add("touchPitch",a);const l=new sh(e),c=new ah(e);t.dragRotate=new Dh(e,l,c),this._add("mouseRotate",l,["mousePitch"]),this._add("mousePitch",c,["mouseRotate"]);const h=new oh(e),u=new lh(t,e);t.dragPan=new Bh(i,h,u),this._add("mousePan",h),this._add("touchPan",u,["touchZoom","touchRotate"]);const d=new ph,f=new dh;t.touchZoomRotate=new Th(i,f,d,s),this._add("touchRotate",d,["touchPan","touchZoom"]),this._add("touchZoom",f,["touchPan","touchRotate"]),this._add("blockableMapEvent",new Jc(t));const p=t.scrollZoom=new Eh(t,this);this._add("scrollZoom",p,["mousePan"]);const A=t.keyboard=new _h;this._add("keyboard",A);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,i){this._handlers.push({handlerName:e,handler:t,allowed:i}),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=[],this._originalZoom=void 0}}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!!Mh(this._eventsInProgress)||this.isZooming()}_isDragging(){return!!this._eventsInProgress.drag}_blockedByActive(e,t,i){for(const r in e)if(!(r===i||t&&t.includes(r)))return!0;return!1}handleWindowEvent(e){this.handleEvent(e,`${e.type}Window`)}_getMapTouches(e){const t=[];for(const i of e)this._el.contains(i.target)&&t.push(i);return t}handleEvent(e,t){this._updatingCamera=!0;const i="renderFrame"===e.type,r=i?void 0:e,n={needsRenderFrame:!1},o={},s={},a=e.touches?this._getMapTouches(e.touches):void 0,l=a?v(this._el,a):i?void 0:x(this._el,e);for(const{handlerName:u,handler:d,allowed:f}of this._handlers){if(!d.isEnabled())continue;let i;this._blockedByActive(s,f,u)?d.reset():d[t||e.type]&&(i=d[t||e.type](e,l,a),this.mergeHandlerResult(n,o,i,u,r),i&&i.needsRenderFrame&&this._triggerRe
vendor: 4,117 bytes, line 1
1nderFrame()),(i||d.isActive())&&(s[u]=d)}const c={};for(const u in this._previousActiveHandlers)s[u]||(c[u]=r);this._previousActiveHandlers=s,(Object.keys(c).length||Ph(n))&&(this._changes.push([n,o,c]),this._triggerRenderFrame()),(Object.keys(s).length||Ph(n))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:h}=n;h&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],h(this._map))}mergeHandlerResult(e,t,i,r,n){if(!i)return;Object.assign(e,i);const o={handlerName:r,originalEvent:i.originalEvent||n};void 0!==i.zoomDelta&&(t.zoom=o),void 0!==i.panDelta&&(t.drag=o),void 0!==i.pitchDelta&&(t.pitch=o),void 0!==i.bearingDelta&&(t.rotate=o)}_applyChanges(){const t={},i={},r={};for(const[n,o,s]of this._changes)n.panDelta&&(t.panDelta=(t.panDelta||new e.au(0,0))._add(n.panDelta)),n.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+n.zoomDelta),n.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+n.bearingDelta),n.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+n.pitchDelta),void 0!==n.around&&(t.around=n.around),void 0!==n.aroundCoord&&(t.aroundCoord=n.aroundCoord),void 0!==n.pinchAround&&(t.pinchAround=n.pinchAround),n.noInertia&&(t.noInertia=n.noInertia),Object.assign(i,o),Object.assign(r,s);this._updateMapTransform(t,i,r),this._changes=[]}_updateMapTransform(t,i,r){const n=this._map,o=n.transform,s=e=>[e.x,e.y,e.z];if((()=>{const e=this._eventsInProgress.drag;return e&&!this._handlersById[e.handlerName].isActive()})()&&!Ph(t)){const e=o.zoom;o.cameraElevationReference="sea",null!=this._originalZoom&&o._orthographicProjectionAtLowPitch&&"globe"!==o.projection.name&&0===o.pitch?(o.cameraElevationReference="ground",o.zoom=this._originalZoom):(o.recenterOnTerrain(),o.cameraElevationReference="ground"),e!==o.zoom&&this._map._update(!0)}if(o._isCameraConstrained&&n._stop(!0),!Ph(t))return void this._fireEvents(i,r,!0);let{panDelta:a,zoomDelta:l,bearingDelta:c,pitchDelta:h,around:u,aroundCoord:d,pinchAround:f}=t;o._isCameraConstrained&&(l>0&&(l=0),o._isCameraConstrained=!1),void 0!==f&&(u=f),(l||(e=>i[e]&&!this._eventsInProgress[e])("drag"))&&u&&(this._dragOrigin=s(o.pointCoordinate3D(u)),this._originalZoom=o.zoom,this._trackingEllipsoid.setup(o._camera.position,this._dragOrigin)),o.cameraElevationReference="sea",n._stop(!0),u=u||n.transform.centerPoint,c&&(o.bearing+=c),h&&(o.pitch+=h),o._updateCameraState();const p=[0,0,0];if(a)if("mercator"===o.projection.name){const e=this._trackingEllipsoid.projectRay(o.screenPointToMercatorRay(u).dir),t=this._trackingEllipsoid.projectRay(o.screenPointToMercatorRay(u.sub(a)).dir);p[0]=t[0]-e[0],p[1]=t[1]-e[1]}else{const t=o.pointCoordinate(u);if("globe"===o.projection.name){a=a.rotate(-o.angle);const i=o._pixelsPerMercatorPixel/o.worldSize;p[0]=-a.x*e.ej(e.dT(t.y))*i,p[1]=-a.y*e.ej(o.center.lat)*i}else{const e=o.pointCoordinate(u.sub(a));t&&e&&(p[0]=e.x-t.x,p[1]=e.y-t.y)}}const A=o.zoom,g=[0,0,0];if(l){const t=s(d||o.pointCoordinate3D(u)),i={dir:e.ex([],e.fx([],t,o._camera.position))};if(i.dir[2]<0){const r=o.zoomDeltaToMovement(t,l);e.fa(g,i.dir,r)}}const m=e.bj(p,p,g);o._translateCameraConstrained(m),l&&Math.abs(o.zoom-A)>1e-4&&o.recenterOnTerrain(),o.cameraElevationReference="ground",this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(i,r,!0)}_fireEvents(t,i,r){const n=Mh(this._eventsInProgress),o=Mh(t),s={};for(const e in t){const{originalEvent:i}=t[e];this._eventsInProgress[e]||(s[`${e}start`]=i),this._eventsInProgress[e]=t[e]}!n&&o&&this._fireEvent("movestart",o.originalEvent);for(const e in s)this._fireEvent(e,s[e]);o&&this._fireEvent("move",o.originalEvent);for(const e in t){const{originalEvent:i}=t[e];this._fireEvent(e,i)}const a={};let l;for(const e in this._eventsInProgress){const{handlerName:t,originalEvent:r}=this._eventsInProgress[e];this._handlersById[t].isActive()||(delete this._eventsInProgress[e],l=i[t]||r,a[`${e}end`]=l)}for(const e in a)this._fireEvent(e,a[e]);const c=Mh(this._eventsInProgress);if(r&&(n||o)&&!c){this._updatingCamera=!0;const t=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),i=e=>0!==e&&-this._bearingSnap<e&&e<this._bearingSnap;
1t?(i(t.bearing||this._map.getBearing())&&(t.bearing=0),this._map.easeTo(t,{originalEvent:l})):(this._map.fire(new e.x("moveend",{originalEvent:l})),i(this._map.getBearing())&&this._map.resetNorth()),this._updatingCamera=!1}}_fireEvent(t,i){this._map.fire(new e.x(t,i?{originalEvent:i}:{}))}_requestFrame(){return this._map.triggerRepaint(),this._map._renderTaskQueue.add(e=>{this._frameId=void 0,this.handleEvent(new Qh("renderFrame",{timeStamp:e})),this._applyChanges()})}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}const zh="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class Lh extends e.y{constructor(t,i){super(),this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=i.bearingSnap,this._respectPrefersReducedMotion=!1!==i.respectPrefersReducedMotion,e.bs(["_renderFrameCallback"],this)}getCenter(){return new e.ab(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}panBy(t,i,r){return t=e.au.convert(t).mult(-1),this.panTo(this.transform.center,Object.assign({offset:t},i),r)}panTo(e,t,i){return this.easeTo(Object.assign({center:e},t),i)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(e,t,i){return this.easeTo(Object.assign({zoom:e},t),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(e,t,i){return this.easeTo(Object.assign({bearing:e},t),i)}resetNorth(e,t){return this.rotateTo(0,Object.assign({duration:1e3},e),t),this}resetNorthPitch(e,t){return this.easeTo(Object.assign({bearing:0,pitch:0,duration:1e3},e),t),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,i){t=e.ac.convert(t);const r=i&&i.bearing||0,n=i&&i.pitch||0,o=t.getNorthWest(),s=t.getSouthEast();return this._cameraForBounds(this.transform,o,s,r,n,i)}_extendPadding(e){const t={top:0,right:0,bottom:0,left:0};return null==e?Object.assign({},t,this.transform.padding):"number"==typeof e?{top:e,bottom:e,right:e,left:e}:Object.assign({},t,e)}_extendCameraOptions(e){return(e=Object.assign({offset:[0,0],maxZoom:this.transform.maxZoom},e)).padding=this._extendPadding(e.padding),e}_minimumAABBFrustumDistance(e,t){const i=t.max[0]-t.min[0],r=t.max[1]-t.min[1];return i/r>e.aspect?i/(2*Math.tan(.5*e.fovX)*e.aspect):r/(2*Math.tan(.5*e.fovY)*e.aspect)}_cameraForBoundsOnGlobe(t,i,r,n,o,s){const a=t.clone(),l=this._extendCameraOptions(s);a.bearing=n,a.pitch=o;const c=e.ab.convert(i),h=e.ab.convert(r),u=.5*(c.lat+h.lat),d=.5*(c.lng+h.lng),f=e.dU(u,d),p=e.ex([],f),A=e.ex([],e.c1([],p,[0,1,0])),g=e.c1([],A,p),m=[A[0],A[1],A[2],0,g[0],g[1],g[2],0,p[0],p[1],p[2],0,0,0,0,1],_=[f,e.dU(c.lat,c.lng),e.dU(h.lat,c.lng),e.dU(h.lat,h.lng),e.dU(c.lat,h.lng),e.dU(u,c.lng),e.dU(u,h.lng),e.dU(c.lat,d),e.dU(h.lat,d)];let y=e.A.fromPoints(_.map(t=>[e.c7(A,t),e.c7(g,t),e.c7(p,t)]));const x=e.fL([],y.center,m);0===e.fu(x)&&e.ff(x,0,0,1),e.ex(x,x),e.fa(x,x,e.P),a.center=e.cd(x);const v=a.getWorldToCameraMatrix(),w=e.dr(new Float64Array(16),v);y=e.A.applyTransform(y,e.er([],v,m));const E=this._extendAABB(y,a,l,n);if(!E)return void e.f_("Map cannot fit within canvas with the given bounds, padding, and/or offset.");y=E,e.fL(x,x,v);const b=.5*(y.max[2]-y.min[2]),I=this._minimumAABBFrustumDistance(a,y),C=e.fa([],[0,0,1],b),B=e.bj(C,x,C),D=I+(0===a.pitch?0:e.c5(x,B)),T=a.globeCenterInViewSpace,M=e.fx([],x,[T[0],T[1],T[2]]);e.ex(M,M),e.fa(M,M,D);const Q=e.bj([],x,M);e.fL(Q,Q,w);const S=e.c9/e.P,P=e.dW(Q),R=e.em(Math.max(P*S-e.c9,Number.EPSILON),0),z=Math.min(a.zoomFromMercatorZAdjusted(R),l.maxZoom);return z>.5*(e.S+e.R)?(a.setProjection({name:"mercator"}),a.zoom=z,this._cameraForBounds(a,i,r,n,o,s)):{center:a.center,zoom:z,bearing:n,pitch:o}}_extendAABB(t,i,r,n){const o=.5*((r.padding.left||0)+(r.padding.right||0)),s=.5*((r.padding.top||0)+(r.padding.bottom||0)),a=s,l=o,c=o,h=s,u=i.width-(l+c),d=i.height-(a+h),f=e.fx([],t.max,t.min),p=Math.min(u/f[0],d/f[1]),A=Math.min(i.scaleZoom(i.scale*p),r.maxZoom);if(isNaN(A))return null;const g=i.scale/i.zoomScale(A),m=new e.A([t.min[0]-l*g,t.min[1]-h*g,t.min[2]],[t.max[0]+c*g,t.max[1]+a*g,t.max[2]]),_=("number"==typeof r.offset.x&&"number"==typeof r.offset.y?new e.au(r.offset.x,r.offset.y):e.au.convert(r.offset)).rotate(-e.c4(n));return m.center[0]-=_.x*g,m.center[1]+=_.y*g,m}queryTerrainElevation(t,i){const r=this.transform.elevation;return r?(i=Object.assign({},{exaggerated:!0},i),r.getAtPoint(e.ag.fromLngLat(t),null,i.exaggerated)):null}
vendor: 5,029 bytes, line 1
1_cameraForBounds(t,i,r,n,o,s){if("globe"===t.projection.name)return this._cameraForBoundsOnGlobe(t,i,r,n,o,s);const a=t.clone(),l=this._extendCameraOptions(s);a.bearing=n,a.pitch=o;const c=e.ab.convert(i),h=e.ab.convert(r),u=new e.ab(c.lng,h.lat),d=new e.ab(h.lng,c.lat),f=a.project(c),p=a.project(h),A=this.queryTerrainElevation(c),g=this.queryTerrainElevation(h),m=this.queryTerrainElevation(u),_=this.queryTerrainElevation(d),y=[[f.x,f.y,Math.min(A||0,g||0,m||0,_||0)],[p.x,p.y,Math.max(A||0,g||0,m||0,_||0)]];let x=e.A.fromPoints(y);const v=a.getWorldToCameraMatrix(),w=e.dr(new Float64Array(16),v);x=e.A.applyTransform(x,v);const E=this._extendAABB(x,a,l,n);if(!E)return void e.f_("Map cannot fit within canvas with the given bounds, padding, and/or offset.");x=E;const b=.5*e.fx([],x.max,x.min)[2],I=this._minimumAABBFrustumDistance(a,x),C=[0,0,1,0];e.fM(C,C,v),e.ez(C,C);const B=e.fa([],C,I+b),D=e.bj([],x.center,B);e.fL(x.center,x.center,w),e.fL(D,D,w);const T=a.unproject(new e.au(x.center[0],x.center[1])),M=e.dc(a.projection,T),Q=Math.pow(2,M),S=Math.min(a._zoomFromMercatorZ(D[2]*a.pixelsPerMeter*Q/a.worldSize),l.maxZoom);return a.mercatorFromTransition&&S<.5*(e.S+e.R)?(a.setProjection({name:"globe"}),a.zoom=S,this._cameraForBounds(a,i,r,n,o,s)):{center:T,zoom:S,bearing:n,pitch:o}}fitBounds(e,t,i){const r=this.cameraForBounds(e,t);return this._fitInternal(r,t,i)}fitScreenCoordinates(t,i,r,n,o){const s=e.au.convert(t),a=e.au.convert(i),l=new e.au(Math.min(s.x,a.x),Math.min(s.y,a.y)),c=new e.au(Math.max(s.x,a.x),Math.max(s.y,a.y));if("mercator"===this.transform.projection.name&&this.transform.anyCornerOffEdge(s,a))return this;const h=this.transform.pointLocation3D(l),u=this.transform.pointLocation3D(c),d=this.transform.pointLocation3D(new e.au(l.x,c.y)),f=this.transform.pointLocation3D(new e.au(c.x,l.y)),p=[Math.min(h.lng,u.lng,d.lng,f.lng),Math.min(h.lat,u.lat,d.lat,f.lat)],A=[Math.max(h.lng,u.lng,d.lng,f.lng),Math.max(h.lat,u.lat,d.lat,f.lat)],g=n&&n.pitch?n.pitch:this.getPitch(),m=this._cameraForBounds(this.transform,p,A,r,g,n);return this._fitInternal(m,n,o)}_fitInternal(e,t,i){return e?(t=Object.assign(e,t)).linear?this.easeTo(t,i):this.flyTo(t,i):this}jumpTo(t,i){this.stop();const r=t.preloadOnly?this.transform.clone():this.transform;let n=!1,o=!1,s=!1;"zoom"in t&&r.zoom!==+t.zoom&&(n=!0,r.zoom=+t.zoom),void 0!==t.center&&(r.center=e.ab.convert(t.center)),"bearing"in t&&r.bearing!==+t.bearing&&(o=!0,r.bearing=+t.bearing),"pitch"in t&&r.pitch!==+t.pitch&&(s=!0,r.pitch=+t.pitch);const a="number"==typeof t.padding?this._extendPadding(t.padding):t.padding;if(null!=t.padding&&!r.isPaddingEqual(a))if(!1===t.retainPadding){const e=r.clone();e.padding=a,r.setLocationAtPoint(r.center,e.centerPoint)}else r.padding=a;return t.preloadOnly?(this._preloadTiles(r),this):(this.fire(new e.x("movestart",i)).fire(new e.x("move",i)),n&&this.fire(new e.x("zoomstart",i)).fire(new e.x("zoom",i)).fire(new e.x("zoomend",i)),o&&this.fire(new e.x("rotatestart",i)).fire(new e.x("rotate",i)).fire(new e.x("rotateend",i)),s&&this.fire(new e.x("pitchstart",i)).fire(new e.x("pitch",i)).fire(new e.x("pitchend",i)),this.fire(new e.x("moveend",i)))}getFreeCameraOptions(){return this.transform.projection.supportsFreeCamera||e.f_(zh),this.transform.getFreeCameraOptions()}setFreeCameraOptions(t,i){const r=this.transform;if(!r.projection.supportsFreeCamera)return e.f_(zh),this;this.stop();const n=r.zoom,o=r.pitch,s=r.bearing;r.setFreeCameraOptions(t);const a=n!==r.zoom,l=o!==r.pitch,c=s!==r.bearing;return this.fire(new e.x("movestart",i)).fire(new e.x("move",i)),a&&this.fire(new e.x("zoomstart",i)).fire(new e.x("zoom",i)).fire(new e.x("zoomend",i)),c&&this.fire(new e.x("rotatestart",i)).fire(new e.x("rotate",i)).fire(new e.x("rotateend",i)),l&&this.fire(new e.x("pitchstart",i)).fire(new e.x("pitch",i)).fire(new e.x("pitchend",i)),this.fire(new e.x("moveend",i)),this}easeTo(t,i){this._stop(!1,t.easeId),(!1===(t=Object.assign({offset:[0,0],duration:500,easing:e.ca},t)).animate||this._prefersReducedMotion(t))&&(t.duration=0);const r=this.transform,n=this.getZoom(),o=this.getBearing(),s=this.getPitch(),a=this.getPadding(),l="zoom"in t?+t.zoom:n,c="bearing"in t?this._normalizeBearing(t.bearing,o):o,h="pitch"in t?+t.pitch:s,u=this._extendPadding(t.padding),d=e.au.convert(t.offset);let f,p,A;if("globe"===r.projection.name){const i=e.ag.fromLngLat(r.center),n=d.rotate(-r.angle);i.x+=n.x/r.worldSize,i.y+=n.y/r.worldSize;const o=i.toLngLat(),s=e.ab.convert(t.center||o);this._normalizeCenter(s),f=r.centerPoint.add(n),p=new e.au(i.x,i.y).mult(r.worldSize),A=new e.au(e.ek(s.lng),e.el(s.lat)).mult(r.worldSize).sub(p)}else{f=r.centerPoint.add(d);const i=r.pointLocation(f),n=e.ab.convert(t.center||i);this._normalizeCenter(n),p=r.project(i),A=r.project(n).sub(p)}const g=r.zoomScale(l-n);let m,_;t.around&&(m=e.ab.convert(t.around),_=r.locationPoint(m));const y=this._zooming||l!==n,x=this._rotating||o!==c,v=this._pitching||h!==s,w=!r.isPaddingEqual(u),E=!1===t.retainPadding?r.clone():r,b=r=>b=>
vendor: 7,129 bytes, line 1
1{if(y&&(r.zoom=e.dY(n,l,b)),x&&(r.bearing=e.dY(o,c,b)),v&&(r.pitch=e.dY(s,h,b)),w&&(E.interpolatePadding(a,u,b),f=E.centerPoint.add(d)),m)r.setLocationAtPoint(m,_);else{const e=r.zoomScale(r.zoom-n),t=l>n?Math.min(2,g):Math.max(.5,g),i=Math.pow(t,1-b),o=r.unproject(p.add(A.mult(b*i)).mult(e));r.setLocationAtPoint(r.renderWorldCopies?o.wrap():o,f)}return t.preloadOnly||this._fireMoveEvents(i),r};if(t.preloadOnly){const e=this._emulate(b,t.duration,r);return this._preloadTiles(e),this}const I={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=y,this._rotating=x,this._pitching=v,this._padding=w,this._easeId=t.easeId,this._prepareEase(i,t.noMoveStart,I),this._ease(b(r),e=>{"sea"===r.cameraElevationReference&&r.recenterOnTerrain(),this._afterEase(i,e)},t),this}_prepareEase(t,i,r={}){this._moving=!0,this.transform.cameraElevationReference="sea",this.transform._orthographicProjectionAtLowPitch&&0===this.transform.pitch&&"globe"!==this.transform.projection.name&&(this.transform.cameraElevationReference="ground"),i||r.moving||this.fire(new e.x("movestart",t)),this._zooming&&!r.zooming&&this.fire(new e.x("zoomstart",t)),this._rotating&&!r.rotating&&this.fire(new e.x("rotatestart",t)),this._pitching&&!r.pitching&&this.fire(new e.x("pitchstart",t))}_fireMoveEvents(t){this.fire(new e.x("move",t)),this._zooming&&this.fire(new e.x("zoom",t)),this._rotating&&this.fire(new e.x("rotate",t)),this._pitching&&this.fire(new e.x("pitch",t))}_afterEase(t,i){if(this._easeId&&i&&this._easeId===i)return;this._easeId=void 0,this.transform.cameraElevationReference="ground";const r=this._zooming,n=this._rotating,o=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new e.x("zoomend",t)),n&&this.fire(new e.x("rotateend",t)),o&&this.fire(new e.x("pitchend",t)),this.fire(new e.x("moveend",t))}flyTo(t,i){if(this._prefersReducedMotion(t)){const r=e.eF(t,["center","zoom","bearing","pitch","around","padding","retainPadding"]);return this.jumpTo(r,i)}this.stop(),t=Object.assign({offset:[0,0],speed:1.2,curve:1.42,easing:e.ca},t);const r=this.transform,n=this.getZoom(),o=this.getBearing(),s=this.getPitch(),a=this.getPadding(),l="zoom"in t?e.bG(+t.zoom,r.minZoom,r.maxZoom):n,c="bearing"in t?this._normalizeBearing(t.bearing,o):o,h="pitch"in t?+t.pitch:s,u=this._extendPadding(t.padding),d=r.zoomScale(l-n),f=e.au.convert(t.offset);let p=r.centerPoint.add(f);const A=r.pointLocation(p),g=e.ab.convert(t.center||A);this._normalizeCenter(g);const m=r.project(A),_=r.project(g).sub(m);let y=t.curve;const x=Math.max(r.width,r.height),v=x/d,w=_.mag();if("minZoom"in t){const i=e.bG(Math.min(t.minZoom,n,l),r.minZoom,r.maxZoom),o=x/r.zoomScale(i-n);y=Math.sqrt(o/w*2)}const E=y*y;function b(e){const t=(v*v-x*x+(e?-1:1)*E*E*w*w)/(2*(e?v:x)*E*w);return Math.log(Math.sqrt(t*t+1)-t)}function I(e){return(Math.exp(e)-Math.exp(-e))/2}function C(e){return(Math.exp(e)+Math.exp(-e))/2}const B=b(0);let D=function(e){return C(B)/C(B+y*e)},T=function(e){return x*((C(B)*(I(t=B+y*e)/C(t))-I(B))/E)/w;var t},M=(b(1)-B)/y;if(Math.abs(w)<1e-6||!isFinite(M)){if(Math.abs(x-v)<1e-6)return this.easeTo(t,i);const e=v<x?-1:1;M=Math.abs(Math.log(v/x))/y,T=function(){return 0},D=function(t){return Math.exp(e*y*t)}}t.duration="duration"in t?+t.duration:1e3*M/("screenSpeed"in t?+t.screenSpeed/y:+t.speed),t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0);const Q=o!==c,S=h!==s,P=!r.isPaddingEqual(u),R=!1===t.retainPadding?r.clone():r,z=r=>d=>{const A=d*M,y=1/D(A);r.zoom=1===d?l:n+r.scaleZoom(y),Q&&(r.bearing=e.dY(o,c,d)),S&&(r.pitch=e.dY(s,h,d)),P&&(R.interpolatePadding(a,u,d),p=R.centerPoint.add(f));const x=1===d?g:r.unproject(m.add(_.mult(T(A))).mult(y));return r.setLocationAtPoint(r.renderWorldCopies?x.wrap():x,p),r._updateCameraOnTerrain(),t.preloadOnly||this._fireMoveEvents(i),r};if(t.preloadOnly){const e=this._emulate(z,t.duration,r);return this._preloadTiles(e),this}return this._zooming=!0,this._rotating=Q,this._pitching=S,this._padding=P,this._prepareEase(i,!1),this._ease(z(r),()=>this._afterEase(i),t),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_requestRenderFrame(e){}_cancelRenderFrame(e){}_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,i,r){!1===r.animate||0===r.duration?(t(1),i()):(this._easeStart=e.co.now(),this._easeOptions=r,this._onEaseFrame=t,this._onEaseEnd=i,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const t=Math.min((e.co.now()-this._easeStart)/this._easeOptions.duration,1),i=this._onEaseFrame;i&&i(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(t,i){t=e.f$(t,-180,180);const r=Math.abs(t-i);return Math.abs(t-360-i)<r&&(t-=360),Math.abs(t+360-i)<r&&(t+=360),t}_normalizeCenter(e){const t=this.transform;if(t.maxBounds)return;if("globe"!==t.projection.name&&!t.renderWorldCopies)return;const i=e.lng-t.center.lng;e.lng+=i>180?-360:i<-180?360:0}_prefersReducedMotion(t){return this._respectPrefersReducedMotion&&e.co.prefersReducedMotion&&!(t&&t.essential)}_emulate(e,t,i){const r=Math.ceil(15*t/1e3),n=[],o=e(i.clone());for(let s=0;s<=r;s++){const e=o(s/r);n.push(e.clone())}return n}_preloadTiles(e,t){}}const Fh=/^(https?:|mailto:)/i;class Oh{constructor(t={}){this.options=t,e.bs(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(e){const t=this.options&&this.options.compact,i=e._getUIString("AttributionControl.ToggleAttribution");this._map=e,this._container=u("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=u("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._compactButton.setAttribute("aria-label",i);const r=u("span","mapboxgl-ctrl-icon",this._compactButton);return r.setAttribute("aria-hidden","true"),r.setAttribute("title",i),this._innerContainer=u("div","mapboxgl-ctrl-attrib-inner",this._container),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}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","fal
1se")):(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 i=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||e.bN.ACCESS_TOKEN}];if(t){const r=i.reduce((e,t,r)=>(t.value&&(e+=`${t.key}=${t.value}${r<i.length-1?"&":""}`),e),"?");t.href=`${e.bN.FEEDBACK_URL}/${r}#${zc(this._map,!0)}`,t.rel="noopener nofollow"}}_updateData(e){!e||("source"!==e.dataType||"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._mergedSourceCaches;for(const r in t){const i=t[r];if(i.used){const t=i.getSource();t.attribution&&!e.includes(t.attribution)&&e.push(t.attribution)}}e.sort((e,t)=>e.length-t.length),e=e.filter((t,i)=>{for(let r=i+1;r<e.length;r++)if(e[r].includes(t))return!1;return!0}),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=[...this.options.customAttribution,...e]:e.unshift(this.options.customAttribution));const i=e.map(e=>function(e){const t=(new DOMParser).parseFromString(e,"text/html");return Array.from(t.body.querySelectorAll("*")).reverse().forEach(e=>{const i=e.textContent||"";if("A"!==e.tagName)return void e.replaceWith(...e.childNodes);const r=e.getAttribute("href");if(!r||!Fh.test(r))return void e.replaceWith(t.createTextNode(i));const n=t.createElement("a");n.href=r,n.textContent=i,n.rel="noopener nofollow";const o=e.getAttribute("class");o&&(n.className=o),e.replaceWith(n)}),t.body.innerHTML}(e)).join(" | ");i!==this._attribHTML&&(this._attribHTML=i,e.length?(this._innerContainer.innerHTML=i,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 kh{constructor(){e.bs(["_updateLogo","_updateCompact"],this)}onAdd(e){this._map=e,this._container=u("div","mapboxgl-ctrl");const t=u("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 i=e[t].getSource();if(Object.hasOwn(i,"mapbox_logo")&&!i.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 Nh{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,i=t?this._queue.concat(t):this._queue;for(const r of i)if(r.id===e)return void(r.cancelled=!0)}run(e=0){const t=this._currentlyRunning=this._queue;this._queue=[];for(const i of t)if(!i.cancelled&&(i.callback(e),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}class Uh{constructor(e){this.jumpTo(e)}getValue(t){if(t<=this._startTime)return this._start;if(t>=this._endTime)return this._end;const i=e.cb((t-this._startTime)/(this._endTime-this._startTime));return this._start*(1-i)+this._end*i}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,i){this._start=this.getValue(t),this._end=e,this._startTime=t,this._endTime=t+i}}const Vh={"AttributionControl.ToggleAttribution":"Toggle attribution","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox homepage","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use â + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"};class Hh extends e.x{constructor(e,t,i,r){const{point:n,lngLat:o,originalEvent:s,target:a}=e;super(e.type,{point:n,lngLat:o,originalEvent:s,target:a}),this.preventDefault=()=>{e.preventDefault()},this.id=t,this.interaction=i,this.feature=r}}class jh{constructor(e){this.map=e,this.interactionsByType=new Map,this.delegatedInteractions=new Map,this.typeById=new Map,this.filters=new Map,this.handleType=this.handleType.bind(this),this.handleMove=this.handleMove.bind(this),this.handleOut=this.handleOut.bind(this),this.hoveredFeatures=new Map,this.prevHoveredFeatures=new Map}
vendor: 6,571 bytes, line 1
1add(t,i){if(this.typeById.has(t))throw new Error(`Interaction id "${t}" already exists.`);const r=i.filter;let n=i.type;r&&this.filters.set(t,e.bZ(r)),"mouseover"===n&&(n="mouseenter"),"mouseout"===n&&(n="mouseleave");const o=this.interactionsByType.get(n)||new Map;"mouseenter"===n||"mouseleave"===n?(0===this.delegatedInteractions.size&&(this.map.on("mousemove",this.handleMove),this.map.on("mouseout",this.handleOut)),this.delegatedInteractions.set(t,i)):0===o.size&&this.map.on(n,this.handleType),0===o.size&&this.interactionsByType.set(n,o),o.set(t,i),this.typeById.set(t,n)}get(e){const t=this.typeById.get(e);if(!t)return;const i=this.interactionsByType.get(t);return i?i.get(e):void 0}remove(e){const t=this.typeById.get(e);if(!t)return;this.typeById.delete(e),this.filters.delete(e);const i=this.interactionsByType.get(t);i&&(i.delete(e),"mouseenter"===t||"mouseleave"===t?(this.delegatedInteractions.delete(e),0===this.delegatedInteractions.size&&(this.map.off("mousemove",this.handleMove),this.map.off("mouseout",this.handleOut))):0===i.size&&this.map.off(t,this.handleType))}queryTargets(e,t){const i=[];for(const[r,n]of t)n.target&&i.push({targetId:r,target:n.target,filter:this.filters.get(r)});return this.map.style.queryRenderedTargets(e,i,this.map.transform)}handleMove(e){this.prevHoveredFeatures=this.hoveredFeatures,this.hoveredFeatures=new Map;const t=this.queryTargets(e.point,Array.from(this.delegatedInteractions).reverse());t.length&&(e.type="mouseenter",this.handleType(e,t));const i=new Map;for(const[r,{feature:n}]of this.prevHoveredFeatures)this.hoveredFeatures.has(r)||i.set(n.id,n);i.size&&(e.type="mouseleave",this.handleType(e,Array.from(i.values())))}handleOut(e){const t=Array.from(this.hoveredFeatures.values()).map(({feature:e})=>e);t.length&&(e.type="mouseleave",this.handleType(e,t)),this.hoveredFeatures.clear()}handleType(t,i){const r="mouseenter"===t.type;if(r&&!this.interactionsByType.has(t.type))return void e.f_("mouseenter interaction required for mouseleave to work.");const n=Array.from(this.interactionsByType.get(t.type)).reverse(),o=!!i;i=i||this.queryTargets(t.point,n);let s=!1;const a=new Set;for(const l of i){for(const[i,c]of n){if(!c.target)continue;const n=l.variants?l.variants[i]:null;if(n){for(const h of n){if(qo(h,l,a,i))continue;const n=new e.aZ(l,h),u=Zo(h,l,i);o&&void 0!==n.id&&(n.state=this.map.getFeatureState(n));const d=r?this.prevHoveredFeatures.get(u):null,f=new Hh(t,i,c,n),p=d?d.stop:c.handler(f);if(r&&this.hoveredFeatures.set(u,{feature:l,stop:p}),!1!==p){s=!0;break}}if(s)break}}if(s)break}if(!s)for(const[e,l]of n){const{handler:i,target:r}=l;if(!r&&!1!==i(new Hh(t,e,l,null)))break}}}function Gh(t,i){if(Array.isArray(t)&&Array.isArray(i)){const e=new Set(t),r=new Set(i);return e.size===r.size&&t.every(e=>r.has(e))}return e.c2(t,i)}const Yh=/matrix.*\((.+)\)/,Wh={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,performanceMetricsCollection:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,antialias:!1,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,fontstackCompositing:"client",transformRequest:null,accessToken:null,fadeDuration:300,respectPrefersReducedMotion:!0,crossSourceCollisions:!0,collectResourceTiming:!1,testMode:!1,precompilePrograms:!0,scaleFactor:1},Jh={showCompass:!0,showZoom:!0,visualizePitch:!1};class Zh{constructor(t,i,r=!1){this._clickTolerance=10,this.element=i,this.mouseRotate=new sh({clickTolerance:t.dragRotate._mouseRotate._clickTolerance}),this.map=t,r&&(this.mousePitch=new ah({clickTolerance:t.dragRotate._mousePitch._clickTolerance})),e.bs(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),i.addEventListener("mousedown",this.mousedown),i.addEventListener("touchstart",this.touchstart,{passive:!1}),i.addEventListener("touchmove",this.touchmove),i.addEventListener("touchend",this.touchend),i.addEventListener("touchcancel",this.reset)}down(e,t){this.mouseRotate.mousedown(e,t),this.mousePitch&&this.mousePitch.mousedown(e,t),g()}move(e,t){const i=this.map,r=this.mouseRotate.mousemoveWindow(e,t),n=r&&r.bearingDelta;if(n&&i.setBearing(i.getBearing()+n),this.mousePitch){const r=this.mousePitch.mousemoveWindow(e,t),n=r&&r.pitchDelta;n&&i.setPitch(i.getPitch()+n)}}off(){const e=this.element;e.removeEventListener("mousedown",this.mousedown),e.removeEventListener("touchstart",this.touchstart),e.removeEventListener("touchmove",this.touchmove),e.removeEventListener("touchend",this.touchend),e.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){m(),window.removeEventListener("mousemove",this.mousemove),window.removeEventListener("mouseup",this.mouseup)}mousedown(e){this.down(Object.assign({},e,{button:e.button,type:e.type,ctrlKey:!0,preventDefault:()=>e.preventDefault()}),x(this.element,e)),window.addEventListener("mousemove",this.mousemove),window.addEventListener("mouseup",this.mouseup)}mousemove(e){this.move(e,x(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=v(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=v(this.element,e.targetTouches)[0],this.move({buttons:1,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()}}function qh(t,i,r){if(t=new e.ab(t.lng,t.lat),i){const n=new e.ab(t.lng-360,t.lat),o=new e.ab(t.lng+360,t.lat),s=360*Math.ceil(Math.abs(t.lng-r.center.lng)/360),a=r.locationPoint3D(t).distSqr(i),l=i.x<0||i.y<0||i.x>r.width||i.y>r.height;r.locationPoint3D(n).distSqr(i)<a&&(l||Math.abs(n.lng-r.center.lng)<s)?t=n:r.locationPoint3D(o).distSqr(i)<a&&(l||Math.abs(o.lng-r.center.lng)<s)&&(t=o)}for(;Math.abs(t.lng-r.center.lng)>180;){const e=r.locationPoint3D(t);
vendor: 4,886 bytes, line 1
1if(e.x>=0&&e.y>=0&&e.x<=r.width&&e.y<=r.height)break;t.lng>r.center.lng?t.lng-=360:t.lng+=360}return t}const Kh={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%)"},Xh=/\s+/,$h={rotation:0,rotationAlignment:"auto",pitchAlignment:"auto",occludedOpacity:.2,altitude:0};class eu extends e.y{constructor(t,i){super(),(t instanceof HTMLElement||i)&&(t=Object.assign({element:t},i)),e.bs(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],this);const{anchor:r="center",color:n="#3FB1CE",scale:o=1,draggable:s=!1,clickTolerance:a=0,rotation:l=$h.rotation,rotationAlignment:c=$h.rotationAlignment,pitchAlignment:h=$h.pitchAlignment,occludedOpacity:u=$h.occludedOpacity,altitude:d=$h.altitude}=t||{};this._anchor=r,this._color=n,this._scale=o,this._draggable=s,this._clickTolerance=a,this._rotation=l,this._rotationAlignment=c,this._pitchAlignment=h,this._occludedOpacity=u,this._altitude=d,this._state="inactive",this._isDragging=!1,this._updateMoving=()=>this._update(!0),t&&t.element?(this._element=t.element,this._offset=e.au.convert(t&&t.offset||[0,0])):(this._defaultMarker=!0,this._element=this._createDefaultMarker(),this._offset=e.au.convert(t&&t.offset||[0,-14])),this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.hasAttribute("role")||this._element.setAttribute("role","img"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",e=>{e.preventDefault()}),this._element.addEventListener("mousedown",e=>{e.preventDefault()});const f=this._element.classList;for(const e in Kh)f.remove(`mapboxgl-marker-anchor-${e}`);f.add(`mapboxgl-marker-anchor-${this._anchor}`),t&&t.className&&f.add(...t.className.trim().split(Xh)),this._popup=null}_createDefaultMarker(){const e=u("div"),t=d("svg",{display:"block",height:41*this._scale+"px",width:27*this._scale+"px",viewBox:"0 0 27 41"},e);this._svgElement=t;const i=d("radialGradient",{id:"shadowGradient"},d("defs",{},t));d("stop",{offset:"10%","stop-opacity":.4},i),d("stop",{offset:"100%","stop-opacity":.05},i);const r=d("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"});return this._shadowElement=r,0===this._altitude&&t.insertBefore(r,t.firstChild),d("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"},t),d("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"},t),d("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},t),e}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.ab.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}setAltitude(e){if(e===this._altitude)return this;const t=this._altitude;return this._altitude=e||$h.altitude,this._defaultMarker&&0===t!=(0===this._altitude)&&(0===this._altitude?this._svgElement.insertBefore(this._shadowElement,this._svgElement.firstChild):this._shadowElement.remove()),this._update(),this}getAltitude(){return this._altitude}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,i=13.5,r=Math.sqrt(Math.pow(i,2)/2);e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[
vendor: 3,227 bytes, line 1
10,-t],"bottom-left":[r,-1*(t-i+r)],"bottom-right":[-r,-1*(t-i+r)],left:[i,-1*(t-i)],right:[-i,-1*(t-i)]}:this._offset}this._popup=e,e._marker=this,e._altitude=this._altitude,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","false")}return this}_onKeyPress(e){const t=e.code,i=e.charCode||e.keyCode;"Space"!==t&&"Enter"!==t&&32!==i&&13!==i||this.togglePopup()}_onMapClick(e){const t=e.originalEvent.target,i=this._element;this._popup&&(t===i||i.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}_behindTerrain(){const e=this._map,t=this._pos;if(!e||!t)return!1;const i=e.unproject(t,this._altitude),r=e.getFreeCameraOptions();if(!r.position)return!1;const n=r.position.toLngLat();return n.distanceTo(i)<.9*n.distanceTo(this._lngLat)}_evaluateOpacity(){const t=this._map;if(!t)return;const i=this._pos;if(!i||i.x<0||i.x>t.transform.width||i.y<0||i.y>t.transform.height)return void this._clearFadeTimer();const r=t.unproject(i,this._altitude);let n;t._showingGlobe()&&e.dE(t.transform,this._lngLat)?n=0:(n=1-t._queryFogOpacity(r),t.transform._terrainEnabled()&&t.getTerrain()&&this._behindTerrain()&&(n*=this._occludedOpacity)),this._element.style.opacity=`${n}`,this._element.style.pointerEvents=n>0?"auto":"none",this._popup&&this._popup._setOpacity(n),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_updateDOM(){const e=this._pos;if(!e||!this._map)return;const t=this._offset.mult(this._scale);this._element.style.transform=`\n translate(${e.x}px,${e.y}px)\n ${Kh[this._anchor]}\n ${this._calculateXYTransform()} ${this._calculateZTransform()}\n translate(${t.x}px,${t.y}px)\n `}_calculateXYTransform(){const t=this._pos,i=this._map,r=this.getPitchAlignment();if(!i||!t||"map"!==r)return"";if(!i._showingGlobe()){const e=i.getPitch();return e?`rotateX(${e}deg)`:""}const n=e.eX(e.dl(i.transform,this._lngLat)),o=t.sub(e.dd(i.transform)),s=Math.abs(o.x)+Math.abs(o.y);if(0===s)return"";const a=n/s;return`rotateX(${-o.y*a}deg) rotateY(${o.x*a}deg)`}_calculateZTransform(){const t=this._pos,i=this._map;if(!i||!t)return"";let r=0;const n=this.getRotationAlignment();if("map"===n)if(i._showingGlobe()){const t=i.project(new e.ab(this._lngLat.lng,this._lngLat.lat+.001),this._altitude),n=i.project(new e.ab(this._lngLat.lng,this._lngLat.lat-.001),this._altitude).sub(t);r=e.eX(Math.atan2(n.y,n.x))-90}else r=-i.getBearing();else if("horizon"===n){const n=e.fq(4,6,i.getZoom()),o=e.dd(i.transform);o.y+=n*i.transform.height;const s=t.sub(o),a=e.eX(Math.atan2(s.y,s.x));r=(a>90?a-270:a+90)*(1-n)}return r+=this._rotation,r?`rotateZ(${r}deg)`:""}_update(e){cancelAnimationFrame(this._updateFrameId);const t=this._map;
1t&&(t.transform.renderWorldCopies&&(this._lngLat=qh(this._lngLat,this._pos,t.transform)),this._pos=t.project(this._lngLat,this._altitude),!0===e?this._updateFrameId=requestAnimationFrame(()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())}):this._pos=this._pos.round(),t._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(t._showingGlobe()||t.getTerrain()||t.getFog())&&!this._fadeTimer&&(this._fadeTimer=window.setTimeout(this._evaluateOpacity.bind(this),60)))}))}getOffset(){return this._offset}setOffset(t){return this._offset=e.au.convert(t),this._update(),this}addClassName(e){return this._element.classList.add(e),this}removeClassName(e){return this._element.classList.remove(e),this}toggleClassName(e){return this._element.classList.toggle(e)}_onMove(t){const i=this._map;if(!i)return;const r=this._pointerdownPos,n=this._positionDelta;if(r&&n){if(!this._isDragging){const e=this._clickTolerance||i._clickTolerance;if(t.point.dist(r)<e)return;this._isDragging=!0}this._pos=t.point.sub(n),this._lngLat=i.unproject(this._pos,this._altitude),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new e.x("dragstart"))),this.fire(new e.x("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.x("dragend")),this._state="inactive"}_addDragHandler(e){const t=this._map,i=this._pos;t&&i&&this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(i),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||$h.rotation,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||$h.rotationAlignment,this._update(),this}getRotationAlignment(){return"auto"===this._rotationAlignment||"horizon"===this._rotationAlignment&&this._map&&!this._map._showingGlobe()?"viewport":this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e||$h.pitchAlignment,this._update(),this}getPitchAlignment(){return"auto"===this._pitchAlignment?this.getRotationAlignment():this._pitchAlignment}setOccludedOpacity(e){return this._occludedOpacity=e||$h.occludedOpacity,this._update(),this}getOccludedOpacity(){return this._occludedOpacity}}const tu={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1,showButton:!0,followUserLocation:!0},iu={maxWidth:100,unit:"metric"},ru={kilometer:"km",meter:"m",mile:"mi",foot:"ft","nautical-mile":"nm"},nu=/\s+/,ou={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px",altitude:0},su=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function au(t=new e.au(0,0),i="bottom"){if("number"==typeof t){const r=Math.round(Math.sqrt(.5*Math.pow(t,2)));switch(i){case"top":return new e.au(0,t);case"top-left":return new e.au(r,r);case"top-right":return new e.au(-r,r);case"bottom":return new e.au(0,-t);case"bottom-left":return new e.au(r,-r);case"bottom-right":return new e.au(-r,-r);case"left":return new e.au(t,0);case"right":return new e.au(-t,0)}return new e.au(0,0)}return t instanceof e.au||Array.isArray(t)?e.au.convert(t):e.au.convert(t[i]||[0,0])}const lu="undefined"!=typeof document?document.currentScript:null;var cu;cu=lu&&lu.src&&e.dF(lu.src)?"cdn":"other",N=cu;const hu={version:t,supported:function(e){return!function(e){return"undefined"!=typeof window&&"undefined"!=typeof document?Object.hasOwn?function(){const e=document.createElement("canvas");e.width=e.height=1;const t=e.getContext("2d");return!!t&&t.getImageData(0,0,1,1).width===e.width}()?function(e){return e?(void 0===a&&(a=l(!0)),a):(void 0===s&&(s=l(!1)),s)}(e)?"":"insufficient WebGL2 support":"insufficient Canvas/getImageData support":"Object.hasOwn not supported":"not a browser"}(e)},setRTLTextPlugin:e.fo,getRTLTextPluginStatus:e.d3,setSdkInfo:function(t){"string"!=typeof t||t.length>64||!k.test(t)?e.f_(`Invalid SDK info "${t}"; expected a "Name/version" string. Ignoring.`):O=t},addTileProvider:e.bm,Map:class extends Lh{constructor(t){r.mark(i.create);const n=t;if(null!=(t=Object.assign({},Wh,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");t.antialias&&e.dO(window)&&(t.antialias=!1,e.f_("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new Vi(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies,null,null),t),this._repaint=!!t.repaint,this._interactive=t.interactive,this._minTileCacheSize=t.minTileCacheSize,this._maxTileC
1acheSize=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._placementAlgorithm=t.placementAlgorithm||"default",this._isInitialLoad=!0,this._crossSourceCollisions=t.crossSourceCollisions,this._collectResourceTiming=t.collectResourceTiming,this._language=this._parseLanguage(t.language),this._worldview=t.worldview,this._renderTaskQueue=new Nh,this._domRenderTaskQueue=new Nh,this._controls=[],this._markers=[],this._popups=[],this._mapId=e.fU(),this._locale=Object.assign({},Vh,t.locale),this._clickTolerance=t.clickTolerance,this._cooperativeGestures=t.cooperativeGestures,this._performanceMetricsCollection=t.performanceMetricsCollection,this._tessellationStep=t.tessellationStep,this._containerWidth=0,this._containerHeight=0,this._showParseStatus=!0,this._precompilePrograms=t.precompilePrograms,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new Uh(0),this._interactionRange=[1/0,-1/0],this._visibilityHidden=0,this._useExplicitProjection=!1,this._frameId=0,this._scaleFactor=t.scaleFactor,this._requestManager=new Q(t.transformRequest,t.accessToken,t.testMode);const o=L(t.accessToken||e.bN.ACCESS_TOKEN);if(o&&"atlas"in o&&"number"==typeof o.atlas&&(this._tokenExpiration=o.atlas),this._silenceAuthErrors=!!t.testMode,this._contextCreateOptions=t.contextCreateOptions?Object.assign({},t.contextCreateOptions):{},"string"==typeof t.container){const e=document.getElementById(t.container);if(!e)throw new Error(`Container '${t.container.toString()}' not found.`);this._container=e}else{if(!(t.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(this._container.childNodes.length>0&&e.f_("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),this._spriteFormat="auto",e.bs(["_onWindowOnline","_onWindowResize","_onVisibilityChange","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");if(this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this._fullscreenchangeEvent="onfullscreenchange"in document?"fullscreenchange":"webkitfullscreenchange",window.addEventListener("online",this._onWindowOnline,!1),window.addEventListener("resize",this._onWindowResize,!1),window.addEventListener("orientationchange",this._onWindowResize,!1),window.addEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.addEventListener("visibilitychange",this._onVisibilityChange,!1),this.handlers=new Rh(this,t),this._localFontFamily=t.localFontFamily,this._localIdeographFontFamily=t.localIdeographFontFamily,this._fontstackCompositing=t.fontstackCompositing,(t.style||!t.testMode)&&this.setStyle(t.style||e.bN.DEFAULT_STYLE,{config:t.config,localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily,fontstackCompositing:this._fontstackCompositing}),t.projection&&this.setProjection(t.projection),t.hash&&(this._hash=new Rc("string"==typeof t.hash&&t.hash||void 0).addTo(this)),!this._hash||!this._hash._onHashChange()){null==n.center&&null==n.zoom||(this.transform._unmodified=!1),this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch});const e=t.bounds;e&&(this.resize(),this.fitBounds(e,Object.assign({},t.fitBoundsOptions,{duration:0})))}this.resize(),t.attributionControl&&this.addControl(new Oh({customAttribution:t.customAttribution})),this._logoControl=new kh,this.addControl(this._logoControl,t.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet),this._postStyleLoadEvent(),this._postStyleWithAppearanceEvent()}),this.on("data",t=>{this._update("style"===t.dataType),this.fire(new e.x(`${t.dataType}data`,t))}),this.on("dataloading",t=>{this.fire(new e.x(`${t.dataType}dataloading`,t))}),this._interactions=new jh(this)}_getMapId(){return this._mapId}addControl(t,i){if(void 0===i&&(i=t.getDefaultPosition?t.getDefaultPosition():"top-right"),!t||!t.onAdd)return this.fire(new e.v(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const r=t.onAdd(this);this._controls.push(t);const n=this._controlPositions[i];
vendor: 4,530 bytes, line 1
1return i.includes("bottom")?n.insertBefore(r,n.firstChild):n.appendChild(r),this}removeControl(t){if(!t||!t.onRemove)return this.fire(new e.v(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const i=this._controls.indexOf(t);return i>-1&&this._controls.splice(i,1),t.onRemove(this),this}hasControl(e){return this._controls.includes(e)}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 i=!this._moving;return i&&this.fire(new e.x("movestart",t)).fire(new e.x("move",t)),this.fire(new e.x("resize",t)),i&&this.fire(new e.x("moveend",t)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(t){return this.transform.setMaxBounds(e.ac.convert(t)),this._update()}setMinZoom(t){if((t=null!==t&&void 0!==t?t:-2)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()<t?this.setZoom(t):this.fire(new e.x("zoomstart")).fire(new e.x("zoom")).fire(new e.x("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&&void 0!==t?t:22)>=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t?this.setZoom(t):this.fire(new e.x("zoomstart")).fire(new e.x("zoom")).fire(new e.x("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(t){if((t=null!==t&&void 0!==t?t:0)<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.x("pitchstart")).fire(new e.x("pitch")).fire(new e.x("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&&void 0!==t?t:85)>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.x("pitchstart")).fire(new e.x("pitch")).fire(new e.x("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getScaleFactor(){return this._scaleFactor}setScaleFactor(e){return this._scaleFactor=e,this.painter.scaleFactor=e,this.style&&this.style._setLabelPlacementStale(),this.style._updateFilteredLayers(e=>"symbol"===e.type),this._update(!0),this}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(e){return this.transform.renderWorldCopies=e,this.transform.renderWorldCopies||this._forceMarkerAndPopupUpdate(!0),this._update()}getLanguage(){return this._language}_parseLanguage(e){return"auto"===e?navigator.language:Array.isArray(e)?0===e.length?void 0:e.map(e=>"auto"===e?navigator.language:e):e}setLanguage(e){const t=this._parseLanguage(e);if(!this.style||t===this._language)return this;this._language=t,this.style.reloadSources();for(const i of this._controls)i._setLanguage&&i._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(e){return this.style&&e!==this._worldview?(this._worldview=e,this._styleDirty=!0,this.style.setWorldview(e),this):this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return"globe"===this.transform.projection.name}setProjection(e){return this._lazyInitEmptyStyle(),e?"string"==typeof e&&(e={name:e}):e=null,this._useExplicitProjection=!!e,this._prioritizeAndUpdateProjection(e,this.style.projection)}_updateProjectionTransition(){if("globe"!==this.getProjection().name)return;const t=this.transform,i=t.projection.name;let r;"globe"===i&&t.zoom>=e.R?(t.setMercatorFromTransition(),r=!0):"mercator"===i&&t.zoom<e.R&&(t.setProjection({name:"globe"}),r=!0),r&&(this.style.applyProjectionUpdate(),this.style._forceSymbolLayer
vendor: 4,134 bytes, line 1
1Update(),this._update(!0))}_prioritizeAndUpdateProjection(e,t){return this._updateProjection(e||t||{name:"mercator"})}_updateProjection(t){let i;const r=this.transform.mercatorFromTransition;i="globe"===t.name&&this.transform.zoom>=e.R?this.transform.setMercatorFromTransition():this.transform.setProjection(t),this.style.applyProjectionUpdate();const n="mercator"===this.transform.getProjection().name&&r!==this.transform.mercatorFromTransition;return(i||n)&&(this.painter.clearBackgroundTiles(),this.style.clearSources(),this._update(!0),this._forceMarkerAndPopupUpdate(!0)),this}project(t,i){return this.transform.locationPoint3D(e.ab.convert(t),i)}unproject(t,i){return this.transform.pointLocation3D(e.au.convert(t),i)}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}_isDragging(){return this.handlers&&this.handlers._isDragging()||!1}_createDelegatedListener(e,t,i){const r=e=>{let i=[];if(Array.isArray(t)){const r=t.filter(e=>this.getLayer(e));i=r.length?this.queryRenderedFeatures(e,{layers:r}):[]}else i=this.queryRenderedFeatures(e,{target:t});return i};if("mouseenter"===e||"mouseover"===e){let n=!1;const o=t=>{const o=r(t.point);o.length?n||(n=!0,i.call(this,new jc(e,this,t.originalEvent,{features:o}))):n=!1};return{listener:i,targets:t,delegates:{mousemove:o,mouseout:()=>{n=!1}}}}if("mouseleave"===e||"mouseout"===e){let n=!1;const o=t=>{r(t.point).length?n=!0:n&&(n=!1,i.call(this,new jc(e,this,t.originalEvent)))},s=t=>{n&&(n=!1,i.call(this,new jc(e,this,t.originalEvent)))};return{listener:i,targets:t,delegates:{mousemove:o,mouseout:s}}}{const n=e=>{const t=r(e.point);t.length&&(e.features=t,i.call(this,e),delete e.features)};return{listener:i,targets:t,delegates:{[e]:n}}}}on(e,t,i){if("function"==typeof t||void 0===i)return super.on(e,t);if("string"==typeof t&&(t=[t]),!this._areTargetsValid(t))return this;const r=this._createDelegatedListener(e,t,i);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(r);for(const n in r.delegates)this.on(n,r.delegates[n]);return this}once(e,t,i){if("function"==typeof t||void 0===i)return super.once(e,t);if("string"==typeof t&&(t=[t]),!this._areTargetsValid(t))return this;const r=this._createDelegatedListener(e,t,i);for(const n in r.delegates)this.once(n,r.delegates[n]);return this}off(e,t,i){if("function"==typeof t||void 0===i)return super.off(e,t);if("string"==typeof t&&(t=[t]),!this._areTargetsValid(t))return this;const r=this._delegatedListeners?this._delegatedListeners[e]:void 0;return r&&(e=>{for(let r=0;r<e.length;r++){const n=e[r];if(n.listener===i&&Gh(n.targets,t)){for(const e in n.delegates)this.off(e,n.delegates[e]);return e.splice(r,1),this}}})(r),this}queryRenderedFeatures(t,i){if(!this.style)return[];if(void 0===t||t instanceof e.au||Array.isArray(t)||void 0!==i||(i=t,t=void 0),t=t||[[0,0],[this.transform.width,this.transform.height]],!i){const e=this.style.queryRenderedFeatures(t,void 0,this.transform),i=this.style.queryRenderedFeatureset(t,void 0,this.transform);return e.concat(i)}let r=!0;if(i.target&&(r=this._isTargetValid(i.target),r&&!i.layers))return this.style.queryRenderedFeatureset(t,i,this.transform);let n=!0;if(i.layers&&Array.isArray(i.layers)){for(const e of i.layers)if(!this._isValidId(e)){n=!1;break}if(n&&!i.target)return this.style.queryRenderedFeatures(t,i,this.transform)}let o=[];return n&&(o=o.concat(this.style.queryRenderedFeatures(t,i,this.transform))),r&&(o=o.concat(this.style.queryRenderedFeatureset(t,i,this.transform))),o}querySourceFeatures(e,t){return!e||"string"==typeof e&&!this._isValidId(e)?[]:this.style.querySourceFeatures(e,t)}queryRasterValue(e,t,i){return this._isValidId(e)?this.style.queryRasterValue(e,t,i):Promise.resolve(null)}isPointOnSurface(t){const{name:i}=this.transform.projection;return"globe"!==i&&"mercator"!==i&&e.f_(`${i} projection does not support isPointOnSurface, this API may behave unex
1pectedly.`),this.transform.isPointOnSurface(e.au.convert(t))}addInteraction(e,t){return this._interactions.add(e,t),this}removeInteraction(e){return this._interactions.remove(e),this}getCooperativeGestures(){return this._cooperativeGestures}setCooperativeGestures(e){return this._cooperativeGestures=e,this}setStyle(t,i){return i=Object.assign({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily,fontstackCompositing:this._fontstackCompositing},i),this.style&&t&&!1!==i.diff&&i.localFontFamily===this._localFontFamily&&i.localIdeographFontFamily===this._localIdeographFontFamily&&i.fontstackCompositing===this._fontstackCompositing&&!i.config?(this.style._diffStyle(t,(r,n)=>{if(r){const n="string"==typeof r?r:r instanceof Error?r.message:r.error;e.f_(`Unable to perform style diff: ${n}. Rebuilding the style from scratch.`),this._updateStyle(t,i)}else n&&this._update(!0)},()=>this._postStyleLoadEvent()),this):(this._localIdeographFontFamily=i.localIdeographFontFamily,this._localFontFamily=i.localFontFamily,this._fontstackCompositing=i.fontstackCompositing,this._updateStyle(t,i))}_getUIString(e){const t=this._locale[e];if(null==t)throw new Error(`Missing UI string '${e}'`);return t}_updateStyle(e,t){if(this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),e){const i=Object.assign({},t);t&&t.config&&(i.initialConfig=t.config,delete i.config),this.style=new da(this,i).load(e),this.style.setEventedParent(this,{style:this.style})}return this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new da(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(e.f_("There is no style added to the map."),!1)}_isValidId(t){return null==t?(this.fire(new e.v(new Error("IDs can't be empty."))),!1):!e.dx(t)||(this.fire(new e.v(new Error(`IDs can't contain special symbols: "${t}".`))),!1)}_isTargetValid(e){return"featuresetId"in e?this._isValidId("importId"in e?e.importId:e.featuresetId):"layerId"in e&&this._isValidId(e.layerId)}_areTargetsValid(e){if(Array.isArray(e)){for(const t of e)if(!this._isValidId(t))return!1;return!0}return this._isTargetValid(e)}addSource(e,t){return this._isValidId(e)?(this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)):this}isSourceLoaded(e){return!!this._isValidId(e)&&!!this.style&&this.style._isSourceCacheLoaded(e)}areTilesLoaded(){return this.style.areTilesLoaded()}addSourceType(e,t,i){this._lazyInitEmptyStyle(),this.style.addSourceType(e,t,i)}removeSource(e){return this._isValidId(e)?(this.style.removeSource(e),this._updateTerrain(),this._update(!0)):this}getSource(e){return this._isValidId(e)?this.style.getOwnSource(e):null}addImage(t,i,{pixelRatio:r=1,sdf:n=!1,stretchX:o,stretchY:s,content:a}={}){this._lazyInitEmptyStyle();const l=e.a1.from(t);if(i instanceof HTMLImageElement||ImageBitmap&&i instanceof ImageBitmap){const{width:t,height:c,data:h}=e.co.getImageData(i);this.style.addImage(l,{data:new e.ay({width:t,height:c},h),pixelRatio:r,stretchX:o,stretchY:s,content:a,sdf:n,version:0,usvg:!1})}else if(void 0===i.width||void 0===i.height)this.fire(new e.v(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:h}=i,u=i;this.style.addImage(l,{data:new e.ay({width:c,height:h},new Uint8Array(u.data)),pixelRatio:r,stretchX:o,stretchY:s,content:a,sdf:n,usvg:!1,version:0,userImage:u}),u.onAdd&&u.onAdd(this,t)}}updateImage(t,i){this._lazyInitEmptyStyle();const r=e.a1.from(t),n=this.style.getImage(r);if(!n)return void this.fire(new e.v(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const o=i instanceof HTMLImageElement||ImageBitmap&&i instanceof ImageBitmap?e.co.getImageData(i):i,{width:s,height:a,data:l}=o;if(void 0===s||void 0===a)return void this.fire(new e.v(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`")));if(s!==(n.usvg?n.icon.usvg_tree.width:n.data.width)||a!==(n.usvg?n.icon.usvg_tree.height:n.data.height))return void this.fire(new e.v(new Error(`The width and height of the updated image (${s}, ${a})\n must be that same as the previous version of the image\n (${n.data.width}, ${n.data.height})`)));const c=!(i instanceof HTMLImageElement||ImageBitmap&&i instanceof ImageBitmap);let h=!1;n.usvg?(n.data=new e.ay({width:s,height:a},new Uint8Array(l)),n.usvg=!1,n.icon=void 0,h=!0):n.data.replace(l,c),this.style.updateImage(r,n,h)}hasImage(t){return t?!!this.style&&!!this.style.getImage(e.a1.from(t)):(this.fire(new e.v(new Error("Missing required image id"))),!1)}removeImage(t){this.style.removeImage(e.a1.from(t))}loadImage(t,i){e.cQ(this._requestManager.transformRequest(t,e.aH.Image),(e,t)=>{i(e,t)})}listImages(){return this.style.listImages().map(e=>e.name)}
vendor: 4,785 bytes, line 1
1addModel(e,t){this._lazyInitEmptyStyle(),this.style.addModel(e,t)}hasModel(t){return t?this.style.hasModel(t):(this.fire(new e.v(new Error("Missing required model id"))),!1)}removeModel(e){this.style.removeModel(e)}listModels(){return this.style.listModels()}addLayer(e,t){return this._isValidId(e.id)?(this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)):this}getSlot(e){const t=this.getLayer(e);return t&&t.slot||null}setSlot(e,t){return this.style.setSlot(e,t),this.style.mergeLayers(),this._update(!0)}addImport(t,i){return this.style.addImport(t,i).catch(t=>this.fire(new e.v(new Error("Failed to add import",t)))),this}updateImport(e,t){return"string"!=typeof t&&t.id!==e?(this.removeImport(e),this.addImport(t)):(this.style.updateImport(e,t),this._update(!0))}removeImport(e){return this.style.removeImport(e),this}moveImport(e,t){return this.style.moveImport(e,t),this._update(!0)}moveLayer(e,t){return this._isValidId(e)?(this.style.moveLayer(e,t),this._update(!0)):this}removeLayer(e){return this._isValidId(e)?(this.style.removeLayer(e),this._update(!0)):this}getLayer(e){if(!this._isValidId(e))return null;const t=this.style.getOwnLayer(e);return t?"custom"===t.type?t.implementation:t.serialize():void 0}getSlots(){return this.style.getSlots()}setLayerZoomRange(e,t,i){return this._isValidId(e)?(this.style.setLayerZoomRange(e,t,i),this._update(!0)):this}setFilter(e,t,i={}){return this._isValidId(e)?(this.style.setFilter(e,t,i),this._update(!0)):this}getFilter(e){return this._isValidId(e)?this.style.getFilter(e):null}setPaintProperty(e,t,i,r={}){return this._isValidId(e)?(this.style.setPaintProperty(e,t,i,r),this._update(!0)):this}getPaintProperty(e,t){return this._isValidId(e)?this.style.getPaintProperty(e,t):null}setLayoutProperty(e,t,i,r={}){return this._isValidId(e)?(this.style.setLayoutProperty(e,t,i,r),this._update(!0)):this}getLayoutProperty(e,t){return this._isValidId(e)?this.style.getLayoutProperty(e,t):null}getLayerProperty(e,t){return this._isValidId(e)?this.style.getLayerProperty(e,t):null}setLayerProperty(e,t,i,r={}){return this._isValidId(e)?("appearances"===t&&this._postAddingAppearancesToStyleEvent(),this.style.setLayerProperty(e,t,i,r),this._update(!0)):this}getGlyphsUrl(){return this.style.getGlyphsUrl()}setGlyphsUrl(e){return this.style.setGlyphsUrl(e),this._update(!0)}getSchema(e){return this.style.getSchema(e)}setSchema(e,t){return this.style.setSchema(e,t),this._update(!0)}getConfig(e){return this.style.getConfig(e)}setConfig(e,t){return this.style.setConfig(e,t),this._update(!0)}getConfigProperty(e,t){return this.style.getConfigProperty(e,t)}setConfigProperty(e,t,i){return this.style.setConfigProperty(e,t,i),this._update(!0)}getFeaturesetDescriptors(e){return this.style.getFeaturesetDescriptors(e)}setLights(e){if(this._lazyInitEmptyStyle(),e&&1===e.length&&"flat"===e[0].type){const t=e[0];t.properties?this.style.setFlatLight(t.properties,t.id,{}):this.style.setFlatLight({},"flat")}else this.style.setLights(e),this.painter.terrain&&(this.painter.terrain.invalidateRenderCache=!0);return this._update(!0)}getLights(){const e=this.style.getLights()||[];return 0===e.length&&e.push({id:this.style.light.id,type:"flat",properties:this.style.getFlatLight()}),e}setLight(e,t={}){return console.log("The `map.setLight` function is deprecated, prefer using `map.setLights` with `flat` light type instead."),this.setLights([{id:"flat",type:"flat",properties:e}])}getLight(){return console.log("The `map.getLight` function is deprecated, prefer using `map.getLights` instead."),this.style.getFlatLight()}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}setSnow(e){return this._lazyInitEmptyStyle(),this.style.setSnow(e),this._update(!0)}getSnow(){return this.style?this.style.getSnow():null}setRain(e){return this._lazyInitEmptyStyle(),this.style.setRain(e),this._update(!0)}getRain(){return this.style?this.style.getRain():null}setColorTheme(e){return this._lazyInitEmptyStyle(),this.style.setColorTheme(e),this._update(!0)}setImportColorTheme(e,t){return this._lazyInitEmptyStyle(),this.style.setImportColorTheme(e,t),this._update(!0)}setCamera(e){return this.style.setCamera(e),this._triggerCameraUpdate(e)}getNearClipOffset(){return this.transform.nearClipOffset}setNearClipOffset(e){const t=this.transform.nearClipOffset!==e;return this.transform.nearClipOffset=e,this._update(t)}_triggerCameraUpdate(e){return this._update(this.transform.setOrthogra
vendor: 5,523 bytes, line 1
1phicProjectionAtLowPitch("orthographic"===e["camera-projection"]))}getCamera(){return this.style.camera}_queryFogOpacity(t){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(e.ab.convert(t),this.transform):0}setFeatureState(e,t){return e.source&&!this._isValidId(e.source)?this:(this.style.setFeatureState(e,t),this._update())}removeFeatureState(e,t){return e.source&&!this._isValidId(e.source)?this:(this.style.removeFeatureState(e,t),this._update())}getFeatureState(e){return e.source&&!this._isValidId(e.source)?null:this.style.getFeatureState(e)}_selectIndoorFloor(e){this.style.indoorManager&&this.style.indoorManager.selectFloor(e)}_setIndoorActiveFloorsVisibility(e){this.style.indoorManager&&this.style.indoorManager.setActiveFloorsVisibility(e)}getIndoorTileOptions(e,t){return this.style&&this.style.isIndoorEnabled()&&this.style.indoorManager?this.style.indoorManager.getIndoorTileOptions(e,t):null}_updateContainerDimensions(){if(!this._container)return;const e=this._container.getBoundingClientRect().width||400,t=this._container.getBoundingClientRect().height||300;let i,r,n,o=this._container;for(;o&&(!r||!n);){const e=window.getComputedStyle(o).transform;e&&"none"!==e&&(i=e.match(Yh)[1].split(", "),i[0]&&"0"!==i[0]&&"1"!==i[0]&&(r=i[0]),i[3]&&"0"!==i[3]&&"1"!==i[3]&&(n=i[3])),o=o.parentElement}this._containerWidth=r?Math.abs(e/r):e,this._containerHeight=n?Math.abs(t/n):t}_detectMissingCSS(){"rgb(250, 128, 114)"!==window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&e.f_("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=u("div","mapboxgl-canary",e)).style.visibility="hidden",this._detectMissingCSS();const t=this._canvasContainer=u("div","mapboxgl-canvas-container",e);this._canvas=u("canvas","mapboxgl-canvas",t),this._interactive&&(t.classList.add("mapboxgl-interactive"),this._canvas.setAttribute("tabindex","0")),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const i=this._controlContainer=u("div","mapboxgl-control-container",e),r=this._controlPositions={};["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"].forEach(e=>{r[e]=u("div",`mapboxgl-ctrl-${e}`,i)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(t,i){const r=e.co.devicePixelRatio||1;this._canvas.width=r*Math.ceil(t),this._canvas.height=r*Math.ceil(i),this._canvas.style.width=`${t}px`,this._canvas.style.height=`${i}px`}_addMarker(e){this._markers.push(e)}_removeMarker(e){const t=this._markers.indexOf(e);-1!==t&&this._markers.splice(t,1)}_addPopup(e){this._popups.push(e)}_removePopup(e){const t=this._popups.indexOf(e);-1!==t&&this._popups.splice(t,1)}_setupPainter(){const t=Object.assign({},o,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),i=this._canvas.getContext("webgl2",t);i?(ne(i,!0),this.painter=new Qc(i,this._contextCreateOptions,this.transform,this._scaleFactor,this._worldview),this.on("data",e=>{if("source"===e.dataType){const t=this.transform.elevation?this.transform.elevation._source():null;t&&e.sourceCacheId===t.id&&this.style&&this.style._setLabelPlacementStale(),this.painter.setTileLoadedFlag(!0)}}),e.cn.testSupport(i)):this.fire(new e.v(new Error("Failed to initialize WebGL")))}_contextLost(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.style&&this.style.handleContextLost(),this.fire(new e.x("webglcontextlost",{originalEvent:t}))}_contextRestored(t){this._setupPainter(),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight)),this._updateTerrain(),this.style&&(this.style.clearLayers(),this.style.imageManager.destroyAtlasTextures(),this.style.imageManager.imageAtlasCache.destroyTextures(),this.style.reloadModels(),this.style.clearSources()),this._update(),this.fire(new e.x("webglcontextrestored",{originalEvent:t}))}_onMapScroll(e){if(e.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}idle(){return!this.isMoving()&&this.loaded()}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}frameReady(){return this.loaded()&&!this._placementDirty}_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;this.fire(new e.x("renderstart")),++this._frameId;const o=this.painter.context.extTimerQuery,s=e.co.now(),a=this.painter.context.gl;if(this.listens("gpu-timing-frame")&&(n=a.createQuery(),a.beginQuery(o.TIME_ELAPSED_EXT,n)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&
vendor: 12,465 bytes, line 1
1(this._interactionRange[0]=Math.min(this._interactionRange[0],performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],performance.now())),this._renderTaskQueue.run(t),this._domRenderTaskQueue.run(t),this._removed)return;this._updateProjectionTransition();const l=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const t=this.transform.zoom,i=this.transform.pitch,r=e.co.now(),n=new e.w(t,{now:r,fadeDuration:l,pitch:i,transition:this.style.transition,worldview:this._worldview});this.style.update(n)}this.style&&this.style.hasFogTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let c=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),c=this._updateAverageElevation(s),this.style.updateSources(this.transform),this.style.updateImageProviders(),this.isMoving()||this._forceMarkerAndPopupUpdate()):c=this._updateAverageElevation(s),this.style&&(this._placementDirty=this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,l,this._crossSourceCollisions,this.painter.replacementSource,this._placementAlgorithm)),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showParseStatus:this.showParseStatus,wireframe:{terrain:this.showTerrainWireframe,layers2D:this.showLayers2DWireframe,layers3D:this.showLayers3DWireframe},showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:l,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new e.x("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,r.mark(i.load),this.fire(new e.x("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&(this.style.snow||this.style.rain)&&(this._styleDirty=!0),this.style&&this.style.imageManager.hasPatternsInFlight()&&(this._styleDirty=!0),this.style&&!this.style.modelManager.isLoaded()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),n){const t=e.co.now()-s;a.endQuery(o.TIME_ELAPSED_EXT),setTimeout(()=>{const i=a.getQueryParameter(n,a.QUERY_RESULT)/1e6;a.deleteQuery(n),this.fire(new e.x("gpu-timing-frame",{cpuTime:t,gpuTime:i}))},50)}if(this.listens("gpu-timing-layer")){const t=this.painter.collectGpuTimers();setTimeout(()=>{const i=this.painter.queryGpuTimers(t);this.fire(new e.x("gpu-timing-layer",{layerTimes:i}))},50)}if(this.listens("gpu-timing-deferred-render")){const t=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{const i=this.painter.queryGpuTimeDeferredRender(t);this.fire(new e.x("gpu-timing-deferred-render",{gpuTime:i}))},50)}const h=this._sourcesDirty||this._styleDirty||this._placementDirty||c;if(h||this._repaint)this.triggerRepaint();else{const t=this.idle();if(t&&(c=this._updateAverageElevation(s,!0)),c)this.triggerRepaint();else{if(this._triggerFrame(!1),t&&(this.fire(new e.x("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const t=this._calculateSpeedIndex();this.fire(new e.x("speedindexcompleted",{speedIndex:t})),this.speedIndexTiming=!1}t&&this.style&&this.style.handleIdle()}}!this._loaded||this._fullyLoaded||h||(this._fullyLoaded=!0,r.mark(i.fullLoad),this._performanceMetricsCollection&&ee(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(e){for(const t of this._markers)e&&!this.getRenderWorldCopies()&&(t._lngLat=t._lngLat.wrap()),t._update();for(const t of this._popups)!e||this.getRenderWorldCopies()||t._trackPointer||(t._lngLat=t._lngLat.wrap()),t._update()}_updateAverageElevation(e,t=!1){const i=e=>(this.transform.averageElevation=e,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return 0!==this.transform.averageElevation&&i(0);const r=this.transform.elevation&&this.transform.elevation.exaggeration()!==this._averageElevationExaggeration;if(r||(t||e-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(e)){const t=this.transform.averageElevation;let n=this.transform.sampleAverageElevation();null!=this.transform.elevation&&(this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(n)?n=0:this._averageElevationLastSampledAt=e;const o=Math.abs(t-n);if(o>1){if(this._isInitialLoad||r)return this._averageElevation.jumpTo(n),i(n);this._averageElevation.easeTo(n,e,300)}else if(o>1e-4)return this._averageElevation.jumpTo(n),i(n)}return!!this._averageElevation.isEasing(e)&&i(this._averageElevation.getValue(e))}_isTokenExpired(){return null!=this._tokenExpiration&&Date.now()>this._tokenExpiration}_revokeAuth(){const t=this.painter.context.gl;ne(t,!1),this._logoControl instanceof kh&&this._logoControl._updateLogo(),t&&t.clear(t.DEPTH_BUFFER_BIT|t.COLOR_BUFFER_BIT|t.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new e.v(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/")))}_authenticate(){ie(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,e=>{e&&(e.message!==M&&401!==e.status||this._revokeAuth())}),this._isTokenExpired()&&this._revokeAuth(),Y(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_postStyleLoadEvent(){this.style.globalId&&J(this._requestManager._customAccessToken,{map:this,style:this.style.globalId,importedStyles:this.style.getImportGlobalIds()})}_postStyleWithAppearanceEvent(){this.style.globalId&&this.style.hasAppearances()&&q(this._requestManager._customAccessToken)}_postAddingAppearancesToStyleEvent(){X(this._requestManager._customAccessToken)}_updateTerrain(){const e=this._isDragging();this.painter.updateTerrain(this.style,e)}_calculateSpeedIndex(){const e=this.painter.canvasCopy(),t=this.painter.getCanvasCopiesAndTimestamps();t.timeStamps.push(performance.now());const i=this.painter.context.gl,r=i.createFramebuffer();function n(e){i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,e,0);const t=new Uint8Array(i.drawingBufferWidth*i.drawingBufferHeight*4);return i.readPixels(0,0,i.drawingBufferWidth,i.drawingBufferHeight,i.RGBA,i.UNSIGNED_BYTE,t),t}return i.bindFramebuffer(i.FRAMEBUFFER,r),this._canvasPixelComparison(n(e),t.canvasCopies.map(n),t.timeStamps)}_canvasPixelComparison(e,t,i){let r=i[1]-i[0];const n=e.length/4;for(let o=0;o<t.length;o++){const s=t[o];let a=0;for(let t=0;t<s.length;t+=4)s[t]===e[t]&&s[t+1]===e[t+1]&&s[t+2]===e[t+2]&&s[t+3]===e[t+3]&&(a+=1);r+=(i[o+2]-i[o+1])*(1-a/n)}return r}remove(){if(this._removed)return;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),window.removeEventListener("resize",this._onWindowResize,!1),window.removeEventListener("orientationchange",this._onWindowResize,!1),window.removeEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.removeEventListener("online",this._onWindowOnline,!1),window.removeEventListener("visibilitychange",this._onVisibilityChange,!1);const t=this.painter.context.gl.getExtension("WEBGL_lose_context");t&&t.loseContext(),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._missingCSSCanary.remove(),this._canvas=void 0,this._canvasContainer=void 0,this._controlContainer=void 0,this._missingCSSCanary=void 0,this._container.classList.remove("mapboxgl-map"),this._container.removeEventListener("scroll",this._onMapScroll,!1),re.delete(this.painter.context.gl),te.remove(),G.remove(),this._removed=!0,this.fire(new e.x("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(t){this._renderNextFrame=this._renderNextFrame||t,this.style&&!this._frame&&(this._frame=e.co.frame(e=>{const t=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,t&&this._render(e)}))}_preloadTiles(t){const i=this.style?this.style.getSourceCaches():[];return e.bp(i,(e,i)=>e._preloadTiles(t,i),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(e){this._trackResize&&this.resize({originalEvent:e})._update()}_onVisibilityChange(){"hidden"===document.visibilityState&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get showParseStatus(){return!!this._showParseStatus}set showParseStatus(e){this._showParseStatus!==e&&(this._showParseStatus=e,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(e){this._showTerrainWireframe!==e&&(this._showTerrainWireframe=e,this._update())}get showLayers2DWireframe(){return!!this._showLayers2DWireframe}set showLayers2DWireframe(e){this._showLayers2DWireframe!==e&&(this._showLayers2DWireframe=e,this._update())}get showLayers3DWireframe(){return!!this._showLayers3DWireframe}set showLayers3DWireframe(e){this._showLayers3DWireframe!==e&&(this._showLayers3DWireframe=e,this._update())}get showElevationIdDebug(){return!!this.painter&&this.painter._debugParams.showElevationIdDebug}set showElevationIdDebug(e){this.painter&&this.painter._debugParams.showElevationIdDebug!==e&&(this.painter._debugParams.showElevationIdDebug=e,this.style&&e?this.style._reloadSources():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,this.style&&e?this.style._reloadSources():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()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(e){this._showTileAABBs!==e&&(this._showTileAABBs=e,e&&this._update())}_setCacheLimits(t,i){e.fj(t,i)}get version(){return t}},NavigationControl:class{constructor(t={}){this.options=Object.assign({},Jh,t),this._container=u("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",e=>e.preventDefault()),this.options.showZoom&&(e.bs(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",e=>{this._map&&this._map.zoomIn({},{originalEvent:e})}),u("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})}),u("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(e.bs(["_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=u("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const e=this._map;if(!e)return;
1const t=e.getZoom(),i=t===e.getMaxZoom(),r=t===e.getMinZoom();this._zoomInButton.disabled=i,this._zoomOutButton.disabled=r,this._zoomInButton.setAttribute("aria-disabled",i.toString()),this._zoomOutButton.setAttribute("aria-disabled",r.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 Zh(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 i=u("button",e,this._container);return i.type="button",i.addEventListener("click",t),i}_setButtonTitle(e,t){if(!this._map)return;const i=this._map._getUIString(`NavigationControl.${t}`);e.setAttribute("aria-label",i),e.firstElementChild&&e.firstElementChild.setAttribute("title",i)}},GeolocateControl:class extends e.y{constructor(t={}){super();const i=navigator.geolocation;this.options=Object.assign({geolocation:i},tu,t),e.bs(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=Sc(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(e){return this._map=e,this._container=u("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){this._clearRequestTimeout(),void 0!==this._geolocationWatchID&&(this.options.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,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(e){const t=(t=!!this.options.geolocation)=>{this._supportsGeolocation=t,e(t)};void 0!==this._supportsGeolocation?e(this._supportsGeolocation):void 0!==navigator.permissions?navigator.permissions.query({name:"geolocation"}).then(e=>t("denied"!==e.state)).catch(()=>t()):t()}_isOutOfMapMaxBounds(e){const t=this._map.getMaxBounds(),i=e.coords;return!!t&&(i.longitude<t.getWest()||i.longitude>t.getEast()||i.latitude<t.getSouth()||i.latitude>t.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",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._clearRequestTimeout(),this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.x("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this._lastKnownPosition=t,this.options.trackUserLocation)switch(this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_E
1RROR":this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this.options.followUserLocation?(this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active")):(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"));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.followUserLocation&&(!this.options.trackUserLocation||"ACTIVE_LOCK"===this._watchState)&&this._updateCamera(t),this.options.showUserLocation&&this._userLocationDotMarker.removeClassName("mapboxgl-user-location-dot-stale"),this.fire(new e.x("geolocate",Object.assign({coords:t.coords,timestamp:t.timestamp},t.toJSON?{toJSON:t.toJSON.bind(t)}:{}))),this._finish()}}_updateCamera(t){const i=new e.ab(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy,n=this._map.getBearing(),o=Object.assign({bearing:n},this.options.fitBoundsOptions);this._map.fitBounds(i.toBounds(r),o,{geolocateSource:!0})}_updateMarker(t){if(t){const i=new e.ab(t.coords.longitude,t.coords.latitude);this.options.showAccuracyCircle?this._accuracyCircleMarker.setLngLat(i).addTo(this._map):this._accuracyCircleMarker.remove(),this._userLocationDotMarker.setLngLat(i).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 t=this._map.transform,i=e.em(1,t._center.lat)*t.worldSize,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._userLocationDotMarker.addClassName("mapboxgl-user-location-show-heading")):(this._userLocationDotMarker.removeClassName("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(t){if(this._map){if(this._clearRequestTimeout(),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&&this._noTimeout)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._userLocationDotMarker.addClassName("mapboxgl-user-location-dot-stale"),this.fire(new e.x("error",{code:t.code,message:t.message,PERMISSION_DENIED:t.PERMISSION_DENIED,POSITION_UNAVAILABLE:t.POSITION_UNAVAILABLE,TIMEOUT:t.TIMEOUT})),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_startRequestTimeout(){this._clearRequestTimeout();const e=this.options.positionOptions.timeout;e&&(this._requestTimeoutId=window.setTimeout(()=>{this._onError({code:3,message:"Geolocation request timed out"})},e))}_clearRequestTimeout(){void 0!==this._requestTimeoutId&&(clearTimeout(this._requestTimeoutId),this._requestTimeoutId=void 0)}_setupUI(t){if(void 0!==this._map){if(this._container.addEventListener("contextmenu",e=>e.preventDefault()),this._geolocateButton=u("button","mapboxgl-ctrl-geolocate",this._container),u("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===t){e.f_("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
1se"),this._watchState="OFF"),this.options.showUserLocation&&(this._createUserLocationMarkers(),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.showButton||(this._container.style.display="none"),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.x("trackuserlocationend")))}),this.fire(new e.x("ready"))}}_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.f_("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.x("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!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.x("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.x("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 e;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(e={maximumAge:6e5,timeout:0},this._noTimeout=!0):(e=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,e),this._startRequestTimeout(),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._startRequestTimeout(),this._timeoutId=window.setTimeout(this._finish,1e4);return!0}setFollowUserLocation(t){return this.options.followUserLocation=null!=t?t:tu.followUserLocation,this.options.trackUserLocation&&"OFF"!==this._watchState&&(this.options.followUserLocation?"BACKGROUND"!==this._watchState&&"BACKGROUND_ERROR"!==this._watchState||(this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.x("trackuserlocationstart"))):"ACTIVE_LOCK"!==this._watchState&&"ACTIVE_E
1RROR"!==this._watchState||(this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this.fire(new e.x("trackuserlocationend")))),this}setShowAccuracyCircle(t){if(this.options.showAccuracyCircle=null!=t?t:tu.showAccuracyCircle,!this._accuracyCircleMarker)return this;if(this.options.showAccuracyCircle){if(this.options.showUserLocation&&this._lastKnownPosition){const{longitude:t,latitude:i,accuracy:r}=this._lastKnownPosition.coords;this._accuracy=r,this._accuracyCircleMarker.setLngLat(new e.ab(t,i)).addTo(this._map),this._updateCircleRadius()}}else this._accuracyCircleMarker.remove();return this}setShowUserHeading(e){return this.options.showUserHeading=null!=e?e:tu.showUserHeading,this._setup?(this.options.showUserHeading?void 0!==this._geolocationWatchID&&this._addDeviceOrientationListener():(this._removeDeviceOrientationListener(),this._heading=void 0,this._userLocationDotMarker&&this._updateMarkerRotation()),this):this}setFitBoundsOptions(e){return this.options.fitBoundsOptions=null!=e?e:tu.fitBoundsOptions,this}setShowUserLocation(e){return this.options.showUserLocation=null!=e?e:tu.showUserLocation,this._setup?(this.options.showUserLocation?(this._userLocationDotMarker||(this._createUserLocationMarkers(),this._map.on("zoom",this._onZoom)),!this._lastKnownPosition||void 0!==this._watchState&&"OFF"===this._watchState||this._updateMarker(this._lastKnownPosition)):(this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this._accuracyCircleMarker&&this._accuracyCircleMarker.remove()),this):this}_addDeviceOrientationListener(){const e=()=>{const e="ondeviceorientationabsolute"in window?"deviceorientationabsolute":"deviceorientation";window.addEventListener(e,this._onDeviceOrientation)};"function"==typeof DeviceOrientationEvent.requestPermission?DeviceOrientationEvent.requestPermission().then(t=>{"granted"===t&&e()}).catch(console.error):e()}_removeDeviceOrientationListener(){window.removeEventListener("deviceorientation",this._onDeviceOrientation),window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation)}_createUserLocationMarkers(){this._dotElement=u("div","mapboxgl-user-location"),this._dotElement.appendChild(u("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(u("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new eu({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=u("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new eu({element:this._circleElement,pitchAlignment:"map"})}_clearWatch(){this._clearRequestTimeout(),this.options.geolocation.clearWatch(this._geolocationWatchID),this._removeDeviceOrientationListener(),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:Oh,ScaleControl:class{constructor(t={}){this.options=Object.assign({},iu,t),e.bs(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const e=this.options.maxWidth||100,t=this._map,i=t._containerHeight/2,r=t._containerWidth/2-e/2,n=t.unproject([r,i]),o=t.unproject([r+e,i]),s=n.distanceTo(o);if("imperial"===this.options.unit){const t=3.2808*s;t>5280?this._setScale(e,t/5280,"mile"):this._setScale(e,t,"foot")}else"nautical"===this.options.unit?this._setScale(e,s/1852,"nautical-mile"):s>=1e3?this._setScale(e,s/1e3,"kilometer"):this._setScale(e,s,"meter")}_setScale(e,t,i){this._map._requestDomTask(()=>{const r=function(e){const t=Math.pow(10,`${Math.floor(e)}`.length-1);let i=e/t;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:i>=1?1:function(e){const t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(i),t*i}(t),n=r/t;this._container.innerHTML="nautical-mile"!==i?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:i}).format(r):`${r} ${ru[i]}`,this._container.style.width=e*n+"px"})}onAdd(e){return this._map=e,this._language=e.getLanguage(),this._container=u("div","mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(e){this._language=e,this._update()}setUnit(e){this.options.unit=e,this._update()}},FullscreenControl:class{constructor(t={}){this._fullscreen=!1,t&&t.container&&(t.container instanceof HTMLElement?this._container=t.container:e.f_("Full screen control 'container' must be a DOM element.")),e.bs(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=u("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.f_("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!document.fullscreenEnabled&&!document.webkitFullscreenEnabled)}_setupUI(){const e=this._fullscreenButton=u("button","mapboxgl-ctrl-fullscreen",this._controlContainer);u("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden","true"),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),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(){(document.fullscreenElement||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()?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},IndoorControl:class{constructor(){e.bs(["_onIndoorUpdate","_onStyleData","_scrollUp","_scrollDown","_toggleIndoor"],this),this._visibleFloorStart=0,this._lastSelectedFloorId=null}onAdd(e){return this._map=e,this._container=u("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.style.display="none",this._map.on("styledata",this._onStyleData),this._map.on("idle",this._onStyleData),this._updateConnection(),this._container}_onStyleData(){this._updateConnection()}_updateConnection(){if(this._map&&this._map.style&&this._map.style.indoorManager){const e=this._map.style.indoorManager;e.off("selector-update",this._onIndoorUpdate),e.on("selector-update",this._onIndoorUpdate),this._onIndoorUpdate(e.getControlState()),this._map.off("idle",this._onStyleData)}}_createButton(e,t){const i=u("button",e,this._container);return i.type="button",i.addEventListener("click",t),i}_setButtonTitle(e,t){e.setAttribute("aria-label",t),e.textContent=t}onRemove(){this._container&&this._container.remove(),this._map&&(this._map.off("styledata",this._onStyleData),this._map.off("idle",this._onStyleData),this._map.style&&this._map.style.indoorManager&&this._map.style.indoorManager.off("selector-update",this._onIndoorUpdate),this._map=null)}getDefaultPosition(){return"top-right"}_onIndoorUpdate(e){if(!e||!e.floors||0===e.floors.length)return this._model=e,void(this._container.style.display="none");const t=this._model;this._model=e,this._container.style.display="inline-block";const i=!t||t.floors.length!==e.floors.length||t.floors.some((t,i)=>t.id!==e.floors[i].id);if(i&&(this._visibleFloorStart=0,this._lastSelectedFloorId=null),e.selectedFloorId){if(e.selectedFloorId!==this._lastSelectedFloorId||i){const t=e.floors.findIndex(t=>t.id===e.selectedFloorId);if(-1!==t){const i=e.floors.length;let r,n;i<=5?(r=0,n=i-1):0===this._visibleFloorStart?(r=0,n=3):this._visibleFloorStart>=i-3?(r=i-3-1,n=i-1):(r=this._visibleFloorStart,n=this._visibleFloorStart+3-1),t<r?this._visibleFloorStart=t:t>n&&(this._visibleFloorStart=t-2)}}this._lastSelectedFloorId=e.selectedFloorId}this._render()}
vendor: 6,057 bytes, line 1
1_render(){if(!this._container||!this._model||!this._model.floors)return;this._container.innerHTML="";const e=this._createButton("mapboxgl-ctrl-indoor-toggle",this._toggleIndoor);u("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden","true"),this._model.activeFloorsVisible||e.classList.add("mapboxgl-ctrl-level-button-selected"),this._container.appendChild(e);const t=this._model.floors,i=t.length;if(i<=5)return void t.forEach(e=>this._createFloorButton(e));const r=0===this._visibleFloorStart,n=this._visibleFloorStart>=i-3;if(r)this._createFloorButton(t[0]);else{const e=this._createButton("mapboxgl-ctrl-arrow-up",this._scrollUp);u("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden","true"),this._container.appendChild(e)}let o=[];if(o=r?t.slice(1,4):n?t.slice(this._visibleFloorStart-1,this._visibleFloorStart+3-1):t.slice(this._visibleFloorStart,this._visibleFloorStart+3),o.forEach(e=>this._createFloorButton(e)),n)this._createFloorButton(t[i-1]);else{const e=this._createButton("mapboxgl-ctrl-arrow-down",this._scrollDown);u("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden","true"),this._container.appendChild(e)}}_createFloorButton(e){const t=this._createButton("mapboxgl-ctrl-level-button",()=>{const t=e.id;this._model&&this._model.selectedFloorId===t&&this._model.activeFloorsVisible||this._map&&(this._model&&!this._model.activeFloorsVisible&&this._map.style&&this._map.style.indoorManager&&this._map.style.indoorManager.setActiveFloorsVisibility(!0),this._map._selectIndoorFloor(t))}),i=(e.name||"").trim(),r=e.zIndex.toString(),n=i?Array.from(i).slice(0,3).join(""):r;this._setButtonTitle(t,n),this._model&&this._model.activeFloorsVisible&&e.id===this._model.selectedFloorId&&t.classList.add("mapboxgl-ctrl-level-button-selected"),this._container&&this._container.appendChild(t)}_toggleIndoor(){this._map&&this._map.style&&this._map.style.indoorManager&&this._model&&this._model.activeFloorsVisible&&this._map.style.indoorManager.setActiveFloorsVisibility(!1)}_scrollUp(){if(this._visibleFloorStart>0){this._visibleFloorStart--,1===this._visibleFloorStart&&(this._visibleFloorStart=0);const e=this._model&&this._model.floors||[];if(e.length>3){const t=e.length-3;this._visibleFloorStart===t-1&&(this._visibleFloorStart=t-2)}this._render()}}_scrollDown(){if(this._model&&this._model.floors){const e=this._model.floors.length-3;this._visibleFloorStart<e&&(this._visibleFloorStart++,1===this._visibleFloorStart&&(this._visibleFloorStart=2),this._visibleFloorStart===e-1&&(this._visibleFloorStart=e),this._visibleFloorStart>e&&(this._visibleFloorStart=e),this._render())}}},Popup:class extends e.y{constructor(t){super(),this.options=Object.assign(Object.create(ou),t),this._altitude=this.options.altitude,e.bs(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(t&&t.className?t.className.trim().split(nu):[])}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(),t._addPopup(this),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.x("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),t._canvasContainer&&t._canvasContainer.classList.remove("mapboxgl-track-pointer"),t._removePopup(this),this._map=void 0),this.fire(new e.x("close")),this}getLngLat(){return this._lngLat}setLngLat(t){this._lngLat=e.ab.convert(t),this._pos=null,this._trackPointer=!1,this._update();const i=this._map;return i&&(i.on("move",this._update),i.off("mousemove",this._onMouseEvent),i._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}getAltitude(){return this._altitude}setAltitude(e){return this._altitude=e,this._update(),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(e){return this.setDOMContent(document.createTextNode(e))}setHTML(e){const t=document.createDocumentFragment(),i=document.createElement("body");let r;for(i.innerHTML=e;r=i.firstChild,r;)t.appendChild(r);return this.setDOMContent(t)}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=u("div","mapboxgl-popup-content",this._container||void 0);if(t.appendChild(e),this.options.closeButton){const e=this._closeButton=u("button","mapboxgl-popup-close-button",t);e.type="button",e.setAttribute("aria-label","Close popup"),e.innerHTML='<span aria-hidden="true">×</span>',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,i=this._container,r=this._pos;if(!t||!i||!r)return"bottom";const n=i.offsetWidth,o=i.offsetHeight,s=r.x<n/2,a=r.x>t.transform.width-n/2;
1if(r.y+e<o)return s?"top-left":a?"top-right":"top";if(r.y>t.transform.height-o){if(s)return"bottom-left";if(a)return"bottom-right"}return s?"left":a?"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(t){const i=this._map,r=this._content;if(!i||!this._lngLat&&!this._trackPointer||!r)return;let n=this._container;if(n||(n=this._container=u("div","mapboxgl-popup",i.getContainer()),this._tip=u("div","mapboxgl-popup-tip",n),n.appendChild(r)),this.options.maxWidth&&n.style.maxWidth!==this.options.maxWidth&&(n.style.maxWidth=this.options.maxWidth),i.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=qh(this._lngLat,this._pos,i.transform)),!this._trackPointer||t){const r=this._pos=this._trackPointer&&t instanceof e.au?t:i.project(this._lngLat,this._altitude),n=au(this.options.offset),o=this._anchor=this._getAnchor(n.y),s=au(this.options.offset,o),a=r.add(s).round();i._requestDomTask(()=>{this._container&&o&&(this._container.style.transform=`${Kh[o]} translate(${a.x}px,${a.y}px)`)})}if(!this._marker&&i._showingGlobe()){const t=e.dE(i.transform,this._lngLat)?0:1;this._setOpacity(t)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const e=this._container.querySelector(su);e&&e.focus()}_onClose(){this.remove()}_setOpacity(e){this._container&&(this._container.style.opacity=`${e}`),this._content&&(this._content.style.pointerEvents=e?"auto":"none")}},Marker:eu,Style:da,LngLat:e.ab,LngLatBounds:e.ac,Point:e.au,MercatorCoordinate:e.ag,FreeCameraOptions:Ei,Evented:e.y,config:e.bN,prewarm:function(){rs().acquire(ni)},clearPrewarmedResources:function(){const e=is;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(ni),is=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.bN.ACCESS_TOKEN},set accessToken(t){e.fg(t)},get baseApiUrl(){return e.bN.API_URL},set baseApiUrl(t){e.fh(t)},get workerCount(){return oi.workerCount},set workerCount(e){!function(e){oi.workerCount=e}(e)},get maxParallelImageRequests(){return e.bN.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){e.fm(t)},clearStorage(t){e.bH(t)},get workerUrl(){return ii.workerUrl},set workerUrl(e){ii.workerUrl=e},get workerClass(){return ii.workerClass},set workerClass(e){ii.workerClass=e},get dracoUrl(){return e.cN()},set dracoUrl(t){e.fl(t)},get meshoptUrl(){return e.cW()},set meshoptUrl(t){e.fn(t)},get buildingGenUrl(){return e.cK()},set buildingGenUrl(t){e.fi(t)},setNow:e.co.setNow,restoreNow:e.co.restoreNow};return hu});var n=i;return n})},35297:function(e,t,i){"use strict";e.exports=i.p+"img/14.31abe46d.png"},40286:function(e,t,i){"use strict";e.exports=i.p+"img/6.a74dfbaf.png"},42199:function(e,t,i){"use strict";e.exports=i.p+"img/12.502c12dc.png"},42859:function(e,t,i){"use strict";i.d(t,{A:function(){return _}});i(94178),i(64792);var r=function(){var e=this,t=e._self._c,i=e._self._setupProxy;return t("el-timeline",{staticStyle:{"overflow-y":"auto",padding:"5px"}},e._l(e.statusTimeLineList,function(r,n){var o;return t("el-timeline-item",{key:n,attrs:{icon:r.icon,size:r.size,type:r.type,color:0===n?"#6495ED":""}},[t("div",{staticClass:"tw-flex tw-justify-between"},[t("div",[t("div",[e._v(e._s(i.formatDate(r.logsTime)))]),t("div",[e._v(e._s("English"===e.langTitle?r.contentEn:r.content))]),e.planFileData.length&&"128"===r.status?t("div",e._l(e.planFileData,function(i){return t("el-image",{key:i.id,staticClass:"mr-sm",staticStyle:{width:"50px",height:"50px"},attrs:{src:i.url,"preview-src-list":e.planFileData.map(e=>e.url)}})}),1):e._e(),e.signFileData.length&&"129"===r.status?t("div",e._l(e.signFileData,function(i){return t("el-image",{key:i.id,staticClass:"mr-sm",staticStyle:{width:"50px",height:"50px"},attrs:{src:i.url,"preview-src-list":e.signFileData.map(e=>e.url)}})}
1),1):e._e(),r.contentList&&r.contentList.length?e._l(r.contentList,function(i){return t("div",{key:i.id,staticClass:"tw-ml-8 tw-mt-2 tw-text-slate-400"},[t("div",[e._v(e._s(i.timeStr))]),t("div",[e._v(e._s(i.content))])])}):e._e()],2),t("div",{staticClass:"operation-box tw-flex tw-items-center tw-leading-none"},[e.isLastOrderFlag&&null!==(o=r.rescheduleVoucherFileList)&&void 0!==o&&o.length?t(i.BaseContractAmendmentVoucher,{attrs:{rescheduleVoucherFileList:r.rescheduleVoucherFileList||[]}}):e._e()],1)])])}),1)},n=[],o=i(79188),s=function(){var e=this,t=e._self._c,i=e._self._setupProxy;return t("el-popover",{attrs:{placement:"right",width:"400",trigger:"click"}},[i.loading?t("div",{directives:[{name:"loading",rawName:"v-loading",value:!0,expression:"true"}],staticClass:"tw-h-[200px]"}):e.rescheduleVoucherFileList.length?t("div",[t("div",{staticClass:"tw-text-2xl tw-font-bold"},[e._v("æä»¶å表")]),e._l(e.rescheduleVoucherFileList,function(r){return t("div",{key:r.id},[t("div",{staticClass:"tw-flex tw-justify-between tw-mb-4 tw-mt-4"},[t("span",[e._v(e._s(r.name))]),t("div",[t("el-link",{staticClass:"tw-mr-2",attrs:{type:"success"},on:{click:()=>i.viewTmp(r)}},[e._v("é¢è§")]),t("el-link",{attrs:{type:"success"},on:{click:()=>i.downloadTmp(r)}},[e._v("ä¸è½½")])],1)]),t("hr")])})],2):t("el-empty",{attrs:{description:"ææ æ°æ®"}}),t("el-link",{attrs:{slot:"reference",type:"primary"},slot:"reference"},[e._v("æ¥çæ¹çº¦åè¯")])],1)},a=[],l=(i(30318),i(74061)),c=i(16997),h={__name:"base-contract-amendment-voucher",props:{rescheduleVoucherFileList:{type:[Array,String],default:()=>[]}},setup(e){const t=(0,l.ref)(!1);function i(e){window.open(e.url)}function r(e){const t=e.split(".");return t.length>1?t[t.length-1].toLowerCase():""}function n(e){const t=r(e.url);if(["jpg","jpeg","png","gif","bmp","webp"].includes(t))window.open(e.url);else if(["xlsx","xls"].includes(t))(0,c.JG)(e.url,!0);else if(["doc","docx"].includes(t)){const t=`https://view.officeapps.live.com/op/view.aspx?src=${encodeURIComponent(e.url)}`;window.open(t)}else"pdf"===t?window.open(e.url):(0,c.QL)("æä¸æ¯æè¯¥æ ¼å¼æä»¶çé¢è§")}return{__sfc:!0,loading:t,downloadTmp:i,getFileExtension:r,viewTmp:n}}},u=h,d=i(50247),f=(0,d.A)(u,s,a,!1,null,"1c607b6c",null),p=f.exports,A={__name:"base-orbit-content",props:{statusTimeLineList:{type:Array,default:()=>[]},planFileData:{type:Array,default:()=>[]},signFileData:{type:Array,default:()=>[]},langTitle:{type:String,default:"䏿"},isLastOrderFlag:{type:Boolean,default:!1}},setup(e){return{__sfc:!0,formatDate:o.Yq,BaseContractAmendmentVoucher:p}}},g=A,m=(0,d.A)(g,r,n,!1,null,"b7fe0998",null),_=m.exports},52206:function(e,t,i){"use strict";e.exports=i.p+"img/13.91b7fd7e.png"},53507:function(e,t,i){"use strict";var r=i(87081),n=i(21513),o=i(33330),s=i(84189),a=i(93265),l=i(21902),c=i(58073),h=l(function(){return c&&1!==Object.getOwnPropertyDescriptor(n,"queueMicrotask").value.length});r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:h},{queueMicrotask:function(e){a(arguments.length,1),o(s(e))}})},55058:function(e,t,i){"use strict";i.d(t,{A:function(){return g}});var r=function(){var e=this,t=e._self._c,i=e._self._setupProxy;return t("el-dialog",{attrs:{visible:i.visible,title:i.title,width:"1200px","append-to-body":!0},on:{"update:visible":function(e){i.visible=e},close:i.onClose},scopedSlots:e._u([{key:"footer",fn:function(){return[t("el-button",{on:{click:i.onClose}},[e._v("å
³ é")]),t("el-button",{attrs:{type:"primary"},on:{click:i.onSubmit}},[e._v("订 é
")])]},proxy:!0}])},[t("div",{staticClass:"tw-ml-6 tw-mr-6"},[t("div",{staticClass:"tw-mt-2 tw-flex tw-justify-between tw-relative"},[t("div",{staticClass:"tw-text-center tw-z-10 tw-h-[120px] tw-w-[160px]"},[t("p",{staticClass:"tw-text-lg"},[e._v("å·²å
¥ä»")]),t("p",{staticClass:"iconFont tw-inline-block tw-text-4xl tw-bg-white tw-rounded-[40px] tw-border tw-border-warning tw-border-solid tw-p-2"},[e._v(" î² ")]),t("p",{staticClass:"tw-text-xl"},[t("span",{staticClass:"tw-mr-2",class:1===i.queryModel.enable1?"tw-text-green-500":""},[e._v(e._s(1===i.queryModel.enable1?"å¯ç¨":"ç¦ç¨"))]),t("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66"},model:{value:i.queryModel.enable1,callback:function(t){e.$set(i.queryModel,"enable1",t)}
1,expression:"queryModel.enable1"}})],1),1===i.subscriptionType&&1===i.queryModel.enable1?t("div",{staticClass:"tw-mt-2"},[t("el-date-picker",{staticClass:"!tw-w-[170px]",attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm",placeholder:"éæ©æ¥ææ¶é´","picker-options":i.setDateRange},model:{value:i.queryModel.overdueTime1,callback:function(t){e.$set(i.queryModel,"overdueTime1",t)},expression:"queryModel.overdueTime1"}})],1):e._e()]),t("div",{staticClass:"tw-text-center tw-z-10 tw-h-[120px] tw-w-[160px]"},[t("p",{staticClass:"tw-text-lg"},[e._v("å·²å¼è¹(èµ·é£)")]),t("p",{staticClass:"iconFont tw-inline-block tw-text-4xl tw-bg-white tw-rounded-[40px] tw-border tw-border-warning tw-border-solid tw-p-2"},[e._v(" î© ")]),t("p",{staticClass:"tw-text-xl"},[t("span",{staticClass:"tw-mr-2",class:1===i.queryModel.enable2?"tw-text-green-500":""},[e._v(e._s(1===i.queryModel.enable2?"å¯ç¨":"ç¦ç¨"))]),t("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66"},model:{value:i.queryModel.enable2,callback:function(t){e.$set(i.queryModel,"enable2",t)},expression:"queryModel.enable2"}})],1),1===i.subscriptionType&&1===i.queryModel.enable2?t("div",{staticClass:"tw-mt-2"},[t("el-date-picker",{staticClass:"!tw-w-[170px]",attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm",placeholder:"éæ©æ¥ææ¶é´","picker-options":i.setDateRange},model:{value:i.queryModel.overdueTime2,callback:function(t){e.$set(i.queryModel,"overdueTime2",t)},expression:"queryModel.overdueTime2"}})],1):e._e()]),t("div",{staticClass:"tw-text-center tw-z-10 tw-h-[120px] tw-w-[160px]"},[t("p",{staticClass:"tw-text-lg"},[e._v("已尿¸¯")]),t("p",{staticClass:"iconFont tw-inline-block tw-text-4xl tw-bg-white tw-rounded-[40px] tw-border tw-border-warning tw-border-solid tw-p-2"},[e._v(" î ")]),t("p",{staticClass:"tw-text-xl"},[t("span",{staticClass:"tw-mr-2",class:1===i.queryModel.enable3?"tw-text-green-500":""},[e._v(e._s(1===i.queryModel.enable3?"å¯ç¨":"ç¦ç¨"))]),t("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66"},model:{value:i.queryModel.enable3,callback:function(t){e.$set(i.queryModel,"enable3",t)},expression:"queryModel.enable3"}})],1),1===i.subscriptionType&&1===i.queryModel.enable3?t("div",{staticClass:"tw-mt-2"},[t("el-date-picker",{staticClass:"!tw-w-[170px]",attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm",placeholder:"éæ©æ¥ææ¶é´","picker-options":i.setDateRange},model:{value:i.queryModel.overdueTime3,callback:function(t){e.$set(i.queryModel,"overdueTime3",t)},expression:"queryModel.overdueTime3"}})],1):e._e()]),t("div",{staticClass:"tw-text-center tw-z-10 tw-h-[120px] tw-w-[160px]"},[t("p",{staticClass:"tw-text-lg"},[e._v("å·²ææ(è´§)")]),t("p",{staticClass:"iconFont tw-inline-block tw-text-4xl tw-bg-white tw-rounded-[40px] tw-border tw-border-warning tw-border-solid tw-p-2"},[e._v(" îª ")]),t("p",{staticClass:"tw-text-xl"},[t("span",{staticClass:"tw-mr-2",class:1===i.queryModel.enable4?"tw-text-green-500":""},[e._v(e._s(1===i.queryModel.enable4?"å¯ç¨":"ç¦ç¨"))]),t("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66"},model:{value:i.queryModel.enable4,callback:function(t){e.$set(i.queryModel,"enable4",t)},expression:"queryModel.enable4"}})],1),1===i.subscriptionType&&1===i.queryModel.enable4?t("div",{staticClass:"tw-mt-2"},[t("el-date-picker",{staticClass:"!tw-w-[170px]",attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm",placeholder:"éæ©è¶
ææ¶é´","picker-options":i.setDateRange},model:{value:i.queryModel.overdueTime4,callback:function(t){e.$set(i.queryModel,"overdueTime4",t)},expression:"queryModel.overdueTime4"}})],1):e._e()]),t("div",{staticClass:"tw-text-center tw-z-10 tw-h-[120px] tw-w-[160px]"},[t("p",{staticClass:"tw-text-lg"},[e._v("æ´¾é")]),t("p",{staticClass:"iconFont tw-inline-block tw-text-4xl tw-bg-white tw-rounded-[40px] tw-border tw-border-warning tw-border-solid tw-p-2"},[e._v(" î§ ")]),t("p",{staticClass:"tw-text-xl"},[t("span",{staticClass:"tw-mr-2",class:1===i.queryModel.enable5?"tw-text-green-500":""}
1,[e._v(e._s(1===i.queryModel.enable5?"å¯ç¨":"ç¦ç¨"))]),t("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66"},model:{value:i.queryModel.enable5,callback:function(t){e.$set(i.queryModel,"enable5",t)},expression:"queryModel.enable5"}})],1),1===i.subscriptionType&&1===i.queryModel.enable5?t("div",{staticClass:"tw-mt-2"},[t("el-date-picker",{staticClass:"!tw-w-[170px]",attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm",placeholder:"éæ©æ¥ææ¶é´","picker-options":i.setDateRange},model:{value:i.queryModel.overdueTime5,callback:function(t){e.$set(i.queryModel,"overdueTime5",t)},expression:"queryModel.overdueTime5"}})],1):e._e()]),t("div",{staticClass:"tw-text-center tw-z-10 tw-h-[120px] tw-w-[160px]"},[t("p",{staticClass:"tw-text-lg"},[e._v("ç¾æ¶")]),t("p",{staticClass:"iconFont tw-inline-block tw-text-4xl tw-bg-white tw-rounded-[40px] tw-border tw-border-warning tw-border-solid tw-p-2"},[e._v(" î« ")]),t("p",{staticClass:"tw-text-xl"},[t("span",{staticClass:"tw-mr-2",class:1===i.queryModel.enable6?"tw-text-green-500":""},[e._v(e._s(1===i.queryModel.enable6?"å¯ç¨":"ç¦ç¨"))]),t("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66"},model:{value:i.queryModel.enable6,callback:function(t){e.$set(i.queryModel,"enable6",t)},expression:"queryModel.enable6"}})],1),1===i.subscriptionType&&1===i.queryModel.enable6?t("div",{staticClass:"tw-mt-2"},[t("el-date-picker",{staticClass:"!tw-w-[170px]",attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm",placeholder:"éæ©æ¥ææ¶é´","picker-options":i.setDateRange},model:{value:i.queryModel.overdueTime6,callback:function(t){e.$set(i.queryModel,"overdueTime6",t)},expression:"queryModel.overdueTime6"}})],1):e._e()]),0===i.subscriptionType?t("div",{staticClass:"tw-text-center tw-z-10 tw-w-[160px] tw-h-[120px]"},[t("p",{staticClass:"tw-text-lg"},[e._v("é®é¢ä»¶")]),t("p",{staticClass:"iconFont tw-inline-block tw-text-4xl tw-bg-white tw-rounded-[40px] tw-border tw-border-warning tw-border-solid tw-p-2"},[e._v(" î¥ ")]),t("p",{staticClass:"tw-text-xl"},[t("span",{staticClass:"tw-mr-2",class:1===i.queryModel.enable7?"tw-text-green-500":""},[e._v(e._s(1===i.queryModel.enable7?"å¯ç¨":"ç¦ç¨"))]),t("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-color":"#13ce66"},model:{value:i.queryModel.enable7,callback:function(t){e.$set(i.queryModel,"enable7",t)},expression:"queryModel.enable7"}})],1)]):e._e(),t("div",{staticClass:"tw-absolute tw-top-[35%] tw-left-[60px] tw-h-[1px] tw-bg-warning",class:0===i.subscriptionType?"tw-w-[75%]":"tw-w-[89%]"})]),t("div",{staticClass:"tw-mt-40"},[t("div",{staticClass:"tw-text-xl tw-ml-2 tw-font-bold"},[e._v(" 订é
说æ ")]),t("p",[e._v("1ãç¨æ·ç»å®å¾®ä¿¡å
¬ä¼å·ï¼æè½æ¶å°è®¢é
éç¥")]),t("p",[e._v("2ã订é
å为âå
¨å±è®¢é
âãâæå®è®¢é
â")]),t("p",[t("span",{staticClass:"tw-ml-4"},[e._v(" 2.1ãå
¨å±è®¢é
ï¼ææè®¢åæ´æ°è®¢é
çç©æµè½¨è¿¹èç¹æ¶ï¼é½ä¼åé微信éç¥ ")])]),t("p",[t("span",{staticClass:"tw-ml-4"},[e._v(" 2.2ãæå®è®¢é
ï¼éå®çè®¢åæ´æ°è®¢é
çç©æµè½¨è¿¹èç¹æ¶ï¼åé微信éç¥ ")])]),t("p",[t("span",{staticClass:"tw-ml-14"},[e._v(" è¶
ææ¶é´ï¼å·²è¶
æè¿æªæ´æ°è®¢é
çç©æµè½¨è¿¹æ¶ï¼åéè¶
æå¾®ä¿¡éç¥ ")])]),t("p",[e._v(" 3ãè®¢åæ´æ°è®¢é
ç©æµè½¨è¿¹èç¹æ¶ï¼ç³»ç»éè¿å¾®ä¿¡å
¬ä¼å·â纽é
·å½é
ç©æµâè¿è¡éç¥æé ")]),t("p",[e._v(" 4ãç»å®å¾®ä¿¡å
¬ä¼å·æ¹æ³ï¼ "),t("br"),e._v(" 微信æç´¢â纽é
·å½é
ç©æµâå
¬ä¼å· -> å
³æ³¨å
¬ä¼å· -> åæ¶æ¯ -> åºé¨èåâç¨æ·ä¸å¿â -> ç»å®è´¦å· ")])]),t("el-image",{staticClass:"tw-h-[150px]",attrs:{src:"https://nkgj.oss-cn-shenzhen.aliyuncs.com/tms/png/%E5%85%AC%E4%BC%97%E5%8F%B7%E4%BA%8C%E7%BB%B4%E7%A0%81.png","preview-src-list":["https://nkgj.oss-cn-shenzhen.aliyuncs.com/tms/png/%E5%85%AC%E4%BC%97%E5%8F%B7%E4%BA%8C%E7%BB%B4%E7%A0%81.png"]}})],1)])},n=[],o=(i(2637),i(74061)),s=i(29821),a=i(93003);const l=a.Ay.portalApi,c=e=>s.A.get(l+"logisticsNodeSubscription/queryByCondition",{params:e}),h=e=>s.A.post(l+"logisticsNodeSubscription/subscription",e);var u=i(16997),d={__name:"index",setup(e,{expose:t}){const i=(0,o.ref)(!1),r=(0,o.ref)("å
¨å±è®¢é
"),n=(0,o.ref)({userId:"",userName:"",orderNo:"",type:0,code1:"104",name1:"å·²å
¥ä»",enable1:0,overdueTime1:"",code2:"109",name2:"å·²å¼è¹(èµ·é£)",enable2:0,overdueTime2:"",code3:"116",name3:"已尿¸¯",enable3:0,overdueTime3:"",code4:"123",name4:"å·²ææ(è´§)",enable4:0,overdueTime4:"",code5:"127",name5:"æ´¾é",enable5:0,overdueTime5:"",code6:"129",name6:"ç¾æ¶",enable6:0,overdueTime6:"",code7:"44",name7:"é®é¢ä»¶",enable7:0,overdueTime7:""}),s=(0,o.ref)(0);function a(e,t=""){s.value=e,r.value=0===e?"å
¨å±è®¢é
":"æå®è®¢é
",n.value.orderNo=t,d(e,t),i.value=!0}function l(){n.value={userId:"",userName:"",orderNo:"",type:0,code1:"104",name1:"å·²å
¥ä»",enable1:0,overdueTime1:"",code2:"109",name2:"å·²å¼è¹(èµ·é£)",enable2:0,overdueTime2:"",code3:"116",name3:"已尿¸¯",enable3:0,overdueTime3:"",code4:"123",name4:"å·²ææ(è´§)",enable4:0,overdueTime4:"",code5:"127",name5:"æ´¾é",enable5:0,overdueTime5:"",code6:"129",name6:"ç¾æ¶",enable6:0,overdueTime6:"",code7:"44",name7:"é®é¢ä»¶",enable7:0,overdueTime7:""},i.value=!1}async function d(e,t){var i;const r={userId:null===(i=JSON.parse(sessionStorage.getItem("userId")))||void 0===i?void 0:i.id,type:e};1===e&&(r.orderNo=t);const o=await c(r);if("ok"===o.data.code){const e=o.data.data||{};n.value={...n.value,...e},n.value.overdueTime1=1e3*e.overdueTime1||"",n.value.overdueTime2=1e3*e.overdueTime2||"",n.value.overdueTime3=1e3*e.overdueTime3||"",n.value.overdueTime4=1e3*e.overdueTime4||"",n.value.overdueTime5=1e3*e.overdueTime5||"",n.value.overdueTime6=1e3*e.overdueTime6||"",n.value.overdueTime7=1e3*e.overdueTime7||""}}async function f(){var e,t;n.value.userId=null===(e=JSON.parse(sessionStorage.getItem("userId")))||void 0===e?void 0:e.id,n.value.userName=null===(t=JSON.parse(sessionStorage.getItem("userId")))||void 0===t?void 0:t.username,n.value.type=s.value;let i=Object.assign({},n.value);
1i.overdueTime1=i.overdueTime1/1e3||0,i.overdueTime2=i.overdueTime2/1e3||0,i.overdueTime3=i.overdueTime3/1e3||0,i.overdueTime4=i.overdueTime4/1e3||0,i.overdueTime5=i.overdueTime5/1e3||0,i.overdueTime6=i.overdueTime6/1e3||0,i.overdueTime7=i.overdueTime7/1e3||0;const r=await h(i);"ok"===r.data.code?((0,u.tN)("订é
æå"),l()):(0,u.QL)(r.data.message)}const p=(0,o.ref)({disabledDate:e=>Date.now()>e.getTime()+864e5-5});return t({onOpen:a}),{__sfc:!0,visible:i,title:r,queryModel:n,subscriptionType:s,onOpen:a,onClose:l,getDetalis:d,onSubmit:f,setDateRange:p}}},f=d,p=i(50247),A=(0,p.A)(f,r,n,!1,null,"15410efd",null),g=A.exports},56639:function(e,t,i){"use strict";i.d(t,{A:function(){return A}});var r=function(){var e=this,t=e._self._c,i=e._self._setupProxy;return t("el-dialog",{attrs:{visible:i.visible,title:"é®é¢ä»¶"+i.clientNo,width:"600px","append-to-body":""},on:{"update:visible":function(e){i.visible=e},close:i.onClose},scopedSlots:e._u([{key:"footer",fn:function(){return[t("el-button",{attrs:{loading:i.loading},on:{click:i.onClose}},[e._v("å
³é")])]},proxy:!0}])},[t("div",{directives:[{name:"loading",rawName:"v-loading",value:i.loading,expression:"loading"}],staticClass:"tw-max-h-[60vh] tw-overflow-auto"},[i.resultData.length?e._l(i.resultData,function(r){return t("el-descriptions",{key:r.id,staticClass:"tw-mt-2",attrs:{title:"",border:"",column:2}},[t("el-descriptions-item",{attrs:{label:"é®é¢ç±»å"}},[e._v(e._s(r.name))]),t("el-descriptions-item",{attrs:{label:"åçæ¶é´"}},[e._v(e._s(i.formatDate(r.time)))]),t("el-descriptions-item",{attrs:{label:"é®é¢å¤æ³¨",span:2}},[e._v(e._s(r.remark))]),t("el-descriptions-item",{attrs:{label:"éä»¶",span:2}},e._l(r.picList||[],function(e){return t("el-image",{key:e,staticStyle:{width:"100px",height:"100px"},attrs:{src:e,"preview-src-list":r.picList||[]}})}),1)],1)}):t("el-empty",{staticClass:"tw-flex-1 tw-h-full !tw-p-0",attrs:{description:"ææ æ°æ®"}})],2)])},n=[],o=i(74061),s=i(29821),a=i(93003);const l=({clientNo:e})=>s.A.get(a.Ay.managerApi+"/order/abnormal_order_list_detail_new",{params:{clientNo:e}});var c=i(16997),h=i(79188),u={__name:"index",setup(e,{expose:t}){const i=(0,o.ref)(!1),r=(0,o.ref)([]),n=(0,o.ref)(!1),s=(0,o.ref)("");function a(e){i.value=!0,n.value=!0,s.value=e.clientNo,l({clientNo:e.clientNo}).then(e=>{var t;"ok"===(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.code)?r.value=e.data.data:(0,c.QL)(e.data.message)}).finally(()=>{n.value=!1})}function u(){i.value=!1}return t({onOpen:a}),{__sfc:!0,visible:i,resultData:r,loading:n,clientNo:s,onOpen:a,onClose:u,formatDate:h.Yq}}},d=u,f=i(50247),p=(0,f.A)(d,r,n,!1,null,"66546f24",null),A=p.exports},60661:function(e,t,i){"use strict";e.exports=i.p+"img/5.b10028d9.png"},71839:function(e,t,i){"use strict";var r=i(54894);r("flat")},71840:function(e,t,i){"use strict";e.exports=i.p+"img/8.82ae2da7.png"},75361:function(e,t,i){"use strict";i.d(t,{Jz:function(){return a},fY:function(){return s}});i(64755),i(94178),i(62067),i(22694),i(74061);var r=i(71897),n=i(14607),o=i(43469);function s(e,t){if(!(0,n.BS)(e))return[];const i=[];return(0,r.A)(e,(e,t)=>{const[r,n]=t.split("__");if(!r||!n)return;const o=i.findIndex(e=>e.prefix===r);o>=0?i[o]={...i[o],[n]:e}:i.push({prefix:r,[n]:e})}),t&&i.forEach(e=>{e.notTotal=+(0,o.M2)((null===e||void 0===e?void 0:e["Total"])-(null===e||void 0===e?void 0:e["UseTotal"]),2)}),i}function a(e,t={nodeKey:"money"}){if(!(0,n.Vz)(e))return"";const i=[];e.forEach(e=>{const r=i.findIndex(t=>t.currency===e.currency);if(r>=0){const n=i[r];i[r]={...n,money:+(0,o.M2)(n.money+e[t.nodeKey])}}else{const r={currency:e.currency,label:e.currency+(t.appendName||""),money:+(0,o.M2)(e[t.nodeKey])};i.push(r)}});let r="";return i.forEach(e=>{r+=0!==e.money?`${e.label}:${e.money}ï¼`:""}),r.slice(0,-1)}},77696:function(e,t,i){"use strict";var r=i(87081),n=Math.hypot,o=Math.abs,s=Math.sqrt,a=!!n&&n(1/0,NaN)!==1/0;r({target:"Math",stat:!0,arity:2,forced:a},{hypot:function(e,t){var i,r,n=0,a=0,l=arguments.length,c=0;while(a<l)i=o(arguments[a++]),c<i?(r=c/i,n=n*r*r+1,c=i):i>0?(r=i/c,n+=r*r):n+=i;return c===1/0?1/0:c*s(n)}})},84849:function(e,t,i){"use strict";e.exports=i.p+"img/1.cec891bb.png"},91446:function(e,t,i){"use strict";var r=i(58073),n=i(68233),o=i(76350),s=i(78800);r&&!o.correct&&(n(RegExp.prototype,"flags",{configurable:!0,get:s}),o.correct=!0)},91793:function(e,t,i){"use strict";var r=i(35498),n=i(87081),o=i(21513),s=i(62768),a=i(27453),l=i(21902),c=i(15021),h=i(16368),u=i(21694),d=i(75442),f=i(69147),p=i(77436),A=i(77093),g=i(66494),m=i(6994),_=i(15990),y=i(94613),x=i(22868),v=i(90321),w=i(93265),E=i(89845),b=i(5953),I=i(49975),C=i(19388),B=i(10350),D=i(42986),T=i(44239),M=o.Object,Q=o.Array,S=o.Date,P=o.Error,R=o.TypeError,z=o.PerformanceMark,L=s("DOMException"),F=b.Map,O=b.has,k=b.get,N=b.set,U=I.Set,V=I.add,H=I.has,j=s("Object","keys"),G=a([].push),Y=a((!0).valueOf),W=a(1.1.valueOf),J=a("".valueOf),Z=a(S.prototype.getTime),q=c("structuredClone"),K="DataCloneError",X="Transferring",$=function(e){return!l(function(){var t=new o.Set([7]),i=e(t),r=e(M(7));return i===t||!i.has(7)||!f(r)||7!==+r})&&e},ee=function(e,t){return!l(function(){var i=new t,r=e({a:i,b:i}
1);return!(r&&r.a===r.b&&r.a instanceof t&&r.a.stack===i.stack)})},te=function(e){return!l(function(){var t=e(new o.AggregateError([1],q,{cause:3}));return"AggregateError"!==t.name||1!==t.errors[0]||t.message!==q||3!==t.cause})},ie=o.structuredClone,re=r||!ee(ie,P)||!ee(ie,L)||!te(ie),ne=!ie&&$(function(e){return new z(q,{detail:e}).detail}),oe=$(ie)||ne,se=function(e){throw new L("Uncloneable type: "+e,K)},ae=function(e,t){throw new L((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",K)},le=function(e,t){return oe||ae(t),oe(e)},ce=function(){var e;try{e=new o.DataTransfer}catch(t){try{e=new o.ClipboardEvent("").clipboardData}catch(i){}}return e&&e.items&&e.files?e:null},he=function(e,t,i){if(O(t,e))return k(t,e);var r,n,s,a,l,c,u=i||m(e);if("SharedArrayBuffer"===u)r=oe?oe(e):e;else{var d=o.DataView;d||h(e.slice)||ae("ArrayBuffer");try{if(h(e.slice)&&!e.resizable)r=e.slice(0);else{n=e.byteLength,s="maxByteLength"in e?{maxByteLength:e.maxByteLength}:void 0,r=new ArrayBuffer(n,s),a=new d(e),l=new d(r);for(c=0;c<n;c++)l.setUint8(c,a.getUint8(c))}}catch(f){throw new L("ArrayBuffer is detached",K)}}return N(t,e,r),r},ue=function(e,t,i,r,n){var s=o[t];return f(s)||ae(t),new s(he(e.buffer,n),i,r)},de=function(e,t){if(p(e)&&se("Symbol"),!f(e))return e;if(t){if(O(t,e))return k(t,e)}else t=new F;var i,r,n,a,l,c,u,d,A=m(e);switch(A){case"Array":n=Q(v(e));break;case"Object":n={};break;case"Map":n=new F;break;case"Set":n=new U;break;case"RegExp":n=new RegExp(e.source,E(e));break;case"Error":switch(r=e.name,r){case"AggregateError":n=new(s(r))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":n=new(s(r));break;case"CompileError":case"LinkError":case"RuntimeError":n=new(s("WebAssembly",r));break;default:n=new P}break;case"DOMException":n=new L(e.message,e.name);break;case"ArrayBuffer":case"SharedArrayBuffer":n=he(e,t,A);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":c="DataView"===A?e.byteLength:e.length,n=ue(e,A,e.byteOffset,c,t);break;case"DOMQuad":try{n=new DOMQuad(de(e.p1,t),de(e.p2,t),de(e.p3,t),de(e.p4,t))}catch(g){n=le(e,A)}break;case"File":if(oe)try{n=oe(e),m(n)!==A&&(n=void 0)}catch(g){}if(!n)try{n=new File([e],e.name,e)}catch(g){}n||ae(A);break;case"FileList":if(a=ce(),a){for(l=0,c=v(e);l<c;l++)a.items.add(de(e[l],t));n=a.files}else n=le(e,A);break;case"ImageData":try{n=new ImageData(de(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch(g){n=le(e,A)}break;default:if(oe)n=oe(e);else switch(A){case"BigInt":n=M(e.valueOf());break;case"Boolean":n=M(Y(e));break;case"Number":n=M(W(e));break;case"String":n=M(J(e));break;case"Date":n=new S(Z(e));break;case"Blob":try{n=e.slice(0,e.size,e.type)}catch(g){ae(A)}break;case"DOMPoint":case"DOMPointReadOnly":i=o[A];try{n=i.fromPoint?i.fromPoint(e):new i(e.x,e.y,e.z,e.w)}catch(g){ae(A)}break;case"DOMRect":case"DOMRectReadOnly":i=o[A];try{n=i.fromRect?i.fromRect(e):new i(e.x,e.y,e.width,e.height)}catch(g){ae(A)}break;case"DOMMatrix":case"DOMMatrixReadOnly":i=o[A];try{n=i.fromMatrix?i.fromMatrix(e):new i(e)}catch(g){ae(A)}break;case"AudioData":case"VideoFrame":h(e.clone)||ae(A);try{n=e.clone()}catch(g){se(A)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":ae(A);default:se(A)}}switch(N(t,e,n),A){case"Array":case"Object":for(u=j(e),l=0,c=v(u);l<c;l++)d=u[l],y(n,d,de(e[d],t));break;case"Map":e.forEach(function(e,i){N(n,de(i,t),de(e,t))});break;case"Set":e.forEach(function(e){V(n,de(e,t))});break;case"Error":x(n,"message",de(e.message,t)),_(e,"cause")&&x(n,"cause",de(e.cause,t)),"AggregateError"===r?n.errors=de(e.errors,t):"SuppressedError"===r&&(n.error=de(e.error,t),n.suppressed=de(e.suppressed,t));case"DOMException":D&&x(n,"stack",de(e.stack,t))}return n},fe=function(e,t){if(!f(e))throw new R("Transfer option cannot be converted to a sequence");var i=[];A(e,function(e){G(i,g(e))});var r,n,s,a,l,c,d=0,p=v(i),_=new U;while(d<p){if(r=i[d++],n=m(r),"ArrayBuffer"===n?H(_,r):O(t,r))throw new L("Duplicate transferable",K);if("ArrayBuffer"!==n){if(T)a=ie(r,{transfer:[r]});else switch(n){case"ImageBitmap":s=o.OffscreenCanvas,u(s)||ae(n,X);try{l=new s(r.width,r.height),c=l.getContext("bitmaprenderer"),c.transferFromImageBitmap(r),a=l.transferToImageBitmap()}catch(y){}break;case"AudioData":case"VideoFrame":h(r.clone)&&h(r.close)||ae(n,X);try{a=r.clone(),r.close()}catch(y){}break;case"MediaSourceHandle":case"MessagePort":case"MIDIAccess":case"OffscreenCanvas":case"ReadableStream":case"RTCDataChannel":case"TransformStream":case"WebTransportReceiveStream":case"WebTransportSendStream":case"WritableStream":ae(n,X)}if(void 0===a)throw new L("This object cannot be transferred: "+n,K);N(t,r,a)}else V(_,r)}return _},pe=function(e){C(e,function(e){T?oe(e,{transfer:[e]}):h(e.transfer)?e.transfer():B?B(e):ae("ArrayBuffer",X)})};n({global:!0,enumerable:!0,sham:!T,forced:re},{structuredClone:function(e){var t,i,r=w(arguments.length,1)>1&&!d(arguments[1])?g(arguments[1]):void 0,n=r?r.transfer:void 0;void 0!==n&&(t=new F,i=fe(n,t));var o=de(e,t);return i&&pe(i),o}})},93718:function(e,t,i){"use strict";var r=i(87081),n=i(15990);r({target:"Object",stat:!0},{hasOwn:n})},96041:function(e,t,i){"use strict";e.exports=i.p+"img/9.13397abd.png"},98435:function(e,t,i){"use strict";e.exports=i.p+"img/3.286c6cb2.png"}}]);
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.