wacomm 1.65.2 → 1.65.3

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.
@@ -358,7 +358,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
358
358
  * @license MIT
359
359
  * This source code is licensed under the MIT license found in the
360
360
  * LICENSE file in the root directory of this source tree.
361
- */function $k({value:e,setValue:t}){return b.jsx(Ri,{dateAdapter:el,children:b.jsx(Jk,{value:e,minDate:Lt(),onChange:t,slotProps:{textField:{sx:{"& .MuiPickersSectionList-root":{padding:0},"& .MuiPickersInputBase-sectionsContainer":{padding:0},width:"100%",height:30,"& .MuiInputBase-root":{height:30,"& .MuiInputBase-input":{padding:"0px 16px",color:"gray"}}}}}})})}const Bg=e=>e.format("MMM D"),Jc=e=>e.format("hh:mm A"),Xc=e=>e.format("MMM D, hh:mm A"),Fg=(e,t)=>e.month()===t.month()&&e.date()===t.date(),Vg=(e,t)=>Fg(e,t)?`${Bg(e)}, ${Jc(e)} - ${Jc(t)}`:`${Xc(e)} - ${Xc(t)}`;function Kk({startDate:e,endDate:t,className:o=""}){return b.jsx("div",{className:xe("text-gray-600 text-sm",o),children:Vg(e,t)})}function _k({date:e}){return!e||e.length<10?null:b.jsx("div",{className:"text-gray-600 text-sm",children:e.substring(0,10)})}const eO=P.createContext(null);function tO(e,t){const o=Array.isArray(e)?e[0]:e?e.x:0,n=Array.isArray(e)?e[1]:e?e.y:0,r=Array.isArray(t)?t[0]:t?t.x:0,s=Array.isArray(t)?t[1]:t?t.y:0;return o===r&&n===s}function dn(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!dn(e[o],t[o]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(const r of o)if(!t.hasOwnProperty(r)||!dn(e[r],t[r]))return!1;return!0}return!1}function oO(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function Mm(e,t){if(!e.getProjection)return;const o=e.getProjection(),n=t.getProjection();dn(o,n)||t.setProjection(o)}function km(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function Om(e,t){const o=t.viewState||t;let n=!1;if("zoom"in o){const r=e.zoom;e.zoom=o.zoom,n=n||r!==e.zoom}if("bearing"in o){const r=e.bearing;e.bearing=o.bearing,n=n||r!==e.bearing}if("pitch"in o){const r=e.pitch;e.pitch=o.pitch,n=n||r!==e.pitch}if(o.padding&&!e.isPaddingEqual(o.padding)&&(n=!0,e.padding=o.padding),"longitude"in o&&"latitude"in o){const r=e.center;e.center=new r.constructor(o.longitude,o.latitude),n=n||r!==e.center}return n}const nO=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Rm(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const n of e.layers)t[n.id]=n;const o=e.layers.map(n=>{let r=null;"interactive"in n&&(r=Object.assign({},n),delete r.interactive);const s=t[n.ref];if(s){r=r||Object.assign({},n),delete r.ref;for(const i of nO)i in s&&(r[i]=s[i])}return r||n});return{...e,layers:o}}const Dm={version:8,sources:{},layers:[]},Em={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},ac={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},Nm={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},rO=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],sO=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class is{constructor(t,o,n){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=r=>{const s=this.props[Nm[r.type]];s?s(r):r.type==="error"&&console.error(r.error)},this._onPointerEvent=r=>{(r.type==="mousemove"||r.type==="mouseout")&&this._updateHover(r);const s=this.props[Em[r.type]];s&&(this.props.interactiveLayerIds&&r.type!=="mouseover"&&r.type!=="mouseout"&&(r.features=this._hoveredFeatures||this._queryRenderedFeatures(r.point)),s(r),delete r.features)},this._onCameraEvent=r=>{if(!this._internalUpdate){const s=this.props[ac[r.type]];s&&s(r)}r.type in this._deferredEvents&&(this._deferredEvents[r.type]=!1)},this._MapClass=t,this.props=o,this._initialize(n)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const o=this.props;this.props=t;const n=this._updateSettings(t,o);n&&this._createShadowTransform(this._map);const r=this._updateSize(t),s=this._updateViewState(t,!0);this._updateStyle(t,o),this._updateStyleComponents(t,o),this._updateHandlers(t,o),(n||r||s&&!this._map.isMoving())&&this.redraw()}static reuse(t,o){const n=is.savedMaps.pop();if(!n)return null;const r=n.map,s=r.getContainer();for(o.className=s.className;s.childNodes.length>0;)o.appendChild(s.childNodes[0]);r._container=o;const i=r._resizeObserver;i&&(i.disconnect(),i.observe(o)),n.setProps({...t,styleDiffing:!1}),r.resize();const{initialViewState:a}=t;return a&&(a.bounds?r.fitBounds(a.bounds,{...a.fitBoundsOptions,duration:0}):n._updateViewState(a,!1)),r.isStyleLoaded()?r.fire("load"):r.once("styledata",()=>r.fire("load")),r._update(),n}_initialize(t){const{props:o}=this,{mapStyle:n=Dm}=o,r={...o,...o.initialViewState,accessToken:o.mapboxAccessToken||iO()||null,container:t,style:Rm(n)},s=r.initialViewState||r.viewState||r;if(Object.assign(r,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),o.gl){const u=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=u,o.gl)}const i=new this._MapClass(r);s.padding&&i.setPadding(s.padding),o.cursor&&(i.getCanvas().style.cursor=o.cursor),this._createShadowTransform(i);const a=i._render;i._render=u=>{this._inRender=!0,a.call(i,u),this._inRender=!1};const l=i._renderTaskQueue.run;i._renderTaskQueue.run=u=>{l.call(i._renderTaskQueue,u),this._onBeforeRepaint()},i.on("render",()=>this._onAfterRepaint());const c=i.fire;i.fire=this._fireEvent.bind(this,c),i.on("resize",()=>{this._renderTransform.resize(i.transform.width,i.transform.height)}),i.on("styledata",()=>{this._updateStyleComponents(this.props,{}),Mm(i.transform,this._renderTransform)}),i.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const u in Em)i.on(u,this._onPointerEvent);for(const u in ac)i.on(u,this._onCameraEvent);for(const u in Nm)i.on(u,this._onEvent);this._map=i}recycle(){const o=this.map.getContainer().querySelector("[mapboxgl-children]");o==null||o.remove(),is.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const o=oO(t.transform);t.painter.transform=o,this._renderTransform=o}_updateSize(t){const{viewState:o}=t;if(o){const n=this._map;if(o.width!==n.transform.width||o.height!==n.transform.height)return n.resize(),!0}return!1}_updateViewState(t,o){if(this._internalUpdate)return!1;const n=this._map,r=this._renderTransform,{zoom:s,pitch:i,bearing:a}=r,l=n.isMoving();l&&(r.cameraElevationReference="sea");const c=Om(r,{...km(n.transform),...t});if(l&&(r.cameraElevationReference="ground"),c&&o){const u=this._deferredEvents;u.move=!0,u.zoom||(u.zoom=s!==r.zoom),u.rotate||(u.rotate=a!==r.bearing),u.pitch||(u.pitch=i!==r.pitch)}return l||Om(n.transform,t),c}_updateSettings(t,o){const n=this._map;let r=!1;for(const s of rO)if(s in t&&!dn(t[s],o[s])){r=!0;const i=n[`set${s[0].toUpperCase()}${s.slice(1)}`];i==null||i.call(n,t[s])}return r}_updateStyle(t,o){if(t.cursor!==o.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==o.mapStyle){const{mapStyle:n=Dm,styleDiffing:r=!0}=t,s={diff:r};return"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(Rm(n),s),!0}return!1}_updateStyleComponents(t,o){const n=this._map;let r=!1;return n.isStyleLoaded()&&("light"in t&&n.setLight&&!dn(t.light,o.light)&&(r=!0,n.setLight(t.light)),"fog"in t&&n.setFog&&!dn(t.fog,o.fog)&&(r=!0,n.setFog(t.fog)),"terrain"in t&&n.setTerrain&&!dn(t.terrain,o.terrain)&&(!t.terrain||n.getSource(t.terrain.source))&&(r=!0,n.setTerrain(t.terrain))),r}_updateHandlers(t,o){var n,r;const s=this._map;let i=!1;for(const a of sO){const l=(n=t[a])!==null&&n!==void 0?n:!0,c=(r=o[a])!==null&&r!==void 0?r:!0;dn(l,c)||(i=!0,l?s[a].enable(l):s[a].disable())}return i}_queryRenderedFeatures(t){const o=this._map,n=o.transform,{interactiveLayerIds:r=[]}=this.props;try{return o.transform=this._renderTransform,o.queryRenderedFeatures(t,{layers:r.filter(o.getLayer.bind(o))})}catch{return[]}finally{o.transform=n}}_updateHover(t){var o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const s=t.type,i=((o=this._hoveredFeatures)===null||o===void 0?void 0:o.length)>0,a=this._queryRenderedFeatures(t.point),l=a.length>0;!l&&i&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=a,l&&!i&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=s}else this._hoveredFeatures=null}_fireEvent(t,o,n){const r=this._map,s=r.transform,i=typeof o=="string"?o:o.type;return i==="move"&&this._updateViewState(this.props,!1),i in ac&&(typeof o=="object"&&(o.viewState=km(s)),this._map.isMoving())?(r.transform=this._renderTransform,t.call(r,o,n),r.transform=s,r):(t.call(r,o,n),r)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const n in this._deferredEvents)this._deferredEvents[n]&&t.fire(n);this._internalUpdate=!1;const o=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{Mm(this._renderTransform,o),t.transform=o}}}is.savedMaps=[];function iO(){let e=null;if(typeof location<"u"){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||process.env.MapboxAccessToken}catch{}try{e=e||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}const aO=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function lO(e){if(!e)return null;const t=e.map,o={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:n=>{const r=t.transform;t.transform=e.transform;const s=t.project(n);return t.transform=r,s},unproject:n=>{const r=t.transform;t.transform=e.transform;const s=t.unproject(n);return t.transform=r,s},queryTerrainElevation:(n,r)=>{const s=t.transform;t.transform=e.transform;const i=t.queryTerrainElevation(n,r);return t.transform=s,i},queryRenderedFeatures:(n,r)=>{const s=t.transform;t.transform=e.transform;const i=t.queryRenderedFeatures(n,r);return t.transform=s,i}};for(const n of cO(t))!(n in o)&&!aO.includes(n)&&(o[n]=t[n].bind(t));return o}function cO(e){const t=new Set;let o=e;for(;o;){for(const n of Object.getOwnPropertyNames(o))n[0]!=="_"&&typeof e[n]=="function"&&n!=="fire"&&n!=="setEventedParent"&&t.add(n);o=Object.getPrototypeOf(o)}return Array.from(t)}const uO=typeof document<"u"?V.useLayoutEffect:V.useEffect,pO=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function dO(e,t){for(const n of pO)n in t&&(e[n]=t[n]);const{RTLTextPlugin:o="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;o&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(o,n=>{n&&console.error(n)},!0)}const Dl=P.createContext(null);function Gg(e,t,o){const n=V.useContext(eO),[r,s]=V.useState(null),i=V.useRef(),{current:a}=V.useRef({mapLib:null,map:null});V.useEffect(()=>{const u=e.mapLib;let p=!0,f;return Promise.resolve(u||o).then(d=>{if(!p)return;if(!d)throw new Error("Invalid mapLib");const m="Map"in d?d:d.default;if(!m.Map)throw new Error("Invalid mapLib");if(dO(m,e),!m.supported||m.supported(e))e.reuseMaps&&(f=is.reuse(e,i.current)),f||(f=new is(m.Map,e,i.current)),a.map=lO(f),a.mapLib=m,s(f),n==null||n.onMapMount(a.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(d=>{const{onError:m}=e;m?m({type:"error",target:null,originalEvent:null,error:d}):console.error(d)}),()=>{p=!1,f&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?f.recycle():f.destroy())}},[]),uO(()=>{r&&r.setProps(e)}),V.useImperativeHandle(t,()=>a.map,[r]);const l=V.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return P.createElement("div",{id:e.id,ref:i,style:l},r&&P.createElement(Dl.Provider,{value:a},P.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const fO=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function vr(e,t){if(!e||!t)return;const o=e.style;for(const n in t){const r=t[n];Number.isFinite(r)&&!fO.test(n)?o[n]=`${r}px`:o[n]=r}}function mO(e,t){const{map:o,mapLib:n}=V.useContext(Dl),r=V.useRef({props:e});r.current.props=e;const s=V.useMemo(()=>{let h=!1;P.Children.forEach(e.children,C=>{C&&(h=!0)});const y={...e,element:h?document.createElement("div"):null},g=new n.Marker(y);return g.setLngLat([e.longitude,e.latitude]),g.getElement().addEventListener("click",C=>{var w,x;(x=(w=r.current.props).onClick)===null||x===void 0||x.call(w,{type:"click",target:g,originalEvent:C})}),g.on("dragstart",C=>{var w,x;const I=C;I.lngLat=s.getLngLat(),(x=(w=r.current.props).onDragStart)===null||x===void 0||x.call(w,I)}),g.on("drag",C=>{var w,x;const I=C;I.lngLat=s.getLngLat(),(x=(w=r.current.props).onDrag)===null||x===void 0||x.call(w,I)}),g.on("dragend",C=>{var w,x;const I=C;I.lngLat=s.getLngLat(),(x=(w=r.current.props).onDragEnd)===null||x===void 0||x.call(w,I)}),g},[]);V.useEffect(()=>(s.addTo(o.getMap()),()=>{s.remove()}),[]);const{longitude:i,latitude:a,offset:l,style:c,draggable:u=!1,popup:p=null,rotation:f=0,rotationAlignment:d="auto",pitchAlignment:m="auto"}=e;return V.useEffect(()=>{vr(s.getElement(),c)},[c]),V.useImperativeHandle(t,()=>s,[]),(s.getLngLat().lng!==i||s.getLngLat().lat!==a)&&s.setLngLat([i,a]),l&&!tO(s.getOffset(),l)&&s.setOffset(l),s.isDraggable()!==u&&s.setDraggable(u),s.getRotation()!==f&&s.setRotation(f),s.getRotationAlignment()!==d&&s.setRotationAlignment(d),s.getPitchAlignment()!==m&&s.setPitchAlignment(m),s.getPopup()!==p&&s.setPopup(p),_o.createPortal(e.children,s.getElement())}const Wg=V.memo(V.forwardRef(mO));function jm(e){return new Set(e?e.trim().split(/\s+/):[])}function hO(e,t){const{map:o,mapLib:n}=V.useContext(Dl),r=V.useMemo(()=>document.createElement("div"),[]),s=V.useRef({props:e});s.current.props=e;const i=V.useMemo(()=>{const a={...e},l=new n.Popup(a);return l.setLngLat([e.longitude,e.latitude]),l.once("open",c=>{var u,p;(p=(u=s.current.props).onOpen)===null||p===void 0||p.call(u,c)}),l},[]);if(V.useEffect(()=>{const a=l=>{var c,u;(u=(c=s.current.props).onClose)===null||u===void 0||u.call(c,l)};return i.on("close",a),i.setDOMContent(r).addTo(o.getMap()),()=>{i.off("close",a),i.isOpen()&&i.remove()}},[]),V.useEffect(()=>{vr(i.getElement(),e.style)},[e.style]),V.useImperativeHandle(t,()=>i,[]),i.isOpen()&&((i.getLngLat().lng!==e.longitude||i.getLngLat().lat!==e.latitude)&&i.setLngLat([e.longitude,e.latitude]),e.offset&&!dn(i.options.offset,e.offset)&&i.setOffset(e.offset),(i.options.anchor!==e.anchor||i.options.maxWidth!==e.maxWidth)&&(i.options.anchor=e.anchor,i.setMaxWidth(e.maxWidth)),i.options.className!==e.className)){const a=jm(i.options.className),l=jm(e.className);for(const c of a)l.has(c)||i.removeClassName(c);for(const c of l)a.has(c)||i.addClassName(c);i.options.className=e.className}return _o.createPortal(e.children,r)}const AL=V.memo(V.forwardRef(hO));function Vi(e,t,o,n){const r=V.useContext(Dl),s=V.useMemo(()=>e(r),[]);return V.useEffect(()=>{const i=n||o||t,a=typeof t=="function"&&typeof o=="function"?t:null,l=typeof o=="function"?o:typeof t=="function"?t:null,{map:c}=r;return c.hasControl(s)||(c.addControl(s,i==null?void 0:i.position),a&&a(r)),()=>{l&&l(r),c.hasControl(s)&&c.removeControl(s)}},[]),s}function yO(e){const t=Vi(({mapLib:o})=>new o.AttributionControl(e),{position:e.position});return V.useEffect(()=>{vr(t._container,e.style)},[e.style]),null}const ML=V.memo(yO);function gO(e){const t=Vi(({mapLib:o})=>new o.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return V.useEffect(()=>{vr(t._controlContainer,e.style)},[e.style]),null}const kL=V.memo(gO);function bO(e,t){const o=V.useRef({props:e}),n=Vi(({mapLib:r})=>{const s=new r.GeolocateControl(e),i=s._setupUI;return s._setupUI=a=>{s._container.hasChildNodes()||i(a)},s.on("geolocate",a=>{var l,c;(c=(l=o.current.props).onGeolocate)===null||c===void 0||c.call(l,a)}),s.on("error",a=>{var l,c;(c=(l=o.current.props).onError)===null||c===void 0||c.call(l,a)}),s.on("outofmaxbounds",a=>{var l,c;(c=(l=o.current.props).onOutOfMaxBounds)===null||c===void 0||c.call(l,a)}),s.on("trackuserlocationstart",a=>{var l,c;(c=(l=o.current.props).onTrackUserLocationStart)===null||c===void 0||c.call(l,a)}),s.on("trackuserlocationend",a=>{var l,c;(c=(l=o.current.props).onTrackUserLocationEnd)===null||c===void 0||c.call(l,a)}),s},{position:e.position});return o.current.props=e,V.useImperativeHandle(t,()=>n,[]),V.useEffect(()=>{vr(n._container,e.style)},[e.style]),null}const OL=V.memo(V.forwardRef(bO));function vO(e){const t=Vi(({mapLib:o})=>new o.NavigationControl(e),{position:e.position});return V.useEffect(()=>{vr(t._container,e.style)},[e.style]),null}const TO=V.memo(vO);function PO(e){const t=Vi(({mapLib:s})=>new s.ScaleControl(e),{position:e.position}),o=V.useRef(e),n=o.current;o.current=e;const{style:r}=e;return e.maxWidth!==void 0&&e.maxWidth!==n.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==n.unit&&t.setUnit(e.unit),V.useEffect(()=>{vr(t._container,r)},[r]),null}const RL=V.memo(PO);const xO=Promise.resolve().then(()=>require("./maplibre-gl-378oY6_m.js")).then(e=>e.maplibreGl),CO=P.forwardRef(function(t,o){return Gg(t,o,xO)}),wO=Wg;const IO=TO;const SO=Promise.resolve().then(()=>require("./mapbox-gl-DBrR2bbX.js")).then(e=>e.mapboxGl),DL=P.forwardRef(function(t,o){return Gg(t,o,SO)}),AO=Wg;function MO({locations:e}){if(D0.IsZeroArray(e))return null;const t=({id:o,longitude:n,latitude:r,icon:s})=>b.jsx("li",{children:b.jsx(AO,{longitude:n,latitude:r,children:s})},o);return b.jsx(fs,{items:e,itemRenderer:t})}const kO=({longitude:e,latitude:t,setCoordinate:o,locations:n=[],token:r,navigationControl:s})=>{const i=V.useRef(null),[a,l]=V.useState({longitude:e,latitude:t,zoom:10});return V.useEffect(()=>{i.current&&i.current.flyTo({center:[e,t],zoom:10,duration:3e3,essential:!0})},[t,e]),b.jsxs(CO,{ref:i,...a,mapStyle:`https://tiles.locationiq.com/v3/streets/vector.json?key=${r}`,style:{width:"100%",height:"100%"},onMove:c=>l(c.viewState),onClick:c=>{const{lng:u,lat:p}=c.lngLat;o&&o({lat:p,lng:u})},children:[b.jsx(wO,{longitude:e,latitude:t,children:"📌"}),b.jsx(MO,{locations:n}),s.isDisplayed&&b.jsx(IO,{position:s.position})]})};var qg=(e=>(e.TR="top-right",e))(qg||{});const cr=Math.min,En=Math.max,Fn=Math.round,On=Math.floor,io=e=>({x:e,y:e}),OO={left:"right",right:"left",bottom:"top",top:"bottom"},RO={start:"end",end:"start"};function Qc(e,t,o){return En(e,cr(t,o))}function Gi(e,t){return typeof e=="function"?e(t):e}function ur(e){return e.split("-")[0]}function Wi(e){return e.split("-")[1]}function Hg(e){return e==="x"?"y":"x"}function kp(e){return e==="y"?"height":"width"}const DO=new Set(["top","bottom"]);function Rn(e){return DO.has(ur(e))?"y":"x"}function Op(e){return Hg(Rn(e))}function EO(e,t,o){o===void 0&&(o=!1);const n=Wi(e),r=Op(e),s=kp(r);let i=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=qa(i)),[i,qa(i)]}function NO(e){const t=qa(e);return[$c(e),t,$c(t)]}function $c(e){return e.replace(/start|end/g,t=>RO[t])}const Lm=["left","right"],zm=["right","left"],jO=["top","bottom"],LO=["bottom","top"];function zO(e,t,o){switch(e){case"top":case"bottom":return o?t?zm:Lm:t?Lm:zm;case"left":case"right":return t?jO:LO;default:return[]}}function BO(e,t,o,n){const r=Wi(e);let s=zO(ur(e),o==="start",n);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map($c)))),s}function qa(e){return e.replace(/left|right|bottom|top/g,t=>OO[t])}function FO(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zg(e){return typeof e!="number"?FO(e):{top:e,right:e,bottom:e,left:e}}function Ii(e){const{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function Bm(e,t,o){let{reference:n,floating:r}=e;const s=Rn(t),i=Op(t),a=kp(i),l=ur(t),c=s==="y",u=n.x+n.width/2-r.width/2,p=n.y+n.height/2-r.height/2,f=n[a]/2-r[a]/2;let d;switch(l){case"top":d={x:u,y:n.y-r.height};break;case"bottom":d={x:u,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:p};break;case"left":d={x:n.x-r.width,y:p};break;default:d={x:n.x,y:n.y}}switch(Wi(t)){case"start":d[i]-=f*(o&&c?-1:1);break;case"end":d[i]+=f*(o&&c?-1:1);break}return d}async function VO(e,t){var o;t===void 0&&(t={});const{x:n,y:r,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:d=0}=Gi(t,e),m=Zg(d),y=a[f?p==="floating"?"reference":"floating":p],g=Ii(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(y)))==null||o?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),C=p==="floating"?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},I=Ii(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:w,strategy:l}):C);return{top:(g.top-I.top+m.top)/x.y,bottom:(I.bottom-g.bottom+m.bottom)/x.y,left:(g.left-I.left+m.left)/x.x,right:(I.right-g.right+m.right)/x.x}}const GO=async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:i}=o,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:p}=Bm(c,n,l),f=n,d={},m=0;for(let y=0;y<a.length;y++){var h;const{name:g,fn:C}=a[y],{x:w,y:x,data:I,reset:M}=await C({x:u,y:p,initialPlacement:n,placement:f,strategy:r,middlewareData:d,rects:c,platform:{...i,detectOverflow:(h=i.detectOverflow)!=null?h:VO},elements:{reference:e,floating:t}});u=w??u,p=x??p,d={...d,[g]:{...d[g],...I}},M&&m<=50&&(m++,typeof M=="object"&&(M.placement&&(f=M.placement),M.rects&&(c=M.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):M.rects),{x:u,y:p}=Bm(c,f,l)),y=-1)}return{x:u,y:p,placement:f,strategy:r,middlewareData:d}},WO=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Gi(e,t)||{};if(c==null)return{};const p=Zg(u),f={x:o,y:n},d=Op(r),m=kp(d),h=await i.getDimensions(c),y=d==="y",g=y?"top":"left",C=y?"bottom":"right",w=y?"clientHeight":"clientWidth",x=s.reference[m]+s.reference[d]-f[d]-s.floating[m],I=f[d]-s.reference[d],M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let E=M?M[w]:0;(!E||!await(i.isElement==null?void 0:i.isElement(M)))&&(E=a.floating[w]||s.floating[m]);const D=x/2-I/2,z=E/2-h[m]/2-1,B=cr(p[g],z),j=cr(p[C],z),v=B,N=E-h[m]-j,k=E/2-h[m]/2+D,S=Qc(v,k,N),R=!l.arrow&&Wi(r)!=null&&k!==S&&s.reference[m]/2-(k<v?B:j)-h[m]/2<0,A=R?k<v?k-v:k-N:0;return{[d]:f[d]+A,data:{[d]:S,centerOffset:k-S-A,...R&&{alignmentOffset:A}},reset:R}}});const qO=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...y}=Gi(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const g=ur(r),C=Rn(a),w=ur(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),I=f||(w||!h?[qa(a)]:NO(a)),M=m!=="none";!f&&M&&I.push(...BO(a,h,m,x));const E=[a,...I],D=await l.detectOverflow(t,y),z=[];let B=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&z.push(D[g]),p){const k=EO(r,i,x);z.push(D[k[0]],D[k[1]])}if(B=[...B,{placement:r,overflows:z}],!z.every(k=>k<=0)){var j,v;const k=(((j=s.flip)==null?void 0:j.index)||0)+1,S=E[k];if(S&&(!(p==="alignment"?C!==Rn(S):!1)||B.every(O=>Rn(O.placement)===C?O.overflows[0]>0:!0)))return{data:{index:k,overflows:B},reset:{placement:S}};let R=(v=B.filter(A=>A.overflows[0]<=0).sort((A,O)=>A.overflows[1]-O.overflows[1])[0])==null?void 0:v.placement;if(!R)switch(d){case"bestFit":{var N;const A=(N=B.filter(O=>{if(M){const F=Rn(O.placement);return F===C||F==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(F=>F>0).reduce((F,W)=>F+W,0)]).sort((O,F)=>O[1]-F[1])[0])==null?void 0:N[0];A&&(R=A);break}case"initialPlacement":R=a;break}if(r!==R)return{reset:{placement:R}}}return{}}}};const HO=new Set(["left","top"]);async function ZO(e,t){const{placement:o,platform:n,elements:r}=e,s=await(n.isRTL==null?void 0:n.isRTL(r.floating)),i=ur(o),a=Wi(o),l=Rn(o)==="y",c=HO.has(i)?-1:1,u=s&&l?-1:1,p=Gi(t,e);let{mainAxis:f,crossAxis:d,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof m=="number"&&(d=a==="end"?m*-1:m),l?{x:d*u,y:f*c}:{x:f*c,y:d*u}}const YO=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:s,placement:i,middlewareData:a}=t,l=await ZO(t,e);return i===((o=a.offset)==null?void 0:o.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},UO=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:g=>{let{x:C,y:w}=g;return{x:C,y:w}}},...c}=Gi(e,t),u={x:o,y:n},p=await s.detectOverflow(t,c),f=Rn(ur(r)),d=Hg(f);let m=u[d],h=u[f];if(i){const g=d==="y"?"top":"left",C=d==="y"?"bottom":"right",w=m+p[g],x=m-p[C];m=Qc(w,m,x)}if(a){const g=f==="y"?"top":"left",C=f==="y"?"bottom":"right",w=h+p[g],x=h-p[C];h=Qc(w,h,x)}const y=l.fn({...t,[d]:m,[f]:h});return{...y,data:{x:y.x-o,y:y.y-n,enabled:{[d]:i,[f]:a}}}}}};function El(){return typeof window<"u"}function Ps(e){return Yg(e)?(e.nodeName||"").toLowerCase():"#document"}function qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ho(e){var t;return(t=(Yg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yg(e){return El()?e instanceof Node||e instanceof qt(e).Node:!1}function co(e){return El()?e instanceof Element||e instanceof qt(e).Element:!1}function Eo(e){return El()?e instanceof HTMLElement||e instanceof qt(e).HTMLElement:!1}function Fm(e){return!El()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qt(e).ShadowRoot}const JO=new Set(["inline","contents"]);function qi(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=bo(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!JO.has(r)}const XO=new Set(["table","td","th"]);function QO(e){return XO.has(Ps(e))}const $O=[":popover-open",":modal"];function Nl(e){return $O.some(t=>{try{return e.matches(t)}catch{return!1}})}const KO=["transform","translate","scale","rotate","perspective"],_O=["transform","translate","scale","rotate","perspective","filter"],eR=["paint","layout","strict","content"];function Rp(e){const t=jl(),o=co(e)?bo(e):e;return KO.some(n=>o[n]?o[n]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||_O.some(n=>(o.willChange||"").includes(n))||eR.some(n=>(o.contain||"").includes(n))}function tR(e){let t=Vn(e);for(;Eo(t)&&!as(t);){if(Rp(t))return t;if(Nl(t))return null;t=Vn(t)}return null}function jl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const oR=new Set(["html","body","#document"]);function as(e){return oR.has(Ps(e))}function bo(e){return qt(e).getComputedStyle(e)}function Ll(e){return co(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vn(e){if(Ps(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fm(e)&&e.host||Ho(e);return Fm(t)?t.host:t}function Ug(e){const t=Vn(e);return as(t)?e.ownerDocument?e.ownerDocument.body:e.body:Eo(t)&&qi(t)?t:Ug(t)}function pr(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=Ug(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=qt(r);if(s){const a=Si(i);return t.concat(i,i.visualViewport||[],qi(r)?r:[],a&&o?pr(a):[])}return t.concat(r,pr(r,[],o))}function Si(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jg(e){const t=bo(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=Eo(e),s=r?e.offsetWidth:o,i=r?e.offsetHeight:n,a=Fn(o)!==s||Fn(n)!==i;return a&&(o=s,n=i),{width:o,height:n,$:a}}function Dp(e){return co(e)?e:e.contextElement}function Yr(e){const t=Dp(e);if(!Eo(t))return io(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:s}=Jg(t);let i=(s?Fn(o.width):o.width)/n,a=(s?Fn(o.height):o.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const nR=io(0);function Xg(e){const t=qt(e);return!jl()||!t.visualViewport?nR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rR(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==qt(e)?!1:t}function dr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),s=Dp(e);let i=io(1);t&&(n?co(n)&&(i=Yr(n)):i=Yr(e));const a=rR(s,o,n)?Xg(s):io(0);let l=(r.left+a.x)/i.x,c=(r.top+a.y)/i.y,u=r.width/i.x,p=r.height/i.y;if(s){const f=qt(s),d=n&&co(n)?qt(n):n;let m=f,h=Si(m);for(;h&&n&&d!==m;){const y=Yr(h),g=h.getBoundingClientRect(),C=bo(h),w=g.left+(h.clientLeft+parseFloat(C.paddingLeft))*y.x,x=g.top+(h.clientTop+parseFloat(C.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,p*=y.y,l+=w,c+=x,m=qt(h),h=Si(m)}}return Ii({width:u,height:p,x:l,y:c})}function zl(e,t){const o=Ll(e).scrollLeft;return t?t.left+o:dr(Ho(e)).left+o}function Qg(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-zl(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function sR(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const s=r==="fixed",i=Ho(n),a=t?Nl(t.floating):!1;if(n===i||a&&s)return o;let l={scrollLeft:0,scrollTop:0},c=io(1);const u=io(0),p=Eo(n);if((p||!p&&!s)&&((Ps(n)!=="body"||qi(i))&&(l=Ll(n)),Eo(n))){const d=dr(n);c=Yr(n),u.x=d.x+n.clientLeft,u.y=d.y+n.clientTop}const f=i&&!p&&!s?Qg(i,l):io(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:o.y*c.y-l.scrollTop*c.y+u.y+f.y}}function iR(e){return Array.from(e.getClientRects())}function aR(e){const t=Ho(e),o=Ll(e),n=e.ownerDocument.body,r=En(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=En(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+zl(e);const a=-o.scrollTop;return bo(n).direction==="rtl"&&(i+=En(t.clientWidth,n.clientWidth)-r),{width:r,height:s,x:i,y:a}}const Vm=25;function lR(e,t){const o=qt(e),n=Ho(e),r=o.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,l=0;if(r){s=r.width,i=r.height;const u=jl();(!u||u&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}const c=zl(n);if(c<=0){const u=n.ownerDocument,p=u.body,f=getComputedStyle(p),d=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(n.clientWidth-p.clientWidth-d);m<=Vm&&(s-=m)}else c<=Vm&&(s+=c);return{width:s,height:i,x:a,y:l}}const cR=new Set(["absolute","fixed"]);function uR(e,t){const o=dr(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,s=Eo(e)?Yr(e):io(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,c=n*s.y;return{width:i,height:a,x:l,y:c}}function Gm(e,t,o){let n;if(t==="viewport")n=lR(e,o);else if(t==="document")n=aR(Ho(e));else if(co(t))n=uR(t,o);else{const r=Xg(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Ii(n)}function $g(e,t){const o=Vn(e);return o===t||!co(o)||as(o)?!1:bo(o).position==="fixed"||$g(o,t)}function pR(e,t){const o=t.get(e);if(o)return o;let n=pr(e,[],!1).filter(a=>co(a)&&Ps(a)!=="body"),r=null;const s=bo(e).position==="fixed";let i=s?Vn(e):e;for(;co(i)&&!as(i);){const a=bo(i),l=Rp(i);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&cR.has(r.position)||qi(i)&&!l&&$g(e,i))?n=n.filter(u=>u!==i):r=a,i=Vn(i)}return t.set(e,n),n}function dR(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const i=[...o==="clippingAncestors"?Nl(t)?[]:pR(t,this._c):[].concat(o),n],a=i[0],l=i.reduce((c,u)=>{const p=Gm(t,u,r);return c.top=En(p.top,c.top),c.right=cr(p.right,c.right),c.bottom=cr(p.bottom,c.bottom),c.left=En(p.left,c.left),c},Gm(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function fR(e){const{width:t,height:o}=Jg(e);return{width:t,height:o}}function mR(e,t,o){const n=Eo(t),r=Ho(t),s=o==="fixed",i=dr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=io(0);function c(){l.x=zl(r)}if(n||!n&&!s)if((Ps(t)!=="body"||qi(r))&&(a=Ll(t)),n){const d=dr(t,!0,s,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else r&&c();s&&!n&&r&&c();const u=r&&!n&&!s?Qg(r,a):io(0),p=i.left+a.scrollLeft-l.x-u.x,f=i.top+a.scrollTop-l.y-u.y;return{x:p,y:f,width:i.width,height:i.height}}function lc(e){return bo(e).position==="static"}function Wm(e,t){if(!Eo(e)||bo(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Ho(e)===o&&(o=o.ownerDocument.body),o}function Kg(e,t){const o=qt(e);if(Nl(e))return o;if(!Eo(e)){let r=Vn(e);for(;r&&!as(r);){if(co(r)&&!lc(r))return r;r=Vn(r)}return o}let n=Wm(e,t);for(;n&&QO(n)&&lc(n);)n=Wm(n,t);return n&&as(n)&&lc(n)&&!Rp(n)?o:n||tR(e)||o}const hR=async function(e){const t=this.getOffsetParent||Kg,o=this.getDimensions,n=await o(e.floating);return{reference:mR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function yR(e){return bo(e).direction==="rtl"}const gR={convertOffsetParentRelativeRectToViewportRelativeRect:sR,getDocumentElement:Ho,getClippingRect:dR,getOffsetParent:Kg,getElementRects:hR,getClientRects:iR,getDimensions:fR,getScale:Yr,isElement:co,isRTL:yR};function _g(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function bR(e,t){let o=null,n;const r=Ho(e);function s(){var a;clearTimeout(n),(a=o)==null||a.disconnect(),o=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:p,width:f,height:d}=c;if(a||t(),!f||!d)return;const m=On(p),h=On(r.clientWidth-(u+f)),y=On(r.clientHeight-(p+d)),g=On(u),w={rootMargin:-m+"px "+-h+"px "+-y+"px "+-g+"px",threshold:En(0,cr(1,l))||1};let x=!0;function I(M){const E=M[0].intersectionRatio;if(E!==l){if(!x)return i();E?i(!1,E):n=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!_g(c,e.getBoundingClientRect())&&i(),x=!1}try{o=new IntersectionObserver(I,{...w,root:r.ownerDocument})}catch{o=new IntersectionObserver(I,w)}o.observe(e)}return i(!0),s}function vR(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Dp(e),u=r||s?[...c?pr(c):[],...pr(t)]:[];u.forEach(g=>{r&&g.addEventListener("scroll",o,{passive:!0}),s&&g.addEventListener("resize",o)});const p=c&&a?bR(c,o):null;let f=-1,d=null;i&&(d=new ResizeObserver(g=>{let[C]=g;C&&C.target===c&&d&&(d.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=d)==null||w.observe(t)})),o()}),c&&!l&&d.observe(c),d.observe(t));let m,h=l?dr(e):null;l&&y();function y(){const g=dr(e);h&&!_g(h,g)&&o(),h=g,m=requestAnimationFrame(y)}return o(),()=>{var g;u.forEach(C=>{r&&C.removeEventListener("scroll",o),s&&C.removeEventListener("resize",o)}),p==null||p(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(m)}}const TR=YO;const PR=UO,xR=qO;const CR=WO;const qm=(e,t,o)=>{const n=new Map,r={platform:gR,...o},s={...r.platform,_c:n};return GO(e,t,{...r,platform:s})};var Ca={exports:{}};/*!
361
+ */function $k({value:e,setValue:t}){return b.jsx(Ri,{dateAdapter:el,children:b.jsx(Jk,{value:e,minDate:Lt(),onChange:t,slotProps:{textField:{sx:{"& .MuiPickersSectionList-root":{padding:0},"& .MuiPickersInputBase-sectionsContainer":{padding:0},width:"100%",height:30,"& .MuiInputBase-root":{height:30,"& .MuiInputBase-input":{padding:"0px 16px",color:"gray"}}}}}})})}const Bg=e=>e.format("MMM D"),Jc=e=>e.format("hh:mm A"),Xc=e=>e.format("MMM D, hh:mm A"),Fg=(e,t)=>e.month()===t.month()&&e.date()===t.date(),Vg=(e,t)=>Fg(e,t)?`${Bg(e)}, ${Jc(e)} - ${Jc(t)}`:`${Xc(e)} - ${Xc(t)}`;function Kk({startDate:e,endDate:t,className:o=""}){return b.jsx("div",{className:xe("text-gray-600 text-sm",o),children:Vg(e,t)})}function _k({date:e}){return!e||e.length<10?null:b.jsx("div",{className:"text-gray-600 text-sm",children:e.substring(0,10)})}const eO=P.createContext(null);function tO(e,t){const o=Array.isArray(e)?e[0]:e?e.x:0,n=Array.isArray(e)?e[1]:e?e.y:0,r=Array.isArray(t)?t[0]:t?t.x:0,s=Array.isArray(t)?t[1]:t?t.y:0;return o===r&&n===s}function dn(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!dn(e[o],t[o]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)return!1;for(const r of o)if(!t.hasOwnProperty(r)||!dn(e[r],t[r]))return!1;return!0}return!1}function oO(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function Mm(e,t){if(!e.getProjection)return;const o=e.getProjection(),n=t.getProjection();dn(o,n)||t.setProjection(o)}function km(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function Om(e,t){const o=t.viewState||t;let n=!1;if("zoom"in o){const r=e.zoom;e.zoom=o.zoom,n=n||r!==e.zoom}if("bearing"in o){const r=e.bearing;e.bearing=o.bearing,n=n||r!==e.bearing}if("pitch"in o){const r=e.pitch;e.pitch=o.pitch,n=n||r!==e.pitch}if(o.padding&&!e.isPaddingEqual(o.padding)&&(n=!0,e.padding=o.padding),"longitude"in o&&"latitude"in o){const r=e.center;e.center=new r.constructor(o.longitude,o.latitude),n=n||r!==e.center}return n}const nO=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Rm(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const n of e.layers)t[n.id]=n;const o=e.layers.map(n=>{let r=null;"interactive"in n&&(r=Object.assign({},n),delete r.interactive);const s=t[n.ref];if(s){r=r||Object.assign({},n),delete r.ref;for(const i of nO)i in s&&(r[i]=s[i])}return r||n});return{...e,layers:o}}const Dm={version:8,sources:{},layers:[]},Em={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},ac={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},Nm={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},rO=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],sO=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class is{constructor(t,o,n){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=r=>{const s=this.props[Nm[r.type]];s?s(r):r.type==="error"&&console.error(r.error)},this._onPointerEvent=r=>{(r.type==="mousemove"||r.type==="mouseout")&&this._updateHover(r);const s=this.props[Em[r.type]];s&&(this.props.interactiveLayerIds&&r.type!=="mouseover"&&r.type!=="mouseout"&&(r.features=this._hoveredFeatures||this._queryRenderedFeatures(r.point)),s(r),delete r.features)},this._onCameraEvent=r=>{if(!this._internalUpdate){const s=this.props[ac[r.type]];s&&s(r)}r.type in this._deferredEvents&&(this._deferredEvents[r.type]=!1)},this._MapClass=t,this.props=o,this._initialize(n)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const o=this.props;this.props=t;const n=this._updateSettings(t,o);n&&this._createShadowTransform(this._map);const r=this._updateSize(t),s=this._updateViewState(t,!0);this._updateStyle(t,o),this._updateStyleComponents(t,o),this._updateHandlers(t,o),(n||r||s&&!this._map.isMoving())&&this.redraw()}static reuse(t,o){const n=is.savedMaps.pop();if(!n)return null;const r=n.map,s=r.getContainer();for(o.className=s.className;s.childNodes.length>0;)o.appendChild(s.childNodes[0]);r._container=o;const i=r._resizeObserver;i&&(i.disconnect(),i.observe(o)),n.setProps({...t,styleDiffing:!1}),r.resize();const{initialViewState:a}=t;return a&&(a.bounds?r.fitBounds(a.bounds,{...a.fitBoundsOptions,duration:0}):n._updateViewState(a,!1)),r.isStyleLoaded()?r.fire("load"):r.once("styledata",()=>r.fire("load")),r._update(),n}_initialize(t){const{props:o}=this,{mapStyle:n=Dm}=o,r={...o,...o.initialViewState,accessToken:o.mapboxAccessToken||iO()||null,container:t,style:Rm(n)},s=r.initialViewState||r.viewState||r;if(Object.assign(r,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),o.gl){const u=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=u,o.gl)}const i=new this._MapClass(r);s.padding&&i.setPadding(s.padding),o.cursor&&(i.getCanvas().style.cursor=o.cursor),this._createShadowTransform(i);const a=i._render;i._render=u=>{this._inRender=!0,a.call(i,u),this._inRender=!1};const l=i._renderTaskQueue.run;i._renderTaskQueue.run=u=>{l.call(i._renderTaskQueue,u),this._onBeforeRepaint()},i.on("render",()=>this._onAfterRepaint());const c=i.fire;i.fire=this._fireEvent.bind(this,c),i.on("resize",()=>{this._renderTransform.resize(i.transform.width,i.transform.height)}),i.on("styledata",()=>{this._updateStyleComponents(this.props,{}),Mm(i.transform,this._renderTransform)}),i.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const u in Em)i.on(u,this._onPointerEvent);for(const u in ac)i.on(u,this._onCameraEvent);for(const u in Nm)i.on(u,this._onEvent);this._map=i}recycle(){const o=this.map.getContainer().querySelector("[mapboxgl-children]");o==null||o.remove(),is.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const o=oO(t.transform);t.painter.transform=o,this._renderTransform=o}_updateSize(t){const{viewState:o}=t;if(o){const n=this._map;if(o.width!==n.transform.width||o.height!==n.transform.height)return n.resize(),!0}return!1}_updateViewState(t,o){if(this._internalUpdate)return!1;const n=this._map,r=this._renderTransform,{zoom:s,pitch:i,bearing:a}=r,l=n.isMoving();l&&(r.cameraElevationReference="sea");const c=Om(r,{...km(n.transform),...t});if(l&&(r.cameraElevationReference="ground"),c&&o){const u=this._deferredEvents;u.move=!0,u.zoom||(u.zoom=s!==r.zoom),u.rotate||(u.rotate=a!==r.bearing),u.pitch||(u.pitch=i!==r.pitch)}return l||Om(n.transform,t),c}_updateSettings(t,o){const n=this._map;let r=!1;for(const s of rO)if(s in t&&!dn(t[s],o[s])){r=!0;const i=n[`set${s[0].toUpperCase()}${s.slice(1)}`];i==null||i.call(n,t[s])}return r}_updateStyle(t,o){if(t.cursor!==o.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==o.mapStyle){const{mapStyle:n=Dm,styleDiffing:r=!0}=t,s={diff:r};return"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(Rm(n),s),!0}return!1}_updateStyleComponents(t,o){const n=this._map;let r=!1;return n.isStyleLoaded()&&("light"in t&&n.setLight&&!dn(t.light,o.light)&&(r=!0,n.setLight(t.light)),"fog"in t&&n.setFog&&!dn(t.fog,o.fog)&&(r=!0,n.setFog(t.fog)),"terrain"in t&&n.setTerrain&&!dn(t.terrain,o.terrain)&&(!t.terrain||n.getSource(t.terrain.source))&&(r=!0,n.setTerrain(t.terrain))),r}_updateHandlers(t,o){var n,r;const s=this._map;let i=!1;for(const a of sO){const l=(n=t[a])!==null&&n!==void 0?n:!0,c=(r=o[a])!==null&&r!==void 0?r:!0;dn(l,c)||(i=!0,l?s[a].enable(l):s[a].disable())}return i}_queryRenderedFeatures(t){const o=this._map,n=o.transform,{interactiveLayerIds:r=[]}=this.props;try{return o.transform=this._renderTransform,o.queryRenderedFeatures(t,{layers:r.filter(o.getLayer.bind(o))})}catch{return[]}finally{o.transform=n}}_updateHover(t){var o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const s=t.type,i=((o=this._hoveredFeatures)===null||o===void 0?void 0:o.length)>0,a=this._queryRenderedFeatures(t.point),l=a.length>0;!l&&i&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=a,l&&!i&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=s}else this._hoveredFeatures=null}_fireEvent(t,o,n){const r=this._map,s=r.transform,i=typeof o=="string"?o:o.type;return i==="move"&&this._updateViewState(this.props,!1),i in ac&&(typeof o=="object"&&(o.viewState=km(s)),this._map.isMoving())?(r.transform=this._renderTransform,t.call(r,o,n),r.transform=s,r):(t.call(r,o,n),r)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const n in this._deferredEvents)this._deferredEvents[n]&&t.fire(n);this._internalUpdate=!1;const o=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{Mm(this._renderTransform,o),t.transform=o}}}is.savedMaps=[];function iO(){let e=null;if(typeof location<"u"){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||process.env.MapboxAccessToken}catch{}try{e=e||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}const aO=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function lO(e){if(!e)return null;const t=e.map,o={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:n=>{const r=t.transform;t.transform=e.transform;const s=t.project(n);return t.transform=r,s},unproject:n=>{const r=t.transform;t.transform=e.transform;const s=t.unproject(n);return t.transform=r,s},queryTerrainElevation:(n,r)=>{const s=t.transform;t.transform=e.transform;const i=t.queryTerrainElevation(n,r);return t.transform=s,i},queryRenderedFeatures:(n,r)=>{const s=t.transform;t.transform=e.transform;const i=t.queryRenderedFeatures(n,r);return t.transform=s,i}};for(const n of cO(t))!(n in o)&&!aO.includes(n)&&(o[n]=t[n].bind(t));return o}function cO(e){const t=new Set;let o=e;for(;o;){for(const n of Object.getOwnPropertyNames(o))n[0]!=="_"&&typeof e[n]=="function"&&n!=="fire"&&n!=="setEventedParent"&&t.add(n);o=Object.getPrototypeOf(o)}return Array.from(t)}const uO=typeof document<"u"?V.useLayoutEffect:V.useEffect,pO=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function dO(e,t){for(const n of pO)n in t&&(e[n]=t[n]);const{RTLTextPlugin:o="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;o&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(o,n=>{n&&console.error(n)},!0)}const Dl=P.createContext(null);function Gg(e,t,o){const n=V.useContext(eO),[r,s]=V.useState(null),i=V.useRef(),{current:a}=V.useRef({mapLib:null,map:null});V.useEffect(()=>{const u=e.mapLib;let p=!0,f;return Promise.resolve(u||o).then(d=>{if(!p)return;if(!d)throw new Error("Invalid mapLib");const m="Map"in d?d:d.default;if(!m.Map)throw new Error("Invalid mapLib");if(dO(m,e),!m.supported||m.supported(e))e.reuseMaps&&(f=is.reuse(e,i.current)),f||(f=new is(m.Map,e,i.current)),a.map=lO(f),a.mapLib=m,s(f),n==null||n.onMapMount(a.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(d=>{const{onError:m}=e;m?m({type:"error",target:null,originalEvent:null,error:d}):console.error(d)}),()=>{p=!1,f&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?f.recycle():f.destroy())}},[]),uO(()=>{r&&r.setProps(e)}),V.useImperativeHandle(t,()=>a.map,[r]);const l=V.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return P.createElement("div",{id:e.id,ref:i,style:l},r&&P.createElement(Dl.Provider,{value:a},P.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const fO=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function vr(e,t){if(!e||!t)return;const o=e.style;for(const n in t){const r=t[n];Number.isFinite(r)&&!fO.test(n)?o[n]=`${r}px`:o[n]=r}}function mO(e,t){const{map:o,mapLib:n}=V.useContext(Dl),r=V.useRef({props:e});r.current.props=e;const s=V.useMemo(()=>{let h=!1;P.Children.forEach(e.children,C=>{C&&(h=!0)});const y={...e,element:h?document.createElement("div"):null},g=new n.Marker(y);return g.setLngLat([e.longitude,e.latitude]),g.getElement().addEventListener("click",C=>{var w,x;(x=(w=r.current.props).onClick)===null||x===void 0||x.call(w,{type:"click",target:g,originalEvent:C})}),g.on("dragstart",C=>{var w,x;const I=C;I.lngLat=s.getLngLat(),(x=(w=r.current.props).onDragStart)===null||x===void 0||x.call(w,I)}),g.on("drag",C=>{var w,x;const I=C;I.lngLat=s.getLngLat(),(x=(w=r.current.props).onDrag)===null||x===void 0||x.call(w,I)}),g.on("dragend",C=>{var w,x;const I=C;I.lngLat=s.getLngLat(),(x=(w=r.current.props).onDragEnd)===null||x===void 0||x.call(w,I)}),g},[]);V.useEffect(()=>(s.addTo(o.getMap()),()=>{s.remove()}),[]);const{longitude:i,latitude:a,offset:l,style:c,draggable:u=!1,popup:p=null,rotation:f=0,rotationAlignment:d="auto",pitchAlignment:m="auto"}=e;return V.useEffect(()=>{vr(s.getElement(),c)},[c]),V.useImperativeHandle(t,()=>s,[]),(s.getLngLat().lng!==i||s.getLngLat().lat!==a)&&s.setLngLat([i,a]),l&&!tO(s.getOffset(),l)&&s.setOffset(l),s.isDraggable()!==u&&s.setDraggable(u),s.getRotation()!==f&&s.setRotation(f),s.getRotationAlignment()!==d&&s.setRotationAlignment(d),s.getPitchAlignment()!==m&&s.setPitchAlignment(m),s.getPopup()!==p&&s.setPopup(p),_o.createPortal(e.children,s.getElement())}const Wg=V.memo(V.forwardRef(mO));function jm(e){return new Set(e?e.trim().split(/\s+/):[])}function hO(e,t){const{map:o,mapLib:n}=V.useContext(Dl),r=V.useMemo(()=>document.createElement("div"),[]),s=V.useRef({props:e});s.current.props=e;const i=V.useMemo(()=>{const a={...e},l=new n.Popup(a);return l.setLngLat([e.longitude,e.latitude]),l.once("open",c=>{var u,p;(p=(u=s.current.props).onOpen)===null||p===void 0||p.call(u,c)}),l},[]);if(V.useEffect(()=>{const a=l=>{var c,u;(u=(c=s.current.props).onClose)===null||u===void 0||u.call(c,l)};return i.on("close",a),i.setDOMContent(r).addTo(o.getMap()),()=>{i.off("close",a),i.isOpen()&&i.remove()}},[]),V.useEffect(()=>{vr(i.getElement(),e.style)},[e.style]),V.useImperativeHandle(t,()=>i,[]),i.isOpen()&&((i.getLngLat().lng!==e.longitude||i.getLngLat().lat!==e.latitude)&&i.setLngLat([e.longitude,e.latitude]),e.offset&&!dn(i.options.offset,e.offset)&&i.setOffset(e.offset),(i.options.anchor!==e.anchor||i.options.maxWidth!==e.maxWidth)&&(i.options.anchor=e.anchor,i.setMaxWidth(e.maxWidth)),i.options.className!==e.className)){const a=jm(i.options.className),l=jm(e.className);for(const c of a)l.has(c)||i.removeClassName(c);for(const c of l)a.has(c)||i.addClassName(c);i.options.className=e.className}return _o.createPortal(e.children,r)}const AL=V.memo(V.forwardRef(hO));function Vi(e,t,o,n){const r=V.useContext(Dl),s=V.useMemo(()=>e(r),[]);return V.useEffect(()=>{const i=n||o||t,a=typeof t=="function"&&typeof o=="function"?t:null,l=typeof o=="function"?o:typeof t=="function"?t:null,{map:c}=r;return c.hasControl(s)||(c.addControl(s,i==null?void 0:i.position),a&&a(r)),()=>{l&&l(r),c.hasControl(s)&&c.removeControl(s)}},[]),s}function yO(e){const t=Vi(({mapLib:o})=>new o.AttributionControl(e),{position:e.position});return V.useEffect(()=>{vr(t._container,e.style)},[e.style]),null}const ML=V.memo(yO);function gO(e){const t=Vi(({mapLib:o})=>new o.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return V.useEffect(()=>{vr(t._controlContainer,e.style)},[e.style]),null}const kL=V.memo(gO);function bO(e,t){const o=V.useRef({props:e}),n=Vi(({mapLib:r})=>{const s=new r.GeolocateControl(e),i=s._setupUI;return s._setupUI=a=>{s._container.hasChildNodes()||i(a)},s.on("geolocate",a=>{var l,c;(c=(l=o.current.props).onGeolocate)===null||c===void 0||c.call(l,a)}),s.on("error",a=>{var l,c;(c=(l=o.current.props).onError)===null||c===void 0||c.call(l,a)}),s.on("outofmaxbounds",a=>{var l,c;(c=(l=o.current.props).onOutOfMaxBounds)===null||c===void 0||c.call(l,a)}),s.on("trackuserlocationstart",a=>{var l,c;(c=(l=o.current.props).onTrackUserLocationStart)===null||c===void 0||c.call(l,a)}),s.on("trackuserlocationend",a=>{var l,c;(c=(l=o.current.props).onTrackUserLocationEnd)===null||c===void 0||c.call(l,a)}),s},{position:e.position});return o.current.props=e,V.useImperativeHandle(t,()=>n,[]),V.useEffect(()=>{vr(n._container,e.style)},[e.style]),null}const OL=V.memo(V.forwardRef(bO));function vO(e){const t=Vi(({mapLib:o})=>new o.NavigationControl(e),{position:e.position});return V.useEffect(()=>{vr(t._container,e.style)},[e.style]),null}const TO=V.memo(vO);function PO(e){const t=Vi(({mapLib:s})=>new s.ScaleControl(e),{position:e.position}),o=V.useRef(e),n=o.current;o.current=e;const{style:r}=e;return e.maxWidth!==void 0&&e.maxWidth!==n.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==n.unit&&t.setUnit(e.unit),V.useEffect(()=>{vr(t._container,r)},[r]),null}const RL=V.memo(PO);const xO=Promise.resolve().then(()=>require("./maplibre-gl-67UoMjof.js")).then(e=>e.maplibreGl),CO=P.forwardRef(function(t,o){return Gg(t,o,xO)}),wO=Wg;const IO=TO;const SO=Promise.resolve().then(()=>require("./mapbox-gl-DcFB4_JO.js")).then(e=>e.mapboxGl),DL=P.forwardRef(function(t,o){return Gg(t,o,SO)}),AO=Wg;function MO({locations:e}){if(D0.IsZeroArray(e))return null;const t=({id:o,longitude:n,latitude:r,icon:s})=>b.jsx("li",{children:b.jsx(AO,{longitude:n,latitude:r,children:s})},o);return b.jsx(fs,{items:e,itemRenderer:t})}const kO=({longitude:e,latitude:t,setCoordinates:o,locations:n=[],token:r,navigationControl:s})=>{const i=V.useRef(null),[a,l]=V.useState({longitude:e,latitude:t,zoom:10});return V.useEffect(()=>{i.current&&i.current.flyTo({center:[e,t],zoom:10,duration:3e3,essential:!0})},[t,e]),b.jsxs(CO,{ref:i,...a,mapStyle:`https://tiles.locationiq.com/v3/streets/vector.json?key=${r}`,style:{width:"100%",height:"100%"},onMove:c=>l(c.viewState),onClick:c=>{const{lng:u,lat:p}=c.lngLat;o&&o({lat:p,lng:u})},children:[b.jsx(wO,{longitude:e,latitude:t,children:"📌"}),b.jsx(MO,{locations:n}),s.isDisplayed&&b.jsx(IO,{position:s.position})]})};var qg=(e=>(e.TR="top-right",e))(qg||{});const cr=Math.min,En=Math.max,Fn=Math.round,On=Math.floor,io=e=>({x:e,y:e}),OO={left:"right",right:"left",bottom:"top",top:"bottom"},RO={start:"end",end:"start"};function Qc(e,t,o){return En(e,cr(t,o))}function Gi(e,t){return typeof e=="function"?e(t):e}function ur(e){return e.split("-")[0]}function Wi(e){return e.split("-")[1]}function Hg(e){return e==="x"?"y":"x"}function kp(e){return e==="y"?"height":"width"}const DO=new Set(["top","bottom"]);function Rn(e){return DO.has(ur(e))?"y":"x"}function Op(e){return Hg(Rn(e))}function EO(e,t,o){o===void 0&&(o=!1);const n=Wi(e),r=Op(e),s=kp(r);let i=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=qa(i)),[i,qa(i)]}function NO(e){const t=qa(e);return[$c(e),t,$c(t)]}function $c(e){return e.replace(/start|end/g,t=>RO[t])}const Lm=["left","right"],zm=["right","left"],jO=["top","bottom"],LO=["bottom","top"];function zO(e,t,o){switch(e){case"top":case"bottom":return o?t?zm:Lm:t?Lm:zm;case"left":case"right":return t?jO:LO;default:return[]}}function BO(e,t,o,n){const r=Wi(e);let s=zO(ur(e),o==="start",n);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map($c)))),s}function qa(e){return e.replace(/left|right|bottom|top/g,t=>OO[t])}function FO(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zg(e){return typeof e!="number"?FO(e):{top:e,right:e,bottom:e,left:e}}function Ii(e){const{x:t,y:o,width:n,height:r}=e;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}function Bm(e,t,o){let{reference:n,floating:r}=e;const s=Rn(t),i=Op(t),a=kp(i),l=ur(t),c=s==="y",u=n.x+n.width/2-r.width/2,p=n.y+n.height/2-r.height/2,f=n[a]/2-r[a]/2;let d;switch(l){case"top":d={x:u,y:n.y-r.height};break;case"bottom":d={x:u,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:p};break;case"left":d={x:n.x-r.width,y:p};break;default:d={x:n.x,y:n.y}}switch(Wi(t)){case"start":d[i]-=f*(o&&c?-1:1);break;case"end":d[i]+=f*(o&&c?-1:1);break}return d}async function VO(e,t){var o;t===void 0&&(t={});const{x:n,y:r,platform:s,rects:i,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:d=0}=Gi(t,e),m=Zg(d),y=a[f?p==="floating"?"reference":"floating":p],g=Ii(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(y)))==null||o?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),C=p==="floating"?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},I=Ii(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:w,strategy:l}):C);return{top:(g.top-I.top+m.top)/x.y,bottom:(I.bottom-g.bottom+m.bottom)/x.y,left:(g.left-I.left+m.left)/x.x,right:(I.right-g.right+m.right)/x.x}}const GO=async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:i}=o,a=s.filter(Boolean),l=await(i.isRTL==null?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:p}=Bm(c,n,l),f=n,d={},m=0;for(let y=0;y<a.length;y++){var h;const{name:g,fn:C}=a[y],{x:w,y:x,data:I,reset:M}=await C({x:u,y:p,initialPlacement:n,placement:f,strategy:r,middlewareData:d,rects:c,platform:{...i,detectOverflow:(h=i.detectOverflow)!=null?h:VO},elements:{reference:e,floating:t}});u=w??u,p=x??p,d={...d,[g]:{...d[g],...I}},M&&m<=50&&(m++,typeof M=="object"&&(M.placement&&(f=M.placement),M.rects&&(c=M.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):M.rects),{x:u,y:p}=Bm(c,f,l)),y=-1)}return{x:u,y:p,placement:f,strategy:r,middlewareData:d}},WO=e=>({name:"arrow",options:e,async fn(t){const{x:o,y:n,placement:r,rects:s,platform:i,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Gi(e,t)||{};if(c==null)return{};const p=Zg(u),f={x:o,y:n},d=Op(r),m=kp(d),h=await i.getDimensions(c),y=d==="y",g=y?"top":"left",C=y?"bottom":"right",w=y?"clientHeight":"clientWidth",x=s.reference[m]+s.reference[d]-f[d]-s.floating[m],I=f[d]-s.reference[d],M=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let E=M?M[w]:0;(!E||!await(i.isElement==null?void 0:i.isElement(M)))&&(E=a.floating[w]||s.floating[m]);const D=x/2-I/2,z=E/2-h[m]/2-1,B=cr(p[g],z),j=cr(p[C],z),v=B,N=E-h[m]-j,k=E/2-h[m]/2+D,S=Qc(v,k,N),R=!l.arrow&&Wi(r)!=null&&k!==S&&s.reference[m]/2-(k<v?B:j)-h[m]/2<0,A=R?k<v?k-v:k-N:0;return{[d]:f[d]+A,data:{[d]:S,centerOffset:k-S-A,...R&&{alignmentOffset:A}},reset:R}}});const qO=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var o,n;const{placement:r,middlewareData:s,rects:i,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...y}=Gi(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const g=ur(r),C=Rn(a),w=ur(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),I=f||(w||!h?[qa(a)]:NO(a)),M=m!=="none";!f&&M&&I.push(...BO(a,h,m,x));const E=[a,...I],D=await l.detectOverflow(t,y),z=[];let B=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&z.push(D[g]),p){const k=EO(r,i,x);z.push(D[k[0]],D[k[1]])}if(B=[...B,{placement:r,overflows:z}],!z.every(k=>k<=0)){var j,v;const k=(((j=s.flip)==null?void 0:j.index)||0)+1,S=E[k];if(S&&(!(p==="alignment"?C!==Rn(S):!1)||B.every(O=>Rn(O.placement)===C?O.overflows[0]>0:!0)))return{data:{index:k,overflows:B},reset:{placement:S}};let R=(v=B.filter(A=>A.overflows[0]<=0).sort((A,O)=>A.overflows[1]-O.overflows[1])[0])==null?void 0:v.placement;if(!R)switch(d){case"bestFit":{var N;const A=(N=B.filter(O=>{if(M){const F=Rn(O.placement);return F===C||F==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(F=>F>0).reduce((F,W)=>F+W,0)]).sort((O,F)=>O[1]-F[1])[0])==null?void 0:N[0];A&&(R=A);break}case"initialPlacement":R=a;break}if(r!==R)return{reset:{placement:R}}}return{}}}};const HO=new Set(["left","top"]);async function ZO(e,t){const{placement:o,platform:n,elements:r}=e,s=await(n.isRTL==null?void 0:n.isRTL(r.floating)),i=ur(o),a=Wi(o),l=Rn(o)==="y",c=HO.has(i)?-1:1,u=s&&l?-1:1,p=Gi(t,e);let{mainAxis:f,crossAxis:d,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof m=="number"&&(d=a==="end"?m*-1:m),l?{x:d*u,y:f*c}:{x:f*c,y:d*u}}const YO=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var o,n;const{x:r,y:s,placement:i,middlewareData:a}=t,l=await ZO(t,e);return i===((o=a.offset)==null?void 0:o.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:r+l.x,y:s+l.y,data:{...l,placement:i}}}}},UO=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:o,y:n,placement:r,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:l={fn:g=>{let{x:C,y:w}=g;return{x:C,y:w}}},...c}=Gi(e,t),u={x:o,y:n},p=await s.detectOverflow(t,c),f=Rn(ur(r)),d=Hg(f);let m=u[d],h=u[f];if(i){const g=d==="y"?"top":"left",C=d==="y"?"bottom":"right",w=m+p[g],x=m-p[C];m=Qc(w,m,x)}if(a){const g=f==="y"?"top":"left",C=f==="y"?"bottom":"right",w=h+p[g],x=h-p[C];h=Qc(w,h,x)}const y=l.fn({...t,[d]:m,[f]:h});return{...y,data:{x:y.x-o,y:y.y-n,enabled:{[d]:i,[f]:a}}}}}};function El(){return typeof window<"u"}function Ps(e){return Yg(e)?(e.nodeName||"").toLowerCase():"#document"}function qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ho(e){var t;return(t=(Yg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yg(e){return El()?e instanceof Node||e instanceof qt(e).Node:!1}function co(e){return El()?e instanceof Element||e instanceof qt(e).Element:!1}function Eo(e){return El()?e instanceof HTMLElement||e instanceof qt(e).HTMLElement:!1}function Fm(e){return!El()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qt(e).ShadowRoot}const JO=new Set(["inline","contents"]);function qi(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=bo(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&!JO.has(r)}const XO=new Set(["table","td","th"]);function QO(e){return XO.has(Ps(e))}const $O=[":popover-open",":modal"];function Nl(e){return $O.some(t=>{try{return e.matches(t)}catch{return!1}})}const KO=["transform","translate","scale","rotate","perspective"],_O=["transform","translate","scale","rotate","perspective","filter"],eR=["paint","layout","strict","content"];function Rp(e){const t=jl(),o=co(e)?bo(e):e;return KO.some(n=>o[n]?o[n]!=="none":!1)||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(o.filter?o.filter!=="none":!1)||_O.some(n=>(o.willChange||"").includes(n))||eR.some(n=>(o.contain||"").includes(n))}function tR(e){let t=Vn(e);for(;Eo(t)&&!as(t);){if(Rp(t))return t;if(Nl(t))return null;t=Vn(t)}return null}function jl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const oR=new Set(["html","body","#document"]);function as(e){return oR.has(Ps(e))}function bo(e){return qt(e).getComputedStyle(e)}function Ll(e){return co(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vn(e){if(Ps(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fm(e)&&e.host||Ho(e);return Fm(t)?t.host:t}function Ug(e){const t=Vn(e);return as(t)?e.ownerDocument?e.ownerDocument.body:e.body:Eo(t)&&qi(t)?t:Ug(t)}function pr(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=Ug(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=qt(r);if(s){const a=Si(i);return t.concat(i,i.visualViewport||[],qi(r)?r:[],a&&o?pr(a):[])}return t.concat(r,pr(r,[],o))}function Si(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jg(e){const t=bo(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=Eo(e),s=r?e.offsetWidth:o,i=r?e.offsetHeight:n,a=Fn(o)!==s||Fn(n)!==i;return a&&(o=s,n=i),{width:o,height:n,$:a}}function Dp(e){return co(e)?e:e.contextElement}function Yr(e){const t=Dp(e);if(!Eo(t))return io(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:s}=Jg(t);let i=(s?Fn(o.width):o.width)/n,a=(s?Fn(o.height):o.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const nR=io(0);function Xg(e){const t=qt(e);return!jl()||!t.visualViewport?nR:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rR(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==qt(e)?!1:t}function dr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),s=Dp(e);let i=io(1);t&&(n?co(n)&&(i=Yr(n)):i=Yr(e));const a=rR(s,o,n)?Xg(s):io(0);let l=(r.left+a.x)/i.x,c=(r.top+a.y)/i.y,u=r.width/i.x,p=r.height/i.y;if(s){const f=qt(s),d=n&&co(n)?qt(n):n;let m=f,h=Si(m);for(;h&&n&&d!==m;){const y=Yr(h),g=h.getBoundingClientRect(),C=bo(h),w=g.left+(h.clientLeft+parseFloat(C.paddingLeft))*y.x,x=g.top+(h.clientTop+parseFloat(C.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,p*=y.y,l+=w,c+=x,m=qt(h),h=Si(m)}}return Ii({width:u,height:p,x:l,y:c})}function zl(e,t){const o=Ll(e).scrollLeft;return t?t.left+o:dr(Ho(e)).left+o}function Qg(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-zl(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function sR(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const s=r==="fixed",i=Ho(n),a=t?Nl(t.floating):!1;if(n===i||a&&s)return o;let l={scrollLeft:0,scrollTop:0},c=io(1);const u=io(0),p=Eo(n);if((p||!p&&!s)&&((Ps(n)!=="body"||qi(i))&&(l=Ll(n)),Eo(n))){const d=dr(n);c=Yr(n),u.x=d.x+n.clientLeft,u.y=d.y+n.clientTop}const f=i&&!p&&!s?Qg(i,l):io(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:o.y*c.y-l.scrollTop*c.y+u.y+f.y}}function iR(e){return Array.from(e.getClientRects())}function aR(e){const t=Ho(e),o=Ll(e),n=e.ownerDocument.body,r=En(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=En(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+zl(e);const a=-o.scrollTop;return bo(n).direction==="rtl"&&(i+=En(t.clientWidth,n.clientWidth)-r),{width:r,height:s,x:i,y:a}}const Vm=25;function lR(e,t){const o=qt(e),n=Ho(e),r=o.visualViewport;let s=n.clientWidth,i=n.clientHeight,a=0,l=0;if(r){s=r.width,i=r.height;const u=jl();(!u||u&&t==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}const c=zl(n);if(c<=0){const u=n.ownerDocument,p=u.body,f=getComputedStyle(p),d=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,m=Math.abs(n.clientWidth-p.clientWidth-d);m<=Vm&&(s-=m)}else c<=Vm&&(s+=c);return{width:s,height:i,x:a,y:l}}const cR=new Set(["absolute","fixed"]);function uR(e,t){const o=dr(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,s=Eo(e)?Yr(e):io(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,l=r*s.x,c=n*s.y;return{width:i,height:a,x:l,y:c}}function Gm(e,t,o){let n;if(t==="viewport")n=lR(e,o);else if(t==="document")n=aR(Ho(e));else if(co(t))n=uR(t,o);else{const r=Xg(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Ii(n)}function $g(e,t){const o=Vn(e);return o===t||!co(o)||as(o)?!1:bo(o).position==="fixed"||$g(o,t)}function pR(e,t){const o=t.get(e);if(o)return o;let n=pr(e,[],!1).filter(a=>co(a)&&Ps(a)!=="body"),r=null;const s=bo(e).position==="fixed";let i=s?Vn(e):e;for(;co(i)&&!as(i);){const a=bo(i),l=Rp(i);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&cR.has(r.position)||qi(i)&&!l&&$g(e,i))?n=n.filter(u=>u!==i):r=a,i=Vn(i)}return t.set(e,n),n}function dR(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const i=[...o==="clippingAncestors"?Nl(t)?[]:pR(t,this._c):[].concat(o),n],a=i[0],l=i.reduce((c,u)=>{const p=Gm(t,u,r);return c.top=En(p.top,c.top),c.right=cr(p.right,c.right),c.bottom=cr(p.bottom,c.bottom),c.left=En(p.left,c.left),c},Gm(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function fR(e){const{width:t,height:o}=Jg(e);return{width:t,height:o}}function mR(e,t,o){const n=Eo(t),r=Ho(t),s=o==="fixed",i=dr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=io(0);function c(){l.x=zl(r)}if(n||!n&&!s)if((Ps(t)!=="body"||qi(r))&&(a=Ll(t)),n){const d=dr(t,!0,s,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else r&&c();s&&!n&&r&&c();const u=r&&!n&&!s?Qg(r,a):io(0),p=i.left+a.scrollLeft-l.x-u.x,f=i.top+a.scrollTop-l.y-u.y;return{x:p,y:f,width:i.width,height:i.height}}function lc(e){return bo(e).position==="static"}function Wm(e,t){if(!Eo(e)||bo(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Ho(e)===o&&(o=o.ownerDocument.body),o}function Kg(e,t){const o=qt(e);if(Nl(e))return o;if(!Eo(e)){let r=Vn(e);for(;r&&!as(r);){if(co(r)&&!lc(r))return r;r=Vn(r)}return o}let n=Wm(e,t);for(;n&&QO(n)&&lc(n);)n=Wm(n,t);return n&&as(n)&&lc(n)&&!Rp(n)?o:n||tR(e)||o}const hR=async function(e){const t=this.getOffsetParent||Kg,o=this.getDimensions,n=await o(e.floating);return{reference:mR(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function yR(e){return bo(e).direction==="rtl"}const gR={convertOffsetParentRelativeRectToViewportRelativeRect:sR,getDocumentElement:Ho,getClippingRect:dR,getOffsetParent:Kg,getElementRects:hR,getClientRects:iR,getDimensions:fR,getScale:Yr,isElement:co,isRTL:yR};function _g(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function bR(e,t){let o=null,n;const r=Ho(e);function s(){var a;clearTimeout(n),(a=o)==null||a.disconnect(),o=null}function i(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=e.getBoundingClientRect(),{left:u,top:p,width:f,height:d}=c;if(a||t(),!f||!d)return;const m=On(p),h=On(r.clientWidth-(u+f)),y=On(r.clientHeight-(p+d)),g=On(u),w={rootMargin:-m+"px "+-h+"px "+-y+"px "+-g+"px",threshold:En(0,cr(1,l))||1};let x=!0;function I(M){const E=M[0].intersectionRatio;if(E!==l){if(!x)return i();E?i(!1,E):n=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!_g(c,e.getBoundingClientRect())&&i(),x=!1}try{o=new IntersectionObserver(I,{...w,root:r.ownerDocument})}catch{o=new IntersectionObserver(I,w)}o.observe(e)}return i(!0),s}function vR(e,t,o,n){n===void 0&&(n={});const{ancestorScroll:r=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Dp(e),u=r||s?[...c?pr(c):[],...pr(t)]:[];u.forEach(g=>{r&&g.addEventListener("scroll",o,{passive:!0}),s&&g.addEventListener("resize",o)});const p=c&&a?bR(c,o):null;let f=-1,d=null;i&&(d=new ResizeObserver(g=>{let[C]=g;C&&C.target===c&&d&&(d.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=d)==null||w.observe(t)})),o()}),c&&!l&&d.observe(c),d.observe(t));let m,h=l?dr(e):null;l&&y();function y(){const g=dr(e);h&&!_g(h,g)&&o(),h=g,m=requestAnimationFrame(y)}return o(),()=>{var g;u.forEach(C=>{r&&C.removeEventListener("scroll",o),s&&C.removeEventListener("resize",o)}),p==null||p(),(g=d)==null||g.disconnect(),d=null,l&&cancelAnimationFrame(m)}}const TR=YO;const PR=UO,xR=qO;const CR=WO;const qm=(e,t,o)=>{const n=new Map,r={platform:gR,...o},s={...r.platform,_c:n};return GO(e,t,{...r,platform:s})};var Ca={exports:{}};/*!
362
362
  Copyright (c) 2018 Jed Watson.
363
363
  Licensed under the MIT License (MIT), see
364
364
  http://jedwatson.github.io/classnames
@@ -38998,11 +38998,11 @@ function sO(e) {
38998
38998
  }, [r]), null;
38999
38999
  }
39000
39000
  const xL = vr(sO);
39001
- const iO = import("./maplibre-gl-C81W05gy.mjs").then((e) => e.m), aO = P.forwardRef(function(t, o) {
39001
+ const iO = import("./maplibre-gl-C5U4LMCN.mjs").then((e) => e.m), aO = P.forwardRef(function(t, o) {
39002
39002
  return Wg(t, o, iO);
39003
39003
  }), lO = qg;
39004
39004
  const cO = rO;
39005
- const uO = import("./mapbox-gl-qI7lAg3L.mjs").then((e) => e.m), CL = P.forwardRef(function(t, o) {
39005
+ const uO = import("./mapbox-gl-BZ4-kz5O.mjs").then((e) => e.m), CL = P.forwardRef(function(t, o) {
39006
39006
  return Wg(t, o, uO);
39007
39007
  }), pO = qg;
39008
39008
  function dO({ locations: e }) {
@@ -39013,7 +39013,7 @@ function dO({ locations: e }) {
39013
39013
  const wL = ({
39014
39014
  longitude: e,
39015
39015
  latitude: t,
39016
- setCoordinate: o,
39016
+ setCoordinates: o,
39017
39017
  locations: n = [],
39018
39018
  token: r,
39019
39019
  navigationControl: s
@@ -1,4 +1,4 @@
1
- import { g as NT } from "./index-LB9DPC5J.mjs";
1
+ import { g as NT } from "./index-CUsY0zwq.mjs";
2
2
  function VT(Au, dm) {
3
3
  for (var To = 0; To < dm.length; To++) {
4
4
  const ms = dm[To];