@carto/ps-react-maps 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react");var ke=(a=>(a.Roadmap="roadmap",a.Satellite="satellite",a.Terrain="terrain",a))(ke||{}),Ae=(a=>(a.DarkMatter="dark-matter",a.Positron="positron",a.Voyager="voyager",a))(Ae||{});const mr={positron:"https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",voyager:"https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json","dark-matter":"https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"},z=()=>{throw new Error("You forgot to wrap your component in <MapProvider>.")},W={state:{maps:{}},actions:{setViewState:z,setBasemap:z,setResize:z,setZoom:z}},te=h.createContext(W.state),ne=h.createContext(W.actions);var k=(a=>(a.SetViewState="SetViewState",a.SetBasemap="SetBasemap",a.SetResize="SetResize",a.SetZoom="SetZoom",a))(k||{});function De(a,{type:S,payload:T}){return{SetViewState:()=>{const{id:u,viewState:m}=T,p={...a.maps};return p[u]={...a.maps[u],viewState:m},{...a,maps:p}},SetResize:()=>{const{id:u,width:m,height:p}=T,E={...a.maps};return E[u]={...a.maps[u],viewState:{...a.maps[u].viewState,width:m,height:p}},{...a,maps:E}},SetBasemap:()=>{const{id:u,basemap:m}=T,p={...a.maps};return p[u]={...a.maps[u],basemap:m},{...a,maps:p}},SetZoom:()=>{const{id:u,zoom:m}=T,p={...a.maps};return p[u]={...a.maps[u],viewState:{...a.maps[u].viewState,zoom:m}},{...a,maps:p}}}[S]?.()??a}function yr(){return h.useContext(te)}function gr(){return h.useContext(ne)}var re={exports:{}},V={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react");var ke=(a=>(a.Roadmap="roadmap",a.Satellite="satellite",a.Terrain="terrain",a))(ke||{}),De=(a=>(a.DarkMatter="dark-matter",a.Positron="positron",a.Voyager="voyager",a))(De||{});const br={positron:"https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",voyager:"https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json","dark-matter":"https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"},z=()=>{throw new Error("You forgot to wrap your component in <MapProvider>.")},W={state:{maps:{}},actions:{setViewState:z,setBasemap:z,setResize:z,setZoom:z}},te=_.createContext(W.state),ne=_.createContext(W.actions);var k=(a=>(a.SetViewState="SetViewState",a.SetBasemap="SetBasemap",a.SetResize="SetResize",a.SetZoom="SetZoom",a))(k||{});function Ae(a,{type:b,payload:E}){return{SetViewState:()=>{const{id:u,viewState:m}=E,p={...a.maps};return p[u]={...a.maps[u],viewState:m},{...a,maps:p}},SetResize:()=>{const{id:u,width:m,height:p}=E,S={...a.maps};return S[u]={...a.maps[u],viewState:{...a.maps[u].viewState,width:m,height:p}},{...a,maps:S}},SetBasemap:()=>{const{id:u,basemap:m}=E,p={...a.maps};return p[u]={...a.maps[u],basemap:m},{...a,maps:p}},SetZoom:()=>{const{id:u,zoom:m}=E,p={...a.maps};return p[u]={...a.maps[u],viewState:{...a.maps[u].viewState,zoom:m}},{...a,maps:p}}}[b]?.()??a}function Ie(){return _.useContext(te)}function Fe(){return _.useContext(ne)}function gr(a){const{maps:{[a]:b}}=Ie();return b}function Rr(a){const{setBasemap:b,setResize:E,setViewState:w,setZoom:u}=Fe();return{setBasemap:b.bind(null,a),setResize:E.bind(null,a),setViewState:w.bind(null,a),setZoom:u.bind(null,a)}}var re={exports:{}},V={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Oe;function br(){if(Oe)return V;Oe=1;var a=h,S=Symbol.for("react.element"),T=Symbol.for("react.fragment"),C=Object.prototype.hasOwnProperty,u=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function p(E,y,x){var g,l={},f=null,w=null;x!==void 0&&(f=""+x),y.key!==void 0&&(f=""+y.key),y.ref!==void 0&&(w=y.ref);for(g in y)C.call(y,g)&&!m.hasOwnProperty(g)&&(l[g]=y[g]);if(E&&E.defaultProps)for(g in y=E.defaultProps,y)l[g]===void 0&&(l[g]=y[g]);return{$$typeof:S,type:E,key:f,ref:w,props:l,_owner:u.current}}return V.Fragment=T,V.jsx=p,V.jsxs=p,V}var $={};/**
9
+ */var Oe;function hr(){if(Oe)return V;Oe=1;var a=_,b=Symbol.for("react.element"),E=Symbol.for("react.fragment"),w=Object.prototype.hasOwnProperty,u=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,m={key:!0,ref:!0,__self:!0,__source:!0};function p(S,y,x){var g,l={},f=null,C=null;x!==void 0&&(f=""+x),y.key!==void 0&&(f=""+y.key),y.ref!==void 0&&(C=y.ref);for(g in y)w.call(y,g)&&!m.hasOwnProperty(g)&&(l[g]=y[g]);if(S&&S.defaultProps)for(g in y=S.defaultProps,y)l[g]===void 0&&(l[g]=y[g]);return{$$typeof:b,type:S,key:f,ref:C,props:l,_owner:u.current}}return V.Fragment=E,V.jsx=p,V.jsxs=p,V}var $={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,14 +14,14 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var xe;function Rr(){return xe||(xe=1,process.env.NODE_ENV!=="production"&&function(){var a=h,S=Symbol.for("react.element"),T=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),E=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),q=Symbol.iterator,Fe="@@iterator";function Ie(e){if(e===null||typeof e!="object")return null;var r=q&&e[q]||e[Fe];return typeof r=="function"?r:null}var A=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Me("error",e,t)}}function Me(e,r,t){{var n=A.ReactDebugCurrentFrame,s=n.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var c=t.map(function(i){return String(i)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var Ve=!1,$e=!1,We=!1,Ye=!1,Le=!1,ae;ae=Symbol.for("react.module.reference");function Ne(e){return!!(typeof e=="string"||typeof e=="function"||e===C||e===m||Le||e===u||e===x||e===g||Ye||e===w||Ve||$e||We||typeof e=="object"&&e!==null&&(e.$$typeof===f||e.$$typeof===l||e.$$typeof===p||e.$$typeof===E||e.$$typeof===y||e.$$typeof===ae||e.getModuleId!==void 0))}function Ue(e,r,t){var n=e.displayName;if(n)return n;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function oe(e){return e.displayName||"Context"}function P(e){if(e==null)return null;if(typeof e.tag=="number"&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case C:return"Fragment";case T:return"Portal";case m:return"Profiler";case u:return"StrictMode";case x:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case E:var r=e;return oe(r)+".Consumer";case p:var t=e;return oe(t._context)+".Provider";case y:return Ue(e,e.render,"ForwardRef");case l:var n=e.displayName||null;return n!==null?n:P(e.type)||"Memo";case f:{var s=e,c=s._payload,i=s._init;try{return P(i(c))}catch{return null}}}return null}var j=Object.assign,I=0,ie,se,ue,ce,le,fe,de;function ve(){}ve.__reactDisabledLog=!0;function Be(){{if(I===0){ie=console.log,se=console.info,ue=console.warn,ce=console.error,le=console.group,fe=console.groupCollapsed,de=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ve,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}I++}}function ze(){{if(I--,I===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:ie}),info:j({},e,{value:se}),warn:j({},e,{value:ue}),error:j({},e,{value:ce}),group:j({},e,{value:le}),groupCollapsed:j({},e,{value:fe}),groupEnd:j({},e,{value:de})})}I<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var J=A.ReactCurrentDispatcher,Z;function Y(e,r,t){{if(Z===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);Z=n&&n[1]||""}return`
18
- `+Z+e}}var G=!1,L;{var qe=typeof WeakMap=="function"?WeakMap:Map;L=new qe}function pe(e,r){if(!e||G)return"";{var t=L.get(e);if(t!==void 0)return t}var n;G=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=J.current,J.current=null,Be();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(O){n=O}Reflect.construct(e,[],i)}else{try{i.call()}catch(O){n=O}e.call(i.prototype)}}else{try{throw Error()}catch(O){n=O}e()}}catch(O){if(O&&n&&typeof O.stack=="string"){for(var o=O.stack.split(`
19
- `),R=n.stack.split(`
20
- `),d=o.length-1,v=R.length-1;d>=1&&v>=0&&o[d]!==R[v];)v--;for(;d>=1&&v>=0;d--,v--)if(o[d]!==R[v]){if(d!==1||v!==1)do if(d--,v--,v<0||o[d]!==R[v]){var _=`
21
- `+o[d].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),typeof e=="function"&&L.set(e,_),_}while(d>=1&&v>=0);break}}}finally{G=!1,J.current=c,ze(),Error.prepareStackTrace=s}var F=e?e.displayName||e.name:"",Pe=F?Y(F):"";return typeof e=="function"&&L.set(e,Pe),Pe}function Je(e,r,t){return pe(e,!1)}function Ze(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function N(e,r,t){if(e==null)return"";if(typeof e=="function")return pe(e,Ze(e));if(typeof e=="string")return Y(e);switch(e){case x:return Y("Suspense");case g:return Y("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case y:return Je(e.render);case l:return N(e.type,r,t);case f:{var n=e,s=n._payload,c=n._init;try{return N(c(s),r,t)}catch{}}}return""}var U=Object.prototype.hasOwnProperty,me={},ye=A.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}function Ge(e,r,t,n,s){{var c=Function.call.bind(U);for(var i in e)if(c(e,i)){var o=void 0;try{if(typeof e[i]!="function"){var R=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw R.name="Invariant Violation",R}o=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(d){o=d}o&&!(o instanceof Error)&&(B(s),b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof o),B(null)),o instanceof Error&&!(o.message in me)&&(me[o.message]=!0,B(s),b("Failed %s type: %s",t,o.message),B(null))}}}var Ke=Array.isArray;function K(e){return Ke(e)}function He(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Xe(e){try{return ge(e),!1}catch{return!0}}function ge(e){return""+e}function be(e){if(Xe(e))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),ge(e)}var M=A.ReactCurrentOwner,Qe={key:!0,ref:!0,__self:!0,__source:!0},Re,he,H;H={};function er(e){if(U.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function rr(e){if(U.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function tr(e,r){if(typeof e.ref=="string"&&M.current&&r&&M.current.stateNode!==r){var t=P(M.current.type);H[t]||(b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',P(M.current.type),e.ref),H[t]=!0)}}function nr(e,r){{var t=function(){Re||(Re=!0,b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ar(e,r){{var t=function(){he||(he=!0,b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var or=function(e,r,t,n,s,c,i){var o={$$typeof:S,type:e,key:r,ref:t,props:i,_owner:c};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function ir(e,r,t,n,s){{var c,i={},o=null,R=null;t!==void 0&&(be(t),o=""+t),rr(r)&&(be(r.key),o=""+r.key),er(r)&&(R=r.ref,tr(r,s));for(c in r)U.call(r,c)&&!Qe.hasOwnProperty(c)&&(i[c]=r[c]);if(e&&e.defaultProps){var d=e.defaultProps;for(c in d)i[c]===void 0&&(i[c]=d[c])}if(o||R){var v=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&nr(i,v),R&&ar(i,v)}return or(e,o,R,s,n,M.current,i)}}var X=A.ReactCurrentOwner,Ee=A.ReactDebugCurrentFrame;function D(e){if(e){var r=e._owner,t=N(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===S}function _e(){{if(X.current){var e=P(X.current.type);if(e)return`
17
+ */var xe;function Er(){return xe||(xe=1,process.env.NODE_ENV!=="production"&&function(){var a=_,b=Symbol.for("react.element"),E=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),S=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),q=Symbol.iterator,Me="@@iterator";function Ve(e){if(e===null||typeof e!="object")return null;var r=q&&e[q]||e[Me];return typeof r=="function"?r:null}var D=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];$e("error",e,t)}}function $e(e,r,t){{var n=D.ReactDebugCurrentFrame,s=n.getStackAddendum();s!==""&&(r+="%s",t=t.concat([s]));var c=t.map(function(i){return String(i)});c.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,c)}}var We=!1,Ye=!1,Le=!1,Be=!1,Ne=!1,ae;ae=Symbol.for("react.module.reference");function Ue(e){return!!(typeof e=="string"||typeof e=="function"||e===w||e===m||Ne||e===u||e===x||e===g||Be||e===C||We||Ye||Le||typeof e=="object"&&e!==null&&(e.$$typeof===f||e.$$typeof===l||e.$$typeof===p||e.$$typeof===S||e.$$typeof===y||e.$$typeof===ae||e.getModuleId!==void 0))}function ze(e,r,t){var n=e.displayName;if(n)return n;var s=r.displayName||r.name||"";return s!==""?t+"("+s+")":t}function oe(e){return e.displayName||"Context"}function P(e){if(e==null)return null;if(typeof e.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case E:return"Portal";case m:return"Profiler";case u:return"StrictMode";case x:return"Suspense";case g:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case S:var r=e;return oe(r)+".Consumer";case p:var t=e;return oe(t._context)+".Provider";case y:return ze(e,e.render,"ForwardRef");case l:var n=e.displayName||null;return n!==null?n:P(e.type)||"Memo";case f:{var s=e,c=s._payload,i=s._init;try{return P(i(c))}catch{return null}}}return null}var j=Object.assign,F=0,ie,se,ue,ce,le,fe,de;function ve(){}ve.__reactDisabledLog=!0;function qe(){{if(F===0){ie=console.log,se=console.info,ue=console.warn,ce=console.error,le=console.group,fe=console.groupCollapsed,de=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ve,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function Ze(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:ie}),info:j({},e,{value:se}),warn:j({},e,{value:ue}),error:j({},e,{value:ce}),group:j({},e,{value:le}),groupCollapsed:j({},e,{value:fe}),groupEnd:j({},e,{value:de})})}F<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=D.ReactCurrentDispatcher,J;function Y(e,r,t){{if(J===void 0)try{throw Error()}catch(s){var n=s.stack.trim().match(/\n( *(at )?)/);J=n&&n[1]||""}return`
18
+ `+J+e}}var G=!1,L;{var Je=typeof WeakMap=="function"?WeakMap:Map;L=new Je}function pe(e,r){if(!e||G)return"";{var t=L.get(e);if(t!==void 0)return t}var n;G=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var c;c=Z.current,Z.current=null,qe();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(O){n=O}Reflect.construct(e,[],i)}else{try{i.call()}catch(O){n=O}e.call(i.prototype)}}else{try{throw Error()}catch(O){n=O}e()}}catch(O){if(O&&n&&typeof O.stack=="string"){for(var o=O.stack.split(`
19
+ `),h=n.stack.split(`
20
+ `),d=o.length-1,v=h.length-1;d>=1&&v>=0&&o[d]!==h[v];)v--;for(;d>=1&&v>=0;d--,v--)if(o[d]!==h[v]){if(d!==1||v!==1)do if(d--,v--,v<0||o[d]!==h[v]){var T=`
21
+ `+o[d].replace(" at new "," at ");return e.displayName&&T.includes("<anonymous>")&&(T=T.replace("<anonymous>",e.displayName)),typeof e=="function"&&L.set(e,T),T}while(d>=1&&v>=0);break}}}finally{G=!1,Z.current=c,Ze(),Error.prepareStackTrace=s}var I=e?e.displayName||e.name:"",Pe=I?Y(I):"";return typeof e=="function"&&L.set(e,Pe),Pe}function Ge(e,r,t){return pe(e,!1)}function Ke(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function B(e,r,t){if(e==null)return"";if(typeof e=="function")return pe(e,Ke(e));if(typeof e=="string")return Y(e);switch(e){case x:return Y("Suspense");case g:return Y("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case y:return Ge(e.render);case l:return B(e.type,r,t);case f:{var n=e,s=n._payload,c=n._init;try{return B(c(s),r,t)}catch{}}}return""}var N=Object.prototype.hasOwnProperty,me={},ye=D.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);ye.setExtraStackFrame(t)}else ye.setExtraStackFrame(null)}function He(e,r,t,n,s){{var c=Function.call.bind(N);for(var i in e)if(c(e,i)){var o=void 0;try{if(typeof e[i]!="function"){var h=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}o=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(d){o=d}o&&!(o instanceof Error)&&(U(s),R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof o),U(null)),o instanceof Error&&!(o.message in me)&&(me[o.message]=!0,U(s),R("Failed %s type: %s",t,o.message),U(null))}}}var Xe=Array.isArray;function K(e){return Xe(e)}function Qe(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function er(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function ge(e){if(er(e))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Qe(e)),be(e)}var M=D.ReactCurrentOwner,rr={key:!0,ref:!0,__self:!0,__source:!0},Re,he,H;H={};function tr(e){if(N.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function nr(e){if(N.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function ar(e,r){if(typeof e.ref=="string"&&M.current&&r&&M.current.stateNode!==r){var t=P(M.current.type);H[t]||(R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',P(M.current.type),e.ref),H[t]=!0)}}function or(e,r){{var t=function(){Re||(Re=!0,R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ir(e,r){{var t=function(){he||(he=!0,R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var sr=function(e,r,t,n,s,c,i){var o={$$typeof:b,type:e,key:r,ref:t,props:i,_owner:c};return o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(o,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(o,"_source",{configurable:!1,enumerable:!1,writable:!1,value:s}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o};function ur(e,r,t,n,s){{var c,i={},o=null,h=null;t!==void 0&&(ge(t),o=""+t),nr(r)&&(ge(r.key),o=""+r.key),tr(r)&&(h=r.ref,ar(r,s));for(c in r)N.call(r,c)&&!rr.hasOwnProperty(c)&&(i[c]=r[c]);if(e&&e.defaultProps){var d=e.defaultProps;for(c in d)i[c]===void 0&&(i[c]=d[c])}if(o||h){var v=typeof e=="function"?e.displayName||e.name||"Unknown":e;o&&or(i,v),h&&ir(i,v)}return sr(e,o,h,s,n,M.current,i)}}var X=D.ReactCurrentOwner,Ee=D.ReactDebugCurrentFrame;function A(e){if(e){var r=e._owner,t=B(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===b}function _e(){{if(X.current){var e=P(X.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function sr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
23
+ Check the render method of \``+e+"`."}return""}}function cr(e){{if(e!==void 0){var r=e.fileName.replace(/^.*[\\\/]/,""),t=e.lineNumber;return`
24
24
 
25
- Check your code at `+r+":"+t+"."}return""}}var Se={};function ur(e){{var r=_e();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
25
+ Check your code at `+r+":"+t+"."}return""}}var Se={};function lr(e){{var r=_e();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
26
26
 
27
- Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ur(r);if(Se[t])return;Se[t]=!0;var n="";e&&e._owner&&e._owner!==X.current&&(n=" It was passed a child from "+P(e._owner.type)+"."),D(e),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),D(null)}}function Ce(e,r){{if(typeof e!="object")return;if(K(e))for(var t=0;t<e.length;t++){var n=e[t];ee(n)&&Te(n,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var s=Ie(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),i;!(i=c.next()).done;)ee(i.value)&&Te(i.value,r)}}}function cr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===y||r.$$typeof===l))t=r.propTypes;else return;if(t){var n=P(r);Ge(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var s=P(r);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){D(e),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),D(null);break}}e.ref!==null&&(D(e),b("Invalid attribute `ref` supplied to `React.Fragment`."),D(null))}}function we(e,r,t,n,s,c){{var i=Ne(e);if(!i){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var R=sr(s);R?o+=R:o+=_e();var d;e===null?d="null":K(e)?d="array":e!==void 0&&e.$$typeof===S?(d="<"+(P(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,o)}var v=ir(e,r,t,s,c);if(v==null)return v;if(i){var _=r.children;if(_!==void 0)if(n)if(K(_)){for(var F=0;F<_.length;F++)Ce(_[F],e);Object.freeze&&Object.freeze(_)}else b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ce(_,e)}return e===C?lr(v):cr(v),v}}function fr(e,r,t){return we(e,r,t,!0)}function dr(e,r,t){return we(e,r,t,!1)}var vr=dr,pr=fr;$.Fragment=C,$.jsx=vr,$.jsxs=pr}()),$}process.env.NODE_ENV==="production"?re.exports=br():re.exports=Rr();var je=re.exports;function hr({children:a,maps:S,externalSync:T}){const[C,u]=h.useReducer(De,{...W.state,maps:S.reduce((l,f)=>(l[f.id]=f,l),W.state.maps)}),m=h.useCallback((l,f,w)=>{S[0].id===l&&T?.({type:f,payload:w})},[T,S]),p=h.useCallback((l,f)=>{u({type:k.SetViewState,payload:{id:l,viewState:f}}),m(l,k.SetViewState,f)},[u,m]),E=h.useCallback((l,{height:f,width:w})=>{u({type:k.SetResize,payload:{id:l,height:f,width:w}}),m(l,k.SetResize,{height:f,width:w})},[u,m]),y=h.useCallback((l,f)=>{u({type:k.SetBasemap,payload:{id:l,basemap:f}})},[u]),x=h.useCallback((l,f)=>{u({type:k.SetZoom,payload:{id:l,zoom:f}})},[u]),g=h.useRef({setViewState:p,setBasemap:y,setResize:E,setZoom:x});return je.jsx(ne.Provider,{value:g.current,children:je.jsx(te.Provider,{value:C,children:a})})}exports.CartoBasemapURL=mr;exports.CartoBasemapsNames=Ae;exports.GMapsBasemap=ke;exports.INITIAL_STATE=W;exports.MapActionsContext=ne;exports.MapContext=te;exports.MapProvider=hr;exports.reducer=De;exports.useMap=yr;exports.useMapActions=gr;
27
+ Check the top-level render call using <`+t+">.")}return r}}function Te(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=lr(r);if(Se[t])return;Se[t]=!0;var n="";e&&e._owner&&e._owner!==X.current&&(n=" It was passed a child from "+P(e._owner.type)+"."),A(e),R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),A(null)}}function we(e,r){{if(typeof e!="object")return;if(K(e))for(var t=0;t<e.length;t++){var n=e[t];ee(n)&&Te(n,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var s=Ve(e);if(typeof s=="function"&&s!==e.entries)for(var c=s.call(e),i;!(i=c.next()).done;)ee(i.value)&&Te(i.value,r)}}}function fr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===y||r.$$typeof===l))t=r.propTypes;else return;if(t){var n=P(r);He(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var s=P(r);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",s||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function dr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){A(e),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),A(null);break}}e.ref!==null&&(A(e),R("Invalid attribute `ref` supplied to `React.Fragment`."),A(null))}}function Ce(e,r,t,n,s,c){{var i=Ue(e);if(!i){var o="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(o+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var h=cr(s);h?o+=h:o+=_e();var d;e===null?d="null":K(e)?d="array":e!==void 0&&e.$$typeof===b?(d="<"+(P(e.type)||"Unknown")+" />",o=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,o)}var v=ur(e,r,t,s,c);if(v==null)return v;if(i){var T=r.children;if(T!==void 0)if(n)if(K(T)){for(var I=0;I<T.length;I++)we(T[I],e);Object.freeze&&Object.freeze(T)}else R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else we(T,e)}return e===w?dr(v):fr(v),v}}function vr(e,r,t){return Ce(e,r,t,!0)}function pr(e,r,t){return Ce(e,r,t,!1)}var mr=pr,yr=vr;$.Fragment=w,$.jsx=mr,$.jsxs=yr}()),$}process.env.NODE_ENV==="production"?re.exports=hr():re.exports=Er();var je=re.exports;function _r({children:a,maps:b,externalSync:E}){const[w,u]=_.useReducer(Ae,{...W.state,maps:b.reduce((l,f)=>(l[f.id]=f,l),W.state.maps)}),m=_.useCallback((l,f,C)=>{b[0].id===l&&E?.({type:f,payload:C})},[E,b]),p=_.useCallback((l,f)=>{u({type:k.SetViewState,payload:{id:l,viewState:f}}),m(l,k.SetViewState,f)},[u,m]),S=_.useCallback((l,{height:f,width:C})=>{u({type:k.SetResize,payload:{id:l,height:f,width:C}}),m(l,k.SetResize,{height:f,width:C})},[u,m]),y=_.useCallback((l,f)=>{u({type:k.SetBasemap,payload:{id:l,basemap:f}})},[u]),x=_.useCallback((l,f)=>{u({type:k.SetZoom,payload:{id:l,zoom:f}})},[u]),g=_.useRef({setViewState:p,setBasemap:y,setResize:S,setZoom:x});return je.jsx(ne.Provider,{value:g.current,children:je.jsx(te.Provider,{value:w,children:a})})}exports.CartoBasemapURL=br;exports.CartoBasemapsNames=De;exports.GMapsBasemap=ke;exports.INITIAL_STATE=W;exports.MapActionsContext=ne;exports.MapContext=te;exports.MapProvider=_r;exports.reducer=Ae;exports.useMap=Ie;exports.useMapActions=Fe;exports.useMapActionsByID=Rr;exports.useMapByID=gr;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import xe, { createContext as je, useContext as ke, useReducer as mr, useCallback as V, useRef as yr } from "react";
2
2
  var gr = /* @__PURE__ */ ((a) => (a.Roadmap = "roadmap", a.Satellite = "satellite", a.Terrain = "terrain", a))(gr || {}), Rr = /* @__PURE__ */ ((a) => (a.DarkMatter = "dark-matter", a.Positron = "positron", a.Voyager = "voyager", a))(Rr || {});
