@tracktor/map 1.3.2 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Features/Itinerary/Itinerary.d.ts +4 -4
- package/dist/Features/MarkerMap/MarkerMap.d.ts +1 -1
- package/dist/Features/NearestPointItinerary/NearestPointItinary.d.ts +1 -1
- package/dist/main.js +350 -328
- package/dist/main.umd.cjs +4 -4
- package/dist/services/Mapbox/mapboxFindNearestPoint.d.ts +11 -0
- package/dist/types/MarkerMapProps.d.ts +9 -4
- package/package.json +1 -1
- /package/dist/services/OSRM/{findNearestPoint.d.ts → OSRMfindNearestPoint.d.ts} +0 -0
package/dist/main.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.mapboxgl-canvas{left:0;position:absolute;top:0}.mapboxgl-map:-webkit-full-screen{height:100%;width:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:none}.mapboxgl-ctrl-bottom,.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-left,.mapboxgl-ctrl-right,.mapboxgl-ctrl-top,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.mapboxgl-ctrl-top-left{left:0;top:0}.mapboxgl-ctrl-top{left:50%;top:0;transform:translate(-50%)}.mapboxgl-ctrl-top-right{right:0;top:0}.mapboxgl-ctrl-right{right:0;top:50%;transform:translateY(-50%)}.mapboxgl-ctrl-bottom-right{bottom:0;right:0}.mapboxgl-ctrl-bottom{bottom:0;left:50%;transform:translate(-50%)}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-left{left:0;top:50%;transform:translateY(-50%)}.mapboxgl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{float:left;margin:10px 0 0 10px}.mapboxgl-ctrl-top .mapboxgl-ctrl{float:left;margin:10px 0}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{float:right;margin:10px 10px 0 0}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl,.mapboxgl-ctrl-right .mapboxgl-ctrl{float:right;margin:0 10px 10px 0}.mapboxgl-ctrl-bottom .mapboxgl-ctrl{float:left;margin:10px 0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl,.mapboxgl-ctrl-left .mapboxgl-ctrl{float:left;margin:0 0 10px 10px}.mapboxgl-ctrl-group{background:#fff;border-radius:4px}.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media(-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{background-color:initial;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;overflow:hidden;padding:0;width:29px}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media(-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:initial}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl-group button:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:only-child{border-radius:inherit}.mapboxgl-ctrl button:not(:disabled):hover{background-color:#0000000d}.mapboxgl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media(-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media(-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media(-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media(-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media(-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media(-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-buildings-toggle .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M3.3335 11.6666C3.3335 12.5871 4.07969 13.3333 5.00016 13.3333C5.92064 13.3333 6.66683 12.5871 6.66683 11.6666L6.66683 6.66659L11.6668 6.66659C12.5873 6.66659 13.3335 5.92039 13.3335 4.99992C13.3335 4.07944 12.5873 3.33325 11.6668 3.33325H3.3335V11.6666Z' fill='currentColor'/%3E%3Cpath d='M26.6668 11.6666C26.6668 12.5871 25.9206 13.3333 25.0002 13.3333C24.0797 13.3333 23.3335 12.5871 23.3335 11.6666L23.3335 6.66659L18.3335 6.66659C17.413 6.66659 16.6668 5.92039 16.6668 4.99992C16.6668 4.07944 17.413 3.33325 18.3335 3.33325H26.6668L26.6668 11.6666Z' fill='currentColor'/%3E%3Cpath d='M13.3335 24.9999C13.3335 25.9204 12.5873 26.6666 11.6668 26.6666H3.3335V18.3333C3.3335 17.4128 4.07969 16.6666 5.00016 16.6666C5.92064 16.6666 6.66683 17.4128 6.66683 18.3333V23.3333H11.6668C12.5873 23.3333 13.3335 24.0794 13.3335 24.9999Z' fill='currentColor'/%3E%3Cpath d='M18.3335 26.6666C17.413 26.6666 16.6668 25.9204 16.6668 24.9999C16.6668 24.0794 17.413 23.3333 18.3335 23.3333H23.3335V18.3333C23.3335 17.4128 24.0797 16.6666 25.0002 16.6666C25.9206 16.6666 26.6668 17.4128 26.6668 18.3333V26.6666H18.3335Z' fill='currentColor'/%3E%3C/svg%3E");background-size:26px 26px}.mapboxgl-ctrl button.mapboxgl-ctrl-buildings-toggle.mapboxgl-ctrl-level-button-selected .mapboxgl-ctrl-icon{filter:invert(1) brightness(1)}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{animation:mapboxgl-spin 2s linear infinite}@media(-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}}@media(-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23000'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}}@keyframes mapboxgl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='0.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='0.9' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media(-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:initial;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}@media(-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23000'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{background-color:#fff;border-radius:12px;box-sizing:initial;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:#0000000d}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0;top:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0;top:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}.mapboxgl-ctrl-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:#000000bf;text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.mapboxgl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{flex-direction:column-reverse}.mapboxgl-popup-anchor-left{flex-direction:row}.mapboxgl-popup-anchor-right{flex-direction:row-reverse}.mapboxgl-popup-tip{border:10px solid #0000;height:0;width:0;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.mapboxgl-popup-close-button{background-color:initial;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.mapboxgl-popup-close-button:hover{background-color:#0000000d}.mapboxgl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:10px 10px 15px;pointer-events:auto;position:relative}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;-webkit-user-select:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{left:0;opacity:1;position:absolute;top:0;transition:opacity .2s;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.mapboxgl-user-location-dot:before{animation:mapboxgl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.mapboxgl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading{height:0;width:0}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after,.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-bottom:7.5px solid #4aa1eb;content:"";position:absolute}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-left:7.5px solid #0000;transform:translateY(-28px) skewY(-20deg)}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after{border-right:7.5px solid #0000;transform:translate(7.5px,-28px) skewY(20deg)}@keyframes mapboxgl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}@media print{.mapbox-improve-map{display:none}}.mapboxgl-scroll-zoom-blocker,.mapboxgl-touch-pan-blocker{align-items:center;background:#000000b3;color:#fff;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;text-align:center;top:0;transition:opacity .75s ease-in-out;transition-delay:1s;width:100%}.mapboxgl-scroll-zoom-blocker-show,.mapboxgl-touch-pan-blocker-show{opacity:1;transition:opacity .1s ease-in-out}.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page,.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-ctrl-separator{background-color:#e0e0e0;height:1px}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button{color:#333;font-size:18px;font-weight:700;height:50px;width:50px}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button:hover{background-color:#f5f5f5}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button-selected{background-color:#4a5568;color:#fff}.mapboxgl-ctrl button.mapboxgl-ctrl-level-button-selected:hover{background-color:#2d3748}`)),document.head.appendChild(o)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import
|
|
2
|
+
import Ee, { createContext as _e, useEffect as O, useMemo as w, useRef as se, useState as ae, memo as fe } from "react";
|
|
3
3
|
import { LicenseInfo as Te } from "@mui/x-license";
|
|
4
4
|
import pe from "mapbox-gl";
|
|
5
|
-
import { useTheme as me, Box as
|
|
6
|
-
import Se, { useMap as we, Source as te, Layer as re, Marker as
|
|
7
|
-
import { isArray as le, isString as ge, isNumber as
|
|
8
|
-
const ot = 2.333,
|
|
9
|
-
var
|
|
5
|
+
import { useTheme as me, Box as J, GlobalStyles as ke, Skeleton as je } from "@tracktor/design-system";
|
|
6
|
+
import Se, { useMap as we, Source as te, Layer as re, Marker as Ae, Popup as Ce } from "react-map-gl";
|
|
7
|
+
import { isArray as le, isString as ge, isNumber as ne } from "@tracktor/react-utils";
|
|
8
|
+
const ot = 2.333, st = 46.8677;
|
|
9
|
+
var V = { exports: {} }, Y = {};
|
|
10
10
|
/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.production.js
|
|
@@ -21,22 +21,22 @@ function Oe() {
|
|
|
21
21
|
if (ie) return Y;
|
|
22
22
|
ie = 1;
|
|
23
23
|
var t = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
24
|
-
function
|
|
25
|
-
var
|
|
26
|
-
if (
|
|
27
|
-
|
|
28
|
-
for (var
|
|
29
|
-
|
|
30
|
-
} else
|
|
31
|
-
return n =
|
|
24
|
+
function s(l, n, c) {
|
|
25
|
+
var a = null;
|
|
26
|
+
if (c !== void 0 && (a = "" + c), n.key !== void 0 && (a = "" + n.key), "key" in n) {
|
|
27
|
+
c = {};
|
|
28
|
+
for (var u in n)
|
|
29
|
+
u !== "key" && (c[u] = n[u]);
|
|
30
|
+
} else c = n;
|
|
31
|
+
return n = c.ref, {
|
|
32
32
|
$$typeof: t,
|
|
33
|
-
type:
|
|
34
|
-
key:
|
|
33
|
+
type: l,
|
|
34
|
+
key: a,
|
|
35
35
|
ref: n !== void 0 ? n : null,
|
|
36
|
-
props:
|
|
36
|
+
props: c
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
return Y.Fragment = r, Y.jsx =
|
|
39
|
+
return Y.Fragment = r, Y.jsx = s, Y.jsxs = s, Y;
|
|
40
40
|
}
|
|
41
41
|
var D = {};
|
|
42
42
|
/**
|
|
@@ -59,15 +59,15 @@ function Pe() {
|
|
|
59
59
|
switch (e) {
|
|
60
60
|
case _:
|
|
61
61
|
return "Fragment";
|
|
62
|
-
case
|
|
62
|
+
case M:
|
|
63
63
|
return "Profiler";
|
|
64
64
|
case W:
|
|
65
65
|
return "StrictMode";
|
|
66
|
-
case
|
|
66
|
+
case F:
|
|
67
67
|
return "Suspense";
|
|
68
|
-
case
|
|
68
|
+
case $:
|
|
69
69
|
return "SuspenseList";
|
|
70
|
-
case
|
|
70
|
+
case B:
|
|
71
71
|
return "Activity";
|
|
72
72
|
}
|
|
73
73
|
if (typeof e == "object")
|
|
@@ -76,19 +76,19 @@ function Pe() {
|
|
|
76
76
|
), e.$$typeof) {
|
|
77
77
|
case P:
|
|
78
78
|
return "Portal";
|
|
79
|
-
case
|
|
79
|
+
case Z:
|
|
80
80
|
return e.displayName || "Context";
|
|
81
|
-
case
|
|
81
|
+
case q:
|
|
82
82
|
return (e._context.displayName || "Context") + ".Consumer";
|
|
83
83
|
case U:
|
|
84
|
-
var
|
|
85
|
-
return e = e.displayName, e || (e =
|
|
86
|
-
case
|
|
87
|
-
return
|
|
88
|
-
case
|
|
89
|
-
|
|
84
|
+
var i = e.render;
|
|
85
|
+
return e = e.displayName, e || (e = i.displayName || i.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
86
|
+
case H:
|
|
87
|
+
return i = e.displayName || null, i !== null ? i : t(e.type) || "Memo";
|
|
88
|
+
case N:
|
|
89
|
+
i = e._payload, e = e._init;
|
|
90
90
|
try {
|
|
91
|
-
return t(e(
|
|
91
|
+
return t(e(i));
|
|
92
92
|
} catch {
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -97,77 +97,77 @@ function Pe() {
|
|
|
97
97
|
function r(e) {
|
|
98
98
|
return "" + e;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function s(e) {
|
|
101
101
|
try {
|
|
102
102
|
r(e);
|
|
103
|
-
var
|
|
103
|
+
var i = !1;
|
|
104
104
|
} catch {
|
|
105
|
-
|
|
105
|
+
i = !0;
|
|
106
106
|
}
|
|
107
|
-
if (
|
|
108
|
-
|
|
109
|
-
var
|
|
110
|
-
return
|
|
111
|
-
|
|
107
|
+
if (i) {
|
|
108
|
+
i = console;
|
|
109
|
+
var m = i.error, h = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
110
|
+
return m.call(
|
|
111
|
+
i,
|
|
112
112
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
113
|
-
|
|
113
|
+
h
|
|
114
114
|
), r(e);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function l(e) {
|
|
118
118
|
if (e === _) return "<>";
|
|
119
|
-
if (typeof e == "object" && e !== null && e.$$typeof ===
|
|
119
|
+
if (typeof e == "object" && e !== null && e.$$typeof === N)
|
|
120
120
|
return "<...>";
|
|
121
121
|
try {
|
|
122
|
-
var
|
|
123
|
-
return
|
|
122
|
+
var i = t(e);
|
|
123
|
+
return i ? "<" + i + ">" : "<...>";
|
|
124
124
|
} catch {
|
|
125
125
|
return "<...>";
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
function n() {
|
|
129
|
-
var e =
|
|
129
|
+
var e = I.A;
|
|
130
130
|
return e === null ? null : e.getOwner();
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function c() {
|
|
133
133
|
return Error("react-stack-top-frame");
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function a(e) {
|
|
136
136
|
if (T.call(e, "key")) {
|
|
137
|
-
var
|
|
138
|
-
if (
|
|
137
|
+
var i = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
138
|
+
if (i && i.isReactWarning) return !1;
|
|
139
139
|
}
|
|
140
140
|
return e.key !== void 0;
|
|
141
141
|
}
|
|
142
|
-
function
|
|
143
|
-
function
|
|
144
|
-
|
|
142
|
+
function u(e, i) {
|
|
143
|
+
function m() {
|
|
144
|
+
G || (G = !0, console.error(
|
|
145
145
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
146
|
-
|
|
146
|
+
i
|
|
147
147
|
));
|
|
148
148
|
}
|
|
149
|
-
|
|
150
|
-
get:
|
|
149
|
+
m.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
150
|
+
get: m,
|
|
151
151
|
configurable: !0
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function f() {
|
|
155
155
|
var e = t(this.type);
|
|
156
|
-
return
|
|
156
|
+
return A[e] || (A[e] = !0, console.error(
|
|
157
157
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
158
158
|
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
161
|
-
var o =
|
|
160
|
+
function b(e, i, m, h, S, E) {
|
|
161
|
+
var o = m.ref;
|
|
162
162
|
return e = {
|
|
163
|
-
$$typeof:
|
|
163
|
+
$$typeof: R,
|
|
164
164
|
type: e,
|
|
165
|
-
key:
|
|
166
|
-
props:
|
|
167
|
-
_owner:
|
|
165
|
+
key: i,
|
|
166
|
+
props: m,
|
|
167
|
+
_owner: h
|
|
168
168
|
}, (o !== void 0 ? o : null) !== null ? Object.defineProperty(e, "ref", {
|
|
169
169
|
enumerable: !1,
|
|
170
|
-
get:
|
|
170
|
+
get: f
|
|
171
171
|
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
172
172
|
configurable: !1,
|
|
173
173
|
enumerable: !1,
|
|
@@ -187,119 +187,119 @@ function Pe() {
|
|
|
187
187
|
configurable: !1,
|
|
188
188
|
enumerable: !1,
|
|
189
189
|
writable: !0,
|
|
190
|
-
value:
|
|
190
|
+
value: E
|
|
191
191
|
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
var o =
|
|
193
|
+
function p(e, i, m, h, S, E) {
|
|
194
|
+
var o = i.children;
|
|
195
195
|
if (o !== void 0)
|
|
196
|
-
if (
|
|
196
|
+
if (h)
|
|
197
197
|
if (Q(o)) {
|
|
198
|
-
for (
|
|
199
|
-
|
|
198
|
+
for (h = 0; h < o.length; h++)
|
|
199
|
+
y(o[h]);
|
|
200
200
|
Object.freeze && Object.freeze(o);
|
|
201
201
|
} else
|
|
202
202
|
console.error(
|
|
203
203
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
204
204
|
);
|
|
205
|
-
else
|
|
206
|
-
if (T.call(
|
|
205
|
+
else y(o);
|
|
206
|
+
if (T.call(i, "key")) {
|
|
207
207
|
o = t(e);
|
|
208
|
-
var
|
|
208
|
+
var v = Object.keys(i).filter(function(K) {
|
|
209
209
|
return K !== "key";
|
|
210
210
|
});
|
|
211
|
-
|
|
211
|
+
h = 0 < v.length ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}", L[o + h] || (v = 0 < v.length ? "{" + v.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
212
212
|
`A props object containing a "key" prop is being spread into JSX:
|
|
213
213
|
let props = %s;
|
|
214
214
|
<%s {...props} />
|
|
215
215
|
React keys must be passed directly to JSX without using spread:
|
|
216
216
|
let props = %s;
|
|
217
217
|
<%s key={someKey} {...props} />`,
|
|
218
|
-
|
|
218
|
+
h,
|
|
219
219
|
o,
|
|
220
|
-
|
|
220
|
+
v,
|
|
221
221
|
o
|
|
222
|
-
),
|
|
222
|
+
), L[o + h] = !0);
|
|
223
223
|
}
|
|
224
|
-
if (o = null,
|
|
225
|
-
|
|
226
|
-
for (var
|
|
227
|
-
|
|
228
|
-
} else
|
|
229
|
-
return o &&
|
|
230
|
-
|
|
224
|
+
if (o = null, m !== void 0 && (s(m), o = "" + m), a(i) && (s(i.key), o = "" + i.key), "key" in i) {
|
|
225
|
+
m = {};
|
|
226
|
+
for (var C in i)
|
|
227
|
+
C !== "key" && (m[C] = i[C]);
|
|
228
|
+
} else m = i;
|
|
229
|
+
return o && u(
|
|
230
|
+
m,
|
|
231
231
|
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
232
|
-
),
|
|
232
|
+
), b(
|
|
233
233
|
e,
|
|
234
234
|
o,
|
|
235
|
-
|
|
235
|
+
m,
|
|
236
236
|
n(),
|
|
237
237
|
S,
|
|
238
|
-
|
|
238
|
+
E
|
|
239
239
|
);
|
|
240
240
|
}
|
|
241
|
-
function
|
|
242
|
-
|
|
241
|
+
function y(e) {
|
|
242
|
+
x(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === N && (e._payload.status === "fulfilled" ? x(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
243
243
|
}
|
|
244
|
-
function
|
|
245
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
244
|
+
function x(e) {
|
|
245
|
+
return typeof e == "object" && e !== null && e.$$typeof === R;
|
|
246
246
|
}
|
|
247
|
-
var
|
|
247
|
+
var d = Ee, R = Symbol.for("react.transitional.element"), P = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), W = Symbol.for("react.strict_mode"), M = Symbol.for("react.profiler"), q = Symbol.for("react.consumer"), Z = Symbol.for("react.context"), U = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), $ = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), I = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, T = Object.prototype.hasOwnProperty, Q = Array.isArray, k = console.createTask ? console.createTask : function() {
|
|
248
248
|
return null;
|
|
249
249
|
};
|
|
250
|
-
|
|
250
|
+
d = {
|
|
251
251
|
react_stack_bottom_frame: function(e) {
|
|
252
252
|
return e();
|
|
253
253
|
}
|
|
254
254
|
};
|
|
255
|
-
var
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
)(),
|
|
259
|
-
D.Fragment = _, D.jsx = function(e,
|
|
260
|
-
var
|
|
261
|
-
return
|
|
255
|
+
var G, A = {}, j = d.react_stack_bottom_frame.bind(
|
|
256
|
+
d,
|
|
257
|
+
c
|
|
258
|
+
)(), z = k(l(c)), L = {};
|
|
259
|
+
D.Fragment = _, D.jsx = function(e, i, m) {
|
|
260
|
+
var h = 1e4 > I.recentlyCreatedOwnerStacks++;
|
|
261
|
+
return p(
|
|
262
262
|
e,
|
|
263
|
-
|
|
264
|
-
|
|
263
|
+
i,
|
|
264
|
+
m,
|
|
265
265
|
!1,
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
h ? Error("react-stack-top-frame") : j,
|
|
267
|
+
h ? k(l(e)) : z
|
|
268
268
|
);
|
|
269
|
-
}, D.jsxs = function(e,
|
|
270
|
-
var
|
|
271
|
-
return
|
|
269
|
+
}, D.jsxs = function(e, i, m) {
|
|
270
|
+
var h = 1e4 > I.recentlyCreatedOwnerStacks++;
|
|
271
|
+
return p(
|
|
272
272
|
e,
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
i,
|
|
274
|
+
m,
|
|
275
275
|
!0,
|
|
276
|
-
|
|
277
|
-
|
|
276
|
+
h ? Error("react-stack-top-frame") : j,
|
|
277
|
+
h ? k(l(e)) : z
|
|
278
278
|
);
|
|
279
279
|
};
|
|
280
280
|
})()), D;
|
|
281
281
|
}
|
|
282
282
|
var ue;
|
|
283
|
-
function
|
|
284
|
-
return ue || (ue = 1, process.env.NODE_ENV === "production" ?
|
|
283
|
+
function Me() {
|
|
284
|
+
return ue || (ue = 1, process.env.NODE_ENV === "production" ? V.exports = Oe() : V.exports = Pe()), V.exports;
|
|
285
285
|
}
|
|
286
|
-
var
|
|
287
|
-
const
|
|
286
|
+
var g = Me();
|
|
287
|
+
const Fe = _e({
|
|
288
288
|
licenceMapbox: "",
|
|
289
289
|
licenseMuiX: ""
|
|
290
|
-
}), at = ({ children: t, licenseMuiX: r, licenceMapbox:
|
|
290
|
+
}), at = ({ children: t, licenseMuiX: r, licenceMapbox: s }) => {
|
|
291
291
|
O(() => {
|
|
292
292
|
r && Te.setLicenseKey(r);
|
|
293
293
|
}, [r]);
|
|
294
|
-
const
|
|
294
|
+
const l = w(
|
|
295
295
|
() => ({
|
|
296
|
-
licenceMapbox:
|
|
296
|
+
licenceMapbox: s,
|
|
297
297
|
licenseMuiX: r
|
|
298
298
|
}),
|
|
299
|
-
[r,
|
|
299
|
+
[r, s]
|
|
300
300
|
);
|
|
301
|
-
return
|
|
302
|
-
},
|
|
301
|
+
return s && (pe.accessToken = s), /* @__PURE__ */ g.jsx(Fe.Provider, { value: l, children: t });
|
|
302
|
+
}, $e = (t) => ({
|
|
303
303
|
".mapboxgl-popup-close-button": {
|
|
304
304
|
color: t.palette.mode === "dark" ? "#fff !important" : "#000 !important",
|
|
305
305
|
fontSize: "20px !important"
|
|
@@ -314,100 +314,100 @@ const Me = _e({
|
|
|
314
314
|
".mapboxgl-popup-tip": {
|
|
315
315
|
borderTopColor: `${t.palette.mode === "dark" ? "#1e1e1e" : "#ffffff"} !important`
|
|
316
316
|
}
|
|
317
|
-
}),
|
|
317
|
+
}), be = (t) => Number.isFinite(t.lng) && Number.isFinite(t.lat), de = (t) => ge(t) || ne(t) ? String(t) : JSON.stringify(t), Ne = (t) => {
|
|
318
318
|
if (!t)
|
|
319
319
|
return [];
|
|
320
|
-
const r = le(t) ? t : t.type === "FeatureCollection" ? t.features : [t],
|
|
321
|
-
for (const
|
|
322
|
-
const n =
|
|
323
|
-
n.type === "Point" &&
|
|
320
|
+
const r = le(t) ? t : t.type === "FeatureCollection" ? t.features : [t], s = [];
|
|
321
|
+
for (const l of r) {
|
|
322
|
+
const n = l.geometry;
|
|
323
|
+
n.type === "Point" && s.push(n.coordinates), n.type === "LineString" && s.push(...n.coordinates), n.type === "Polygon" && s.push(...n.coordinates[0]);
|
|
324
324
|
}
|
|
325
|
-
return
|
|
326
|
-
},
|
|
325
|
+
return s;
|
|
326
|
+
}, Ie = ({
|
|
327
327
|
markers: t = [],
|
|
328
328
|
features: r,
|
|
329
|
-
padding:
|
|
330
|
-
duration:
|
|
329
|
+
padding: s = 50,
|
|
330
|
+
duration: l = 1e3,
|
|
331
331
|
disableAnimation: n,
|
|
332
|
-
fitBounds:
|
|
333
|
-
animationKey:
|
|
334
|
-
openPopup:
|
|
332
|
+
fitBounds: c = !0,
|
|
333
|
+
animationKey: a,
|
|
334
|
+
openPopup: u
|
|
335
335
|
}) => {
|
|
336
|
-
const { current:
|
|
337
|
-
const
|
|
338
|
-
return
|
|
339
|
-
}, [
|
|
336
|
+
const { current: f } = we(), b = se(""), p = w(() => t.filter(be), [t]), y = w(() => Ne(r), [r]), x = w(() => {
|
|
337
|
+
const d = [...p.map((R) => [R.lng, R.lat]), ...y];
|
|
338
|
+
return d.length === 0 ? null : d.reduce((R, [P, _]) => R.extend([P, _]), new pe.LngLatBounds());
|
|
339
|
+
}, [p, y]);
|
|
340
340
|
return O(() => {
|
|
341
|
-
if (
|
|
342
|
-
|
|
341
|
+
if (u) {
|
|
342
|
+
b.current = a !== void 0 ? de(a) : "__initial_skip__";
|
|
343
343
|
return;
|
|
344
344
|
}
|
|
345
|
-
if (
|
|
346
|
-
if (
|
|
347
|
-
const
|
|
348
|
-
if (
|
|
345
|
+
if (f && c && x) {
|
|
346
|
+
if (a !== void 0) {
|
|
347
|
+
const d = de(a);
|
|
348
|
+
if (b.current === d)
|
|
349
349
|
return;
|
|
350
|
-
|
|
351
|
-
} else if (
|
|
350
|
+
b.current = d;
|
|
351
|
+
} else if (b.current === "__initial_skip__")
|
|
352
352
|
return;
|
|
353
|
-
if (!
|
|
354
|
-
if (
|
|
355
|
-
const
|
|
356
|
-
|
|
357
|
-
center: [
|
|
358
|
-
duration: n ? 0 :
|
|
353
|
+
if (!x.isEmpty()) {
|
|
354
|
+
if (p.length === 1 && y.length === 0) {
|
|
355
|
+
const d = p[0];
|
|
356
|
+
f.flyTo({
|
|
357
|
+
center: [d.lng, d.lat],
|
|
358
|
+
duration: n ? 0 : l,
|
|
359
359
|
zoom: 14
|
|
360
360
|
});
|
|
361
361
|
return;
|
|
362
362
|
}
|
|
363
|
-
|
|
364
|
-
duration: n ? 0 :
|
|
365
|
-
padding:
|
|
363
|
+
f.fitBounds([x.getSouthWest().toArray(), x.getNorthEast().toArray()], {
|
|
364
|
+
duration: n ? 0 : l,
|
|
365
|
+
padding: s
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
368
|
}
|
|
369
|
-
}, [
|
|
370
|
-
},
|
|
371
|
-
const n = `https://api.mapbox.com/directions/v5/mapbox/${
|
|
372
|
-
return
|
|
373
|
-
geometry: (await
|
|
369
|
+
}, [f, x, s, l, n, a, c, p, y, u]), null;
|
|
370
|
+
}, Le = async (t, r, s = "driving") => {
|
|
371
|
+
const n = `https://api.mapbox.com/directions/v5/mapbox/${s}/${t.join(",")};${r.join(",")}?geometries=geojson&overview=full&access_token=undefined`, c = await fetch(n);
|
|
372
|
+
return c.ok ? {
|
|
373
|
+
geometry: (await c.json()).routes[0].geometry,
|
|
374
374
|
properties: {},
|
|
375
375
|
type: "Feature"
|
|
376
376
|
} : null;
|
|
377
|
-
}, Ye = async (t, r,
|
|
378
|
-
const
|
|
377
|
+
}, Ye = async (t, r, s = "driving") => {
|
|
378
|
+
const c = `${`https://routing.openstreetmap.de/${{
|
|
379
379
|
cycling: "routed-bike",
|
|
380
380
|
driving: "routed-car",
|
|
381
381
|
walking: "routed-foot"
|
|
382
|
-
}[
|
|
382
|
+
}[s]}`}/route/v1/driving/${t.join(",")};${r.join(",")}?overview=full&geometries=geojson`;
|
|
383
383
|
try {
|
|
384
|
-
const
|
|
385
|
-
if (!
|
|
386
|
-
return console.error("OSRM API error:",
|
|
387
|
-
const
|
|
388
|
-
return !
|
|
389
|
-
geometry:
|
|
384
|
+
const a = await fetch(c);
|
|
385
|
+
if (!a.ok)
|
|
386
|
+
return console.error("OSRM API error:", a.status, a.statusText), null;
|
|
387
|
+
const u = await a.json();
|
|
388
|
+
return !u.routes || u.routes.length === 0 ? (console.warn("No routes found in OSRM response."), null) : {
|
|
389
|
+
geometry: u.routes[0].geometry,
|
|
390
390
|
properties: {
|
|
391
|
-
distance:
|
|
392
|
-
duration:
|
|
391
|
+
distance: u.routes[0].distance,
|
|
392
|
+
duration: u.routes[0].duration
|
|
393
393
|
},
|
|
394
394
|
type: "Feature"
|
|
395
395
|
};
|
|
396
|
-
} catch (
|
|
397
|
-
return console.error("Error fetching OSRM route:",
|
|
396
|
+
} catch (a) {
|
|
397
|
+
return console.error("Error fetching OSRM route:", a), null;
|
|
398
398
|
}
|
|
399
|
-
},
|
|
400
|
-
const [
|
|
399
|
+
}, ye = ({ profile: t, engine: r, to: s, from: l, itineraryLineStyle: n }) => {
|
|
400
|
+
const [c, a] = ae(null);
|
|
401
401
|
return O(() => {
|
|
402
|
-
|
|
402
|
+
l && s && (async () => {
|
|
403
403
|
try {
|
|
404
|
-
const
|
|
405
|
-
|
|
406
|
-
} catch (
|
|
407
|
-
console.error("Error fetching route:",
|
|
404
|
+
const u = r === "OSRM" ? await Ye(l, s, t) : await Le(l, s, t);
|
|
405
|
+
u ? a(u) : (console.warn("No route found between the specified points."), a(null));
|
|
406
|
+
} catch (u) {
|
|
407
|
+
console.error("Error fetching route:", u), a(null);
|
|
408
408
|
}
|
|
409
409
|
})();
|
|
410
|
-
}, [
|
|
410
|
+
}, [l, s, t, r]), c ? /* @__PURE__ */ g.jsx(te, { type: "geojson", data: c, children: /* @__PURE__ */ g.jsx(
|
|
411
411
|
re,
|
|
412
412
|
{
|
|
413
413
|
type: "line",
|
|
@@ -422,20 +422,20 @@ const Me = _e({
|
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
424
|
) }) : null;
|
|
425
|
-
}, De = "#000000", We = "#FFFFFF",
|
|
425
|
+
}, De = "#000000", We = "#FFFFFF", oe = {
|
|
426
426
|
default: "#009ba6",
|
|
427
427
|
primary: "#3F83F8",
|
|
428
428
|
secondary: "#9C27B0",
|
|
429
429
|
success: "#4CAF50",
|
|
430
430
|
warning: "#FF9800"
|
|
431
|
-
}, Ue = (t) => t in
|
|
432
|
-
const { palette:
|
|
433
|
-
return /* @__PURE__ */
|
|
434
|
-
|
|
431
|
+
}, Ue = (t) => t in oe, Be = ({ color: t, variant: r }) => {
|
|
432
|
+
const { palette: s } = me(), l = s.mode === "dark" ? De : We, n = r && Ue(r) && oe[r] || t || (ge(r) ? r : oe.default);
|
|
433
|
+
return /* @__PURE__ */ g.jsx(
|
|
434
|
+
J,
|
|
435
435
|
{
|
|
436
436
|
component: "div",
|
|
437
437
|
style: {
|
|
438
|
-
backgroundColor:
|
|
438
|
+
backgroundColor: l,
|
|
439
439
|
border: `7px solid ${n}`,
|
|
440
440
|
borderRadius: "50%",
|
|
441
441
|
boxShadow: "0 0 4px rgba(0,0,0,0.3)",
|
|
@@ -444,71 +444,89 @@ const Me = _e({
|
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
);
|
|
447
|
-
}, Ge = async (t, r,
|
|
447
|
+
}, Ge = async (t, r, s = "driving", l) => {
|
|
448
|
+
if (!r.length)
|
|
449
|
+
return null;
|
|
450
|
+
const c = [t, ...r.map((d) => d.coords)].map((d) => `${d[0]},${d[1]}`).join(";"), a = `https://api.mapbox.com/directions-matrix/v1/mapbox/${s}/${c}?sources=0&annotations=distance&access_token=undefined`, u = await fetch(a);
|
|
451
|
+
if (!u.ok)
|
|
452
|
+
return console.error("Erreur Mapbox Matrix :", u.status, u.statusText), null;
|
|
453
|
+
const f = await u.json();
|
|
454
|
+
if (!(Array.isArray(f.distances) && Array.isArray(f.distances[0])))
|
|
455
|
+
return console.error("Response wrong format Mapbox Matrix :", f), null;
|
|
456
|
+
const b = f.distances[0]?.slice(1).filter((d) => typeof d == "number") ?? [];
|
|
457
|
+
if (!b.length)
|
|
458
|
+
return null;
|
|
459
|
+
const p = Math.min(...b.filter((d) => typeof d == "number")), y = b.indexOf(p);
|
|
460
|
+
if (y === -1)
|
|
461
|
+
return null;
|
|
462
|
+
const x = r[y];
|
|
463
|
+
return l != null && p > l ? null : { distance: p, id: x.id, point: x.coords };
|
|
464
|
+
}, ze = async (t, r, s = "driving", l) => {
|
|
448
465
|
const n = {
|
|
449
466
|
cycling: "routed-bike",
|
|
450
467
|
driving: "routed-car",
|
|
451
468
|
walking: "routed-foot"
|
|
452
|
-
},
|
|
453
|
-
if (!
|
|
454
|
-
return console.error("Error OSRM Table:",
|
|
455
|
-
const
|
|
456
|
-
if (!(
|
|
457
|
-
return console.error("OSRM Table unexpected response:",
|
|
458
|
-
const
|
|
459
|
-
if (!
|
|
460
|
-
return console.error("OSRM Table first row empty:",
|
|
461
|
-
let
|
|
462
|
-
for (let
|
|
463
|
-
const
|
|
464
|
-
|
|
469
|
+
}, c = [t, ...r.map((d) => d.coords)].map((d) => `${d[0]},${d[1]}`).join(";"), a = `https://routing.openstreetmap.de/${n[s]}/table/v1/driving/${c}?sources=0&annotations=distance`, u = await fetch(a);
|
|
470
|
+
if (!u.ok)
|
|
471
|
+
return console.error("Error OSRM Table:", u.status, u.statusText), null;
|
|
472
|
+
const f = await u.json();
|
|
473
|
+
if (!(f.distances && Array.isArray(f.distances)) || f.distances.length === 0)
|
|
474
|
+
return console.error("OSRM Table unexpected response:", f), null;
|
|
475
|
+
const b = f.distances[0];
|
|
476
|
+
if (!b || b.length === 0)
|
|
477
|
+
return console.error("OSRM Table first row empty:", f), null;
|
|
478
|
+
let p = -1, y = 1 / 0;
|
|
479
|
+
for (let d = 1; d < b.length; d++) {
|
|
480
|
+
const R = b[d];
|
|
481
|
+
R != null && R < y && (y = R, p = d);
|
|
465
482
|
}
|
|
466
|
-
if (
|
|
483
|
+
if (p === -1)
|
|
467
484
|
return null;
|
|
468
|
-
const
|
|
469
|
-
return
|
|
470
|
-
distance:
|
|
471
|
-
id:
|
|
472
|
-
point:
|
|
485
|
+
const x = r[p - 1];
|
|
486
|
+
return l != null && y > l ? null : {
|
|
487
|
+
distance: y,
|
|
488
|
+
id: x.id,
|
|
489
|
+
point: x.coords
|
|
473
490
|
};
|
|
474
|
-
},
|
|
491
|
+
}, Ve = ({
|
|
475
492
|
origin: t,
|
|
476
493
|
maxDistanceMeters: r,
|
|
477
|
-
destinations:
|
|
478
|
-
onNearestFound:
|
|
479
|
-
profile: n = "driving"
|
|
494
|
+
destinations: s,
|
|
495
|
+
onNearestFound: l,
|
|
496
|
+
profile: n = "driving",
|
|
497
|
+
engine: c = "OSRM"
|
|
480
498
|
}) => {
|
|
481
|
-
const [
|
|
482
|
-
return O(() => {
|
|
483
|
-
if (!t || t.length !== 2 || !
|
|
499
|
+
const [a, u] = ae(null), f = se(null);
|
|
500
|
+
return console.log("engine:", c), O(() => {
|
|
501
|
+
if (!t || t.length !== 2 || !s?.length)
|
|
484
502
|
return;
|
|
485
|
-
const
|
|
486
|
-
coords: [
|
|
487
|
-
id:
|
|
503
|
+
const b = s.map((p) => ({
|
|
504
|
+
coords: [p.lng, p.lat],
|
|
505
|
+
id: p.id
|
|
488
506
|
}));
|
|
489
507
|
(async () => {
|
|
490
|
-
const
|
|
491
|
-
|
|
508
|
+
const y = await (c === "OSRM" ? ze : Ge)(t, b, n, r);
|
|
509
|
+
y && u((x) => !x || x.id !== y.id || x.distance !== y.distance ? y : x);
|
|
492
510
|
})();
|
|
493
|
-
}, [t, r,
|
|
494
|
-
if (!
|
|
495
|
-
|
|
511
|
+
}, [t, r, s, n, c]), O(() => {
|
|
512
|
+
if (!a) {
|
|
513
|
+
l?.(null, null, 0), f.current = null;
|
|
496
514
|
return;
|
|
497
515
|
}
|
|
498
|
-
if (r != null &&
|
|
499
|
-
|
|
516
|
+
if (r != null && a.distance > r) {
|
|
517
|
+
l?.(null, null, 0), f.current = null;
|
|
500
518
|
return;
|
|
501
519
|
}
|
|
502
|
-
const
|
|
503
|
-
(!
|
|
504
|
-
}, [
|
|
505
|
-
},
|
|
520
|
+
const b = f.current;
|
|
521
|
+
(!b || b.id !== a.id || b.distance !== a.distance) && (l?.(a.id, a.point, a.distance), f.current = a);
|
|
522
|
+
}, [a, l, r]), a?.point ? /* @__PURE__ */ g.jsx(ye, { from: t, to: a.point, profile: n, engine: c }) : null;
|
|
523
|
+
}, Je = fe(Ve), qe = (t) => le(t) ? { features: t, type: "FeatureCollection" } : t.type === "FeatureCollection" ? t : { features: [t], type: "FeatureCollection" }, Ze = ({ features: t }) => {
|
|
506
524
|
if (!t)
|
|
507
525
|
return null;
|
|
508
|
-
const r =
|
|
509
|
-
return /* @__PURE__ */
|
|
510
|
-
|
|
511
|
-
/* @__PURE__ */
|
|
526
|
+
const r = qe(t), s = r.features.filter((n) => n.geometry.type === "Polygon" || n.geometry.type === "MultiPolygon"), l = r.features.filter((n) => n.geometry.type === "LineString" || n.geometry.type === "MultiLineString");
|
|
527
|
+
return /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
528
|
+
s.length > 0 && // biome-ignore lint/correctness/useUniqueElementIds: <id must be consistent for map layers>
|
|
529
|
+
/* @__PURE__ */ g.jsx(te, { id: "features-polygon", type: "geojson", data: { features: s, type: "FeatureCollection" }, children: /* @__PURE__ */ g.jsx(
|
|
512
530
|
re,
|
|
513
531
|
{
|
|
514
532
|
id: "polygon-fill",
|
|
@@ -519,8 +537,8 @@ const Me = _e({
|
|
|
519
537
|
}
|
|
520
538
|
}
|
|
521
539
|
) }),
|
|
522
|
-
|
|
523
|
-
/* @__PURE__ */
|
|
540
|
+
l.length > 0 && // biome-ignore lint/correctness/useUniqueElementIds: <id must be consistent for map layers>
|
|
541
|
+
/* @__PURE__ */ g.jsx(te, { id: "features-line", type: "geojson", data: { features: l, type: "FeatureCollection" }, children: /* @__PURE__ */ g.jsx(
|
|
524
542
|
re,
|
|
525
543
|
{
|
|
526
544
|
id: "line-stroke",
|
|
@@ -539,91 +557,91 @@ const Me = _e({
|
|
|
539
557
|
dark: "mapbox://styles/mapbox/dark-v11",
|
|
540
558
|
light: "mapbox://styles/mapbox/streets-v12"
|
|
541
559
|
}
|
|
542
|
-
},
|
|
543
|
-
const
|
|
560
|
+
}, xe = (t, r) => {
|
|
561
|
+
const s = r === "dark";
|
|
544
562
|
switch (t) {
|
|
545
563
|
case "satellite":
|
|
546
564
|
return ee.satellite;
|
|
547
565
|
default:
|
|
548
|
-
return
|
|
566
|
+
return s ? ee.street.dark : ee.street.light;
|
|
549
567
|
}
|
|
550
|
-
},
|
|
568
|
+
}, He = ({
|
|
551
569
|
mapStyle: t,
|
|
552
570
|
theme: r,
|
|
553
|
-
baseMapView:
|
|
554
|
-
doubleClickZoom:
|
|
571
|
+
baseMapView: s,
|
|
572
|
+
doubleClickZoom: l,
|
|
555
573
|
cooperativeGestures: n
|
|
556
574
|
}) => ({
|
|
557
575
|
cooperativeGestures: n,
|
|
558
|
-
doubleClickZoom:
|
|
576
|
+
doubleClickZoom: l,
|
|
559
577
|
failIfMajorPerformanceCaveat: !1,
|
|
560
|
-
style: t ??
|
|
561
|
-
}),
|
|
578
|
+
style: t ?? xe(s, r)
|
|
579
|
+
}), Xe = ({
|
|
562
580
|
containerStyle: t,
|
|
563
581
|
square: r,
|
|
564
|
-
loading:
|
|
565
|
-
height:
|
|
582
|
+
loading: s,
|
|
583
|
+
height: l = 300,
|
|
566
584
|
width: n = "100%",
|
|
567
|
-
center:
|
|
568
|
-
zoom:
|
|
569
|
-
popupMaxWidth:
|
|
570
|
-
openPopup:
|
|
571
|
-
openPopupOnHover:
|
|
572
|
-
markers:
|
|
573
|
-
fitBounds:
|
|
574
|
-
fitBoundsPadding:
|
|
575
|
-
fitBoundDuration:
|
|
576
|
-
fitBoundsAnimationKey:
|
|
585
|
+
center: c = [2.3522, 48.8566],
|
|
586
|
+
zoom: a = 5,
|
|
587
|
+
popupMaxWidth: u,
|
|
588
|
+
openPopup: f,
|
|
589
|
+
openPopupOnHover: b,
|
|
590
|
+
markers: p = [],
|
|
591
|
+
fitBounds: y = !0,
|
|
592
|
+
fitBoundsPadding: x,
|
|
593
|
+
fitBoundDuration: d,
|
|
594
|
+
fitBoundsAnimationKey: R,
|
|
577
595
|
disableAnimation: P,
|
|
578
596
|
mapStyle: _,
|
|
579
597
|
onMapClick: W,
|
|
580
|
-
baseMapView:
|
|
581
|
-
cooperativeGestures:
|
|
582
|
-
doubleClickZoom:
|
|
598
|
+
baseMapView: M,
|
|
599
|
+
cooperativeGestures: q = !0,
|
|
600
|
+
doubleClickZoom: Z = !0,
|
|
583
601
|
projection: U,
|
|
584
|
-
theme:
|
|
585
|
-
features:
|
|
586
|
-
from:
|
|
587
|
-
to:
|
|
588
|
-
profile:
|
|
602
|
+
theme: F,
|
|
603
|
+
features: $,
|
|
604
|
+
from: H,
|
|
605
|
+
to: N,
|
|
606
|
+
profile: B = "driving",
|
|
589
607
|
itineraryLineStyle: X,
|
|
590
|
-
|
|
608
|
+
engine: I = "OSRM",
|
|
591
609
|
findNearestMarker: T,
|
|
592
610
|
onNearestFound: Q
|
|
593
611
|
}) => {
|
|
594
|
-
const k = me(),
|
|
595
|
-
if (le(
|
|
596
|
-
return { latitude:
|
|
597
|
-
}, [
|
|
598
|
-
() => _ ||
|
|
599
|
-
[
|
|
612
|
+
const k = me(), G = se(null), [A, j] = ae(f ?? null), z = w(() => {
|
|
613
|
+
if (le(c))
|
|
614
|
+
return { latitude: c[1], longitude: c[0], zoom: a };
|
|
615
|
+
}, [c, a]), L = w(
|
|
616
|
+
() => _ || xe(M, F ?? k.palette.mode),
|
|
617
|
+
[M, _, F, k.palette.mode]
|
|
600
618
|
), {
|
|
601
619
|
style: e,
|
|
602
|
-
cooperativeGestures:
|
|
603
|
-
doubleClickZoom:
|
|
604
|
-
} =
|
|
605
|
-
baseMapView:
|
|
606
|
-
cooperativeGestures:
|
|
607
|
-
doubleClickZoom:
|
|
608
|
-
mapStyle:
|
|
609
|
-
theme:
|
|
610
|
-
}),
|
|
611
|
-
!
|
|
612
|
-
}, S = (o,
|
|
613
|
-
|
|
620
|
+
cooperativeGestures: i,
|
|
621
|
+
doubleClickZoom: m
|
|
622
|
+
} = He({
|
|
623
|
+
baseMapView: M,
|
|
624
|
+
cooperativeGestures: q,
|
|
625
|
+
doubleClickZoom: Z,
|
|
626
|
+
mapStyle: L,
|
|
627
|
+
theme: F ?? k.palette.mode
|
|
628
|
+
}), h = (o, v) => {
|
|
629
|
+
!b && v && j(o);
|
|
630
|
+
}, S = (o, v) => {
|
|
631
|
+
b && j(v ? o : null);
|
|
614
632
|
};
|
|
615
633
|
O(() => {
|
|
616
|
-
j(
|
|
617
|
-
}, [
|
|
618
|
-
const
|
|
619
|
-
return /* @__PURE__ */
|
|
620
|
-
/* @__PURE__ */
|
|
621
|
-
|
|
634
|
+
j(f ?? null);
|
|
635
|
+
}, [f]);
|
|
636
|
+
const E = w(() => A ? p?.find((o) => o.id === A) ?? null : null, [A, p]);
|
|
637
|
+
return /* @__PURE__ */ g.jsxs(J, { "data-testid": "mapbox-container", sx: { height: l, position: "relative", width: n, ...t }, children: [
|
|
638
|
+
/* @__PURE__ */ g.jsx(ke, { styles: $e }),
|
|
639
|
+
s && /* @__PURE__ */ g.jsx(
|
|
622
640
|
je,
|
|
623
641
|
{
|
|
624
642
|
"data-testid": "skeleton-loader",
|
|
625
643
|
width: n,
|
|
626
|
-
height:
|
|
644
|
+
height: l,
|
|
627
645
|
variant: r ? "rectangular" : "rounded",
|
|
628
646
|
sx: {
|
|
629
647
|
inset: 0,
|
|
@@ -632,92 +650,96 @@ const Me = _e({
|
|
|
632
650
|
}
|
|
633
651
|
}
|
|
634
652
|
),
|
|
635
|
-
!
|
|
653
|
+
!s && /* @__PURE__ */ g.jsxs(
|
|
636
654
|
Se,
|
|
637
655
|
{
|
|
638
|
-
ref:
|
|
639
|
-
cooperativeGestures:
|
|
640
|
-
doubleClickZoom:
|
|
656
|
+
ref: G,
|
|
657
|
+
cooperativeGestures: i,
|
|
658
|
+
doubleClickZoom: m,
|
|
641
659
|
mapStyle: e,
|
|
642
660
|
projection: U,
|
|
643
|
-
initialViewState:
|
|
661
|
+
initialViewState: z,
|
|
644
662
|
style: { height: "100%", width: "100%" },
|
|
645
663
|
mapboxAccessToken: void 0,
|
|
646
664
|
onClick: (o) => {
|
|
647
|
-
const
|
|
648
|
-
const { lng: K, lat:
|
|
649
|
-
return
|
|
665
|
+
const v = p.find((C) => {
|
|
666
|
+
const { lng: K, lat: he } = o.lngLat, ve = Math.abs(Number(C.lng || null) - K), Re = Math.abs(Number(C.lat || null) - he);
|
|
667
|
+
return ve < 0.01 && Re < 0.01;
|
|
650
668
|
});
|
|
651
|
-
W?.(o.lngLat.lng, o.lngLat.lat,
|
|
669
|
+
W?.(o.lngLat.lng, o.lngLat.lat, v ?? null);
|
|
652
670
|
},
|
|
653
671
|
children: [
|
|
654
|
-
|
|
655
|
-
|
|
672
|
+
p.filter(be).map((o) => /* @__PURE__ */ g.jsx(
|
|
673
|
+
Ae,
|
|
656
674
|
{
|
|
657
675
|
longitude: o.lng,
|
|
658
676
|
latitude: o.lat,
|
|
659
677
|
anchor: "bottom",
|
|
660
|
-
onClick: (
|
|
661
|
-
|
|
678
|
+
onClick: (v) => {
|
|
679
|
+
v.originalEvent.stopPropagation(), o.id && h(o.id, !!o.Tooltip), W?.(o.lng, o.lat, o);
|
|
662
680
|
},
|
|
663
|
-
children: /* @__PURE__ */
|
|
664
|
-
|
|
681
|
+
children: /* @__PURE__ */ g.jsx(
|
|
682
|
+
J,
|
|
665
683
|
{
|
|
666
684
|
component: "div",
|
|
667
685
|
onMouseEnter: () => o.id && S(o.id, !!o.Tooltip),
|
|
668
686
|
onMouseLeave: () => S(null),
|
|
669
687
|
style: { cursor: o.Tooltip ? "pointer" : "default" },
|
|
670
|
-
children: o.IconComponent ? /* @__PURE__ */
|
|
688
|
+
children: o.IconComponent ? /* @__PURE__ */ g.jsx(o.IconComponent, { ...o.iconProps }) : /* @__PURE__ */ g.jsx(Be, { color: o.color, variant: o.variant })
|
|
671
689
|
}
|
|
672
690
|
)
|
|
673
691
|
},
|
|
674
692
|
o.id
|
|
675
693
|
)),
|
|
676
|
-
|
|
677
|
-
|
|
694
|
+
E?.Tooltip && /* @__PURE__ */ g.jsx(
|
|
695
|
+
Ce,
|
|
678
696
|
{
|
|
679
|
-
longitude:
|
|
680
|
-
latitude:
|
|
697
|
+
longitude: ne(E.lng) ? E.lng : 0,
|
|
698
|
+
latitude: ne(E.lat) ? E.lat : 0,
|
|
681
699
|
anchor: "top",
|
|
682
700
|
onClose: () => j(null),
|
|
683
|
-
maxWidth:
|
|
701
|
+
maxWidth: u,
|
|
684
702
|
closeOnClick: !0,
|
|
685
703
|
closeOnMove: !1,
|
|
686
|
-
children: /* @__PURE__ */
|
|
704
|
+
children: /* @__PURE__ */ g.jsx(J, { component: "div", sx: { minHeight: 60, minWidth: 240 }, children: E.Tooltip })
|
|
687
705
|
}
|
|
688
706
|
),
|
|
689
|
-
/* @__PURE__ */
|
|
690
|
-
/* @__PURE__ */
|
|
691
|
-
|
|
707
|
+
/* @__PURE__ */ g.jsx(ye, { from: H, to: N, profile: B, engine: I, itineraryLineStyle: X }),
|
|
708
|
+
/* @__PURE__ */ g.jsx(
|
|
709
|
+
Je,
|
|
692
710
|
{
|
|
693
711
|
origin: T?.origin,
|
|
694
712
|
destinations: T?.destinations,
|
|
695
713
|
onNearestFound: Q,
|
|
696
|
-
maxDistanceMeters: T?.maxDistanceMeters
|
|
714
|
+
maxDistanceMeters: T?.maxDistanceMeters,
|
|
715
|
+
engine: T?.engine,
|
|
716
|
+
profile: B
|
|
697
717
|
}
|
|
698
718
|
),
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
719
|
+
$ && /* @__PURE__ */ g.jsx(Ze, { features: $ }),
|
|
720
|
+
y && /* @__PURE__ */ g.jsx(
|
|
721
|
+
Ie,
|
|
702
722
|
{
|
|
703
|
-
markers:
|
|
704
|
-
features:
|
|
705
|
-
padding:
|
|
706
|
-
duration: P ? 0 :
|
|
707
|
-
animationKey:
|
|
708
|
-
openPopup: !!
|
|
723
|
+
markers: p,
|
|
724
|
+
features: $,
|
|
725
|
+
padding: x,
|
|
726
|
+
duration: P ? 0 : d,
|
|
727
|
+
animationKey: R,
|
|
728
|
+
openPopup: !!f
|
|
709
729
|
}
|
|
710
730
|
)
|
|
711
731
|
]
|
|
712
732
|
},
|
|
713
|
-
`${
|
|
733
|
+
`${i}-${m}-${U}-${L}-${T?.maxDistanceMeters}`
|
|
714
734
|
)
|
|
715
735
|
] });
|
|
716
|
-
},
|
|
736
|
+
}, lt = fe(Xe), it = ["OSRM", "Mapbox"], ct = ["driving", "walking", "cycling"], ut = (t, r) => Number.isFinite(t) && Number.isFinite(r) && t >= -90 && t <= 90 && r >= -180 && r <= 180;
|
|
717
737
|
export {
|
|
718
|
-
|
|
738
|
+
st as DEFAULT_CENTER_LAT,
|
|
719
739
|
ot as DEFAULT_CENTER_LNG,
|
|
720
740
|
at as MapProvider,
|
|
721
|
-
|
|
722
|
-
|
|
741
|
+
lt as MarkerMap,
|
|
742
|
+
it as engines,
|
|
743
|
+
ut as isValidLatLng,
|
|
744
|
+
ct as profiles
|
|
723
745
|
};
|