wacomm 1.68.0 → 1.68.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39009,11 +39009,11 @@ function sO(e) {
39009
39009
  }, [r]), null;
39010
39010
  }
39011
39011
  const xL = vr(sO);
39012
- const iO = import("./maplibre-gl-Dn7ceRi-.mjs").then((e) => e.m), aO = P.forwardRef(function(t, o) {
39012
+ const iO = import("./maplibre-gl-BALkvlnd.mjs").then((e) => e.m), aO = P.forwardRef(function(t, o) {
39013
39013
  return Wg(t, o, iO);
39014
39014
  }), lO = qg;
39015
39015
  const cO = rO;
39016
- const uO = import("./mapbox-gl-D-7cHwFO.mjs").then((e) => e.m), CL = P.forwardRef(function(t, o) {
39016
+ const uO = import("./mapbox-gl-IqyHpQLq.mjs").then((e) => e.m), CL = P.forwardRef(function(t, o) {
39017
39017
  return Wg(t, o, uO);
39018
39018
  }), pO = qg;
39019
39019
  function dO({ locations: e }) {
@@ -40611,7 +40611,10 @@ function ML({
40611
40611
  return /* @__PURE__ */ b.jsx(
40612
40612
  ji,
40613
40613
  {
40614
- className: Pe("flex flex-row whitespace-nowrap pb-1 overflow-x-auto", n),
40614
+ className: Pe(
40615
+ "flex flex-row whitespace-nowrap pb-1 overflow-x-auto hide-scrollbar-x",
40616
+ n
40617
+ ),
40615
40618
  items: e,
40616
40619
  itemRenderer: i
40617
40620
  }
@@ -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,disabled:o=!1}){return b.jsx(Ri,{dateAdapter:el,children:b.jsx(Jk,{value:e,minDate:Lt(),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 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-C6d_x1GF.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-BqhMq54J.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,zoom:o=10,setCoordinates:n,locations:r=[],token:s,navigationControl:i})=>{const a=V.useRef(null),[l,c]=V.useState({longitude:e,latitude:t,zoom:o});return V.useEffect(()=>{a.current&&a.current.flyTo({center:[e,t],zoom:o,duration:3e3,essential:!0})},[t,e,o]),b.jsxs(CO,{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:f}=u.lngLat;n&&n({lat:f,lng:p})},children:[b.jsx(wO,{longitude:e,latitude:t,children:"📌"}),b.jsx(MO,{locations:r}),b.jsx(IO,{position:i.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,disabled:o=!1}){return b.jsx(Ri,{dateAdapter:el,children:b.jsx(Jk,{value:e,minDate:Lt(),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 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-D4LTdrI6.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-CV0x3ll1.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,zoom:o=10,setCoordinates:n,locations:r=[],token:s,navigationControl:i})=>{const a=V.useRef(null),[l,c]=V.useState({longitude:e,latitude:t,zoom:o});return V.useEffect(()=>{a.current&&a.current.flyTo({center:[e,t],zoom:o,duration:3e3,essential:!0})},[t,e,o]),b.jsxs(CO,{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:f}=u.lngLat;n&&n({lat:f,lng:p})},children:[b.jsx(wO,{longitude:e,latitude:t,children:"📌"}),b.jsx(MO,{locations:r}),b.jsx(IO,{position:i.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
@@ -368,7 +368,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
368
368
  * @copyright ReactTooltip Team
369
369
  * @license MIT
370
370
  */const SR="react-tooltip-core-styles",AR="react-tooltip-base-styles",Zm={core:!1,base:!1};function Ym({css:e,id:t=AR,type:o="base",ref:n}){var r,s;if(!e||typeof document>"u"||Zm[o]||o==="core"&&typeof process<"u"&&(!((r=process==null?void 0:process.env)===null||r===void 0)&&r.REACT_TOOLTIP_DISABLE_CORE_STYLES)||o!=="base"&&typeof process<"u"&&(!((s=process==null?void 0:process.env)===null||s===void 0)&&s.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;o==="core"&&(t=SR),n||(n={});const{insertAt:i}=n;if(document.getElementById(t))return;const a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=t,l.type="text/css",i==="top"&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e)),Zm[o]=!0}const Um=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:o=null,place:n="top",offset:r=10,strategy:s="absolute",middlewares:i=[TR(Number(r)),xR({fallbackAxisSideDirection:"start"}),PR({padding:5})],border:a,arrowSize:l=8})=>{if(!e)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};if(t===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:n};const c=i;return o?(c.push(CR({element:o,padding:5})),qm(e,t,{placement:n,strategy:s,middleware:c}).then((({x:u,y:p,placement:f,middlewareData:d})=>{var m,h;const y={left:`${u}px`,top:`${p}px`,border:a},{x:g,y:C}=(m=d.arrow)!==null&&m!==void 0?m:{x:0,y:0},w=(h={top:"bottom",right:"left",bottom:"top",left:"right"}[f.split("-")[0]])!==null&&h!==void 0?h:"bottom",x=a&&{borderBottom:a,borderRight:a};let I=0;if(a){const M=`${a}`.match(/(\d+)px/);I=M!=null&&M[1]?Number(M[1]):1}return{tooltipStyles:y,tooltipArrowStyles:{left:g!=null?`${g}px`:"",top:C!=null?`${C}px`:"",right:"",bottom:"",...x,[w]:`-${l/2+I}px`},place:f}}))):qm(e,t,{placement:"bottom",strategy:s,middleware:c}).then((({x:u,y:p,placement:f})=>({tooltipStyles:{left:`${u}px`,top:`${p}px`},tooltipArrowStyles:{},place:f})))},Jm=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),Xm=(e,t,o)=>{let n=null;const r=function(...s){const i=()=>{n=null,o||e.apply(this,s)};o&&!n&&(e.apply(this,s),n=setTimeout(i,t)),o||(n&&clearTimeout(n),n=setTimeout(i,t))};return r.cancel=()=>{n&&(clearTimeout(n),n=null)},r},Qm=e=>e!==null&&!Array.isArray(e)&&typeof e=="object",_c=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every(((r,s)=>_c(r,t[s])));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!Qm(e)||!Qm(t))return e===t;const o=Object.keys(e),n=Object.keys(t);return o.length===n.length&&o.every((r=>_c(e[r],t[r])))},MR=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some((o=>{const n=t.getPropertyValue(o);return n==="auto"||n==="scroll"}))},$m=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(MR(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},kR=typeof window<"u"?V.useLayoutEffect:V.useEffect,Io=e=>{e.current&&(clearTimeout(e.current),e.current=null)},OR="DEFAULT_TOOLTIP_ID",RR={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},DR=V.createContext({getTooltipData:()=>RR});function e1(e=OR){return V.useContext(DR).getTooltipData(e)}var Dr={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},cc={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const ER=({forwardRef:e,id:t,className:o,classNameArrow:n,variant:r="dark",anchorId:s,anchorSelect:i,place:a="top",offset:l=10,events:c=["hover"],openOnClick:u=!1,positionStrategy:p="absolute",middlewares:f,wrapper:d,delayShow:m=0,delayHide:h=0,float:y=!1,hidden:g=!1,noArrow:C=!1,clickable:w=!1,closeOnEsc:x=!1,closeOnScroll:I=!1,closeOnResize:M=!1,openEvents:E,closeEvents:D,globalCloseEvents:z,imperativeModeOnly:B,style:j,position:v,afterShow:N,afterHide:k,disableTooltip:S,content:R,contentWrapperRef:A,isOpen:O,defaultIsOpen:F=!1,setIsOpen:W,previousActiveAnchor:G,activeAnchor:q,setActiveAnchor:Z,border:Q,opacity:J,arrowColor:K,arrowSize:$=8,role:pe="tooltip"})=>{var ae;const U=V.useRef(null),X=V.useRef(null),ee=V.useRef(null),ce=V.useRef(null),oe=V.useRef(null),[de,se]=V.useState({tooltipStyles:{},tooltipArrowStyles:{},place:a}),[me,ne]=V.useState(!1),[ie,te]=V.useState(!1),[_,le]=V.useState(null),Ne=V.useRef(!1),Le=V.useRef(null),{anchorRefs:$e,setActiveAnchor:Ge}=e1(t),_e=V.useRef(!1),[lt,ze]=V.useState([]),Be=V.useRef(!1),Me=u||c.includes("click"),rt=Me||(E==null?void 0:E.click)||(E==null?void 0:E.dblclick)||(E==null?void 0:E.mousedown),st=E?{...E}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!E&&Me&&Object.assign(st,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const ct=D?{...D}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};!D&&Me&&Object.assign(ct,{mouseleave:!1,blur:!1,mouseout:!1});const qe=z?{...z}:{escape:x||!1,scroll:I||!1,resize:M||!1,clickOutsideAnchor:rt||!1};B&&(Object.assign(st,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(ct,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(qe,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),kR((()=>(Be.current=!0,()=>{Be.current=!1})),[]);const gt=ue=>{Be.current&&(ue&&te(!0),setTimeout((()=>{Be.current&&(W==null||W(ue),O===void 0&&ne(ue))}),10))};V.useEffect((()=>{if(t){if(me){Pe(G);const ke=ue(q),it=[...new Set([...ke,t])].filter(Boolean).join(" ");q==null||q.setAttribute("aria-describedby",it)}else Pe(q);return()=>{Pe(q),Pe(G)}}function ue(ke){var it;return((it=ke==null?void 0:ke.getAttribute("aria-describedby"))===null||it===void 0?void 0:it.split(" "))||[]}function Pe(ke){const it=ue(ke).filter((At=>At!==t));it.length?ke==null||ke.setAttribute("aria-describedby",it.join(" ")):ke==null||ke.removeAttribute("aria-describedby")}}),[q,me,t,G]),V.useEffect((()=>{if(O===void 0)return()=>null;O&&te(!0);const ue=setTimeout((()=>{ne(O)}),10);return()=>{clearTimeout(ue)}}),[O]),V.useEffect((()=>{if(me!==Ne.current)if(Io(oe),Ne.current=me,me)N==null||N();else{const ue=(Pe=>{const ke=Pe.match(/^([\d.]+)(ms|s)$/);if(!ke)return 0;const[,it,At]=ke;return Number(it)*(At==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));oe.current=setTimeout((()=>{te(!1),le(null),k==null||k()}),ue+25)}}),[me]);const We=ue=>{se((Pe=>_c(Pe,ue)?Pe:ue))},bt=(ue=m)=>{Io(ee),ie?gt(!0):ee.current=setTimeout((()=>{gt(!0)}),ue)},ft=(ue=h)=>{Io(ce),ce.current=setTimeout((()=>{_e.current||gt(!1)}),ue)},Dt=ue=>{var Pe;if(!ue)return;const ke=(Pe=ue.currentTarget)!==null&&Pe!==void 0?Pe:ue.target;if(!(ke!=null&&ke.isConnected))return Z(null),void Ge({current:null});m?bt():gt(!0),Z(ke),Ge({current:ke}),Io(ce)},Ht=()=>{w?ft(h||100):h?ft():gt(!1),Io(ee)},Te=({x:ue,y:Pe})=>{var ke;const it={getBoundingClientRect:()=>({x:ue,y:Pe,width:0,height:0,top:Pe,left:ue,right:ue,bottom:Pe})};Um({place:(ke=_==null?void 0:_.place)!==null&&ke!==void 0?ke:a,offset:l,elementReference:it,tooltipReference:U.current,tooltipArrowReference:X.current,strategy:p,middlewares:f,border:Q,arrowSize:$}).then((At=>{We(At)}))},Je=ue=>{if(!ue)return;const Pe=ue,ke={x:Pe.clientX,y:Pe.clientY};Te(ke),Le.current=ke},Ct=ue=>{var Pe;if(!me)return;const ke=ue.target;ke.isConnected&&(!((Pe=U.current)===null||Pe===void 0)&&Pe.contains(ke)||[document.querySelector(`[id='${s}']`),...lt].some((it=>it==null?void 0:it.contains(ke)))||(gt(!1),Io(ee)))},eo=Xm(Dt,50,!0),wt=Xm(Ht,50,!0),Ke=ue=>{wt.cancel(),eo(ue)},je=()=>{eo.cancel(),wt()},fe=V.useCallback((()=>{var ue,Pe;const ke=(ue=_==null?void 0:_.position)!==null&&ue!==void 0?ue:v;ke?Te(ke):y?Le.current&&Te(Le.current):q!=null&&q.isConnected&&Um({place:(Pe=_==null?void 0:_.place)!==null&&Pe!==void 0?Pe:a,offset:l,elementReference:q,tooltipReference:U.current,tooltipArrowReference:X.current,strategy:p,middlewares:f,border:Q,arrowSize:$}).then((it=>{Be.current&&We(it)}))}),[me,q,R,j,a,_==null?void 0:_.place,l,p,v,_==null?void 0:_.position,y,$]);V.useEffect((()=>{var ue,Pe;const ke=new Set($e);lt.forEach((vt=>{S!=null&&S(vt)||ke.add({current:vt})}));const it=document.querySelector(`[id='${s}']`);it&&!(S!=null&&S(it))&&ke.add({current:it});const At=()=>{gt(!1)},po=$m(q),to=$m(U.current);qe.scroll&&(window.addEventListener("scroll",At),po==null||po.addEventListener("scroll",At),to==null||to.addEventListener("scroll",At));let Kt=null;qe.resize?window.addEventListener("resize",At):q&&U.current&&(Kt=vR(q,U.current,fe,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const To=vt=>{vt.key==="Escape"&&gt(!1)};qe.escape&&window.addEventListener("keydown",To),qe.clickOutsideAnchor&&window.addEventListener("click",Ct);const Mt=[],Tr=vt=>!!(vt!=null&&vt.target&&(q!=null&&q.contains(vt.target))),O1=vt=>{me&&Tr(vt)||Dt(vt)},R1=vt=>{me&&Tr(vt)&&Ht()},Vp=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],Gp=["click","dblclick","mousedown","mouseup"];Object.entries(st).forEach((([vt,an])=>{an&&(Vp.includes(vt)?Mt.push({event:vt,listener:Ke}):Gp.includes(vt)&&Mt.push({event:vt,listener:O1}))})),Object.entries(ct).forEach((([vt,an])=>{an&&(Vp.includes(vt)?Mt.push({event:vt,listener:je}):Gp.includes(vt)&&Mt.push({event:vt,listener:R1}))})),y&&Mt.push({event:"pointermove",listener:Je});const Wp=()=>{_e.current=!0},qp=()=>{_e.current=!1,Ht()},Hp=w&&(ct.mouseout||ct.mouseleave);return Hp&&((ue=U.current)===null||ue===void 0||ue.addEventListener("mouseover",Wp),(Pe=U.current)===null||Pe===void 0||Pe.addEventListener("mouseout",qp)),Mt.forEach((({event:vt,listener:an})=>{ke.forEach((Fl=>{var xs;(xs=Fl.current)===null||xs===void 0||xs.addEventListener(vt,an)}))})),()=>{var vt,an;qe.scroll&&(window.removeEventListener("scroll",At),po==null||po.removeEventListener("scroll",At),to==null||to.removeEventListener("scroll",At)),qe.resize?window.removeEventListener("resize",At):Kt==null||Kt(),qe.clickOutsideAnchor&&window.removeEventListener("click",Ct),qe.escape&&window.removeEventListener("keydown",To),Hp&&((vt=U.current)===null||vt===void 0||vt.removeEventListener("mouseover",Wp),(an=U.current)===null||an===void 0||an.removeEventListener("mouseout",qp)),Mt.forEach((({event:Fl,listener:xs})=>{ke.forEach((D1=>{var Vl;(Vl=D1.current)===null||Vl===void 0||Vl.removeEventListener(Fl,xs)}))}))}}),[q,fe,ie,$e,lt,E,D,z,Me,m,h]),V.useEffect((()=>{var ue,Pe;let ke=(Pe=(ue=_==null?void 0:_.anchorSelect)!==null&&ue!==void 0?ue:i)!==null&&Pe!==void 0?Pe:"";!ke&&t&&(ke=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);const it=new MutationObserver((At=>{const po=[],to=[];At.forEach((Kt=>{if(Kt.type==="attributes"&&Kt.attributeName==="data-tooltip-id"&&(Kt.target.getAttribute("data-tooltip-id")===t?po.push(Kt.target):Kt.oldValue===t&&to.push(Kt.target)),Kt.type==="childList"){if(q){const To=[...Kt.removedNodes].filter((Mt=>Mt.nodeType===1));if(ke)try{to.push(...To.filter((Mt=>Mt.matches(ke)))),to.push(...To.flatMap((Mt=>[...Mt.querySelectorAll(ke)])))}catch{}To.some((Mt=>{var Tr;return!!(!((Tr=Mt==null?void 0:Mt.contains)===null||Tr===void 0)&&Tr.call(Mt,q))&&(te(!1),gt(!1),Z(null),Io(ee),Io(ce),!0)}))}if(ke)try{const To=[...Kt.addedNodes].filter((Mt=>Mt.nodeType===1));po.push(...To.filter((Mt=>Mt.matches(ke)))),po.push(...To.flatMap((Mt=>[...Mt.querySelectorAll(ke)])))}catch{}}})),(po.length||to.length)&&ze((Kt=>[...Kt.filter((To=>!to.includes(To))),...po]))}));return it.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{it.disconnect()}}),[t,i,_==null?void 0:_.anchorSelect,q]),V.useEffect((()=>{fe()}),[fe]),V.useEffect((()=>{if(!(A!=null&&A.current))return()=>null;const ue=new ResizeObserver((()=>{setTimeout((()=>fe()))}));return ue.observe(A.current),()=>{ue.disconnect()}}),[R,A==null?void 0:A.current]),V.useEffect((()=>{var ue;const Pe=document.querySelector(`[id='${s}']`),ke=[...lt,Pe];q&&ke.includes(q)||Z((ue=lt[0])!==null&&ue!==void 0?ue:Pe)}),[s,lt,q]),V.useEffect((()=>(F&&gt(!0),()=>{Io(ee),Io(ce)})),[]),V.useEffect((()=>{var ue;let Pe=(ue=_==null?void 0:_.anchorSelect)!==null&&ue!==void 0?ue:i;if(!Pe&&t&&(Pe=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),Pe)try{const ke=Array.from(document.querySelectorAll(Pe));ze(ke)}catch{ze([])}}),[t,i,_==null?void 0:_.anchorSelect]),V.useEffect((()=>{ee.current&&(Io(ee),bt(m))}),[m]);const Ie=(ae=_==null?void 0:_.content)!==null&&ae!==void 0?ae:R,Ze=me&&Object.keys(de.tooltipStyles).length>0;return V.useImperativeHandle(e,(()=>({open:ue=>{if(ue!=null&&ue.anchorSelect)try{document.querySelector(ue.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${ue.anchorSelect}" is not a valid CSS selector`)}le(ue??null),ue!=null&&ue.delay?bt(ue.delay):gt(!0)},close:ue=>{ue!=null&&ue.delay?ft(ue.delay):gt(!1)},activeAnchor:q,place:de.place,isOpen:!!(ie&&!g&&Ie&&Ze)}))),ie&&!g&&Ie?V.createElement(d,{id:t,role:pe,className:Kc("react-tooltip",Dr.tooltip,cc.tooltip,cc[r],o,`react-tooltip__place-${de.place}`,Dr[Ze?"show":"closing"],Ze?"react-tooltip__show":"react-tooltip__closing",p==="fixed"&&Dr.fixed,w&&Dr.clickable),onTransitionEnd:ue=>{Io(oe),me||ue.propertyName!=="opacity"||(te(!1),le(null),k==null||k())},style:{...j,...de.tooltipStyles,opacity:J!==void 0&&Ze?J:void 0},ref:U},Ie,V.createElement(d,{className:Kc("react-tooltip-arrow",Dr.arrow,cc.arrow,n,C&&Dr.noArrow),style:{...de.tooltipArrowStyles,background:K?`linear-gradient(to right bottom, transparent 50%, ${K} 50%)`:void 0,"--rt-arrow-size":`${$}px`},ref:X})):null},NR=({content:e})=>V.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),jR=V.forwardRef((({id:e,anchorId:t,anchorSelect:o,content:n,html:r,render:s,className:i,classNameArrow:a,variant:l="dark",place:c="top",offset:u=10,wrapper:p="div",children:f=null,events:d=["hover"],openOnClick:m=!1,positionStrategy:h="absolute",middlewares:y,delayShow:g=0,delayHide:C=0,float:w=!1,hidden:x=!1,noArrow:I=!1,clickable:M=!1,closeOnEsc:E=!1,closeOnScroll:D=!1,closeOnResize:z=!1,openEvents:B,closeEvents:j,globalCloseEvents:v,imperativeModeOnly:N=!1,style:k,position:S,isOpen:R,defaultIsOpen:A=!1,disableStyleInjection:O=!1,border:F,opacity:W,arrowColor:G,arrowSize:q,setIsOpen:Z,afterShow:Q,afterHide:J,disableTooltip:K,role:$="tooltip"},pe)=>{const[ae,U]=V.useState(n),[X,ee]=V.useState(r),[ce,oe]=V.useState(c),[de,se]=V.useState(l),[me,ne]=V.useState(u),[ie,te]=V.useState(g),[_,le]=V.useState(C),[Ne,Le]=V.useState(w),[$e,Ge]=V.useState(x),[_e,lt]=V.useState(p),[ze,Be]=V.useState(d),[Me,rt]=V.useState(h),[st,ct]=V.useState(null),[qe,gt]=V.useState(null),We=V.useRef(null),bt=V.useRef(O),{anchorRefs:ft,activeAnchor:Dt}=e1(e),Ht=wt=>wt==null?void 0:wt.getAttributeNames().reduce(((Ke,je)=>{var fe;return je.startsWith("data-tooltip-")&&(Ke[je.replace(/^data-tooltip-/,"")]=(fe=wt==null?void 0:wt.getAttribute(je))!==null&&fe!==void 0?fe:null),Ke}),{}),Te=wt=>{const Ke={place:je=>{var fe;oe((fe=je)!==null&&fe!==void 0?fe:c)},content:je=>{U(je??n)},html:je=>{ee(je??r)},variant:je=>{var fe;se((fe=je)!==null&&fe!==void 0?fe:l)},offset:je=>{ne(je===null?u:Number(je))},wrapper:je=>{var fe;lt((fe=je)!==null&&fe!==void 0?fe:p)},events:je=>{const fe=je==null?void 0:je.split(" ");Be(fe??d)},"position-strategy":je=>{var fe;rt((fe=je)!==null&&fe!==void 0?fe:h)},"delay-show":je=>{te(je===null?g:Number(je))},"delay-hide":je=>{le(je===null?C:Number(je))},float:je=>{Le(je===null?w:je==="true")},hidden:je=>{Ge(je===null?x:je==="true")},"class-name":je=>{ct(je)}};Object.values(Ke).forEach((je=>je(null))),Object.entries(wt).forEach((([je,fe])=>{var Ie;(Ie=Ke[je])===null||Ie===void 0||Ie.call(Ke,fe)}))};V.useEffect((()=>{U(n)}),[n]),V.useEffect((()=>{ee(r)}),[r]),V.useEffect((()=>{oe(c)}),[c]),V.useEffect((()=>{se(l)}),[l]),V.useEffect((()=>{ne(u)}),[u]),V.useEffect((()=>{te(g)}),[g]),V.useEffect((()=>{le(C)}),[C]),V.useEffect((()=>{Le(w)}),[w]),V.useEffect((()=>{Ge(x)}),[x]),V.useEffect((()=>{rt(h)}),[h]),V.useEffect((()=>{bt.current!==O&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")}),[O]),V.useEffect((()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:O==="core",disableBase:O}}))}),[]),V.useEffect((()=>{var wt;const Ke=new Set(ft);let je=o;if(!je&&e&&(je=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),je)try{document.querySelectorAll(je).forEach((Pe=>{Ke.add({current:Pe})}))}catch{console.warn(`[react-tooltip] "${je}" is not a valid CSS selector`)}const fe=document.querySelector(`[id='${t}']`);if(fe&&Ke.add({current:fe}),!Ke.size)return()=>null;const Ie=(wt=qe??fe)!==null&&wt!==void 0?wt:Dt.current,Ze=new MutationObserver((Pe=>{Pe.forEach((ke=>{var it;if(!Ie||ke.type!=="attributes"||!(!((it=ke.attributeName)===null||it===void 0)&&it.startsWith("data-tooltip-")))return;const At=Ht(Ie);Te(At)}))})),ue={attributes:!0,childList:!1,subtree:!1};if(Ie){const Pe=Ht(Ie);Te(Pe),Ze.observe(Ie,ue)}return()=>{Ze.disconnect()}}),[ft,Dt,qe,t,o]),V.useEffect((()=>{k!=null&&k.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),F&&!Jm("border",`${F}`)&&console.warn(`[react-tooltip] "${F}" is not a valid \`border\`.`),k!=null&&k.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),W&&!Jm("opacity",`${W}`)&&console.warn(`[react-tooltip] "${W}" is not a valid \`opacity\`.`)}),[]);let Je=f;const Ct=V.useRef(null);if(s){const wt=s({content:(qe==null?void 0:qe.getAttribute("data-tooltip-content"))||ae||null,activeAnchor:qe});Je=wt?V.createElement("div",{ref:Ct,className:"react-tooltip-content-wrapper"},wt):null}else ae&&(Je=ae);X&&(Je=V.createElement(NR,{content:X}));const eo={forwardRef:pe,id:e,anchorId:t,anchorSelect:o,className:Kc(i,st),classNameArrow:a,content:Je,contentWrapperRef:Ct,place:ce,variant:de,offset:me,wrapper:_e,events:ze,openOnClick:m,positionStrategy:Me,middlewares:y,delayShow:ie,delayHide:_,float:Ne,hidden:$e,noArrow:I,clickable:M,closeOnEsc:E,closeOnScroll:D,closeOnResize:z,openEvents:B,closeEvents:j,globalCloseEvents:v,imperativeModeOnly:N,style:k,position:S,isOpen:R,defaultIsOpen:A,border:F,opacity:W,arrowColor:G,arrowSize:q,setIsOpen:Z,afterShow:Q,afterHide:J,disableTooltip:K,activeAnchor:qe,previousActiveAnchor:We.current,setActiveAnchor:wt=>{gt((Ke=>(wt!=null&&wt.isSameNode(Ke)||(We.current=Ke),wt)))},role:$};return V.createElement(ER,{...eo})}));typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",(e=>{e.detail.disableCore||Ym({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s;--rt-arrow-size:8px}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit;z-index:-1}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||Ym({css:`
371
- .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})}));function t1({children:e,name:t,label:o,position:n="top",onClick:r=Ye,className:s="",tooltipStyle:i={color:"white",backgroundColor:"#2563EB",zIndex:100}}){const a=`${t}${Math.random().toFixed(10).toString()}`;return b.jsxs("div",{"data-tooltip-id":a,"data-tooltip-content":o,onClick:r,className:xe("flex flex-row items-center justify-center",s),children:[e,b.jsx(jR,{id:a,style:i,place:n})]})}function Ep({className:e="",onClick:t=Ye,icon:o,label:n}){return b.jsx(t1,{onClick:t,className:e,label:n,name:n,children:o})}function LR({onClick:e,label:t}){return b.jsx(Ep,{icon:b.jsx(u2,{className:"fill-gray-600",size:he.lg}),onClick:e,label:t})}function zR({isHighlighted:e=!1,onClick:t,label:o,categoryName:n,interestName:r,className:s=""}){return b.jsx(Ep,{icon:b.jsx(ru,{categoryName:n,interestName:r,size:he.lg,className:e?"fill-blue-500 text-blue-500 bg-blue-100 rounded-full p-1":"fill-gray-600 p-1"}),onClick:t,label:o,className:s})}function BR({tabName:e,isHighlighted:t,onPick:o,label:n,className:r,tabHighlightedClassName:s}){return b.jsx(ao,{className:xe("px-3 py-0.5 text-gray-600 text-center",r,t?s||"border-blue-500 border-b-2 text-blue-500":""),onClick:()=>o(e),children:n})}function FR({tabs:e,onPick:t,pickedTabName:o,className:n="",tabClassName:r="",tabHighlightedClassName:s=""}){const i=({name:a,label:l})=>b.jsx(BR,{tabName:a,isHighlighted:o===a,onPick:t,label:l,className:r,tabHighlightedClassName:s},a);return b.jsx(fs,{className:xe("flex flex-row whitespace-nowrap pb-1 overflow-x-auto",n),items:e,itemRenderer:i})}const VR=(e,t)=>{let o="py-0.5 px-2 gap-2";return e&&(o=xe(o,"items-center py-1 px-2 border-b-2 border-white")),t&&(e?o=xe(o,"border-blue-500"):o=`${o} bg-blue-200 rounded-full`),o},GR=(e,t)=>{let o="text-gray-600 text-sm";return t&&(o="text-blue-500"),e&&(o=xe(o,"text-xs -mt-3")),o};function yt({label:e="",isVertical:t=!1,isHighlighted:o=!1,className:n="",icon:{Svg:r,className:s="",size:i=he.lg},labelClassName:a="",isLabelHidden:l=!1,onClick:c=Ye}){return b.jsxs(pu,{className:xe(VR(t,o),n),isVertical:t,onClick:c,children:[b.jsx(r,{className:xe(`${o?"fill-blue-500 text-blue-500":"fill-gray-600"}`,s),size:i}),!l&&e&&b.jsx("div",{className:xe(GR(t,o),a),children:e})]})}function WR({isHighlighted:e,onClick:t,label:o}){return b.jsx(yt,{label:o,icon:{Svg:Yv},onClick:t,isVertical:!0,isHighlighted:e})}function qR({isHighlighted:e,onClick:t,label:o}){return b.jsx(yt,{label:o,icon:{Svg:_v},onClick:t,isHighlighted:e,isVertical:!0})}function HR({isHighlighted:e=!1,onClick:t=Ye,className:o=""}){return b.jsx(yt,{label:"Partners",icon:{Svg:t2},onClick:t,className:o,isHighlighted:e})}function ZR({isHighlighted:e=!1,onClick:t=Ye,className:o=""}){return b.jsx(yt,{label:"Newsfeed",icon:{Svg:e2},onClick:t,className:o,isHighlighted:e})}function YR({isHighlighted:e=!1,onClick:t=Ye,isVertical:o=!1,label:n="",labelClassName:r="",svgClassName:s="",svgSize:i=he.md}){return b.jsx(yt,{label:n,icon:{Svg:Jv,size:i,className:s},onClick:t,isHighlighted:e,isVertical:o,labelClassName:r})}function UR({label:e,onClick:t}){return b.jsx(yt,{label:e,icon:{Svg:Qv,size:he.md},onClick:t,isVertical:!0})}function JR({isHighlighted:e=!1,onClick:t}){return b.jsx(yt,{label:"Map",icon:{Svg:Uv},onClick:t,isVertical:!0,isHighlighted:e})}function XR({onClick:e,label:t="Copy"}){return b.jsx(yt,{label:t,className:"-gap-2 text-sm",icon:{Svg:M2,className:"text-blue-500 fill-none",size:he.sm},onClick:e,labelClassName:"text-blue-500"})}function QR(){return b.jsx(yt,{icon:{Svg:h2,className:"fill-blue-500"}})}function $R({label:e,onClick:t,className:o=""}){return b.jsx(yt,{icon:{Svg:b2,className:"fill-gray-600"},label:e,onClick:t,className:o})}function KR({label:e,isHighlighted:t,isLabelHidden:o}){return b.jsx(yt,{label:e,icon:{Svg:Xv},isLabelHidden:o,isHighlighted:t,isVertical:!0})}function _R({onClick:e}){return b.jsx(yt,{icon:{Svg:v2},onClick:e})}function eD({label:e,isHighlighted:t,isLabelHidden:o}){return b.jsx(yt,{label:e,icon:{Svg:$v,size:he.lg},isLabelHidden:o,isHighlighted:t,isVertical:!0})}function tD({isHighlighted:e,onClick:t=Ye,className:o="",categoryName:n,interestName:r,label:s}){return b.jsxs(Xa,{className:xe(`${e?"bg-blue-100 border-blue-500":"border-gray-300"} gap-0 rounded-full border px-1 py-0`,o),onClick:t,children:[b.jsx(ru,{interestName:r,categoryName:n,size:he.xs,className:e?"fill-blue-500 text-blue-500":"fill-gray-600"}),b.jsx(Nn,{text:s,className:e?"text-blue-500 text-sm":"text-gray-600 text-sm"})]})}function oD({isHighlighted:e,onClick:t=Ye,className:o="",categoryName:n,label:r}){return b.jsxs(Xa,{className:xe(`${e?"border-emerald-300":"border-gray-300"} gap-0 rounded-full border px-1 py-0`,o),onClick:t,children:[b.jsx(Rb,{categoryName:n,size:he.xs,className:e?"fill-emerald-300 text-emerald-300":"fill-gray-600"}),b.jsx(Nn,{text:r,className:e?"text-emerald-300":"text-gray-600"})]})}function nD({label:e="Comment",onClick:t}){return b.jsx(yt,{label:e,icon:{Svg:x2,size:he.md},onClick:t,isVertical:!0})}function rD({isHighlighted:e,className:t="",categoryName:o,interestName:n,label:r,labelHidden:s=!1}){return b.jsxs(mr,{className:xe("-gap-2 px-1 py-0 items-center",t),children:[b.jsx(ru,{interestName:n,categoryName:o,size:he.xs,className:e?"fill-blue-500 text-blue-500":"fill-gray-600"}),!s&&b.jsx(Nn,{text:r,className:e?"text-blue-500 text-xs":"text-gray-600 text-xs"})]})}function sD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgSize:r=he.md,labelClassName:s="",svgClassName:i="",isVertical:a=!1}){return b.jsx(yt,{label:e||"Team",icon:{Svg:o2,size:r,className:i},onClick:o,className:n,isHighlighted:t,labelClassName:s,isVertical:a})}function iD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgClassName:r="",svgSize:s=he.md,labelClassName:i="",isVertical:a=!1}){return b.jsx(yt,{label:e||"Arena",icon:{Svg:n2,size:s,className:r},onClick:o,className:n,isHighlighted:t,labelClassName:i,isVertical:a})}function aD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",labelClassName:r="",svgClassName:s="",svgSize:i=he.md,isVertical:a=!1}){return b.jsx(yt,{label:e||"Collection",icon:{Svg:r2,size:i,className:s},onClick:o,className:n,labelClassName:r,isHighlighted:t,isVertical:a})}function lD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgSize:r=he.md,labelClassName:s="",svgClassName:i="",isVertical:a=!1}){return b.jsx(yt,{label:e||"Event",icon:{Svg:I2,size:r,className:i},onClick:o,className:n,isHighlighted:t,isVertical:a,labelClassName:s})}function cD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgSize:r=he.md,labelClassName:s="",svgClassName:i="",isVertical:a=!1}){return b.jsx(yt,{label:e,icon:{Svg:T2,size:r,className:i},onClick:o,className:n,isHighlighted:t,labelClassName:s,isVertical:a})}function uD({label:e,svgSize:t=he.md,labelClassName:o="",svgClassName:n="",isVertical:r=!1}){return b.jsx(yt,{label:e,icon:{Svg:s2,size:t,className:n},isVertical:r,labelClassName:o})}function pD({label:e,isHighlighted:t=!1,onClick:o=Ye,className:n="",svgSize:r=he.md,labelClassName:s="",isVertical:i=!1}){return b.jsx(yt,{label:e,icon:{Svg:i2,size:r,className:"fill-blue-500"},onClick:o,className:n,isHighlighted:t,labelClassName:s,isVertical:i})}function dD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgClassName:r="",svgSize:s=he.md,labelClassName:i="",isVertical:a=!1}){return b.jsx(yt,{label:e,icon:{Svg:w2,size:s,className:r},onClick:o,className:n,isHighlighted:t,labelClassName:i,isVertical:a})}function fD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgClassName:r="",svgSize:s=he.md,labelClassName:i="",isVertical:a=!1}){return b.jsx(yt,{label:e,icon:{Svg:C2,size:s,className:r},onClick:o,className:n,isHighlighted:t,labelClassName:i,isVertical:a})}function mD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgSize:r=he.md}){return b.jsx(yt,{label:e||"Images",icon:{Svg:d2,size:r},onClick:o,className:n,isHighlighted:t})}function hD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgSize:r=he.md}){return b.jsx(yt,{label:e||"Polls",icon:{Svg:f2,size:r,className:t?"stroke-blue-500 fill-none":"stroke-gray-600 fill-none"},onClick:o,className:n,isHighlighted:t})}function yD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgSize:r=he.md}){return b.jsx(yt,{label:e,icon:{Svg:Kv,size:r},onClick:o,className:n,isHighlighted:t,isVertical:!0})}function gD({isHighlighted:e=!1,onClick:t=Ye,className:o="",labelClassName:n="",svgClassName:r="",svgSize:s=he.md,label:i="",isVertical:a=!1}){return b.jsx(yt,{label:i||"Text",icon:{Svg:m2,size:s,className:r},onClick:t,className:o,labelClassName:n,isHighlighted:e,isVertical:a})}function bD({label:e,onClick:t=Ye}){return b.jsx(yt,{label:e,icon:{Svg:S2,className:"fill-gray-500",size:he.sm},isVertical:!1,onClick:t,labelClassName:"text-sm"})}function vD({label:e,onClick:t=Ye}){return b.jsx(yt,{label:e,icon:{Svg:A2,className:"fill-gray-500",size:he.sm},isVertical:!1,onClick:t,labelClassName:"text-sm"})}function TD({label:e,onClick:t=Ye}){return b.jsx(yt,{label:e,icon:{Svg:g2,className:"fill-gray-500",size:he.sm},isVertical:!1,onClick:t,labelClassName:"text-sm"})}function PD({address:e,locationType:t=fa.None,onClick:o=Ye}){const n=()=>{switch(t){case fa.Street:return b.jsx(vD,{label:e,onClick:o});case fa.City:return b.jsx(TD,{label:e,onClick:o});default:return b.jsx(bD,{label:e,onClick:o})}};return b.jsx(Yt,{className:"text-gray-600 bg-white rounded-lg w-fit",children:n()})}function xD({className:e="text-gray-300"}){return b.jsx("span",{className:e,children:" | "})}function Np({className:e="text-gray-300"}){return b.jsx("span",{className:e,children:" · "})}function CD({count:e=0,onClick:t,className:o="",textClassName:n="text-gray-500"}){return b.jsxs(ao,{className:o,onClick:t,children:[b.jsx("span",{children:"❤️ "}),b.jsx("span",{className:n,children:e})]})}function wD({className:e="",textClassName:t="text-gray-500 text-xs",count:o=0,isHighlighted:n=!1,onLike:r}){return b.jsxs(Yt,{className:e,children:[b.jsx(ao,{onClick:r,className:xe(t,`${n&&"text-blue-500"}`),children:"Like"}),o>0&&b.jsxs(b.Fragment,{children:[b.jsx(Np,{className:t}),b.jsx(CD,{count:o,onClick:Ye,className:t})]})]})}function ID({singleLabel:e,pluralLabel:t,count:o=0,onClick:n,className:r="text-gray-500 text-sm"}){return b.jsx(ao,{onClick:n,children:b.jsx("span",{className:r,children:`${o} ${o===1?e:t}`})})}var o1=(e=>(e[e.Comment=0]="Comment",e[e.Reply=1]="Reply",e))(o1||{});const SD={0:{Single:"Comment",Plural:"Comments"},1:{Single:"Reply",Plural:"Replies"}};function AD({type:e,className:t="",textClassName:o="text-gray-500 text-xs",count:n=0,onClick:r}){const s=SD[e];return b.jsxs(Xa,{className:t,onClick:r,children:[b.jsx(Nn,{className:o,text:s.Single}),n>0&&b.jsxs(b.Fragment,{children:[b.jsx(Np,{className:"text-gray-300"}),b.jsx(ID,{singleLabel:s.Single,pluralLabel:s.Plural,count:n,onClick:Ye,className:o})]})]})}function fr(e){"@babel/helpers - typeof";return fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fr(e)}function MD(e,t){if(fr(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n1(e){var t=MD(e,"string");return fr(t)=="symbol"?t:t+""}function ei(e,t,o){return(t=n1(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Km(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),o.push.apply(o,n)}return o}function Ve(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Km(Object(o),!0).forEach(function(n){ei(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Km(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function kD(e){if(Array.isArray(e))return e}function OD(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var n,r,s,i,a=[],l=!0,c=!1;try{if(s=(o=o.call(e)).next,t===0){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=s.call(o)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(u){c=!0,r=u}finally{try{if(!l&&o.return!=null&&(i=o.return(),Object(i)!==i))return}finally{if(c)throw r}}return a}}function eu(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function r1(e,t){if(e){if(typeof e=="string")return eu(e,t);var o={}.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?eu(e,t):void 0}}function RD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
371
+ .styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:var(--rt-arrow-size);height:var(--rt-arrow-size)}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})}));function t1({children:e,name:t,label:o,position:n="top",onClick:r=Ye,className:s="",tooltipStyle:i={color:"white",backgroundColor:"#2563EB",zIndex:100}}){const a=`${t}${Math.random().toFixed(10).toString()}`;return b.jsxs("div",{"data-tooltip-id":a,"data-tooltip-content":o,onClick:r,className:xe("flex flex-row items-center justify-center",s),children:[e,b.jsx(jR,{id:a,style:i,place:n})]})}function Ep({className:e="",onClick:t=Ye,icon:o,label:n}){return b.jsx(t1,{onClick:t,className:e,label:n,name:n,children:o})}function LR({onClick:e,label:t}){return b.jsx(Ep,{icon:b.jsx(u2,{className:"fill-gray-600",size:he.lg}),onClick:e,label:t})}function zR({isHighlighted:e=!1,onClick:t,label:o,categoryName:n,interestName:r,className:s=""}){return b.jsx(Ep,{icon:b.jsx(ru,{categoryName:n,interestName:r,size:he.lg,className:e?"fill-blue-500 text-blue-500 bg-blue-100 rounded-full p-1":"fill-gray-600 p-1"}),onClick:t,label:o,className:s})}function BR({tabName:e,isHighlighted:t,onPick:o,label:n,className:r,tabHighlightedClassName:s}){return b.jsx(ao,{className:xe("px-3 py-0.5 text-gray-600 text-center",r,t?s||"border-blue-500 border-b-2 text-blue-500":""),onClick:()=>o(e),children:n})}function FR({tabs:e,onPick:t,pickedTabName:o,className:n="",tabClassName:r="",tabHighlightedClassName:s=""}){const i=({name:a,label:l})=>b.jsx(BR,{tabName:a,isHighlighted:o===a,onPick:t,label:l,className:r,tabHighlightedClassName:s},a);return b.jsx(fs,{className:xe("flex flex-row whitespace-nowrap pb-1 overflow-x-auto hide-scrollbar-x",n),items:e,itemRenderer:i})}const VR=(e,t)=>{let o="py-0.5 px-2 gap-2";return e&&(o=xe(o,"items-center py-1 px-2 border-b-2 border-white")),t&&(e?o=xe(o,"border-blue-500"):o=`${o} bg-blue-200 rounded-full`),o},GR=(e,t)=>{let o="text-gray-600 text-sm";return t&&(o="text-blue-500"),e&&(o=xe(o,"text-xs -mt-3")),o};function yt({label:e="",isVertical:t=!1,isHighlighted:o=!1,className:n="",icon:{Svg:r,className:s="",size:i=he.lg},labelClassName:a="",isLabelHidden:l=!1,onClick:c=Ye}){return b.jsxs(pu,{className:xe(VR(t,o),n),isVertical:t,onClick:c,children:[b.jsx(r,{className:xe(`${o?"fill-blue-500 text-blue-500":"fill-gray-600"}`,s),size:i}),!l&&e&&b.jsx("div",{className:xe(GR(t,o),a),children:e})]})}function WR({isHighlighted:e,onClick:t,label:o}){return b.jsx(yt,{label:o,icon:{Svg:Yv},onClick:t,isVertical:!0,isHighlighted:e})}function qR({isHighlighted:e,onClick:t,label:o}){return b.jsx(yt,{label:o,icon:{Svg:_v},onClick:t,isHighlighted:e,isVertical:!0})}function HR({isHighlighted:e=!1,onClick:t=Ye,className:o=""}){return b.jsx(yt,{label:"Partners",icon:{Svg:t2},onClick:t,className:o,isHighlighted:e})}function ZR({isHighlighted:e=!1,onClick:t=Ye,className:o=""}){return b.jsx(yt,{label:"Newsfeed",icon:{Svg:e2},onClick:t,className:o,isHighlighted:e})}function YR({isHighlighted:e=!1,onClick:t=Ye,isVertical:o=!1,label:n="",labelClassName:r="",svgClassName:s="",svgSize:i=he.md}){return b.jsx(yt,{label:n,icon:{Svg:Jv,size:i,className:s},onClick:t,isHighlighted:e,isVertical:o,labelClassName:r})}function UR({label:e,onClick:t}){return b.jsx(yt,{label:e,icon:{Svg:Qv,size:he.md},onClick:t,isVertical:!0})}function JR({isHighlighted:e=!1,onClick:t}){return b.jsx(yt,{label:"Map",icon:{Svg:Uv},onClick:t,isVertical:!0,isHighlighted:e})}function XR({onClick:e,label:t="Copy"}){return b.jsx(yt,{label:t,className:"-gap-2 text-sm",icon:{Svg:M2,className:"text-blue-500 fill-none",size:he.sm},onClick:e,labelClassName:"text-blue-500"})}function QR(){return b.jsx(yt,{icon:{Svg:h2,className:"fill-blue-500"}})}function $R({label:e,onClick:t,className:o=""}){return b.jsx(yt,{icon:{Svg:b2,className:"fill-gray-600"},label:e,onClick:t,className:o})}function KR({label:e,isHighlighted:t,isLabelHidden:o}){return b.jsx(yt,{label:e,icon:{Svg:Xv},isLabelHidden:o,isHighlighted:t,isVertical:!0})}function _R({onClick:e}){return b.jsx(yt,{icon:{Svg:v2},onClick:e})}function eD({label:e,isHighlighted:t,isLabelHidden:o}){return b.jsx(yt,{label:e,icon:{Svg:$v,size:he.lg},isLabelHidden:o,isHighlighted:t,isVertical:!0})}function tD({isHighlighted:e,onClick:t=Ye,className:o="",categoryName:n,interestName:r,label:s}){return b.jsxs(Xa,{className:xe(`${e?"bg-blue-100 border-blue-500":"border-gray-300"} gap-0 rounded-full border px-1 py-0`,o),onClick:t,children:[b.jsx(ru,{interestName:r,categoryName:n,size:he.xs,className:e?"fill-blue-500 text-blue-500":"fill-gray-600"}),b.jsx(Nn,{text:s,className:e?"text-blue-500 text-sm":"text-gray-600 text-sm"})]})}function oD({isHighlighted:e,onClick:t=Ye,className:o="",categoryName:n,label:r}){return b.jsxs(Xa,{className:xe(`${e?"border-emerald-300":"border-gray-300"} gap-0 rounded-full border px-1 py-0`,o),onClick:t,children:[b.jsx(Rb,{categoryName:n,size:he.xs,className:e?"fill-emerald-300 text-emerald-300":"fill-gray-600"}),b.jsx(Nn,{text:r,className:e?"text-emerald-300":"text-gray-600"})]})}function nD({label:e="Comment",onClick:t}){return b.jsx(yt,{label:e,icon:{Svg:x2,size:he.md},onClick:t,isVertical:!0})}function rD({isHighlighted:e,className:t="",categoryName:o,interestName:n,label:r,labelHidden:s=!1}){return b.jsxs(mr,{className:xe("-gap-2 px-1 py-0 items-center",t),children:[b.jsx(ru,{interestName:n,categoryName:o,size:he.xs,className:e?"fill-blue-500 text-blue-500":"fill-gray-600"}),!s&&b.jsx(Nn,{text:r,className:e?"text-blue-500 text-xs":"text-gray-600 text-xs"})]})}function sD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgSize:r=he.md,labelClassName:s="",svgClassName:i="",isVertical:a=!1}){return b.jsx(yt,{label:e||"Team",icon:{Svg:o2,size:r,className:i},onClick:o,className:n,isHighlighted:t,labelClassName:s,isVertical:a})}function iD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgClassName:r="",svgSize:s=he.md,labelClassName:i="",isVertical:a=!1}){return b.jsx(yt,{label:e||"Arena",icon:{Svg:n2,size:s,className:r},onClick:o,className:n,isHighlighted:t,labelClassName:i,isVertical:a})}function aD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",labelClassName:r="",svgClassName:s="",svgSize:i=he.md,isVertical:a=!1}){return b.jsx(yt,{label:e||"Collection",icon:{Svg:r2,size:i,className:s},onClick:o,className:n,labelClassName:r,isHighlighted:t,isVertical:a})}function lD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgSize:r=he.md,labelClassName:s="",svgClassName:i="",isVertical:a=!1}){return b.jsx(yt,{label:e||"Event",icon:{Svg:I2,size:r,className:i},onClick:o,className:n,isHighlighted:t,isVertical:a,labelClassName:s})}function cD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgSize:r=he.md,labelClassName:s="",svgClassName:i="",isVertical:a=!1}){return b.jsx(yt,{label:e,icon:{Svg:T2,size:r,className:i},onClick:o,className:n,isHighlighted:t,labelClassName:s,isVertical:a})}function uD({label:e,svgSize:t=he.md,labelClassName:o="",svgClassName:n="",isVertical:r=!1}){return b.jsx(yt,{label:e,icon:{Svg:s2,size:t,className:n},isVertical:r,labelClassName:o})}function pD({label:e,isHighlighted:t=!1,onClick:o=Ye,className:n="",svgSize:r=he.md,labelClassName:s="",isVertical:i=!1}){return b.jsx(yt,{label:e,icon:{Svg:i2,size:r,className:"fill-blue-500"},onClick:o,className:n,isHighlighted:t,labelClassName:s,isVertical:i})}function dD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgClassName:r="",svgSize:s=he.md,labelClassName:i="",isVertical:a=!1}){return b.jsx(yt,{label:e,icon:{Svg:w2,size:s,className:r},onClick:o,className:n,isHighlighted:t,labelClassName:i,isVertical:a})}function fD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgClassName:r="",svgSize:s=he.md,labelClassName:i="",isVertical:a=!1}){return b.jsx(yt,{label:e,icon:{Svg:C2,size:s,className:r},onClick:o,className:n,isHighlighted:t,labelClassName:i,isVertical:a})}function mD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgSize:r=he.md}){return b.jsx(yt,{label:e||"Images",icon:{Svg:d2,size:r},onClick:o,className:n,isHighlighted:t})}function hD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgSize:r=he.md}){return b.jsx(yt,{label:e||"Polls",icon:{Svg:f2,size:r,className:t?"stroke-blue-500 fill-none":"stroke-gray-600 fill-none"},onClick:o,className:n,isHighlighted:t})}function yD({label:e="",isHighlighted:t=!1,onClick:o=Ye,className:n="",svgSize:r=he.md}){return b.jsx(yt,{label:e,icon:{Svg:Kv,size:r},onClick:o,className:n,isHighlighted:t,isVertical:!0})}function gD({isHighlighted:e=!1,onClick:t=Ye,className:o="",labelClassName:n="",svgClassName:r="",svgSize:s=he.md,label:i="",isVertical:a=!1}){return b.jsx(yt,{label:i||"Text",icon:{Svg:m2,size:s,className:r},onClick:t,className:o,labelClassName:n,isHighlighted:e,isVertical:a})}function bD({label:e,onClick:t=Ye}){return b.jsx(yt,{label:e,icon:{Svg:S2,className:"fill-gray-500",size:he.sm},isVertical:!1,onClick:t,labelClassName:"text-sm"})}function vD({label:e,onClick:t=Ye}){return b.jsx(yt,{label:e,icon:{Svg:A2,className:"fill-gray-500",size:he.sm},isVertical:!1,onClick:t,labelClassName:"text-sm"})}function TD({label:e,onClick:t=Ye}){return b.jsx(yt,{label:e,icon:{Svg:g2,className:"fill-gray-500",size:he.sm},isVertical:!1,onClick:t,labelClassName:"text-sm"})}function PD({address:e,locationType:t=fa.None,onClick:o=Ye}){const n=()=>{switch(t){case fa.Street:return b.jsx(vD,{label:e,onClick:o});case fa.City:return b.jsx(TD,{label:e,onClick:o});default:return b.jsx(bD,{label:e,onClick:o})}};return b.jsx(Yt,{className:"text-gray-600 bg-white rounded-lg w-fit",children:n()})}function xD({className:e="text-gray-300"}){return b.jsx("span",{className:e,children:" | "})}function Np({className:e="text-gray-300"}){return b.jsx("span",{className:e,children:" · "})}function CD({count:e=0,onClick:t,className:o="",textClassName:n="text-gray-500"}){return b.jsxs(ao,{className:o,onClick:t,children:[b.jsx("span",{children:"❤️ "}),b.jsx("span",{className:n,children:e})]})}function wD({className:e="",textClassName:t="text-gray-500 text-xs",count:o=0,isHighlighted:n=!1,onLike:r}){return b.jsxs(Yt,{className:e,children:[b.jsx(ao,{onClick:r,className:xe(t,`${n&&"text-blue-500"}`),children:"Like"}),o>0&&b.jsxs(b.Fragment,{children:[b.jsx(Np,{className:t}),b.jsx(CD,{count:o,onClick:Ye,className:t})]})]})}function ID({singleLabel:e,pluralLabel:t,count:o=0,onClick:n,className:r="text-gray-500 text-sm"}){return b.jsx(ao,{onClick:n,children:b.jsx("span",{className:r,children:`${o} ${o===1?e:t}`})})}var o1=(e=>(e[e.Comment=0]="Comment",e[e.Reply=1]="Reply",e))(o1||{});const SD={0:{Single:"Comment",Plural:"Comments"},1:{Single:"Reply",Plural:"Replies"}};function AD({type:e,className:t="",textClassName:o="text-gray-500 text-xs",count:n=0,onClick:r}){const s=SD[e];return b.jsxs(Xa,{className:t,onClick:r,children:[b.jsx(Nn,{className:o,text:s.Single}),n>0&&b.jsxs(b.Fragment,{children:[b.jsx(Np,{className:"text-gray-300"}),b.jsx(ID,{singleLabel:s.Single,pluralLabel:s.Plural,count:n,onClick:Ye,className:o})]})]})}function fr(e){"@babel/helpers - typeof";return fr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fr(e)}function MD(e,t){if(fr(e)!="object"||!e)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var n=o.call(e,t||"default");if(fr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n1(e){var t=MD(e,"string");return fr(t)=="symbol"?t:t+""}function ei(e,t,o){return(t=n1(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function Km(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),o.push.apply(o,n)}return o}function Ve(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?Km(Object(o),!0).forEach(function(n){ei(e,n,o[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Km(Object(o)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(o,n))})}return e}function kD(e){if(Array.isArray(e))return e}function OD(e,t){var o=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(o!=null){var n,r,s,i,a=[],l=!0,c=!1;try{if(s=(o=o.call(e)).next,t===0){if(Object(o)!==o)return;l=!1}else for(;!(l=(n=s.call(o)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(u){c=!0,r=u}finally{try{if(!l&&o.return!=null&&(i=o.return(),Object(i)!==i))return}finally{if(c)throw r}}return a}}function eu(e,t){(t==null||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function r1(e,t){if(e){if(typeof e=="string")return eu(e,t);var o={}.toString.call(e).slice(8,-1);return o==="Object"&&e.constructor&&(o=e.constructor.name),o==="Map"||o==="Set"?Array.from(e):o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?eu(e,t):void 0}}function RD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
372
372
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mn(e,t){return kD(e)||OD(e,t)||r1(e,t)||RD()}function xn(e,t){if(e==null)return{};var o,n,r=Se(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)o=s[n],t.indexOf(o)===-1&&{}.propertyIsEnumerable.call(e,o)&&(r[o]=e[o])}return r}var DD=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function ED(e){var t=e.defaultInputValue,o=t===void 0?"":t,n=e.defaultMenuIsOpen,r=n===void 0?!1:n,s=e.defaultValue,i=s===void 0?null:s,a=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,p=e.onMenuClose,f=e.onMenuOpen,d=e.value,m=xn(e,DD),h=V.useState(a!==void 0?a:o),y=mn(h,2),g=y[0],C=y[1],w=V.useState(l!==void 0?l:r),x=mn(w,2),I=x[0],M=x[1],E=V.useState(d!==void 0?d:i),D=mn(E,2),z=D[0],B=D[1],j=V.useCallback(function(O,F){typeof c=="function"&&c(O,F),B(O)},[c]),v=V.useCallback(function(O,F){var W;typeof u=="function"&&(W=u(O,F)),C(W!==void 0?W:O)},[u]),N=V.useCallback(function(){typeof f=="function"&&f(),M(!0)},[f]),k=V.useCallback(function(){typeof p=="function"&&p(),M(!1)},[p]),S=a!==void 0?a:g,R=l!==void 0?l:I,A=d!==void 0?d:z;return Ve(Ve({},m),{},{inputValue:S,menuIsOpen:R,onChange:j,onInputChange:v,onMenuClose:k,onMenuOpen:N,value:A})}function ND(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _m(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n1(n.key),n)}}function jD(e,t,o){return t&&_m(e.prototype,t),o&&_m(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}function LD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ja(e,t)}function Ha(e){return Ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Ha(e)}function s1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s1=function(){return!!e})()}function zD(e,t){if(t&&(fr(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wy(e)}function BD(e){var t=s1();return function(){var o,n=Ha(e);if(t){var r=Ha(this).constructor;o=Reflect.construct(n,arguments,r)}else o=n.apply(this,arguments);return zD(this,o)}}function FD(e){if(Array.isArray(e))return eu(e)}function VD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
373
373
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jp(e){return FD(e)||VD(e)||r1(e)||GD()}function WD(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function qD(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 Lp(e){return co(e)?e:e.contextElement}function uc(e){const t=Lp(e);if(!Eo(t))return io(1);const o=t.getBoundingClientRect(),{width:n,height:r,$:s}=qD(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 HD=io(0);function ZD(e){const t=qt(e);return!jl()||!t.visualViewport?HD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function YD(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==qt(e)?!1:t}function e0(e,t,o,n){t===void 0&&(t=!1),o===void 0&&(o=!1);const r=e.getBoundingClientRect(),s=Lp(e);let i=io(1);t&&(n?co(n)&&(i=uc(n)):i=uc(e));const a=YD(s,o,n)?ZD(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=uc(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 i1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function UD(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&&!i1(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 JD(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?pr(c):[],...pr(t)]:[];u.forEach(g=>{r&&g.addEventListener("scroll",o,{passive:!0}),s&&g.addEventListener("resize",o)});const p=c&&a?UD(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?e0(e):null;l&&y();function y(){const g=e0(e);h&&!i1(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)}}var XD=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Za=function(){};function QD(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function $D(e,t){for(var o=arguments.length,n=new Array(o>2?o-2:0),r=2;r<o;r++)n[r-2]=arguments[r];var s=[].concat(n);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&s.push("".concat(QD(e,i)));return s.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var t0=function(t){return iE(t)?t.filter(Boolean):fr(t)==="object"&&t!==null?[t]:[]},a1=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var o=xn(t,XD);return Ve({},o)},jt=function(t,o,n){var r=t.cx,s=t.getStyles,i=t.getClassNames,a=t.className;return{css:s(o,t),className:r(n??{},i(o,t),a)}};function Bl(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function KD(e){return Bl(e)?window.innerHeight:e.clientHeight}function l1(e){return Bl(e)?window.pageYOffset:e.scrollTop}function Ya(e,t){if(Bl(e)){window.scrollTo(0,t);return}e.scrollTop=t}function _D(e){var t=getComputedStyle(e),o=t.position==="absolute",n=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),!(o&&t.position==="static")&&n.test(t.overflow+t.overflowY+t.overflowX))return r;return document.documentElement}function eE(e,t,o,n){return o*((e=e/n-1)*e*e+1)+t}function aa(e,t){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Za,r=l1(e),s=t-r,i=10,a=0;function l(){a+=i;var c=eE(a,r,s,o);Ya(e,c),a<o?window.requestAnimationFrame(l):n(e)}l()}function o0(e,t){var o=e.getBoundingClientRect(),n=t.getBoundingClientRect(),r=t.offsetHeight/3;n.bottom+r>o.bottom?Ya(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+r,e.scrollHeight)):n.top-r<o.top&&Ya(e,Math.max(t.offsetTop-r,0))}function tE(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function n0(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function oE(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var c1=!1,nE={get passive(){return c1=!0}},la=typeof window<"u"?window:{};la.addEventListener&&la.removeEventListener&&(la.addEventListener("p",Za,nE),la.removeEventListener("p",Za,!1));var rE=c1;function sE(e){return e!=null}function iE(e){return Array.isArray(e)}function ca(e,t,o){return e?t:o}var aE=function(t){for(var o=arguments.length,n=new Array(o>1?o-1:0),r=1;r<o;r++)n[r-1]=arguments[r];var s=Object.entries(t).filter(function(i){var a=mn(i,1),l=a[0];return!n.includes(l)});return s.reduce(function(i,a){var l=mn(a,2),c=l[0],u=l[1];return i[c]=u,i},{})},lE=["children","innerProps"],cE=["children","innerProps"];function uE(e){var t=e.maxHeight,o=e.menuEl,n=e.minHeight,r=e.placement,s=e.shouldScroll,i=e.isFixedPosition,a=e.controlHeight,l=_D(o),c={placement:"bottom",maxHeight:t};if(!o||!o.offsetParent)return c;var u=l.getBoundingClientRect(),p=u.height,f=o.getBoundingClientRect(),d=f.bottom,m=f.height,h=f.top,y=o.offsetParent.getBoundingClientRect(),g=y.top,C=i?window.innerHeight:KD(l),w=l1(l),x=parseInt(getComputedStyle(o).marginBottom,10),I=parseInt(getComputedStyle(o).marginTop,10),M=g-I,E=C-h,D=M+w,z=p-w-h,B=d-C+w+x,j=w+h-I,v=160;switch(r){case"auto":case"bottom":if(E>=m)return{placement:"bottom",maxHeight:t};if(z>=m&&!i)return s&&aa(l,B,v),{placement:"bottom",maxHeight:t};if(!i&&z>=n||i&&E>=n){s&&aa(l,B,v);var N=i?E-x:z-x;return{placement:"bottom",maxHeight:N}}if(r==="auto"||i){var k=t,S=i?M:D;return S>=n&&(k=Math.min(S-x-a,t)),{placement:"top",maxHeight:k}}if(r==="bottom")return s&&Ya(l,B),{placement:"bottom",maxHeight:t};break;case"top":if(M>=m)return{placement:"top",maxHeight:t};if(D>=m&&!i)return s&&aa(l,j,v),{placement:"top",maxHeight:t};if(!i&&D>=n||i&&M>=n){var R=t;return(!i&&D>=n||i&&M>=n)&&(R=i?M-I:D-I),s&&aa(l,j,v),{placement:"top",maxHeight:R}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(r,'".'))}return c}function pE(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var u1=function(t){return t==="auto"?"bottom":t},dE=function(t,o){var n,r=t.placement,s=t.theme,i=s.borderRadius,a=s.spacing,l=s.colors;return Ve((n={label:"menu"},ei(n,pE(r),"100%"),ei(n,"position","absolute"),ei(n,"width","100%"),ei(n,"zIndex",1),n),o?{}:{backgroundColor:l.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},p1=V.createContext(null),fE=function(t){var o=t.children,n=t.minMenuHeight,r=t.maxMenuHeight,s=t.menuPlacement,i=t.menuPosition,a=t.menuShouldScrollIntoView,l=t.theme,c=V.useContext(p1)||{},u=c.setPortalPlacement,p=V.useRef(null),f=V.useState(r),d=mn(f,2),m=d[0],h=d[1],y=V.useState(null),g=mn(y,2),C=g[0],w=g[1],x=l.spacing.controlHeight;return Sa(function(){var I=p.current;if(I){var M=i==="fixed",E=a&&!M,D=uE({maxHeight:r,menuEl:I,minHeight:n,placement:s,shouldScroll:E,isFixedPosition:M,controlHeight:x});h(D.maxHeight),w(D.placement),u==null||u(D.placement)}},[r,s,i,a,n,u,x]),o({ref:p,placerProps:Ve(Ve({},t),{},{placement:C||u1(s),maxHeight:m})})},mE=function(t){var o=t.children,n=t.innerRef,r=t.innerProps;return Fe("div",L({},jt(t,"menu",{menu:!0}),{ref:n},r),o)},hE=mE,yE=function(t,o){var n=t.maxHeight,r=t.theme.spacing.baseUnit;return Ve({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},o?{}:{paddingBottom:r,paddingTop:r})},gE=function(t){var o=t.children,n=t.innerProps,r=t.innerRef,s=t.isMulti;return Fe("div",L({},jt(t,"menuList",{"menu-list":!0,"menu-list--is-multi":s}),{ref:r},n),o)},d1=function(t,o){var n=t.theme,r=n.spacing.baseUnit,s=n.colors;return Ve({textAlign:"center"},o?{}:{color:s.neutral40,padding:"".concat(r*2,"px ").concat(r*3,"px")})},bE=d1,vE=d1,TE=function(t){var o=t.children,n=o===void 0?"No options":o,r=t.innerProps,s=xn(t,lE);return Fe("div",L({},jt(Ve(Ve({},s),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},PE=function(t){var o=t.children,n=o===void 0?"Loading...":o,r=t.innerProps,s=xn(t,cE);return Fe("div",L({},jt(Ve(Ve({},s),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},xE=function(t){var o=t.rect,n=t.offset,r=t.position;return{left:o.left,position:r,top:n,width:o.width,zIndex:1}},CE=function(t){var o=t.appendTo,n=t.children,r=t.controlElement,s=t.innerProps,i=t.menuPlacement,a=t.menuPosition,l=V.useRef(null),c=V.useRef(null),u=V.useState(u1(i)),p=mn(u,2),f=p[0],d=p[1],m=V.useMemo(function(){return{setPortalPlacement:d}},[]),h=V.useState(null),y=mn(h,2),g=y[0],C=y[1],w=V.useCallback(function(){if(r){var E=tE(r),D=a==="fixed"?0:window.pageYOffset,z=E[f]+D;(z!==(g==null?void 0:g.offset)||E.left!==(g==null?void 0:g.rect.left)||E.width!==(g==null?void 0:g.rect.width))&&C({offset:z,rect:E})}},[r,a,f,g==null?void 0:g.offset,g==null?void 0:g.rect.left,g==null?void 0:g.rect.width]);Sa(function(){w()},[w]);var x=V.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),r&&l.current&&(c.current=JD(r,l.current,w,{elementResize:"ResizeObserver"in window}))},[r,w]);Sa(function(){x()},[x]);var I=V.useCallback(function(E){l.current=E,x()},[x]);if(!o&&a!=="fixed"||!g)return null;var M=Fe("div",L({ref:I},jt(Ve(Ve({},t),{},{offset:g.offset,position:a,rect:g.rect}),"menuPortal",{"menu-portal":!0}),s),n);return Fe(p1.Provider,{value:m},o?_o.createPortal(M,o):M)},wE=function(t){var o=t.isDisabled,n=t.isRtl;return{label:"container",direction:n?"rtl":void 0,pointerEvents:o?"none":void 0,position:"relative"}},IE=function(t){var o=t.children,n=t.innerProps,r=t.isDisabled,s=t.isRtl;return Fe("div",L({},jt(t,"container",{"--is-disabled":r,"--is-rtl":s}),n),o)},SE=function(t,o){var n=t.theme.spacing,r=t.isMulti,s=t.hasValue,i=t.selectProps.controlShouldRenderValue;return Ve({alignItems:"center",display:r&&s&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},o?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(n.baseUnit*2,"px")})},AE=function(t){var o=t.children,n=t.innerProps,r=t.isMulti,s=t.hasValue;return Fe("div",L({},jt(t,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":s}),n),o)},ME=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},kE=function(t){var o=t.children,n=t.innerProps;return Fe("div",L({},jt(t,"indicatorsContainer",{indicators:!0}),n),o)},r0,OE=["size"],RE=["innerProps","isRtl","size"];var DE={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},f1=function(t){var o=t.size,n=xn(t,OE);return Fe("svg",L({height:o,width:o,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:DE},n))},zp=function(t){return Fe(f1,L({size:20},t),Fe("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},m1=function(t){return Fe(f1,L({size:20},t),Fe("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},h1=function(t,o){var n=t.isFocused,r=t.theme,s=r.spacing.baseUnit,i=r.colors;return Ve({label:"indicatorContainer",display:"flex",transition:"color 150ms"},o?{}:{color:n?i.neutral60:i.neutral20,padding:s*2,":hover":{color:n?i.neutral80:i.neutral40}})},EE=h1,NE=function(t){var o=t.children,n=t.innerProps;return Fe("div",L({},jt(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),o||Fe(m1,null))},jE=h1,LE=function(t){var o=t.children,n=t.innerProps;return Fe("div",L({},jt(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),o||Fe(zp,null))},zE=function(t,o){var n=t.isDisabled,r=t.theme,s=r.spacing.baseUnit,i=r.colors;return Ve({label:"indicatorSeparator",alignSelf:"stretch",width:1},o?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:s*2,marginTop:s*2})},BE=function(t){var o=t.innerProps;return Fe("span",L({},o,jt(t,"indicatorSeparator",{"indicator-separator":!0})))},FE=H3(r0||(r0=WD([`
374
374
  0%, 80%, 100% { opacity: 0; }