3
- const Sr = {
3
+ const Tr = {
4
4
  positron: "https://basemaps.cartocdn.com/gl/positron-gl-style/style.json",
5
5
  voyager: "https://basemaps.cartocdn.com/gl/voyager-gl-style/style.json",
6
6
  "dark-matter": "https://basemaps.cartocdn.com/gl/dark-matter-gl-style/style.json"
@@ -24,10 +24,10 @@ const Sr = {
24
24
  B.actions
25
25
  );
26
26
  var j = /* @__PURE__ */ ((a) => (a.SetViewState = "SetViewState", a.SetBasemap = "SetBasemap", a.SetResize = "SetResize", a.SetZoom = "SetZoom", a))(j || {});
27
- function br(a, { type: _, payload: S }) {
27
+ function br(a, { type: g, payload: E }) {
28
28
  return {
29
29
  SetViewState: () => {
30
- const { id: u, viewState: m } = S, p = { ...a.maps };
30
+ const { id: u, viewState: m } = E, p = { ...a.maps };
31
31
  return p[u] = {
32
32
  ...a.maps[u],
33
33
  viewState: m
@@ -37,8 +37,8 @@ function br(a, { type: _, payload: S }) {
37
37
  };
38
38
  },
39
39
  SetResize: () => {
40
- const { id: u, width: m, height: p } = S, h = { ...a.maps };
41
- return h[u] = {
40
+ const { id: u, width: m, height: p } = E, _ = { ...a.maps };
41
+ return _[u] = {
42
42
  ...a.maps[u],
43
43
  viewState: {
44
44
  ...a.maps[u].viewState,
@@ -47,11 +47,11 @@ function br(a, { type: _, payload: S }) {
47
47
  }
48
48
  }, {
49
49
  ...a,
50
- maps: h
50
+ maps: _
51
51
  };
52
52
  },
53
53
  SetBasemap: () => {
54
- const { id: u, basemap: m } = S, p = { ...a.maps };
54
+ const { id: u, basemap: m } = E, p = { ...a.maps };
55
55
  return p[u] = {
56
56
  ...a.maps[u],
57
57
  basemap: m
@@ -61,7 +61,7 @@ function br(a, { type: _, payload: S }) {
61
61
  };
62
62
  },
63
63
  SetZoom: () => {
64
- const { id: u, zoom: m } = S, p = { ...a.maps };
64
+ const { id: u, zoom: m } = E, p = { ...a.maps };
65
65
  return p[u] = {
66
66
  ...a.maps[u],
67
67
  viewState: {
@@ -73,15 +73,30 @@ function br(a, { type: _, payload: S }) {
73
73
  maps: p
74
74
  };
75
75
  }
76
- }[_]?.() ?? a;
76
+ }[g]?.() ?? a;
77
77
  }
78
- function Tr() {
78
+ function hr() {
79
79
  return ke(De);
80
80
  }
81
- function wr() {
81
+ function Er() {
82
82
  return ke(Fe);
83
83
  }
84
- var re = { exports: {} }, $ = {};
84
+ function Cr(a) {
85
+ const {
86
+ maps: { [a]: g }
87
+ } = hr();
88
+ return g;
89
+ }
90
+ function Pr(a) {
91
+ const { setBasemap: g, setResize: E, setViewState: w, setZoom: u } = Er();
92
+ return {
93
+ setBasemap: g.bind(null, a),
94
+ setResize: E.bind(null, a),
95
+ setViewState: w.bind(null, a),
96
+ setZoom: u.bind(null, a)
97
+ };
98
+ }
99
+ var re = { exports: {} }, M = {};
85
100
  /**
86
101
  * @license React
87
102
  * react-jsx-runtime.production.min.js
@@ -92,24 +107,24 @@ var re = { exports: {} }, $ = {};
92
107
  * LICENSE file in the root directory of this source tree.
93
108
  */
94
109
  var Ce;
95
- function hr() {
110
+ function _r() {
96
111
  if (Ce)
97
- return $;
112
+ return M;
98
113
  Ce = 1;
99
- var a = xe, _ = Symbol.for("react.element"), S = Symbol.for("react.fragment"), T = Object.prototype.hasOwnProperty, u = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, m = { key: !0, ref: !0, __self: !0, __source: !0 };
100
- function p(h, y, O) {
101
- var g, l = {}, f = null, w = null;
102
- O !== void 0 && (f = "" + O), y.key !== void 0 && (f = "" + y.key), y.ref !== void 0 && (w = y.ref);
103
- for (g in y)
104
- T.call(y, g) && !m.hasOwnProperty(g) && (l[g] = y[g]);
105
- if (h && h.defaultProps)
106
- for (g in y = h.defaultProps, y)
107
- l[g] === void 0 && (l[g] = y[g]);
108
- return { $$typeof: _, type: h, key: f, ref: w, props: l, _owner: u.current };
114
+ var a = xe, g = Symbol.for("react.element"), E = Symbol.for("react.fragment"), w = Object.prototype.hasOwnProperty, u = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, m = { key: !0, ref: !0, __self: !0, __source: !0 };
115
+ function p(_, y, O) {
116
+ var R, c = {}, f = null, T = null;
117
+ O !== void 0 && (f = "" + O), y.key !== void 0 && (f = "" + y.key), y.ref !== void 0 && (T = y.ref);
118
+ for (R in y)
119
+ w.call(y, R) && !m.hasOwnProperty(R) && (c[R] = y[R]);
120
+ if (_ && _.defaultProps)
121
+ for (R in y = _.defaultProps, y)
122
+ c[R] === void 0 && (c[R] = y[R]);
123
+ return { $$typeof: g, type: _, key: f, ref: T, props: c, _owner: u.current };
109
124
  }
110
- return $.Fragment = S, $.jsx = p, $.jsxs = p, $;
125
+ return M.Fragment = E, M.jsx = p, M.jsxs = p, M;
111
126
  }
112
- var W = {};
127
+ var $ = {};
113
128
  /**
114
129
  * @license React
115
130
  * react-jsx-runtime.development.js
@@ -120,17 +135,17 @@ var W = {};
120
135
  * LICENSE file in the root directory of this source tree.
121
136
  */
122
137
  var Pe;
123
- function Er() {
138
+ function Sr() {
124
139
  return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && function() {
125
- var a = xe, _ = Symbol.for("react.element"), S = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), h = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), l = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), q = Symbol.iterator, Ae = "@@iterator";
140
+ var a = xe, g = Symbol.for("react.element"), E = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), m = Symbol.for("react.profiler"), p = Symbol.for("react.provider"), _ = Symbol.for("react.context"), y = Symbol.for("react.forward_ref"), O = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), c = Symbol.for("react.memo"), f = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), Z = Symbol.iterator, Ae = "@@iterator";
126
141
  function Ie(e) {
127
142
  if (e === null || typeof e != "object")
128
143
  return null;
129
- var r = q && e[q] || e[Ae];
144
+ var r = Z && e[Z] || e[Ae];
130
145
  return typeof r == "function" ? r : null;
131
146
  }
132
147
  var k = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
133
- function R(e) {
148
+ function b(e) {
134
149
  {
135
150
  for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
136
151
  t[n - 1] = arguments[n];
@@ -141,16 +156,16 @@ function Er() {
141
156
  {
142
157
  var n = k.ReactDebugCurrentFrame, s = n.getStackAddendum();
143
158
  s !== "" && (r += "%s", t = t.concat([s]));
144
- var c = t.map(function(i) {
159
+ var l = t.map(function(i) {
145
160
  return String(i);
146
161
  });
147
- c.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, c);
162
+ l.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, l);
148
163
  }
149
164
  }
150
- var $e = !1, We = !1, Ye = !1, Me = !1, Le = !1, te;
165
+ var Me = !1, $e = !1, We = !1, Ye = !1, Le = !1, te;
151
166
  te = Symbol.for("react.module.reference");
152
167
  function Ne(e) {
153
- return !!(typeof e == "string" || typeof e == "function" || e === T || e === m || Le || e === u || e === O || e === g || Me || e === w || $e || We || Ye || typeof e == "object" && e !== null && (e.$$typeof === f || e.$$typeof === l || e.$$typeof === p || e.$$typeof === h || e.$$typeof === y || // This needs to include all possible module reference object
168
+ return !!(typeof e == "string" || typeof e == "function" || e === w || e === m || Le || e === u || e === O || e === R || Ye || e === T || Me || $e || We || typeof e == "object" && e !== null && (e.$$typeof === f || e.$$typeof === c || e.$$typeof === p || e.$$typeof === _ || e.$$typeof === y || // This needs to include all possible module reference object
154
169
  // types supported by any Flight configuration anywhere since
155
170
  // we don't know which Flight build this will end up being used
156
171
  // with.
@@ -169,14 +184,14 @@ function Er() {
169
184
  function C(e) {
170
185
  if (e == null)
171
186
  return null;
172
- if (typeof e.tag == "number" && R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
187
+ if (typeof e.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
173
188
  return e.displayName || e.name || null;
174
189
  if (typeof e == "string")
175
190
  return e;
176
191
  switch (e) {
177
- case T:
192
+ case w:
178
193
  return "Fragment";
179
- case S:
194
+ case E:
180
195
  return "Portal";
181
196
  case m:
182
197
  return "Profiler";
@@ -184,12 +199,12 @@ function Er() {
184
199
  return "StrictMode";
185
200
  case O:
186
201
  return "Suspense";
187
- case g:
202
+ case R:
188
203
  return "SuspenseList";
189
204
  }
190
205
  if (typeof e == "object")
191
206
  switch (e.$$typeof) {
192
- case h:
207
+ case _:
193
208
  var r = e;
194
209
  return ne(r) + ".Consumer";
195
210
  case p:
@@ -197,13 +212,13 @@ function Er() {
197
212
  return ne(t._context) + ".Provider";
198
213
  case y:
199
214
  return Ue(e, e.render, "ForwardRef");
200
- case l:
215
+ case c:
201
216
  var n = e.displayName || null;
202
217
  return n !== null ? n : C(e.type) || "Memo";
203
218
  case f: {
204
- var s = e, c = s._payload, i = s._init;
219
+ var s = e, l = s._payload, i = s._init;
205
220
  try {
206
- return C(i(c));
221
+ return C(i(l));
207
222
  } catch {
208
223
  return null;
209
224
  }
@@ -211,14 +226,14 @@ function Er() {
211
226
  }
212
227
  return null;
213
228
  }
214
- var x = Object.assign, A = 0, ae, oe, ie, se, ue, ce, le;
229
+ var x = Object.assign, A = 0, ae, oe, ie, se, ue, le, ce;
215
230
  function fe() {
216
231
  }
217
232
  fe.__reactDisabledLog = !0;
218
233
  function ze() {
219
234
  {
220
235
  if (A === 0) {
221
- ae = console.log, oe = console.info, ie = console.warn, se = console.error, ue = console.group, ce = console.groupCollapsed, le = console.groupEnd;
236
+ ae = console.log, oe = console.info, ie = console.warn, se = console.error, ue = console.group, le = console.groupCollapsed, ce = console.groupEnd;
222
237
  var e = {
223
238
  configurable: !0,
224
239
  enumerable: !0,
@@ -263,40 +278,40 @@ function Er() {
263
278
  value: ue
264
279
  }),
265
280
  groupCollapsed: x({}, e, {
266
- value: ce
281
+ value: le
267
282
  }),
268
283
  groupEnd: x({}, e, {
269
- value: le
284
+ value: ce
270
285
  })
271
286
  });
272
287
  }
273
- A < 0 && R("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
288
+ A < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
274
289
  }
275
290
  }
276
- var J = k.ReactCurrentDispatcher, Z;
277
- function Y(e, r, t) {
291
+ var q = k.ReactCurrentDispatcher, J;
292
+ function W(e, r, t) {
278
293
  {
279
- if (Z === void 0)
294
+ if (J === void 0)
280
295
  try {
281
296
  throw Error();
282
297
  } catch (s) {
283
298
  var n = s.stack.trim().match(/\n( *(at )?)/);
284
- Z = n && n[1] || "";
299
+ J = n && n[1] || "";
285
300
  }
286
301
  return `
287
- ` + Z + e;
302
+ ` + J + e;
288
303
  }
289
304
  }
290
- var G = !1, M;
305
+ var G = !1, Y;
291
306
  {
292
- var qe = typeof WeakMap == "function" ? WeakMap : Map;
293
- M = new qe();
307
+ var Ze = typeof WeakMap == "function" ? WeakMap : Map;
308
+ Y = new Ze();
294
309
  }
295
310
  function de(e, r) {
296
311
  if (!e || G)
297
312
  return "";
298
313
  {
299
- var t = M.get(e);
314
+ var t = Y.get(e);
300
315
  if (t !== void 0)
301
316
  return t;
302
317
  }
@@ -304,8 +319,8 @@ function Er() {
304
319
  G = !0;
305
320
  var s = Error.prepareStackTrace;
306
321
  Error.prepareStackTrace = void 0;
307
- var c;
308
- c = J.current, J.current = null, ze();
322
+ var l;
323
+ l = q.current, q.current = null, ze();
309
324
  try {
310
325
  if (r) {
311
326
  var i = function() {
@@ -341,32 +356,32 @@ function Er() {
341
356
  } catch (P) {
342
357
  if (P && n && typeof P.stack == "string") {
343
358
  for (var o = P.stack.split(`
344
- `), b = n.stack.split(`
345
- `), d = o.length - 1, v = b.length - 1; d >= 1 && v >= 0 && o[d] !== b[v]; )
359
+ `), h = n.stack.split(`
360
+ `), d = o.length - 1, v = h.length - 1; d >= 1 && v >= 0 && o[d] !== h[v]; )
346
361
  v--;
347
362
  for (; d >= 1 && v >= 0; d--, v--)
348
- if (o[d] !== b[v]) {
363
+ if (o[d] !== h[v]) {
349
364
  if (d !== 1 || v !== 1)
350
365
  do
351
- if (d--, v--, v < 0 || o[d] !== b[v]) {
352
- var E = `
366
+ if (d--, v--, v < 0 || o[d] !== h[v]) {
367
+ var S = `
353
368
  ` + o[d].replace(" at new ", " at ");
354
- return e.displayName && E.includes("<anonymous>") && (E = E.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, E), E;
369
+ return e.displayName && S.includes("<anonymous>") && (S = S.replace("<anonymous>", e.displayName)), typeof e == "function" && Y.set(e, S), S;
355
370
  }
356
371
  while (d >= 1 && v >= 0);
357
372
  break;
358
373
  }
359
374
  }
360
375
  } finally {
361
- G = !1, J.current = c, Be(), Error.prepareStackTrace = s;
376
+ G = !1, q.current = l, Be(), Error.prepareStackTrace = s;
362
377
  }
363
- var F = e ? e.displayName || e.name : "", we = F ? Y(F) : "";
364
- return typeof e == "function" && M.set(e, we), we;
378
+ var F = e ? e.displayName || e.name : "", Te = F ? W(F) : "";
379
+ return typeof e == "function" && Y.set(e, Te), Te;
365
380
  }
366
- function Je(e, r, t) {
381
+ function qe(e, r, t) {
367
382
  return de(e, !1);
368
383
  }
369
- function Ze(e) {
384
+ function Je(e) {
370
385
  var r = e.prototype;
371
386
  return !!(r && r.isReactComponent);
372
387
  }
@@ -374,25 +389,25 @@ function Er() {
374
389
  if (e == null)
375
390
  return "";
376
391
  if (typeof e == "function")
377
- return de(e, Ze(e));
392
+ return de(e, Je(e));
378
393
  if (typeof e == "string")
379
- return Y(e);
394
+ return W(e);
380
395
  switch (e) {
381
396
  case O:
382
- return Y("Suspense");
383
- case g:
384
- return Y("SuspenseList");
397
+ return W("Suspense");
398
+ case R:
399
+ return W("SuspenseList");
385
400
  }
386
401
  if (typeof e == "object")
387
402
  switch (e.$$typeof) {
388
403
  case y:
389
- return Je(e.render);
390
- case l:
404
+ return qe(e.render);
405
+ case c:
391
406
  return L(e.type, r, t);
392
407
  case f: {
393
- var n = e, s = n._payload, c = n._init;
408
+ var n = e, s = n._payload, l = n._init;
394
409
  try {
395
- return L(c(s), r, t);
410
+ return L(l(s), r, t);
396
411
  } catch {
397
412
  }
398
413
  }
@@ -409,20 +424,20 @@ function Er() {
409
424
  }
410
425
  function Ge(e, r, t, n, s) {
411
426
  {
412
- var c = Function.call.bind(N);
427
+ var l = Function.call.bind(N);
413
428
  for (var i in e)
414
- if (c(e, i)) {
429
+ if (l(e, i)) {
415
430
  var o = void 0;
416
431
  try {
417
432
  if (typeof e[i] != "function") {
418
- var b = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
419
- throw b.name = "Invariant Violation", b;
433
+ var h = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
434
+ throw h.name = "Invariant Violation", h;
420
435
  }
421
436
  o = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
422
437
  } catch (d) {
423
438
  o = d;
424
439
  }
425
- o && !(o instanceof Error) && (U(s), R("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof o), U(null)), o instanceof Error && !(o.message in ve) && (ve[o.message] = !0, U(s), R("Failed %s type: %s", t, o.message), U(null));
440
+ o && !(o instanceof Error) && (U(s), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof o), U(null)), o instanceof Error && !(o.message in ve) && (ve[o.message] = !0, U(s), b("Failed %s type: %s", t, o.message), U(null));
426
441
  }
427
442
  }
428
443
  }
@@ -448,7 +463,7 @@ function Er() {
448
463
  }
449
464
  function ye(e) {
450
465
  if (Xe(e))
451
- return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), me(e);
466
+ return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), me(e);
452
467
  }
453
468
  var I = k.ReactCurrentOwner, Qe = {
454
469
  key: !0,
@@ -476,13 +491,13 @@ function Er() {
476
491
  function tr(e, r) {
477
492
  if (typeof e.ref == "string" && I.current && r && I.current.stateNode !== r) {
478
493
  var t = C(I.current.type);
479
- H[t] || (R('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C(I.current.type), e.ref), H[t] = !0);
494
+ H[t] || (b('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', C(I.current.type), e.ref), H[t] = !0);
480
495
  }
481
496
  }
482
497
  function nr(e, r) {
483
498
  {
484
499
  var t = function() {
485
- ge || (ge = !0, R("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
500
+ ge || (ge = !0, b("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
486
501
  };
487
502
  t.isReactWarning = !0, Object.defineProperty(e, "key", {
488
503
  get: t,
@@ -493,7 +508,7 @@ function Er() {
493
508
  function ar(e, r) {
494
509
  {
495
510
  var t = function() {
496
- Re || (Re = !0, R("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
511
+ Re || (Re = !0, b("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
497
512
  };
498
513
  t.isReactWarning = !0, Object.defineProperty(e, "ref", {
499
514
  get: t,
@@ -501,17 +516,17 @@ function Er() {
501
516
  });
502
517
  }
503
518
  }
504
- var or = function(e, r, t, n, s, c, i) {
519
+ var or = function(e, r, t, n, s, l, i) {
505
520
  var o = {
506
521
  // This tag allows us to uniquely identify this as a React Element
507
- $$typeof: _,
522
+ $$typeof: g,
508
523
  // Built-in properties that belong on the element
509
524
  type: e,
510
525
  key: r,
511
526
  ref: t,
512
527
  props: i,
513
528
  // Record the component responsible for creating this element.
514
- _owner: c
529
+ _owner: l
515
530
  };
516
531
  return o._store = {}, Object.defineProperty(o._store, "validated", {
517
532
  configurable: !1,
@@ -532,20 +547,20 @@ function Er() {
532
547
  };
533
548
  function ir(e, r, t, n, s) {
534
549
  {
535
- var c, i = {}, o = null, b = null;
536
- t !== void 0 && (ye(t), o = "" + t), rr(r) && (ye(r.key), o = "" + r.key), er(r) && (b = r.ref, tr(r, s));
537
- for (c in r)
538
- N.call(r, c) && !Qe.hasOwnProperty(c) && (i[c] = r[c]);
550
+ var l, i = {}, o = null, h = null;
551
+ t !== void 0 && (ye(t), o = "" + t), rr(r) && (ye(r.key), o = "" + r.key), er(r) && (h = r.ref, tr(r, s));
552
+ for (l in r)
553
+ N.call(r, l) && !Qe.hasOwnProperty(l) && (i[l] = r[l]);
539
554
  if (e && e.defaultProps) {
540
555
  var d = e.defaultProps;
541
- for (c in d)
542
- i[c] === void 0 && (i[c] = d[c]);
556
+ for (l in d)
557
+ i[l] === void 0 && (i[l] = d[l]);
543
558
  }
544
- if (o || b) {
559
+ if (o || h) {
545
560
  var v = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
546
- o && nr(i, v), b && ar(i, v);
561
+ o && nr(i, v), h && ar(i, v);
547
562
  }
548
- return or(e, o, b, s, n, I.current, i);
563
+ return or(e, o, h, s, n, I.current, i);
549
564
  }
550
565
  }
551
566
  var X = k.ReactCurrentOwner, be = k.ReactDebugCurrentFrame;
@@ -559,7 +574,7 @@ function Er() {
559
574
  var Q;
560
575
  Q = !1;
561
576
  function ee(e) {
562
- return typeof e == "object" && e !== null && e.$$typeof === _;
577
+ return typeof e == "object" && e !== null && e.$$typeof === g;
563
578
  }
564
579
  function he() {
565
580
  {
@@ -607,7 +622,7 @@ Check the top-level render call using <` + t + ">.");
607
622
  return;
608
623
  Ee[t] = !0;
609
624
  var n = "";
610
- e && e._owner && e._owner !== X.current && (n = " It was passed a child from " + C(e._owner.type) + "."), D(e), R('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), D(null);
625
+ e && e._owner && e._owner !== X.current && (n = " It was passed a child from " + C(e._owner.type) + "."), D(e), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), D(null);
611
626
  }
612
627
  }
613
628
  function Se(e, r) {
@@ -624,12 +639,12 @@ Check the top-level render call using <` + t + ">.");
624
639
  else if (e) {
625
640
  var s = Ie(e);
626
641
  if (typeof s == "function" && s !== e.entries)
627
- for (var c = s.call(e), i; !(i = c.next()).done; )
642
+ for (var l = s.call(e), i; !(i = l.next()).done; )
628
643
  ee(i.value) && _e(i.value, r);
629
644
  }
630
645
  }
631
646
  }
632
- function cr(e) {
647
+ function lr(e) {
633
648
  {
634
649
  var r = e.type;
635
650
  if (r == null || typeof r == "string")
@@ -639,7 +654,7 @@ Check the top-level render call using <` + t + ">.");
639
654
  t = r.propTypes;
640
655
  else if (typeof r == "object" && (r.$$typeof === y || // Note: Memo only checks outer props here.
641
656
  // Inner props are checked in the reconciler.
642
- r.$$typeof === l))
657
+ r.$$typeof === c))
643
658
  t = r.propTypes;
644
659
  else
645
660
  return;
@@ -649,143 +664,145 @@ Check the top-level render call using <` + t + ">.");
649
664
  } else if (r.PropTypes !== void 0 && !Q) {
650
665
  Q = !0;
651
666
  var s = C(r);
652
- R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
667
+ b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
653
668
  }
654
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
669
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
655
670
  }
656
671
  }
657
- function lr(e) {
672
+ function cr(e) {
658
673
  {
659
674
  for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
660
675
  var n = r[t];
661
676
  if (n !== "children" && n !== "key") {
662
- D(e), R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), D(null);
677
+ D(e), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), D(null);
663
678
  break;
664
679
  }
665
680
  }
666
- e.ref !== null && (D(e), R("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
681
+ e.ref !== null && (D(e), b("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
667
682
  }
668
683
  }
669
- function Te(e, r, t, n, s, c) {
684
+ function we(e, r, t, n, s, l) {
670
685
  {
671
686
  var i = Ne(e);
672
687
  if (!i) {
673
688
  var o = "";
674
689
  (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
675
- var b = sr(s);
676
- b ? o += b : o += he();
690
+ var h = sr(s);
691
+ h ? o += h : o += he();
677
692
  var d;
678
- e === null ? d = "null" : K(e) ? d = "array" : e !== void 0 && e.$$typeof === _ ? (d = "<" + (C(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, o);
693
+ e === null ? d = "null" : K(e) ? d = "array" : e !== void 0 && e.$$typeof === g ? (d = "<" + (C(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, o);
679
694
  }
680
- var v = ir(e, r, t, s, c);
695
+ var v = ir(e, r, t, s, l);
681
696
  if (v == null)
682
697
  return v;
683
698
  if (i) {
684
- var E = r.children;
685
- if (E !== void 0)
699
+ var S = r.children;
700
+ if (S !== void 0)
686
701
  if (n)
687
- if (K(E)) {
688
- for (var F = 0; F < E.length; F++)
689
- Se(E[F], e);
690
- Object.freeze && Object.freeze(E);
702
+ if (K(S)) {
703
+ for (var F = 0; F < S.length; F++)
704
+ Se(S[F], e);
705
+ Object.freeze && Object.freeze(S);
691
706
  } else
692
- R("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
707
+ b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
693
708
  else
694
- Se(E, e);
709
+ Se(S, e);
695
710
  }
696
- return e === T ? lr(v) : cr(v), v;
711
+ return e === w ? cr(v) : lr(v), v;
697
712
  }
698
713
  }
699
714
  function fr(e, r, t) {
700
- return Te(e, r, t, !0);
715
+ return we(e, r, t, !0);
701
716
  }
702
717
  function dr(e, r, t) {
703
- return Te(e, r, t, !1);
718
+ return we(e, r, t, !1);
704
719
  }
705
720
  var vr = dr, pr = fr;
706
- W.Fragment = T, W.jsx = vr, W.jsxs = pr;
707
- }()), W;
721
+ $.Fragment = w, $.jsx = vr, $.jsxs = pr;
722
+ }()), $;
708
723
  }
709
- process.env.NODE_ENV === "production" ? re.exports = hr() : re.exports = Er();
724
+ process.env.NODE_ENV === "production" ? re.exports = _r() : re.exports = Sr();
710
725
  var Oe = re.exports;
711
- function Cr({
726
+ function Or({
712
727
  children: a,
713
- maps: _,
714
- externalSync: S
728
+ maps: g,
729
+ externalSync: E
715
730
  }) {
716
- const [T, u] = mr(br, {
731
+ const [w, u] = mr(br, {
717
732
  ...B.state,
718
- maps: _.reduce((l, f) => (l[f.id] = f, l), B.state.maps)
733
+ maps: g.reduce((c, f) => (c[f.id] = f, c), B.state.maps)
719
734
  }), m = V(
720
- (l, f, w) => {
721
- _[0].id === l && S?.({
735
+ (c, f, T) => {
736
+ g[0].id === c && E?.({
722
737
  type: f,
723
- payload: w
738
+ payload: T
724
739
  });
725
740
  },
726
- [S, _]
741
+ [E, g]
727
742
  ), p = V(
728
- (l, f) => {
743
+ (c, f) => {
729
744
  u({
730
745
  type: j.SetViewState,
731
746
  payload: {
732
- id: l,
747
+ id: c,
733
748
  viewState: f
734
749
  }
735
- }), m(l, j.SetViewState, f);
750
+ }), m(c, j.SetViewState, f);
736
751
  },
737
752
  [u, m]
738
- ), h = V(
739
- (l, { height: f, width: w }) => {
753
+ ), _ = V(
754
+ (c, { height: f, width: T }) => {
740
755
  u({
741
756
  type: j.SetResize,
742
757
  payload: {
743
- id: l,
758
+ id: c,
744
759
  height: f,
745
- width: w
760
+ width: T
746
761
  }
747
- }), m(l, j.SetResize, { height: f, width: w });
762
+ }), m(c, j.SetResize, { height: f, width: T });
748
763
  },
749
764
  [u, m]
750
765
  ), y = V(
751
- (l, f) => {
766
+ (c, f) => {
752
767
  u({
753
768
  type: j.SetBasemap,
754
769
  payload: {
755
- id: l,
770
+ id: c,
756
771
  basemap: f
757
772
  }
758
773
  });
759
774
  },
760
775
  [u]
761
776
  ), O = V(
762
- (l, f) => {
777
+ (c, f) => {
763
778
  u({
764
779
  type: j.SetZoom,
765
780
  payload: {
766
- id: l,
781
+ id: c,
767
782
  zoom: f
768
783
  }
769
784
  });
770
785
  },
771
786
  [u]
772
- ), g = yr({
787
+ ), R = yr({
773
788
  setViewState: p,
774
789
  setBasemap: y,
775
- setResize: h,
790
+ setResize: _,
776
791
  setZoom: O
777
792
  });
778
- return /* @__PURE__ */ Oe.jsx(Fe.Provider, { value: g.current, children: /* @__PURE__ */ Oe.jsx(De.Provider, { value: T, children: a }) });
793
+ return /* @__PURE__ */ Oe.jsx(Fe.Provider, { value: R.current, children: /* @__PURE__ */ Oe.jsx(De.Provider, { value: w, children: a }) });
779
794
  }
780
795
  export {
781
- Sr as CartoBasemapURL,
796
+ Tr as CartoBasemapURL,
782
797
  Rr as CartoBasemapsNames,
783
798
  gr as GMapsBasemap,
784
799
  B as INITIAL_STATE,
785
800
  Fe as MapActionsContext,
786
801
  De as MapContext,
787
- Cr as MapProvider,
802
+ Or as MapProvider,
788
803
  br as reducer,
789
- Tr as useMap,
790
- wr as useMapActions
804
+ hr as useMap,
805
+ Er as useMapActions,
806
+ Pr as useMapActionsByID,
807
+ Cr as useMapByID
791
808
  };
@@ -2,5 +2,5 @@ export * from './map-provider.const';
2
2
  export * from './map-provider.types';
3
3
  export { INITIAL_STATE, MapContext, MapActionsContext, } from './map-provider.context';
4
4
  export { reducer } from './map-provider.reducer';
5
- export { useMap, useMapActions } from './map-provider.hook';
5
+ export { useMap, useMapActions, useMapByID, useMapActionsByID, } from './map-provider.hook';
6
6
  export { MapProvider } from './map-provider.provider';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carto/ps-react-maps",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "CARTO's Professional Service React Maps library",
5
5
  "files": [
6
6
  "dist"