1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5433a510-2e29-4b1c-94ff-d5adff80eca1",e._sentryDebugIdIdentifier="sentry-dbid-5433a510-2e29-4b1c-94ff-d5adff80eca1")}()}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6746],{46746:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a1});var r,i,o,a,s=n(28888),l=n(71534),u=n(91512),c=n(68008),d=n(36748),p=n(67689),h=n(64080),m=n(29731),f=n(14232);let g=f.createContext(null);function y(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 n=0;n<e.length;n++)if(!y(e[n],t[n]))return!1;return!0}if(Array.isArray(t))return!1;if("object"==typeof e&&"object"==typeof t){let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!t.hasOwnProperty(r)||!y(e[r],t[r]))return!1;return!0}return!1}function v(e,t){if(!e.getProjection)return;let n=e.getProjection();y(n,t.getProjection())||t.setProjection(n)}function x(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function w(e,t){let n=t.viewState||t,r=!1;if("longitude"in n&&"latitude"in n){let t=e.center;e.center=new t.constructor(n.longitude,n.latitude),r=r||t!==e.center}if("zoom"in n){let t=e.zoom;e.zoom=n.zoom,r=r||t!==e.zoom}if("bearing"in n){let t=e.bearing;e.bearing=n.bearing,r=r||t!==e.bearing}if("pitch"in n){let t=e.pitch;e.pitch=n.pitch,r=r||t!==e.pitch}return n.padding&&!e.isPaddingEqual(n.padding)&&(r=!0,e.padding=n.padding),r}let b=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function _(e){if(!e)return null;if("string"==typeof e||("toJS"in e&&(e=e.toJS()),!e.layers))return e;let t={};for(let n of e.layers)t[n.id]=n;let n=e.layers.map(e=>{let n=null;"interactive"in e&&(n=Object.assign({},e),delete n.interactive);let r=t[e.ref];if(r)for(let t of(n=n||Object.assign({},e),delete n.ref,b))t in r&&(n[t]=r[t]);return n||e});return{...e,layers:n}}var k=n(65364);let E={version:8,sources:{},layers:[]},C={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"},T={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"},P={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"},A=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],S=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class M{constructor(e,t,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=e=>{let t=this.props[P[e.type]];t?t(e):"error"===e.type&&console.error(e.error)},this._onPointerEvent=e=>{("mousemove"===e.type||"mouseout"===e.type)&&this._updateHover(e);let t=this.props[C[e.type]];t&&(this.props.interactiveLayerIds&&"mouseover"!==e.type&&"mouseout"!==e.type&&(e.features=this._hoveredFeatures||this._queryRenderedFeatures(e.point)),t(e),delete e.features)},this._onCameraEvent=e=>{if(!this._internalUpdate){let t=this.props[T[e.type]];t&&t(e)}e.type in this._deferredEvents&&(this._deferredEvents[e.type]=!1)},this._MapClass=e,this.props=t,this._initialize(n)}get map(){return this._map}get transform(){return this._renderTransform}setProps(e){let t=this.props;this.props=e;let n=this._updateSettings(e,t);n&&this._createShadowTransform(this._map);let r=this._updateSize(e),i=this._updateViewState(e,!0);this._updateStyle(e,t),this._updateStyleComponents(e,t),this._updateHandlers(e,t),(n||r||i&&!this._map.isMoving())&&this.redraw()}static reuse(e,t){let n=M.savedMaps.pop();if(!n)return null;let r=n.map,i=r.getContainer();for(t.className=i.className;i.childNodes.length>0;)t.appendChild(i.childNodes[0]);r._container=t;let o=r._resizeObserver;o&&(o.disconnect(),o.observe(t)),n.setProps({...e,styleDiffing:!1}),r.resize();let{initialViewState:a}=e;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(e){let{props:t}=this,{mapStyle:n=E}=t,r={...t,...t.initialViewState,accessToken:t.mapboxAccessToken||function(){let e=null;if("undefined"!=typeof location){let t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||k.env.MapboxAccessToken}catch(e){}try{e=e||k.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch(e){}return e}()||null,container:e,style:_(n)},i=r.initialViewState||r.viewState||r;if(Object.assign(r,{center:[i.longitude||0,i.latitude||0],zoom:i.zoom||0,pitch:i.pitch||0,bearing:i.bearing||0}),t.gl){let e=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=e,t.gl)}let o=new this._MapClass(r);i.padding&&o.setPadding(i.padding),t.cursor&&(o.getCanvas().style.cursor=t.cursor),this._createShadowTransform(o);let a=o._render;o._render=e=>{this._inRender=!0,a.call(o,e),this._inRender=!1};let s=o._renderTaskQueue.run;o._renderTaskQueue.run=e=>{s.call(o._renderTaskQueue,e),this._onBeforeRepaint()},o.on("render",()=>this._onAfterRepaint());let l=o.fire;
1for(let e in o.fire=this._fireEvent.bind(this,l),o.on("resize",()=>{this._renderTransform.resize(o.transform.width,o.transform.height)}),o.on("styledata",()=>{this._updateStyleComponents(this.props,{}),v(o.transform,this._renderTransform)}),o.on("sourcedata",()=>this._updateStyleComponents(this.props,{})),C)o.on(e,this._onPointerEvent);for(let e in T)o.on(e,this._onCameraEvent);for(let e in P)o.on(e,this._onEvent);this._map=o}recycle(){let e=this.map.getContainer().querySelector("[mapboxgl-children]");null==e||e.remove(),M.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){let e=this._map;!this._inRender&&e.style&&(e._frame&&(e._frame.cancel(),e._frame=null),e._render())}_createShadowTransform(e){let t=function(e){let t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}(e.transform);e.painter.transform=t,this._renderTransform=t}_updateSize(e){let{viewState:t}=e;if(t){let e=this._map;if(t.width!==e.transform.width||t.height!==e.transform.height)return e.resize(),!0}return!1}_updateViewState(e,t){if(this._internalUpdate)return!1;let n=this._map,r=this._renderTransform,{zoom:i,pitch:o,bearing:a}=r,s=n.isMoving();s&&(r.cameraElevationReference="sea");let l=w(r,{...x(n.transform),...e});if(s&&(r.cameraElevationReference="ground"),l&&t){let e=this._deferredEvents;e.move=!0,e.zoom||(e.zoom=i!==r.zoom),e.rotate||(e.rotate=a!==r.bearing),e.pitch||(e.pitch=o!==r.pitch)}return s||w(n.transform,e),l}_updateSettings(e,t){let n=this._map,r=!1;for(let i of A)if(i in e&&!y(e[i],t[i])){r=!0;let t=n[`set${i[0].toUpperCase()}${i.slice(1)}`];null==t||t.call(n,e[i])}return r}_updateStyle(e,t){if(e.cursor!==t.cursor&&(this._map.getCanvas().style.cursor=e.cursor||""),e.mapStyle!==t.mapStyle){let{mapStyle:t=E,styleDiffing:n=!0}=e,r={diff:n};return"localIdeographFontFamily"in e&&(r.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(_(t),r),!0}return!1}_updateStyleComponents(e,t){let n=this._map,r=!1;return n.isStyleLoaded()&&("light"in e&&n.setLight&&!y(e.light,t.light)&&(r=!0,n.setLight(e.light)),"fog"in e&&n.setFog&&!y(e.fog,t.fog)&&(r=!0,n.setFog(e.fog)),"terrain"in e&&n.setTerrain&&!y(e.terrain,t.terrain)&&(!e.terrain||n.getSource(e.terrain.source))&&(r=!0,n.setTerrain(e.terrain))),r}_updateHandlers(e,t){var n,r;let i=this._map,o=!1;for(let a of S){let s=null==(n=e[a])||n;y(s,null==(r=t[a])||r)||(o=!0,s?i[a].enable(s):i[a].disable())}return o}_queryRenderedFeatures(e){let t=this._map,n=t.transform,{interactiveLayerIds:r=[]}=this.props;try{return t.transform=this._renderTransform,t.queryRenderedFeatures(e,{layers:r.filter(t.getLayer.bind(t))})}catch(e){return[]}finally{t.transform=n}}_updateHover(e){var t;let{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){let n=e.type,r=(null==(t=this._hoveredFeatures)?void 0:t.length)>0,i=this._queryRenderedFeatures(e.point),o=i.length>0;!o&&r&&(e.type="mouseleave",this._onPointerEvent(e)),this._hoveredFeatures=i,o&&!r&&(e.type="mouseenter",this._onPointerEvent(e)),e.type=n}else this._hoveredFeatures=null}_fireEvent(e,t,n){let r=this._map,i=r.transform,o="string"==typeof t?t:t.type;return("move"===o&&this._updateViewState(this.props,!1),o in T&&("object"==typeof t&&(t.viewState=x(i)),this._map.isMoving()))?(r.transform=this._renderTransform,e.call(r,t,n),r.transform=i,r):(e.call(r,t,n),r)}_onBeforeRepaint(){let e=this._map;for(let t in this._internalUpdate=!0,this._deferredEvents)this._deferredEvents[t]&&e.fire(t);this._internalUpdate=!1;let t=this._map.transform;e.transform=this._renderTransform,this._onAfterRepaint=()=>{v(this._renderTransform,t),e.transform=t}}}M.savedMaps=[];let z=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"],L="undefined"!=typeof document?f.useLayoutEffect:f.useEffect,V=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"],j=f.createContext(null);var D=n(98477);let R=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function I(e,t){if(!e||!t)return;let n=e.style;for(let e in t){let r=t[e];Number.isFinite(r)&&!R.test(e)?n[e]=`${r}px`:n[e]=r}}let U=(0,f.memo)((0,f.forwardRef)(function(e,t){let{map:n,mapLib:r}=(0,f.useContext)(j),i=(0,f.useRef)({props:e});i.current.props=e;let o=(0,f.useMemo)(()=>{let t=!1;
1f.Children.forEach(e.children,e=>{e&&(t=!0)});let n={...e,element:t?document.createElement("div"):null},a=new r.Marker(n);return a.setLngLat([e.longitude,e.latitude]),a.getElement().addEventListener("click",e=>{var t,n;null==(n=(t=i.current.props).onClick)||n.call(t,{type:"click",target:a,originalEvent:e})}),a.on("dragstart",e=>{var t,n;e.lngLat=o.getLngLat(),null==(n=(t=i.current.props).onDragStart)||n.call(t,e)}),a.on("drag",e=>{var t,n;e.lngLat=o.getLngLat(),null==(n=(t=i.current.props).onDrag)||n.call(t,e)}),a.on("dragend",e=>{var t,n;e.lngLat=o.getLngLat(),null==(n=(t=i.current.props).onDragEnd)||n.call(t,e)}),a},[]);(0,f.useEffect)(()=>(o.addTo(n.getMap()),()=>{o.remove()}),[]);let{longitude:a,latitude:s,offset:l,style:u,draggable:c=!1,popup:d=null,rotation:p=0,rotationAlignment:h="auto",pitchAlignment:m="auto"}=e;return(0,f.useEffect)(()=>{I(o.getElement(),u)},[u]),(0,f.useImperativeHandle)(t,()=>o,[]),(o.getLngLat().lng!==a||o.getLngLat().lat!==s)&&o.setLngLat([a,s]),l&&!function(e,t){let n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,i=Array.isArray(t)?t[0]:t?t.x:0,o=Array.isArray(t)?t[1]:t?t.y:0;return n===i&&r===o}(o.getOffset(),l)&&o.setOffset(l),o.isDraggable()!==c&&o.setDraggable(c),o.getRotation()!==p&&o.setRotation(p),o.getRotationAlignment()!==h&&o.setRotationAlignment(h),o.getPitchAlignment()!==m&&o.setPitchAlignment(m),o.getPopup()!==d&&o.setPopup(d),(0,D.createPortal)(e.children,o.getElement())}));function B(e){return new Set(e?e.trim().split(/\s+/):[])}(0,f.memo)((0,f.forwardRef)(function(e,t){let{map:n,mapLib:r}=(0,f.useContext)(j),i=(0,f.useMemo)(()=>document.createElement("div"),[]),o=(0,f.useRef)({props:e});o.current.props=e;let a=(0,f.useMemo)(()=>{let t={...e},n=new r.Popup(t);return n.setLngLat([e.longitude,e.latitude]),n.once("open",e=>{var t,n;null==(n=(t=o.current.props).onOpen)||n.call(t,e)}),n},[]);if((0,f.useEffect)(()=>{let e=e=>{var t,n;null==(n=(t=o.current.props).onClose)||n.call(t,e)};return a.on("close",e),a.setDOMContent(i).addTo(n.getMap()),()=>{a.off("close",e),a.isOpen()&&a.remove()}},[]),(0,f.useEffect)(()=>{I(a.getElement(),e.style)},[e.style]),(0,f.useImperativeHandle)(t,()=>a,[]),a.isOpen()&&((a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!y(a.options.offset,e.offset)&&a.setOffset(e.offset),(a.options.anchor!==e.anchor||a.options.maxWidth!==e.maxWidth)&&(a.options.anchor=e.anchor,a.setMaxWidth(e.maxWidth)),a.options.className!==e.className)){let t=B(a.options.className),n=B(e.className);for(let e of t)n.has(e)||a.removeClassName(e);for(let e of n)t.has(e)||a.addClassName(e);a.options.className=e.className}return(0,D.createPortal)(e.children,i)}));let F=function(e,t,n,r){let i=(0,f.useContext)(j),o=(0,f.useMemo)(()=>e(i),[]);return(0,f.useEffect)(()=>{let e=r||n||t,a="function"==typeof t&&"function"==typeof n?t:null,s="function"==typeof n?n:"function"==typeof t?t:null,{map:l}=i;return!l.hasControl(o)&&(l.addControl(o,null==e?void 0:e.position),a&&a(i)),()=>{s&&s(i),l.hasControl(o)&&l.removeControl(o)}},[]),o};(0,f.memo)(function(e){let t=F(({mapLib:t})=>new t.AttributionControl(e),{position:e.position});return(0,f.useEffect)(()=>{I(t._container,e.style)},[e.style]),null}),(0,f.memo)(function(e){let t=F(({mapLib:t})=>new t.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return(0,f.useEffect)(()=>{I(t._controlContainer,e.style)},[e.style]),null}),(0,f.memo)((0,f.forwardRef)(function(e,t){let n=(0,f.useRef)({props:e}),r=F(({mapLib:t})=>{let r=new t.GeolocateControl(e),i=r._setupUI;return r._setupUI=e=>{r._container.hasChildNodes()||i(e)},r.on("geolocate",e=>{var t,r;null==(r=(t=n.current.props).onGeolocate)||r.call(t,e)}),r.on("error",e=>{var t,r;null==(r=(t=n.current.props).onError)||r.call(t,e)}),r.on("outofmaxbounds",e=>{var t,r;null==(r=(t=n.current.props).onOutOfMaxBounds)||r.call(t,e)}),r.on("trackuserlocationstart",e=>{var t,r;null==(r=(t=n.current.props).onTrackUserLocationStart)||r.call(t,e)}),r.on("trackuserlocationend",e=>{var t,r;null==(r=(t=n.current.props).onTrackUserLocationEnd)||r.call(t,e)}),r},{position:e.position});return n.current.props=e,(0,f.useImperativeHandle)(t,()=>r,[]),(0,f.useEffect)(()=>{I(r._container,e.style)},[e.style]),null}));let O=(0,f.memo)(function(e){let t=F(({mapLib:t})=>new t.NavigationControl(e),{position:e.position});return(0,f.useEffect)(()=>{I(t._container,e.style)},[e.style]),null});function $(e,t){if(!e)throw Error(t)}(0,f.memo)(function(e){let t=F(({mapLib:t})=>new t.ScaleControl(e),{position:e.position}),n=(0,f.useRef)(e),r=n.current;n.current=e;let{style:i}=e;return void 0!==e.maxWidth&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),void 0!==e.unit&&e.unit!==r.unit&&t.setUnit(e.unit),(0,f.useEffect)(()=>{I(t._container,i)},[i]),null});let N=0,H=0,W=Promise.resolve().then(n.t.bind(n,31198,23)),Z=f.forwardRef(function(e,t){return function(e,t,n){let r=(0,f.useContext)(g),[i,o]=(0,f.useState)(null),a=(0,f.useRef)(),{current:s}=(0,f.useRef)({mapLib:null,map:null});(0,f.useEffect)(()=>{let t,i=e.mapLib,l=!0;return Promise.resolve(i||n).then(n=>{if(!l)return;if(!n)throw Error("Invalid mapLib");let i="Map"in n?n:n.default;if(!i.Map)throw Error("Invalid mapLib");for(let t of V)t in e&&(i[t]=e[t]);
1let{RTLTextPlugin:u="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=e;if(u&&i.getRTLTextPluginStatus&&"unavailable"===i.getRTLTextPluginStatus()&&i.setRTLTextPlugin(u,e=>{e&&console.error(e)},!0),!i.supported||i.supported(e))e.reuseMaps&&(t=M.reuse(e,a.current)),t||(t=new M(i.Map,e,a.current)),s.map=function(e){if(!e)return null;let t=e.map,n={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=>{let r=t.transform;t.transform=e.transform;let i=t.project(n);return t.transform=r,i},unproject:n=>{let r=t.transform;t.transform=e.transform;let i=t.unproject(n);return t.transform=r,i},queryTerrainElevation:(n,r)=>{let i=t.transform;t.transform=e.transform;let o=t.queryTerrainElevation(n,r);return t.transform=i,o},queryRenderedFeatures:(n,r)=>{let i=t.transform;t.transform=e.transform;let o=t.queryRenderedFeatures(n,r);return t.transform=i,o}};for(let e of function(e){let t=new Set,n=e;for(;n;){for(let r of Object.getOwnPropertyNames(n))"_"!==r[0]&&"function"==typeof e[r]&&"fire"!==r&&"setEventedParent"!==r&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}(t))e in n||z.includes(e)||(n[e]=t[e].bind(t));return n}(t),s.mapLib=i,o(t),null==r||r.onMapMount(s.map,e.id);else throw Error("Map is not supported by this browser")}).catch(t=>{let{onError:n}=e;n?n({type:"error",target:null,originalEvent:null,error:t}):console.error(t)}),()=>{l=!1,t&&(null==r||r.onMapUnmount(e.id),e.reuseMaps?t.recycle():t.destroy())}},[]),L(()=>{i&&i.setProps(e)}),(0,f.useImperativeHandle)(t,()=>s.map,[i]);let l=(0,f.useMemo)(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]);return f.createElement("div",{id:e.id,ref:a,style:l},i&&f.createElement(j.Provider,{value:s},f.createElement("div",{"mapboxgl-children":"",style:{height:"100%"}},e.children)))}(e,t,W)}),q=function(e){let t=(0,f.useContext)(j).map.getMap(),n=(0,f.useRef)(e),[,r]=(0,f.useState)(0),i=(0,f.useMemo)(()=>e.id||`jsx-layer-${N++}`,[]);if((0,f.useEffect)(()=>{if(t){let e=()=>r(e=>e+1);return t.on("styledata",e),e(),()=>{t.off("styledata",e),t.style&&t.style._loaded&&t.getLayer(i)&&t.removeLayer(i)}}},[t]),t&&t.style&&t.getLayer(i))try{!function(e,t,n,r){if($(n.id===r.id,"layer id changed"),$(n.type===r.type,"layer type changed"),"custom"===n.type||"custom"===r.type)return;let{layout:i={},paint:o={},filter:a,minzoom:s,maxzoom:l,beforeId:u}=n;if(u!==r.beforeId&&e.moveLayer(t,u),i!==r.layout){let n=r.layout||{};for(let r in i)y(i[r],n[r])||e.setLayoutProperty(t,r,i[r]);for(let r in n)i.hasOwnProperty(r)||e.setLayoutProperty(t,r,void 0)}if(o!==r.paint){let n=r.paint||{};for(let r in o)y(o[r],n[r])||e.setPaintProperty(t,r,o[r]);for(let r in n)o.hasOwnProperty(r)||e.setPaintProperty(t,r,void 0)}y(a,r.filter)||e.setFilter(t,a),(s!==r.minzoom||l!==r.maxzoom)&&e.setLayerZoomRange(t,s,l)}(t,i,e,n.current)}catch(e){console.warn(e)}else if(t.style&&t.style._loaded&&(!("source"in e)||t.getSource(e.source))){let n={...e,id:i};delete n.beforeId,t.addLayer(n,e.beforeId)}return n.current=e,null},Y=function(e){let t=(0,f.useContext)(j).map.getMap(),n=(0,f.useRef)(e),[,r]=(0,f.useState)(0),i=(0,f.useMemo)(()=>e.id||`jsx-source-${H++}`,[]);(0,f.useEffect)(()=>{if(t){let e=()=>setTimeout(()=>r(e=>e+1),0);return t.on("styledata",e),e(),()=>{var n;if(t.off("styledata",e),t.style&&t.style._loaded&&t.getSource(i)){let e=null==(n=t.getStyle())?void 0:n.layers;if(e)for(let n of e)n.source===i&&t.removeLayer(n.id);t.removeSource(i)}}}},[t]);let o=t&&t.style&&t.getSource(i);return o?!function(e,t,n){$(t.id===n.id,"source id changed"),$(t.type===n.type,"source type changed");let r="",i=0;for(let e in t)"children"!==e&&"id"!==e&&!y(n[e],t[e])&&(r=e,i++);if(!i)return;let o=t.type;if("geojson"===o)e.setData(t.data);else if("image"===o)e.updateImage({url:t.url,coordinates:t.coordinates});else if("setCoordinates"in e&&1===i&&"coordinates"===r)e.setCoordinates(t.coordinates);else if("setUrl"in e)switch(r){case"url":e.setUrl(t.url);break;case"tiles":e.setTiles(t.tiles)}else console.warn(`Unable to update <Source> prop: ${r}`)}(o,e,n.current):o=function(e,t,n){if(e.style&&e.style._loaded){let r={...n};return delete r.id,delete r.children,e.addSource(t,r),e.getSource(t)}return null}(t,i,e),n.current=e,o&&f.Children.map(e.children,e=>e&&(0,f.cloneElement)(e,{source:i}))||null};var G=n(37876),X=n(80427),K=n(11642),J=n(31198),Q=Math.pow,ee=(e,t,n
1)=>new Promise((r,i)=>{var o=e=>{try{s(n.next(e))}catch(e){i(e)}},a=e=>{try{s(n.throw(e))}catch(e){i(e)}},s=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,a);s((n=n.apply(e,t)).next())}),et=Uint8Array,en=Uint16Array,er=Int32Array,ei=new et([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),eo=new et([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ea=new et([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),es=function(e,t){for(var n=new en(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new er(n[30]),r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return{b:n,r:i}},el=es(ei,2),eu=el.b,ec=el.r;eu[28]=258,ec[258]=28;var ed=es(eo,0),ep=ed.b;ed.r;var eh=new en(32768);for(i=0;i<32768;++i)r=(61680&(r=(52428&(r=(43690&i)>>1|(21845&i)<<1))>>2|(13107&r)<<2))>>4|(3855&r)<<4,eh[i]=((65280&r)>>8|(255&r)<<8)>>1;var em=function(e,t,n){for(var r,i=e.length,o=0,a=new en(t);o<i;++o)e[o]&&++a[e[o]-1];var s=new en(t);for(o=1;o<t;++o)s[o]=s[o-1]+a[o-1]<<1;if(n){r=new en(1<<t);var l=15-t;for(o=0;o<i;
1++o)if(e[o])for(var u=o<<4|e[o],c=t-e[o],d=s[e[o]-1]++<<c,p=d|(1<<c)-1;d<=p;++d)r[eh[d]>>l]=u}else for(o=0,r=new en(i);o<i;++o)e[o]&&(r[o]=eh[s[e[o]-1]++]>>15-e[o]);return r},ef=new et(288);for(i=0;i<144;++i)ef[i]=8;for(i=144;i<256;++i)ef[i]=9;for(i=256;i<280;++i)ef[i]=7;for(i=280;i<288;++i)ef[i]=8;var eg=new et(32);for(i=0;i<32;++i)eg[i]=5;var ey=em(ef,9,1),ev=em(eg,5,1),ex=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},ew=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(7&t)&n},eb=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},e_=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new et(n-t);return r.set(e.subarray(t,n)),r},ek=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],eE=function(e,t,n){var r=Error(t||ek[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,eE),!n)throw r;return r},eC=function(e,t,n,r){var i=e.length,o=r?r.length:0;if(!i||t.f&&!t.l)return n||new et(0);var a=!n||2!=t.i,s=t.i;n||(n=new et(3*i));var l=function(e){var t=n.length;if(e>t){var r=new et(Math.max(2*t,e));r.set(n),n=r}},u=t.f||0,c=t.p||0,d=t.b||0,p=t.l,h=t.d,m=t.m,f=t.n,g=8*i;do{if(!p){u=ew(e,c,1);var y=ew(e,c+1,3);if(c+=3,y)if(1==y)p=ey,h=ev,m=9,f=5;else if(2==y){var v=ew(e,c,31)+257,x=ew(e,c+10,15)+4,w=v+ew(e,c+5,31)+1;c+=14;for(var b=new et(w),_=new et(19),k=0;k<x;++k)_[ea[k]]=ew(e,c+3*k,7);c+=3*x;for(var E=ex(_),C=(1<<E)-1,T=em(_,E,1),k=0;k<w;){var P=T[ew(e,c,C)];c+=15&P;var A=P>>4;if(A<16)b[k++]=A;else{var S=0,M=0;for(16==A?(M=3+ew(e,c,3),c+=2,S=b[k-1]):17==A?(M=3+ew(e,c,7),c+=3):18==A&&(M=11+ew(e,c,127),c+=7);M--;)b[k++]=S}}var z=b.subarray(0,v),L=b.subarray(v);m=ex(z),f=ex(L),p=em(z,m,1),h=em(L,f,1)}else eE(1);else{var A=((c+7)/8|0)+4,V=e[A-4]|e[A-3]<<8,j=A+V;if(j>i){s&&eE(0);break}a&&l(d+V),n.set(e.subarray(A,j),d),t.b=d+=V,t.p=c=8*j,t.f=u;continue}if(c>g){s&&eE(0);break}}a&&l(d+131072);for(var D=(1<<m)-1,R=(1<<f)-1,I=c;;I=c){var S=p[eb(e,c)&D],U=S>>4;if((c+=15&S)>g){s&&eE(0);break}if(S||eE(2),U<256)n[d++]=U;else if(256==U){I=c,p=null;break}else{var B=U-254;if(U>264){var k=U-257,F=ei[k];B=ew(e,c,(1<<F)-1)+eu[k],c+=F}var O=h[eb(e,c)&R],$=O>>4;O||eE(3),c+=15&O;var L=ep[$];if($>3){var F=eo[$];L+=eb(e,c)&(1<<F)-1,c+=F}if(c>g){s&&eE(0);break}a&&l(d+131072);var N=d+B;if(d<L){var H=o-L,W=Math.min(L,N);for(H+d<0&&eE(3);d<W;++d)n[d]=r[H+d]}for(;d<N;d+=4)n[d]=n[d-L],n[d+1]=n[d+1-L],n[d+2]=n[d+2-L],n[d+3]=n[d+3-L];d=N}}t.l=p,t.p=I,t.b=d,t.f=u,p&&(u=1,t.m=m,t.d=h,t.n=f)}while(!u);return d==n.length?n:e_(n,0,d)},eT=new et(0),eP=function(e){(31!=e[0]||139!=e[1]||8!=e[2])&&eE(6,"invalid gzip data");var t=e[3],n=10;4&t&&(n+=(e[10]|e[11]<<8)+2);for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(2&t)},eA=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0};function eS(e,t){var n,r;return 31==e[0]&&139==e[1]&&8==e[2]?((n=eP(e))+8>e.length&&eE(6,"invalid gzip data"),eC(e.subarray(n,-8),{i:2},t&&t.out||new et(eA(e)),t&&t.dictionary)):(15&e[0])!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?eC(e,{i:2},t&&t.out,t&&t.dictionary):eC(e.subarray((r=t&&t.dictionary,((15&e[0])!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&eE(6,"invalid zlib data"),(e[1]>>5&1)==+!r&&eE(6,"invalid zlib data: "+(32&e[1]?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2),-4),{i:2},t&&t.out,t&&t.dictionary)}var eM="undefined"!=typeof TextDecoder&&new TextDecoder;try{eM.decode(eT,{stream:!0})}catch(e){}var ez=(e,t)=>e*Q(2,t),eL=(e,t)=>Math.floor(e/Q(2,t)),eV=(e,t)=>ez(e.getUint16(t+1,!0),8)+e.getUint8(t),ej=(e,t)=>ez(e.getUint32(t+2,!0),16)+e.getUint16(t,!0),eD=(e,t,n,r,i)=>{if(e!==r.getUint8(i))return e-r.getUint8(i);let o=eV(r,i+1);if(t!==o)return t-o;let a=eV(r,i+4);return n!==a?n-a:0},eR=(e,t,n,r)=>{let i=eI(e,t,n,r);return i?{z:t,x:n,y:r,offset:i[0],length:i[1],isDir:!1}:null},eI=(e,t,n,r)=>{let i=0,o=e.byteLength/17-1;for(;i<=o;){let a=o+i>>1,s=eD(t,n,r,e,17*a);if(s>0)i=a+1;else{if(!(s<0))return[ej(e,17*a+7),e.getUint32(17*a+13,!0)];o=a-1}}return null},eU=(e,t)=>e.isDir&&!t.isDir?1:!e.isDir&&t.isDir?-1:e.z!==t.z?e.z-t.z:e.x!==t.x?e.x-t.x:e.y-t.y,eB=(e,t)=>{let n=e.getUint8(17*t);return{z:127&n,x:eV(e,17*t+1),y:eV(e,17*t+4),offset:ej(e,17*t+7),length:e.getUint32(17*t+13,!0),isDir:n>>7==1}},eF=e=>{let t=[],n=new DataView(e);for(let e=0;e<n.byteLength/17;e++)t.push(eB(n,e));return eO(t)},eO=e=>{e.sort(eU);let t=new ArrayBuffer(17*e.length),n=new Uint8Array(t);for(let t=0;t<e.length;t++){let r=e[t],i=r.z;r.isDir&&(i|=128),n[17*t]=i,n[17*t+1]=255&r.x,n[17*t+2]=r.x>>8&255,n[17*t+3]=r.x>>16&255,n[17*t+4]=255&r.y,n[17*t+5]=r.y>>8&255,n[17*t+6]=r.y>>
116&255,n[17*t+7]=255&r.offset,n[17*t+8]=255&eL(r.offset,8),n[17*t+9]=255&eL(r.offset,16),n[17*t+10]=255&eL(r.offset,24),n[17*t+11]=255&eL(r.offset,32),n[17*t+12]=255&eL(r.offset,48),n[17*t+13]=255&r.length,n[17*t+14]=r.length>>8&255,n[17*t+15]=r.length>>16&255,n[17*t+16]=r.length>>24&255}return t},e$={getHeader:function(e){return ee(this,null,function*(){let t=yield e.getBytes(0,512e3),n=new DataView(t.data),r=n.getUint32(4,!0),i=n.getUint16(8,!0),o=JSON.parse(new TextDecoder("utf-8").decode(new DataView(t.data,10,r))),a=0;"gzip"===o.compression&&(a=2);let s=0;"minzoom"in o&&(s=+o.minzoom);let l=0;"maxzoom"in o&&(l=+o.maxzoom);let u=0,c=0,d=0,p=-180,h=-85,m=180,f=85;if(o.bounds){let e=o.bounds.split(",");p=+e[0],h=+e[1],m=+e[2],f=+e[3]}if(o.center){let e=o.center.split(",");u=+e[0],c=+e[1],d=+e[2]}return{specVersion:n.getUint16(2,!0),rootDirectoryOffset:10+r,rootDirectoryLength:17*i,jsonMetadataOffset:10,jsonMetadataLength:r,leafDirectoryOffset:0,leafDirectoryLength:void 0,tileDataOffset:0,tileDataLength:void 0,numAddressedTiles:0,numTileEntries:0,numTileContents:0,clustered:!1,internalCompression:1,tileCompression:a,tileType:1,minZoom:s,maxZoom:l,minLon:p,minLat:h,maxLon:m,maxLat:f,centerZoom:d,centerLon:u,centerLat:c,etag:t.etag}})},getZxy:function(e,t,n,r,i,o,a){return ee(this,null,function*(){let s=yield n.getArrayBuffer(t,e.rootDirectoryOffset,e.rootDirectoryLength,e);1===e.specVersion&&(s=eF(s));let l=eR(new DataView(s),r,i,o);if(l){let e=(yield t.getBytes(l.offset,l.length,a)).data,n=new DataView(e);return 31===n.getUint8(0)&&139===n.getUint8(1)&&(e=eS(new Uint8Array(e))),{data:e}}let u=((e,t)=>{if(e.byteLength<17)return null;let n=e.byteLength/17,r=eB(e,n-1);if(r.isDir){let e=r.z,n=t.z-e;return{z:e,x:Math.trunc(t.x/(1<<n)),y:Math.trunc(t.y/(1<<n))}}return null})(new DataView(s),{z:r,x:i,y:o});if(u){let l=((e,t,n,r)=>{let i=eI(e,128|t,n,r);return i?{z:t,x:n,y:r,offset:i[0],length:i[1],isDir:!0}:null})(new DataView(s),u.z,u.x,u.y);if(l){let s=yield n.getArrayBuffer(t,l.offset,l.length,e);1===e.specVersion&&(s=eF(s));let u=eR(new DataView(s),r,i,o);if(u){let e=(yield t.getBytes(u.offset,u.length,a)).data,n=new DataView(e);return 31===n.getUint8(0)&&139===n.getUint8(1)&&(e=eS(new Uint8Array(e))),{data:e}}}}})}},eN=class{constructor(e){this.tilev4=(e,t)=>ee(this,null,function*(){if("json"===e.type){let t=e.url.substr(10),n=this.tiles.get(t);if(n||(n=new e0(t),this.tiles.set(t,n)),this.metadata)return{data:yield n.getTileJson(e.url)};let r=yield n.getHeader();return{data:{tiles:[`${e.url}/{z}/{x}/{y}`],minzoom:r.minZoom,maxzoom:r.maxZoom,bounds:[r.minLon,r.minLat,r.maxLon,r.maxLat]}}}let n=new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/),r=e.url.match(n);if(!r)throw Error("Invalid PMTiles protocol URL");let i=r[1],o=this.tiles.get(i);o||(o=new e0(i),this.tiles.set(i,o));let a=r[2],s=r[3],l=r[4],u=yield o.getHeader(),c=yield null==o?void 0:o.getZxy(+a,+s,+l,t.signal);return c?{data:new Uint8Array(c.data),cacheControl:c.cacheControl,expires:c.expires}:1===u.tileType?{data:new Uint8Array}:{data:null}}),this.tile=(e=>(t,n)=>{if(n instanceof AbortController)return e(t,n);let r=new AbortController;return e(t,r).then(e=>n(void 0,e.data,e.cacheControl||"",e.expires||""),e=>n(e)).catch(e=>n(e)),{cancel:()=>r.abort()}})(this.tilev4),this.tiles=new Map,this.metadata=(null==e?void 0:e.metadata)||!1}add(e){this.tiles.set(e.source.getKey(),e)}get(e){return this.tiles.get(e)}};function eH(e){let t=e.buf,n=t[e.pos++],r=127&n;if(n<128||(r|=(127&(n=t[e.pos++]))<<7,n<128)||(r|=(127&(n=t[e.pos++]))<<14,n<128)||(r|=(127&(n=t[e.pos++]))<<21,n<128))return r;var i=r|=(15&(n=t[e.pos]))<<28;let o=e.buf,a=o[e.pos++],s=(112&a)>>4;if(a<128||(s|=(127&(a=o[e.pos++]))<<3,a<128)||(s|=(127&(a=o[e.pos++]))<<10,a<128)||(s|=(127&(a=o[e.pos++]))<<17,a<128)||(s|=(127&(a=o[e.pos++]))<<24,a<128)||(s|=(1&(a=o[e.pos++]))<<31,a<128))return(s>>>0)*0x100000000+(i>>>0);throw Error("Expected varint not more than 10 bytes")}var eW=[0,1,5,21,85,341,1365,5461,21845,87381,349525,1398101,5592405,0x1555555,0x5555555,0x15555555,0x55555555,0x155555555,0x555555555,0x1555555555,0x5555555555,0x15555555555,0x55555555555,0x155555555555,0x555555555555,0x1555555555555,0x5555555555555],eZ=(e=>(e[e.Unknown=0]="Unknown",e[e.None=1]="None",e[e.Gzip=2]="Gzip",e[e.Brotli=3]="Brotli",e[e.Zstd=4]="Zstd",e))(eZ||{});function eq(e,t){return ee(this,null,function*(){if(1===t||0===t)return e;if(2===t){if(void 0===globalThis.DecompressionStream)return eS(new Uint8Array(e));let t=new Response(e).body;if(!t)throw Error("Failed to read response stream");return new Response(t.pipeThrough(new globalThis.DecompressionStream("gzip"))).arrayBuffer()}throw Error("Compression method not supported")})}var eY=(e=>(e[e.Unknown=0]="Unknown",e[e.Mvt=1]="Mvt",e[e.Png=2]="Png",e[e.Jpeg=3]="Jpeg",e[e.Webp=4]="Webp",e[e.Avif=5]="Avif",e))(eY||{}),eG=class{constructor(e,t=new Headers){this.url=e,this.customHeaders=t,this.mustReload=!1;let n="";
1"navigator"in globalThis&&(n=globalThis.navigator.userAgent||"");let r=n.indexOf("Windows")>-1,i=/Chrome|Chromium|Edg|OPR|Brave/.test(n);this.chromeWindowsNoCache=!1,r&&i&&(this.chromeWindowsNoCache=!0)}getKey(){return this.url}setHeaders(e){this.customHeaders=e}getBytes(e,t,n,r){return ee(this,null,function*(){let i,o,a;o=n||(i=new AbortController).signal;let s=new Headers(this.customHeaders);s.set("range",`bytes=${e}-${e+t-1}`),this.mustReload?a="reload":this.chromeWindowsNoCache&&(a="no-store");let l=yield fetch(this.url,{signal:o,cache:a,headers:s});if(0===e&&416===l.status){let e=l.headers.get("Content-Range");if(!e||!e.startsWith("bytes */"))throw Error("Missing content-length on 416 response");let t=+e.substr(8);l=yield fetch(this.url,{signal:o,cache:"reload",headers:{range:`bytes=0-${t-1}`}})}let u=l.headers.get("Etag");if((null==u?void 0:u.startsWith("W/"))&&(u=null),416===l.status||r&&u&&u!==r)throw this.mustReload=!0,new eJ(`Server returned non-matching ETag ${r} after one retry. Check browser extensions and servers for issues that may affect correct ETag headers.`);if(l.status>=300)throw Error(`Bad response code: ${l.status}`);let c=l.headers.get("Content-Length");if(200===l.status&&(!c||+c>t))throw i&&i.abort(),Error("Server returned no content-length header or content-length exceeding request. Check that your storage backend supports HTTP Byte Serving.");return{data:yield l.arrayBuffer(),etag:u||void 0,cacheControl:l.headers.get("Cache-Control")||void 0,expires:l.headers.get("Expires")||void 0}})}};function eX(e,t){let n=e.getUint32(t+4,!0),r=e.getUint32(t+0,!0);return n*Q(2,32)+r}function eK(e){let t={buf:new Uint8Array(e),pos:0},n=eH(t),r=[],i=0;for(let e=0;e<n;e++){let e=eH(t);r.push({tileId:i+e,offset:0,length:0,runLength:1}),i+=e}for(let e=0;e<n;e++)r[e].runLength=eH(t);for(let e=0;e<n;e++)r[e].length=eH(t);for(let e=0;e<n;e++){let n=eH(t);0===n&&e>0?r[e].offset=r[e-1].offset+r[e-1].length:r[e].offset=n-1}return r}var eJ=class extends Error{},eQ=class{constructor(e=100,t=!0,n=eq){this.cache=new Map,this.invalidations=new Map,this.maxCacheEntries=e,this.counter=1,this.decompress=n}getHeader(e){return ee(this,null,function*(){let t=e.getKey(),n=this.cache.get(t);if(n)return n.lastUsed=this.counter++,yield n.data;let r=new Promise((t,n)=>{(function(e,t){return ee(this,null,function*(){let n=yield e.getBytes(0,16384);if(19792!==new DataView(n.data).getUint16(0,!0))throw Error("Wrong magic number for PMTiles archive");if(3>function(e){let t=new DataView(e);return 2===t.getUint16(2,!0)?(console.warn("PMTiles spec version 2 has been deprecated; please see github.com/protomaps/PMTiles for tools to upgrade"),2):1===t.getUint16(2,!0)?(console.warn("PMTiles spec version 1 has been deprecated; please see github.com/protomaps/PMTiles for tools to upgrade"),1):3}(n.data))return[(yield e$.getHeader(e))];let r=function(e,t){let n=new DataView(e),r=n.getUint8(7);if(r>3)throw Error(`Archive is spec version ${r} but this library supports up to spec version 3`);return{specVersion:r,rootDirectoryOffset:eX(n,8),rootDirectoryLength:eX(n,16),jsonMetadataOffset:eX(n,24),jsonMetadataLength:eX(n,32),leafDirectoryOffset:eX(n,40),leafDirectoryLength:eX(n,48),tileDataOffset:eX(n,56),tileDataLength:eX(n,64),numAddressedTiles:eX(n,72),numTileEntries:eX(n,80),numTileContents:eX(n,88),
1clustered:1===n.getUint8(96),internalCompression:n.getUint8(97),tileCompression:n.getUint8(98),tileType:n.getUint8(99),minZoom:n.getUint8(100),maxZoom:n.getUint8(101),minLon:n.getInt32(102,!0)/1e7,minLat:n.getInt32(106,!0)/1e7,maxLon:n.getInt32(110,!0)/1e7,maxLat:n.getInt32(114,!0)/1e7,centerZoom:n.getUint8(118),centerLon:n.getInt32(119,!0)/1e7,centerLat:n.getInt32(123,!0)/1e7,etag:t}}(n.data.slice(0,127),n.etag),i=n.data.slice(r.rootDirectoryOffset,r.rootDirectoryOffset+r.rootDirectoryLength),o=`${e.getKey()}|${r.etag||""}|${r.rootDirectoryOffset}|${r.rootDirectoryLength}`,a=eK((yield t(i,r.internalCompression)));return[r,[o,a.length,a]]})})(e,this.decompress).then(e=>{e[1]&&this.cache.set(e[1][0],{lastUsed:this.counter++,data:Promise.resolve(e[1][2])}),t(e[0]),this.prune()}).catch(e=>{n(e)})});return this.cache.set(t,{lastUsed:this.counter++,data:r}),r})}getDirectory(e,t,n,r){return ee(this,null,function*(){let i=`${e.getKey()}|${r.etag||""}|${t}|${n}`,o=this.cache.get(i);if(o)return o.lastUsed=this.counter++,yield o.data;let a=new Promise((i,o)=>{(function(e,t,n,r,i){return ee(this,null,function*(){let o=yield e.getBytes(n,r,void 0,i.etag),a=eK((yield t(o.data,i.internalCompression)));
1if(0===a.length)throw Error("Empty directory is invalid");return a})})(e,this.decompress,t,n,r).then(e=>{i(e),this.prune()}).catch(e=>{o(e)})});return this.cache.set(i,{lastUsed:this.counter++,data:a}),a})}getArrayBuffer(e,t,n,r){return ee(this,null,function*(){let i=`${e.getKey()}|${r.etag||""}|${t}|${n}`,o=this.cache.get(i);if(o)return o.lastUsed=this.counter++,yield o.data;let a=new Promise((o,a)=>{e.getBytes(t,n,void 0,r.etag).then(e=>{o(e.data),this.cache.has(i),this.prune()}).catch(e=>{a(e)})});return this.cache.set(i,{lastUsed:this.counter++,data:a}),a})}prune(){if(this.cache.size>=this.maxCacheEntries){let e,t=1/0;this.cache.forEach((n,r)=>{n.lastUsed<t&&(t=n.lastUsed,e=r)}),e&&this.cache.delete(e)}}invalidate(e){return ee(this,null,function*(){let t=e.getKey();if(this.invalidations.get(t))return yield this.invalidations.get(t);this.cache.delete(e.getKey());let n=new Promise((n,r)=>{this.getHeader(e).then(e=>{n(),this.invalidations.delete(t)}).catch(e=>{r(e)})});this.invalidations.set(t,n)})}},e0=class{constructor(e,t,n){"string"==typeof e?this.source=new eG(e):this.source=e,n?this.decompress=n:this.decompress=eq,t?this.cache=t:this.cache=new eQ}getHeader(){return ee(this,null,function*(){return yield this.cache.getHeader(this.source)})}getZxyAttempt(e,t,n,r){return ee(this,null,function*(){let i=function(e,t,n){if(e>26)throw Error("Tile zoom level exceeds max safe number limit (26)");if(t>Q(2,e)-1||n>Q(2,e)-1)throw Error("tile x/y outside zoom level bounds");let r=eW[e],i=Q(2,e),o=0,a=0,s=0,l=[t,n],u=i/2;for(;u>0;){o=+((l[0]&u)>0),a=+((l[1]&u)>0),s+=u*u*(3*o^a);var c=u,d=o;if(0===a){1===d&&(l[0]=c-1-l[0],l[1]=c-1-l[1]);let e=l[0];l[0]=l[1],l[1]=e}u/=2}return r+s}(e,t,n),o=yield this.cache.getHeader(this.source);if(o.specVersion<3)return e$.getZxy(o,this.source,this.cache,e,t,n,r);if(e<o.minZoom||e>o.maxZoom)return;let a=o.rootDirectoryOffset,s=o.rootDirectoryLength;for(let e=0;e<=3;e++){let e=function(e,t){let n=0,r=e.length-1;for(;n<=r;){let i=r+n>>1,o=t-e[i].tileId;if(o>0)n=i+1;else{if(!(o<0))return e[i];r=i-1}}return r>=0&&(0===e[r].runLength||t-e[r].tileId<e[r].runLength)?e[r]:null}((yield this.cache.getDirectory(this.source,a,s,o)),i);if(!e)return;if(e.runLength>0){let t=yield this.source.getBytes(o.tileDataOffset+e.offset,e.length,r,o.etag);return{data:yield this.decompress(t.data,o.tileCompression),cacheControl:t.cacheControl,expires:t.expires}}a=o.leafDirectoryOffset+e.offset,s=e.length}throw Error("Maximum directory depth exceeded")})}getZxy(e,t,n,r){return ee(this,null,function*(){try{return yield this.getZxyAttempt(e,t,n,r)}catch(i){if(i instanceof eJ)return this.cache.invalidate(this.source),yield this.getZxyAttempt(e,t,n,r);throw i}})}getMetadataAttempt(){return ee(this,null,function*(){let e=yield this.cache.getHeader(this.source),t=yield this.source.getBytes(e.jsonMetadataOffset,e.jsonMetadataLength,void 0,e.etag),n=yield this.decompress(t.data,e.internalCompression);return JSON.parse(new TextDecoder("utf-8").decode(n))})}getMetadata(){return ee(this,null,function*(){try{return yield this.getMetadataAttempt()}catch(e){if(e instanceof eJ)return this.cache.invalidate(this.source),yield this.getMetadataAttempt();throw e}})}getTileJson(e){return ee(this,null,function*(){var t;let n=yield this.getHeader(),r=yield this.getMetadata(),i=1===(t=n.tileType)?".mvt":2===t?".png":3===t?".jpg":4===t?".webp":5===t?".avif":"";return{tilejson:"3.0.0",scheme:"xyz",tiles:[`${e}/{z}/{x}/{y}${i}`],vector_layers:r.vector_layers,attribution:r.attribution,description:r.description,name:r.name,version:r.version,bounds:[n.minLon,n.minLat,n.maxLon,n.maxLat],center:[n.centerLon,n.centerLat,n.centerZoom],minzoom:n.minZoom,maxzoom:n.maxZoom}})}},e1=n(65354),e5=n(79350),e2=n(54431),e3=n(65364);let e8=(void 0===e3||e3.env,"production"),e6=1/60*1e3,e7="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),e4="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(e7()),e6),e9={delta:0,timestamp:0},te=!0,tt=!1,tn=!1,tr=["read","update","preRender","render","postRender"],ti=tr.reduce((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,i=!1,o=!1,a=new WeakSet,s={schedule:(e,o=!1,s=!1)=>{let l=s&&i,u=l?t:n;
1return o&&a.add(e),-1===u.indexOf(e)&&(u.push(e),l&&i&&(r=t.length)),e},cancel:e=>{let t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:l=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length)for(let n=0;n<r;n++){let r=t[n];r(l),a.has(r)&&(s.schedule(r),e())}i=!1,o&&(o=!1,s.process(l))}};return s}(()=>tt=!0),e),{}),to=tr.reduce((e,t)=>{let n=ti[t];return e[t]=(e,t=!1,r=!1)=>(tt||tc(),n.schedule(e,t,r)),e},{}),ta=tr.reduce((e,t)=>(e[t]=ti[t].cancel,e),{}),ts=tr.reduce((e,t)=>(e[t]=()=>ti[t].process(e9),e),{}),tl=e=>ti[e].process(e9),tu=e=>{tt=!1,e9.delta=te?e6:Math.max(Math.min(e-e9.timestamp,40),1),e9.timestamp=e,tn=!0,tr.forEach(tl),tn=!1,tt&&(te=!1,e4(tu))},tc=()=>{tt=!0,te=!0,tn||e4(tu)},td="undefined"!=typeof document,tp=td?f.useLayoutEffect:f.useEffect;function th(){let e=(0,f.useRef)(!1);return tp(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let tm=(0,f.createContext)(null);function tf(e){let t=(0,f.useRef)(null);return null===t.current&&(t.current=e()),t.current}class tg extends f.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function ty({children:e,isPresent:t}){let n=(0,f.useId)(),r=(0,f.useRef)(null),i=(0,f.useRef)({width:0,height:0,top:0,left:0});return(0,f.useInsertionEffect)(()=>{let{width:e,height:o,top:a,left:s}=i.current;if(t||!r.current||!e||!o)return;r.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` 2 [data-motion-pop-id="${n}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${o}px !important; 6 top: ${a}px !important; 7 left: ${s}px !important; 8 } 9 `),()=>{document.head.removeChild(l)}},[t]),f.createElement(tg,{isPresent:t,childRef:r,sizeRef:i},f.cloneElement(e,{ref:r}))}let tv=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:a})=>{let s=tf(tx),l=(0,f.useId)(),u=(0,f.useMemo)(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:e=>{for(let t of(s.set(e,!0),s.values()))if(!t)return;r&&r()},register:e=>(s.set(e,!1),()=>s.delete(e))}),o?void 0:[n]);return(0,f.useMemo)(()=>{s.forEach((e,t)=>s.set(t,!1))},[n]),f.useEffect(()=>{n||s.size||!r||r()},[n]),"popLayout"===a&&(e=f.createElement(ty,{isPresent:n},e)),f.createElement(tm.Provider,{value:u},e)};function tx(){return new Map}let tw=(0,f.createContext)({});function tb(e){return(0,f.useEffect)(()=>()=>e(),[])}let t_=new Set;function tk(e,t,n){e||t_.has(t)||(console.warn(t),n&&console.warn(n),t_.add(t))}let tE=e=>e.key||"",tC=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:i,presenceAffectsLayout:o=!0,mode:a="sync"})=>{i&&(a="wait",tk(!1,"Replace exitBeforeEnter with mode='wait'"));let[s]=function(){let e=th(),[t,n]=(0,f.useState)(0),r=(0,f.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,f.useCallback)(()=>to.postRender(r),[r]),t]}(),l=(0,f.useContext)(tw).forceRender;l&&(s=l);let u=th(),c=function(e){let t=[];return f.Children.forEach(e,e=>{(0,f.isValidElement)(e)&&t.push(e)}),t}(e),d=c,p=new Set,h=(0,f.useRef)(d),m=(0,f.useRef)(new Map).current,g=(0,f.useRef)(!0);if(tp(()=>{g.current=!1,c.forEach(e=>{let t=tE(e);m.set(t,e)}),h.current=d}),tb(()=>{g.current=!0,m.clear(),p.clear()}),g.current)return f.createElement(f.Fragment,null,d.map(e=>f.createElement(tv,{key:tE(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:o,mode:a},e)));d=[...d];let y=h.current.map(tE),v=c.map(tE),x=y.length;for(let e=0;e<x;e++){let t=y[e];-1===v.indexOf(t)&&p.add(t)}return"wait"===a&&p.size&&(d=[]),p.forEach(e=>{if(-1!==v.indexOf(e))return;let n=m.get(e);if(!n)return;let i=y.indexOf(e);d.splice(i,0,f.createElement(tv,{key:tE(n),isPresent:!1,onExitComplete:()=>{m.delete(e),p.delete(e);let t=h.current.findIndex(t=>t.key===e);if(h.current.splice(t,1),!p.size){if(h.current=c,!1===u.current)return;s(),r&&r()}},custom:t,presenceAffectsLayout:o,mode:a},n))}),d=d.map(e=>{let t=e.key;return p.has(t)?e:f.createElement(tv,{key:tE(e),isPresent:!0,presenceAffectsLayout:o,mode:a},e)}),"production"!==e8&&"wait"===a&&d.length>1&&console.warn('You\'re attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.'),f.createElement(f.Fragment,null,p.size?d:d.map(e=>(0,f.cloneElement)(e)))},tT=(0,f.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),tP=(0,f.createContext)({}),tA=(0,f.createContext)({strict:!1});function tS(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function tM(e){return"string"==typeof e||Array.isArray(e)}function tz(e){return"object"==typeof e&&"function"==typeof e.start}let tL=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function tV(e){return tz(e.animate)||tL.some(t=>tM(e[t]))}function tj(e){return!!(tV(e)||e.variants)}function tD(e){return Array.isArray(e)?e.join(" "):e}let tR=e=>({isEnabled:t=>e.some(e=>!!t[e])}),tI={measureLayout:tR(["layout","layoutId","drag"]),animation:tR(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:tR(["exit"]),drag:tR(["drag","dragControls"]),focus:tR(["whileFocus"]),hover:tR(["whileHover","onHoverStart","onHoverEnd"]),tap:tR(["whileTap","onTap","onTapStart","onTapCancel"]),pan:tR(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:tR(["whileInView","onViewportEnter","onViewportLeave"])},tU={hasAnimatedSinceResize:!0,hasEverUpdated:!1},tB=1;class tF extends f.Component{getSnapshotBeforeUpdate(){let{visualElement:e,props:t}=this.props;return e&&e.setProps(t),null}componentDidUpdate(){}render(){return this.props.children}}let tO=(0,f.createContext)({}),t$=Symbol.for("motionComponentSymbol"),tN=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function tH(e){if("string"!=typeof e||e.includes("-"));else if(tN.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let tW={},tZ=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],tq=new Set(tZ);function tY(e,{layout:t,layoutId:n}){return tq.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tW[e]||"opacity"===e)}let tG=e=>!!(null==e?void 0:e.getVelocity),tX={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tK=(e,t)=>tZ.indexOf(e)-tZ.indexOf(t);function tJ(e){return e.startsWith("--")}let tQ=(e,t)=>t&&"number"==typeof e?t.transform(e):e,t0=(e,t,n)=>Math.min(Math.max(n,e),t),t1={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},t5={...t1,transform:e=>
9t0(0,1,e)},t2={...t1,default:1},t3=e=>Math.round(1e5*e)/1e5,t8=/(-)?([\d]*\.?[\d])+/g,t6=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,t7=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function t4(e){return"string"==typeof e}let t9=e=>({test:t=>t4(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),ne=t9("deg"),nt=t9("%"),nn=t9("px"),nr=t9("vh"),ni=t9("vw"),no={...nt,parse:e=>nt.parse(e)/100,transform:e=>nt.transform(100*e)},na={...t1,transform:Math.round},ns={borderWidth:nn,borderTopWidth:nn,borderRightWidth:nn,borderBottomWidth:nn,borderLeftWidth:nn,borderRadius:nn,radius:nn,borderTopLeftRadius:nn,borderTopRightRadius:nn,borderBottomRightRadius:nn,borderBottomLeftRadius:nn,width:nn,maxWidth:nn,height:nn,maxHeight:nn,size:nn,top:nn,right:nn,bottom:nn,left:nn,padding:nn,paddingTop:nn,paddingRight:nn,paddingBottom:nn,paddingLeft:nn,margin:nn,marginTop:nn,marginRight:nn,marginBottom:nn,marginLeft:nn,rotate:ne,rotateX:ne,rotateY:ne,rotateZ:ne,scale:t2,scaleX:t2,scaleY:t2,scaleZ:t2,skew:ne,skewX:ne,skewY:ne,distance:nn,translateX:nn,translateY:nn,translateZ:nn,x:nn,y:nn,z:nn,perspective:nn,transformPerspective:nn,op
9acity:t5,originX:no,originY:no,originZ:nn,zIndex:na,fillOpacity:t5,strokeOpacity:t5,numOctaves:na};function nl(e,t,n,r){let{style:i,vars:o,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let u=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(tJ(e)){o[e]=n;continue}let r=ns[e],p=tQ(n,r);if(tq.has(e)){if(u=!0,a[e]=p,s.push(e),!d)continue;n!==(r.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,l[e]=p):i[e]=p}if(!t.transform&&(u||r?i.transform=function({transform:e,transformKeys:t},{enableHardwareAcceleration:n=!0,allowTransformNone:r=!0},i,o){let a="";for(let n of(t.sort(tK),t))a+=`${tX[n]||n}(${e[n]}) `;return n&&!e.z&&(a+="translateZ(0)"),a=a.trim(),o?a=o(e,i?"":a):r&&i&&(a="none"),a}(e,n,d,r):i.transform&&(i.transform="none")),c){let{originX:e="50%",originY:t="50%",originZ:n=0}=l;i.transformOrigin=`${e} ${t} ${n}`}}let nu=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function nc(e,t,n){for(let r in t)tG(t[r])||tY(r,n)||(e[r]=t[r])}let nd=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll","whileInView","onViewportEnter","onViewportLeave","viewport","whileTap","onTap","onTapStart","onTapCancel","animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView","onPan","onPanStart","onPanSessionStart","onPanEnd"]);function np(e){return nd.has(e)}let nh=e=>!np(e);try{!function(e){e&&(nh=t=>t.startsWith("on")?!np(t):e(t))}(require("@emotion/is-prop-valid").default)}catch(e){}function nm(e,t,n){return"string"==typeof e?e:nn.transform(t+n*e)}let nf={offset:"stroke-dashoffset",array:"stroke-dasharray"},ng={offset:"strokeDashoffset",array:"strokeDasharray"};function ny(e,{attrX:t,attrY:n,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:s=0,...l},u,c,d){if(nl(e,l,u,d),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:h,dimensions:m}=e;p.transform&&(m&&(h.transform=p.transform),delete p.transform),m&&(void 0!==r||void 0!==i||h.transform)&&(h.transformOrigin=function(e,t,n){let r=nm(t,e.x,e.width),i=nm(n,e.y,e.height);return`${r} ${i}`}(m,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==t&&(p.x=t),void 0!==n&&(p.y=n),void 0!==o&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?nf:ng;e[o.offset]=nn.transform(-r);let a=nn.transform(t),s=nn.transform(n);e[o.array]=`${a} ${s}`}(p,o,a,s,!1)}let nv=()=>({...nu(),attrs:{}}),nx=e=>"string"==typeof e&&"svg"===e.toLowerCase(),nw=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function nb(e,{style:t,vars:n},r,i){for(let o in Object.assign(e.style,t,i&&i.getProjectionStyles(r)),n)e.style.setProperty(o,n[o])}let n_=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function nk(e,t,n,r){for(let n in nb(e,t,void 0,r),t.attrs)e.setAttribute(n_.has(n)?n:nw(n),t.attrs[n])}function nE(e){let{style:t}=e,n={};for(let r in t)(tG(t[r])||tY(r,e))&&(n[r]=t[r]);return n}function nC(e){let t=nE(e);for(let n in e)tG(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function nT(e,t,n,r={},i={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}let nP=e=>Array.isArray(e),nA=e=>nP(e)?e[e.length-1]||0:e;function nS(e){let t=tG(e)?e.get():e;return t&&"object"==typeof t&&t.mix&&t.toValue?t.toValue():t}let nM=e=>(t,n)=>{let r=(0,f.useContext)(tP),i=(0,f.useContext)(tm),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){let a={latestValues:function(e,t,n,r){let i={},o=r(e);for(let e in o)i[e]=nS(o[e]);let{initial:a,animate:s}=e,l=tV(e),u=tj(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===a)?s:a;return d&&"boolean"!=typeof d&&!tz(d)&&(Array.isArray(d)?d:[d]).forEac
9h(t=>{let n=nT(e,t);if(!n)return;let{transitionEnd:r,transition:o,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let e in r)i[e]=r[e]}),i}(r,i,o,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a})(e,t,r,i);return n?o():tf(o)},nz={useVisualState:nM({scrapeMotionValuesFromProps:nC,createRenderState:nv,onMount:(e,t,{renderState:n,latestValues:r})=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}ny(n,r,{enableHardwareAcceleration:!1},nx(t.tagName),e.transformTemplate),nk(t,n)}})},nL={useVisualState:nM({scrapeMotionValuesFromProps:nE,createRenderState:nu})};function nV(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function nj(e,t,n,r){(0,f.useEffect)(()=>{let i=e.current;if(n&&i)return nV(i,t,n,r)},[e,t,n,r])}function nD(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?"mouse"===e.pointerType:e instanceof MouseEvent}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(o||(o={}));let nR={pageX:0,pageY:0};function nI(e,t="page"){return{point:e.touches?function(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||nR;return{x:n[t+"X"],y:n[t+"Y"]}}(e,t):function(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}(e,t)}}let nU=(e,t=!1)=>{let n=t=>e(t,nI(t));return t?e=>{let t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}:n},nB={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},nF={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function nO(e){if(td&&null===window.onpointerdown);else if(td&&null===window.ontouchstart)return nF[e];else if(td&&null===window.onmousedown)return nB[e];return e}function n$(e,t,n,r){return nV(e,nO(t),nU(n,"pointerdown"===t),r)}function nN(e,t,n,r){return nj(e,nO(t),n&&nU(n,"pointerdown"===t),r)}function nH(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let nW=nH("dragHorizontal"),nZ=nH("dragVertical");function nq(e){let t=!1;if("y"===e)t=nZ();else if("x"===e)t=nW();else{let e=nW(),n=nZ();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function nY(){let e=nq(!0);return!e||(e(),!1)}function nG(e,t,n){return(r,i)=>{!(!nD(r)||nY())&&(e.animationState&&e.animationState.setActive(o.Hover,t),n&&n(r,i))}}let nX=(e,t)=>!!t&&(e===t||nX(e,t.parentElement)),nK=(e,t)=>n=>t(e(n)),nJ=(...e)=>e.reduce(nK),nQ=new WeakMap,n0=new WeakMap,n1=e=>{let t=nQ.get(e.target);t&&t(e)},n5=e=>{e.forEach(n1)},n2={some:0,all:1},n3=e=>t=>(e(t),null),n8={inView:n3(function({visualElement:e,whileInView:t,onViewportEnter:n,onViewportLeave:r,viewport:i={}}){let a=(0,f.useRef)({hasEnteredView:!1,isInView:!1}),s=!!(t||n||r);i.once&&a.current.hasEnteredView&&(s=!1),("undefined"==typeof IntersectionObserver?function(e,t,n,{fallback:r=!0}){(0,f.useEffect)(()=>{e&&r&&("production"!==e8&&tk(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:e}=n.getProps();e&&e(null),n.animationState&&n.animationState.setActive(o.InView,!0)}))},[e])}:function(e,t,n,{root:r,margin:i,amount:a="some",once:s}){(0,f.useEffect)(()=>{if(!e||!n.current)return;let l={root:null==r?void 0:r.current,rootMargin:i,threshold:"number"==typeof a?a:n2[a]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;n0.has(n)||n0.set(n,{});let r=n0.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(n5,{root:e,...t})),r[i]}(t);return nQ.set(e,n),r.observe(e),()=>{nQ.delete(e),r.unobserve(e)}}(n.current,l,e=>{let{isIntersecting:r}=e;if(t.isInView===r||(t.isInView=r,s&&!r&&t.hasEnteredView))return;r&&(t.hasEnteredView=!0),n.animationState&&n.animationState.setActive(o.InView,r);let i=n.getProps(),a=r?i.onViewportEnter:i.onViewportLeave;a&&a(e)})},[e,r,i,a])})(s,a.current,e,i)}
9),tap:n3(function({onTap:e,onTapStart:t,onTapCancel:n,whileTap:r,visualElement:i}){let a=e||t||n||r,s=(0,f.useRef)(!1),l=(0,f.useRef)(null),u={passive:!(t||e||n||m)};function c(){l.current&&l.current(),l.current=null}function d(){return c(),s.current=!1,i.animationState&&i.animationState.setActive(o.Tap,!1),!nY()}function p(t,r){d()&&(nX(i.current,t.target)?e&&e(t,r):n&&n(t,r))}function h(e,t){d()&&n&&n(e,t)}function m(e,n){c(),!s.current&&(s.current=!0,l.current=nJ(n$(window,"pointerup",p,u),n$(window,"pointercancel",h,u)),i.animationState&&i.animationState.setActive(o.Tap,!0),t&&t(e,n))}nN(i,"pointerdown",a?m:void 0,u),tb(c)}),focus:n3(function({whileFocus:e,visualElement:t}){let{animationState:n}=t;nj(t,"focus",e?()=>{n&&n.setActive(o.Focus,!0)}:void 0),nj(t,"blur",e?()=>{n&&n.setActive(o.Focus,!1)}:void 0)}),hover:n3(function({onHoverStart:e,onHoverEnd:t,whileHover:n,visualElement:r}){nN(r,"pointerenter",e||n?nG(r,!0,e):void 0,{passive:!e}),nN(r,"pointerleave",t||n?nG(r,!1,t):void 0,{passive:!t})})};function n6(){let e=(0,f.useContext)(tm);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=(0,f.useId)();return(0,f.useEffect)(()=>r(i),[]),!t&&n?[!1,()=>n&&n(i)]:[!0]}function n7(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}let n4=e=>/^\-?\d*\.?\d+$/.test(e),n9=e=>/^0[^.\s]+$/.test(e);function re(e,t){-1===e.indexOf(t)&&e.push(t)}function rt(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class rn{constructor(){this.subscriptions=[]}add(e){return re(this.subscriptions,e),()=>rt(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function rr(e,t){return t?1e3/t*e:0}class ri{constructor(e,t={}){this.version="7.10.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:r}=e9;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,to.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>to.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=!isNaN(parseFloat(this.current)),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){return this.events[e]||(this.events[e]=new rn),this.events[e].add(t)}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e){this.passiveEffect=e}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?rr(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.stopAnimation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop()}}function ro(e,t){return new ri(e,t)}let ra=(e,t)=>n=>!!(t4(n)&&t7.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),rs=(e,t,n)=>r=>{if(!t4(r))return r;let[i,o,a,s]=r.match(t8);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},rl={...t1,transform:e=>Math.round(t0(0,255,e))},ru={test:ra("rgb","red"),parse:rs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+rl.transform(e)+", "+rl.transform(t)+", "+rl.transform(n)+", "+t3(t5.transform(r))+")"},rc={test:ra("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
9a:i?parseInt(i,16)/255:1}},transform:ru.transform},rd={test:ra("hsl","hue"),parse:rs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+nt.transform(t3(t))+", "+nt.transform(t3(n))+", "+t3(t5.transform(r))+")"},rp={test:e=>ru.test(e)||rc.test(e)||rd.test(e),parse:e=>ru.test(e)?ru.parse(e):rd.test(e)?rd.parse(e):rc.parse(e),transform:e=>t4(e)?e:e.hasOwnProperty("red")?ru.transform(e):rd.transform(e)},rh="${c}",rm="${n}";function rf(e){"number"==typeof e&&(e=`${e}`);let t=[],n=0,r=0,i=e.match(t6);i&&(n=i.length,e=e.replace(t6,rh),t.push(...i.map(rp.parse)));let o=e.match(t8);return o&&(r=o.length,e=e.replace(t8,rm),t.push(...o.map(t1.parse))),{values:t,numColors:n,numNumbers:r,tokenised:e}}function rg(e){return rf(e).values}function ry(e){let{values:t,numColors:n,tokenised:r}=rf(e),i=t.length;return e=>{let t=r;for(let r=0;r<i;r++)t=t.replace(r<n?rh:rm,r<n?rp.transform(e[r]):t3(e[r]));return t}}let rv=e=>"number"==typeof e?0:e,rx={test:function(e){var t,n;return isNaN(e)&&t4(e)&&((null==(t=e.match(t8))?void 0:t.length)||0)+((null==(n=e.match(t6))?void 0:n.length)||0)>0},parse:rg,createTransformer:ry,getAnimatableNone:function(e){let t=rg(e);return ry(e)(t.map(rv))}},rw=new Set(["brightness","contrast","saturate","opacity"]);function rb(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(t8)||[];if(!r)return e;let i=n.replace(r,""),o=+!!rw.has(t);return r!==n&&(o*=100),t+"("+o+i+")"}let r_=/([a-z-]*)\(.*?\)/g,rk={...rx,getAnimatableNone:e=>{let t=e.match(r_);return t?t.map(rb).join(" "):e}},rE={...ns,color:rp,backgroundColor:rp,outlineColor:rp,fill:rp,stroke:rp,borderColor:rp,borderTopColor:rp,borderRightColor:rp,borderBottomColor:rp,borderLeftColor:rp,filter:rk,WebkitFilter:rk},rC=e=>rE[e];function rT(e,t){var n;let r=rC(e);return r!==rk&&(r=rx),null==(n=r.getAnimatableNone)?void 0:n.call(r,t)}let rP=e=>t=>t.test(e),rA=[t1,nn,nt,ne,ni,nr,{test:e=>"auto"===e,parse:e=>e}],rS=e=>rA.find(rP(e)),rM=[...rA,rp,rx],rz=e=>rM.find(rP(e));function rL(e,t,n){let r=e.getProps();return nT(r,t,void 0!==n?n:r.custom,function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}function rV(e){return!!(tG(e)&&e.add)}let rj="data-"+nw("framerAppearId");var rD=function(){},rR=function(){};let rI=e=>1e3*e,rU={current:!1},rB=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,rF=e=>t=>1-e(1-t),rO=e=>e*e,r$=rF(rO),rN=rB(rO),rH=(e,t,n)=>-n*e+n*t+e;function rW(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}let rZ=(e,t,n)=>{let r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},rq=[rc,ru,rd];function rY(e){let t=rq.find(t=>t.test(e));rR(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===rd&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=rW(s,r,e+1/3),o=rW(s,r,e),a=rW(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let rG=(e,t)=>{let n=rY(e),r=rY(t),i={...n};return e=>(i.red=rZ(n.red,r.red,e),i.green=rZ(n.green,r.green,e),i.blue=rZ(n.blue,r.blue,e),i.alpha=rH(n.alpha,r.alpha,e),ru.transform(i))};function rX(e,t){return"number"==typeof e?n=>rH(e,t,n):rp.test(e)?rG(e,t):rQ(e,t)}let rK=(e,t)=>{let n=[...e],r=n.length,i=e.map((e,n)=>rX(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}},rJ=(e,t)=>{let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=rX(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}},rQ=(e,t)=>{let n=rx.createTransformer(t),r=rf(e),i=rf(t);return r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?nJ(rK(r.values,i.values),n):(rD(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},r0=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r},r1=(e,t)=>n=>rH(e,t,n);function r5(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;rR(o===t.length,"Both input and output ranges must be the same length"),rR(!r||!Array.isArray(r)||r.length===o-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,n){let r=[],i=n||function(e){if("number"==typeof e);else if("string"==typeof e)if(rp.test(e))return rG;else return rQ;else if(Array.isArray(e))return rK;else if("object"==typeof e)return rJ;return r1}(e[0]),o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=nJ(Array.isArray(t)?t[n]:t,o)),r.push(o)}return r}(t,r,i),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);let r=r0(e[n],e[n+1],t);return a[n](r)};return n?t=>l(t0(e[0],e[o-1],t)):l}let r2=e=>
9e,r3=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function r8(e,t,n,r){return e===t&&n===r?r2:i=>0===i||1===i?i:r3(function(e,t,n,r,i){let o,a,s=0;do(o=r3(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a}(i,0,1,e,n),t,r)}let r6=e=>1-Math.sin(Math.acos(e)),r7=rF(r6),r4=rB(r7),r9=r8(.33,1.53,.69,.99),ie=rF(r9),it=rB(ie),ir={linear:r2,easeIn:rO,easeInOut:rN,easeOut:r$,circIn:r6,circInOut:r4,circOut:r7,backIn:ie,backInOut:it,backOut:r9,anticipate:e=>(e*=2)<1?.5*ie(e):.5*(2-Math.pow(2,-10*(e-1)))},ii=e=>{if(Array.isArray(e)){rR(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return r8(t,n,r,i)}return"string"==typeof e?(rR(void 0!==ir[e],`Invalid easing type '${e}'`),ir[e]):e};function io({keyframes:e,ease:t=rN,times:n,duration:r=300}){var i;e=[...e];let o=io[0],a=Array.isArray(t)&&"number"!=typeof t[0]?t.map(ii):ii(t),s={done:!1,value:o},l=(i=n&&n.length===io.length?n:function(e){let t=e.length;return e.map((e,n)=>0!==n?n/(t-1):0)}(e),i.map(e=>e*r));function u(){var t;return r5(l,e,{ease:Array.isArray(a)?a:(t=e).map(()=>a||rN).splice(0,t.length-1)})}let c=u();return{next:e=>(s.value=c(e),s.done=e>=r,s),flipTarget:()=>{e.reverse(),c=u()}}}function ia(e,t){return e*Math.sqrt(1-t*t)}let is=["duration","bounce"],il=["stiffness","damping","mass"];function iu(e,t){return t.some(t=>void 0!==e[t])}function ic({keyframes:e,restSpeed:t=2,restDelta:n=.01,...r}){let i=e[0],o=e[e.length-1],a={done:!1,value:i},{stiffness:s,damping:l,mass:u,velocity:c,duration:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!iu(e,il)&&iu(e,is)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;rD(e<=1e4,"Spring duration must be 10 seconds or less");let a=1-t;a=t0(.05,1,a),e=t0(.01,10,e/1e3),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/ia(t,a)*Math.exp(-i)},o=t=>{let r=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=Math.exp(-r),l=ia(Math.pow(t,2),a);return(r*n+n-o)*s*(-i(t)+.001>0?-1:1)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,velocity:0,mass:1}).isResolvedFromDuration=!0}return t}(r),h=id,m=c?-(c/1e3):0,f=l/(2*Math.sqrt(s*u));function g(){let e=o-i,t=Math.sqrt(s/u)/1e3;if(void 0===n&&(n=Math.min(Math.abs(o-i)/100,.4)),f<1){let n=ia(t,f);h=r=>o-Math.exp(-f*t*r)*((m+f*t*e)/n*Math.sin(n*r)+e*Math.cos(n*r))}else if(1===f)h=n=>o-Math.exp(-t*n)*(e+(m+t*e)*n);else{let n=t*Math.sqrt(f*f-1);h=r=>{let i=Math.exp(-f*t*r),a=Math.min(n*r,300);return o-i*((m+f*t*e)*Math.sinh(a)+n*e*Math.cosh(a))/n}}}return g(),{next:e=>{let r=h(e);if(p)a.done=e>=d;else{let i=m;if(0!==e)if(f<1){let t=Math.max(0,e-5);i=rr(r-h(t),e-t)}else i=0;let s=Math.abs(o-r)<=n;a.done=Math.abs(i)<=t&&s}return a.value=a.done?o:r,a},flipTarget:()=>{m=-m,[i,o]=[o,i],g()}}}ic.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;let id=e=>0,ip={decay:function({keyframes:e=[0],velocity:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){let a=e[0],s={done:!1,value:a},l=n*t,u=a+l,c=void 0===o?u:o(u);return c!==u&&(l=c-a),{next:e=>{let t=-l*Math.exp(-e/r);return s.done=!(t>i||t<-i),s.value=s.done?c:c+t,s},flipTarget:()=>{}}},keyframes:io,tween:io,spring:ic};function ih(e,t,n=0){return e-t-n}let im=e=>{let t=({delta:t})=>e(t);return{start:()=>to.update(t,!0),stop:()=>ta.update(t)}};function ig({duration:e,driver:t=im,elapsed:n=0,repeat:r=0,repeatType:i="loop",repeatDelay:o=0,keyframes:a,autoplay:s=!0,onPlay:l,onStop:u,onComplete:c,onRepeat:d,onUpdate:p,type:h="keyframes",...m}){var f;let g,y,v,x=0,w=e,b=!1,_=!0,k=ip[a.length>2?"keyframes":h],E=a[0],C=a[a.length-1];(null==(f=k.needsInterpolation)?void 0:f.call(k,E,C))&&(v=r5([0,100],[E,C],{clamp:!1}),a=[0,100]);let T=k({...m,duration:e,keyframes:a});return s&&(l&&l(),(g=t(function(e){if(_||(e=-e),n+=e,!b){let e=T.next(Math.max(0,n));y=e.value,v&&(y=v(y)),b=_?e.done:n<=0}if(p&&p(y),b)if(0===x&&(w=void 0!==w?w:n),x<r){var t,a;t=n,a=w,(_?t>=a+o:t<=-o)&&(x++,"reverse"===i?n=function(e,t=0,n=0,r=!0){return r?ih(t+-e,t,n):t-(e-t)+n}(n,w,o,_=x%2==0):(n=ih(n,w,o),"mirror"===i&&T.flipTarget()),b=!1,d&&d())}else g.stop(),c&&c()})).start()),{stop:()=>{u&&u(),g.stop()},sample:e=>T.next(Math.max(0,e))}}let iy=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,iv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iy([0,.65,.55,1]),circOut:iy([.55,0,1,.45]),backIn:iy([.31,.01,.66,-.59]),backOut:iy([.33,1.53,.69,.99])};function ix(e,t){let n=performance.now(),r=({timestamp:i})=>{let o=i-n;o>=t&&(ta.read(r),e(o-t))};return to.read(r,!0),()=>ta.read(r)}let iw=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),ib=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),i_=()=>({type:"keyframes",ease:"linear",duration:.3}),ik={type:"keyframes",duration:.8},iE={x:iw,y:iw,z:iw,rotate:iw,rotateX:iw,rotateY:iw,rotateZ:iw,scaleX:ib,scaleY:ib,scale:ib,opacity:i_,backgroundColor:i_,color:i_,default:ib},iC=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&rx.test(t)&&!t.startsWith("url("));function iT(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function iP(e){return"number"==typeof e?0:rT("",e)}function iA(e,t){return e[t]||e.default||e}let iS={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},iM={},iz={};for(let e in iS)iz[e]=()=>(void 0===iM[e]&&(iM[e]=iS[e]()),iM[e]);let iL=new Set(["opacity"]),iV=(e,t,n,r={})=>i=>{let o=iA(r,e)||{},a=o.delay||r.delay||0,{elapsed:s=0}=r;s-=rI(a);let l=function(e,t,n,r){let i=iC(t,n),o=void 0!==r.from?r.from:e.get();
9return("none"===o&&i&&"string"==typeof n?o=rT(t,n):iT(o)&&"string"==typeof n?o=iP(n):!Array.isArray(n)&&iT(n)&&"string"==typeof o&&(n=iP(o)),Array.isArray(n))?(null===n[0]&&(n[0]=o),n):[o,n]}(t,e,n,o),u=l[0],c=l[l.length-1],d=iC(e,u),p=iC(e,c);rD(d===p,`You are trying to animate ${e} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let h={keyframes:l,velocity:t.getVelocity(),...o,elapsed:s,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!d||!p||rU.current||!1===o.type)return function({keyframes:e,elapsed:t,onUpdate:n,onComplete:r}){let i=()=>(n&&n(e[e.length-1]),r&&r(),()=>{});return t?ix(i,-t):i()}(h);if("inertia"===o.type){let e=function({keyframes:e,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:u,driver:c,onUpdate:d,onComplete:p,onStop:h}){let m,f=e[0];function g(e){return void 0!==n&&e<n||void 0!==r&&e>r}function y(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function v(e){null==m||m.stop(),m=ig({keyframes:[0,1],velocity:0,...e,driver:c,onUpdate:t=>{var n;null==d||d(t),null==(n=e.onUpdate)||n.call(e,t)},onComplete:p,onStop:h})}function x(e){v({type:"spring",stiffness:a,damping:s,restDelta:l,...e})}if(g(f))x({velocity:t,keyframes:[f,y(f)]});else{let e,r,a=i*t+f;void 0!==u&&(a=u(a));let s=y(a),c=s===n?-1:1;v({type:"decay",keyframes:[f,0],velocity:t,timeConstant:o,power:i,restDelta:l,modifyTarget:u,onUpdate:g(a)?n=>{e=r,r=n,t=rr(n-e,e9.delta),(1===c&&n>s||-1===c&&n<s)&&x({keyframes:[n,s],velocity:t})}:void 0})}return{stop:()=>null==m?void 0:m.stop()}}(h);return()=>e.stop()}!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,...u}){return!!Object.keys(u).length}(o)&&(h={...h,...((e,{keyframes:t})=>t.length>2?ik:(iE[e]||iE.default)(t[1]))(e,h)}),h.duration&&(h.duration=rI(h.duration)),h.repeatDelay&&(h.repeatDelay=rI(h.repeatDelay));let m=t.owner,f=m&&m.current;if(iz.waapi()&&iL.has(e)&&!h.repeatDelay&&"mirror"!==h.repeatType&&0!==h.damping&&m&&f instanceof HTMLElement&&!m.getProps().onUpdate)return function(e,t,{onUpdate:n,onComplete:r,...i}){var o;let{keyframes:a,duration:s=.3,elapsed:l=0,ease:u}=i;if("spring"===i.type||!(!(o=i.ease)||Array.isArray(o)||"string"==typeof o&&iv[o])){let e=ig(i),t={done:!1,value:a[0]},n=[],r=0;for(;!t.done;
9)t=e.sample(r),n.push(t.value),r+=10;a=n,s=r-10,u="linear"}let c=function(e,t,n,{delay:r=0,duration:i,repeat:o=0,repeatType:a="loop",ease:s,times:l}={}){return e.animate({[t]:n,offset:l},{delay:r,duration:i,easing:function(e){if(e)return Array.isArray(e)?iy(e):iv[e]}(s),fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,a,{...i,delay:-l,duration:s,ease:u});return c.onfinish=()=>{e.set(a[a.length-1]),r&&r()},()=>{let{currentTime:t}=c;if(t){let n=ig(i);e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}to.update(()=>c.cancel())}}(t,e,h);{let e=ig(h);return()=>e.stop()}};function ij(e,t,n={}){var r;let i=rL(e,t,n.custom),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let a=i?()=>iD(e,i,n):()=>Promise.resolve(),s=(null==(r=e.variantChildren)?void 0:r.size)?(r=0)=>{let{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=1,o){let a=[],s=(e.variantChildren.size-1)*r,l=1===i?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(iR).forEach((e,r)=>{a.push(ij(e,t,{...o,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,i+r,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([a(),s(n.delay)]);{let[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(t)}}function iD(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=e.makeTargetAnimatable(t),u=e.getValue("willChange");r&&(a=r);let c=[],d=i&&(null==(o=e.animationState)?void 0:o.getState()[i]);for(let t in l){let r=e.getValue(t),i=l[t];if(!r||void 0===i||d&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(d,t))continue;let o={delay:n,elapsed:0,...a};if(e.shouldReduceMotion&&tq.has(t)&&(o={...o,type:!1,delay:0}),!r.hasAnimated){let n=e.getProps()[rj];n&&(o.elapsed=function(e,t){let n,{MotionAppearAnimations:r}=window,i=(n=tq.has(t)?"transform":t,`${e}: ${n}`),o=r&&r.get(i);return o?(to.render(()=>{try{o.cancel(),r.delete(i)}catch(e){}}),o.currentTime||0):0}(n,t))}let s=r.start(iV(t,r,i,o));rV(u)&&(u.add(t),s=s.then(()=>u.remove(t))),c.push(s)}return Promise.all(c).then(()=>{s&&function(e,t){let n=rL(e,t),{transitionEnd:r={},transition:i={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...r}){let n=nA(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ro(n))}}(e,s)})}function iR(e,t){return e.sortNodePosition(t)}let iI=[o.Animate,o.InView,o.Focus,o.Hover,o.Tap,o.Drag,o.Exit],iU=[...iI].reverse(),iB=iI.length;function iF(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let iO={animation:n3(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>ij(e,t,n)));else if("string"==typeof t)r=ij(e,t,n);else{let i="function"==typeof t?rL(e,t,n.custom):t;r=iD(e,i,n)}return r.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),n={[o.Animate]:iF(!0),[o.InView]:iF(),[o.Hover]:iF(),[o.Tap]:iF(),[o.Drag]:iF(),[o.Focus]:iF(),[o.Exit]:iF()},r=!0,i=(t,n)=>{let r=rL(e,n);if(r){let{transition:e,transitionEnd:n,...i}=r;t={...t,...i,...n}}return t};function a(o,a){let s=e.getProps(),l=e.getVariantContext(!0)||{},u=[],c=new Set,d={},p=1/0;for(let t=0;t<iB;t++){var h,m;let f=iU[t],g=n[f],y=void 0!==s[f]?s[f]:l[f],v=tM(y),x=f===a?g.isActive:null;!1===x&&(p=t);let w=y===l[f]&&y!==s[f]&&v;if(w&&r&&e.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...d},!g.isActive&&null===x||!y&&!g.prevProp||tz(y)||"boolean"==typeof y)continue;let b=(h=g.prevProp,"string"==typeof(m=y)?m!==h:!!Array.isArray(m)&&!n7(m,h)),_=b||f===a&&g.isActive&&!w&&v||t>p&&v,k=Array.isArray(y)?y:[y],E=k.reduce(i,{});!1===x&&(E={});let{prevResolvedValues:C={}}=g,T={...C,...E},P=e=>{_=!0,c.delete(e),g.needsAnimating[e]=!0};for(let e in T){let t=E[e],n=C[e];d.hasOwnProperty(e)||(t!==n?nP(t)&&nP(n)?!n7(t,n)||b?P(e):g.protectedKeys[e]=!0:void 0!==t?P(e):c.add(e):void 0!==t&&c.has(e)?P(e):g.protectedKeys[e]=!0)}g.prevProp=y,g.prevResolvedValues=E,g.isActive&&(d={...d,...E}),r&&e.blockInitialAnimation&&(_=!1),_&&!w&&u.push(...k.map(e=>({animation:e,options:{type:f,...o}})))}if(c.size){let t={};
9c.forEach(n=>{let r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)}),u.push({animation:t})}let f=!!u.length;return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(u):Promise.resolve()}return{animateChanges:a,setActive:function(t,r,i){var o;if(n[t].isActive===r)return Promise.resolve();null==(o=e.variantChildren)||o.forEach(e=>{var n;return null==(n=e.animationState)?void 0:n.setActive(t,r)}),n[t].isActive=r;let s=a(i,t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e)),tz(t)&&(0,f.useEffect)(()=>t.subscribe(e),[t])}),exit:n3(e=>{let{custom:t,visualElement:n}=e,[r,i]=n6(),a=(0,f.useContext)(tm);(0,f.useEffect)(()=>{n.isPresent=r;let e=n.animationState&&n.animationState.setActive(o.Exit,!r,{custom:a&&a.custom||t});e&&!r&&e.then(i)},[r])})},i$=(e,t)=>Math.abs(e-t);class iN{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=iZ(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){return Math.sqrt(i$(e.x,t.x)**2+i$(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=e9;this.history.push({...r,timestamp:i});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{if(this.lastMoveEvent=e,this.lastMoveEventInfo=iH(t,this.transformPagePoint),nD(e)&&0===e.buttons)return void this.handlePointerUp(e,t);to.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r}=this.handlers,i=iZ(iH(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},e.touches&&e.touches.length>1)return;this.handlers=t,this.transformPagePoint=n;let r=iH(nI(e),this.transformPagePoint),{point:i}=r,{timestamp:o}=e9;this.history=[{...i,timestamp:o}];let{onSessionStart:a}=t;a&&a(e,iZ(r,this.history)),this.removeListeners=nJ(n$(window,"pointermove",this.handlePointerMove),n$(window,"pointerup",this.handlePointerUp),n$(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ta.update(this.updatePoint)}}function iH(e,t){return t?{point:t(e.point)}:e}function iW(e,t){return{x:e.x-t.x,y:e.y-t.y}}function iZ({point:e},t){return{point:e,delta:iW(e,iq(t)),offset:iW(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=iq(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>rI(.1)));)n--;if(!r)return{x:0,y:0};let o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function iq(e){return e[e.length-1]}function iY(e){return e.max-e.min}function iG(e,t=0,n=.01){return Math.abs(e-t)<=n}function iX(e,t,n,r=.5){e.origin=r,e.originPoint=rH(t.min,t.max,e.origin),e.scale=iY(n)/iY(t),(iG(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=rH(n.min,n.max,e.origin)-e.originPoint,(iG(e.translate)||isNaN(e.translate))&&(e.translate=0)}function iK(e,t,n,r){iX(e.x,t.x,n.x,null==r?void 0:r.originX),iX(e.y,t.y,n.y,null==r?void 0:r.originY)}function iJ(e,t,n){e.min=n.min+t.min,e.max=e.min+iY(t)}function iQ(e,t,n){e.min=t.min-n.min,e.max=e.min+iY(t)}function i0(e,t,n){iQ(e.x,t.x,n.x),iQ(e.y,t.y,n.y)}function i1(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function i5(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function i2(e,t,n){return{min:i3(e,t),max:i3(e,n)}}function i3(e,t){return"number"==typeof e?e:e[t]||0}let i8=()=>({translate:0,scale:1,origin:0,originPoint:0}),i6=()=>({x:i8(),y:i8()}),i7=()=>({min:0,max:0}),i4=()=>({x:i7(),y:i7()});function i9(e){return[e("x"),e("y")]}function oe({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ot(e){return void 0===e||1===e}function on({scale:e,scaleX:t,scaleY:n}){return!ot(e)||!ot(t)||!ot(n)}function or(e){return on(e)||oi(e)||e.z||e.rotate||e.rotateX||e.rotateY}function oi(e){var t,n;
9return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function oo(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function oa(e,t=0,n=1,r,i){e.min=oo(e.min,t,n,r,i),e.max=oo(e.max,t,n,r,i)}function os(e,{x:t,y:n}){oa(e.x,t.translate,t.scale,t.originPoint),oa(e.y,n.translate,n.scale,n.originPoint)}function ol(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function ou(e,t){e.min=e.min+t,e.max=e.max+t}function oc(e,t,[n,r,i]){let o=void 0!==t[i]?t[i]:.5,a=rH(e.min,e.max,o);oa(e,t[n],t[r],a,t.scale)}let od=["x","scaleX","originX"],op=["y","scaleY","originY"];function oh(e,t){oc(e.x,t,od),oc(e.y,t,op)}function om(e,t){return oe(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}let of=new WeakMap;class og{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=i4(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){if(!1===this.visualElement.isPresent)return;let n=e=>{this.stopAnimation(),t&&this.snapToCursor(nI(e,"page").point)},r=(e,t)=>{var n;let{drag:r,dragPropagation:i,onDragStart:a}=this.getProps();(!r||i||(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=nq(r),this.openGlobalLock))&&(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),i9(e=>{var t,n;let r=this.getAxisMotionValue(e).get()||0;if(nt.test(r)){let i=null==(n=null==(t=this.visualElement.projection)?void 0:t.layout)?void 0:n.layoutBox[e];i&&(r=iY(i)*(parseFloat(r)/100))}this.originPoint[e]=r}),null==a||a(e,t),null==(n=this.visualElement.animationState)||n.setActive(o.Drag,!0))},i=(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&(null==i||i(this.currentDirection));return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),null==o||o(e,t)},a=(e,t)=>this.stop(e,t);this.panSession=new iN(e,{onSessionStart:n,onStart:r,onMove:i,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();null==i||i(e,t)}cancel(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null==(e=this.panSession)||e.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null==(t=this.visualElement.animationState)||t.setActive(o.Drag,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!oy(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?rH(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?rH(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&tS(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:i1(e.x,n,i),y:i1(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:i2(e,"left","right"),y:i2(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&i9(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!tS(t))return!1;let r=t.current;rR(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=om(e,n),{scroll:i}=t;return i&&(ou(r.x,i.offset.x),ou(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=(e=i.layout.layoutBox,{x:i5(e.x,o.x),y:i5(e.y,o.y)});if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=oe(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(i9(a=>{if(!oy(a,t,this.currentDirection))return;let l=(null==s?void 0:s[a])||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return n.start(iV(e,n,0,t))}stopAnimation(){i9(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var t;let n="_drag"+e.toUpperCase();return this.visualElement.getProps()[n]||this.visualElement.getValue(e,(null==(t=this.visualElement.getProps().initial)?void 0:t[e])||0)}snapToCursor(e){i9(t=>{let{drag:n}=this.getProps();if(!oy(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-rH(n,o,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;let{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!tS(n)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};i9(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,r=iY(e),i=iY(t);return i>r?n=r0(t.min,t.max-r,e.min):r>i&&(n=r0(e.min,e.max-i,t.min)),t0(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",null==(e=r.root)||e.updateScroll(),r.updateLayout(),this.resolveConstraints(),i9(e=>{if(!oy(e,t,null))return;let n=this.getAxisMotionValue(e),{min:r,max:o}=this.constraints[e];n.set(rH(r,o,i[e]))})}addListeners(){var e;if(!this.visualElement.current)return;of.set(this.visualElement,this);let t=n$(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}
9=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();tS(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(null==(e=r.root)||e.updateScroll(),r.updateLayout()),n();let o=nV(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(i9(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),i(),null==a||a()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function oy(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let ov={pan:n3(function({onPan:e,onPanStart:t,onPanEnd:n,onPanSessionStart:r,visualElement:i}){let o=(0,f.useRef)(null),{transformPagePoint:a}=(0,f.useContext)(tT),s={onSessionStart:r,onStart:t,onMove:e,onEnd:(e,t)=>{o.current=null,n&&n(e,t)}};(0,f.useEffect)(()=>{null!==o.current&&o.current.updateHandlers(s)}),nN(i,"pointerdown",(e||t||n||r)&&function(e){o.current=new iN(e,s,{transformPagePoint:a})}),tb(()=>o.current&&o.current.end())}),drag:n3(function(e){let{dragControls:t,visualElement:n}=e,r=tf(()=>new og(n));(0,f.useEffect)(()=>t&&t.subscribe(r),[r,t]),(0,f.useEffect)(()=>r.addListeners(),[r])})};function ox(e){return"string"==typeof e&&e.startsWith("var(--")}let ow=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ob(e,t,n=1){rR(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=function(e){let t=ow.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]}(e);if(!r)return;let o=window.getComputedStyle(t).getPropertyValue(r);return o?o.trim():ox(i)?ob(i,t,n+1):i}let o_=new Set(["width","height","top","left","right","bottom","x","y"]),ok=e=>o_.has(e),oE=(e,t)=>{e.set(t,!1),e.set(t)},oC=e=>e===t1||e===nn;!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(a||(a={}));let oT=(e,t)=>parseFloat(e.split(", ")[t]),oP=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return oT(i[1],t);{let t=r.match(/^matrix\((.+)\)$/);return t?oT(t[1],e):0}},oA=new Set(["x","y","z"]),oS=tZ.filter(e=>!oA.has(e)),oM={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:oP(4,13),y:oP(5,14)},oz={current:null},oL={current:!1},oV=Object.keys(tI),oj=oV.length,oD=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class oR{constructor({parent:e,props:t,reducedMotionConfig:n,visualState:r},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>to.render(this.render,!1,!0);let{latestValues:o,renderState:a}=r;this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=a,this.parent=e,this.props=t,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=tV(t),this.isVariantNode=tj(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:s,...l}=this.scrapeMotionValuesFromProps(t);for(let e in l){let t=l[e];void 0!==o[e]&&tG(t)&&(t.set(o[e],!1),rV(s)&&s.add(e))}}scrapeMotionValuesFromProps(e){return{}}mount(e){var t;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=null==(t=this.parent)?void 0:t.addVariantChild(this)),this.values.forEac
9h((e,t)=>this.bindToMotionValue(t,e)),oL.current||function(){if(oL.current=!0,td)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>oz.current=e.matches;e.addListener(t),t()}else oz.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||oz.current),this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,t,n;for(let r in null==(e=this.projection)||e.unmount(),ta.update(this.notifyUpdate),ta.render(this.render),this.valueSubscriptions.forEach(e=>e()),null==(t=this.removeFromVariantTree)||t.call(this),null==(n=this.parent)||n.children.delete(this),this.events)this.events[r].clear();this.current=null}bindToMotionValue(e,t){let n=tq.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&to.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),i()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures(e,t,n,r,i,o){let a=[];"production"!==e8&&n&&t&&rR(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let t=0;t<oj;t++){let n=oV[t],{isEnabled:r,Component:i}=tI[n];r(e)&&i&&a.push((0,f.createElement)(i,{key:n,...e,visualElement:this}))}if(!this.projection&&i){this.projection=new i(r,this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:n,drag:a,dragConstraints:s,layoutScroll:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:!!a||s&&tS(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:l})}return a}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):i4()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=e;for(let t=0;t<oD.length;t++){let n=oD[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){let{willChange:r}=t;for(let i in t){let o=t[i],a=n[i];if(tG(o))e.addValue(i,o),rV(r)&&r.add(i);else if(tG(a))e.addValue(i,ro(o,{owner:e})),rV(r)&&r.remove(i);else if(a!==o)if(e.hasValue(i)){let t=e.getValue(i);t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(i);e.addValue(i,ro(void 0!==t?t:o))}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e),this.prevMotionValues)}getProps(){return this.props}getVariant(e){var t;return null==(t=this.props.variants)?void 0:t[e]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var e;return this.isVariantNode?this:null==(e=this.parent)?void 0:e.getClosestVariantNode()}getVariantContext(e=!1){var t,n;if(e)return null==(t=this.parent)?void 0:t.getVariantContext();if(!this.isControllingVariants){let e=(null==(n=this.parent)?void 0:n.getVariantContext())||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let r={};for(let e=0;e<oU;e++){let t=oI[e],n=this.props[t];(tM(n)||!1===n)&&(r[t]=n)}return r}addVariantChild(e){var t;let n=this.getClosestVariantNode();if(n)return null==(t=n.variantChildren)||t.add(e),()=>n.variantChildren.delete(e)}addValue(e,t){this.hasValue(e)&&this.removeValue(e),this.values.set(e,t),this.latestValues[e]=t.get(),this.bindToMotionValue(e,t)}removeValue(e){var t;this.values.delete(e),null==(t=this.valueSubscriptions.get(e))||t(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=ro(t,{owner:this}),this.addValue(e,n)),n}readValue(e){return void 0===this.latestValues[e]&&this.current?this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null==(t=nT(this.props,n))?void 0:t[e]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,e);return void 0===i||tG(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new rn),this.events[e].add(t)}notify(e,...t){var n;null==(n=this.events[e])||n.notify(...t)}}let oI=["initial",...iI],oU=oI.length;class oB extends oR{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){var n;return null==(n=e.style)?void 0:n[t]}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},i){let o=function(e,t,n){var r;let i={};for(let o in e){let e=function(e,t){if(t)return(t[e]||t.default||t).from}(o,t);i[o]=void 0!==e?e:null==(r=n.getValue(o))?void 0:r.get()}return i}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),o&&(o=r(o))),i){!function(e,t,n){var r,i;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let s=0;s<a;s++){let a=o[s],l=t[a],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!=(i=null!=(r=n[a])?r:e.readValue(a))?i:t[a]),null!=u&&("string"==typeof u&&(n4(u)||n9(u))?u=parseFloat(u):!rz(u)&&rx.test(l)&&(u=rT(a,l)),e.addValue(a,ro(u,{owner:e})),void 0===n[a]&&(n[a]=u),null!==u&&e.setBaseTarget(a,u))}}(this,n,o);let e=((e,t,n,r)=>{var i,o,a,s;let l=function(e,{...t},n){let r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};for(let i in n&&(n={...n}
9),e.values.forEach(e=>{let t=e.get();if(!ox(t))return;let n=ob(t,r);n&&e.set(n)}),t){let e=t[i];if(!ox(e))continue;let o=ob(e,r);o&&(t[i]=o,n&&void 0===n[i]&&(n[i]=e))}return{target:t,transitionEnd:n}}(e,t,r);return t=l.target,i=e,o=t,a=n,s=r=l.transitionEnd,Object.keys(o).some(ok)?((e,t,n={},r={})=>{t={...t},r={...r};let i=Object.keys(t).filter(ok),o=[],a=!1,s=[];if(i.forEach(i=>{let l,u=e.getValue(i);if(!e.hasValue(i))return;let c=n[i],d=rS(c),p=t[i];if(nP(p)){let e=p.length,t=+(null===p[0]);d=rS(c=p[t]);for(let n=t;n<e;n++)l?rR(rS(p[n])===l,"All keyframes must be of the same type"):rR((l=rS(p[n]))===d||oC(d)&&oC(l),"Keyframes must be of the same dimension as the current value")}else l=rS(p);if(d!==l)if(oC(d)&&oC(l)){let e=u.get();"string"==typeof e&&u.set(parseFloat(e)),"string"==typeof p?t[i]=parseFloat(p):Array.isArray(p)&&l===nn&&(t[i]=p.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==l?void 0:l.transform)&&(0===c||0===p)?0===c?u.set(l.transform(c)):t[i]=d.transform(p):(a||(o=function(e){let t=[];return oS.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(+!!n.startsWith("scale")))}),t.length&&e.render(),t}(e),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],oE(u,p))}),!s.length)return{target:t,transitionEnd:r};{let n=s.indexOf("height")>=0?window.pageYOffset:null,i=((e,t,n)=>{let r=t.measureViewportBox(),i=getComputedStyle(t.current),{display:o}=i,a={};"none"===o&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{a[e]=oM[e](r,i)}),t.render();let s=t.measureViewportBox();return n.forEach(n=>{oE(t.getValue(n),a[n]),e[n]=oM[n](s,i)}),e})(t,e,s);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),td&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}})(i,o,a,s):{target:o,transitionEnd:s}})(this,n,o,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class oF extends oB{readValueFromInstance(e,t){if(tq.has(t)){let e=rC(t);return e&&e.default||0}{let n=window.getComputedStyle(e),r=(tJ(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return om(e,t)}build(e,t,n,r){nl(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e){return nE(e)}renderInstance(e,t,n,r){nb(e,t,n,r)}}class oO extends oB{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){var n;return tq.has(t)?(null==(n=rC(t))?void 0:n.default)||0:(t=n_.has(t)?t:nw(t),e.getAttribute(t))}measureInstanceViewportBox(){return i4()}scrapeMotionValuesFromProps(e){return nC(e)}build(e,t,n,r){ny(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){nk(e,t,n,r)}mount(e){this.isSVGTag=nx(e.tagName),super.mount(e)}}let o$=(e,t)=>
9tH(e)?new oO(t,{enableHardwareAcceleration:!1}):new oF(t,{enableHardwareAcceleration:!0});function oN(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let oH={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!nn.test(e))return e;else e=parseFloat(e);let n=oN(e,t.target.x),r=oN(e,t.target.y);return`${n}% ${r}%`}},oW="_$css",oZ={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=e.includes("var("),o=[];i&&(e=e.replace(ow,e=>(o.push(e),oW)));let a=rx.parse(e);if(a.length>5)return r;let s=rx.createTransformer(e),l=+("number"!=typeof a[0]),u=n.x.scale*t.x,c=n.y.scale*t.y;a[0+l]/=u,a[1+l]/=c;let d=rH(u,c,.5);"number"==typeof a[2+l]&&(a[2+l]/=d),"number"==typeof a[3+l]&&(a[3+l]/=d);let p=s(a);if(i){let e=0;p=p.replace(oW,()=>{let t=o[e];return e++,t})}return p}};class oq extends f.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Object.assign(tW,oY),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),tU.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||to.postRender(()=>{var e;(null==(e=o.getStack())?void 0:e.members.length)||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),(null==t?void 0:t.group)&&t.group.remove(r),(null==n?void 0:n.deregister)&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;null==e||e()}render(){return null}}let oY={borderRadius:{...oH,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:oH,borderTopRightRadius:oH,borderBottomLeftRadius:oH,borderBottomRightRadius:oH,boxShadow:oZ},oG=["TopLeft","TopRight","BottomLeft","BottomRight"],oX=oG.length,oK=e=>"string"==typeof e?parseFloat(e):e,oJ=e=>"number"==typeof e||nn.test(e);function oQ(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let o0=o5(0,.5,r7),o1=o5(.5,.95,r2);function o5(e,t,n){return r=>r<e?0:r>t?1:n(r0(e,t,r))}function o2(e,t){e.min=t.min,e.max=t.max}function o3(e,t){o2(e.x,t.x),o2(e.y,t.y)}function o8(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function o6(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(nt.test(t)&&(t=parseFloat(t),t=rH(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=rH(o.min,o.max,r);e===o&&(s-=t),e.min=o8(e.min,t,n,s,i),e.max=o8(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let o7=["x","scaleX","originX"],o4=["y","scaleY","originY"];function o9(e,t,n,r){o6(e.x,t,o7,null==n?void 0:n.x,null==r?void 0:r.x),o6(e.y,t,o4,null==n?void 0:n.y,null==r?void 0:r.y)}function ae(e){return 0===e.translate&&1===e.scale}function at(e){return ae(e.x)&&ae(e.y)}function an(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function ar(e){return iY(e.x)/iY(e.y)}class ai{constructor(){this.members=[]}add(e){re(this.members,e),e.scheduleRender()}remove(e){if(rt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){var n;let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),(null==(n=e.root)?void 0:n.isUpdating)&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&r.hide()}}
9exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,i,o;null==(n=(t=e.options).onExitComplete)||n.call(t),null==(o=null==(r=e.resumingFrom)?void 0:(i=r.options).onExitComplete)||o.call(i)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ao(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{rotate:e,rotateX:t,rotateY:i}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),i&&(r+=`rotateY(${i}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return(1!==a||1!==s)&&(r+=`scale(${a}, ${s})`),r||"none"}let aa=(e,t)=>e.depth-t.depth;class as{constructor(){this.children=[],this.isDirty=!1}add(e){re(this.children,e),this.isDirty=!0}remove(e){rt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(aa),this.isDirty=!1,this.children.forEach(e)}}let al=["","X","Y","Z"],au=0;function ac({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e,n={},r=null==t?void 0:t()){this.id=au++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(ah),this.nodes.forEach(av),this.nodes.forEach(ax)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=e,this.latestValues=n,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new as)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new rn),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);null==n||n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}registerPotentialNode(e,t){this.potentialNodes.set(e,t)}mount(t,n=!1){var r;if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:i,layout:o,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),null==(r=this.parent)||r.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),n&&(o||i)&&(this.isLayoutDirty=!0),e){let n,r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=ix(r,250),tU.hasAnimatedSinceResize&&(tU.hasAnimatedSinceResize=!1,this.nodes.forEach(ay))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&a&&(i||o)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{var i,o,s,l,u;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let c=null!=(o=null!=(i=this.options.transition)?i:a.getDefaultTransition())?o:aC,{onLayoutAnimationStart:d,onLayoutAnimationComplete:p}=a.getProps(),h=!this.targetLayout||!an(this.targetLayout,r)||n,m=!t&&n;if((null==(s=this.resumeFrom)?void 0:s.instance)||m||t&&(h||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,m);let t={...iA(c,"layout"),onPlay:d,onComplete:p};a.shouldReduceMotion&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||0!==this.animationProgress||ay(this),this.isLead()&&(null==(u=(l=this.options).onExitComplete)||u.call(l));this.targetLayout=r})}unmount(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null==(e=this.getStack())||e.remove(this),null==(t=this.parent)||t.children.delete(this),this.instance=void 0,ta.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var e;return this.isAnimationBlocked||(null==(e=this.parent)?void 0:e.isTreeAnimationBlocked())||!1}startUpdate(){var e;!this.isUpdateBlocked()&&(this.isUpdating=!0,null==(e=this.nodes)||e.forEach(aw),this.animationId++)}willUpdate(e=!0){var t,n,r;if(this.root.isUpdateBlocked()){null==(n=(t=this.options).onExitComplete)||n.call(t);return}
9if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot")}let{layoutId:i,layout:o}=this.options;if(void 0===i&&!o)return;let a=null==(r=this.options.visualElement)?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==a?void 0:a(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(af);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(aT),this.potentialNodes.clear()),this.nodes.forEach(ag),this.nodes.forEach(ad),this.nodes.forEach(ap),this.clearAllSnapshots(),ts.update(),ts.preRender(),ts.render())}clearAllSnapshots(){this.nodes.forEach(am),this.sharedNodes.forEach(ab)}scheduleUpdateProjection(){to.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){to.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){var e;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=i4(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),null==(e=this.options.visualElement)||e.notify("LayoutMeasure",this.layout.layoutBox,null==t?void 0:t.layoutBox)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){var e;if(!i)return;let t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!at(this.projectionDelta),r=null==(e=this.options.visualElement)?void 0:e.getProps().transformTemplate,o=null==r?void 0:r(this.latestValues,""),a=o!==this.prevTransformTemplateValue;t&&(n||or(this.latestValues)||a)&&(i(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),aP((t=r).x),aP(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return i4();let t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(ou(t.x,n.offset.x),ou(t.y,n.offset.y)),t}removeElementScroll(e){let t=i4();o3(t,e);for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){o3(t,e);let{scroll:n}=this.root;n&&(ou(t.x,-n.offset.x),ou(t.y,-n.offset.y))}ou(t.x,i.offset.x),ou(t.y,i.offset.y)}}return t}applyTransform(e,t=!1){let n=i4();o3(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&oh(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),or(r.latestValues)&&oh(n,r.latestValues)}return or(this.latestValues)&&oh(n,this.latestValues),n}removeTransform(e){var t;let n=i4();o3(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!or(r.latestValues))continue;on(r.latestValues)&&r.updateSnapshot();let i=i4();o3(i,r.measurePageBox()),o9(n,r.latestValues,null==(t=r.snapshot)?void 0:t.layoutBox,i)}return or(this.latestValues)&&o9(n,this.latestValues),n}setTargetDelta(e){this.targetDelta=e,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var e,t,n,r;let i=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=i.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=i.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;let{layout:o,layoutId:a}=this.options;
9if(this.layout&&(o||a)){if(!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout?(this.relativeParent=e,this.relativeTarget=i4(),this.relativeTargetOrigin=i4(),i0(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),o3(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if((this.relativeTarget||this.targetDelta)&&((this.target||(this.target=i4(),this.targetWithTransforms=i4()),this.relativeTarget&&this.relativeTargetOrigin&&(null==(e=this.relativeParent)?void 0:e.target))?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,iJ(t.x,n.x,r.x),iJ(t.y,n.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):o3(this.target,this.layout.layoutBox),os(this.target,this.targetDelta)):o3(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target?(this.relativeParent=e,this.relativeTarget=i4(),this.relativeTargetOrigin=i4(),i0(this.relativeTargetOrigin,this.target,e.target),o3(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||on(this.parent.latestValues)||oi(this.parent.latestValues)))if((this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout)return this.parent;else return this.parent.getClosestProjectingParent()}calcProjection(){var e;let{isProjectionDirty:t,isTransformDirty:n}=this;this.isProjectionDirty=this.isTransformDirty=!1;let r=this.getLead(),i=!!this.resumingFrom||this!==r,o=!0;if(t&&(o=!1),i&&n&&(o=!1),o)return;let{layout:a,layoutId:s}=this.options;if(this.isTreeAnimating=!!((null==(e=this.parent)?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(a||s))return;o3(this.layoutCorrected,this.layout.layoutBox),function(e,t,n,r=!1){var i,o;let a,s,l=n.length;if(l){t.x=t.y=1;for(let u=0;u<l;u++)s=(a=n[u]).projectionDelta,(null==(o=null==(i=a.instance)?void 0:i.style)?void 0:o.display)!=="contents"&&(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&oh(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,os(e,s)),r&&or(a.latestValues)&&oh(e,a.latestValues));t.x=ol(t.x),t.y=ol(t.y)}}(this.layoutCorrected,this.treeScale,this.path,i);let{target:l}=r;if(!l)return;this.projectionDelta||(this.projectionDelta=i6(),this.projectionDeltaWithTransform=i6());let u=this.treeScale.x,c=this.treeScale.y,d=this.projectionTransform;iK(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ao(this.projectionDelta,this.treeScale),(this.projectionTransform!==d||this.treeScale.x!==u||this.treeScale.y!==c)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t,n,r;null==(n=(t=this.options).scheduleRender)||n.call(t),e&&(null==(r=this.getStack())||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){var n,r;let i=this.snapshot,o=(null==i?void 0:i.latestValues)||{},a={...this.latestValues},s=i6();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;let l=i4(),u=(null==i?void 0:i.source)!==(null==(n=this.layout)?void 0:n.source),c=1>=((null==(r=this.getStack())?void 0:r.members.length)||0),d=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(aE));this.animationProgress=0,this.mixTargetDelta=t=>{var n,r,i,p,h;let m=t/1e3;a_(s.x,e.x,m),a_(s.y,e.y,m),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(null==(n=this.relativeParent)?void 0:n.layout)&&(i0(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),r=this.relativeTarget,i=this.relativeTargetOrigin,p=l,h=m,ak(r.x,i.x,p.x,h),ak(r.y,i.y,p.y,h)),u&&(this.animationValues=a,function(e,t,n,r,i,o){i?(e.opacity=rH(0,void 0!==n.opacity?n.opacity:1,o0(r)),e.opacityExit=rH(void 0!==t.opacity?t.opacity:1,0,o1(r))):o&&(e.opacity=rH(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<oX;i++){let o=`border${oG[i]}Radius`,a=oQ(t,o),s=oQ(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||oJ(a)===oJ(s)?(e[o]=Math.max(rH(oK(a),oK(s),r),0),(nt.test(s)||nt.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=rH(t.rotate||0,n.rotate||0,r))}(a,o,this.latestValues,m,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=m},this.mixTargetDelta(0)}startAnimation(e){var t,n;this.notifyListeners("animationStart"),null==(t=this.currentAnimation)||t.stop(),this.resumingFrom&&(null==(n=this.resumingFrom.currentAnimation)||n.stop()),this.pendingAnimation&&(ta.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=to.update(()=>{tU.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n={}){let r=tG(0)?0:ro(e);return r.start(iV("",r,1e3,n)),{stop:()=>r.stop(),isAnimating:()=>r.isAnimating()}}(0,0,{...e,onUpdate:t=>{var n;this.mixTargetDelta(t),null==(n=e.onUpdate)||n.call(e,t)},onComplete:()=>{var t;null==(t=e.onComplete)||t.call(e),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null==(e=this.getStack())||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var e;this.currentAnimation&&(null==(e=this.mixTargetDelta)||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&aA(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||i4();let t=iY(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=iY(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}o3(t,n),oh(t,i),iK(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
9)}}registerSharedNode(e,t){var n,r,i;this.sharedNodes.has(e)||this.sharedNodes.set(e,new ai),this.sharedNodes.get(e).add(t),t.promote({transition:null==(n=t.options.initialPromotionConfig)?void 0:n.transition,preserveFollowOpacity:null==(i=null==(r=t.options.initialPromotionConfig)?void 0:r.shouldPreserveFollowOpacity)?void 0:i.call(r,t)})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;let r={};for(let t=0;t<al.length;t++){let i="rotate"+al[t];n[i]&&(r[i]=n[i],e.setStaticValue(i,0))}for(let t in null==e||e.render(),r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n,r;let i={};if(!this.instance||this.isSVG)return i;if(!this.isVisible)return{visibility:"hidden"};i.visibility="";let o=null==(t=this.options.visualElement)?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=nS(e.pointerEvents)||"",i.transform=o?o(this.latestValues,""):"none",i;let a=this.getLead();if(!this.projectionDelta||!this.layout||!a.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=nS(e.pointerEvents)||""),this.hasProjected&&!or(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}let s=a.animationValues||a.latestValues;this.applyTransformsToTarget(),i.transform=ao(this.projectionDeltaWithTransform,this.treeScale,s),o&&(i.transform=o(s,i.transform));let{x:l,y:u}=this.projectionDelta;for(let e in i.transformOrigin=`${100*l.origin}% ${100*u.origin}% 0`,a.animationValues?i.opacity=a===this?null!=(r=null!=(n=s.opacity)?n:this.latestValues.opacity)?r:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:i.opacity=a===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,tW){if(void 0===s[e])continue;let{correct:t,applyTo:n}=tW[e],r=t(s[e],a);if(n){let e=n.length;for(let t=0;t<e;t++)i[n[t]]=r}else i[e]=r}return this.options.layoutId&&(i.pointerEvents=a===this?nS(e.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()}),this.root.nodes.forEach(af),this.root.sharedNodes.clear()}}}function ad(e){e.updateLayout()}function ap(e){var t,n,r;let i=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&i&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:n}=e.layout,{animationType:r}=e.options,o=i.source!==e.layout.source;"size"===r?i9(e=>{let n=o?i.measuredBox[e]:i.layoutBox[e],r=iY(n);n.min=t[e].min,n.max=n.min+r}):aA(r,i.layoutBox,t)&&i9(e=>{let n=o?i.measuredBox[e]:i.layoutBox[e],r=iY(t[e]);n.max=n.min+r});let a=i6();iK(a,t,i.layoutBox);let s=i6();o?iK(s,e.applyTransform(n,!0),i.measuredBox):iK(s,t,i.layoutBox);let l=!at(a),u=!1;if(!e.resumeFrom){let n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:e,layout:r}=n;if(e&&r){let n=i4();i0(n,i.layoutBox,e.layoutBox);let o=i4();i0(o,t,r.layoutBox),an(n,o)||(u=!0)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:i,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else e.isLead()&&(null==(r=(n=e.options).onExitComplete)||r.call(n));e.options.transition=void 0}function ah(e){e.isProjectionDirty||(e.isProjectionDirty=!!(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=!!(e.parent&&e.parent.isTransformDirty))}function am(e){e.clearSnapshot()}function af(e){e.clearMeasurements()}function ag(e){let{visualElement:t}=e.options;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function ay(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function av(e){e.resolveTargetDelta()}function ax(e){e.calcProjection()}function aw(e){e.resetRotation()}function ab(e){e.removeLeadSnapshot()}function a_(e,t,n){e.translate=rH(t.translate,0,n),e.scale=rH(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ak(e,t,n,r){e.min=rH(t.min,n.min,r),e.max=rH(t.max,n.max,r)}function aE(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let aC={duration:.45,ease:[.4,0,.1,1]};function aT(e,t){let n=e.root;for(let t=e.path.length-1;t>=0;t--)if(e.path[t].instance){n=e.path[t];break}
9let r=(n&&n!==e.root?n.instance:document).querySelector(`[data-projection-id="${t}"]`);r&&e.mount(r,!0)}function aP(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function aA(e,t,n){return"position"===e||"preserve-aspect"===e&&!iG(ar(t),ar(n),.2)}let aS=ac({attachResizeListener:(e,t)=>nV(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),aM={current:void 0},az=ac({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!aM.current){let e=new aS(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),aM.current=e}return aM.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),aL={...iO,...n8,...ov,measureLayout:function(e){let[t,n]=n6(),r=(0,f.useContext)(tw);return f.createElement(oq,{...e,layoutGroup:r,switchLayoutGroup:(0,f.useContext)(tO),isPresent:t,safeToRemove:n})}},aV=function(e){function t(n,r={}){return function({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:n,useRender:r,useVisualState:i,Component:o}){e&&function(e){for(let t in e)"projectionNodeConstructor"===t?tI.projectionNodeConstructor=e[t]:tI[t].Component=e[t]}(e);let a=(0,f.forwardRef)(function(a,s){var l;let u={...(0,f.useContext)(tT),...a,layoutId:function({layoutId:e}){let t=(0,f.useContext)(tw).id;return t&&void 0!==e?t+"-"+e:e}(a)},{isStatic:c}=u,d=null,p=function(e){let{initial:t,animate:n}=function(e,t){if(tV(e)){let{initial:t,animate:n}=e;return{initial:!1===t||tM(t)?t:void 0,animate:tM(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,f.useContext)(tP));return(0,f.useMemo)(()=>({initial:t,animate:n}),[tD(t),tD(n)])}(a),h=c?void 0:tf(()=>{if(tU.hasEverUpdated)return tB++}),m=i(a,c);if(!c&&td){p.visualElement=function(e,t,n,r){let i=(0,f.useContext)(tP).visualElement,o=(0,f.useContext)(tA),a=(0,f.useContext)(tm),s=(0,f.useContext)(tT).reducedMotion,l=(0,f.useRef)();r=r||o.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:i,props:n,presenceId:a?a.id:void 0,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));let u=l.current;return tp(()=>{u&&u.render()}),tp(()=>{u&&u.animationState&&u.animationState.animateChanges()}),tp(()=>()=>u&&u.notify("Unmount"),[]),u}(o,m,u,t);let r=(0,f.useContext)(tA).strict,i=(0,f.useContext)(tO);p.visualElement&&(d=p.visualElement.loadFeatures(u,r,e,h,n||tI.projectionNodeConstructor,i))}return f.createElement(tF,{visualElement:p.visualElement,props:u},d,f.createElement(tP.Provider,{value:p},r(o,a,h,(l=p.visualElement,(0,f.useCallback)(e=>{e&&m.mount&&m.mount(e),l&&(e?l.mount(e):l.unmount()),s&&("function"==typeof s?s(e):tS(s)&&(s.current=e))},[l])),m,c,p.visualElement)))});return a[t$]=o,a}(e(n,r))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,r,i){return{...tH(e)?nz:nL,preloadedFeatures:n,useRender:function(e=!1){return(t,n,r,i,{latestValues:o},a)=>{let s=(tH(t)?function(e,t,n,r){let i=(0,f.useMemo)(()=>{let n=nv();return ny(n,t,{enableHardwareAcceleration:!1},nx(r),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};nc(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t,n){let r={},i=function(e,t,n){let r=e.style||{},i={};return nc(i,r,e),Object.assign(i,function({transformTemplate:e},t,n){return(0,f.useMemo)(()=>{let r=nu();return nl(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(i):i}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),r.style=i,r})(n,o,a,t),l={...function(e,t,n){let r={};for(let i in e)(nh(i)||!0===n&&np(i)||!t&&!np(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"==typeof t,e),...s,ref:i};return r&&(l["data-projection-id"]=r),(0,f.createElement)(t,l)}}(t),createVisualElement:r,projectionNodeConstructor:i,Component:e}})(e,t,aL,o$,az));function aj(){let e=(0,s._)(["\n query getPartnerImg($partnerId: String!) {\n getPartnerImg(partnerId: $partnerId)\n }\n"]);return aj=function(){return e},e}function aD(){let e=(0,s._)(["\n height: 221px;\n "]);return aD=function(){return e},e}function aR(){let e=(0,s._)(["\n height: 221px;\n max-height: 221px;\n "]);return aR=function(){return e},e}n(91307);
9var aI={id:"clusters",type:"circle",source:"clusterpartners",filter:["has","point_count"],paint:{"circle-color":["step",["get","point_count"],m.f.grayscale[0],50,m.f.grayscale[0],100,m.f.grayscale[0]],"circle-radius":["step",["get","point_count"],25,50,25,100,40]}},aU={id:"cluster-count",type:"symbol",source:"clusterpartners",filter:["has","point_count"],layout:{"text-field":"{point_count_abbreviated}","text-font":["Inter-Bold"],"text-size":21},paint:{"text-color":m.f.secondary[400]}},aB={id:"unclustered-point",type:"symbol",source:"clusterpartners",filter:["!",["has","point_count"]],layout:{"icon-image":"marker-default","icon-size":1,"icon-allow-overlap":!0}},aF=(0,f.memo)(e=>{let{getNearGyms:t,mapOSMRef:n}=e,[r,i]=(0,f.useState)([]),o=(0,f.useCallback)(()=>({type:"FeatureCollection",features:t.map(e=>({type:"Feature",properties:{id:e.id},geometry:{type:"Point",coordinates:[e.lng,e.lat]}}))}),[t]);return(0,f.useEffect)(()=>{0===r.length&&i(o())},[r,o]),(0,f.useEffect)(()=>{let e=n.current;e&&(e.on("click","clusters",async t=>{let n=e.queryRenderedFeatures(t.point,{layers:["clusters"]}),r=n[0].properties.cluster_id,i=await e.getSource("clusterpartners").getClusterExpansionZoom(r);e.easeTo({center:n[0].geometry.coordinates,zoom:i})}),e.on("mouseenter","clusters",()=>{e.getCanvas().style.cursor="pointer"}),e.on("mouseleave","clusters",()=>{e.getCanvas().style.cursor=""}),e.on("mouseenter","unclustered-point",()=>{e.getCanvas().style.cursor="pointer"}),e.on("mouseleave","unclustered-point",()=>{e.getCanvas().style.cursor=""}),(async()=>{let t=await e.loadImage("".concat(window.location.origin).concat(l.g.png.default));e.hasImage("marker-default")||e.addImage("marker-default",t.data)})())},[n]),(0,G.jsxs)(Y,{id:"clusterpartners",type:"geojson",data:r,cluster:!0,clusterMaxZoom:l.f.center,clusterRadius:50,children:[(0,G.jsx)(q,{...aI}),(0,G.jsx)(q,{...aU}),(0,G.jsx)(q,{...aB})]})}),aO=X.Ay.div.withConfig({componentId:"sc-a427a6de-0"})(["left:50%;z-index:500;position:absolute;transform:translateX(-50%);top:20px;"]),a$=X.Ay.button.withConfig({componentId:"sc-a427a6de-1"})(["align-items:center;background-color:",";border-radius:","px;border:","px solid ",";box-shadow:",";cursor:pointer;display:flex;height:","px;justify-content:center;padding:","px ","px;",""],m.f.grayscale[0],m.a.circular,m.c.thin,m.f.neutral[200],m.j.large,m.p.medium,m.u.none,m.u.comfortable,e=>e.disabled&&(0,X.AH)(["cursor:default;"])),aN=X.Ay.div.withConfig({componentId:"sc-a427a6de-2"})(["display:",";"],e=>e.show?"block":"none"),aH=(0,f.memo)(e=>{let{centerLocationDragend:t}=e,{map:n,setQueryCenterLocation:r}=(0,l.d)();return(0,G.jsx)(aO,{children:(0,G.jsxs)(a$,{onClick:()=>{r(t)},children:[(0,G.jsx)(aN,{children:(0,G.jsx)("img",{src:n.searchThisArea.button.loading,alt:"loading"})}),(0,G.jsx)(aN,{show:!0,children:(0,G.jsx)(c.a.SmallBody,{children:n.searchThisArea.button.label})})]})})}),aW=(0,e5.J1)(aj()),aZ=(0,X.AH)(["@keyframes shimmer{0%{background-position:0% 0%;}100%{background-position:-135% 0%;}}background-image:linear-gradient( -90deg,"," 0%,"," 50%,"," 100% );background-size:400% 400%;animation:shimmer 1s ease-in-out infinite;"],m.f.neutral[100],m.f.neutral[200],m.f.neutral[100]),aq=X.Ay.div.withConfig({componentId:"sc-a427a6de-3"})([""," &.skeleton-row{width:100%;height:","px;border-radius:4px;}&.skeleton-title{width:200px;height:","px;border-radius:4px;}&.skeleton-text{height:","px;margin-bottom:12px;border-radius:","px;}&.skeleton-check{flex-shrink:0;width:","px;height:","px;margin-right:12px;border-radius:4px;}&.skeleton-partner-image{width:100%;height:128px;border-radius:0 0 ","px ","px;","}"],aZ,m.p.average,m.p.average,m.p.low,m.a.small,m.w.average,m.p.average,m.a.small,m.a.small,p.e.lg(aD())),aY=e=>{let{className:t}=e;return(0,G.jsx)(aq,{className:t})},aG=X.Ay.img.attrs(()=>({height:"128"})).withConfig({componentId:"sc-a427a6de-4"})(["max-height:128px;width:100%;object-fit:cover;border-radius:0 0 ","px ","px;",""],m.a.small,m.a.small,p.e.lg(aR())),aX=e=>{let{name:t,partnerId:n}=e,[r,i]=(0,f.useState)({height:void 0,pointerEvents:"initial"}),{data:{getPartnerImg:o}={},loading:a}=(0,e2.IT)(aW,{variables:{partnerId:n},skip:!n});return(0,f.useEffect)(()=>{o||a||i({height:0,pointerEvents:"none"})},[o,a]),(0,G.jsx)(tC,{children:(0,G.jsx)(d.a,{backgroundColor:m.f.neutral[100],justifyContent:"center",display:"flex",borderRadius:"0 0 ".concat(m.a.small,"px ").concat(m.a.small,"px"),children:o?(0,G.jsx)(aG,{alt:t,src:o}):(0,G.jsx)(aV.div,{style:{width:"100%"},animate:{height:r.height,pointerEvents:r.pointerEvents},transition:{duration:.6},children:(0,G.jsx)(d.a,{width:"100%",height:{xxs:"128px",lg:"221px"},children:a&&(0,G.jsx)(aY,{className:"skeleton-partner-image"})})})})})},aK=X.Ay.button.withConfig({componentId:"sc-a427a6de-5"})(["background:",";padding:",";border:",";width:","px;height:","px;display:flex;align-items:center;justify-content:center;cursor:pointer;position:absolute;top:","px;right:","px;&:hover{svg{fill:",";}}"],m.f.grayscale[0],m.u.none,m.c.none,m.w.medium,m.p.medium,m.u.tight,m.u.tight,m.f.neutral[600]),aJ=e=>{let{onClose:t,content:n}=e,{imageUrl:r,name:i,address:o,activities:a,id:s}=n,[p,h]=(0,f.useState)(!1),[g,y]=(0,f.useState)(!0),v=(0,f.useRef)(null);return function(e,t){(0,f.useEffect)(()=>{function n(n){e.current&&!e.current.contains(n.target)&&t(null)}return document.addEventListener("mousedown",n),()=>{document.removeEventListener("mousedown",n)}},[e])}(v,t),(0,f.useEffect)(()=>{y(!1),setTimeout(()=>{h(!0)},100)},[]),!g&&(0,G.jsxs)(d.a,{ref:v,display:"flex",flexDirection:"column",backgroundColor:m.f.grayscale[0],borderRadius:m.a.small,boxShadow:m.j.medium,maxWidth:"400px",
9width:"100%",position:"relative",sx:{pointerEvents:"initial",opacity:+!!p,transition:"opacity 1s ease-in-out"},"data-testid":"map-partner-modal",children:[(0,G.jsxs)(d.a,{display:"flex",flexDirection:"row",gap:"comfortable",padding:"comfortable",children:[t&&(0,G.jsx)(aK,{onClick:t,children:(0,G.jsx)(d.b,{icon:"Close",size:16})}),(0,G.jsx)(u.J,{$xxs:!0,$xs:!0,$sm:!0,$md:!0,children:(0,G.jsx)(d.a,{width:"48px",children:(0,G.jsx)(u.B,{src:r,alt:"".concat(i," avatar")})})}),(0,G.jsx)(d.a,{display:"flex",gap:"tight",flexDirection:"column",alignItems:"flex-start",children:(0,G.jsxs)(d.a,{display:"flex",flexDirection:"column",gap:"4px",children:[i&&(0,G.jsx)(d.a,{marginRight:32,children:(0,G.jsx)(c.a.SmallBody,{children:i})}),o&&(0,G.jsxs)(d.a,{display:"flex",alignItems:"center",gap:"4px",children:[(0,G.jsx)(d.b,{icon:"PinFilled",size:"medium",fill:"medium"}),(0,G.jsx)(c.a.SmallBody,{as:"address",children:o})]}),a&&(0,G.jsx)(c.a.SmallBody,{color:"neutral-600",children:(0,l.e)({activities:a,limit:3})})]})})]}),(0,G.jsx)(aX,{partnerId:s,name:i})]})},aQ=(0,f.memo)(e=>{let{popupInfo:t,setPopupInfo:n}=e,[r,i]=(0,f.useState)(null),{setSelectPartnerCard:o,partner:a,queryCenterLocation:s}=(0,l.d)();return(0,f.useEffect)(()=>{0!==Object.keys(a).length&&n(a)},[a,n]),(0,f.useEffect)(()=>{i({lat:null==s?void 0:s.lat,lng:null==s?void 0:s.lng})},[s]),(0,G.jsxs)(G.Fragment,{children:[r&&(0,G.jsx)(U,{latitude:r.lat,longitude:r.lng,children:(0,G.jsx)("img",{src:l.g.svg.userLocation})}),t&&(0,G.jsx)(d.a,{display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",padding:"20px",zIndex:1,width:"100%",height:"100%",sx:{pointerEvents:"none"},children:(0,G.jsx)(aJ,{content:t,onClose:()=>{n(null),o({})}})})]})}),a0={background:"#f1f0fb",earth:"#f1f0fb",park_a:"#c1e6d6",park_b:"#c1e6d6",hospital:"#ECEAF9",industrial:"#ECEAF9",school:"#ECEAF9",wood_a:"#c1e6d6",wood_b:"#c1e6d6",pedestrian:"#ECEAF9",scrub_a:"#c1e6d6",scrub_b:"#c1e6d6",glacier:"#ECEAF9",sand:"#ECEAF9",beach:"#ECEAF9",aerodrome:"#ECEAF9",runway:"#ECEAF9",water:"#c6d7f5",pier:"#ECEAF9",zoo:"#ECEAF9",military:"#ECEAF9",tunnel_other_casing:"#dadce0",tunnel_minor_casing:"#dadce0",tunnel_link_casing:"#dadce0",tunnel_medium_casing:"#dadce0",tunnel_major_casing:"#dadce0",tunnel_highway_casing:"#dadce0",tunnel_other:"#f5f5ff",tunnel_minor:"#f5f5ff",tunnel_link:"#f5f5ff",tunnel_medium:"#f5f5ff",tunnel_major:"#f5f5ff",tunnel_highway:"#f5f5ff",transit_pier:"#f5f5ff",buildings:"#ECEAF9",minor_service_casing:"#dadce0",minor_casing:"#dadce0",link_casing:"#dadce0",medium_casing:"#dadce0",major_casing_late:"#dadce0",highway_casing_late:"#dadce0",other:"#f5f5ff",minor_service:"#f5f5ff",minor_a:"#f5f5ff",minor_b:"#f5f5ff",link:"#f5f5ff",medium:"#f5f5ff",major_casing_early:"#dadce0",major:"#cdcdf9",highway_casing_early:"#dadce0",highway:"#cdcdf9",railway:"#f5f5ff",boundaries:"#f5f5ff",waterway_label:"#a4cae1",bridges_other_casing:"#dadce0",bridges_minor_casing:"#dadce0",bridges_link_casing:"#dadce0",bridges_medium_casing:"#dadce0",bridges_major_casing:"#dadce0",bridges_highway_casing:"#dadce0",bridges_other:"#f5f5ff",bridges_minor:"#f5f5ff",bridges_link:"#f5f5ff",bridges_medium:"#f5f5ff",bridges_major:"#f5f5ff",bridges_highway:"#f5f5ff",roads_label_minor:"#7d7d87",roads_label_minor_halo:"#ffffff",roads_label_major:"#7d7d87",roads_label_major_halo:"#ffffff",ocean_label:"#7d7d87",peak_label:"#7d7d87",subplace_label:"#7d7d87",subplace_label_halo:"#ffffff",city_circle:"#7d7d87",city_circle_stroke:"#ffffff",city_label:"#7d7d87",city_label_halo:"#ffffff",state_label:"#7d7d87",state_label_halo:"#ffffff",country_label:"#7d7d87"},a1=(0,f.memo)(e=>{let{searchedSelected:t,setSearchedSelected:n,getNearGyms:r}=e,i=(0,h.a)("(max-width: ".concat(m.d.md.width-1,"px)")),{partner:o,queryCenterLocation:a,setQueryCenterLocation:s,setSelectPartnerCard:u}=(0,l.d)(),[c,d]=(0,f.useState)(!1),[p,g]=(0,f.useState)(null),[y,v]=(0,f.useState)(a),x={longitude:a.lng,latitude:a.lat,zoom:l.f.default},w={version:8,sources:{protomaps:{type:"vector",tiles:["https://".concat("mep-map.wellhub.com","/").concat("world","/{z}/{x}/{y}.mvt")],attribution:'\xa9 <a href="https://openstreetmap.org">OpenStreetMap</a>'}},glyphs:"".concat(window.location.origin,"/website/basemaps-assets/map-fonts/{fontstack}/{range}.pbf"),layers:function(){var e,t;return(e="protomaps",[{id:"background",type:"background",paint:{"background-color":a0.background}}
9,{id:"earth",type:"fill",source:e,"source-layer":"earth",paint:{"fill-color":a0.earth}},{id:"landuse_park",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","national_park","park","cemetery","protected_area","nature_reserve","forest","golf_course"]],paint:{"fill-color":["interpolate",["linear"],["zoom"],0,a0.park_a,12,a0.park_b]}},{id:"landuse_hospital",type:"fill",source:e,"source-layer":"landuse",filter:["any",["==","pmap:kind","hospital"]],paint:{"fill-color":a0.hospital}},{id:"landuse_industrial",type:"fill",source:e,"source-layer":"landuse",filter:["any",["==","pmap:kind","industrial"]],paint:{"fill-color":a0.industrial}},{id:"landuse_school",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","school","university","college"]],paint:{"fill-color":a0.school}},{id:"landuse_beach",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","beach"]],paint:{"fill-color":a0.beach}},{id:"landuse_zoo",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","zoo"]],paint:{"fill-color":a0.zoo}},{id:"landuse_military",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","military","naval_base","airfield"]],paint:{"fill-color":a0.zoo}},{id:"natural_wood",type:"fill",source:e,"source-layer":"natural",filter:["any",["in","pmap:kind","wood","nature_reserve","forest"]],paint:{"fill-color":["interpolate",["linear"],["zoom"],0,a0.wood_a,12,a0.wood_b]}},{id:"natural_scrub",type:"fill",source:e,"source-layer":"natural",filter:["in","pmap:kind","scrub","grassland","grass"],paint:{"fill-color":["interpolate",["linear"],["zoom"],0,a0.scrub_a,12,a0.scrub_b]}},{id:"natural_glacier",type:"fill",source:e,"source-layer":"natural",filter:["==","pmap:kind","glacier"],paint:{"fill-color":a0.glacier}},{id:"natural_sand",type:"fill",source:e,"source-layer":"natural",filter:["==","pmap:kind","sand"],paint:{"fill-color":a0.sand}},{id:"landuse_aerodrome",type:"fill",source:e,"source-layer":"landuse",filter:["any",["in","pmap:kind","aerodrome"]],paint:{"fill-color":a0.aerodrome}},{id:"transit_runway",type:"line",source:e,"source-layer":"transit",filter:["any",["in","pmap:kind_detail","runway"]],paint:{"line-color":a0.runway,"line-width":["interpolate",["exponential",1.6],["zoom"],10,0,12,4,18,30]}},{id:"transit_taxiway",type:"line",source:e,"source-layer":"transit",minzoom:13,filter:["any",["in","pmap:kind_detail","taxiway"]],paint:{"line-color":a0.runway,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,15,6]}},{id:"water",type:"fill",source:e,"source-layer":"water",paint:{"fill-color":a0.water}},{id:"physical_line_stream",type:"line",source:e,"source-layer":"physical_line",minzoom:14,filter:["all",["in","pmap:kind","stream"]],paint:{"line-color":a0.water,"line-width":.5}},{id:"physical_line_river",type:"line",source:e,"source-layer":"physical_line",minzoom:9,filter:["all",["in","pmap:kind","river"]],paint:{"line-color":a0.water,"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1,18,12]}},{id:"landuse_pedestrian",type:"fill",source:e,"source-layer":"landuse",filter:["any",["==","pmap:kind","pedestrian"]],paint:{"fill-color":a0.pedestrian}},{id:"landuse_pier",type:"fill",source:e,"source-layer":"landuse",filter:["any",["==","pmap:kind","pier"]],paint:{"fill-color":a0.pier}},{id:"roads_tunnels_other_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["in","pmap:kind","other","path"]],paint:{"line-color":a0.tunnel_other_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_tunnels_minor_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","minor_road"]],paint:{"line-color":a0.tunnel_minor_casing,"line-dasharray":[3,2],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,1]}},{id:"roads_tunnels_link_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:link",1]],paint:{"line-color":a0.tunnel_link_casing,"line-dasharray":[3,2],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,1]}},{id:"roads_tunnels_medium_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":a0.tunnel_medium_casing,"line-dasharray":[3,2],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,.5,
918,13],"line-width":["interpolate",["exponential",1.6],["zoom"],10,0,10.5,1]}},{id:"roads_tunnels_major_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":a0.tunnel_major_casing,"line-dasharray":[3,2],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,.5,18,13],"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1]}},{id:"roads_tunnels_highway_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":a0.tunnel_highway_casing,"line-dasharray":[6,.5],"line-gap-width":["interpolate",["exponential",1.6],["zoom"],3,0,3.5,.5,18,15],"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,1,20,15]}},{id:"roads_tunnels_other",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["in","pmap:kind","other","path"]],paint:{"line-color":a0.tunnel_other,"line-dasharray":[4.5,.5],"line-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_tunnels_minor",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","minor_road"]],paint:{"line-color":a0.tunnel_minor,"line-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11]}},{id:"roads_tunnels_link",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:link",1]],paint:{"line-color":a0.tunnel_minor,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11]}},{id:"roads_tunnels_medium",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":a0.tunnel_medium,"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,12,1.2,15,3,18,13]}},{id:"roads_tunnels_major",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":a0.tunnel_major,"line-width":["interpolate",["exponential",1.6],["zoom"],6,0,12,1.6,15,3,18,13]}},{id:"roads_tunnels_highway",type:"line",source:e,"source-layer":"roads",filter:["all",["<","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":a0.tunnel_highway,"line-width":["interpolate",["exponential",1.6],["zoom"],3,0,6,1.1,12,1.6,15,5,18,15]}},{id:"buildings",type:"fill",source:e,"source-layer":"buildings",paint:{"fill-color":a0.buildings,"fill-opacity":.5}},{id:"transit_pier",type:"line",source:e,"source-layer":"transit",filter:["any",["==","pmap:kind","pier"]],paint:{"line-color":a0.transit_pier,"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,.5,20,16]}},{id:"roads_minor_service_casing",type:"line",source:e,"source-layer":"roads",minzoom:13,filter:["all",["==","pmap:level",0],["==","pmap:kind","minor_road"],["==","pmap:kind_detail","service"]],paint:{"line-color":a0.minor_service_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],13,0,18,8],"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,.8]}},{id:"roads_minor_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","minor_road"],["!=","pmap:kind_detail","service"]],paint:{"line-color":a0.minor_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,1]}},{id:"roads_link_casing",type:"line",source:e,"source-layer":"roads",minzoom:13,filter:["all",["==","pmap:link",1]],paint:{"line-color":a0.minor_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1.5]}},{id:"roads_medium_casing",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":a0.medium_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,12,1.2,15,3,18,13],"line-width":["interpolate",["exponential",1.6],["zoom"],10,0,10.5,1.5]}},{id:"roads_major_casing_late",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",["==","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":a0.major_casing_late,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],6,0,12,1.6,15,3,18,13],"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1]}},{id:"roads_highway_casing_late",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",["==","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":a0.highway_casing_late,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],3,0,3.5,.5,18,15],"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,1,20,15]}},{id:"roads_other",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["in","pmap:kind","other","path"]],paint:{"line-color":a0.other,"line-dasharray":[3,1],"line-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_link",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:link",1]],paint:{"line-color":a0.link,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11]}},{id:"roads_minor_service",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","minor_road"],["==","pmap:kind_detail","service"]],paint:{"line-color":a0.minor_service,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,18,8]}},{id:"roads_minor",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","minor_road"],["!=","pmap:kind_detail","service"]],paint:{"line-color":["interpolate",["exponential",1.6],["zoom"],11,a0.minor_a,16,a0.minor_b],"line-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11]}},{id:"roads_medium",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":a0.medium,"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,12,1.2,15,3,18,13]}},{id:"roads_major_casing_early",type:"line",source:e,"source-layer":"roads",maxzoom:12,filter:["all",["==","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":a0.major_casing_early,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,.5,
918,13],"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1]}},{id:"roads_major",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":a0.major,"line-width":["interpolate",["exponential",1.6],["zoom"],6,0,12,1.6,15,3,18,13]}},{id:"roads_highway_casing_early",type:"line",source:e,"source-layer":"roads",maxzoom:12,filter:["all",["==","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":a0.highway_casing_early,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],3,0,3.5,.5,18,15],"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,1]}},{id:"roads_highway",type:"line",source:e,"source-layer":"roads",filter:["all",["==","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":a0.highway,"line-width":["interpolate",["exponential",1.6],["zoom"],3,0,6,1.1,12,1.6,15,5,18,15]}},{id:"transit_railway",type:"line",source:e,"source-layer":"transit",filter:["all",["==","pmap:kind","rail"]],paint:{"line-dasharray":[.3,.75],"line-opacity":.5,"line-color":a0.railway,"line-width":["interpolate",["exponential",1.6],["zoom"],3,0,6,.15,18,9]}},{id:"boundaries_country",type:"line",source:e,"source-layer":"boundaries",filter:["<=","pmap:min_admin_level",2],paint:{"line-color":a0.boundaries,"line-width":1,"line-dasharray":[3,2]}},{id:"boundaries",type:"line",source:e,"source-layer":"boundaries",filter:[">","pmap:min_admin_level",2],paint:{"line-color":a0.boundaries,"line-width":.5,"line-dasharray":[3,2]}},{id:"roads_bridges_other_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["in","pmap:kind","other","path"]],paint:{"line-color":a0.bridges_other_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_bridges_link_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:link",1]],paint:{"line-color":a0.bridges_minor_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],12,0,12.5,1.5]}},{id:"roads_bridges_minor_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","minor_road"]],paint:{"line-color":a0.bridges_minor_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11],"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,.8]}},{id:"roads_bridges_medium_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":a0.bridges_medium_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,12,1.2,15,3,18,13],"line-width":["interpolate",["exponential",1.6],["zoom"],10,0,10.5,1.5]}},{id:"roads_bridges_major_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":a0.bridges_major_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,.5,18,10],"line-width":["interpolate",["exponential",1.6],["zoom"],9,0,9.5,1.5]}},{id:"roads_bridges_other",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["in","pmap:kind","other","path"]],paint:{"line-color":a0.bridges_other,"line-dasharray":[2,1],"line-width":["interpolate",["exponential",1.6],["zoom"],14,0,20,7]}},{id:"roads_bridges_minor",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","minor_road"]],paint:{"line-color":a0.bridges_minor,"line-width":["interpolate",["exponential",1.6],["zoom"],11,0,12.5,.5,15,2,18,11]}},{id:"roads_bridges_link",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:link",1]],paint:{"line-color":a0.bridges_minor,"line-width":["interpolate",["exponential",1.6],["zoom"],13,0,13.5,1,18,11]}},{id:"roads_bridges_medium",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","medium_road"]],paint:{"line-color":a0.bridges_medium,"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,12,1.2,15,3,18,13]}},{id:"roads_bridges_major",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","major_road"]],paint:{"line-color":a0.bridges_major,"line-width":["interpolate",["exponential",1.6],["zoom"],6,0,12,1.6,15,3,18,13]}},{id:"roads_bridges_highway_casing",type:"line",source:e,"source-layer":"roads",minzoom:12,filter:["all",[">","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":a0.bridges_highway_casing,"line-gap-width":["interpolate",["exponential",1.6],["zoom"],3,0,3.5,.5,18,15],"line-width":["interpolate",["exponential",1.6],["zoom"],7,0,7.5,1,20,15]}},{id:"roads_bridges_highway",type:"line",source:e,"source-layer":"roads",filter:["all",[">","pmap:level",0],["==","pmap:kind","highway"],["!=","pmap:link",1]],paint:{"line-color":a0.bridges_highway,"line-width":["interpolate",["exponential",1.6],["zoom"],3,0,6,1.1,12,1.6,15,5,18,15]}}]).concat([{id:"physical_line_waterway_label",type:"symbol",source:t="protomaps","source-layer":"physical_line",minzoom:13,filter:["all",["in","pmap:kind","river","stream"]],layout:{"symbol-placement":"line","text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":12,"text-letter-spacing":.3},paint:{"text-color":a0.waterway_label}},{id:"physical_point_peak",type:"symbol",source:t,"source-layer":"physical_point",filter:["any",["==","pmap:kind","peak"]],layout:{"text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":["interpolate",["linear"],["zoom"],10,8,16,12],"text-letter-spacing":.1,"text-max-width":9},paint:{"text-color":a0.peak_label,"text-halo-width":1.5}},{id:"roads_labels_minor",type:"symbol",source:t,"source-layer":"roads",minzoom:15,filter:["any",["in","pmap:kind","minor_road","other","path"]],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"symbol-placement":"line","text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":12},paint:{"text-color":a0.roads_label_minor,"text-halo-color":a0.roads_label_minor_halo,"text-halo-width":2}},{id:"physical_point_ocean",type:"symbol",source:t,"source-layer":"physical_point",filter:["any",["in","pmap:kind","sea","ocean","lake","water","bay","strait","fjord"]],layout:{"text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":["interpolate",["linear"],["zoom"],3,10,10,12],"text-letter-spacing":.1,"text-max-width":9,"text-transform":"uppercase"},paint:{"text-color":a0.ocean_label}},{id:"physical_point_lakes",type:"symbol",source:t,"source-layer":"physical_point",filter:["any",["in","pmap:kind","lake","water"]],layout:{"text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":["interpolate",["linear"],["zoom"],3,0,6,12,10,12],"text-letter-spacing":.1,"text-max-width":9},paint:{"text-color":a0.ocean_label}},{id:"roads_labels_major",type:"symbol",source:t,"source-layer":"roads",minzoom:11,filter:["any",["in","pmap:kind","highway","major_road","medium_road"]],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"symbol-placement":"line","text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":12},paint:{"text-color":a0.roads_label_major,"text-halo-color":a0.roads_label_major_halo,"text-halo-width":2}},{id:"places_subplace",type:"symbol",source:t,"source-layer":"places",filter:["==","pmap:kind","neighbourhood"],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"text-field":"{name}","text-font":["Inter-Medium"],"text-max-width":7,"text-letter-spacing":.1,"text-padding":["interpolate",["linear"],["zoom"],5,2,8,4,12,18,15,20],"text-size":["interpolate",["exponential",1.2],["zoom"],11,8,14,14,18,24],"text-transform":"uppercase"},paint:{"text-color":a0.subplace_label,"text-halo-color":a0.subplace_label_halo,"text-halo-width":2}},{id:"pois_important",type:"symbol",source:t,"source-layer":"pois",filter:["any",["<",["get","pmap:min_zoom"],13]],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"text-font":["Inter-Medium"],"text-field":["get","name"],"text-size":11,"text-max-width":9,"icon-padding":["interpolate",["linear"],["zoom"],0,2,14,2,16,20,17,2,22,2]},paint:{"text-color":a0.subplace_label,"text-halo-color":a0.subplace_label_halo,"text-halo-width":1.5}}
9,{id:"places_locality_circle",type:"circle",source:t,"source-layer":"places",filter:["==","pmap:kind","locality"],paint:{"circle-radius":2,"circle-stroke-width":1.5,"circle-stroke-color":a0.city_circle_stroke,"circle-color":a0.city_circle,"circle-translate":[-6,0]},maxzoom:8},{id:"places_locality",type:"symbol",source:t,"source-layer":"places",filter:["==","pmap:kind","locality"],layout:{"text-field":"{name}","text-font":["case",["<=",["get","pmap:min_zoom"],5],["literal",["Inter-Medium"]],["literal",["Inter-Medium"]]],"text-padding":["interpolate",["linear"],["zoom"],5,3,8,7,12,11],"text-size":["interpolate",["linear"],["zoom"],2,["case",["<",["get","pmap:population_rank"],13],8,[">=",["get","pmap:population_rank"],13],13,0],4,["case",["<",["get","pmap:population_rank"],13],10,[">=",["get","pmap:population_rank"],13],15,0],6,["case",["<",["get","pmap:population_rank"],12],11,[">=",["get","pmap:population_rank"],12],17,0],8,["case",["<",["get","pmap:population_rank"],11],11,[">=",["get","pmap:population_rank"],11],18,0],10,["case",["<",["get","pmap:population_rank"],9],12,[">=",["get","pmap:population_rank"],9],20,0],15,["case",["<",["get","pmap:population_rank"],8],12,[">=",["get","pmap:population_rank"],8],22,0]],"icon-padding":["interpolate",["linear"],["zoom"],0,2,8,4,10,8,12,6,22,2],"text-anchor":["step",["zoom"],"left",8,"center"],"text-radial-offset":.2},paint:{"text-color":a0.city_label,"text-halo-color":a0.city_label_halo,"text-halo-width":1}},{id:"places_region",type:"symbol",source:t,"source-layer":"places",filter:["==","pmap:kind","region"],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"text-field":["step",["zoom"],["get","name:short"],6,["get","name"]],"text-font":["Inter-Medium"],"text-size":["interpolate",["linear"],["zoom"],3,11,7,16],"text-radial-offset":.2,"text-anchor":"center","text-transform":"uppercase"},paint:{"text-color":a0.state_label,"text-halo-color":a0.state_label_halo,"text-halo-width":2}},{id:"places_country",type:"symbol",source:t,"source-layer":"places",filter:["==","pmap:kind","country"],layout:{"symbol-sort-key":["get","pmap:min_zoom"],"text-field":"{name}","text-font":["Inter-Medium"],"text-size":["interpolate",["linear"],["zoom"],2,["case",["<",["get","pmap:population_rank"],10],8,[">=",["get","pmap:population_rank"],10],12,0],6,["case",["<",["get","pmap:population_rank"],8],10,[">=",["get","pmap:population_rank"],8],18,0],8,["case",["<",["get","pmap:population_rank"],7],11,[">=",["get","pmap:population_rank"],7],20,0]],"icon-padding":["interpolate",["linear"],["zoom"],0,2,14,2,16,20,17,2,22,2],"text-transform":"uppercase"},paint:{"text-color":a0.country_label}}])}()},[b,_]=(0,f.useState)(null),k=(0,f.useRef)(null),E=(0,f.useCallback)((e,t)=>{k.current.flyTo({center:{lat:e,lng:t},zoom:l.f.center,essential:!0})},[]),C=(0,f.useCallback)((e,t)=>{k.current.jumpTo({center:{lat:e,lng:t}})},[]),T=(0,f.useCallback)(()=>{navigator.geolocation&&navigator.geolocation.getCurrentPosition(e=>{s({lat:e.coords.latitude,lng:e.coords.longitude})},()=>{})},[s]),P=(0,f.useCallback)(e=>{var t;let n=e.features[0];if(null==n||null==(t=n.properties)?void 0:t.id){let e=r.find(e=>e.id===n.properties.id),{lat:t,lng:i}=e;E(t,i),_(e),u(e),(0,K.t4)({link:{name:"partner_map_pin",text:(0,e1.y4)(e.name),url:""},component:{name:"partner_search_map",type:"map",section:"unique"}})}},[r,E,u,K.t4]),A=(0,f.useCallback)(e=>{let{viewState:t}=e,n={lat:t.latitude,lng:t.longitude};if(a&&n){let e={lat:Math.abs(a.lat-n.lat),lng:Math.abs(a.lng-n.lng)},{locationDifferenceAllowed:t}=l.h.searchThisArea;e.lat>t||e.lng>t?(d(!0),g(n)):d(!1)}},[a]);return(0,f.useEffect)(()=>{t&&n(null)},[t,n]),(0,f.useEffect)(()=>(J.addProtocol("pmtiles",new eN().tile),()=>{J.removeProtocol("pmtiles")}),[]),(0,f.useEffect)(()=>{let e=k.current,{index:t,lat:n,lng:r}=o;e&&t>=0&&n&&r&&E(n,r)},[o,k,E]),(0,f.useEffect)(()=>{let e=k.current,t=y.lat!==a.lat||y.lng!==a.lng;e&&t&&(C(a.lat,a.lng),d(!1),v(a))},[a,s,C,y]),(0,G.jsxs)(Z,{ref:k,mapLib:J,initialViewState:x,minZoom:l.f.min,maxZoom:l.f.max,mapStyle:w,interactiveLayerIds:[aI.id,aU.id,aB.id],onClick:P,onDragEnd:A,style:{height:"100%",width:"100%"},children:[c&&(0,G.jsx)(aH,{centerLocationDragend:p}),(0,G.jsx)(aF,{getNearGyms:r,mapOSMRef:k}),(0,G.jsx)(aQ,{popupInfo:b,setPopupInfo:_}),(0,G.jsx)(l.q,{buttonType:"Icon",icon:{icon:"Location"},onClick:T,"aria-label":"Use current location","data-testid":"map-location-button"}),(0,G.jsx)(O,{position:"bottom-right",showCompass:!1,showZoom:!i})]})})},91307:()=>{}}]); 10//# sourceMappingURL=6746.c8d7c61aae26bf1b.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.