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