wacomm 1.77.4 → 1.77.5

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.
@@ -445,7 +445,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
445
445
  * @license MIT
446
446
  * This source code is licensed under the MIT license found in the
447
447
  * LICENSE file in the root directory of this source tree.
448
- */function dR({value:e,setValue:t,disabled:o=!1}){return C.jsx(Vi,{dateAdapter:fl,children:C.jsx(lR,{value:e,minDate:nr.getToday(),disabled:o,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 Og=e=>e.format("MMM D"),wu=e=>e.format("hh:mm A"),xu=e=>e.format("MMM D, hh:mm A"),Rg=(e,t)=>e.month()===t.month()&&e.date()===t.date(),Dg=(e,t)=>Rg(e,t)?`${Og(e)}, ${wu(e)} - ${wu(t)}`:`${xu(e)} - ${xu(t)}`;function pR({startDate:e,endDate:t,className:o=""}){return C.jsx("div",{className:Ie("text-gray-600 text-sm",o),children:Dg(e,t)})}function fR({date:e}){return!e||e.length<10?null:C.jsx("div",{className:"text-gray-600 text-sm",children:e.substring(0,10)})}const mR=A.createContext(null);function hR(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 hn(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(!hn(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)||!hn(e[r],t[r]))return!1;return!0}return!1}function yR(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function a0(e,t){if(!e.getProjection)return;const o=e.getProjection(),n=t.getProjection();hn(o,n)||t.setProjection(o)}function l0(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function c0(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 gR=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function u0(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 gR)i in s&&(r[i]=s[i])}return r||n});return{...e,layers:o}}const d0={version:8,sources:{},layers:[]},p0={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"},Cc={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"},f0={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"},bR=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],vR=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class ds{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[f0[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[p0[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[Cc[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=ds.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=d0}=o,r={...o,...o.initialViewState,accessToken:o.mapboxAccessToken||TR()||null,container:t,style:u0(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,{}),a0(i.transform,this._renderTransform)}),i.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const u in p0)i.on(u,this._onPointerEvent);for(const u in Cc)i.on(u,this._onCameraEvent);for(const u in f0)i.on(u,this._onEvent);this._map=i}recycle(){const o=this.map.getContainer().querySelector("[mapboxgl-children]");o==null||o.remove(),ds.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=yR(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=c0(r,{...l0(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||c0(n.transform,t),c}_updateSettings(t,o){const n=this._map;let r=!1;for(const s of bR)if(s in t&&!hn(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=d0,styleDiffing:r=!0}=t,s={diff:r};return"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(u0(n),s),!0}return!1}_updateStyleComponents(t,o){const n=this._map;let r=!1;return n.isStyleLoaded()&&("light"in t&&n.setLight&&!hn(t.light,o.light)&&(r=!0,n.setLight(t.light)),"fog"in t&&n.setFog&&!hn(t.fog,o.fog)&&(r=!0,n.setFog(t.fog)),"terrain"in t&&n.setTerrain&&!hn(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 vR){const l=(n=t[a])!==null&&n!==void 0?n:!0,c=(r=o[a])!==null&&r!==void 0?r:!0;hn(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 Cc&&(typeof o=="object"&&(o.viewState=l0(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=()=>{a0(this._renderTransform,o),t.transform=o}}}ds.savedMaps=[];function TR(){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 PR=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function wR(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 xR(t))!(n in o)&&!PR.includes(n)&&(o[n]=t[n].bind(t));return o}function xR(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 CR=typeof document<"u"?Y.useLayoutEffect:Y.useEffect,SR=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function IR(e,t){for(const n of SR)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 Zl=A.createContext(null);function Eg(e,t,o){const n=Y.useContext(mR),[r,s]=Y.useState(null),i=Y.useRef(),{current:a}=Y.useRef({mapLib:null,map:null});Y.useEffect(()=>{const u=e.mapLib;let p=!0,m;return Promise.resolve(u||o).then(f=>{if(!p)return;if(!f)throw new Error("Invalid mapLib");const y="Map"in f?f:f.default;if(!y.Map)throw new Error("Invalid mapLib");if(IR(y,e),!y.supported||y.supported(e))e.reuseMaps&&(m=ds.reuse(e,i.current)),m||(m=new ds(y.Map,e,i.current)),a.map=wR(m),a.mapLib=y,s(m),n==null||n.onMapMount(a.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(f=>{const{onError:y}=e;y?y({type:"error",target:null,originalEvent:null,error:f}):console.error(f)}),()=>{p=!1,m&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?m.recycle():m.destroy())}},[]),CR(()=>{r&&r.setProps(e)}),Y.useImperativeHandle(t,()=>a.map,[r]);const l=Y.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return A.createElement("div",{id:e.id,ref:i,style:l},r&&A.createElement(Zl.Provider,{value:a},A.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const MR=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Cr(e,t){if(!e||!t)return;const o=e.style;for(const n in t){const r=t[n];Number.isFinite(r)&&!MR.test(n)?o[n]=`${r}px`:o[n]=r}}function kR(e,t){const{map:o,mapLib:n}=Y.useContext(Zl),r=Y.useRef({props:e});r.current.props=e;const s=Y.useMemo(()=>{let h=!1;A.Children.forEach(e.children,D=>{D&&(h=!0)});const b={...e,element:h?document.createElement("div"):null},P=new n.Marker(b);return P.setLngLat([e.longitude,e.latitude]),P.getElement().addEventListener("click",D=>{var E,O;(O=(E=r.current.props).onClick)===null||O===void 0||O.call(E,{type:"click",target:P,originalEvent:D})}),P.on("dragstart",D=>{var E,O;const j=D;j.lngLat=s.getLngLat(),(O=(E=r.current.props).onDragStart)===null||O===void 0||O.call(E,j)}),P.on("drag",D=>{var E,O;const j=D;j.lngLat=s.getLngLat(),(O=(E=r.current.props).onDrag)===null||O===void 0||O.call(E,j)}),P.on("dragend",D=>{var E,O;const j=D;j.lngLat=s.getLngLat(),(O=(E=r.current.props).onDragEnd)===null||O===void 0||O.call(E,j)}),P},[]);Y.useEffect(()=>(s.addTo(o.getMap()),()=>{s.remove()}),[]);const{longitude:i,latitude:a,offset:l,style:c,draggable:u=!1,popup:p=null,rotation:m=0,rotationAlignment:f="auto",pitchAlignment:y="auto"}=e;return Y.useEffect(()=>{Cr(s.getElement(),c)},[c]),Y.useImperativeHandle(t,()=>s,[]),(s.getLngLat().lng!==i||s.getLngLat().lat!==a)&&s.setLngLat([i,a]),l&&!hR(s.getOffset(),l)&&s.setOffset(l),s.isDraggable()!==u&&s.setDraggable(u),s.getRotation()!==m&&s.setRotation(m),s.getRotationAlignment()!==f&&s.setRotationAlignment(f),s.getPitchAlignment()!==y&&s.setPitchAlignment(y),s.getPopup()!==p&&s.setPopup(p),nn.createPortal(e.children,s.getElement())}const jg=Y.memo(Y.forwardRef(kR));function m0(e){return new Set(e?e.trim().split(/\s+/):[])}function AR(e,t){const{map:o,mapLib:n}=Y.useContext(Zl),r=Y.useMemo(()=>document.createElement("div"),[]),s=Y.useRef({props:e});s.current.props=e;const i=Y.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(Y.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()}},[]),Y.useEffect(()=>{Cr(i.getElement(),e.style)},[e.style]),Y.useImperativeHandle(t,()=>i,[]),i.isOpen()&&((i.getLngLat().lng!==e.longitude||i.getLngLat().lat!==e.latitude)&&i.setLngLat([e.longitude,e.latitude]),e.offset&&!hn(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=m0(i.options.className),l=m0(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 nn.createPortal(e.children,r)}const pB=Y.memo(Y.forwardRef(AR));function $i(e,t,o,n){const r=Y.useContext(Zl),s=Y.useMemo(()=>e(r),[]);return Y.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 OR(e){const t=$i(({mapLib:o})=>new o.AttributionControl(e),{position:e.position});return Y.useEffect(()=>{Cr(t._container,e.style)},[e.style]),null}const fB=Y.memo(OR);function RR(e){const t=$i(({mapLib:o})=>new o.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return Y.useEffect(()=>{Cr(t._controlContainer,e.style)},[e.style]),null}const mB=Y.memo(RR);function DR(e,t){const o=Y.useRef({props:e}),n=$i(({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,Y.useImperativeHandle(t,()=>n,[]),Y.useEffect(()=>{Cr(n._container,e.style)},[e.style]),null}const hB=Y.memo(Y.forwardRef(DR));function ER(e){const t=$i(({mapLib:o})=>new o.NavigationControl(e),{position:e.position});return Y.useEffect(()=>{Cr(t._container,e.style)},[e.style]),null}const jR=Y.memo(ER);function LR(e){const t=$i(({mapLib:s})=>new s.ScaleControl(e),{position:e.position}),o=Y.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),Y.useEffect(()=>{Cr(t._container,r)},[r]),null}const yB=Y.memo(LR);const NR=Promise.resolve().then(()=>require("./maplibre-gl-DwzBPl76.js")).then(e=>e.maplibreGl),zR=A.forwardRef(function(t,o){return Eg(t,o,NR)}),BR=jg;const FR=jR;const VR=Promise.resolve().then(()=>require("./mapbox-gl-C1kxRgoH.js")).then(e=>e.mapboxGl),gB=A.forwardRef(function(t,o){return Eg(t,o,VR)}),GR=jg;function WR({locations:e}){if(Ih.IsZeroArray(e))return null;const t=({id:o,longitude:n,latitude:r,icon:s})=>C.jsx("li",{children:C.jsx(GR,{longitude:n,latitude:r,children:s})},o);return C.jsx(bs,{items:e,itemRenderer:t})}const HR=({longitude:e,latitude:t,zoom:o=10,setCoordinates:n,locations:r=[],token:s,navigationControl:i})=>{const a=Y.useRef(null),[l,c]=Y.useState({longitude:e,latitude:t,zoom:o});return Y.useEffect(()=>{a.current&&a.current.flyTo({center:[e,t],zoom:o,duration:3e3,essential:!0})},[t,e,o]),C.jsxs(zR,{ref:a,...l,mapStyle:`https://tiles.locationiq.com/v3/streets/vector.json?key=${s}`,style:{width:"100%",height:"100%"},onMove:u=>c(u.viewState),onClick:u=>{const{lng:p,lat:m}=u.lngLat;n&&n({lat:m,lng:p})},children:[C.jsx(BR,{longitude:e,latitude:t,children:"📌"}),C.jsx(WR,{locations:r}),C.jsx(FR,{position:i.position})]})};var Lg=(e=>(e.TR="top-right",e))(Lg||{});const mr=Math.min,Nn=Math.max,Wn=Math.round,En=Math.floor,lo=e=>({x:e,y:e}),qR={left:"right",right:"left",bottom:"top",top:"bottom"};function Cu(e,t,o){return Nn(e,mr(t,o))}function Xi(e,t){return typeof e=="function"?e(t):e}function hr(e){return e.split("-")[0]}function Qi(e){return e.split("-")[1]}function Ng(e){return e==="x"?"y":"x"}function sp(e){return e==="y"?"height":"width"}function jn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ip(e){return Ng(jn(e))}function ZR(e,t,o){o===void 0&&(o=!1);const n=Qi(e),r=ip(e),s=sp(r);let i=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=tl(i)),[i,tl(i)]}function YR(e){const t=tl(e);return[Su(e),t,Su(t)]}function Su(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const h0=["left","right"],y0=["right","left"],UR=["top","bottom"],JR=["bottom","top"];function $R(e,t,o){switch(e){case"top":case"bottom":return o?t?y0:h0:t?h0:y0;case"left":case"right":return t?UR:JR;default:return[]}}function XR(e,t,o,n){const r=Qi(e);let s=$R(hr(e),o==="start",n);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Su)))),s}function tl(e){const t=hr(e);return qR[t]+e.slice(t.length)}function QR(e){return{top:0,right:0,bottom:0,left:0,...e}}function zg(e){return typeof e!="number"?QR(e):{top:e,right:e,bottom:e,left:e}}function ji(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 g0(e,t,o){let{reference:n,floating:r}=e;const s=jn(t),i=ip(t),a=sp(i),l=hr(t),c=s==="y",u=n.x+n.width/2-r.width/2,p=n.y+n.height/2-r.height/2,m=n[a]/2-r[a]/2;let f;switch(l){case"top":f={x:u,y:n.y-r.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:p};break;case"left":f={x:n.x-r.width,y:p};break;default:f={x:n.x,y:n.y}}switch(Qi(t)){case"start":f[i]-=m*(o&&c?-1:1);break;case"end":f[i]+=m*(o&&c?-1:1);break}return f}async function KR(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:m=!1,padding:f=0}=Xi(t,e),y=zg(f),b=a[m?p==="floating"?"reference":"floating":p],P=ji(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(b)))==null||o?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),D=p==="floating"?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),O=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},j=ji(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:D,offsetParent:E,strategy:l}):D);return{top:(P.top-j.top+y.top)/O.y,bottom:(j.bottom-P.bottom+y.bottom)/O.y,left:(P.left-j.left+y.left)/O.x,right:(j.right-P.right+y.right)/O.x}}const _R=50,eD=async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:i}=o,a=i.detectOverflow?i:{...i,detectOverflow:KR},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}=g0(c,n,l),m=n,f=0;const y={};for(let h=0;h<s.length;h++){const b=s[h];if(!b)continue;const{name:P,fn:D}=b,{x:E,y:O,data:j,reset:R}=await D({x:u,y:p,initialPlacement:n,placement:m,strategy:r,middlewareData:y,rects:c,platform:a,elements:{reference:e,floating:t}});u=E??u,p=O??p,y[P]={...y[P],...j},R&&f<_R&&(f++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(c=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):R.rects),{x:u,y:p}=g0(c,m,l)),h=-1)}return{x:u,y:p,placement:m,strategy:r,middlewareData:y}},tD=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}=Xi(e,t)||{};if(c==null)return{};const p=zg(u),m={x:o,y:n},f=ip(r),y=sp(f),h=await i.getDimensions(c),b=f==="y",P=b?"top":"left",D=b?"bottom":"right",E=b?"clientHeight":"clientWidth",O=s.reference[y]+s.reference[f]-m[f]-s.floating[y],j=m[f]-s.reference[f],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let M=R?R[E]:0;(!M||!await(i.isElement==null?void 0:i.isElement(R)))&&(M=a.floating[E]||s.floating[y]);const L=O/2-j/2,z=M/2-h[y]/2-1,k=mr(p[P],z),S=mr(p[D],z),g=k,B=M-h[y]-S,T=M/2-h[y]/2+L,v=Cu(g,T,B),x=!l.arrow&&Qi(r)!=null&&T!==v&&s.reference[y]/2-(T<g?k:S)-h[y]/2<0,w=x?T<g?T-g:T-B:0;return{[f]:m[f]+w,data:{[f]:v,centerOffset:T-v-w,...x&&{alignmentOffset:w}},reset:x}}});const oD=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:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:h=!0,...b}=Xi(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const P=hr(r),D=jn(a),E=hr(a)===a,O=await(l.isRTL==null?void 0:l.isRTL(c.floating)),j=m||(E||!h?[tl(a)]:YR(a)),R=y!=="none";!m&&R&&j.push(...XR(a,h,y,O));const M=[a,...j],L=await l.detectOverflow(t,b),z=[];let k=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&z.push(L[P]),p){const T=ZR(r,i,O);z.push(L[T[0]],L[T[1]])}if(k=[...k,{placement:r,overflows:z}],!z.every(T=>T<=0)){var S,g;const T=(((S=s.flip)==null?void 0:S.index)||0)+1,v=M[T];if(v&&(!(p==="alignment"?D!==jn(v):!1)||k.every(d=>jn(d.placement)===D?d.overflows[0]>0:!0)))return{data:{index:T,overflows:k},reset:{placement:v}};let x=(g=k.filter(w=>w.overflows[0]<=0).sort((w,d)=>w.overflows[1]-d.overflows[1])[0])==null?void 0:g.placement;if(!x)switch(f){case"bestFit":{var B;const w=(B=k.filter(d=>{if(R){const F=jn(d.placement);return F===D||F==="y"}return!0}).map(d=>[d.placement,d.overflows.filter(F=>F>0).reduce((F,V)=>F+V,0)]).sort((d,F)=>d[1]-F[1])[0])==null?void 0:B[0];w&&(x=w);break}case"initialPlacement":x=a;break}if(r!==x)return{reset:{placement:x}}}return{}}}};const nD=new Set(["left","top"]);async function rD(e,t){const{placement:o,platform:n,elements:r}=e,s=await(n.isRTL==null?void 0:n.isRTL(r.floating)),i=hr(o),a=Qi(o),l=jn(o)==="y",c=nD.has(i)?-1:1,u=s&&l?-1:1,p=Xi(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof y=="number"&&(f=a==="end"?y*-1:y),l?{x:f*u,y:m*c}:{x:m*c,y:f*u}}const sD=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 rD(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}}}}},iD=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:P=>{let{x:D,y:E}=P;return{x:D,y:E}}},...c}=Xi(e,t),u={x:o,y:n},p=await s.detectOverflow(t,c),m=jn(hr(r)),f=Ng(m);let y=u[f],h=u[m];if(i){const P=f==="y"?"top":"left",D=f==="y"?"bottom":"right",E=y+p[P],O=y-p[D];y=Cu(E,y,O)}if(a){const P=m==="y"?"top":"left",D=m==="y"?"bottom":"right",E=h+p[P],O=h-p[D];h=Cu(E,h,O)}const b=l.fn({...t,[f]:y,[m]:h});return{...b,data:{x:b.x-o,y:b.y-n,enabled:{[f]:i,[m]:a}}}}}};function Yl(){return typeof window<"u"}function Is(e){return Bg(e)?(e.nodeName||"").toLowerCase():"#document"}function qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Uo(e){var t;return(t=(Bg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Bg(e){return Yl()?e instanceof Node||e instanceof qt(e).Node:!1}function uo(e){return Yl()?e instanceof Element||e instanceof qt(e).Element:!1}function Jo(e){return Yl()?e instanceof HTMLElement||e instanceof qt(e).HTMLElement:!1}function b0(e){return!Yl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qt(e).ShadowRoot}function Ki(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=To(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&r!=="inline"&&r!=="contents"}function aD(e){return/^(table|td|th)$/.test(Is(e))}function Ul(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const lD=/transform|translate|scale|rotate|perspective|filter/,cD=/paint|layout|strict|content/,er=e=>!!e&&e!=="none";let Sc;function ap(e){const t=uo(e)?To(e):e;return er(t.transform)||er(t.translate)||er(t.scale)||er(t.rotate)||er(t.perspective)||!Jl()&&(er(t.backdropFilter)||er(t.filter))||lD.test(t.willChange||"")||cD.test(t.contain||"")}function uD(e){let t=Hn(e);for(;Jo(t)&&!ps(t);){if(ap(t))return t;if(Ul(t))return null;t=Hn(t)}return null}function Jl(){return Sc==null&&(Sc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Sc}function ps(e){return/^(html|body|#document)$/.test(Is(e))}function To(e){return qt(e).getComputedStyle(e)}function $l(e){return uo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Hn(e){if(Is(e)==="html")return e;const t=e.assignedSlot||e.parentNode||b0(e)&&e.host||Uo(e);return b0(t)?t.host:t}function Fg(e){const t=Hn(e);return ps(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jo(t)&&Ki(t)?t:Fg(t)}function yr(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=Fg(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=qt(r);if(s){const a=Li(i);return t.concat(i,i.visualViewport||[],Ki(r)?r:[],a&&o?yr(a):[])}else return t.concat(r,yr(r,[],o))}function Li(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vg(e){const t=To(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=Jo(e),s=r?e.offsetWidth:o,i=r?e.offsetHeight:n,a=Wn(o)!==s||Wn(n)!==i;return a&&(o=s,n=i),{width:o,height:n,$:a}}function lp(e){return uo(e)?e:e.contextElement}function Qr(e){const t=lp(e);if(!Jo(t))return lo(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:s}=Vg(t);let i=(s?Wn(o.width):o.width)/n,a=(s?Wn(o.height):o.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const dD=lo(0);function Gg(e){const t=qt(e);return!Jl()||!t.visualViewport?dD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pD(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==qt(e)?!1:t}function gr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),s=lp(e);let i=lo(1);t&&(n?uo(n)&&(i=Qr(n)):i=Qr(e));const a=pD(s,o,n)?Gg(s):lo(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 m=qt(s),f=n&&uo(n)?qt(n):n;let y=m,h=Li(y);for(;h&&n&&f!==y;){const b=Qr(h),P=h.getBoundingClientRect(),D=To(h),E=P.left+(h.clientLeft+parseFloat(D.paddingLeft))*b.x,O=P.top+(h.clientTop+parseFloat(D.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,p*=b.y,l+=E,c+=O,y=qt(h),h=Li(y)}}return ji({width:u,height:p,x:l,y:c})}function Xl(e,t){const o=$l(e).scrollLeft;return t?t.left+o:gr(Uo(e)).left+o}function Wg(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Xl(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function fD(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const s=r==="fixed",i=Uo(n),a=t?Ul(t.floating):!1;if(n===i||a&&s)return o;let l={scrollLeft:0,scrollTop:0},c=lo(1);const u=lo(0),p=Jo(n);if((p||!p&&!s)&&((Is(n)!=="body"||Ki(i))&&(l=$l(n)),p)){const f=gr(n);c=Qr(n),u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}const m=i&&!p&&!s?Wg(i,l):lo(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+u.x+m.x,y:o.y*c.y-l.scrollTop*c.y+u.y+m.y}}function mD(e){return Array.from(e.getClientRects())}function hD(e){const t=Uo(e),o=$l(e),n=e.ownerDocument.body,r=Nn(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Nn(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+Xl(e);const a=-o.scrollTop;return To(n).direction==="rtl"&&(i+=Nn(t.clientWidth,n.clientWidth)-r),{width:r,height:s,x:i,y:a}}const v0=25;function yD(e,t){const o=qt(e),n=Uo(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=Xl(n);if(c<=0){const u=n.ownerDocument,p=u.body,m=getComputedStyle(p),f=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,y=Math.abs(n.clientWidth-p.clientWidth-f);y<=v0&&(s-=y)}else c<=v0&&(s+=c);return{width:s,height:i,x:a,y:l}}function gD(e,t){const o=gr(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,s=Jo(e)?Qr(e):lo(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 T0(e,t,o){let n;if(t==="viewport")n=yD(e,o);else if(t==="document")n=hD(Uo(e));else if(uo(t))n=gD(t,o);else{const r=Gg(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ji(n)}function Hg(e,t){const o=Hn(e);return o===t||!uo(o)||ps(o)?!1:To(o).position==="fixed"||Hg(o,t)}function bD(e,t){const o=t.get(e);if(o)return o;let n=yr(e,[],!1).filter(a=>uo(a)&&Is(a)!=="body"),r=null;const s=To(e).position==="fixed";let i=s?Hn(e):e;for(;uo(i)&&!ps(i);){const a=To(i),l=ap(i);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Ki(i)&&!l&&Hg(e,i))?n=n.filter(u=>u!==i):r=a,i=Hn(i)}return t.set(e,n),n}function vD(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const i=[...o==="clippingAncestors"?Ul(t)?[]:bD(t,this._c):[].concat(o),n],a=T0(t,i[0],r);let l=a.top,c=a.right,u=a.bottom,p=a.left;for(let m=1;m<i.length;m++){const f=T0(t,i[m],r);l=Nn(f.top,l),c=mr(f.right,c),u=mr(f.bottom,u),p=Nn(f.left,p)}return{width:c-p,height:u-l,x:p,y:l}}function TD(e){const{width:t,height:o}=Vg(e);return{width:t,height:o}}function PD(e,t,o){const n=Jo(t),r=Uo(t),s=o==="fixed",i=gr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=lo(0);function c(){l.x=Xl(r)}if(n||!n&&!s)if((Is(t)!=="body"||Ki(r))&&(a=$l(t)),n){const f=gr(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else r&&c();s&&!n&&r&&c();const u=r&&!n&&!s?Wg(r,a):lo(0),p=i.left+a.scrollLeft-l.x-u.x,m=i.top+a.scrollTop-l.y-u.y;return{x:p,y:m,width:i.width,height:i.height}}function Ic(e){return To(e).position==="static"}function P0(e,t){if(!Jo(e)||To(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Uo(e)===o&&(o=o.ownerDocument.body),o}function qg(e,t){const o=qt(e);if(Ul(e))return o;if(!Jo(e)){let r=Hn(e);for(;r&&!ps(r);){if(uo(r)&&!Ic(r))return r;r=Hn(r)}return o}let n=P0(e,t);for(;n&&aD(n)&&Ic(n);)n=P0(n,t);return n&&ps(n)&&Ic(n)&&!ap(n)?o:n||uD(e)||o}const wD=async function(e){const t=this.getOffsetParent||qg,o=this.getDimensions,n=await o(e.floating);return{reference:PD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function xD(e){return To(e).direction==="rtl"}const CD={convertOffsetParentRelativeRectToViewportRelativeRect:fD,getDocumentElement:Uo,getClippingRect:vD,getOffsetParent:qg,getElementRects:wD,getClientRects:mD,getDimensions:TD,getScale:Qr,isElement:uo,isRTL:xD};function Zg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function SD(e,t){let o=null,n;const r=Uo(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:m,height:f}=c;if(a||t(),!m||!f)return;const y=En(p),h=En(r.clientWidth-(u+m)),b=En(r.clientHeight-(p+f)),P=En(u),E={rootMargin:-y+"px "+-h+"px "+-b+"px "+-P+"px",threshold:Nn(0,mr(1,l))||1};let O=!0;function j(R){const M=R[0].intersectionRatio;if(M!==l){if(!O)return i();M?i(!1,M):n=setTimeout(()=>{i(!1,1e-7)},1e3)}M===1&&!Zg(c,e.getBoundingClientRect())&&i(),O=!1}try{o=new IntersectionObserver(j,{...E,root:r.ownerDocument})}catch{o=new IntersectionObserver(j,E)}o.observe(e)}return i(!0),s}function ID(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=lp(e),u=r||s?[...c?yr(c):[],...t?yr(t):[]]:[];u.forEach(P=>{r&&P.addEventListener("scroll",o,{passive:!0}),s&&P.addEventListener("resize",o)});const p=c&&a?SD(c,o):null;let m=-1,f=null;i&&(f=new ResizeObserver(P=>{let[D]=P;D&&D.target===c&&f&&t&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=f)==null||E.observe(t)})),o()}),c&&!l&&f.observe(c),t&&f.observe(t));let y,h=l?gr(e):null;l&&b();function b(){const P=gr(e);h&&!Zg(h,P)&&o(),h=P,y=requestAnimationFrame(b)}return o(),()=>{var P;u.forEach(D=>{r&&D.removeEventListener("scroll",o),s&&D.removeEventListener("resize",o)}),p==null||p(),(P=f)==null||P.disconnect(),f=null,l&&cancelAnimationFrame(y)}}const MD=sD;const kD=iD,AD=oD;const OD=tD;const w0=(e,t,o)=>{const n=new Map,r={platform:CD,...o},s={...r.platform,_c:n};return eD(e,t,{...r,platform:s})};var La={exports:{}};/*!
448
+ */function dR({value:e,setValue:t,disabled:o=!1}){return C.jsx(Vi,{dateAdapter:fl,children:C.jsx(lR,{value:e,minDate:nr.getToday(),disabled:o,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 Og=e=>e.format("MMM D"),wu=e=>e.format("hh:mm A"),xu=e=>e.format("MMM D, hh:mm A"),Rg=(e,t)=>e.month()===t.month()&&e.date()===t.date(),Dg=(e,t)=>Rg(e,t)?`${Og(e)}, ${wu(e)} - ${wu(t)}`:`${xu(e)} - ${xu(t)}`;function pR({startDate:e,endDate:t,className:o=""}){return C.jsx("div",{className:Ie("text-gray-600 text-sm",o),children:Dg(e,t)})}function fR({date:e}){return!e||e.length<10?null:C.jsx("div",{className:"text-gray-600 text-sm",children:e.substring(0,10)})}const mR=A.createContext(null);function hR(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 hn(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(!hn(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)||!hn(e[r],t[r]))return!1;return!0}return!1}function yR(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function a0(e,t){if(!e.getProjection)return;const o=e.getProjection(),n=t.getProjection();hn(o,n)||t.setProjection(o)}function l0(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function c0(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 gR=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function u0(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 gR)i in s&&(r[i]=s[i])}return r||n});return{...e,layers:o}}const d0={version:8,sources:{},layers:[]},p0={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"},Cc={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"},f0={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"},bR=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],vR=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class ds{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[f0[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[p0[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[Cc[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=ds.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=d0}=o,r={...o,...o.initialViewState,accessToken:o.mapboxAccessToken||TR()||null,container:t,style:u0(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,{}),a0(i.transform,this._renderTransform)}),i.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const u in p0)i.on(u,this._onPointerEvent);for(const u in Cc)i.on(u,this._onCameraEvent);for(const u in f0)i.on(u,this._onEvent);this._map=i}recycle(){const o=this.map.getContainer().querySelector("[mapboxgl-children]");o==null||o.remove(),ds.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=yR(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=c0(r,{...l0(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||c0(n.transform,t),c}_updateSettings(t,o){const n=this._map;let r=!1;for(const s of bR)if(s in t&&!hn(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=d0,styleDiffing:r=!0}=t,s={diff:r};return"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(u0(n),s),!0}return!1}_updateStyleComponents(t,o){const n=this._map;let r=!1;return n.isStyleLoaded()&&("light"in t&&n.setLight&&!hn(t.light,o.light)&&(r=!0,n.setLight(t.light)),"fog"in t&&n.setFog&&!hn(t.fog,o.fog)&&(r=!0,n.setFog(t.fog)),"terrain"in t&&n.setTerrain&&!hn(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 vR){const l=(n=t[a])!==null&&n!==void 0?n:!0,c=(r=o[a])!==null&&r!==void 0?r:!0;hn(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 Cc&&(typeof o=="object"&&(o.viewState=l0(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=()=>{a0(this._renderTransform,o),t.transform=o}}}ds.savedMaps=[];function TR(){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 PR=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function wR(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 xR(t))!(n in o)&&!PR.includes(n)&&(o[n]=t[n].bind(t));return o}function xR(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 CR=typeof document<"u"?Y.useLayoutEffect:Y.useEffect,SR=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function IR(e,t){for(const n of SR)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 Zl=A.createContext(null);function Eg(e,t,o){const n=Y.useContext(mR),[r,s]=Y.useState(null),i=Y.useRef(),{current:a}=Y.useRef({mapLib:null,map:null});Y.useEffect(()=>{const u=e.mapLib;let p=!0,m;return Promise.resolve(u||o).then(f=>{if(!p)return;if(!f)throw new Error("Invalid mapLib");const y="Map"in f?f:f.default;if(!y.Map)throw new Error("Invalid mapLib");if(IR(y,e),!y.supported||y.supported(e))e.reuseMaps&&(m=ds.reuse(e,i.current)),m||(m=new ds(y.Map,e,i.current)),a.map=wR(m),a.mapLib=y,s(m),n==null||n.onMapMount(a.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(f=>{const{onError:y}=e;y?y({type:"error",target:null,originalEvent:null,error:f}):console.error(f)}),()=>{p=!1,m&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?m.recycle():m.destroy())}},[]),CR(()=>{r&&r.setProps(e)}),Y.useImperativeHandle(t,()=>a.map,[r]);const l=Y.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return A.createElement("div",{id:e.id,ref:i,style:l},r&&A.createElement(Zl.Provider,{value:a},A.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const MR=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Cr(e,t){if(!e||!t)return;const o=e.style;for(const n in t){const r=t[n];Number.isFinite(r)&&!MR.test(n)?o[n]=`${r}px`:o[n]=r}}function kR(e,t){const{map:o,mapLib:n}=Y.useContext(Zl),r=Y.useRef({props:e});r.current.props=e;const s=Y.useMemo(()=>{let h=!1;A.Children.forEach(e.children,D=>{D&&(h=!0)});const b={...e,element:h?document.createElement("div"):null},P=new n.Marker(b);return P.setLngLat([e.longitude,e.latitude]),P.getElement().addEventListener("click",D=>{var E,O;(O=(E=r.current.props).onClick)===null||O===void 0||O.call(E,{type:"click",target:P,originalEvent:D})}),P.on("dragstart",D=>{var E,O;const j=D;j.lngLat=s.getLngLat(),(O=(E=r.current.props).onDragStart)===null||O===void 0||O.call(E,j)}),P.on("drag",D=>{var E,O;const j=D;j.lngLat=s.getLngLat(),(O=(E=r.current.props).onDrag)===null||O===void 0||O.call(E,j)}),P.on("dragend",D=>{var E,O;const j=D;j.lngLat=s.getLngLat(),(O=(E=r.current.props).onDragEnd)===null||O===void 0||O.call(E,j)}),P},[]);Y.useEffect(()=>(s.addTo(o.getMap()),()=>{s.remove()}),[]);const{longitude:i,latitude:a,offset:l,style:c,draggable:u=!1,popup:p=null,rotation:m=0,rotationAlignment:f="auto",pitchAlignment:y="auto"}=e;return Y.useEffect(()=>{Cr(s.getElement(),c)},[c]),Y.useImperativeHandle(t,()=>s,[]),(s.getLngLat().lng!==i||s.getLngLat().lat!==a)&&s.setLngLat([i,a]),l&&!hR(s.getOffset(),l)&&s.setOffset(l),s.isDraggable()!==u&&s.setDraggable(u),s.getRotation()!==m&&s.setRotation(m),s.getRotationAlignment()!==f&&s.setRotationAlignment(f),s.getPitchAlignment()!==y&&s.setPitchAlignment(y),s.getPopup()!==p&&s.setPopup(p),nn.createPortal(e.children,s.getElement())}const jg=Y.memo(Y.forwardRef(kR));function m0(e){return new Set(e?e.trim().split(/\s+/):[])}function AR(e,t){const{map:o,mapLib:n}=Y.useContext(Zl),r=Y.useMemo(()=>document.createElement("div"),[]),s=Y.useRef({props:e});s.current.props=e;const i=Y.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(Y.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()}},[]),Y.useEffect(()=>{Cr(i.getElement(),e.style)},[e.style]),Y.useImperativeHandle(t,()=>i,[]),i.isOpen()&&((i.getLngLat().lng!==e.longitude||i.getLngLat().lat!==e.latitude)&&i.setLngLat([e.longitude,e.latitude]),e.offset&&!hn(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=m0(i.options.className),l=m0(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 nn.createPortal(e.children,r)}const pB=Y.memo(Y.forwardRef(AR));function $i(e,t,o,n){const r=Y.useContext(Zl),s=Y.useMemo(()=>e(r),[]);return Y.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 OR(e){const t=$i(({mapLib:o})=>new o.AttributionControl(e),{position:e.position});return Y.useEffect(()=>{Cr(t._container,e.style)},[e.style]),null}const fB=Y.memo(OR);function RR(e){const t=$i(({mapLib:o})=>new o.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return Y.useEffect(()=>{Cr(t._controlContainer,e.style)},[e.style]),null}const mB=Y.memo(RR);function DR(e,t){const o=Y.useRef({props:e}),n=$i(({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,Y.useImperativeHandle(t,()=>n,[]),Y.useEffect(()=>{Cr(n._container,e.style)},[e.style]),null}const hB=Y.memo(Y.forwardRef(DR));function ER(e){const t=$i(({mapLib:o})=>new o.NavigationControl(e),{position:e.position});return Y.useEffect(()=>{Cr(t._container,e.style)},[e.style]),null}const jR=Y.memo(ER);function LR(e){const t=$i(({mapLib:s})=>new s.ScaleControl(e),{position:e.position}),o=Y.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),Y.useEffect(()=>{Cr(t._container,r)},[r]),null}const yB=Y.memo(LR);const NR=Promise.resolve().then(()=>require("./maplibre-gl-ByH-BjDZ.js")).then(e=>e.maplibreGl),zR=A.forwardRef(function(t,o){return Eg(t,o,NR)}),BR=jg;const FR=jR;const VR=Promise.resolve().then(()=>require("./mapbox-gl-Bruar2Cl.js")).then(e=>e.mapboxGl),gB=A.forwardRef(function(t,o){return Eg(t,o,VR)}),GR=jg;function WR({locations:e}){if(Ih.IsZeroArray(e))return null;const t=({id:o,longitude:n,latitude:r,icon:s})=>C.jsx("li",{children:C.jsx(GR,{longitude:n,latitude:r,children:s})},o);return C.jsx(bs,{items:e,itemRenderer:t})}const HR=({longitude:e,latitude:t,zoom:o=10,setCoordinates:n,locations:r=[],token:s,navigationControl:i})=>{const a=Y.useRef(null),[l,c]=Y.useState({longitude:e,latitude:t,zoom:o});return Y.useEffect(()=>{a.current&&a.current.flyTo({center:[e,t],duration:3e3,essential:!0})},[t,e]),C.jsxs(zR,{ref:a,...l,mapStyle:`https://tiles.locationiq.com/v3/streets/vector.json?key=${s}`,style:{width:"100%",height:"100%"},onMove:u=>c(u.viewState),onClick:u=>{const{lng:p,lat:m}=u.lngLat;n&&n({lat:m,lng:p})},children:[C.jsx(BR,{longitude:e,latitude:t,children:"📌"}),C.jsx(WR,{locations:r}),C.jsx(FR,{position:i.position})]})};var Lg=(e=>(e.TR="top-right",e))(Lg||{});const mr=Math.min,Nn=Math.max,Wn=Math.round,En=Math.floor,lo=e=>({x:e,y:e}),qR={left:"right",right:"left",bottom:"top",top:"bottom"};function Cu(e,t,o){return Nn(e,mr(t,o))}function Xi(e,t){return typeof e=="function"?e(t):e}function hr(e){return e.split("-")[0]}function Qi(e){return e.split("-")[1]}function Ng(e){return e==="x"?"y":"x"}function sp(e){return e==="y"?"height":"width"}function jn(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ip(e){return Ng(jn(e))}function ZR(e,t,o){o===void 0&&(o=!1);const n=Qi(e),r=ip(e),s=sp(r);let i=r==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=tl(i)),[i,tl(i)]}function YR(e){const t=tl(e);return[Su(e),t,Su(t)]}function Su(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const h0=["left","right"],y0=["right","left"],UR=["top","bottom"],JR=["bottom","top"];function $R(e,t,o){switch(e){case"top":case"bottom":return o?t?y0:h0:t?h0:y0;case"left":case"right":return t?UR:JR;default:return[]}}function XR(e,t,o,n){const r=Qi(e);let s=$R(hr(e),o==="start",n);return r&&(s=s.map(i=>i+"-"+r),t&&(s=s.concat(s.map(Su)))),s}function tl(e){const t=hr(e);return qR[t]+e.slice(t.length)}function QR(e){return{top:0,right:0,bottom:0,left:0,...e}}function zg(e){return typeof e!="number"?QR(e):{top:e,right:e,bottom:e,left:e}}function ji(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 g0(e,t,o){let{reference:n,floating:r}=e;const s=jn(t),i=ip(t),a=sp(i),l=hr(t),c=s==="y",u=n.x+n.width/2-r.width/2,p=n.y+n.height/2-r.height/2,m=n[a]/2-r[a]/2;let f;switch(l){case"top":f={x:u,y:n.y-r.height};break;case"bottom":f={x:u,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:p};break;case"left":f={x:n.x-r.width,y:p};break;default:f={x:n.x,y:n.y}}switch(Qi(t)){case"start":f[i]-=m*(o&&c?-1:1);break;case"end":f[i]+=m*(o&&c?-1:1);break}return f}async function KR(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:m=!1,padding:f=0}=Xi(t,e),y=zg(f),b=a[m?p==="floating"?"reference":"floating":p],P=ji(await s.getClippingRect({element:(o=await(s.isElement==null?void 0:s.isElement(b)))==null||o?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),D=p==="floating"?{x:n,y:r,width:i.floating.width,height:i.floating.height}:i.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),O=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},j=ji(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:D,offsetParent:E,strategy:l}):D);return{top:(P.top-j.top+y.top)/O.y,bottom:(j.bottom-P.bottom+y.bottom)/O.y,left:(P.left-j.left+y.left)/O.x,right:(j.right-P.right+y.right)/O.x}}const _R=50,eD=async(e,t,o)=>{const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:i}=o,a=i.detectOverflow?i:{...i,detectOverflow:KR},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}=g0(c,n,l),m=n,f=0;const y={};for(let h=0;h<s.length;h++){const b=s[h];if(!b)continue;const{name:P,fn:D}=b,{x:E,y:O,data:j,reset:R}=await D({x:u,y:p,initialPlacement:n,placement:m,strategy:r,middlewareData:y,rects:c,platform:a,elements:{reference:e,floating:t}});u=E??u,p=O??p,y[P]={...y[P],...j},R&&f<_R&&(f++,typeof R=="object"&&(R.placement&&(m=R.placement),R.rects&&(c=R.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:r}):R.rects),{x:u,y:p}=g0(c,m,l)),h=-1)}return{x:u,y:p,placement:m,strategy:r,middlewareData:y}},tD=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}=Xi(e,t)||{};if(c==null)return{};const p=zg(u),m={x:o,y:n},f=ip(r),y=sp(f),h=await i.getDimensions(c),b=f==="y",P=b?"top":"left",D=b?"bottom":"right",E=b?"clientHeight":"clientWidth",O=s.reference[y]+s.reference[f]-m[f]-s.floating[y],j=m[f]-s.reference[f],R=await(i.getOffsetParent==null?void 0:i.getOffsetParent(c));let M=R?R[E]:0;(!M||!await(i.isElement==null?void 0:i.isElement(R)))&&(M=a.floating[E]||s.floating[y]);const L=O/2-j/2,z=M/2-h[y]/2-1,k=mr(p[P],z),S=mr(p[D],z),g=k,B=M-h[y]-S,T=M/2-h[y]/2+L,v=Cu(g,T,B),x=!l.arrow&&Qi(r)!=null&&T!==v&&s.reference[y]/2-(T<g?k:S)-h[y]/2<0,w=x?T<g?T-g:T-B:0;return{[f]:m[f]+w,data:{[f]:v,centerOffset:T-v-w,...x&&{alignmentOffset:w}},reset:x}}});const oD=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:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:h=!0,...b}=Xi(e,t);if((o=s.arrow)!=null&&o.alignmentOffset)return{};const P=hr(r),D=jn(a),E=hr(a)===a,O=await(l.isRTL==null?void 0:l.isRTL(c.floating)),j=m||(E||!h?[tl(a)]:YR(a)),R=y!=="none";!m&&R&&j.push(...XR(a,h,y,O));const M=[a,...j],L=await l.detectOverflow(t,b),z=[];let k=((n=s.flip)==null?void 0:n.overflows)||[];if(u&&z.push(L[P]),p){const T=ZR(r,i,O);z.push(L[T[0]],L[T[1]])}if(k=[...k,{placement:r,overflows:z}],!z.every(T=>T<=0)){var S,g;const T=(((S=s.flip)==null?void 0:S.index)||0)+1,v=M[T];if(v&&(!(p==="alignment"?D!==jn(v):!1)||k.every(d=>jn(d.placement)===D?d.overflows[0]>0:!0)))return{data:{index:T,overflows:k},reset:{placement:v}};let x=(g=k.filter(w=>w.overflows[0]<=0).sort((w,d)=>w.overflows[1]-d.overflows[1])[0])==null?void 0:g.placement;if(!x)switch(f){case"bestFit":{var B;const w=(B=k.filter(d=>{if(R){const F=jn(d.placement);return F===D||F==="y"}return!0}).map(d=>[d.placement,d.overflows.filter(F=>F>0).reduce((F,V)=>F+V,0)]).sort((d,F)=>d[1]-F[1])[0])==null?void 0:B[0];w&&(x=w);break}case"initialPlacement":x=a;break}if(r!==x)return{reset:{placement:x}}}return{}}}};const nD=new Set(["left","top"]);async function rD(e,t){const{placement:o,platform:n,elements:r}=e,s=await(n.isRTL==null?void 0:n.isRTL(r.floating)),i=hr(o),a=Qi(o),l=jn(o)==="y",c=nD.has(i)?-1:1,u=s&&l?-1:1,p=Xi(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:y}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return a&&typeof y=="number"&&(f=a==="end"?y*-1:y),l?{x:f*u,y:m*c}:{x:m*c,y:f*u}}const sD=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 rD(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}}}}},iD=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:P=>{let{x:D,y:E}=P;return{x:D,y:E}}},...c}=Xi(e,t),u={x:o,y:n},p=await s.detectOverflow(t,c),m=jn(hr(r)),f=Ng(m);let y=u[f],h=u[m];if(i){const P=f==="y"?"top":"left",D=f==="y"?"bottom":"right",E=y+p[P],O=y-p[D];y=Cu(E,y,O)}if(a){const P=m==="y"?"top":"left",D=m==="y"?"bottom":"right",E=h+p[P],O=h-p[D];h=Cu(E,h,O)}const b=l.fn({...t,[f]:y,[m]:h});return{...b,data:{x:b.x-o,y:b.y-n,enabled:{[f]:i,[m]:a}}}}}};function Yl(){return typeof window<"u"}function Is(e){return Bg(e)?(e.nodeName||"").toLowerCase():"#document"}function qt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Uo(e){var t;return(t=(Bg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Bg(e){return Yl()?e instanceof Node||e instanceof qt(e).Node:!1}function uo(e){return Yl()?e instanceof Element||e instanceof qt(e).Element:!1}function Jo(e){return Yl()?e instanceof HTMLElement||e instanceof qt(e).HTMLElement:!1}function b0(e){return!Yl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qt(e).ShadowRoot}function Ki(e){const{overflow:t,overflowX:o,overflowY:n,display:r}=To(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+o)&&r!=="inline"&&r!=="contents"}function aD(e){return/^(table|td|th)$/.test(Is(e))}function Ul(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const lD=/transform|translate|scale|rotate|perspective|filter/,cD=/paint|layout|strict|content/,er=e=>!!e&&e!=="none";let Sc;function ap(e){const t=uo(e)?To(e):e;return er(t.transform)||er(t.translate)||er(t.scale)||er(t.rotate)||er(t.perspective)||!Jl()&&(er(t.backdropFilter)||er(t.filter))||lD.test(t.willChange||"")||cD.test(t.contain||"")}function uD(e){let t=Hn(e);for(;Jo(t)&&!ps(t);){if(ap(t))return t;if(Ul(t))return null;t=Hn(t)}return null}function Jl(){return Sc==null&&(Sc=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Sc}function ps(e){return/^(html|body|#document)$/.test(Is(e))}function To(e){return qt(e).getComputedStyle(e)}function $l(e){return uo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Hn(e){if(Is(e)==="html")return e;const t=e.assignedSlot||e.parentNode||b0(e)&&e.host||Uo(e);return b0(t)?t.host:t}function Fg(e){const t=Hn(e);return ps(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jo(t)&&Ki(t)?t:Fg(t)}function yr(e,t,o){var n;t===void 0&&(t=[]),o===void 0&&(o=!0);const r=Fg(e),s=r===((n=e.ownerDocument)==null?void 0:n.body),i=qt(r);if(s){const a=Li(i);return t.concat(i,i.visualViewport||[],Ki(r)?r:[],a&&o?yr(a):[])}else return t.concat(r,yr(r,[],o))}function Li(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Vg(e){const t=To(e);let o=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const r=Jo(e),s=r?e.offsetWidth:o,i=r?e.offsetHeight:n,a=Wn(o)!==s||Wn(n)!==i;return a&&(o=s,n=i),{width:o,height:n,$:a}}function lp(e){return uo(e)?e:e.contextElement}function Qr(e){const t=lp(e);if(!Jo(t))return lo(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:s}=Vg(t);let i=(s?Wn(o.width):o.width)/n,a=(s?Wn(o.height):o.height)/r;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const dD=lo(0);function Gg(e){const t=qt(e);return!Jl()||!t.visualViewport?dD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pD(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==qt(e)?!1:t}function gr(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),s=lp(e);let i=lo(1);t&&(n?uo(n)&&(i=Qr(n)):i=Qr(e));const a=pD(s,o,n)?Gg(s):lo(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 m=qt(s),f=n&&uo(n)?qt(n):n;let y=m,h=Li(y);for(;h&&n&&f!==y;){const b=Qr(h),P=h.getBoundingClientRect(),D=To(h),E=P.left+(h.clientLeft+parseFloat(D.paddingLeft))*b.x,O=P.top+(h.clientTop+parseFloat(D.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,p*=b.y,l+=E,c+=O,y=qt(h),h=Li(y)}}return ji({width:u,height:p,x:l,y:c})}function Xl(e,t){const o=$l(e).scrollLeft;return t?t.left+o:gr(Uo(e)).left+o}function Wg(e,t){const o=e.getBoundingClientRect(),n=o.left+t.scrollLeft-Xl(e,o),r=o.top+t.scrollTop;return{x:n,y:r}}function fD(e){let{elements:t,rect:o,offsetParent:n,strategy:r}=e;const s=r==="fixed",i=Uo(n),a=t?Ul(t.floating):!1;if(n===i||a&&s)return o;let l={scrollLeft:0,scrollTop:0},c=lo(1);const u=lo(0),p=Jo(n);if((p||!p&&!s)&&((Is(n)!=="body"||Ki(i))&&(l=$l(n)),p)){const f=gr(n);c=Qr(n),u.x=f.x+n.clientLeft,u.y=f.y+n.clientTop}const m=i&&!p&&!s?Wg(i,l):lo(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+u.x+m.x,y:o.y*c.y-l.scrollTop*c.y+u.y+m.y}}function mD(e){return Array.from(e.getClientRects())}function hD(e){const t=Uo(e),o=$l(e),n=e.ownerDocument.body,r=Nn(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),s=Nn(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let i=-o.scrollLeft+Xl(e);const a=-o.scrollTop;return To(n).direction==="rtl"&&(i+=Nn(t.clientWidth,n.clientWidth)-r),{width:r,height:s,x:i,y:a}}const v0=25;function yD(e,t){const o=qt(e),n=Uo(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=Xl(n);if(c<=0){const u=n.ownerDocument,p=u.body,m=getComputedStyle(p),f=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,y=Math.abs(n.clientWidth-p.clientWidth-f);y<=v0&&(s-=y)}else c<=v0&&(s+=c);return{width:s,height:i,x:a,y:l}}function gD(e,t){const o=gr(e,!0,t==="fixed"),n=o.top+e.clientTop,r=o.left+e.clientLeft,s=Jo(e)?Qr(e):lo(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 T0(e,t,o){let n;if(t==="viewport")n=yD(e,o);else if(t==="document")n=hD(Uo(e));else if(uo(t))n=gD(t,o);else{const r=Gg(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return ji(n)}function Hg(e,t){const o=Hn(e);return o===t||!uo(o)||ps(o)?!1:To(o).position==="fixed"||Hg(o,t)}function bD(e,t){const o=t.get(e);if(o)return o;let n=yr(e,[],!1).filter(a=>uo(a)&&Is(a)!=="body"),r=null;const s=To(e).position==="fixed";let i=s?Hn(e):e;for(;uo(i)&&!ps(i);){const a=To(i),l=ap(i);!l&&a.position==="fixed"&&(r=null),(s?!l&&!r:!l&&a.position==="static"&&!!r&&(r.position==="absolute"||r.position==="fixed")||Ki(i)&&!l&&Hg(e,i))?n=n.filter(u=>u!==i):r=a,i=Hn(i)}return t.set(e,n),n}function vD(e){let{element:t,boundary:o,rootBoundary:n,strategy:r}=e;const i=[...o==="clippingAncestors"?Ul(t)?[]:bD(t,this._c):[].concat(o),n],a=T0(t,i[0],r);let l=a.top,c=a.right,u=a.bottom,p=a.left;for(let m=1;m<i.length;m++){const f=T0(t,i[m],r);l=Nn(f.top,l),c=mr(f.right,c),u=mr(f.bottom,u),p=Nn(f.left,p)}return{width:c-p,height:u-l,x:p,y:l}}function TD(e){const{width:t,height:o}=Vg(e);return{width:t,height:o}}function PD(e,t,o){const n=Jo(t),r=Uo(t),s=o==="fixed",i=gr(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const l=lo(0);function c(){l.x=Xl(r)}if(n||!n&&!s)if((Is(t)!=="body"||Ki(r))&&(a=$l(t)),n){const f=gr(t,!0,s,t);l.x=f.x+t.clientLeft,l.y=f.y+t.clientTop}else r&&c();s&&!n&&r&&c();const u=r&&!n&&!s?Wg(r,a):lo(0),p=i.left+a.scrollLeft-l.x-u.x,m=i.top+a.scrollTop-l.y-u.y;return{x:p,y:m,width:i.width,height:i.height}}function Ic(e){return To(e).position==="static"}function P0(e,t){if(!Jo(e)||To(e).position==="fixed")return null;if(t)return t(e);let o=e.offsetParent;return Uo(e)===o&&(o=o.ownerDocument.body),o}function qg(e,t){const o=qt(e);if(Ul(e))return o;if(!Jo(e)){let r=Hn(e);for(;r&&!ps(r);){if(uo(r)&&!Ic(r))return r;r=Hn(r)}return o}let n=P0(e,t);for(;n&&aD(n)&&Ic(n);)n=P0(n,t);return n&&ps(n)&&Ic(n)&&!ap(n)?o:n||uD(e)||o}const wD=async function(e){const t=this.getOffsetParent||qg,o=this.getDimensions,n=await o(e.floating);return{reference:PD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function xD(e){return To(e).direction==="rtl"}const CD={convertOffsetParentRelativeRectToViewportRelativeRect:fD,getDocumentElement:Uo,getClippingRect:vD,getOffsetParent:qg,getElementRects:wD,getClientRects:mD,getDimensions:TD,getScale:Qr,isElement:uo,isRTL:xD};function Zg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function SD(e,t){let o=null,n;const r=Uo(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:m,height:f}=c;if(a||t(),!m||!f)return;const y=En(p),h=En(r.clientWidth-(u+m)),b=En(r.clientHeight-(p+f)),P=En(u),E={rootMargin:-y+"px "+-h+"px "+-b+"px "+-P+"px",threshold:Nn(0,mr(1,l))||1};let O=!0;function j(R){const M=R[0].intersectionRatio;if(M!==l){if(!O)return i();M?i(!1,M):n=setTimeout(()=>{i(!1,1e-7)},1e3)}M===1&&!Zg(c,e.getBoundingClientRect())&&i(),O=!1}try{o=new IntersectionObserver(j,{...E,root:r.ownerDocument})}catch{o=new IntersectionObserver(j,E)}o.observe(e)}return i(!0),s}function ID(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=lp(e),u=r||s?[...c?yr(c):[],...t?yr(t):[]]:[];u.forEach(P=>{r&&P.addEventListener("scroll",o,{passive:!0}),s&&P.addEventListener("resize",o)});const p=c&&a?SD(c,o):null;let m=-1,f=null;i&&(f=new ResizeObserver(P=>{let[D]=P;D&&D.target===c&&f&&t&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=f)==null||E.observe(t)})),o()}),c&&!l&&f.observe(c),t&&f.observe(t));let y,h=l?gr(e):null;l&&b();function b(){const P=gr(e);h&&!Zg(h,P)&&o(),h=P,y=requestAnimationFrame(b)}return o(),()=>{var P;u.forEach(D=>{r&&D.removeEventListener("scroll",o),s&&D.removeEventListener("resize",o)}),p==null||p(),(P=f)==null||P.disconnect(),f=null,l&&cancelAnimationFrame(y)}}const MD=sD;const kD=iD,AD=oD;const OD=tD;const w0=(e,t,o)=>{const n=new Map,r={platform:CD,...o},s={...r.platform,_c:n};return eD(e,t,{...r,platform:s})};var La={exports:{}};/*!
449
449
  Copyright (c) 2018 Jed Watson.
450
450
  Licensed under the MIT License (MIT), see
451
451
  http://jedwatson.github.io/classnames
@@ -39994,11 +39994,11 @@ function vR(e) {
39994
39994
  }, [r]), null;
39995
39995
  }
39996
39996
  const sB = Cr(vR);
39997
- const TR = import("./maplibre-gl-BaDcv56K.mjs").then((e) => e.m), PR = A.forwardRef(function(t, o) {
39997
+ const TR = import("./maplibre-gl-kril7hMc.mjs").then((e) => e.m), PR = A.forwardRef(function(t, o) {
39998
39998
  return zg(t, o, TR);
39999
39999
  }), wR = Bg;
40000
40000
  const xR = bR;
40001
- const CR = import("./mapbox-gl-BGVubsYS.mjs").then((e) => e.m), iB = A.forwardRef(function(t, o) {
40001
+ const CR = import("./mapbox-gl-DOCyWuTH.mjs").then((e) => e.m), iB = A.forwardRef(function(t, o) {
40002
40002
  return zg(t, o, CR);
40003
40003
  }), SR = Bg;
40004
40004
  function IR({ locations: e }) {
@@ -40023,11 +40023,10 @@ const aB = ({
40023
40023
  return Je(() => {
40024
40024
  a.current && a.current.flyTo({
40025
40025
  center: [e, t],
40026
- zoom: o,
40027
40026
  duration: 3e3,
40028
40027
  essential: !0
40029
40028
  });
40030
- }, [t, e, o]), /* @__PURE__ */ C.jsxs(
40029
+ }, [t, e]), /* @__PURE__ */ C.jsxs(
40031
40030
  PR,
40032
40031
  {
40033
40032
  ref: a,