@tmf_ciclica/ciclicastorybook 1.1.7 → 1.1.9
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.js +28 -28
- package/dist/index.es.js +1243 -1232
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -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 Do;function Oa(){if(Do)return xn;Do=1;var e=b,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var p,
|
|
9
|
+
*/var Do;function Oa(){if(Do)return xn;Do=1;var e=b,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var p,d={},h=null,v=null;u!==void 0&&(h=""+u),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(v=c.ref);for(p in c)r.call(c,p)&&!s.hasOwnProperty(p)&&(d[p]=c[p]);if(l&&l.defaultProps)for(p in c=l.defaultProps,c)d[p]===void 0&&(d[p]=c[p]);return{$$typeof:t,type:l,key:h,ref:v,props:d,_owner:o.current}}return xn.Fragment=n,xn.jsx=i,xn.jsxs=i,xn}var _n={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,43 +14,43 @@
|
|
|
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 Fo;function ja(){return Fo||(Fo=1,process.env.NODE_ENV!=="production"&&function(){var e=b,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),
|
|
18
|
-
`+
|
|
19
|
-
`),we=
|
|
20
|
-
`),Le=
|
|
21
|
-
`+
|
|
17
|
+
*/var Fo;function ja(){return Fo||(Fo=1,process.env.NODE_ENV!=="production"&&function(){var e=b,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),x=Symbol.iterator,f="@@iterator";function C(g){if(g===null||typeof g!="object")return null;var k=x&&g[x]||g[f];return typeof k=="function"?k:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function j(g){{for(var k=arguments.length,N=new Array(k>1?k-1:0),ne=1;ne<k;ne++)N[ne-1]=arguments[ne];w("error",g,N)}}function w(g,k,N){{var ne=S.ReactDebugCurrentFrame,J=ne.getStackAddendum();J!==""&&(k+="%s",N=N.concat([J]));var se=N.map(function(ue){return String(ue)});se.unshift("Warning: "+k),Function.prototype.apply.call(console[g],console,se)}}var R=!1,_=!1,F=!1,y=!1,E=!1,T;T=Symbol.for("react.module.reference");function $(g){return!!(typeof g=="string"||typeof g=="function"||g===r||g===s||E||g===o||g===u||g===p||y||g===v||R||_||F||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===d||g.$$typeof===i||g.$$typeof===l||g.$$typeof===c||g.$$typeof===T||g.getModuleId!==void 0))}function I(g,k,N){var ne=g.displayName;if(ne)return ne;var J=k.displayName||k.name||"";return J!==""?N+"("+J+")":N}function Q(g){return g.displayName||"Context"}function U(g){if(g==null)return null;if(typeof g.tag=="number"&&j("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case p:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case l:var k=g;return Q(k)+".Consumer";case i:var N=g;return Q(N._context)+".Provider";case c:return I(g,g.render,"ForwardRef");case d:var ne=g.displayName||null;return ne!==null?ne:U(g.type)||"Memo";case h:{var J=g,se=J._payload,ue=J._init;try{return U(ue(se))}catch{return null}}}return null}var Z=Object.assign,q=0,ie,oe,ke,$e,O,A,ee;function W(){}W.__reactDisabledLog=!0;function z(){{if(q===0){ie=console.log,oe=console.info,ke=console.warn,$e=console.error,O=console.group,A=console.groupCollapsed,ee=console.groupEnd;var g={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}q++}}function te(){{if(q--,q===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Z({},g,{value:ie}),info:Z({},g,{value:oe}),warn:Z({},g,{value:ke}),error:Z({},g,{value:$e}),group:Z({},g,{value:O}),groupCollapsed:Z({},g,{value:A}),groupEnd:Z({},g,{value:ee})})}q<0&&j("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Y=S.ReactCurrentDispatcher,K;function V(g,k,N){{if(K===void 0)try{throw Error()}catch(J){var ne=J.stack.trim().match(/\n( *(at )?)/);K=ne&&ne[1]||""}return`
|
|
18
|
+
`+K+g}}var G=!1,re;{var be=typeof WeakMap=="function"?WeakMap:Map;re=new be}function P(g,k){if(!g||G)return"";{var N=re.get(g);if(N!==void 0)return N}var ne;G=!0;var J=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var se;se=Y.current,Y.current=null,z();try{if(k){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(Ye){ne=Ye}Reflect.construct(g,[],ue)}else{try{ue.call()}catch(Ye){ne=Ye}g.call(ue.prototype)}}else{try{throw Error()}catch(Ye){ne=Ye}g()}}catch(Ye){if(Ye&&ne&&typeof Ye.stack=="string"){for(var ce=Ye.stack.split(`
|
|
19
|
+
`),we=ne.stack.split(`
|
|
20
|
+
`),Le=ce.length-1,Ne=we.length-1;Le>=1&&Ne>=0&&ce[Le]!==we[Ne];)Ne--;for(;Le>=1&&Ne>=0;Le--,Ne--)if(ce[Le]!==we[Ne]){if(Le!==1||Ne!==1)do if(Le--,Ne--,Ne<0||ce[Le]!==we[Ne]){var ot=`
|
|
21
|
+
`+ce[Le].replace(" at new "," at ");return g.displayName&&ot.includes("<anonymous>")&&(ot=ot.replace("<anonymous>",g.displayName)),typeof g=="function"&&re.set(g,ot),ot}while(Le>=1&&Ne>=0);break}}}finally{G=!1,Y.current=se,te(),Error.prepareStackTrace=J}var Ht=g?g.displayName||g.name:"",Pt=Ht?V(Ht):"";return typeof g=="function"&&re.set(g,Pt),Pt}function xe(g,k,N){return P(g,!1)}function ae(g){var k=g.prototype;return!!(k&&k.isReactComponent)}function le(g,k,N){if(g==null)return"";if(typeof g=="function")return P(g,ae(g));if(typeof g=="string")return V(g);switch(g){case u:return V("Suspense");case p:return V("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case c:return xe(g.render);case d:return le(g.type,k,N);case h:{var ne=g,J=ne._payload,se=ne._init;try{return le(se(J),k,N)}catch{}}}return""}var Oe=Object.prototype.hasOwnProperty,Ve={},qe=S.ReactDebugCurrentFrame;function ft(g){if(g){var k=g._owner,N=le(g.type,g._source,k?k.type:null);qe.setExtraStackFrame(N)}else qe.setExtraStackFrame(null)}function De(g,k,N,ne,J){{var se=Function.call.bind(Oe);for(var ue in g)if(se(g,ue)){var ce=void 0;try{if(typeof g[ue]!="function"){var we=Error((ne||"React class")+": "+N+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw we.name="Invariant Violation",we}ce=g[ue](k,ue,ne,N,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Le){ce=Le}ce&&!(ce instanceof Error)&&(ft(J),j("%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).",ne||"React class",N,ue,typeof ce),ft(null)),ce instanceof Error&&!(ce.message in Ve)&&(Ve[ce.message]=!0,ft(J),j("Failed %s type: %s",N,ce.message),ft(null))}}}var _t=Array.isArray;function jt(g){return _t(g)}function hn(g){{var k=typeof Symbol=="function"&&Symbol.toStringTag,N=k&&g[Symbol.toStringTag]||g.constructor.name||"Object";return N}}function mn(g){try{return gn(g),!1}catch{return!0}}function gn(g){return""+g}function zt(g){if(mn(g))return j("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",hn(g)),gn(g)}var Ct=S.ReactCurrentOwner,M={key:!0,ref:!0,__self:!0,__source:!0},D,H;function de(g){if(Oe.call(g,"ref")){var k=Object.getOwnPropertyDescriptor(g,"ref").get;if(k&&k.isReactWarning)return!1}return g.ref!==void 0}function pe(g){if(Oe.call(g,"key")){var k=Object.getOwnPropertyDescriptor(g,"key").get;if(k&&k.isReactWarning)return!1}return g.key!==void 0}function fe(g,k){typeof g.ref=="string"&&Ct.current}function Je(g,k){{var N=function(){D||(D=!0,j("%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)",k))};N.isReactWarning=!0,Object.defineProperty(g,"key",{get:N,configurable:!0})}}function rt(g,k){{var N=function(){H||(H=!0,j("%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)",k))};N.isReactWarning=!0,Object.defineProperty(g,"ref",{get:N,configurable:!0})}}var he=function(g,k,N,ne,J,se,ue){var ce={$$typeof:t,type:g,key:k,ref:N,props:ue,_owner:se};return ce._store={},Object.defineProperty(ce._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ce,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ne}),Object.defineProperty(ce,"_source",{configurable:!1,enumerable:!1,writable:!1,value:J}),Object.freeze&&(Object.freeze(ce.props),Object.freeze(ce)),ce};function Ke(g,k,N,ne,J){{var se,ue={},ce=null,we=null;N!==void 0&&(zt(N),ce=""+N),pe(k)&&(zt(k.key),ce=""+k.key),de(k)&&(we=k.ref,fe(k,J));for(se in k)Oe.call(k,se)&&!M.hasOwnProperty(se)&&(ue[se]=k[se]);if(g&&g.defaultProps){var Le=g.defaultProps;for(se in Le)ue[se]===void 0&&(ue[se]=Le[se])}if(ce||we){var Ne=typeof g=="function"?g.displayName||g.name||"Unknown":g;ce&&Je(ue,Ne),we&&rt(ue,Ne)}return he(g,ce,we,J,ne,Ct.current,ue)}}var dt=S.ReactCurrentOwner,yn=S.ReactDebugCurrentFrame;function yt(g){if(g){var k=g._owner,N=le(g.type,g._source,k?k.type:null);yn.setExtraStackFrame(N)}else yn.setExtraStackFrame(null)}var Bt;Bt=!1;function $t(g){return typeof g=="object"&&g!==null&&g.$$typeof===t}function Ut(){{if(dt.current){var g=U(dt.current.type);if(g)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+g+"`."}return""}}function Un(g){return""}var Vt={};function jr(g){{var
|
|
23
|
+
Check the render method of \``+g+"`."}return""}}function Un(g){return""}var Vt={};function jr(g){{var k=Ut();if(!k){var N=typeof g=="string"?g:g.displayName||g.name;N&&(k=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+N+">.")}return k}}function qt(g,k){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var N=jr(k);if(Vt[N])return;Vt[N]=!0;var ne="";g&&g._owner&&g._owner!==dt.current&&(ne=" It was passed a child from "+U(g._owner.type)+"."),yt(g),j('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',N,ne),yt(null)}}function Wt(g,k){{if(typeof g!="object")return;if(jt(g))for(var N=0;N<g.length;N++){var ne=g[N];$t(ne)&&qt(ne,k)}else if($t(g))g._store&&(g._store.validated=!0);else if(g){var J=C(g);if(typeof J=="function"&&J!==g.entries)for(var se=J.call(g),ue;!(ue=se.next()).done;)$t(ue.value)&&qt(ue.value,k)}}}function vn(g){{var k=g.type;if(k==null||typeof k=="string")return;var N;if(typeof k=="function")N=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===c||k.$$typeof===d))N=k.propTypes;else return;if(N){var ne=U(k);De(N,g.props,"prop",ne,g)}else if(k.PropTypes!==void 0&&!Bt){Bt=!0;var J=U(k);j("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",J||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&j("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $r(g){{for(var k=Object.keys(g.props),N=0;N<k.length;N++){var ne=k[N];if(ne!=="children"&&ne!=="key"){yt(g),j("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ne),yt(null);break}}g.ref!==null&&(yt(g),j("Invalid attribute `ref` supplied to `React.Fragment`."),yt(null))}}var Vn={};function qn(g,k,N,ne,J,se){{var ue=$(g);if(!ue){var ce="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(ce+=" 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 we=Un();we?ce+=we:ce+=Ut();var Le;g===null?Le="null":jt(g)?Le="array":g!==void 0&&g.$$typeof===t?(Le="<"+(U(g.type)||"Unknown")+" />",ce=" Did you accidentally export a JSX literal instead of a component?"):Le=typeof g,j("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Le,ce)}var Ne=Ke(g,k,N,J,se);if(Ne==null)return Ne;if(ue){var ot=k.children;if(ot!==void 0)if(ne)if(jt(ot)){for(var Ht=0;Ht<ot.length;Ht++)Wt(ot[Ht],g);Object.freeze&&Object.freeze(ot)}else j("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 Wt(ot,g)}if(Oe.call(k,"key")){var Pt=U(g),Ye=Object.keys(k).filter(function(ya){return ya!=="key"}),Ar=Ye.length>0?"{key: someKey, "+Ye.join(": ..., ")+": ...}":"{key: someKey}";if(!Vn[Pt+Ar]){var ga=Ye.length>0?"{"+Ye.join(": ..., ")+": ...}":"{}";j(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,Ar,Pt,ga,Pt),Vn[Pt+Ar]=!0}}return g===r?$r(Ne):vn(Ne),Ne}}function Pr(g,
|
|
30
|
+
<%s key={someKey} {...props} />`,Ar,Pt,ga,Pt),Vn[Pt+Ar]=!0}}return g===r?$r(Ne):vn(Ne),Ne}}function Pr(g,k,N){return qn(g,k,N,!0)}function Mr(g,k,N){return qn(g,k,N,!1)}var Lr=Mr,bn=Pr;_n.Fragment=r,_n.jsx=Lr,_n.jsxs=bn}()),_n}var zo;function $a(){return zo||(zo=1,process.env.NODE_ENV==="production"?Wn.exports=Oa():Wn.exports=ja()),Wn.exports}var m=$a();const Pa="_ambitSelector_f07c1_2",Ma="_header_f07c1_13",La="_nameDateContainer_f07c1_23",Aa="_ambitName_f07c1_39",Na="_ambitDate_f07c1_48",Ia="_buttonsContainer_f07c1_51",Kt={ambitSelector:Pa,header:Ma,nameDateContainer:La,ambitName:Aa,ambitDate:Na,buttonsContainer:Ia},Da="_ambitItem_1ueih_2",Fa="_ambitNameDate_1ueih_16",za="_ambitName_1ueih_16",Ba="_ambitDate_1ueih_35",Ua="_ambitButtons_1ueih_38",Cn={ambitItem:Da,ambitNameDate:Fa,ambitName:za,ambitDate:Ba,ambitButtons:Ua},Va="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",qa="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Bo="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",Wa="data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%200%2026%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205138'%3e%3cpath%20id='Vector'%20d='M12.95%200.408447C7.659%200.408447%202.84899%202.77185%200.0832465%206.72621C-0.0277488%206.88808%20-0.0277488%207.09621%200.0832465%207.25807C2.84439%2011.2125%207.65437%2013.5712%2012.95%2013.5712C18.2456%2013.5712%2023.0556%2011.2125%2025.8168%207.25807C25.9278%207.0962%2025.9278%206.88807%2025.8168%206.72621C23.051%202.77184%2018.241%200.408447%2012.95%200.408447ZM12.95%2011.2217C10.619%2011.2217%208.71812%209.32083%208.71812%206.98984C8.71812%204.65885%2010.619%202.75796%2012.95%202.75796C15.281%202.75796%2017.1819%204.65883%2017.1819%206.98984C17.1819%209.32085%2015.281%2011.2217%2012.95%2011.2217Z'%20fill='%23B32F5D'/%3e%3cpath%20id='Vector_2'%20d='M12.9514%2010.2966C14.7777%2010.2966%2016.2583%208.81607%2016.2583%206.98974C16.2583%205.1634%2014.7777%203.68286%2012.9514%203.68286C11.1251%203.68286%209.64453%205.1634%209.64453%206.98974C9.64453%208.81607%2011.1251%2010.2966%2012.9514%2010.2966Z'%20fill='%23B32F5D'/%3e%3c/g%3e%3c/svg%3e",Ha="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205207'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e";var Hn={exports:{}},Kn={exports:{}},ye={};/** @license React v16.13.1
|
|
31
31
|
* react-is.production.min.js
|
|
32
32
|
*
|
|
33
33
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
34
|
*
|
|
35
35
|
* This source code is licensed under the MIT license found in the
|
|
36
36
|
* LICENSE file in the root directory of this source tree.
|
|
37
|
-
*/var Uo;function Ka(){if(Uo)return ye;Uo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,
|
|
37
|
+
*/var Uo;function Ka(){if(Uo)return ye;Uo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function w(_){if(typeof _=="object"&&_!==null){var F=_.$$typeof;switch(F){case t:switch(_=_.type,_){case c:case u:case r:case s:case o:case d:return _;default:switch(_=_&&_.$$typeof,_){case l:case p:case x:case v:case i:return _;default:return F}}case n:return F}}}function R(_){return w(_)===u}return ye.AsyncMode=c,ye.ConcurrentMode=u,ye.ContextConsumer=l,ye.ContextProvider=i,ye.Element=t,ye.ForwardRef=p,ye.Fragment=r,ye.Lazy=x,ye.Memo=v,ye.Portal=n,ye.Profiler=s,ye.StrictMode=o,ye.Suspense=d,ye.isAsyncMode=function(_){return R(_)||w(_)===c},ye.isConcurrentMode=R,ye.isContextConsumer=function(_){return w(_)===l},ye.isContextProvider=function(_){return w(_)===i},ye.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},ye.isForwardRef=function(_){return w(_)===p},ye.isFragment=function(_){return w(_)===r},ye.isLazy=function(_){return w(_)===x},ye.isMemo=function(_){return w(_)===v},ye.isPortal=function(_){return w(_)===n},ye.isProfiler=function(_){return w(_)===s},ye.isStrictMode=function(_){return w(_)===o},ye.isSuspense=function(_){return w(_)===d},ye.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===u||_===s||_===o||_===d||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===x||_.$$typeof===v||_.$$typeof===i||_.$$typeof===l||_.$$typeof===p||_.$$typeof===C||_.$$typeof===S||_.$$typeof===j||_.$$typeof===f)},ye.typeOf=w,ye}var ve={};/** @license React v16.13.1
|
|
38
38
|
* react-is.development.js
|
|
39
39
|
*
|
|
40
40
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
41
41
|
*
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/var Vo;function Ya(){return Vo||(Vo=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,
|
|
44
|
+
*/var Vo;function Ya(){return Vo||(Vo=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function w(P){return typeof P=="string"||typeof P=="function"||P===r||P===u||P===s||P===o||P===d||P===h||typeof P=="object"&&P!==null&&(P.$$typeof===x||P.$$typeof===v||P.$$typeof===i||P.$$typeof===l||P.$$typeof===p||P.$$typeof===C||P.$$typeof===S||P.$$typeof===j||P.$$typeof===f)}function R(P){if(typeof P=="object"&&P!==null){var xe=P.$$typeof;switch(xe){case t:var ae=P.type;switch(ae){case c:case u:case r:case s:case o:case d:return ae;default:var le=ae&&ae.$$typeof;switch(le){case l:case p:case x:case v:case i:return le;default:return xe}}case n:return xe}}}var _=c,F=u,y=l,E=i,T=t,$=p,I=r,Q=x,U=v,Z=n,q=s,ie=o,oe=d,ke=!1;function $e(P){return ke||(ke=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(P)||R(P)===c}function O(P){return R(P)===u}function A(P){return R(P)===l}function ee(P){return R(P)===i}function W(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function z(P){return R(P)===p}function te(P){return R(P)===r}function Y(P){return R(P)===x}function K(P){return R(P)===v}function V(P){return R(P)===n}function G(P){return R(P)===s}function re(P){return R(P)===o}function be(P){return R(P)===d}ve.AsyncMode=_,ve.ConcurrentMode=F,ve.ContextConsumer=y,ve.ContextProvider=E,ve.Element=T,ve.ForwardRef=$,ve.Fragment=I,ve.Lazy=Q,ve.Memo=U,ve.Portal=Z,ve.Profiler=q,ve.StrictMode=ie,ve.Suspense=oe,ve.isAsyncMode=$e,ve.isConcurrentMode=O,ve.isContextConsumer=A,ve.isContextProvider=ee,ve.isElement=W,ve.isForwardRef=z,ve.isFragment=te,ve.isLazy=Y,ve.isMemo=K,ve.isPortal=V,ve.isProfiler=G,ve.isStrictMode=re,ve.isSuspense=be,ve.isValidElementType=w,ve.typeOf=R}()),ve}var qo;function Js(){return qo||(qo=1,process.env.NODE_ENV==="production"?Kn.exports=Ka():Kn.exports=Ya()),Kn.exports}/*
|
|
45
45
|
object-assign
|
|
46
46
|
(c) Sindre Sorhus
|
|
47
47
|
@license MIT
|
|
48
|
-
*/var Nr,Wo;function Za(){if(Wo)return Nr;Wo=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(i).map(function(p){return i[p]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(p){u[p]=p}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Nr=o()?Object.assign:function(s,i){for(var l,c=r(s),u,p=1;p<arguments.length;p++){l=Object(arguments[p]);for(var
|
|
49
|
-
Valid keys: `+JSON.stringify(Object.keys(O),null," "));var P=be(
|
|
50
|
-
${t==="horizontal"&&Mt.horizontal}`,children:e.map((l,c)=>{const{icon:u,activeIcon:p,isActive:
|
|
51
|
-
${f&&Mt.active}`,children:x}),o&&m.jsx(yo,{text:h,position:s})]},c)})})};ti.propTypes={buttons:a.arrayOf(a.shape({icon:a.node.isRequired,activeIcon:a.node,isActive:a.bool,name:a.string,onClick:a.func})).isRequired,orientation:a.oneOf(["horizontal","vertical"]),showName:a.bool,namePosition:a.oneOf(["left","right"]),useTooltip:a.bool,tooltipPosition:a.oneOf(["top","bottom","left","right"])};const pl="_indicatorsCategory_1cu33_2",hl="_title_1cu33_5",ml="_list_1cu33_11",Ur={indicatorsCategory:pl,title:hl,list:ml},Rt=({isOpen:e,onClick:t,children:n,color:r,activeColor:o="#F8A925",title:s="Title",height:i=53,titleFontStyles:l,showBottomBar:c=!0,titleMarginChildren:u=25})=>{const{t:p}=Te.useTranslation();return m.jsxs(mo.motion.div,{className:Ur.indicatorsCategory,initial:{height:`${i}px`},animate:{height:e?"auto":`${i}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:e&&c?`1px solid ${o}`:"0px",marginBottom:e?"20px":"0px"},children:[m.jsxs("h2",{style:{...l,marginBottom:u||"auto"},className:`${Ur.title}`,onClick:t,children:[m.jsx("span",{style:{color:e?o:r},children:e?"-":"+"}),m.jsx("span",{style:{marginLeft:12,color:e?o:r},children:p(s)})]}),m.jsx("div",{className:Ur.content,children:n})]})};Rt.propTypes={isOpen:a.bool,onClick:a.func,children:a.node,color:a.string,activeColor:a.string,title:a.string,height:a.number,showBottomBar:a.bool,titleFontStyles:a.object};const gl=()=>m.jsx("div",{children:"EditAmbit"}),yl="_AppliedFiltersContainer_s8ooe_2",vl="_AppliedFilterContent_s8ooe_10",Xo={AppliedFiltersContainer:yl,AppliedFilterContent:vl},Ue=Ta.create(e=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56"})),ni=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680",activeColor:s})=>{const{t:i}=Te.useTranslation(),{tematicalFiltersSelected:l}=Ue(u=>u),c=u=>{Ue.setState(p=>({tematicalFiltersSelected:p.tematicalFiltersSelected.filter(f=>f.code!==u)}))};return m.jsx(Rt,{isOpen:n,onClick:t,title:e?i(e):"Applied Filters",activeColor:s,children:m.jsx("div",{className:Xo.AppliedFiltersContainer,children:l==null?void 0:l.map((u,p)=>m.jsxs("div",{className:Xo.AppliedFilterContent,style:{color:r,background:o},children:[u.code,m.jsx("img",{src:tl,alt:"CloseIcon",onClick:()=>c(u.code),style:{cursor:"pointer"}})]},p))})})};ni.propTypes={isOpen:a.bool,onClick:a.func,title:a.string,textColor:a.string,backgroundColor:a.string,indicators:a.arrayOf(a.shape({title:a.string.isRequired,Codename:a.string.isRequired})),activeColor:a.string};const ri=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680",activeColor:s})=>{const{t:i}=Te.useTranslation();return Ue(l=>l),m.jsx(Rt,{isOpen:n,onClick:t,title:e?i(e):"Geographical Filters",activeColor:s,children:"A"})};ri.propTypes={isOpen:a.bool,onClick:a.func,title:a.string,textColor:a.string,backgroundColor:a.string,activeColor:a.string};const bl="_checkboxContainer_zld97_2",xl={checkboxContainer:bl},oi=({onClick:e,containerStyles:t,color:n="#605B56",indicator:r,value:o})=>{const{t:s}=Te.useTranslation(),{title:i}=r||{},{fontColor:l,inputsColor:c}=Ue(u=>u);return m.jsxs("div",{style:{...t,color:n},role:"checkbox",className:xl.checkboxContainer,onClick:e,children:[m.jsx("input",{type:"checkbox",checked:typeof o=="boolean"?o:!0,value:o,readOnly:!0,style:{border:`1.5px solid ${o?c:l}`,backgroundColor:o?c:"white"}}),m.jsx("span",{className:"checkmark",children:s(i)})]})};oi.propTypes={onClick:a.func,value:a.bool,containerStyles:a.object,color:a.string,indicator:a.shape({title:a.string,codename:a.array}),checkedColor:a.string};function ro(e,t){return ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ro(e,t)}function _l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ro(e,t)}function Vr(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function qr(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function Yn(e){return e!==null&&e.length===1?e[0]:e.slice()}function Zn(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function Lt(e,t){return oo(function(n,r){let o=n;return o<=r.min&&(o=r.min),o>=r.max&&(o=r.max),o}(e,t),t)}function oo(e,t){const n=(e-t.min)%t.step;let r=e-n;return 2*Math.abs(n)>=t.step&&(r+=n>0?t.step:-t.step),parseFloat(r.toFixed(5))}let so=function(e){function t(r){var o;(o=e.call(this,r)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=l=>{l.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=l=>{o.setState({pending:!0});const c=o.getMousePosition(l),u=o.getDiffPosition(c[0]),p=o.getValueFromPosition(u);o.move(p)},o.onTouchMove=l=>{if(l.touches.length>1)return;o.setState({pending:!0});const c=o.getTouchPosition(l);if(o.isScrolling===void 0){const f=c[0]-o.startPosition[0],h=c[1]-o.startPosition[1];o.isScrolling=Math.abs(h)>Math.abs(f)}if(o.isScrolling)return void o.setState({index:-1});const u=o.getDiffPosition(c[0]),p=o.getValueFromPosition(u);o.move(p)},o.onKeyDown=l=>{if(!(l.ctrlKey||l.shiftKey||l.altKey||l.metaKey))switch(o.setState({pending:!0}),l.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":l.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":l.preventDefault(),o.moveUpByStep();break;case"Home":l.preventDefault(),o.move(o.props.min);break;case"End":l.preventDefault(),o.move(o.props.max);break;case"PageDown":l.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":l.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=l=>{if(!o.props.disabled&&l.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){const c=o.getMousePosition(l);o.forceValueFromPosition(c[0],u=>{o.start(u,c[0]),Zn(o.getMouseEventMap())})}Vr(l)}},o.onSliderClick=l=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){const c=o.getMousePosition(l),u=Lt(o.calcValue(o.calcOffsetFromPosition(c[0])),o.props);o.props.onSliderClick(u)}},o.createOnKeyDown=l=>c=>{o.props.disabled||(o.start(l),Zn(o.getKeyDownEventMap()),Vr(c))},o.createOnMouseDown=l=>c=>{if(o.props.disabled||c.button===2)return;o.setState({pending:!0});const u=o.getMousePosition(c);o.start(l,u[0]),Zn(o.getMouseEventMap()),Vr(c)},o.createOnTouchStart=l=>c=>{if(o.props.disabled||c.touches.length>1)return;o.setState({pending:!0});const u=o.getTouchPosition(c);o.startPosition=u,o.isScrolling=void 0,o.start(l,u[0]),Zn(o.getTouchEventMap()),function(p){p.stopPropagation&&p.stopPropagation()}(c)},o.handleResize=()=>{const l=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(l)},o.renderThumb=(l,c)=>{const u=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+c+" "+(o.state.index===c?o.props.thumbActiveClassName:""),p={ref:h=>{o["thumb"+c]=h},key:o.props.thumbClassName+"-"+c,className:u,style:l,onMouseDown:o.createOnMouseDown(c),onTouchStart:o.createOnTouchStart(c),onFocus:o.createOnKeyDown(c),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[c],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[c]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[c]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},f={index:c,value:Yn(o.state.value),valueNow:o.state.value[c]};return o.props.ariaValuetext&&(p["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(f)),o.props.renderThumb(p,f)},o.renderTrack=(l,c,u)=>{const p={key:o.props.trackClassName+"-"+l,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+l,style:o.buildTrackStyle(c,o.state.upperBound-u)},f={index:l,value:Yn(o.state.value)};return o.props.renderTrack(p,f)};let s=qr(r.value);s.length||(s=qr(r.defaultValue)),o.pendingResizeTimeouts=[];const i=[];for(let l=0;l<s.length;l+=1)s[l]=Lt(s[l],r),i.push(l);return o.resizeObserver=null,o.resizeElementRef=b.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:s,zIndices:i},o}_l(t,e);var n=t.prototype;return n.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(r,o){const s=qr(r.value);return s.length?o.pending?null:{value:s.map(i=>Lt(i,r))}:null},n.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},n.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},n.onEnd=function(r){r&&function(o){Object.keys(o).forEach(s=>{typeof document<"u"&&document.removeEventListener(s,o[s],!1)})}(r),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},n.getValue=function(){return Yn(this.state.value)},n.getClosestIndex=function(r){let o=Number.MAX_VALUE,s=-1;const{value:i}=this.state,l=i.length;for(let c=0;c<l;c+=1){const u=this.calcOffset(i[c]),p=Math.abs(r-u);p<o&&(o=p,s=c)}return s},n.getMousePosition=function(r){return[r["page"+this.axisKey()],r["page"+this.orthogonalAxisKey()]]},n.getTouchPosition=function(r){const o=r.touches[0];return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},n.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},n.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},n.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},n.getValueFromPosition=function(r){const o=r/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return Lt(this.state.startValue+o,this.props)},n.getDiffPosition=function(r){let o=r-this.state.startPosition;return this.props.invert&&(o*=-1),o},n.resize=function(){const{slider:r,thumb0:o}=this;if(!r||!o)return;const s=this.sizeKey(),i=r.getBoundingClientRect(),l=r[s],c=i[this.posMaxKey()],u=i[this.posMinKey()],p=o.getBoundingClientRect()[s.replace("client","").toLowerCase()],f=l-p,h=Math.abs(c-u);this.state.upperBound===f&&this.state.sliderLength===h&&this.state.thumbSize===p||this.setState({upperBound:f,sliderLength:h,thumbSize:p})},n.calcOffset=function(r){const o=this.props.max-this.props.min;return o===0?0:(r-this.props.min)/o*this.state.upperBound},n.calcValue=function(r){return r/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},n.calcOffsetFromPosition=function(r){const{slider:o}=this,s=o.getBoundingClientRect(),i=s[this.posMaxKey()],l=s[this.posMinKey()];let c=r-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?i:l));return this.props.invert&&(c=this.state.sliderLength-c),c-=this.state.thumbSize/2,c},n.forceValueFromPosition=function(r,o){const s=this.calcOffsetFromPosition(r),i=this.getClosestIndex(s),l=Lt(this.calcValue(s),this.props),c=this.state.value.slice();c[i]=l;for(let u=0;u<c.length-1;u+=1)if(c[u+1]-c[u]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:c},()=>{o(i),this.fireChangeEvent("onChange")})},n.clearPendingResizeTimeouts=function(){do{const r=this.pendingResizeTimeouts.shift();clearTimeout(r)}while(this.pendingResizeTimeouts.length)},n.start=function(r,o){const s=this["thumb"+r];s&&s.focus();const{zIndices:i}=this.state;i.splice(i.indexOf(r),1),i.push(r),this.setState(l=>({startValue:l.value[r],startPosition:o!==void 0?o:l.startPosition,index:r,zIndices:i}))},n.moveUpByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],s=Lt(this.props.invert&&this.props.orientation==="horizontal"?o-r:o+r,this.props);this.move(Math.min(s,this.props.max))},n.moveDownByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],s=Lt(this.props.invert&&this.props.orientation==="horizontal"?o+r:o-r,this.props);this.move(Math.max(s,this.props.min))},n.move=function(r){const o=this.state.value.slice(),{index:s}=this.state,{length:i}=o,l=o[s];if(r===l)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:c,max:u,min:p,minDistance:f}=this.props;if(!c){if(s>0){const h=o[s-1];r<h+f&&(r=h+f)}if(s<i-1){const h=o[s+1];r>h-f&&(r=h-f)}}o[s]=r,c&&i>1&&(r>l?(this.pushSucceeding(o,f,s),function(h,v,x,d){for(let C=0;C<h;C+=1){const S=d-C*x;v[h-1-C]>S&&(v[h-1-C]=S)}}(i,o,f,u)):r<l&&(this.pushPreceding(o,f,s),function(h,v,x,d){for(let C=0;C<h;C+=1){const S=d+C*x;v[C]<S&&(v[C]=S)}}(i,o,f,p))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},n.pushSucceeding=function(r,o,s){let i,l;for(i=s,l=r[i]+o;r[i+1]!==null&&l>r[i+1];i+=1,l=r[i]+o)r[i+1]=oo(l,this.props)},n.pushPreceding=function(r,o,s){for(let i=s,l=r[i]-o;r[i-1]!==null&&l<r[i-1];i-=1,l=r[i]-o)r[i-1]=oo(l,this.props)},n.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},n.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},n.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},n.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},n.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},n.fireChangeEvent=function(r){this.props[r]&&this.props[r](Yn(this.state.value),this.state.index)},n.buildThumbStyle=function(r,o){const s={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(o)+1};return s[this.posMinKey()]=r+"px",s},n.buildTrackStyle=function(r,o){const s={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return s[this.posMinKey()]=r,s[this.posMaxKey()]=o,s},n.buildMarkStyle=function(r){var o;return(o={position:"absolute"})[this.posMinKey()]=r,o},n.renderThumbs=function(r){const{length:o}=r,s=[];for(let l=0;l<o;l+=1)s[l]=this.buildThumbStyle(r[l],l);const i=[];for(let l=0;l<o;l+=1)i[l]=this.renderThumb(s[l],l);return i},n.renderTracks=function(r){const o=[],s=r.length-1;o.push(this.renderTrack(0,0,r[0]));for(let i=0;i<s;i+=1)o.push(this.renderTrack(i+1,r[i],r[i+1]));return o.push(this.renderTrack(s+1,r[s],this.state.upperBound)),o},n.renderMarks=function(){let{marks:r}=this.props;const o=this.props.max-this.props.min+1;return typeof r=="boolean"?r=Array.from({length:o}).map((s,i)=>i):typeof r=="number"&&(r=Array.from({length:o}).map((s,i)=>i).filter(s=>s%r==0)),r.map(parseFloat).sort((s,i)=>s-i).map(s=>{const i=this.calcOffset(s),l={key:s,className:this.props.markClassName,style:this.buildMarkStyle(i)};return this.props.renderMark(l)})},n.render=function(){const r=[],{value:o}=this.state,s=o.length;for(let u=0;u<s;u+=1)r[u]=this.calcOffset(o[u],u);const i=this.props.withTracks?this.renderTracks(r):null,l=this.renderThumbs(r),c=this.props.marks?this.renderMarks():null;return b.createElement("div",{ref:u=>{this.slider=u,this.resizeElementRef.current=u},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},i,l,c)},t}(b.Component);so.displayName="ReactSlider",so.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>b.createElement("div",e),renderTrack:e=>b.createElement("div",e),renderMark:e=>b.createElement("span",e)};var Cl=so;const Sl="_container_15vgv_2",Tl="_unitLabel_15vgv_9",wl="_slider_15vgv_12",El="_thumb_15vgv_18",kl="_track_15vgv_27",Rl="_labels_15vgv_33",Yt={container:Sl,unitLabel:Tl,slider:wl,thumb:El,track:kl,labels:Rl},si=({min:e=0,max:t=100,step:n=1,onChange:r,width:o=300,unit:s,fontColor:i="#605B56",value:l=[e,t]})=>{const{t:c}=Te.useTranslation(),u=p=>{r==null||r({min:p[0],max:p[1]})};return m.jsxs("div",{className:Yt.container,style:{width:`${o}px`,color:`${i}`},children:[m.jsx("div",{className:Yt.unitLabel,children:m.jsx("span",{children:c(s)})}),m.jsx(Cl,{className:Yt.slider,thumbClassName:Yt.thumb,trackClassName:Yt.track,min:e,max:t,step:n,value:l,onChange:u,withTracks:!0,pearling:!0,minDistance:1}),m.jsxs("div",{className:Yt.labels,children:[m.jsx("span",{children:l[0]}),m.jsx("span",{children:l[1]})]})]})};si.propTypes={min:a.number,max:a.number,step:a.number,initialMin:a.number,initialMax:a.number,onChange:a.func,width:a.number,unit:a.string,fontColor:a.string,value:a.arrayOf(a.number)};const Ol="_tematicalFiltersInputContainer_1vm1r_2",jl="_inputTypeContainer_1vm1r_2",$l="_checkboxContainer_1vm1r_28",Pl="_absoluteSliderContainer_1vm1r_37",Gn={tematicalFiltersInputContainer:Ol,inputTypeContainer:jl,checkboxContainer:$l,absoluteSliderContainer:Pl},vo=({indicator:e})=>{const[t,n]=b.useState(),{type:r,name:o,values:s,minValue:i,maxValue:l,unit:c}=e||{},u=b.useMemo(()=>r=="cat"||t=="cat",[t,r]),p=b.useMemo(()=>r=="abs"||t=="abs",[t,r]),{tematicalFiltersSelected:f,selectedIndicator:h,fontColor:v,inputsColor:x}=Ue(S=>S),d=S=>{if(S){const{min:R,max:j,valueClicked:k,allValues:_}=S||{},{code:F,type:y}=e||{},w=p?"abs":u?"cat":"both";let T=F[0];y=="both"&&(T=w=="cat"?F[1]:F[0]),w=="cat"?Ue.setState($=>{let N=$.tematicalFiltersSelected.find(H=>H.code===T);if(N){let H=[N.values];if(N.values.includes(k)){if(H=N.values.filter(U=>U!==k),H.length<1)return{tematicalFiltersSelected:$.tematicalFiltersSelected.filter(U=>U.code!==T)}}else H=[...N.values,k];return{tematicalFiltersSelected:$.tematicalFiltersSelected.map(U=>U.code===T?{...U,values:H}:U)}}else{console.log("entra aqui: ",_," ",k);let H=_.map((U,ce)=>ce);return{tematicalFiltersSelected:[...f,{type:"cat",code:T,values:H.filter(U=>U!==k)}]}}}):w=="abs"&&Ue.setState($=>{let N=$.tematicalFiltersSelected.find(H=>H.code===T);if(N){let H={...N};return H.min=R,H.max=j,{tematicalFiltersSelected:$.tematicalFiltersSelected.map(U=>U.code===T?H:U)}}else return{tematicalFiltersSelected:[...f,{type:"abs",code:T,min:R,max:j}]}})}},C=b.useMemo(()=>{const S={};if((f==null?void 0:f.length)>0)for(const R of f)R.type==="cat"?S[R.code]=new Set(R.values):S[R.code]=[R.min,R.max];return S},[f]);return m.jsx("div",{className:Gn.tematicalFiltersInputContainer,children:m.jsxs(Rt,{titleFontStyles:{fontSize:16,fontWeight:400},title:o,isOpen:h==`id${o}`,onClick:()=>Ue.setState(()=>({selectedIndicator:h==`id${o}`?"":`id${o}`})),showBottomBar:!1,height:38,titleMarginChildren:14,className:"tematicalFiltersInputContainer",color:v,children:[r=="both"&&m.jsxs("div",{className:Gn.inputTypeContainer,style:{color:v},children:[m.jsxs("label",{children:[m.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{n("abs")},style:{marginRight:4,backgroundColor:t=="abs"?x:"white",border:`1.5px solid ${t=="abs"?x:v}`}}),"Absoluto"]}),m.jsxs("label",{children:[m.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{n("cat")},style:{marginRight:4,backgroundColor:t=="cat"?x:"white",border:`1.5px solid ${t=="cat"?x:v}`}}),"Categórico"]})]}),u&&m.jsx("div",{className:Gn.checkboxContainer,children:s.map((S,R)=>{var j;return m.jsx(oi,{onClick:()=>d({valueClicked:R,allValues:s}),indicator:S,value:((j=C[e.code[r=="both"?1:0]])==null?void 0:j.has(R))||!C[e.code[r=="both"?1:0]]},`checkbox-${R}`)})}),p&&m.jsx("div",{className:Gn.absoluteSliderContainer,children:m.jsx(si,{onChange:d,min:i,max:l,unit:c,value:C[e.code[0]]})})]})})};vo.propTypes={indicator:a.shape({name:a.string,type:a.string,code:a.arrayOf(a.string),values:a.arrayOf(a.shape({codename:a.oneOfType(a.array,a.string),title:a.string}))})};const ii=({subcategory:e,fontColor:t})=>{const{activeSubcategory:n}=Ue(s=>s),{name:r,indicators:o}=e||{};return m.jsx(Rt,{title:r,isOpen:n==`id${r}`,onClick:()=>{Ue.setState(s=>({activeSubcategory:s.activeSubcategory===`id${r}`?"":`id${r}`}))},titleFontStyles:{fontSize:16,fontWeight:400},showBottomBar:!1,titleMarginChildren:20,height:49,color:t,children:o==null?void 0:o.map((s,i)=>m.jsx(vo,{indicator:s,fontColor:t},`indicatorSub-${i}`))})};ii.propTypes={subcategory:a.shape({name:a.string,indicators:a.arrayOf(a.shape({name:a.string,value:a.string}))})};const ai=({category:e})=>{const{name:t,subcategories:n,indicators:r}=e||{},{activeCategory:o,fontColor:s}=Ue(i=>i);return e&&m.jsx(Rt,{onClick:()=>{Ue.setState(i=>({activeCategory:o===`id${t}`?"":`id${t}`}))},title:t,isOpen:o===`id${t}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:s,children:n?n.map((i,l)=>m.jsx(ii,{subcategory:i,fontColor:s},`subcategory-${l}`)):r&&r.map((i,l)=>m.jsx(vo,{indicator:i,fontColor:s},`indicator-${l}`))})};ai.propTypes={category:a.shape({name:a.string.isRequired,subcategories:a.array,indicators:a.array})};const li=({indicators:e,isOpen:t=!0,title:n,fontColor:r="#605B56",inputsColor:o="#605B56"})=>{const{tematicalFiltersSelected:s}=Ue(l=>l),{t:i}=Te.useTranslation();return b.useEffect(()=>{console.log("filtersSelected changed: ",s)},[s]),b.useEffect(()=>{r&&Ue.setState(()=>({fontColor:r}))},[r]),b.useEffect(()=>{o&&Ue.setState(()=>({inputsColor:o}))},[o]),m.jsx(Rt,{isOpen:t,title:n?i(n):"Tematical filters",color:r,activeColor:o,children:e==null?void 0:e.map((l,c)=>m.jsx(ai,{category:l,fontColor:r},`category-${c}`))})};li.propTypes={isOpen:a.bool,title:a.string,indicators:a.arrayOf(a.object),fontColor:a.string,onChangeTematicalFilters:a.func,inputsColor:a.string};const Ml="_FiltersAmbitContainer_6o4gt_2",Ll="_FiltersAmbitHeader_6o4gt_7",Al="_FiltersAmbitTitle_6o4gt_15",Nl="_FiltersAmbitDescription_6o4gt_22",Il="_FiltersAmbitDescriptionTitle_6o4gt_33",Sn={FiltersAmbitContainer:Ml,FiltersAmbitHeader:Ll,FiltersAmbitTitle:Al,FiltersAmbitDescription:Nl,FiltersAmbitDescriptionTitle:Il},ci=({ambitName:e,ambitDescription:t,defaultFilters:n,indicators:r,activeColor:o,textColor:s,backgroundColor:i,onChangeAppliedFilters:l})=>{const{t:c}=Te.useTranslation(),{tematicalFiltersSelected:u}=Ue(p=>p);return b.useEffect(()=>{n&&n.length>0&&Ue.setState(p=>({tematicalFiltersSelected:n}))},[n]),b.useEffect(()=>{console.log("filtersSelected changed: ",u),l(u)},[u]),m.jsxs("div",{className:Sn.FiltersAmbitContainer,children:[m.jsxs("div",{className:Sn.FiltersAmbitHeader,children:[m.jsx("div",{className:Sn.FiltersAmbitTitle,children:e}),m.jsxs("div",{className:Sn.FiltersAmbitDescription,children:[m.jsx("div",{className:Sn.FiltersAmbitDescriptionTitle,children:c("description")}),t]})]}),m.jsx(ni,{title:c("applied_filters"),isOpen:!0,textColor:s||"#fff",backgroundColor:i||"#605B5680",activeColor:o}),m.jsx(ri,{}),m.jsx(li,{indicators:r,inputsColor:o,textColor:s,title:"tematical_filters"})]})};ci.propTypes={indicators:a.arrayOf(a.object).isRequired,ambitName:a.string,ambitDescription:a.string,defaultFilters:a.arrayOf(a.object),activeColor:a.string,backgroundColor:a.string,textColor:a.string,onChangeAppliedFilters:a.func};const Dl="_barChartContainer_d2f1z_2",Fl={barChartContainer:Dl},ui=({data:e,width:t=700,barHeight:n=25,gap:r=23,fontColor:o="#605B56",verticalPaddign:s=10,horizontalPaddign:i=20,leftPadding:l=200,numberOfDivisions:c=7,maxValue:u=null})=>{const{t:p}=Te.useTranslation(),{xScale:f,ticks:h,height:v}=b.useMemo(()=>{if(e&&e.length>0){const x=(e==null?void 0:e.length)*(n+r)+s*2,d=Io.max(e,R=>R.value)||1,C=Io.scaleLinear().domain([0,u||d]).range([0,t-l]),S=Array.from({length:c+1},(R,j)=>u?u/c*j:d/c*j);return{xScale:C,ticks:S,height:x,width:t,verticalPaddign:s,horizontalPaddign:i}}else return{xScale:null,ticks:[],height:0}},[e,t,c,n,r,i,s,u]);return m.jsx("div",{className:Fl.barChartContainer,children:m.jsx("svg",{width:t+i*2,height:v,children:m.jsxs("g",{transform:`translate(0,${r})`,children:[m.jsx("g",{transform:`translate(${l+i}, 0)`,children:h.map((x,d)=>{const C=f(x);return m.jsxs("g",{transform:`translate(${C}, 0)`,children:[m.jsx("line",{y1:0,y2:v-r*2,stroke:"#ccc"}),m.jsx("text",{y:v-r,textAnchor:"middle",fontSize:10,fill:o,children:parseInt(x)})]},d)})}),e&&e.length>0&&(e==null?void 0:e.map((x,d)=>{const C=f(x.value),S=d*(n+r);return m.jsxs("g",{transform:`translate(${l+i}, ${S})`,children:[m.jsx("text",{x:-24,y:n/2+5,textAnchor:"end",fill:o,children:p(x.title)}),m.jsx("rect",{width:C,height:n,fill:x.color,rx:0})]},d)}))]})})})};ui.propTypes={data:a.arrayOf(a.shape({title:a.string,value:a.number,color:a.string})),width:a.number,barHeight:a.number,gap:a.number,verticalPaddign:a.number,horizontalPaddign:a.number,numberOfDivisions:a.number,fontColor:a.string};const zl="_graphicContainer_c9zrg_2",Bl="_titleContainer_c9zrg_14",Qo={graphicContainer:zl,titleContainer:Bl},fi=({data:e,graphWidth:t=700,containerStyle:n,borderColor:r="#605B56",title:o="Graphic Title",fontColor:s="#605B56",maxValue:i=null,numberOfDivisions:l=7,leftPadding:c=200})=>{const{t:u}=Te.useTranslation();return m.jsxs("div",{className:Qo.graphicContainer,style:{...n||{},border:`1.5px solid ${r}`},children:[m.jsx("div",{className:Qo.titleContainer,children:m.jsx("h2",{children:u(o)})}),m.jsx(ui,{data:e,width:t,fontColor:s,maxValue:i,numberOfDivisions:l,leftPadding:c})]})};fi.propTypes={data:a.arrayOf(a.shape({color:a.string.isRequired,value:a.number.isRequired,title:a.string.isRequired})),borderColor:a.string,title:a.string,graphWidth:a.number,containerStyle:a.object,fontColor:a.string,maxValue:a.number,numberOfDivisions:a.number,leftPadding:a.number};const Ul="_indicatorsCategory_1cu33_2",Vl="_title_1cu33_5",ql="_list_1cu33_11",Wr={indicatorsCategory:Ul,title:Vl,list:ql},Wl="_indicatorContainer_lw8gx_2",Hl="_indicatorNameContainer_lw8gx_11",Kl="_dot_lw8gx_20",Yl="_indicatorName_lw8gx_11",Zl="_switchExternalContainer_lw8gx_31",Gl="_switchType_lw8gx_40",Jl="_switchTypeOptions_lw8gx_44",Xl="_optionContainer_lw8gx_55",Ql="_customRadious_lw8gx_65",ec="_optionText_lw8gx_72",Fe={indicatorContainer:Wl,indicatorNameContainer:Hl,dot:Kl,indicatorName:Yl,switchExternalContainer:Zl,switchType:Gl,switchTypeOptions:Jl,optionContainer:Xl,customRadious:Ql,optionText:ec},bo=({indicator:e,values:t=[],activeColor:n,defaultColor:r="#92898A",activeIndicator:o,activeIndicatorType:s,onClickIndicator:i,multiple:l=!1,onChangeType:c})=>{const{t:u}=Te.useTranslation(),{name:p,type:f}=e,[h,v]=b.useState(!1);b.useEffect(()=>{o&&v(l?o.some(C=>C.name==String(p)):o.name==p)},[o]);const x=()=>m.jsx("div",{className:Fe.switchExternalContainer,children:m.jsx("div",{className:Fe.switchType,children:m.jsxs("div",{className:Fe.switchTypeOptions,children:[m.jsxs("div",{className:Fe.optionContainer,onClick:()=>c("cat"),children:[m.jsx("span",{className:`${Fe.customRadious}`,style:{backgroundColor:s==="cat"?n:"transparent",borderColor:s==="cat"?n:r}}),m.jsx("h4",{className:Fe.optionText,style:{color:s==="cat"?n:r},children:u("indicators.cat")})]}),m.jsxs("div",{className:Fe.optionContainer,onClick:()=>c("abs"),children:[m.jsx("span",{className:`${Fe.customRadious}`,style:{backgroundColor:s==="abs"?n:"transparent",borderColor:s==="abs"?n:r}}),m.jsx("h4",{className:Fe.optionText,style:{color:s==="abs"?n:r},children:u("indicators.abs")})]})]})})}),d=()=>m.jsx("div",{className:Fe.switchExternalContainer,children:m.jsx("div",{className:Fe.switchType,children:m.jsx("div",{className:Fe.switchTypeOptions,children:t.map((C,S)=>m.jsxs("div",{className:Fe.optionContainer,children:[m.jsx("span",{className:Fe.customRadious}),m.jsx("h4",{children:u(C.unit)})]},S))})})});return m.jsxs("div",{className:Fe.indicatorContainer,children:[m.jsxs("div",{className:Fe.indicatorNameContainer,onClick:()=>i({indicator:e}),children:[m.jsx("div",{style:{border:h?`1px solid ${n}`:`1px solid ${r}`},className:Fe.dot}),m.jsx("h4",{className:Fe.indicatorName,style:{color:h?n:r},children:m.jsx(Te.Trans,{i18nKey:p,components:{sup:m.jsx("sup",{})}})})]}),(o==null?void 0:o.name)===p&&f==="both"&&m.jsx("div",{children:x()}),(o==null?void 0:o.name)===p&&f==="twoUnits"&&m.jsx("div",{children:d()})]})};bo.propTypes={indicator:a.shape({name:a.string,type:a.string}),values:a.oneOfType([a.bool,a.array]),activeColor:a.string,defaultColor:a.string,activeIndicator:a.oneOfType([a.object,a.array]),multiple:a.bool,onClickIndicator:a.func};const tc="_indicatorsSubCategory_1dzsi_2",nc="_list_1dzsi_8",es={indicatorsSubCategory:tc,list:nc},di=({subcName:e,indicators:t,defaultColor:n,activeColor:r,activeSubCategory:o,onClickSubCategory:s,id:i,activeIndicator:l,onClickIndicator:c,multiple:u,activeIndicatorType:p,onChangeType:f})=>{const{t:h}=Te.useTranslation(),[v,x]=b.useState(!1);return b.useEffect(()=>{x(o==i)},[o,i]),m.jsxs(mo.motion.div,{className:es.indicatorsSubCategory,initial:{height:"43px"},animate:{height:v?"auto":"43px"},transition:{duration:.4},children:[m.jsx("button",{onClick:()=>s(i),children:m.jsxs("h3",{style:{color:v?r:n},children:[m.jsx("span",{style:{color:v?r:n},children:v?"-":"+"}),m.jsx("span",{style:{marginLeft:12,color:v?r:n},children:h(e)})]})}),t&&m.jsx("div",{className:es.list,children:t==null?void 0:t.map((d,C)=>m.jsx(bo,{indicator:d,defaultColor:n,activeColor:r,activeIndicator:l,onClickIndicator:c,multiple:u,activeIndicatorType:p,onChangeType:f},"indicator"+C))})]})};di.propTypes={subcName:a.string,indicators:a.array,activeColor:a.string,defaultColor:a.string,activeSubCategory:a.string,id:a.string,activeIndicator:a.oneOfType([a.object,a.array]),multiple:a.bool,onClickSubCategory:a.func,onClickIndicator:a.func};const pi=({cat:e,id:t,activeColor:n,defaultColor:r,onClickCategory:o,activeCategory:s,activeSubCategory:i,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:p,activeIndicatorType:f,onChangeType:h})=>{var C;const{t:v}=Te.useTranslation(),[x,d]=b.useState(!1);return b.useEffect(()=>{d(s===t)},[s,t]),m.jsxs(mo.motion.div,{className:Wr.indicatorsCategory,initial:{height:"53px"},animate:{height:x?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:x?`1px solid ${n}`:"0px",marginBottom:x?"20px":"0px"},children:[m.jsxs("h2",{className:`${Wr.title}`,onClick:()=>o(t),children:[m.jsx("span",{style:{color:x?n:r},children:x?"-":"+"}),m.jsx("span",{style:{marginLeft:12,color:x?n:r},children:v(e.name)})]}),e.subcategories?e.subcategories.map(({name:S,subcategory:R,indicators:j},k)=>m.jsx(di,{id:R,activeSubCategory:i,subcName:S,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:p,activeColor:n,defaultColor:r,indicators:j,activeIndicatorType:f,onChangeType:h},`subcKey ${k}`)):m.jsx("div",{className:Wr.list,children:(C=e.indicators)==null?void 0:C.map((S,R)=>m.jsx(bo,{indicator:S,values:S.type=="twoUnits"&&S.values,activeColor:n,defaultColor:r,activeIndicator:c,onClickIndicator:u,multiple:p,activeIndicatorType:f,onChangeType:h},`indicator${R}`))})]})};pi.propTypes={cat:a.object,id:a.string,onChange:a.func,onClickCategory:a.func,activeCategory:a.string,activeSubCategory:a.string,onClickSubCategory:a.func,onClickIndicator:a.func,activeIndicator:a.oneOfType([a.object,a.array]),multiple:a.bool,activeColor:a.string,defaultColor:a.string};const rc="_indicatorsList_fklyu_2",oc="_title_fklyu_6",ts={indicatorsList:rc,title:oc},hi=({indicators:e,activeColor:t,defaultColor:n="#92898A",onChange:r,multiple:o=!1,defaultValue:s=null,changeIndType:i,activeIndicatorType:l})=>{const{t:c}=Te.useTranslation(),[u,p]=b.useState(),[f,h]=b.useState(),[v,x]=b.useState(),d=k=>{p(u==k?null:k)},C=k=>{h(f==k?null:k)},S=({indicator:k})=>{console.log("onClickIndicator: ",k),R(k)},R=k=>{if(!o)x((v==null?void 0:v.name)==k.name?null:k);else{let _=v&&v.length>0?[...v]:[];x(_!=null&&_.some(F=>F.name==k.name)?_.filter(F=>F.name!=String(k.name)):[..._,k]),k.type=="both"&&i("cat")}};b.useEffect(()=>{console.log("activeindicator changed to: ",v),r&&typeof r=="function"&&v&&r({activeIndicator:v})},[v]),b.useLayoutEffect(()=>{if(s&&!v)if(o&&s&&Array.isArray(s)){let k=v&&v.length>0?[...v]:[];x([...k,...s]),j(s[0].name)}else R(s),j(s.name)},[]);const j=k=>{const _=e.find(F=>{if(F.subcategories){let y=F.subcategories.find(w=>w.indicators.find(T=>T.name==k));if(y)return h(y.subcategory),y}else return F.indicators.some(y=>y.name==k)});_&&p(_.category)};return m.jsxs("div",{className:ts.indicatorsList,children:[m.jsx("h2",{className:ts.title,style:{color:n},children:c("indicators.indicators")}),e.map((k,_)=>m.jsx(pi,{id:k.category,cat:k,onClickCategory:d,activeCategory:u,onClickSubCategory:C,activeSubCategory:f,onClickIndicator:S,activeIndicator:v,activeColor:t,defaultColor:n,multiple:o,onChange:r,onChangeType:i,activeIndicatorType:l},`categoryKey${_}`))]})};hi.propTypes={indicators:a.arrayOf(a.object),activeColor:a.string,defaultColor:a.string,onChange:a.func,changeIndType:a.func,multiple:a.bool,activeIndicator:a.oneOfType([a.object,a.array]),defaultValue:a.oneOfType([a.object,a.array]),activeIndicatorType:a.string};const sc="_langSelector_1of0g_2",ic="_currentLang_1of0g_7",ac="_arrow_1of0g_19",lc="_prevImg_1of0g_22",cc="_langMenu_1of0g_26",Zt={langSelector:sc,currentLang:ic,arrow:ac,prevImg:lc,langMenu:cc},mi=({langs:e,arrow:t,imgPrev:n})=>{const[r,o]=b.useState(!1),{i18n:s}=Te.useTranslation(),i=e.find(c=>c.code==s.language),l=c=>{s.changeLanguage(c),o(!1)};return m.jsxs("div",{className:Zt.langSelector,children:[m.jsxs("div",{className:Zt.currentLang,onClick:()=>{o(!r)},children:[n&&m.jsx("img",{className:Zt.prevImg,src:n}),i.titleSelected||i.title,m.jsx("img",{src:t,className:Zt.arrow})]}),r&&m.jsx("div",{className:Zt.langMenu,children:e.map(c=>m.jsx("button",{className:i.code==c.code?Zt.active:"",onClick:()=>l(c.code),children:c.title},c.code))})]})};mi.propTypes={langs:a.arrayOf(a.shape({code:a.string,title:a.string,titleSelected:a.string})),color:a.string,bckColor:a.string,hoverColor:a.string,arrow:a.object,imgPrev:a.object};const uc="_legendContainer_atg3j_3",fc="_closeButton_atg3j_18",dc="_titleContainer_atg3j_46",pc="_infoContainer_atg3j_52",hc="_titleLegendList_atg3j_63",mc="_legendListContainer_atg3j_70",gc="_gridContainer_atg3j_70",yc="_elementLegendContainer_atg3j_76",vc="_colorDot_atg3j_82",bc="_absoluteValueContainer_atg3j_88",xc="_absoluteValueColor_atg3j_91",_c="_absoluteValueText_atg3j_96",Cc="_moreInfoContainer_atg3j_108",We={legendContainer:uc,closeButton:fc,titleContainer:dc,infoContainer:pc,titleLegendList:hc,legendListContainer:mc,gridContainer:gc,elementLegendContainer:yc,colorDot:vc,absoluteValueContainer:bc,absoluteValueColor:xc,absoluteValueText:_c,moreInfoContainer:Cc},gi=({containerStyles:e,title:t,infoList:n,legendList:r,legendListTitle:o,absoluteValue:s,onClickMoreInfo:i,buttonTitle:l,onClickClose:c})=>{const{t:u}=Te.useTranslation();return m.jsxs("div",{style:e?{...e}:{},className:`${We.legendContainer}`,children:[m.jsx("button",{className:We.closeButton,onClick:c}),t&&m.jsx("div",{className:We.titleContainer,children:m.jsx("h2",{children:t})}),n&&n.length>0&&m.jsx("div",{className:We.infoContainer,children:m.jsx("ul",{children:n.map(({title:p,value:f})=>m.jsxs("li",{children:[m.jsx("h3",{className:We.title,children:`${p}:`}),m.jsxs("span",{className:We.value,children:[" ",f]})]},t))})}),m.jsx("h3",{className:We.titleLegendList,children:o?m.jsx(Te.Trans,{i18nKey:o,components:{sup:m.jsx("sup",{})}}):u("mainUse")}),m.jsx("div",{className:We.legendListContainer,children:s?m.jsxs("div",{className:We.absoluteValueContainer,children:[m.jsx("div",{className:We.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${s.maxColor} 0%, ${s.minColor} 100%)`}}),m.jsxs("div",{className:We.absoluteValueText,children:[m.jsxs("span",{children:[s.maxValue," ",u(s.unit)]}),m.jsxs("span",{children:[s.minValue," ",u(s.unit)]})]})]}):r&&r.length>0&&m.jsx("div",{className:We.gridContainer,children:r.map(({title:p,color:f})=>m.jsxs("div",{className:We.elementLegendContainer,children:[m.jsx("div",{className:We.colorDot,style:{backgroundColor:f}}),m.jsxs("div",{className:We.titleLegendElement,children:[u(p)," "]})]},t))})}),i&&m.jsx("button",{className:We.moreInfoContainer,onClick:i,children:l||u("moreInformation")})]})};gi.propTypes={title:a.string,containerStyles:a.object,infoList:a.arrayOf(a.shape({title:a.string.isRequired,value:a.oneOfType([a.string,a.number])})),legendList:a.arrayOf(a.shape({title:a.string,color:a.string})),legendListTitle:a.string,absoluteValue:a.shape({maxColor:a.string,minColor:a.string,maxValue:a.number,minValue:a.number}),onClickMoreInfo:a.func,buttonTitle:a.string,onClickClose:a.func};const Sc="_logo_1ewa6_2",ns={logo:Sc},yi=({src:e,alt:t,href:n})=>{const{t:r}=Te.useTranslation(),o=m.jsx("img",{src:e,alt:r(t)});return n?m.jsx("div",{className:ns.logo,children:m.jsx("a",{href:n,children:o})}):m.jsx("div",{className:ns.logo,children:o})};yi.propTypes={src:a.string.isRequired,alt:a.string.isRequired,href:a.string,className:a.string};const Tc=X.createContext(null);function wc(e,t){const n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,s=Array.isArray(t)?t[1]:t?t.y:0;return n===o&&r===s}function Qe(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Qe(e[n],t[n]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!t.hasOwnProperty(o)||!Qe(e[o],t[o]))return!1;return!0}return!1}function Ec(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function rs(e,t){if(!e.getProjection)return;const n=e.getProjection(),r=t.getProjection();Qe(n,r)||t.setProjection(n)}function os(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function ss(e,t){const n=t.viewState||t;let r=!1;if("zoom"in n){const o=e.zoom;e.zoom=n.zoom,r=r||o!==e.zoom}if("bearing"in n){const o=e.bearing;e.bearing=n.bearing,r=r||o!==e.bearing}if("pitch"in n){const o=e.pitch;e.pitch=n.pitch,r=r||o!==e.pitch}if(n.padding&&!e.isPaddingEqual(n.padding)&&(r=!0,e.padding=n.padding),"longitude"in n&&"latitude"in n){const o=e.center;e.center=new o.constructor(n.longitude,n.latitude),r=r||o!==e.center}return r}const kc=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function is(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const r of e.layers)t[r.id]=r;const n=e.layers.map(r=>{let o=null;"interactive"in r&&(o=Object.assign({},r),delete o.interactive);const s=t[r.ref];if(s){o=o||Object.assign({},r),delete o.ref;for(const i of kc)i in s&&(o[i]=s[i])}return o||r});return{...e,layers:n}}const as={version:8,sources:{},layers:[]},ls={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},Hr={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},cs={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},Rc=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],Oc=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class ln{constructor(t,n,r){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=o=>{const s=this.props[cs[o.type]];s?s(o):o.type==="error"&&console.error(o.error)},this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const s=this.props[ls[o.type]];s&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),s(o),delete o.features)},this._onCameraEvent=o=>{if(!this._internalUpdate){const s=this.props[Hr[o.type]];s&&s(o)}o.type in this._deferredEvents&&(this._deferredEvents[o.type]=!1)},this._MapClass=t,this.props=n,this._initialize(r)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const n=this.props;this.props=t;const r=this._updateSettings(t,n);r&&this._createShadowTransform(this._map);const o=this._updateSize(t),s=this._updateViewState(t,!0);this._updateStyle(t,n),this._updateStyleComponents(t,n),this._updateHandlers(t,n),(r||o||s&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=ln.savedMaps.pop();if(!r)return null;const o=r.map,s=o.getContainer();for(n.className=s.className;s.childNodes.length>0;)n.appendChild(s.childNodes[0]);o._container=n,r.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:i}=t;return i&&(i.bounds?o.fitBounds(i.bounds,{...i.fitBoundsOptions,duration:0}):r._updateViewState(i,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=as}=n,o={...n,...n.initialViewState,accessToken:n.mapboxAccessToken||jc()||null,container:t,style:is(r)},s=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),n.gl){const p=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=p,n.gl)}const i=new this._MapClass(o);s.padding&&i.setPadding(s.padding),n.cursor&&(i.getCanvas().style.cursor=n.cursor),this._createShadowTransform(i);const l=i._render;i._render=p=>{this._inRender=!0,l.call(i,p),this._inRender=!1};const c=i._renderTaskQueue.run;i._renderTaskQueue.run=p=>{c.call(i._renderTaskQueue,p),this._onBeforeRepaint()},i.on("render",()=>this._onAfterRepaint());const u=i.fire;i.fire=this._fireEvent.bind(this,u),i.on("resize",()=>{this._renderTransform.resize(i.transform.width,i.transform.height)}),i.on("styledata",()=>{this._updateStyleComponents(this.props,{}),rs(i.transform,this._renderTransform)}),i.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const p in ls)i.on(p,this._onPointerEvent);for(const p in Hr)i.on(p,this._onCameraEvent);for(const p in cs)i.on(p,this._onEvent);this._map=i}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),ln.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const n=Ec(t.transform);t.painter.transform=n,this._renderTransform=n}_updateSize(t){const{viewState:n}=t;if(n){const r=this._map;if(n.width!==r.transform.width||n.height!==r.transform.height)return r.resize(),!0}return!1}_updateViewState(t,n){if(this._internalUpdate)return!1;const r=this._map,o=this._renderTransform,{zoom:s,pitch:i,bearing:l}=o,c=r.isMoving();c&&(o.cameraElevationReference="sea");const u=ss(o,{...os(r.transform),...t});if(c&&(o.cameraElevationReference="ground"),u&&n){const p=this._deferredEvents;p.move=!0,p.zoom||(p.zoom=s!==o.zoom),p.rotate||(p.rotate=l!==o.bearing),p.pitch||(p.pitch=i!==o.pitch)}return c||ss(r.transform,t),u}_updateSettings(t,n){const r=this._map;let o=!1;for(const s of Rc)if(s in t&&!Qe(t[s],n[s])){o=!0;const i=r[`set${s[0].toUpperCase()}${s.slice(1)}`];i==null||i.call(r,t[s])}return o}_updateStyle(t,n){if(t.cursor!==n.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==n.mapStyle){const{mapStyle:r=as,styleDiffing:o=!0}=t,s={diff:o};return"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(is(r),s),!0}return!1}_updateStyleComponents(t,n){const r=this._map;let o=!1;return r.isStyleLoaded()&&("light"in t&&r.setLight&&!Qe(t.light,n.light)&&(o=!0,r.setLight(t.light)),"fog"in t&&r.setFog&&!Qe(t.fog,n.fog)&&(o=!0,r.setFog(t.fog)),"terrain"in t&&r.setTerrain&&!Qe(t.terrain,n.terrain)&&(!t.terrain||r.getSource(t.terrain.source))&&(o=!0,r.setTerrain(t.terrain))),o}_updateHandlers(t,n){const r=this._map;let o=!1;for(const s of Oc){const i=t[s]??!0,l=n[s]??!0;Qe(i,l)||(o=!0,i?r[s].enable(i):r[s].disable())}return o}_queryRenderedFeatures(t){const n=this._map,r=n.transform,{interactiveLayerIds:o=[]}=this.props;try{return n.transform=this._renderTransform,n.queryRenderedFeatures(t,{layers:o.filter(n.getLayer.bind(n))})}catch{return[]}finally{n.transform=r}}_updateHover(t){var o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const s=t.type,i=((o=this._hoveredFeatures)==null?void 0:o.length)>0,l=this._queryRenderedFeatures(t.point),c=l.length>0;!c&&i&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,c&&!i&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=s}else this._hoveredFeatures=null}_fireEvent(t,n,r){const o=this._map,s=o.transform,i=typeof n=="string"?n:n.type;return i==="move"&&this._updateViewState(this.props,!1),i in Hr&&(typeof n=="object"&&(n.viewState=os(s)),this._map.isMoving())?(o.transform=this._renderTransform,t.call(o,n,r),o.transform=s,o):(t.call(o,n,r),o)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const r in this._deferredEvents)this._deferredEvents[r]&&t.fire(r);this._internalUpdate=!1;const n=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{rs(this._renderTransform,n),t.transform=n}}}ln.savedMaps=[];function jc(){let e=null;if(typeof location<"u"){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||process.env.MapboxAccessToken}catch{}try{e=e||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}const $c=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Pc(e){if(!e)return null;const t=e.map,n={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:r=>{const o=t.transform;t.transform=e.transform;const s=t.project(r);return t.transform=o,s},unproject:r=>{const o=t.transform;t.transform=e.transform;const s=t.unproject(r);return t.transform=o,s},queryTerrainElevation:(r,o)=>{const s=t.transform;t.transform=e.transform;const i=t.queryTerrainElevation(r,o);return t.transform=s,i},queryRenderedFeatures:(r,o)=>{const s=t.transform;t.transform=e.transform;const i=t.queryRenderedFeatures(r,o);return t.transform=s,i}};for(const r of Mc(t))!(r in n)&&!$c.includes(r)&&(n[r]=t[r].bind(t));return n}function Mc(e){const t=new Set;let n=e;for(;n;){for(const r of Object.getOwnPropertyNames(n))r[0]!=="_"&&typeof e[r]=="function"&&r!=="fire"&&r!=="setEventedParent"&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}const Lc=typeof document<"u"?b.useLayoutEffect:b.useEffect,Ac=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function Nc(e,t){for(const r of Ac)r in t&&(e[r]=t[r]);const{RTLTextPlugin:n="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(n,r=>{r&&console.error(r)},!0)}const fn=X.createContext(null);function Ic(e,t){const n=b.useContext(Tc),[r,o]=b.useState(null),s=b.useRef(),{current:i}=b.useRef({mapLib:null,map:null});b.useEffect(()=>{const u=e.mapLib;let p=!0,f;return Promise.resolve(u||import("mapbox-gl")).then(h=>{if(!p)return;if(!h)throw new Error("Invalid mapLib");const v="Map"in h?h:h.default;if(!v.Map)throw new Error("Invalid mapLib");Nc(v,e),e.reuseMaps&&(f=ln.reuse(e,s.current)),f||(f=new ln(v.Map,e,s.current)),i.map=Pc(f),i.mapLib=v,o(f),n==null||n.onMapMount(i.map,e.id)}).catch(h=>{const{onError:v}=e;v?v({type:"error",target:null,error:h}):console.error(h)}),()=>{p=!1,f&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?f.recycle():f.destroy())}},[]),Lc(()=>{r&&r.setProps(e)}),b.useImperativeHandle(t,()=>i.map,[r]);const l=b.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return X.createElement("div",{id:e.id,ref:s,style:l},r&&X.createElement(fn.Provider,{value:i},X.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const Dc=X.forwardRef(Ic),Fc=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function It(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!Fc.test(r)?n[r]=`${o}px`:n[r]=o}}function vi(e,t){if(e===t)return null;const n=us(e),r=us(t),o=[];for(const s of r)n.has(s)||o.push(s);for(const s of n)r.has(s)||o.push(s);return o.length===0?null:o}function us(e){return new Set(e?e.trim().split(/\s+/):[])}b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(fn),o=b.useRef({props:e}),s=b.useMemo(()=>{let S=!1;X.Children.forEach(e.children,k=>{k&&(S=!0)});const R={...e,element:S?document.createElement("div"):null},j=new r.Marker(R);return j.setLngLat([e.longitude,e.latitude]),j.getElement().addEventListener("click",k=>{var _,F;(F=(_=o.current.props).onClick)==null||F.call(_,{type:"click",target:j,originalEvent:k})}),j.on("dragstart",k=>{var F,y;const _=k;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDragStart)==null||y.call(F,_)}),j.on("drag",k=>{var F,y;const _=k;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDrag)==null||y.call(F,_)}),j.on("dragend",k=>{var F,y;const _=k;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDragEnd)==null||y.call(F,_)}),j},[]);b.useEffect(()=>(s.addTo(n.getMap()),()=>{s.remove()}),[]);const{longitude:i,latitude:l,offset:c,style:u,draggable:p=!1,popup:f=null,rotation:h=0,rotationAlignment:v="auto",pitchAlignment:x="auto"}=e;b.useEffect(()=>{It(s.getElement(),u)},[u]),b.useImperativeHandle(t,()=>s,[]);const d=o.current.props;(s.getLngLat().lng!==i||s.getLngLat().lat!==l)&&s.setLngLat([i,l]),c&&!wc(s.getOffset(),c)&&s.setOffset(c),s.isDraggable()!==p&&s.setDraggable(p),s.getRotation()!==h&&s.setRotation(h),s.getRotationAlignment()!==v&&s.setRotationAlignment(v),s.getPitchAlignment()!==x&&s.setPitchAlignment(x),s.getPopup()!==f&&s.setPopup(f);const C=vi(d.className,e.className);if(C)for(const S of C)s.toggleClassName(S);return o.current.props=e,mr.createPortal(e.children,s.getElement())}));const zc=b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(fn),o=b.useMemo(()=>document.createElement("div"),[]),s=b.useRef({props:e}),i=b.useMemo(()=>{const l={...e},c=new r.Popup(l);return c.setLngLat([e.longitude,e.latitude]),c.once("open",u=>{var p,f;(f=(p=s.current.props).onOpen)==null||f.call(p,u)}),c},[]);if(b.useEffect(()=>{const l=c=>{var u,p;(p=(u=s.current.props).onClose)==null||p.call(u,c)};return i.on("close",l),i.setDOMContent(o).addTo(n.getMap()),()=>{i.off("close",l),i.isOpen()&&i.remove()}},[]),b.useEffect(()=>{It(i.getElement(),e.style)},[e.style]),b.useImperativeHandle(t,()=>i,[]),i.isOpen()){const l=s.current.props;(i.getLngLat().lng!==e.longitude||i.getLngLat().lat!==e.latitude)&&i.setLngLat([e.longitude,e.latitude]),e.offset&&!Qe(l.offset,e.offset)&&(i.options.anchor=e.anchor,i.setOffset(e.offset)),(l.anchor!==e.anchor||l.maxWidth!==e.maxWidth)&&i.setMaxWidth(e.maxWidth);const c=vi(l.className,e.className);if(c)for(const u of c)i.toggleClassName(u);s.current.props=e}return mr.createPortal(e.children,o)}));function Nn(e,t,n,r){const o=b.useContext(fn),s=b.useMemo(()=>e(o),[]);return b.useEffect(()=>{const i=t,l=typeof t=="function"?t:null,{map:c}=o;return c.hasControl(s)||c.addControl(s,i==null?void 0:i.position),()=>{l&&l(o),c.hasControl(s)&&c.removeControl(s)}},[]),s}function Bc(e){const t=Nn(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return b.useEffect(()=>{It(t._container,e.style)},[e.style]),null}b.memo(Bc);function Uc(e){const t=Nn(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return b.useEffect(()=>{It(t._controlContainer,e.style)},[e.style]),null}b.memo(Uc);function Vc(e,t){const n=b.useRef({props:e}),r=Nn(({mapLib:o})=>{const s=new o.GeolocateControl(e),i=s._setupUI.bind(s);return s._setupUI=l=>{s._container.hasChildNodes()||i(l)},s.on("geolocate",l=>{var c,u;(u=(c=n.current.props).onGeolocate)==null||u.call(c,l)}),s.on("error",l=>{var c,u;(u=(c=n.current.props).onError)==null||u.call(c,l)}),s.on("outofmaxbounds",l=>{var c,u;(u=(c=n.current.props).onOutOfMaxBounds)==null||u.call(c,l)}),s.on("trackuserlocationstart",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationStart)==null||u.call(c,l)}),s.on("trackuserlocationend",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationEnd)==null||u.call(c,l)}),s},{position:e.position});return n.current.props=e,b.useImperativeHandle(t,()=>r,[]),b.useEffect(()=>{It(r._container,e.style)},[e.style]),null}b.memo(b.forwardRef(Vc));function qc(e){const t=Nn(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return b.useEffect(()=>{It(t._container,e.style)},[e.style]),null}const Wc=b.memo(qc);function Hc(e){const t=Nn(({mapLib:s})=>new s.ScaleControl(e),{position:e.position}),n=b.useRef(e),r=n.current;n.current=e;const{style:o}=e;return e.maxWidth!==void 0&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==r.unit&&t.setUnit(e.unit),b.useEffect(()=>{It(t._container,o)},[o]),null}b.memo(Hc);function ur(e,t){if(!e)throw new Error(t)}let Kc=0;function Yc(e,t,n){if(e.style&&e.style._loaded){const r={...n};return delete r.id,delete r.children,e.addSource(t,r),e.getSource(t)}return null}function Zc(e,t,n){ur(t.id===n.id,"source id changed"),ur(t.type===n.type,"source type changed");let r="",o=0;for(const i in t)i!=="children"&&i!=="id"&&!Qe(n[i],t[i])&&(r=i,o++);if(!o)return;const s=t.type;s==="geojson"?e.setData(t.data):s==="image"?e.updateImage({url:t.url,coordinates:t.coordinates}):"setCoordinates"in e&&o===1&&r==="coordinates"?e.setCoordinates(t.coordinates):"setUrl"in e&&r==="url"?e.setUrl(t.url):"setTiles"in e&&r==="tiles"?e.setTiles(t.tiles):console.warn(`Unable to update <Source> prop: ${r}`)}function Gc(e){const t=b.useContext(fn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-source-${Kc++}`,[]);b.useEffect(()=>{if(t){const i=()=>setTimeout(()=>r(l=>l+1),0);return t.on("styledata",i),i(),()=>{var l;if(t.off("styledata",i),t.style&&t.style._loaded&&t.getSource(o)){const c=(l=t.getStyle())==null?void 0:l.layers;if(c)for(const u of c)u.source===o&&t.removeLayer(u.id);t.removeSource(o)}}}},[t]);let s=t&&t.style&&t.getSource(o);return s?Zc(s,e,n.current):s=Yc(t,o,e),n.current=e,s&&X.Children.map(e.children,i=>i&&b.cloneElement(i,{source:o}))||null}function Jc(e,t,n,r){if(ur(n.id===r.id,"layer id changed"),ur(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:s={},filter:i,minzoom:l,maxzoom:c,beforeId:u}=n;if(u!==r.beforeId&&e.moveLayer(t,u),o!==r.layout){const p=r.layout||{};for(const f in o)Qe(o[f],p[f])||e.setLayoutProperty(t,f,o[f]);for(const f in p)o.hasOwnProperty(f)||e.setLayoutProperty(t,f,void 0)}if(s!==r.paint){const p=r.paint||{};for(const f in s)Qe(s[f],p[f])||e.setPaintProperty(t,f,s[f]);for(const f in p)s.hasOwnProperty(f)||e.setPaintProperty(t,f,void 0)}Qe(i,r.filter)||e.setFilter(t,i),(l!==r.minzoom||c!==r.maxzoom)&&e.setLayerZoomRange(t,l,c)}function Xc(e,t,n){if(e.style&&e.style._loaded&&(!("source"in n)||e.getSource(n.source))){const r={...n,id:t};delete r.beforeId,e.addLayer(r,n.beforeId)}}let Qc=0;function eu(e){const t=b.useContext(fn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-layer-${Qc++}`,[]);if(b.useEffect(()=>{if(t){const i=()=>r(l=>l+1);return t.on("styledata",i),i(),()=>{t.off("styledata",i),t.style&&t.style._loaded&&t.getLayer(o)&&t.removeLayer(o)}}},[t]),t&&t.style&&t.getLayer(o))try{Jc(t,o,e,n.current)}catch(i){console.warn(i)}else Xc(t,o,e);return n.current=e,null}const tu="_mapContainer_84pkf_2",nu={mapContainer:tu};Ea.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const bi=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:s="",onClick:i="",interactiveLayers:l=[],popUp:c=!1,sources:u=[],layers:p=[]})=>{const f=b.useRef(),[h,v]=b.useState(null),x=kn.useSelector(d=>d.mapState.showTexts);return b.useEffect(()=>{if(f.current){const d=f.current.getMap();d.getStyle().layers.map(S=>{S.type=="symbol"&&S.id!="professionals"&&(x?d.setLayoutProperty(S.id,"visibility","visible"):d.setLayoutProperty(S.id,"visibility","none"))})}},[x]),m.jsx("div",{className:`${nu.mapContainer}`,style:s,children:m.jsxs(Dc,{initialViewState:e,ref:f,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:i,interactiveLayerIds:l,children:[u.length&&u.map((d,C)=>m.jsx(Gc,{...d,children:p.length&&p.map((S,R)=>{if(S.sourceId==d.id)return m.jsx(eu,{...S.layer,beforeId:o},R)})},C)),m.jsx(Wc,{position:"bottom-right",visualizePitch:!0}),c&&h&&m.jsx(zc,{longitude:c.longitude,latitude:c.latitude,anchor:c.anchor,onClose:()=>v(null),children:c.content})]})})};bi.propTypes={initialView:a.shape({latitude:a.number.isRequired,longitude:a.number.isRequired,zoom:a.number.isRequired}),mapStyle:a.object,firstSymbolLayer:a.string,cssProps:a.object,style:a.object,maxZoom:a.number,minZoom:a.number,onClick:a.func,interactiveLayers:a.array,popUp:a.shape({latitude:a.number,longitude:a.number,anchor:a.string,content:a.element}),textsUrl:a.string,sources:a.arrayOf(a.shape({id:a.string,type:a.string,url:a.string,data:a.object})),layers:a.arrayOf(a.shape({sourceId:a.string,layer:a.shape({id:a.string,type:a.string,sourceLayer:a.string,minZoom:a.number,maxZoom:a.number,paint:a.object})}))};var et=Uint8Array,rn=Uint16Array,ru=Int32Array,xi=new et([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),_i=new et([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ou=new et([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ci=function(e,t){for(var n=new rn(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var o=new ru(n[30]),r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)o[s]=s-n[r]<<5|r;return{b:n,r:o}},Si=Ci(xi,2),Ti=Si.b,su=Si.r;Ti[28]=258,su[258]=28;var iu=Ci(_i,0),au=iu.b,io=new rn(32768);for(var Ee=0;Ee<32768;++Ee){var St=(Ee&43690)>>1|(Ee&21845)<<1;St=(St&52428)>>2|(St&13107)<<2,St=(St&61680)>>4|(St&3855)<<4,io[Ee]=((St&65280)>>8|(St&255)<<8)>>1}var Rn=function(e,t,n){for(var r=e.length,o=0,s=new rn(t);o<r;++o)e[o]&&++s[e[o]-1];var i=new rn(t);for(o=1;o<t;++o)i[o]=i[o-1]+s[o-1]<<1;var l;if(n){l=new rn(1<<t);var c=15-t;for(o=0;o<r;++o)if(e[o])for(var u=o<<4|e[o],p=t-e[o],f=i[e[o]-1]++<<p,h=f|(1<<p)-1;f<=h;++f)l[io[f]>>c]=u}else for(l=new rn(r),o=0;o<r;++o)e[o]&&(l[o]=io[i[e[o]-1]++]>>15-e[o]);return l},In=new et(288);for(var Ee=0;Ee<144;++Ee)In[Ee]=8;for(var Ee=144;Ee<256;++Ee)In[Ee]=9;for(var Ee=256;Ee<280;++Ee)In[Ee]=7;for(var Ee=280;Ee<288;++Ee)In[Ee]=8;var wi=new et(32);for(var Ee=0;Ee<32;++Ee)wi[Ee]=5;var lu=Rn(In,9,1),cu=Rn(wi,5,1),Kr=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},ct=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},Yr=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},uu=function(e){return(e+7)/8|0},fu=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new et(e.subarray(t,n))},du=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Xe=function(e,t,n){var r=new Error(t||du[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Xe),!n)throw r;return r},xo=function(e,t,n,r){var o=e.length,s=0;if(!o||t.f&&!t.l)return n||new et(0);var i=!n,l=i||t.i!=2,c=t.i;i&&(n=new et(o*3));var u=function(be){var P=n.length;if(be>P){var xe=new et(Math.max(P*2,be));xe.set(n),n=xe}},p=t.f||0,f=t.p||0,h=t.b||0,v=t.l,x=t.d,d=t.m,C=t.n,S=o*8;do{if(!v){p=ct(e,f,1);var R=ct(e,f+1,3);if(f+=3,R)if(R==1)v=lu,x=cu,d=9,C=5;else if(R==2){var F=ct(e,f,31)+257,y=ct(e,f+10,15)+4,w=F+ct(e,f+5,31)+1;f+=14;for(var T=new et(w),$=new et(19),N=0;N<y;++N)$[ou[N]]=ct(e,f+N*3,7);f+=y*3;for(var H=Kr($),U=(1<<H)-1,ce=Rn($,H,1),N=0;N<w;){var K=ce[ct(e,f,U)];f+=K&15;var j=K>>4;if(j<16)T[N++]=j;else{var se=0,re=0;for(j==16?(re=3+ct(e,f,3),f+=2,se=T[N-1]):j==17?(re=3+ct(e,f,7),f+=3):j==18&&(re=11+ct(e,f,127),f+=7);re--;)T[N++]=se}}var ke=T.subarray(0,F),$e=T.subarray(F);d=Kr(ke),C=Kr($e),v=Rn(ke,d,1),x=Rn($e,C,1)}else Xe(1);else{var j=uu(f)+4,k=e[j-4]|e[j-3]<<8,_=j+k;if(_>o){c&&Xe(0);break}l&&u(h+k),n.set(e.subarray(j,_),h),t.b=h+=k,t.p=f=_*8,t.f=p;continue}if(f>S){c&&Xe(0);break}}l&&u(h+131072);for(var O=(1<<d)-1,A=(1<<C)-1,Q=f;;Q=f){var se=v[Yr(e,f)&O],q=se>>4;if(f+=se&15,f>S){c&&Xe(0);break}if(se||Xe(2),q<256)n[h++]=q;else if(q==256){Q=f,v=null;break}else{var z=q-254;if(q>264){var N=q-257,ee=xi[N];z=ct(e,f,(1<<ee)-1)+Ti[N],f+=ee}var Z=x[Yr(e,f)&A],Y=Z>>4;Z||Xe(3),f+=Z&15;var $e=au[Y];if(Y>3){var ee=_i[Y];$e+=Yr(e,f)&(1<<ee)-1,f+=ee}if(f>S){c&&Xe(0);break}l&&u(h+131072);var V=h+z;if(h<$e){var G=s-$e,ne=Math.min($e,V);for(G+h<0&&Xe(3);h<ne;++h)n[h]=r[G+h]}for(;h<V;++h)n[h]=n[h-$e]}}t.l=v,t.p=Q,t.b=h,t.f=p,v&&(p=1,t.m=d,t.d=x,t.n=C)}while(!p);return h!=n.length&&i?fu(n,0,h):n.subarray(0,h)},pu=new et(0),hu=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Xe(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(t&2)},mu=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},gu=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Xe(6,"invalid zlib data"),(e[1]>>5&1)==1&&Xe(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function yu(e,t){return xo(e,{i:2},t,t)}function vu(e,t){var n=hu(e);return n+8>e.length&&Xe(6,"invalid gzip data"),xo(e.subarray(n,-8),{i:2},new et(mu(e)),t)}function bu(e,t){return xo(e.subarray(gu(e),-4),{i:2},t,t)}function xu(e,t){return e[0]==31&&e[1]==139&&e[2]==8?vu(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?yu(e,t):bu(e,t)}var _u=typeof TextDecoder<"u"&&new TextDecoder,Cu=0;try{_u.decode(pu,{stream:!0}),Cu=1}catch{}var Su=Object.defineProperty,On=Math.pow,Se=(e,t)=>Su(e,"name",{value:t,configurable:!0}),ze=(e,t,n)=>new Promise((r,o)=>{var s=c=>{try{l(n.next(c))}catch(u){o(u)}},i=c=>{try{l(n.throw(c))}catch(u){o(u)}},l=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,i);l((n=n.apply(e,t)).next())});Se((e,t)=>{let n=!1,r="",o=L.GridLayer.extend({createTile:Se((s,i)=>{let l=document.createElement("img"),c=new AbortController,u=c.signal;return l.cancel=()=>{c.abort()},n||(e.getHeader().then(p=>{p.tileType===1?console.error("Error: archive contains MVT vector tiles, but leafletRasterLayer is for displaying raster tiles. See https://github.com/protomaps/PMTiles/tree/main/js for details."):p.tileType===2?r="image/png":p.tileType===3?r="image/jpeg":p.tileType===4?r="image/webp":p.tileType===5&&(r="image/avif")}),n=!0),e.getZxy(s.z,s.x,s.y,u).then(p=>{if(p){let f=new Blob([p.data],{type:r}),h=window.URL.createObjectURL(f);l.src=h,l.cancel=void 0,i(void 0,l)}}).catch(p=>{if(p.name!=="AbortError")throw p}),l},"createTile"),_removeTile:Se(function(s){let i=this._tiles[s];i&&(i.el.cancel&&i.el.cancel(),i.el.width=0,i.el.height=0,i.el.deleted=!0,L.DomUtil.remove(i.el),delete this._tiles[s],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(s)}))},"_removeTile")});return new o(t)},"leafletRasterLayer");var Tu=Se(e=>(t,n)=>{if(n instanceof AbortController)return e(t,n);let r=new AbortController;return e(t,r).then(o=>n(void 0,o.data,o.cacheControl||"",o.expires||""),o=>n(o)).catch(o=>n(o)),{cancel:Se(()=>r.abort(),"cancel")}},"v3compat"),Ei=class{constructor(t){this.tilev4=Se((n,r)=>ze(this,null,function*(){if(n.type==="json"){let v=n.url.substr(10),x=this.tiles.get(v);if(x||(x=new fs(v),this.tiles.set(v,x)),this.metadata)return{data:yield x.getTileJson(n.url)};let d=yield x.getHeader();return(d.minLon>=d.maxLon||d.minLat>=d.maxLat)&&console.error(`Bounds of PMTiles archive ${d.minLon},${d.minLat},${d.maxLon},${d.maxLat} are not valid.`),{data:{tiles:[`${n.url}/{z}/{x}/{y}`],minzoom:d.minZoom,maxzoom:d.maxZoom,bounds:[d.minLon,d.minLat,d.maxLon,d.maxLat]}}}let o=new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/),s=n.url.match(o);if(!s)throw new Error("Invalid PMTiles protocol URL");let i=s[1],l=this.tiles.get(i);l||(l=new fs(i),this.tiles.set(i,l));let c=s[2],u=s[3],p=s[4],f=yield l.getHeader(),h=yield l==null?void 0:l.getZxy(+c,+u,+p,r.signal);if(h)return{data:new Uint8Array(h.data),cacheControl:h.cacheControl,expires:h.expires};if(f.tileType===1){if(this.errorOnMissingTile)throw new Error("Tile not found.");return{data:new Uint8Array}}return{data:null}}),"tilev4"),this.tile=Tu(this.tilev4),this.tiles=new Map,this.metadata=(t==null?void 0:t.metadata)||!1,this.errorOnMissingTile=(t==null?void 0:t.errorOnMissingTile)||!1}add(t){this.tiles.set(t.source.getKey(),t)}get(t){return this.tiles.get(t)}};Se(Ei,"Protocol");var wu=Ei;function ki(e,t){return(t>>>0)*4294967296+(e>>>0)}Se(ki,"toNum");function Ri(e,t){let n=t.buf,r=n[t.pos++],o=(r&112)>>4;if(r<128||(r=n[t.pos++],o|=(r&127)<<3,r<128)||(r=n[t.pos++],o|=(r&127)<<10,r<128)||(r=n[t.pos++],o|=(r&127)<<17,r<128)||(r=n[t.pos++],o|=(r&127)<<24,r<128)||(r=n[t.pos++],o|=(r&1)<<31,r<128))return ki(e,o);throw new Error("Expected varint not more than 10 bytes")}Se(Ri,"readVarintRemainder");function tn(e){let t=e.buf,n=t[e.pos++],r=n&127;return n<128||(n=t[e.pos++],r|=(n&127)<<7,n<128)||(n=t[e.pos++],r|=(n&127)<<14,n<128)||(n=t[e.pos++],r|=(n&127)<<21,n<128)?r:(n=t[e.pos],r|=(n&15)<<28,Ri(r,e))}Se(tn,"readVarint");function _o(e,t,n,r){if(r===0){n===1&&(t[0]=e-1-t[0],t[1]=e-1-t[1]);let o=t[0];t[0]=t[1],t[1]=o}}Se(_o,"rotate");function Oi(e,t){let n=On(2,e),r=t,o=t,s=t,i=[0,0],l=1;for(;l<n;)r=1&s/2,o=1&(s^r),_o(l,i,r,o),i[0]+=l*r,i[1]+=l*o,s=s/4,l*=2;return[e,i[0],i[1]]}Se(Oi,"idOnLevel");var Eu=[0,1,5,21,85,341,1365,5461,21845,87381,349525,1398101,5592405,22369621,89478485,357913941,1431655765,5726623061,22906492245,91625968981,366503875925,1466015503701,5864062014805,23456248059221,93824992236885,375299968947541,0x5555555555555];function ji(e,t,n){if(e>26)throw new Error("Tile zoom level exceeds max safe number limit (26)");if(t>On(2,e)-1||n>On(2,e)-1)throw new Error("tile x/y outside zoom level bounds");let r=Eu[e],o=On(2,e),s=0,i=0,l=0,c=[t,n],u=o/2;for(;u>0;)s=(c[0]&u)>0?1:0,i=(c[1]&u)>0?1:0,l+=u*u*(3*s^i),_o(u,c,s,i),u=u/2;return r+l}Se(ji,"zxyToTileId");function ku(e){let t=0;for(let n=0;n<27;n++){let r=(1<<n)*(1<<n);if(t+r>e)return Oi(n,e-t);t+=r}throw new Error("Tile zoom level exceeds max safe number limit (26)")}Se(ku,"tileIdToZxy");var Ru=(e=>(e[e.Unknown=0]="Unknown",e[e.None=1]="None",e[e.Gzip=2]="Gzip",e[e.Brotli=3]="Brotli",e[e.Zstd=4]="Zstd",e))(Ru||{});function gr(e,t){return ze(this,null,function*(){if(t===1||t===0)return e;if(t===2){if(typeof globalThis.DecompressionStream>"u")return xu(new Uint8Array(e));let n=new Response(e).body;if(!n)throw new Error("Failed to read response stream");let r=n.pipeThrough(new globalThis.DecompressionStream("gzip"));return new Response(r).arrayBuffer()}throw new Error("Compression method not supported")})}Se(gr,"defaultDecompress");var Ou=(e=>(e[e.Unknown=0]="Unknown",e[e.Mvt=1]="Mvt",e[e.Png=2]="Png",e[e.Jpeg=3]="Jpeg",e[e.Webp=4]="Webp",e[e.Avif=5]="Avif",e))(Ou||{});function $i(e){return e===1?".mvt":e===2?".png":e===3?".jpg":e===4?".webp":e===5?".avif":""}Se($i,"tileTypeExt");var ju=127;function Pi(e,t){let n=0,r=e.length-1;for(;n<=r;){let o=r+n>>1,s=t-e[o].tileId;if(s>0)n=o+1;else if(s<0)r=o-1;else return e[o]}return r>=0&&(e[r].runLength===0||t-e[r].tileId<e[r].runLength)?e[r]:null}Se(Pi,"findTile");var $u=class{constructor(t){this.file=t}getKey(){return this.file.name}getBytes(t,n){return ze(this,null,function*(){return{data:yield this.file.slice(t,t+n).arrayBuffer()}})}};Se($u,"FileSource");var Mi=class{constructor(t,n=new Headers){this.url=t,this.customHeaders=n,this.mustReload=!1;let r="";"navigator"in globalThis&&(r=globalThis.navigator.userAgent||"");let o=r.indexOf("Windows")>-1,s=/Chrome|Chromium|Edg|OPR|Brave/.test(r);this.chromeWindowsNoCache=!1,o&&s&&(this.chromeWindowsNoCache=!0)}getKey(){return this.url}setHeaders(t){this.customHeaders=t}getBytes(t,n,r,o){return ze(this,null,function*(){let s,i;r?i=r:(s=new AbortController,i=s.signal);let l=new Headers(this.customHeaders);l.set("range",`bytes=${t}-${t+n-1}`);let c;this.mustReload?c="reload":this.chromeWindowsNoCache&&(c="no-store");let u=yield fetch(this.url,{signal:i,cache:c,headers:l});if(t===0&&u.status===416){let h=u.headers.get("Content-Range");if(!h||!h.startsWith("bytes */"))throw new Error("Missing content-length on 416 response");let v=+h.substr(8);u=yield fetch(this.url,{signal:i,cache:"reload",headers:{range:`bytes=0-${v-1}`}})}let p=u.headers.get("Etag");if(p!=null&&p.startsWith("W/")&&(p=null),u.status===416||o&&p&&p!==o)throw this.mustReload=!0,new ao(`Server returned non-matching ETag ${o} after one retry. Check browser extensions and servers for issues that may affect correct ETag headers.`);if(u.status>=300)throw new Error(`Bad response code: ${u.status}`);let f=u.headers.get("Content-Length");if(u.status===200&&(!f||+f>n))throw s&&s.abort(),new Error("Server returned no content-length header or content-length exceeding request. Check that your storage backend supports HTTP Byte Serving.");return{data:yield u.arrayBuffer(),etag:p||void 0,cacheControl:u.headers.get("Cache-Control")||void 0,expires:u.headers.get("Expires")||void 0}})}};Se(Mi,"FetchSource");var Pu=Mi;function st(e,t){let n=e.getUint32(t+4,!0),r=e.getUint32(t+0,!0);return n*On(2,32)+r}Se(st,"getUint64");function Li(e,t){let n=new DataView(e),r=n.getUint8(7);if(r>3)throw new Error(`Archive is spec version ${r} but this library supports up to spec version 3`);return{specVersion:r,rootDirectoryOffset:st(n,8),rootDirectoryLength:st(n,16),jsonMetadataOffset:st(n,24),jsonMetadataLength:st(n,32),leafDirectoryOffset:st(n,40),leafDirectoryLength:st(n,48),tileDataOffset:st(n,56),tileDataLength:st(n,64),numAddressedTiles:st(n,72),numTileEntries:st(n,80),numTileContents:st(n,88),clustered:n.getUint8(96)===1,internalCompression:n.getUint8(97),tileCompression:n.getUint8(98),tileType:n.getUint8(99),minZoom:n.getUint8(100),maxZoom:n.getUint8(101),minLon:n.getInt32(102,!0)/1e7,minLat:n.getInt32(106,!0)/1e7,maxLon:n.getInt32(110,!0)/1e7,maxLat:n.getInt32(114,!0)/1e7,centerZoom:n.getUint8(118),centerLon:n.getInt32(119,!0)/1e7,centerLat:n.getInt32(123,!0)/1e7,etag:t}}Se(Li,"bytesToHeader");function Co(e){let t={buf:new Uint8Array(e),pos:0},n=tn(t),r=[],o=0;for(let s=0;s<n;s++){let i=tn(t);r.push({tileId:o+i,offset:0,length:0,runLength:1}),o+=i}for(let s=0;s<n;s++)r[s].runLength=tn(t);for(let s=0;s<n;s++)r[s].length=tn(t);for(let s=0;s<n;s++){let i=tn(t);i===0&&s>0?r[s].offset=r[s-1].offset+r[s-1].length:r[s].offset=i-1}return r}Se(Co,"deserializeIndex");var Ai=class extends Error{};Se(Ai,"EtagMismatch");var ao=Ai;function So(e,t){return ze(this,null,function*(){let n=yield e.getBytes(0,16384);if(new DataView(n.data).getUint16(0,!0)!==19792)throw new Error("Wrong magic number for PMTiles archive");let r=n.data.slice(0,ju),o=Li(r,n.etag),s=n.data.slice(o.rootDirectoryOffset,o.rootDirectoryOffset+o.rootDirectoryLength),i=`${e.getKey()}|${o.etag||""}|${o.rootDirectoryOffset}|${o.rootDirectoryLength}`,l=Co(yield t(s,o.internalCompression));return[o,[i,l.length,l]]})}Se(So,"getHeaderAndRoot");function To(e,t,n,r,o){return ze(this,null,function*(){let s=yield e.getBytes(n,r,void 0,o.etag),i=yield t(s.data,o.internalCompression),l=Co(i);if(l.length===0)throw new Error("Empty directory is invalid");return l})}Se(To,"getDirectory");var Mu=class{constructor(t=100,n=!0,r=gr){this.cache=new Map,this.maxCacheEntries=t,this.counter=1,this.decompress=r}getHeader(t){return ze(this,null,function*(){let n=t.getKey(),r=this.cache.get(n);if(r)return r.lastUsed=this.counter++,r.data;let o=yield So(t,this.decompress);return o[1]&&this.cache.set(o[1][0],{lastUsed:this.counter++,data:o[1][2]}),this.cache.set(n,{lastUsed:this.counter++,data:o[0]}),this.prune(),o[0]})}getDirectory(t,n,r,o){return ze(this,null,function*(){let s=`${t.getKey()}|${o.etag||""}|${n}|${r}`,i=this.cache.get(s);if(i)return i.lastUsed=this.counter++,i.data;let l=yield To(t,this.decompress,n,r,o);return this.cache.set(s,{lastUsed:this.counter++,data:l}),this.prune(),l})}prune(){if(this.cache.size>this.maxCacheEntries){let t=1/0,n;this.cache.forEach((r,o)=>{r.lastUsed<t&&(t=r.lastUsed,n=o)}),n&&this.cache.delete(n)}}invalidate(t){return ze(this,null,function*(){this.cache.delete(t.getKey())})}};Se(Mu,"ResolvedValueCache");var Ni=class{constructor(t=100,n=!0,r=gr){this.cache=new Map,this.invalidations=new Map,this.maxCacheEntries=t,this.counter=1,this.decompress=r}getHeader(t){return ze(this,null,function*(){let n=t.getKey(),r=this.cache.get(n);if(r)return r.lastUsed=this.counter++,yield r.data;let o=new Promise((s,i)=>{So(t,this.decompress).then(l=>{l[1]&&this.cache.set(l[1][0],{lastUsed:this.counter++,data:Promise.resolve(l[1][2])}),s(l[0]),this.prune()}).catch(l=>{i(l)})});return this.cache.set(n,{lastUsed:this.counter++,data:o}),o})}getDirectory(t,n,r,o){return ze(this,null,function*(){let s=`${t.getKey()}|${o.etag||""}|${n}|${r}`,i=this.cache.get(s);if(i)return i.lastUsed=this.counter++,yield i.data;let l=new Promise((c,u)=>{To(t,this.decompress,n,r,o).then(p=>{c(p),this.prune()}).catch(p=>{u(p)})});return this.cache.set(s,{lastUsed:this.counter++,data:l}),l})}prune(){if(this.cache.size>=this.maxCacheEntries){let t=1/0,n;this.cache.forEach((r,o)=>{r.lastUsed<t&&(t=r.lastUsed,n=o)}),n&&this.cache.delete(n)}}invalidate(t){return ze(this,null,function*(){let n=t.getKey();if(this.invalidations.get(n))return yield this.invalidations.get(n);this.cache.delete(t.getKey());let r=new Promise((o,s)=>{this.getHeader(t).then(i=>{o(),this.invalidations.delete(n)}).catch(i=>{s(i)})});this.invalidations.set(n,r)})}};Se(Ni,"SharedPromiseCache");var Lu=Ni,Ii=class{constructor(t,n,r){typeof t=="string"?this.source=new Pu(t):this.source=t,r?this.decompress=r:this.decompress=gr,n?this.cache=n:this.cache=new Lu}getHeader(){return ze(this,null,function*(){return yield this.cache.getHeader(this.source)})}getZxyAttempt(t,n,r,o){return ze(this,null,function*(){let s=ji(t,n,r),i=yield this.cache.getHeader(this.source);if(t<i.minZoom||t>i.maxZoom)return;let l=i.rootDirectoryOffset,c=i.rootDirectoryLength;for(let u=0;u<=3;u++){let p=yield this.cache.getDirectory(this.source,l,c,i),f=Pi(p,s);if(f){if(f.runLength>0){let h=yield this.source.getBytes(i.tileDataOffset+f.offset,f.length,o,i.etag);return{data:yield this.decompress(h.data,i.tileCompression),cacheControl:h.cacheControl,expires:h.expires}}l=i.leafDirectoryOffset+f.offset,c=f.length}else return}throw new Error("Maximum directory depth exceeded")})}getZxy(t,n,r,o){return ze(this,null,function*(){try{return yield this.getZxyAttempt(t,n,r,o)}catch(s){if(s instanceof ao)return this.cache.invalidate(this.source),yield this.getZxyAttempt(t,n,r,o);throw s}})}getMetadataAttempt(){return ze(this,null,function*(){let t=yield this.cache.getHeader(this.source),n=yield this.source.getBytes(t.jsonMetadataOffset,t.jsonMetadataLength,void 0,t.etag),r=yield this.decompress(n.data,t.internalCompression),o=new TextDecoder("utf-8");return JSON.parse(o.decode(r))})}getMetadata(){return ze(this,null,function*(){try{return yield this.getMetadataAttempt()}catch(t){if(t instanceof ao)return this.cache.invalidate(this.source),yield this.getMetadataAttempt();throw t}})}getTileJson(t){return ze(this,null,function*(){let n=yield this.getHeader(),r=yield this.getMetadata(),o=$i(n.tileType);return{tilejson:"3.0.0",scheme:"xyz",tiles:[`${t}/{z}/{x}/{y}${o}`],vector_layers:r.vector_layers,attribution:r.attribution,description:r.description,name:r.name,version:r.version,bounds:[n.minLon,n.minLat,n.maxLon,n.maxLat],center:[n.centerLon,n.centerLat,n.centerZoom],minzoom:n.minZoom,maxzoom:n.maxZoom}})}};Se(Ii,"PMTiles");var fs=Ii;const Au=X.createContext(null);function Nu(e,t){const n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,s=Array.isArray(t)?t[1]:t?t.y:0;return n===o&&r===s}function Ze(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Ze(e[n],t[n]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!t.hasOwnProperty(o)||!Ze(e[o],t[o]))return!1;return!0}return!1}function ds(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function ps(e,t){const n=t.viewState||t,r={};if("longitude"in n&&"latitude"in n&&(n.longitude!==e.center.lng||n.latitude!==e.center.lat)){const o=e.center.constructor;r.center=new o(n.longitude,n.latitude)}return"zoom"in n&&n.zoom!==e.zoom&&(r.zoom=n.zoom),"bearing"in n&&n.bearing!==e.bearing&&(r.bearing=n.bearing),"pitch"in n&&n.pitch!==e.pitch&&(r.pitch=n.pitch),n.padding&&e.padding&&!Ze(n.padding,e.padding)&&(r.padding=n.padding),r}const Iu=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function hs(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const r of e.layers)t[r.id]=r;const n=e.layers.map(r=>{let o=null;"interactive"in r&&(o=Object.assign({},r),delete o.interactive);const s=t[r.ref];if(s){o=o||Object.assign({},r),delete o.ref;for(const i of Iu)i in s&&(o[i]=s[i])}return o||r});return{...e,layers:n}}const ms={version:8,sources:{},layers:[]},gs={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},ys={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},vs={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},Du=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],Fu=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class cn{constructor(t,n,r){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=o=>{const s=this.props[vs[o.type]];s?s(o):o.type==="error"&&console.error(o.error)},this._onCameraEvent=o=>{if(this._internalUpdate)return;o.viewState=this._propsedCameraUpdate||ds(this._map.transform);const s=this.props[ys[o.type]];s&&s(o)},this._onCameraUpdate=o=>this._internalUpdate?o:(this._propsedCameraUpdate=ds(o),ps(o,this.props)),this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const s=this.props[gs[o.type]];s&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),s(o),delete o.features)},this._MapClass=t,this.props=n,this._initialize(r)}get map(){return this._map}setProps(t){const n=this.props;this.props=t;const r=this._updateSettings(t,n),o=this._updateSize(t),s=this._updateViewState(t);this._updateStyle(t,n),this._updateStyleComponents(t),this._updateHandlers(t,n),(r||o||s&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=cn.savedMaps.pop();if(!r)return null;const o=r.map,s=o.getContainer();for(n.className=s.className;s.childNodes.length>0;)n.appendChild(s.childNodes[0]);o._container=n;const i=o._resizeObserver;i&&(i.disconnect(),i.observe(n)),r.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:l}=t;return l&&(l.bounds?o.fitBounds(l.bounds,{...l.fitBoundsOptions,duration:0}):r._updateViewState(l)),o.isStyleLoaded()?o.fire("load"):o.once("style.load",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=ms}=n,o={...n,...n.initialViewState,container:t,style:hs(r)},s=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),n.gl){const l=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=l,n.gl)}const i=new this._MapClass(o);s.padding&&i.setPadding(s.padding),n.cursor&&(i.getCanvas().style.cursor=n.cursor),i.transformCameraUpdate=this._onCameraUpdate,i.on("style.load",()=>{var l;this._styleComponents={light:i.getLight(),sky:i.getSky(),projection:(l=i.getProjection)==null?void 0:l.call(i),terrain:i.getTerrain()},this._updateStyleComponents(this.props)}),i.on("sourcedata",()=>{this._updateStyleComponents(this.props)});for(const l in gs)i.on(l,this._onPointerEvent);for(const l in ys)i.on(l,this._onCameraEvent);for(const l in vs)i.on(l,this._onEvent);this._map=i}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),cn.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_updateSize(t){const{viewState:n}=t;if(n){const r=this._map;if(n.width!==r.transform.width||n.height!==r.transform.height)return r.resize(),!0}return!1}_updateViewState(t){const n=this._map,r=n.transform;if(!n.isMoving()){const s=ps(r,t);if(Object.keys(s).length>0)return this._internalUpdate=!0,n.jumpTo(s),this._internalUpdate=!1,!0}return!1}_updateSettings(t,n){const r=this._map;let o=!1;for(const s of Du)if(s in t&&!Ze(t[s],n[s])){o=!0;const i=r[`set${s[0].toUpperCase()}${s.slice(1)}`];i==null||i.call(r,t[s])}return o}_updateStyle(t,n){if(t.cursor!==n.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==n.mapStyle){const{mapStyle:r=ms,styleDiffing:o=!0}=t,s={diff:o};"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(hs(r),s)}}_updateStyleComponents({light:t,projection:n,sky:r,terrain:o}){var l,c;const s=this._map,i=this._styleComponents;s.style._loaded&&(t&&!Ze(t,i.light)&&(i.light=t,s.setLight(t)),n&&!Ze(n,i.projection)&&n!==((l=i.projection)==null?void 0:l.type)&&(i.projection=typeof n=="string"?{type:n}:n,(c=s.setProjection)==null||c.call(s,i.projection)),r&&!Ze(r,i.sky)&&(i.sky=r,s.setSky(r)),o!==void 0&&!Ze(o,i.terrain)&&(!o||s.getSource(o.source))&&(i.terrain=o,s.setTerrain(o)))}_updateHandlers(t,n){const r=this._map;for(const o of Fu){const s=t[o]??!0,i=n[o]??!0;Ze(s,i)||(s?r[o].enable(s):r[o].disable())}}_queryRenderedFeatures(t){const n=this._map,{interactiveLayerIds:r=[]}=this.props;try{return n.queryRenderedFeatures(t,{layers:r.filter(n.getLayer.bind(n))})}catch{return[]}}_updateHover(t){var o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const s=t.type,i=((o=this._hoveredFeatures)==null?void 0:o.length)>0,l=this._queryRenderedFeatures(t.point),c=l.length>0;!c&&i&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,c&&!i&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=s}else this._hoveredFeatures=null}}cn.savedMaps=[];const zu=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Bu(e){if(!e)return null;const t=e.map,n={getMap:()=>t};for(const r of Uu(t))!(r in n)&&!zu.includes(r)&&(n[r]=t[r].bind(t));return n}function Uu(e){const t=new Set;let n=e;for(;n;){for(const r of Object.getOwnPropertyNames(n))r[0]!=="_"&&typeof e[r]=="function"&&r!=="fire"&&r!=="setEventedParent"&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}const Vu=typeof document<"u"?b.useLayoutEffect:b.useEffect;function qu(e,t){const{RTLTextPlugin:n,maxParallelImageRequests:r,workerCount:o,workerUrl:s}=t;if(n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"){const{pluginUrl:i,lazy:l=!0}=typeof n=="string"?{pluginUrl:n}:n;e.setRTLTextPlugin(i,c=>{c&&console.error(c)},l)}r!==void 0&&e.setMaxParallelImageRequests(r),o!==void 0&&e.setWorkerCount(o),s!==void 0&&e.setWorkerUrl(s)}const dn=X.createContext(null);function Wu(e,t){const n=b.useContext(Au),[r,o]=b.useState(null),s=b.useRef(),{current:i}=b.useRef({mapLib:null,map:null});b.useEffect(()=>{const u=e.mapLib;let p=!0,f;return Promise.resolve(u||import("maplibre-gl")).then(h=>{if(!p)return;if(!h)throw new Error("Invalid mapLib");const v="Map"in h?h:h.default;if(!v.Map)throw new Error("Invalid mapLib");qu(v,e),e.reuseMaps&&(f=cn.reuse(e,s.current)),f||(f=new cn(v.Map,e,s.current)),i.map=Bu(f),i.mapLib=v,o(f),n==null||n.onMapMount(i.map,e.id)}).catch(h=>{const{onError:v}=e;v?v({type:"error",target:null,originalEvent:null,error:h}):console.error(h)}),()=>{p=!1,f&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?f.recycle():f.destroy())}},[]),Vu(()=>{r&&r.setProps(e)}),b.useImperativeHandle(t,()=>i.map,[r]);const l=b.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return X.createElement("div",{id:e.id,ref:s,style:l},r&&X.createElement(dn.Provider,{value:i},X.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const Hu=X.forwardRef(Wu),Ku=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function bt(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!Ku.test(r)?n[r]=`${o}px`:n[r]=o}}function Di(e,t){if(e===t)return null;const n=bs(e),r=bs(t),o=[];for(const s of r)n.has(s)||o.push(s);for(const s of n)r.has(s)||o.push(s);return o.length===0?null:o}function bs(e){return new Set(e?e.trim().split(/\s+/):[])}b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(dn),o=b.useRef({props:e}),s=b.useMemo(()=>{let S=!1;X.Children.forEach(e.children,k=>{k&&(S=!0)});const R={...e,element:S?document.createElement("div"):void 0},j=new r.Marker(R);return j.setLngLat([e.longitude,e.latitude]),j.getElement().addEventListener("click",k=>{var _,F;(F=(_=o.current.props).onClick)==null||F.call(_,{type:"click",target:j,originalEvent:k})}),j.on("dragstart",k=>{var F,y;const _=k;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDragStart)==null||y.call(F,_)}),j.on("drag",k=>{var F,y;const _=k;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDrag)==null||y.call(F,_)}),j.on("dragend",k=>{var F,y;const _=k;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDragEnd)==null||y.call(F,_)}),j},[]);b.useEffect(()=>(s.addTo(n.getMap()),()=>{s.remove()}),[]);const{longitude:i,latitude:l,offset:c,style:u,draggable:p=!1,popup:f=null,rotation:h=0,rotationAlignment:v="auto",pitchAlignment:x="auto"}=e;b.useEffect(()=>{bt(s.getElement(),u)},[u]),b.useImperativeHandle(t,()=>s,[]);const d=o.current.props;(s.getLngLat().lng!==i||s.getLngLat().lat!==l)&&s.setLngLat([i,l]),c&&!Nu(s.getOffset(),c)&&s.setOffset(c),s.isDraggable()!==p&&s.setDraggable(p),s.getRotation()!==h&&s.setRotation(h),s.getRotationAlignment()!==v&&s.setRotationAlignment(v),s.getPitchAlignment()!==x&&s.setPitchAlignment(x),s.getPopup()!==f&&s.setPopup(f);const C=Di(d.className,e.className);if(C)for(const S of C)s.toggleClassName(S);return o.current.props=e,mr.createPortal(e.children,s.getElement())}));const Yu=b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(dn),o=b.useMemo(()=>document.createElement("div"),[]),s=b.useRef({props:e}),i=b.useMemo(()=>{const l={...e},c=new r.Popup(l);return c.setLngLat([e.longitude,e.latitude]),c.once("open",u=>{var p,f;(f=(p=s.current.props).onOpen)==null||f.call(p,u)}),c},[]);if(b.useEffect(()=>{const l=c=>{var u,p;(p=(u=s.current.props).onClose)==null||p.call(u,c)};return i.on("close",l),i.setDOMContent(o).addTo(n.getMap()),()=>{i.off("close",l),i.isOpen()&&i.remove()}},[]),b.useEffect(()=>{bt(i.getElement(),e.style)},[e.style]),b.useImperativeHandle(t,()=>i,[]),i.isOpen()){const l=s.current.props;(i.getLngLat().lng!==e.longitude||i.getLngLat().lat!==e.latitude)&&i.setLngLat([e.longitude,e.latitude]),e.offset&&!Ze(l.offset,e.offset)&&i.setOffset(e.offset),(l.anchor!==e.anchor||l.maxWidth!==e.maxWidth)&&(i.options.anchor=e.anchor,i.setMaxWidth(e.maxWidth));const c=Di(l.className,e.className);if(c)for(const u of c)i.toggleClassName(u);s.current.props=e}return mr.createPortal(e.children,o)}));function Dt(e,t,n,r){const o=b.useContext(dn),s=b.useMemo(()=>e(o),[]);return b.useEffect(()=>{const i=t,l=typeof t=="function"?t:null,{map:c}=o;return c.hasControl(s)||c.addControl(s,i==null?void 0:i.position),()=>{l&&l(o),c.hasControl(s)&&c.removeControl(s)}},[]),s}function Zu(e){const t=Dt(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}b.memo(Zu);function Gu(e){const t=Dt(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return b.useEffect(()=>{bt(t._controlContainer,e.style)},[e.style]),null}b.memo(Gu);function Ju(e,t){const n=b.useRef({props:e}),r=Dt(({mapLib:o})=>{const s=new o.GeolocateControl(e),i=s._setupUI;return s._setupUI=()=>{s._container.hasChildNodes()||i()},s.on("geolocate",l=>{var c,u;(u=(c=n.current.props).onGeolocate)==null||u.call(c,l)}),s.on("error",l=>{var c,u;(u=(c=n.current.props).onError)==null||u.call(c,l)}),s.on("outofmaxbounds",l=>{var c,u;(u=(c=n.current.props).onOutOfMaxBounds)==null||u.call(c,l)}),s.on("trackuserlocationstart",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationStart)==null||u.call(c,l)}),s.on("trackuserlocationend",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationEnd)==null||u.call(c,l)}),s},{position:e.position});return n.current.props=e,b.useImperativeHandle(t,()=>r,[]),b.useEffect(()=>{bt(r._container,e.style)},[e.style]),null}b.memo(b.forwardRef(Ju));function Xu(e){const t=Dt(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}const Qu=b.memo(Xu);function ef(e){const t=Dt(({mapLib:s})=>new s.ScaleControl(e),{position:e.position}),n=b.useRef(e),r=n.current;n.current=e;const{style:o}=e;return e.maxWidth!==void 0&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==r.unit&&t.setUnit(e.unit),b.useEffect(()=>{bt(t._container,o)},[o]),null}b.memo(ef);function tf(e){const t=Dt(({mapLib:n})=>new n.TerrainControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}b.memo(tf);function nf(e){const t=Dt(({mapLib:n})=>new n.LogoControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}b.memo(nf);function fr(e,t){if(!e)throw new Error(t)}let rf=0;function of(e,t,n){if(e.style&&e.style._loaded){const r={...n};return delete r.id,delete r.children,e.addSource(t,r),e.getSource(t)}return null}function sf(e,t,n){var i,l,c;fr(t.id===n.id,"source id changed"),fr(t.type===n.type,"source type changed");let r="",o=0;for(const u in t)u!=="children"&&u!=="id"&&!Ze(n[u],t[u])&&(r=u,o++);if(!o)return;const s=t.type;if(s==="geojson")e.setData(t.data);else if(s==="image")e.updateImage({url:t.url,coordinates:t.coordinates});else switch(r){case"coordinates":(i=e.setCoordinates)==null||i.call(e,t.coordinates);break;case"url":(l=e.setUrl)==null||l.call(e,t.url);break;case"tiles":(c=e.setTiles)==null||c.call(e,t.tiles);break;default:console.warn(`Unable to update <Source> prop: ${r}`)}}function af(e){const t=b.useContext(dn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-source-${rf++}`,[]);b.useEffect(()=>{if(t){const i=()=>setTimeout(()=>r(l=>l+1),0);return t.on("styledata",i),i(),()=>{var l;if(t.off("styledata",i),t.style&&t.style._loaded&&t.getSource(o)){const c=(l=t.getStyle())==null?void 0:l.layers;if(c)for(const u of c)u.source===o&&t.removeLayer(u.id);t.removeSource(o)}}}},[t]);let s=t&&t.style&&t.getSource(o);return s?sf(s,e,n.current):s=of(t,o,e),n.current=e,s&&X.Children.map(e.children,i=>i&&b.cloneElement(i,{source:o}))||null}function lf(e,t,n,r){if(fr(n.id===r.id,"layer id changed"),fr(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:s={},filter:i,minzoom:l,maxzoom:c,beforeId:u}=n;if(u!==r.beforeId&&e.moveLayer(t,u),o!==r.layout){const p=r.layout||{};for(const f in o)Ze(o[f],p[f])||e.setLayoutProperty(t,f,o[f]);for(const f in p)o.hasOwnProperty(f)||e.setLayoutProperty(t,f,void 0)}if(s!==r.paint){const p=r.paint||{};for(const f in s)Ze(s[f],p[f])||e.setPaintProperty(t,f,s[f]);for(const f in p)s.hasOwnProperty(f)||e.setPaintProperty(t,f,void 0)}Ze(i,r.filter)||e.setFilter(t,i),(l!==r.minzoom||c!==r.maxzoom)&&e.setLayerZoomRange(t,l,c)}function cf(e,t,n){if(e.style&&e.style._loaded&&(!("source"in n)||e.getSource(n.source))){const r={...n,id:t};delete r.beforeId,e.addLayer(r,n.beforeId)}}let uf=0;function ff(e){const t=b.useContext(dn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-layer-${uf++}`,[]);if(b.useEffect(()=>{if(t){const i=()=>r(l=>l+1);return t.on("styledata",i),i(),()=>{t.off("styledata",i),t.style&&t.style._loaded&&t.getLayer(o)&&t.removeLayer(o)}}},[t]),t&&t.style&&t.getLayer(o))try{lf(t,o,e,n.current)}catch(i){console.warn(i)}else cf(t,o,e);return n.current=e,null}const df="_mapContainer_ivruh_3",pf={mapContainer:df},hf="_FeaturePopUp_1gd6w_2",mf="_title_1gd6w_2",xs={FeaturePopUp:hf,title:mf},gf=({props:e})=>{const{t}=Te.useTranslation();return m.jsx("div",{className:xs.FeaturePopUp,children:e.map(n=>m.jsxs("p",{children:[m.jsxs("span",{className:xs.title,children:[m.jsx(Te.Trans,{i18nKey:n.name,components:{sup:m.jsx("sup",{})}}),": "]}),n.value.toLocaleString("de",{maximumFractionDigits:2})," ",t(n.unit)]}))})},Fi=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:s={},onClick:i="",interactiveLayers:l=[],sources:c=[],layers:u=[],filters:p,popUpParams:f,onClosePopUp:h,showTexts:v})=>{console.log(p);const x=b.useRef();return b.useEffect(()=>{if(x.current){const d=x.current.getMap();d.getStyle().layers.map(S=>{S.type=="symbol"&&S.id!="professionals"&&(v?d.setLayoutProperty(S.id,"visibility","visible"):d.setLayoutProperty(S.id,"visibility","none"))})}},[v]),b.useEffect(()=>{let d=new wu;return Ao.addProtocol("pmtiles",d.tile),()=>{Ao.removeProtocol("pmtiles")}},[]),m.jsx("div",{className:`${pf.mapContainer}`,style:s&&s,children:m.jsxs(Hu,{initialViewState:e,ref:x,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:i,interactiveLayerIds:l,children:[c.length&&c.map((d,C)=>m.jsx(af,{...d,children:u.length&&u.map((S,R)=>{if(S.sourceId==d.id)return m.jsx(ff,{...S.layer,beforeId:o,filter:p&&p},R)})},C)),m.jsx(Qu,{position:"bottom-right",visualizePitch:!0}),f&&m.jsx(Yu,{longitude:f.lng,latitude:f.lat,onClose:h,children:m.jsx(gf,{props:f.props})})]})})};Fi.propTypes={initialView:a.shape({latitude:a.number.isRequired,longitude:a.number.isRequired,zoom:a.number.isRequired}),mapStyle:a.string,firstSymbolLayer:a.string,cssProps:a.object,style:a.object,maxZoom:a.number,minZoom:a.number,onClick:a.func,interactiveLayers:a.array,popUp:a.bool,sources:a.arrayOf(a.shape({id:a.string,type:a.string,url:a.string,data:a.object})),layers:a.arrayOf(a.shape({sourceId:a.string,layer:a.shape({id:a.string,type:a.string,sourceLayer:a.string,minZoom:a.number,maxZoom:a.number,paint:a.object})})),showTexts:a.bool,filters:a.array,popUpParams:a.object,onClosePopUp:a.func};const yf="_sectionBar_2vnc3_2",vf="_leftContent_2vnc3_13",bf="_textContainer_2vnc3_19",xf="_title_2vnc3_26",_f="_subtitle_2vnc3_32",Cf="_rightContent_2vnc3_37",At={sectionBar:yf,leftContent:vf,textContainer:bf,title:xf,subtitle:_f,rightContent:Cf},zi=({leftIcon:e,title:t,subtitle:n,rightContent:r,mainColor:o})=>{const{t:s}=Te.useTranslation();return m.jsxs("div",{className:At.sectionBar,children:[m.jsxs("div",{className:At.leftContent,children:[e&&m.jsx("img",{src:e,alt:"Icono",className:At.icon}),m.jsxs("div",{className:At.textContainer,children:[m.jsx("div",{className:At.title,style:o?{color:o}:{},children:s(t)}),n&&m.jsx("div",{className:At.subtitle,children:n})]})]}),m.jsx("div",{className:At.rightContent,children:r})]})};zi.propTypes={leftIcon:a.node.isRequired,title:a.string.isRequired,subtitle:a.string,rightContent:a.node.isRequired,mainColor:a.string};const Sf=Ys.createSlice({name:"mapSlice",initialState:{showTexts:!0,sliderSelectedYear:2025,activeIndicatorKey:0,activeIndicatorType:"cat",activeIndicatorUnit:null},reducers:{setShowTexts:(e,t)=>{e.showTexts=t.payload},setYear:(e,t)=>{e.sliderSelectedYear=t.payload},setActiveIndicatorKey:(e,t)=>{e.activeIndicatorKey=t.payload},setActiveIndicatorType:(e,t)=>{e.activeIndicatorType=t.payload},setActiveIndicatorUnit:(e,t)=>{e.activeIndicatorUnit=t.payload}}}),{setShowTexts:Cm,setYear:Zr,setActiveIndicatorKey:Sm,setActiveIndicatorType:Tm,setActiveIndicatorUnit:wm}=Sf.actions,Tf="data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20d='M15.2722%2012.6627C15.2722%2011.8929%2016.1055%2011.4118%2016.7722%2011.7967L31.5641%2020.3368C32.2308%2020.7217%2032.2308%2021.684%2031.5641%2022.0689L16.7722%2030.609C16.1055%2030.9939%2015.2722%2030.5128%2015.2722%2029.743L15.2722%2012.6627Z'%20fill='%23605B56'/%3e%3c/svg%3e",wf="data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3crect%20x='15'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3crect%20x='23'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3c/svg%3e";function xt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(null,arguments)}function Bi(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Bi(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Et(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Bi(e))&&(r&&(r+=" "),r+=t);return r}function _s(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Ef(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((s,i)=>{if(i){const l=t(i);l!==""&&s.push(l),n&&n[i]&&s.push(n[i])}return s},[]).join(" ")}),r}var je={},Gr={exports:{}},Cs;function Ui(){return Cs||(Cs=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Gr)),Gr.exports}function Pn(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const kf=Object.freeze(Object.defineProperty({__proto__:null,default:Pn},Symbol.toStringTag,{value:"Module"})),Rf=kt(kf);function nn(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Of=Object.freeze(Object.defineProperty({__proto__:null,default:nn},Symbol.toStringTag,{value:"Module"})),jf=kt(Of);var Ss;function $f(){if(Ss)return je;Ss=1;var e=Ui();Object.defineProperty(je,"__esModule",{value:!0}),je.alpha=x,je.blend=F,je.colorChannel=void 0,je.darken=C,je.decomposeColor=i,je.emphasize=k,je.getContrastRatio=v,je.getLuminance=h,je.hexToRgb=o,je.hslToRgb=f,je.lighten=R,je.private_safeAlpha=d,je.private_safeColorChannel=void 0,je.private_safeDarken=S,je.private_safeEmphasize=_,je.private_safeLighten=j,je.recomposeColor=u,je.rgbToHex=p;var t=e(Rf),n=e(jf);function r(y,w=0,T=1){return process.env.NODE_ENV!=="production"&&(y<w||y>T)&&console.error(`MUI: The value provided ${y} is out of range [${w}, ${T}].`),(0,n.default)(y,w,T)}function o(y){y=y.slice(1);const w=new RegExp(`.{1,${y.length>=6?2:1}}`,"g");let T=y.match(w);return T&&T[0].length===1&&(T=T.map($=>$+$)),T?`rgb${T.length===4?"a":""}(${T.map(($,N)=>N<3?parseInt($,16):Math.round(parseInt($,16)/255*1e3)/1e3).join(", ")})`:""}function s(y){const w=y.toString(16);return w.length===1?`0${w}`:w}function i(y){if(y.type)return y;if(y.charAt(0)==="#")return i(o(y));const w=y.indexOf("("),T=y.substring(0,w);if(["rgb","rgba","hsl","hsla","color"].indexOf(T)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${y}\` color.
|
|
52
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,t.default)(9,y));let $=y.substring(
|
|
53
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10,
|
|
48
|
+
*/var Nr,Wo;function Za(){if(Wo)return Nr;Wo=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(i).map(function(p){return i[p]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(p){u[p]=p}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Nr=o()?Object.assign:function(s,i){for(var l,c=r(s),u,p=1;p<arguments.length;p++){l=Object(arguments[p]);for(var d in l)t.call(l,d)&&(c[d]=l[d]);if(e){u=e(l);for(var h=0;h<u.length;h++)n.call(l,u[h])&&(c[u[h]]=l[u[h]])}}return c},Nr}var Ir,Ho;function go(){if(Ho)return Ir;Ho=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ir=e,Ir}var Dr,Ko;function Xs(){return Ko||(Ko=1,Dr=Function.call.bind(Object.prototype.hasOwnProperty)),Dr}var Fr,Yo;function Ga(){if(Yo)return Fr;Yo=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=go(),n={},r=Xs();e=function(s){var i="Warning: "+s;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(s,i,l,c,u){if(process.env.NODE_ENV!=="production"){for(var p in s)if(r(s,p)){var d;try{if(typeof s[p]!="function"){var h=Error((c||"React class")+": "+l+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}d=s[p](i,p,c,l,null,t)}catch(x){d=x}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var v=u?u():"";e("Failed "+l+" type: "+d.message+(v??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Fr=o,Fr}var zr,Zo;function Ja(){if(Zo)return zr;Zo=1;var e=Js(),t=Za(),n=go(),r=Xs(),o=Ga(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function i(){return null}return zr=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function d(O){var A=O&&(u&&O[u]||O[p]);if(typeof A=="function")return A}var h="<<anonymous>>",v={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:j(),arrayOf:w,element:R(),elementType:_(),instanceOf:F,node:$(),objectOf:E,oneOf:y,oneOfType:T,shape:Q,exact:U};function x(O,A){return O===A?O!==0||1/O===1/A:O!==O&&A!==A}function f(O,A){this.message=O,this.data=A&&typeof A=="object"?A:{},this.stack=""}f.prototype=Error.prototype;function C(O){if(process.env.NODE_ENV!=="production")var A={},ee=0;function W(te,Y,K,V,G,re,be){if(V=V||h,re=re||K,be!==n){if(c){var P=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var xe=V+":"+K;!A[xe]&&ee<3&&(s("You are manually calling a React.PropTypes validation function for the `"+re+"` prop on `"+V+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),A[xe]=!0,ee++)}}return Y[K]==null?te?Y[K]===null?new f("The "+G+" `"+re+"` is marked as required "+("in `"+V+"`, but its value is `null`.")):new f("The "+G+" `"+re+"` is marked as required in "+("`"+V+"`, but its value is `undefined`.")):null:O(Y,K,V,G,re)}var z=W.bind(null,!1);return z.isRequired=W.bind(null,!0),z}function S(O){function A(ee,W,z,te,Y,K){var V=ee[W],G=ie(V);if(G!==O){var re=oe(V);return new f("Invalid "+te+" `"+Y+"` of type "+("`"+re+"` supplied to `"+z+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return C(A)}function j(){return C(i)}function w(O){function A(ee,W,z,te,Y){if(typeof O!="function")return new f("Property `"+Y+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var K=ee[W];if(!Array.isArray(K)){var V=ie(K);return new f("Invalid "+te+" `"+Y+"` of type "+("`"+V+"` supplied to `"+z+"`, expected an array."))}for(var G=0;G<K.length;G++){var re=O(K,G,z,te,Y+"["+G+"]",n);if(re instanceof Error)return re}return null}return C(A)}function R(){function O(A,ee,W,z,te){var Y=A[ee];if(!l(Y)){var K=ie(Y);return new f("Invalid "+z+" `"+te+"` of type "+("`"+K+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return C(O)}function _(){function O(A,ee,W,z,te){var Y=A[ee];if(!e.isValidElementType(Y)){var K=ie(Y);return new f("Invalid "+z+" `"+te+"` of type "+("`"+K+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return C(O)}function F(O){function A(ee,W,z,te,Y){if(!(ee[W]instanceof O)){var K=O.name||h,V=$e(ee[W]);return new f("Invalid "+te+" `"+Y+"` of type "+("`"+V+"` supplied to `"+z+"`, expected ")+("instance of `"+K+"`."))}return null}return C(A)}function y(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),i;function A(ee,W,z,te,Y){for(var K=ee[W],V=0;V<O.length;V++)if(x(K,O[V]))return null;var G=JSON.stringify(O,function(be,P){var xe=oe(P);return xe==="symbol"?String(P):P});return new f("Invalid "+te+" `"+Y+"` of value `"+String(K)+"` "+("supplied to `"+z+"`, expected one of "+G+"."))}return C(A)}function E(O){function A(ee,W,z,te,Y){if(typeof O!="function")return new f("Property `"+Y+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var K=ee[W],V=ie(K);if(V!=="object")return new f("Invalid "+te+" `"+Y+"` of type "+("`"+V+"` supplied to `"+z+"`, expected an object."));for(var G in K)if(r(K,G)){var re=O(K,G,z,te,Y+"."+G,n);if(re instanceof Error)return re}return null}return C(A)}function T(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var A=0;A<O.length;A++){var ee=O[A];if(typeof ee!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ke(ee)+" at index "+A+"."),i}function W(z,te,Y,K,V){for(var G=[],re=0;re<O.length;re++){var be=O[re],P=be(z,te,Y,K,V,n);if(P==null)return null;P.data&&r(P.data,"expectedType")&&G.push(P.data.expectedType)}var xe=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new f("Invalid "+K+" `"+V+"` supplied to "+("`"+Y+"`"+xe+"."))}return C(W)}function $(){function O(A,ee,W,z,te){return Z(A[ee])?null:new f("Invalid "+z+" `"+te+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return C(O)}function I(O,A,ee,W,z){return new f((O||"React class")+": "+A+" type `"+ee+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function Q(O){function A(ee,W,z,te,Y){var K=ee[W],V=ie(K);if(V!=="object")return new f("Invalid "+te+" `"+Y+"` of type `"+V+"` "+("supplied to `"+z+"`, expected `object`."));for(var G in O){var re=O[G];if(typeof re!="function")return I(z,te,Y,G,oe(re));var be=re(K,G,z,te,Y+"."+G,n);if(be)return be}return null}return C(A)}function U(O){function A(ee,W,z,te,Y){var K=ee[W],V=ie(K);if(V!=="object")return new f("Invalid "+te+" `"+Y+"` of type `"+V+"` "+("supplied to `"+z+"`, expected `object`."));var G=t({},ee[W],O);for(var re in G){var be=O[re];if(r(O,re)&&typeof be!="function")return I(z,te,Y,re,oe(be));if(!be)return new f("Invalid "+te+" `"+Y+"` key `"+re+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(ee[W],null," ")+`
|
|
49
|
+
Valid keys: `+JSON.stringify(Object.keys(O),null," "));var P=be(K,re,z,te,Y+"."+re,n);if(P)return P}return null}return C(A)}function Z(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(Z);if(O===null||l(O))return!0;var A=d(O);if(A){var ee=A.call(O),W;if(A!==O.entries){for(;!(W=ee.next()).done;)if(!Z(W.value))return!1}else for(;!(W=ee.next()).done;){var z=W.value;if(z&&!Z(z[1]))return!1}}else return!1;return!0;default:return!1}}function q(O,A){return O==="symbol"?!0:A?A["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&A instanceof Symbol:!1}function ie(O){var A=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":q(A,O)?"symbol":A}function oe(O){if(typeof O>"u"||O===null)return""+O;var A=ie(O);if(A==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return A}function ke(O){var A=oe(O);switch(A){case"array":case"object":return"an "+A;case"boolean":case"date":case"regexp":return"a "+A;default:return A}}function $e(O){return!O.constructor||!O.constructor.name?h:O.constructor.name}return v.checkPropTypes=o,v.resetWarningCache=o.resetWarningCache,v.PropTypes=v,v},zr}var Br,Go;function Xa(){if(Go)return Br;Go=1;var e=go();function t(){}function n(){}return n.resetWarningCache=t,Br=function(){function r(i,l,c,u,p,d){if(d!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},Br}var Jo;function Qa(){if(Jo)return Hn.exports;if(Jo=1,process.env.NODE_ENV!=="production"){var e=Js(),t=!0;Hn.exports=Ja()(e.isElement,t)}else Hn.exports=Xa()();return Hn.exports}var el=Qa();const a=Gs(el),Qs=({ambit:e,onClickCopy:t,onClickDelete:n,onClickFilters:r,onClickAmbit:o,isBeingProcessed:s,isActive:i,activeColor:l,fontColor:c,moreInfo:u})=>{const{name:p,date:d,id:h}=e;return m.jsxs("div",{className:Cn.ambitItem,style:{borderBottom:`1px solid ${c}`},children:[m.jsxs("div",{className:Cn.ambitNameDate,onClick:()=>o(h),children:[m.jsxs("div",{className:Cn.ambitName,children:[m.jsx("img",{src:i?Wa:Ha}),m.jsx("span",{style:{color:i?l:c},children:p})]}),m.jsx("div",{className:Cn.ambitDate,children:new Date(d).toLocaleDateString()})]}),m.jsxs("div",{className:Cn.ambitButtons,children:[s&&m.jsx("img",{src:Bo}),m.jsx("button",{onClick:()=>r(h),children:m.jsx("img",{src:Bo})}),m.jsx("button",{onClick:()=>t(h),children:m.jsx("img",{src:qa})}),m.jsx("button",{onClick:()=>n(h),children:m.jsx("img",{src:Va})})]})]})};Qs.propTypes={ambit:a.shape({name:a.string.isRequired,date:a.string.isRequired,id:a.string.isRequired}).isRequired,onClickCopy:a.func.isRequired,onClickDelete:a.func.isRequired,onClickFilters:a.func.isRequired,onClickAmbit:a.func.isRequired,isBeingProcessed:a.bool,isActive:a.bool,activeColor:a.string,fontColor:a.string,moreInfo:a.object};const tl="data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%201L13.9996%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M14%201L1.00044%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",ei=({ambitList:e,activeAmbitId:t,fontColor:n="#605B56",activeColor:r,nameLabel:o,dateLabel:s,onClickCopy:i=p=>console.log(`Copy ambit: ${p}`),onCLickDelete:l=p=>console.log(`Delete ambit: ${p}`),onClickFilters:c=p=>console.log(`Filters clicked: ${p}`),onClickAmbit:u=p=>console.log(`OnCLickAmbit: ${p}`)})=>{const{t:p}=Te.useTranslation();return m.jsxs("div",{className:Kt.ambitSelector,style:{color:n},children:[m.jsxs("div",{className:Kt.header,style:{borderBottom:`1px solid ${n}`},children:[m.jsxs("div",{className:Kt.nameDateContainer,children:[m.jsx("div",{className:Kt.ambitName,children:m.jsx("span",{children:p(o)})}),m.jsx("div",{className:Kt.ambitDate,children:m.jsx("span",{children:p(s)})})]}),m.jsx("div",{className:Kt.buttonsContainer})]}),e&&e.length>0&&e.map(d=>m.jsx(Qs,{isActive:t==d.id,ambit:d,fontColor:n,activeColor:r,onClickCopy:i,onClickDelete:l,onClickFilters:c,onClickAmbit:u},`ambitKey${d.id}`))]})};ei.propTypes={ambitList:a.arrayOf(a.shape({name:a.string.isRequired,date:a.string.isRequired,id:a.string.isRequired})).isRequired,activeAmbitId:a.string,fontColor:a.string,activeColor:a.string,onClickCopy:a.func.isRequired,onCLickDelete:a.func.isRequired,onClickFilters:a.func.isRequired,onClickAmbit:a.func.isRequired};const nl="_buttonsContainer_1audx_2",rl="_vertical_1audx_6",ol="_horizontal_1audx_9",sl="_button_1audx_2",il="_active_1audx_25",al="_buttonName_1audx_28",Mt={buttonsContainer:nl,vertical:rl,horizontal:ol,button:sl,active:il,buttonName:al},ll="_left_19lnt_3",cl="_top_19lnt_33",ul="_bottom_19lnt_66",fl="_right_19lnt_97",dl={left:ll,top:cl,bottom:ul,right:fl},yo=({text:e,position:t,styleCustom:n=null})=>{const{t:r}=Te.useTranslation();return m.jsx("div",{className:`tooltip ${dl[t]}`,style:n,children:r(e)})};yo.propTypes={text:a.string.isRequired,position:a.oneOf(["top","bottom","left","right"]).isRequired,styleCustom:a.object};const ti=({buttons:e=[],orientation:t="horizontal",showName:n=!0,namePosition:r="right",useTooltip:o=!1,tooltipPosition:s="top"})=>{const{t:i}=Te.useTranslation();return m.jsx("div",{className:`${Mt.buttonsContainer} ${t==="vertical"&&Mt.vertical}
|
|
50
|
+
${t==="horizontal"&&Mt.horizontal}`,children:e.map((l,c)=>{const{icon:u,activeIcon:p,isActive:d,name:h,onClick:v}=l,x=m.jsxs(m.Fragment,{children:[n&&r==="left"&&m.jsx("span",{className:Mt.buttonName,children:i(h)}),m.jsx("img",{src:d?p:u,alt:i(h)}),n&&r==="right"&&m.jsx("span",{className:Mt.buttonName,children:i(h)})]});return m.jsxs("div",{className:"tooltip-parent",children:[m.jsx("button",{onClick:v,className:`${Mt.button}
|
|
51
|
+
${d&&Mt.active}`,children:x}),o&&m.jsx(yo,{text:h,position:s})]},c)})})};ti.propTypes={buttons:a.arrayOf(a.shape({icon:a.node.isRequired,activeIcon:a.node,isActive:a.bool,name:a.string,onClick:a.func})).isRequired,orientation:a.oneOf(["horizontal","vertical"]),showName:a.bool,namePosition:a.oneOf(["left","right"]),useTooltip:a.bool,tooltipPosition:a.oneOf(["top","bottom","left","right"])};const pl="_indicatorsCategory_1cu33_2",hl="_title_1cu33_5",ml="_list_1cu33_11",Ur={indicatorsCategory:pl,title:hl,list:ml},Rt=({isOpen:e,onClick:t,children:n,color:r,activeColor:o="#F8A925",title:s="Title",height:i=53,titleFontStyles:l,showBottomBar:c=!0,titleMarginChildren:u=25})=>{const{t:p}=Te.useTranslation();return m.jsxs(mo.motion.div,{className:Ur.indicatorsCategory,initial:{height:`${i}px`},animate:{height:e?"auto":`${i}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:e&&c?`1px solid ${o}`:"0px",marginBottom:e?"20px":"0px"},children:[m.jsxs("h2",{style:{...l,marginBottom:u||"auto"},className:`${Ur.title}`,onClick:t,children:[m.jsx("span",{style:{color:e?o:r},children:e?"-":"+"}),m.jsx("span",{style:{marginLeft:12,color:e?o:r},children:p(s)})]}),m.jsx("div",{className:Ur.content,children:n})]})};Rt.propTypes={isOpen:a.bool,onClick:a.func,children:a.node,color:a.string,activeColor:a.string,title:a.string,height:a.number,showBottomBar:a.bool,titleFontStyles:a.object};const gl=()=>m.jsx("div",{children:"EditAmbit"}),yl="_AppliedFiltersContainer_s8ooe_2",vl="_AppliedFilterContent_s8ooe_10",Xo={AppliedFiltersContainer:yl,AppliedFilterContent:vl},Ue=Ta.create(e=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56"})),ni=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680",activeColor:s})=>{const{t:i}=Te.useTranslation(),{tematicalFiltersSelected:l}=Ue(u=>u),c=u=>{Ue.setState(p=>({tematicalFiltersSelected:p.tematicalFiltersSelected.filter(d=>d.code!==u)}))};return m.jsx(Rt,{isOpen:n,onClick:t,title:e?i(e):"Applied Filters",activeColor:s,children:m.jsx("div",{className:Xo.AppliedFiltersContainer,children:l==null?void 0:l.map((u,p)=>m.jsxs("div",{className:Xo.AppliedFilterContent,style:{color:r,background:o},children:[i(u.name),m.jsx("img",{src:tl,alt:"CloseIcon",onClick:()=>c(u.code),style:{cursor:"pointer"}})]},p))})})};ni.propTypes={isOpen:a.bool,onClick:a.func,title:a.string,textColor:a.string,backgroundColor:a.string,indicators:a.arrayOf(a.shape({title:a.string.isRequired,Codename:a.string.isRequired})),activeColor:a.string};const ri=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680",activeColor:s})=>{const{t:i}=Te.useTranslation();return Ue(l=>l),m.jsx(Rt,{isOpen:n,onClick:t,title:e?i(e):"Geographical Filters",activeColor:s,children:"A"})};ri.propTypes={isOpen:a.bool,onClick:a.func,title:a.string,textColor:a.string,backgroundColor:a.string,activeColor:a.string};const bl="_checkboxContainer_zld97_2",xl={checkboxContainer:bl},oi=({onClick:e,containerStyles:t,color:n="#605B56",indicator:r,value:o})=>{const{t:s}=Te.useTranslation(),{title:i}=r||{},{fontColor:l,inputsColor:c}=Ue(u=>u);return m.jsxs("div",{style:{...t,color:n},role:"checkbox",className:xl.checkboxContainer,onClick:e,children:[m.jsx("input",{type:"checkbox",checked:typeof o=="boolean"?o:!0,value:o,readOnly:!0,style:{border:`1.5px solid ${o?c:l}`,backgroundColor:o?c:"white"}}),m.jsx("span",{className:"checkmark",children:s(i)})]})};oi.propTypes={onClick:a.func,value:a.bool,containerStyles:a.object,color:a.string,indicator:a.shape({title:a.string,codename:a.array}),checkedColor:a.string};function ro(e,t){return ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ro(e,t)}function _l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ro(e,t)}function Vr(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function qr(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function Yn(e){return e!==null&&e.length===1?e[0]:e.slice()}function Zn(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function Lt(e,t){return oo(function(n,r){let o=n;return o<=r.min&&(o=r.min),o>=r.max&&(o=r.max),o}(e,t),t)}function oo(e,t){const n=(e-t.min)%t.step;let r=e-n;return 2*Math.abs(n)>=t.step&&(r+=n>0?t.step:-t.step),parseFloat(r.toFixed(5))}let so=function(e){function t(r){var o;(o=e.call(this,r)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=l=>{l.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=l=>{o.setState({pending:!0});const c=o.getMousePosition(l),u=o.getDiffPosition(c[0]),p=o.getValueFromPosition(u);o.move(p)},o.onTouchMove=l=>{if(l.touches.length>1)return;o.setState({pending:!0});const c=o.getTouchPosition(l);if(o.isScrolling===void 0){const d=c[0]-o.startPosition[0],h=c[1]-o.startPosition[1];o.isScrolling=Math.abs(h)>Math.abs(d)}if(o.isScrolling)return void o.setState({index:-1});const u=o.getDiffPosition(c[0]),p=o.getValueFromPosition(u);o.move(p)},o.onKeyDown=l=>{if(!(l.ctrlKey||l.shiftKey||l.altKey||l.metaKey))switch(o.setState({pending:!0}),l.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":l.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":l.preventDefault(),o.moveUpByStep();break;case"Home":l.preventDefault(),o.move(o.props.min);break;case"End":l.preventDefault(),o.move(o.props.max);break;case"PageDown":l.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":l.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=l=>{if(!o.props.disabled&&l.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){const c=o.getMousePosition(l);o.forceValueFromPosition(c[0],u=>{o.start(u,c[0]),Zn(o.getMouseEventMap())})}Vr(l)}},o.onSliderClick=l=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){const c=o.getMousePosition(l),u=Lt(o.calcValue(o.calcOffsetFromPosition(c[0])),o.props);o.props.onSliderClick(u)}},o.createOnKeyDown=l=>c=>{o.props.disabled||(o.start(l),Zn(o.getKeyDownEventMap()),Vr(c))},o.createOnMouseDown=l=>c=>{if(o.props.disabled||c.button===2)return;o.setState({pending:!0});const u=o.getMousePosition(c);o.start(l,u[0]),Zn(o.getMouseEventMap()),Vr(c)},o.createOnTouchStart=l=>c=>{if(o.props.disabled||c.touches.length>1)return;o.setState({pending:!0});const u=o.getTouchPosition(c);o.startPosition=u,o.isScrolling=void 0,o.start(l,u[0]),Zn(o.getTouchEventMap()),function(p){p.stopPropagation&&p.stopPropagation()}(c)},o.handleResize=()=>{const l=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(l)},o.renderThumb=(l,c)=>{const u=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+c+" "+(o.state.index===c?o.props.thumbActiveClassName:""),p={ref:h=>{o["thumb"+c]=h},key:o.props.thumbClassName+"-"+c,className:u,style:l,onMouseDown:o.createOnMouseDown(c),onTouchStart:o.createOnTouchStart(c),onFocus:o.createOnKeyDown(c),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[c],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[c]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[c]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},d={index:c,value:Yn(o.state.value),valueNow:o.state.value[c]};return o.props.ariaValuetext&&(p["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(d)),o.props.renderThumb(p,d)},o.renderTrack=(l,c,u)=>{const p={key:o.props.trackClassName+"-"+l,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+l,style:o.buildTrackStyle(c,o.state.upperBound-u)},d={index:l,value:Yn(o.state.value)};return o.props.renderTrack(p,d)};let s=qr(r.value);s.length||(s=qr(r.defaultValue)),o.pendingResizeTimeouts=[];const i=[];for(let l=0;l<s.length;l+=1)s[l]=Lt(s[l],r),i.push(l);return o.resizeObserver=null,o.resizeElementRef=b.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:s,zIndices:i},o}_l(t,e);var n=t.prototype;return n.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(r,o){const s=qr(r.value);return s.length?o.pending?null:{value:s.map(i=>Lt(i,r))}:null},n.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},n.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},n.onEnd=function(r){r&&function(o){Object.keys(o).forEach(s=>{typeof document<"u"&&document.removeEventListener(s,o[s],!1)})}(r),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},n.getValue=function(){return Yn(this.state.value)},n.getClosestIndex=function(r){let o=Number.MAX_VALUE,s=-1;const{value:i}=this.state,l=i.length;for(let c=0;c<l;c+=1){const u=this.calcOffset(i[c]),p=Math.abs(r-u);p<o&&(o=p,s=c)}return s},n.getMousePosition=function(r){return[r["page"+this.axisKey()],r["page"+this.orthogonalAxisKey()]]},n.getTouchPosition=function(r){const o=r.touches[0];return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},n.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},n.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},n.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},n.getValueFromPosition=function(r){const o=r/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return Lt(this.state.startValue+o,this.props)},n.getDiffPosition=function(r){let o=r-this.state.startPosition;return this.props.invert&&(o*=-1),o},n.resize=function(){const{slider:r,thumb0:o}=this;if(!r||!o)return;const s=this.sizeKey(),i=r.getBoundingClientRect(),l=r[s],c=i[this.posMaxKey()],u=i[this.posMinKey()],p=o.getBoundingClientRect()[s.replace("client","").toLowerCase()],d=l-p,h=Math.abs(c-u);this.state.upperBound===d&&this.state.sliderLength===h&&this.state.thumbSize===p||this.setState({upperBound:d,sliderLength:h,thumbSize:p})},n.calcOffset=function(r){const o=this.props.max-this.props.min;return o===0?0:(r-this.props.min)/o*this.state.upperBound},n.calcValue=function(r){return r/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},n.calcOffsetFromPosition=function(r){const{slider:o}=this,s=o.getBoundingClientRect(),i=s[this.posMaxKey()],l=s[this.posMinKey()];let c=r-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?i:l));return this.props.invert&&(c=this.state.sliderLength-c),c-=this.state.thumbSize/2,c},n.forceValueFromPosition=function(r,o){const s=this.calcOffsetFromPosition(r),i=this.getClosestIndex(s),l=Lt(this.calcValue(s),this.props),c=this.state.value.slice();c[i]=l;for(let u=0;u<c.length-1;u+=1)if(c[u+1]-c[u]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:c},()=>{o(i),this.fireChangeEvent("onChange")})},n.clearPendingResizeTimeouts=function(){do{const r=this.pendingResizeTimeouts.shift();clearTimeout(r)}while(this.pendingResizeTimeouts.length)},n.start=function(r,o){const s=this["thumb"+r];s&&s.focus();const{zIndices:i}=this.state;i.splice(i.indexOf(r),1),i.push(r),this.setState(l=>({startValue:l.value[r],startPosition:o!==void 0?o:l.startPosition,index:r,zIndices:i}))},n.moveUpByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],s=Lt(this.props.invert&&this.props.orientation==="horizontal"?o-r:o+r,this.props);this.move(Math.min(s,this.props.max))},n.moveDownByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],s=Lt(this.props.invert&&this.props.orientation==="horizontal"?o+r:o-r,this.props);this.move(Math.max(s,this.props.min))},n.move=function(r){const o=this.state.value.slice(),{index:s}=this.state,{length:i}=o,l=o[s];if(r===l)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:c,max:u,min:p,minDistance:d}=this.props;if(!c){if(s>0){const h=o[s-1];r<h+d&&(r=h+d)}if(s<i-1){const h=o[s+1];r>h-d&&(r=h-d)}}o[s]=r,c&&i>1&&(r>l?(this.pushSucceeding(o,d,s),function(h,v,x,f){for(let C=0;C<h;C+=1){const S=f-C*x;v[h-1-C]>S&&(v[h-1-C]=S)}}(i,o,d,u)):r<l&&(this.pushPreceding(o,d,s),function(h,v,x,f){for(let C=0;C<h;C+=1){const S=f+C*x;v[C]<S&&(v[C]=S)}}(i,o,d,p))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},n.pushSucceeding=function(r,o,s){let i,l;for(i=s,l=r[i]+o;r[i+1]!==null&&l>r[i+1];i+=1,l=r[i]+o)r[i+1]=oo(l,this.props)},n.pushPreceding=function(r,o,s){for(let i=s,l=r[i]-o;r[i-1]!==null&&l<r[i-1];i-=1,l=r[i]-o)r[i-1]=oo(l,this.props)},n.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},n.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},n.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},n.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},n.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},n.fireChangeEvent=function(r){this.props[r]&&this.props[r](Yn(this.state.value),this.state.index)},n.buildThumbStyle=function(r,o){const s={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(o)+1};return s[this.posMinKey()]=r+"px",s},n.buildTrackStyle=function(r,o){const s={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return s[this.posMinKey()]=r,s[this.posMaxKey()]=o,s},n.buildMarkStyle=function(r){var o;return(o={position:"absolute"})[this.posMinKey()]=r,o},n.renderThumbs=function(r){const{length:o}=r,s=[];for(let l=0;l<o;l+=1)s[l]=this.buildThumbStyle(r[l],l);const i=[];for(let l=0;l<o;l+=1)i[l]=this.renderThumb(s[l],l);return i},n.renderTracks=function(r){const o=[],s=r.length-1;o.push(this.renderTrack(0,0,r[0]));for(let i=0;i<s;i+=1)o.push(this.renderTrack(i+1,r[i],r[i+1]));return o.push(this.renderTrack(s+1,r[s],this.state.upperBound)),o},n.renderMarks=function(){let{marks:r}=this.props;const o=this.props.max-this.props.min+1;return typeof r=="boolean"?r=Array.from({length:o}).map((s,i)=>i):typeof r=="number"&&(r=Array.from({length:o}).map((s,i)=>i).filter(s=>s%r==0)),r.map(parseFloat).sort((s,i)=>s-i).map(s=>{const i=this.calcOffset(s),l={key:s,className:this.props.markClassName,style:this.buildMarkStyle(i)};return this.props.renderMark(l)})},n.render=function(){const r=[],{value:o}=this.state,s=o.length;for(let u=0;u<s;u+=1)r[u]=this.calcOffset(o[u],u);const i=this.props.withTracks?this.renderTracks(r):null,l=this.renderThumbs(r),c=this.props.marks?this.renderMarks():null;return b.createElement("div",{ref:u=>{this.slider=u,this.resizeElementRef.current=u},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},i,l,c)},t}(b.Component);so.displayName="ReactSlider",so.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,minDistance:0,defaultValue:0,orientation:"horizontal",className:"slider",thumbClassName:"thumb",thumbActiveClassName:"active",trackClassName:"track",markClassName:"mark",withTracks:!0,pearling:!1,disabled:!1,snapDragDisabled:!1,invert:!1,marks:[],renderThumb:e=>b.createElement("div",e),renderTrack:e=>b.createElement("div",e),renderMark:e=>b.createElement("span",e)};var Cl=so;const Sl="_container_15vgv_2",Tl="_unitLabel_15vgv_9",wl="_slider_15vgv_12",El="_thumb_15vgv_18",kl="_track_15vgv_27",Rl="_labels_15vgv_33",Yt={container:Sl,unitLabel:Tl,slider:wl,thumb:El,track:kl,labels:Rl},si=({min:e=0,max:t=100,step:n=1,onChange:r,width:o=300,unit:s,fontColor:i="#605B56",value:l=[e,t]})=>{const{t:c}=Te.useTranslation(),u=p=>{r==null||r({min:p[0],max:p[1]})};return m.jsxs("div",{className:Yt.container,style:{width:`${o}px`,color:`${i}`},children:[m.jsx("div",{className:Yt.unitLabel,children:m.jsx("span",{children:c(s)})}),m.jsx(Cl,{className:Yt.slider,thumbClassName:Yt.thumb,trackClassName:Yt.track,min:e,max:t,step:n,value:l,onChange:u,withTracks:!0,pearling:!0,minDistance:1}),m.jsxs("div",{className:Yt.labels,children:[m.jsx("span",{children:l[0]}),m.jsx("span",{children:l[1]})]})]})};si.propTypes={min:a.number,max:a.number,step:a.number,initialMin:a.number,initialMax:a.number,onChange:a.func,width:a.number,unit:a.string,fontColor:a.string,value:a.arrayOf(a.number)};const Ol="_tematicalFiltersInputContainer_1vm1r_2",jl="_inputTypeContainer_1vm1r_2",$l="_checkboxContainer_1vm1r_28",Pl="_absoluteSliderContainer_1vm1r_37",Gn={tematicalFiltersInputContainer:Ol,inputTypeContainer:jl,checkboxContainer:$l,absoluteSliderContainer:Pl},vo=({indicator:e,activeColor:t})=>{const[n,r]=b.useState(),{type:o,name:s,values:i,minValue:l,maxValue:c,unit:u}=e||{},p=b.useMemo(()=>o=="cat"||n=="cat",[n,o]),d=b.useMemo(()=>o=="abs"||n=="abs",[n,o]),{tematicalFiltersSelected:h,selectedIndicator:v,fontColor:x,inputsColor:f}=Ue(j=>j),C=j=>{if(j){const{min:w,max:R,valueClicked:_,allValues:F}=j||{},{code:y,type:E}=e||{},T=d?"abs":p?"cat":"both";let $=y[0];E=="both"&&($=T=="cat"?y[1]:y[0]),T=="cat"?Ue.setState(I=>{let Q=I.tematicalFiltersSelected.find(U=>U.code===$);if(Q){let U=[Q.values];if(Q.values.includes(_)){if(U=Q.values.filter(Z=>Z!==_),U.length<1)return{tematicalFiltersSelected:I.tematicalFiltersSelected.filter(Z=>Z.code!==$)}}else U=[...Q.values,_];return{tematicalFiltersSelected:I.tematicalFiltersSelected.map(Z=>Z.code===$?{...Z,values:U}:Z)}}else{console.log("entra aqui: ",F," ",_);let U=F.map((Z,q)=>q);return{tematicalFiltersSelected:[...h,{type:"cat",code:$,values:U.filter(Z=>Z!==_),name:e.name}]}}}):T=="abs"&&Ue.setState(I=>{let Q=I.tematicalFiltersSelected.find(U=>U.code===$);if(Q){let U={...Q};return U.min=w,U.max=R,{tematicalFiltersSelected:I.tematicalFiltersSelected.map(Z=>Z.code===$?U:Z)}}else return{tematicalFiltersSelected:[...h,{type:"abs",code:$,min:w,max:R}]}})}},S=b.useMemo(()=>{const j={};if((h==null?void 0:h.length)>0)for(const w of h)w.type==="cat"?j[w.code]=new Set(w.values):j[w.code]=[w.min,w.max];return j},[h]);return m.jsx("div",{className:Gn.tematicalFiltersInputContainer,children:m.jsxs(Rt,{titleFontStyles:{fontSize:16,fontWeight:400},title:s,isOpen:v==`id${s}`,onClick:()=>Ue.setState(()=>({selectedIndicator:v==`id${s}`?"":`id${s}`})),showBottomBar:!1,height:38,titleMarginChildren:14,className:"tematicalFiltersInputContainer",color:x,activeColor:t,children:[o=="both"&&m.jsxs("div",{className:Gn.inputTypeContainer,style:{color:x},children:[m.jsxs("label",{children:[m.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{r("abs")},style:{marginRight:4,backgroundColor:n=="abs"?f:"white",border:`1.5px solid ${n=="abs"?f:x}`}}),"Absoluto"]}),m.jsxs("label",{children:[m.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{r("cat")},style:{marginRight:4,backgroundColor:n=="cat"?f:"white",border:`1.5px solid ${n=="cat"?f:x}`}}),"Categórico"]})]}),p&&m.jsx("div",{className:Gn.checkboxContainer,children:i.map((j,w)=>{var R;return m.jsx(oi,{onClick:()=>C({valueClicked:w,allValues:i}),indicator:j,value:((R=S[e.code[o=="both"?1:0]])==null?void 0:R.has(w))||!S[e.code[o=="both"?1:0]]},`checkbox-${w}`)})}),d&&m.jsx("div",{className:Gn.absoluteSliderContainer,children:m.jsx(si,{onChange:C,min:l,max:c,unit:u,value:S[e.code[0]]})})]})})};vo.propTypes={indicator:a.shape({name:a.string,type:a.string,code:a.arrayOf(a.string),values:a.arrayOf(a.shape({codename:a.oneOfType(a.array,a.string),title:a.string}))}),activeColor:a.string};const ii=({subcategory:e,fontColor:t,activeColor:n})=>{const{activeSubcategory:r}=Ue(i=>i),{name:o,indicators:s}=e||{};return m.jsx(Rt,{title:o,isOpen:r==`id${o}`,onClick:()=>{Ue.setState(i=>({activeSubcategory:i.activeSubcategory===`id${o}`?"":`id${o}`}))},titleFontStyles:{fontSize:16,fontWeight:400},showBottomBar:!1,titleMarginChildren:20,height:49,color:t,activeColor:n,children:s==null?void 0:s.map((i,l)=>m.jsx(vo,{indicator:i,fontColor:t},`indicatorSub-${l}`))})};ii.propTypes={subcategory:a.shape({name:a.string,indicators:a.arrayOf(a.shape({name:a.string,value:a.string}))}),activeColor:a.string};const ai=({category:e,activeColor:t})=>{const{name:n,subcategories:r,indicators:o}=e||{},{activeCategory:s,fontColor:i}=Ue(l=>l);return e&&m.jsx(Rt,{onClick:()=>{Ue.setState(l=>({activeCategory:s===`id${n}`?"":`id${n}`}))},title:n,isOpen:s===`id${n}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:i,activeColor:t,children:r?r.map((l,c)=>m.jsx(ii,{subcategory:l,fontColor:i},`subcategory-${c}`)):o&&o.map((l,c)=>m.jsx(vo,{indicator:l,fontColor:i},`indicator-${c}`))})};ai.propTypes={category:a.shape({name:a.string.isRequired,subcategories:a.array,indicators:a.array}),activeColor:a.string};const li=({indicators:e,isOpen:t=!0,title:n,fontColor:r="#605B56",inputsColor:o="#605B56"})=>{const{tematicalFiltersSelected:s}=Ue(l=>l),{t:i}=Te.useTranslation();return b.useEffect(()=>{console.log("filtersSelected changed: ",s)},[s]),b.useEffect(()=>{r&&Ue.setState(()=>({fontColor:r}))},[r]),b.useEffect(()=>{o&&Ue.setState(()=>({inputsColor:o}))},[o]),m.jsx(Rt,{isOpen:t,title:n?i(n):"Tematical filters",color:r,activeColor:o,children:e==null?void 0:e.map((l,c)=>m.jsx(ai,{category:l,fontColor:r},`category-${c}`))})};li.propTypes={isOpen:a.bool,title:a.string,indicators:a.arrayOf(a.object),fontColor:a.string,onChangeTematicalFilters:a.func,inputsColor:a.string};const Ml="_FiltersAmbitContainer_6o4gt_2",Ll="_FiltersAmbitHeader_6o4gt_7",Al="_FiltersAmbitTitle_6o4gt_15",Nl="_FiltersAmbitDescription_6o4gt_22",Il="_FiltersAmbitDescriptionTitle_6o4gt_33",Sn={FiltersAmbitContainer:Ml,FiltersAmbitHeader:Ll,FiltersAmbitTitle:Al,FiltersAmbitDescription:Nl,FiltersAmbitDescriptionTitle:Il},ci=({ambitName:e,ambitDescription:t,defaultFilters:n,indicators:r,activeColor:o,textColor:s,backgroundColor:i,onChangeAppliedFilters:l})=>{const{t:c}=Te.useTranslation(),{tematicalFiltersSelected:u}=Ue(p=>p);return b.useEffect(()=>{n&&n.length>0&&Ue.setState(p=>({tematicalFiltersSelected:n}))},[n]),b.useEffect(()=>{console.log("filtersSelected changed: ",u),l(u)},[u]),m.jsxs("div",{className:Sn.FiltersAmbitContainer,children:[m.jsxs("div",{className:Sn.FiltersAmbitHeader,children:[m.jsx("div",{className:Sn.FiltersAmbitTitle,children:e}),m.jsxs("div",{className:Sn.FiltersAmbitDescription,children:[m.jsx("div",{className:Sn.FiltersAmbitDescriptionTitle,children:c("description")}),t]})]}),m.jsx(ni,{title:c("applied_filters"),isOpen:!0,textColor:s||"#fff",backgroundColor:i||"#605B5680",activeColor:o}),m.jsx(ri,{activeColor:o}),m.jsx(li,{indicators:r,inputsColor:o,textColor:s,title:"tematical_filters",activeColor:o})]})};ci.propTypes={indicators:a.arrayOf(a.object).isRequired,ambitName:a.string,ambitDescription:a.string,defaultFilters:a.arrayOf(a.object),activeColor:a.string,backgroundColor:a.string,textColor:a.string,onChangeAppliedFilters:a.func};const Dl="_barChartContainer_d2f1z_2",Fl={barChartContainer:Dl},ui=({data:e,width:t=700,barHeight:n=25,gap:r=23,fontColor:o="#605B56",verticalPaddign:s=10,horizontalPaddign:i=20,leftPadding:l=200,numberOfDivisions:c=7,maxValue:u=null})=>{const{t:p}=Te.useTranslation(),{xScale:d,ticks:h,height:v}=b.useMemo(()=>{if(e&&e.length>0){const x=(e==null?void 0:e.length)*(n+r)+s*2,f=Io.max(e,j=>j.value)||1,C=Io.scaleLinear().domain([0,u||f]).range([0,t-l]),S=Array.from({length:c+1},(j,w)=>u?u/c*w:f/c*w);return{xScale:C,ticks:S,height:x,width:t,verticalPaddign:s,horizontalPaddign:i}}else return{xScale:null,ticks:[],height:0}},[e,t,c,n,r,i,s,u]);return m.jsx("div",{className:Fl.barChartContainer,children:m.jsx("svg",{width:t+i*2,height:v,children:m.jsxs("g",{transform:`translate(0,${r})`,children:[m.jsx("g",{transform:`translate(${l+i}, 0)`,children:h.map((x,f)=>{const C=d(x);return m.jsxs("g",{transform:`translate(${C}, 0)`,children:[m.jsx("line",{y1:0,y2:v-r*2,stroke:"#ccc"}),m.jsx("text",{y:v-r,textAnchor:"middle",fontSize:10,fill:o,children:parseInt(x)})]},f)})}),e&&e.length>0&&(e==null?void 0:e.map((x,f)=>{const C=d(x.value),S=f*(n+r);return m.jsxs("g",{transform:`translate(${l+i}, ${S})`,children:[m.jsx("text",{x:-24,y:n/2+5,textAnchor:"end",fill:o,children:p(x.title)}),m.jsx("rect",{width:C,height:n,fill:x.color,rx:0})]},f)}))]})})})};ui.propTypes={data:a.arrayOf(a.shape({title:a.string,value:a.number,color:a.string})),width:a.number,barHeight:a.number,gap:a.number,verticalPaddign:a.number,horizontalPaddign:a.number,numberOfDivisions:a.number,fontColor:a.string};const zl="_graphicContainer_c9zrg_2",Bl="_titleContainer_c9zrg_14",Qo={graphicContainer:zl,titleContainer:Bl},fi=({data:e,graphWidth:t=700,containerStyle:n,borderColor:r="#605B56",title:o="Graphic Title",fontColor:s="#605B56",maxValue:i=null,numberOfDivisions:l=7,leftPadding:c=200})=>{const{t:u}=Te.useTranslation();return m.jsxs("div",{className:Qo.graphicContainer,style:{...n||{},border:`1.5px solid ${r}`},children:[m.jsx("div",{className:Qo.titleContainer,children:m.jsx("h2",{children:u(o)})}),m.jsx(ui,{data:e,width:t,fontColor:s,maxValue:i,numberOfDivisions:l,leftPadding:c})]})};fi.propTypes={data:a.arrayOf(a.shape({color:a.string.isRequired,value:a.number.isRequired,title:a.string.isRequired})),borderColor:a.string,title:a.string,graphWidth:a.number,containerStyle:a.object,fontColor:a.string,maxValue:a.number,numberOfDivisions:a.number,leftPadding:a.number};const Ul="_indicatorsCategory_1cu33_2",Vl="_title_1cu33_5",ql="_list_1cu33_11",Wr={indicatorsCategory:Ul,title:Vl,list:ql},Wl="_indicatorContainer_lw8gx_2",Hl="_indicatorNameContainer_lw8gx_11",Kl="_dot_lw8gx_20",Yl="_indicatorName_lw8gx_11",Zl="_switchExternalContainer_lw8gx_31",Gl="_switchType_lw8gx_40",Jl="_switchTypeOptions_lw8gx_44",Xl="_optionContainer_lw8gx_55",Ql="_customRadious_lw8gx_65",ec="_optionText_lw8gx_72",Fe={indicatorContainer:Wl,indicatorNameContainer:Hl,dot:Kl,indicatorName:Yl,switchExternalContainer:Zl,switchType:Gl,switchTypeOptions:Jl,optionContainer:Xl,customRadious:Ql,optionText:ec},bo=({indicator:e,values:t=[],activeColor:n,defaultColor:r="#92898A",activeIndicator:o,activeIndicatorType:s,onClickIndicator:i,multiple:l=!1,onChangeType:c})=>{const{t:u}=Te.useTranslation(),{name:p,type:d}=e,[h,v]=b.useState(!1);b.useEffect(()=>{o&&v(l?o.some(C=>C.name==String(p)):o.name==p)},[o]);const x=()=>m.jsx("div",{className:Fe.switchExternalContainer,children:m.jsx("div",{className:Fe.switchType,children:m.jsxs("div",{className:Fe.switchTypeOptions,children:[m.jsxs("div",{className:Fe.optionContainer,onClick:()=>c("cat"),children:[m.jsx("span",{className:`${Fe.customRadious}`,style:{backgroundColor:s==="cat"?n:"transparent",borderColor:s==="cat"?n:r}}),m.jsx("h4",{className:Fe.optionText,style:{color:s==="cat"?n:r},children:u("indicators.cat")})]}),m.jsxs("div",{className:Fe.optionContainer,onClick:()=>c("abs"),children:[m.jsx("span",{className:`${Fe.customRadious}`,style:{backgroundColor:s==="abs"?n:"transparent",borderColor:s==="abs"?n:r}}),m.jsx("h4",{className:Fe.optionText,style:{color:s==="abs"?n:r},children:u("indicators.abs")})]})]})})}),f=()=>m.jsx("div",{className:Fe.switchExternalContainer,children:m.jsx("div",{className:Fe.switchType,children:m.jsx("div",{className:Fe.switchTypeOptions,children:t.map((C,S)=>m.jsxs("div",{className:Fe.optionContainer,children:[m.jsx("span",{className:Fe.customRadious}),m.jsx("h4",{children:u(C.unit)})]},S))})})});return m.jsxs("div",{className:Fe.indicatorContainer,children:[m.jsxs("div",{className:Fe.indicatorNameContainer,onClick:()=>i({indicator:e}),children:[m.jsx("div",{style:{border:h?`1px solid ${n}`:`1px solid ${r}`},className:Fe.dot}),m.jsx("h4",{className:Fe.indicatorName,style:{color:h?n:r},children:m.jsx(Te.Trans,{i18nKey:p,components:{sup:m.jsx("sup",{})}})})]}),(o==null?void 0:o.name)===p&&d==="both"&&m.jsx("div",{children:x()}),(o==null?void 0:o.name)===p&&d==="twoUnits"&&m.jsx("div",{children:f()})]})};bo.propTypes={indicator:a.shape({name:a.string,type:a.string}),values:a.oneOfType([a.bool,a.array]),activeColor:a.string,defaultColor:a.string,activeIndicator:a.oneOfType([a.object,a.array]),multiple:a.bool,onClickIndicator:a.func};const tc="_indicatorsSubCategory_1dzsi_2",nc="_list_1dzsi_8",es={indicatorsSubCategory:tc,list:nc},di=({subcName:e,indicators:t,defaultColor:n,activeColor:r,activeSubCategory:o,onClickSubCategory:s,id:i,activeIndicator:l,onClickIndicator:c,multiple:u,activeIndicatorType:p,onChangeType:d})=>{const{t:h}=Te.useTranslation(),[v,x]=b.useState(!1);return b.useEffect(()=>{x(o==i)},[o,i]),m.jsxs(mo.motion.div,{className:es.indicatorsSubCategory,initial:{height:"43px"},animate:{height:v?"auto":"43px"},transition:{duration:.4},children:[m.jsx("button",{onClick:()=>s(i),children:m.jsxs("h3",{style:{color:v?r:n},children:[m.jsx("span",{style:{color:v?r:n},children:v?"-":"+"}),m.jsx("span",{style:{marginLeft:12,color:v?r:n},children:h(e)})]})}),t&&m.jsx("div",{className:es.list,children:t==null?void 0:t.map((f,C)=>m.jsx(bo,{indicator:f,defaultColor:n,activeColor:r,activeIndicator:l,onClickIndicator:c,multiple:u,activeIndicatorType:p,onChangeType:d},"indicator"+C))})]})};di.propTypes={subcName:a.string,indicators:a.array,activeColor:a.string,defaultColor:a.string,activeSubCategory:a.string,id:a.string,activeIndicator:a.oneOfType([a.object,a.array]),multiple:a.bool,onClickSubCategory:a.func,onClickIndicator:a.func};const pi=({cat:e,id:t,activeColor:n,defaultColor:r,onClickCategory:o,activeCategory:s,activeSubCategory:i,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:p,activeIndicatorType:d,onChangeType:h})=>{var C;const{t:v}=Te.useTranslation(),[x,f]=b.useState(!1);return b.useEffect(()=>{f(s===t)},[s,t]),m.jsxs(mo.motion.div,{className:Wr.indicatorsCategory,initial:{height:"53px"},animate:{height:x?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:x?`1px solid ${n}`:"0px",marginBottom:x?"20px":"0px"},children:[m.jsxs("h2",{className:`${Wr.title}`,onClick:()=>o(t),children:[m.jsx("span",{style:{color:x?n:r},children:x?"-":"+"}),m.jsx("span",{style:{marginLeft:12,color:x?n:r},children:v(e.name)})]}),e.subcategories?e.subcategories.map(({name:S,subcategory:j,indicators:w},R)=>m.jsx(di,{id:j,activeSubCategory:i,subcName:S,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:p,activeColor:n,defaultColor:r,indicators:w,activeIndicatorType:d,onChangeType:h},`subcKey ${R}`)):m.jsx("div",{className:Wr.list,children:(C=e.indicators)==null?void 0:C.map((S,j)=>m.jsx(bo,{indicator:S,values:S.type=="twoUnits"&&S.values,activeColor:n,defaultColor:r,activeIndicator:c,onClickIndicator:u,multiple:p,activeIndicatorType:d,onChangeType:h},`indicator${j}`))})]})};pi.propTypes={cat:a.object,id:a.string,onChange:a.func,onClickCategory:a.func,activeCategory:a.string,activeSubCategory:a.string,onClickSubCategory:a.func,onClickIndicator:a.func,activeIndicator:a.oneOfType([a.object,a.array]),multiple:a.bool,activeColor:a.string,defaultColor:a.string};const rc="_indicatorsList_fklyu_2",oc="_title_fklyu_6",ts={indicatorsList:rc,title:oc},hi=({indicators:e,activeColor:t,defaultColor:n="#92898A",onChange:r,multiple:o=!1,defaultValue:s=null,changeIndType:i,activeIndicatorType:l})=>{const{t:c}=Te.useTranslation(),[u,p]=b.useState(),[d,h]=b.useState(),[v,x]=b.useState(),f=R=>{p(u==R?null:R)},C=R=>{h(d==R?null:R)},S=({indicator:R})=>{console.log("onClickIndicator: ",R),j(R)},j=R=>{if(!o)x((v==null?void 0:v.name)==R.name?null:R);else{let _=v&&v.length>0?[...v]:[];x(_!=null&&_.some(F=>F.name==R.name)?_.filter(F=>F.name!=String(R.name)):[..._,R]),R.type=="both"&&i("cat")}};b.useEffect(()=>{console.log("activeindicator changed to: ",v),r&&typeof r=="function"&&v&&r({activeIndicator:v})},[v]),b.useLayoutEffect(()=>{if(s&&!v)if(o&&s&&Array.isArray(s)){let R=v&&v.length>0?[...v]:[];x([...R,...s]),w(s[0].name)}else j(s),w(s.name)},[]);const w=R=>{const _=e.find(F=>{if(F.subcategories){let y=F.subcategories.find(E=>E.indicators.find(T=>T.name==R));if(y)return h(y.subcategory),y}else return F.indicators.some(y=>y.name==R)});_&&p(_.category)};return m.jsxs("div",{className:ts.indicatorsList,children:[m.jsx("h2",{className:ts.title,style:{color:n},children:c("indicators.indicators")}),e.map((R,_)=>m.jsx(pi,{id:R.category,cat:R,onClickCategory:f,activeCategory:u,onClickSubCategory:C,activeSubCategory:d,onClickIndicator:S,activeIndicator:v,activeColor:t,defaultColor:n,multiple:o,onChange:r,onChangeType:i,activeIndicatorType:l},`categoryKey${_}`))]})};hi.propTypes={indicators:a.arrayOf(a.object),activeColor:a.string,defaultColor:a.string,onChange:a.func,changeIndType:a.func,multiple:a.bool,activeIndicator:a.oneOfType([a.object,a.array]),defaultValue:a.oneOfType([a.object,a.array]),activeIndicatorType:a.string};const sc="_langSelector_1of0g_2",ic="_currentLang_1of0g_7",ac="_arrow_1of0g_19",lc="_prevImg_1of0g_22",cc="_langMenu_1of0g_26",Zt={langSelector:sc,currentLang:ic,arrow:ac,prevImg:lc,langMenu:cc},mi=({langs:e,arrow:t,imgPrev:n})=>{const[r,o]=b.useState(!1),{i18n:s}=Te.useTranslation(),i=e.find(c=>c.code==s.language),l=c=>{s.changeLanguage(c),o(!1)};return m.jsxs("div",{className:Zt.langSelector,children:[m.jsxs("div",{className:Zt.currentLang,onClick:()=>{o(!r)},children:[n&&m.jsx("img",{className:Zt.prevImg,src:n}),i.titleSelected||i.title,m.jsx("img",{src:t,className:Zt.arrow})]}),r&&m.jsx("div",{className:Zt.langMenu,children:e.map(c=>m.jsx("button",{className:i.code==c.code?Zt.active:"",onClick:()=>l(c.code),children:c.title},c.code))})]})};mi.propTypes={langs:a.arrayOf(a.shape({code:a.string,title:a.string,titleSelected:a.string})),color:a.string,bckColor:a.string,hoverColor:a.string,arrow:a.object,imgPrev:a.object};const uc="_legendContainer_atg3j_3",fc="_closeButton_atg3j_18",dc="_titleContainer_atg3j_46",pc="_infoContainer_atg3j_52",hc="_titleLegendList_atg3j_63",mc="_legendListContainer_atg3j_70",gc="_gridContainer_atg3j_70",yc="_elementLegendContainer_atg3j_76",vc="_colorDot_atg3j_82",bc="_absoluteValueContainer_atg3j_88",xc="_absoluteValueColor_atg3j_91",_c="_absoluteValueText_atg3j_96",Cc="_moreInfoContainer_atg3j_108",We={legendContainer:uc,closeButton:fc,titleContainer:dc,infoContainer:pc,titleLegendList:hc,legendListContainer:mc,gridContainer:gc,elementLegendContainer:yc,colorDot:vc,absoluteValueContainer:bc,absoluteValueColor:xc,absoluteValueText:_c,moreInfoContainer:Cc},gi=({containerStyles:e,title:t,infoList:n,legendList:r,legendListTitle:o,absoluteValue:s,onClickMoreInfo:i,buttonTitle:l,onClickClose:c})=>{const{t:u}=Te.useTranslation();return m.jsxs("div",{style:e?{...e}:{},className:`${We.legendContainer}`,children:[m.jsx("button",{className:We.closeButton,onClick:c}),t&&m.jsx("div",{className:We.titleContainer,children:m.jsx("h2",{children:t})}),n&&n.length>0&&m.jsx("div",{className:We.infoContainer,children:m.jsx("ul",{children:n.map(({title:p,value:d})=>m.jsxs("li",{children:[m.jsx("h3",{className:We.title,children:`${p}:`}),m.jsxs("span",{className:We.value,children:[" ",d]})]},t))})}),m.jsx("h3",{className:We.titleLegendList,children:o?m.jsx(Te.Trans,{i18nKey:o,components:{sup:m.jsx("sup",{})}}):u("mainUse")}),m.jsx("div",{className:We.legendListContainer,children:s?m.jsxs("div",{className:We.absoluteValueContainer,children:[m.jsx("div",{className:We.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${s.maxColor} 0%, ${s.minColor} 100%)`}}),m.jsxs("div",{className:We.absoluteValueText,children:[m.jsxs("span",{children:[s.maxValue," ",u(s.unit)]}),m.jsxs("span",{children:[s.minValue," ",u(s.unit)]})]})]}):r&&r.length>0&&m.jsx("div",{className:We.gridContainer,children:r.map(({title:p,color:d})=>m.jsxs("div",{className:We.elementLegendContainer,children:[m.jsx("div",{className:We.colorDot,style:{backgroundColor:d}}),m.jsxs("div",{className:We.titleLegendElement,children:[u(p)," "]})]},t))})}),i&&m.jsx("button",{className:We.moreInfoContainer,onClick:i,children:l||u("moreInformation")})]})};gi.propTypes={title:a.string,containerStyles:a.object,infoList:a.arrayOf(a.shape({title:a.string.isRequired,value:a.oneOfType([a.string,a.number])})),legendList:a.arrayOf(a.shape({title:a.string,color:a.string})),legendListTitle:a.string,absoluteValue:a.shape({maxColor:a.string,minColor:a.string,maxValue:a.number,minValue:a.number}),onClickMoreInfo:a.func,buttonTitle:a.string,onClickClose:a.func};const Sc="_logo_1ewa6_2",ns={logo:Sc},yi=({src:e,alt:t,href:n})=>{const{t:r}=Te.useTranslation(),o=m.jsx("img",{src:e,alt:r(t)});return n?m.jsx("div",{className:ns.logo,children:m.jsx("a",{href:n,children:o})}):m.jsx("div",{className:ns.logo,children:o})};yi.propTypes={src:a.string.isRequired,alt:a.string.isRequired,href:a.string,className:a.string};const Tc=X.createContext(null);function wc(e,t){const n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,s=Array.isArray(t)?t[1]:t?t.y:0;return n===o&&r===s}function Qe(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Qe(e[n],t[n]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!t.hasOwnProperty(o)||!Qe(e[o],t[o]))return!1;return!0}return!1}function Ec(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function rs(e,t){if(!e.getProjection)return;const n=e.getProjection(),r=t.getProjection();Qe(n,r)||t.setProjection(n)}function os(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function ss(e,t){const n=t.viewState||t;let r=!1;if("zoom"in n){const o=e.zoom;e.zoom=n.zoom,r=r||o!==e.zoom}if("bearing"in n){const o=e.bearing;e.bearing=n.bearing,r=r||o!==e.bearing}if("pitch"in n){const o=e.pitch;e.pitch=n.pitch,r=r||o!==e.pitch}if(n.padding&&!e.isPaddingEqual(n.padding)&&(r=!0,e.padding=n.padding),"longitude"in n&&"latitude"in n){const o=e.center;e.center=new o.constructor(n.longitude,n.latitude),r=r||o!==e.center}return r}const kc=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function is(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const r of e.layers)t[r.id]=r;const n=e.layers.map(r=>{let o=null;"interactive"in r&&(o=Object.assign({},r),delete o.interactive);const s=t[r.ref];if(s){o=o||Object.assign({},r),delete o.ref;for(const i of kc)i in s&&(o[i]=s[i])}return o||r});return{...e,layers:n}}const as={version:8,sources:{},layers:[]},ls={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},Hr={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},cs={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},Rc=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],Oc=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class ln{constructor(t,n,r){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=o=>{const s=this.props[cs[o.type]];s?s(o):o.type==="error"&&console.error(o.error)},this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const s=this.props[ls[o.type]];s&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),s(o),delete o.features)},this._onCameraEvent=o=>{if(!this._internalUpdate){const s=this.props[Hr[o.type]];s&&s(o)}o.type in this._deferredEvents&&(this._deferredEvents[o.type]=!1)},this._MapClass=t,this.props=n,this._initialize(r)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const n=this.props;this.props=t;const r=this._updateSettings(t,n);r&&this._createShadowTransform(this._map);const o=this._updateSize(t),s=this._updateViewState(t,!0);this._updateStyle(t,n),this._updateStyleComponents(t,n),this._updateHandlers(t,n),(r||o||s&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=ln.savedMaps.pop();if(!r)return null;const o=r.map,s=o.getContainer();for(n.className=s.className;s.childNodes.length>0;)n.appendChild(s.childNodes[0]);o._container=n,r.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:i}=t;return i&&(i.bounds?o.fitBounds(i.bounds,{...i.fitBoundsOptions,duration:0}):r._updateViewState(i,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=as}=n,o={...n,...n.initialViewState,accessToken:n.mapboxAccessToken||jc()||null,container:t,style:is(r)},s=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),n.gl){const p=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=p,n.gl)}const i=new this._MapClass(o);s.padding&&i.setPadding(s.padding),n.cursor&&(i.getCanvas().style.cursor=n.cursor),this._createShadowTransform(i);const l=i._render;i._render=p=>{this._inRender=!0,l.call(i,p),this._inRender=!1};const c=i._renderTaskQueue.run;i._renderTaskQueue.run=p=>{c.call(i._renderTaskQueue,p),this._onBeforeRepaint()},i.on("render",()=>this._onAfterRepaint());const u=i.fire;i.fire=this._fireEvent.bind(this,u),i.on("resize",()=>{this._renderTransform.resize(i.transform.width,i.transform.height)}),i.on("styledata",()=>{this._updateStyleComponents(this.props,{}),rs(i.transform,this._renderTransform)}),i.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const p in ls)i.on(p,this._onPointerEvent);for(const p in Hr)i.on(p,this._onCameraEvent);for(const p in cs)i.on(p,this._onEvent);this._map=i}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),ln.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const n=Ec(t.transform);t.painter.transform=n,this._renderTransform=n}_updateSize(t){const{viewState:n}=t;if(n){const r=this._map;if(n.width!==r.transform.width||n.height!==r.transform.height)return r.resize(),!0}return!1}_updateViewState(t,n){if(this._internalUpdate)return!1;const r=this._map,o=this._renderTransform,{zoom:s,pitch:i,bearing:l}=o,c=r.isMoving();c&&(o.cameraElevationReference="sea");const u=ss(o,{...os(r.transform),...t});if(c&&(o.cameraElevationReference="ground"),u&&n){const p=this._deferredEvents;p.move=!0,p.zoom||(p.zoom=s!==o.zoom),p.rotate||(p.rotate=l!==o.bearing),p.pitch||(p.pitch=i!==o.pitch)}return c||ss(r.transform,t),u}_updateSettings(t,n){const r=this._map;let o=!1;for(const s of Rc)if(s in t&&!Qe(t[s],n[s])){o=!0;const i=r[`set${s[0].toUpperCase()}${s.slice(1)}`];i==null||i.call(r,t[s])}return o}_updateStyle(t,n){if(t.cursor!==n.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==n.mapStyle){const{mapStyle:r=as,styleDiffing:o=!0}=t,s={diff:o};return"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(is(r),s),!0}return!1}_updateStyleComponents(t,n){const r=this._map;let o=!1;return r.isStyleLoaded()&&("light"in t&&r.setLight&&!Qe(t.light,n.light)&&(o=!0,r.setLight(t.light)),"fog"in t&&r.setFog&&!Qe(t.fog,n.fog)&&(o=!0,r.setFog(t.fog)),"terrain"in t&&r.setTerrain&&!Qe(t.terrain,n.terrain)&&(!t.terrain||r.getSource(t.terrain.source))&&(o=!0,r.setTerrain(t.terrain))),o}_updateHandlers(t,n){const r=this._map;let o=!1;for(const s of Oc){const i=t[s]??!0,l=n[s]??!0;Qe(i,l)||(o=!0,i?r[s].enable(i):r[s].disable())}return o}_queryRenderedFeatures(t){const n=this._map,r=n.transform,{interactiveLayerIds:o=[]}=this.props;try{return n.transform=this._renderTransform,n.queryRenderedFeatures(t,{layers:o.filter(n.getLayer.bind(n))})}catch{return[]}finally{n.transform=r}}_updateHover(t){var o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const s=t.type,i=((o=this._hoveredFeatures)==null?void 0:o.length)>0,l=this._queryRenderedFeatures(t.point),c=l.length>0;!c&&i&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,c&&!i&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=s}else this._hoveredFeatures=null}_fireEvent(t,n,r){const o=this._map,s=o.transform,i=typeof n=="string"?n:n.type;return i==="move"&&this._updateViewState(this.props,!1),i in Hr&&(typeof n=="object"&&(n.viewState=os(s)),this._map.isMoving())?(o.transform=this._renderTransform,t.call(o,n,r),o.transform=s,o):(t.call(o,n,r),o)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const r in this._deferredEvents)this._deferredEvents[r]&&t.fire(r);this._internalUpdate=!1;const n=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{rs(this._renderTransform,n),t.transform=n}}}ln.savedMaps=[];function jc(){let e=null;if(typeof location<"u"){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||process.env.MapboxAccessToken}catch{}try{e=e||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}const $c=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Pc(e){if(!e)return null;const t=e.map,n={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:r=>{const o=t.transform;t.transform=e.transform;const s=t.project(r);return t.transform=o,s},unproject:r=>{const o=t.transform;t.transform=e.transform;const s=t.unproject(r);return t.transform=o,s},queryTerrainElevation:(r,o)=>{const s=t.transform;t.transform=e.transform;const i=t.queryTerrainElevation(r,o);return t.transform=s,i},queryRenderedFeatures:(r,o)=>{const s=t.transform;t.transform=e.transform;const i=t.queryRenderedFeatures(r,o);return t.transform=s,i}};for(const r of Mc(t))!(r in n)&&!$c.includes(r)&&(n[r]=t[r].bind(t));return n}function Mc(e){const t=new Set;let n=e;for(;n;){for(const r of Object.getOwnPropertyNames(n))r[0]!=="_"&&typeof e[r]=="function"&&r!=="fire"&&r!=="setEventedParent"&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}const Lc=typeof document<"u"?b.useLayoutEffect:b.useEffect,Ac=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function Nc(e,t){for(const r of Ac)r in t&&(e[r]=t[r]);const{RTLTextPlugin:n="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(n,r=>{r&&console.error(r)},!0)}const fn=X.createContext(null);function Ic(e,t){const n=b.useContext(Tc),[r,o]=b.useState(null),s=b.useRef(),{current:i}=b.useRef({mapLib:null,map:null});b.useEffect(()=>{const u=e.mapLib;let p=!0,d;return Promise.resolve(u||import("mapbox-gl")).then(h=>{if(!p)return;if(!h)throw new Error("Invalid mapLib");const v="Map"in h?h:h.default;if(!v.Map)throw new Error("Invalid mapLib");Nc(v,e),e.reuseMaps&&(d=ln.reuse(e,s.current)),d||(d=new ln(v.Map,e,s.current)),i.map=Pc(d),i.mapLib=v,o(d),n==null||n.onMapMount(i.map,e.id)}).catch(h=>{const{onError:v}=e;v?v({type:"error",target:null,error:h}):console.error(h)}),()=>{p=!1,d&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?d.recycle():d.destroy())}},[]),Lc(()=>{r&&r.setProps(e)}),b.useImperativeHandle(t,()=>i.map,[r]);const l=b.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return X.createElement("div",{id:e.id,ref:s,style:l},r&&X.createElement(fn.Provider,{value:i},X.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const Dc=X.forwardRef(Ic),Fc=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function It(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!Fc.test(r)?n[r]=`${o}px`:n[r]=o}}function vi(e,t){if(e===t)return null;const n=us(e),r=us(t),o=[];for(const s of r)n.has(s)||o.push(s);for(const s of n)r.has(s)||o.push(s);return o.length===0?null:o}function us(e){return new Set(e?e.trim().split(/\s+/):[])}b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(fn),o=b.useRef({props:e}),s=b.useMemo(()=>{let S=!1;X.Children.forEach(e.children,R=>{R&&(S=!0)});const j={...e,element:S?document.createElement("div"):null},w=new r.Marker(j);return w.setLngLat([e.longitude,e.latitude]),w.getElement().addEventListener("click",R=>{var _,F;(F=(_=o.current.props).onClick)==null||F.call(_,{type:"click",target:w,originalEvent:R})}),w.on("dragstart",R=>{var F,y;const _=R;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDragStart)==null||y.call(F,_)}),w.on("drag",R=>{var F,y;const _=R;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDrag)==null||y.call(F,_)}),w.on("dragend",R=>{var F,y;const _=R;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDragEnd)==null||y.call(F,_)}),w},[]);b.useEffect(()=>(s.addTo(n.getMap()),()=>{s.remove()}),[]);const{longitude:i,latitude:l,offset:c,style:u,draggable:p=!1,popup:d=null,rotation:h=0,rotationAlignment:v="auto",pitchAlignment:x="auto"}=e;b.useEffect(()=>{It(s.getElement(),u)},[u]),b.useImperativeHandle(t,()=>s,[]);const f=o.current.props;(s.getLngLat().lng!==i||s.getLngLat().lat!==l)&&s.setLngLat([i,l]),c&&!wc(s.getOffset(),c)&&s.setOffset(c),s.isDraggable()!==p&&s.setDraggable(p),s.getRotation()!==h&&s.setRotation(h),s.getRotationAlignment()!==v&&s.setRotationAlignment(v),s.getPitchAlignment()!==x&&s.setPitchAlignment(x),s.getPopup()!==d&&s.setPopup(d);const C=vi(f.className,e.className);if(C)for(const S of C)s.toggleClassName(S);return o.current.props=e,mr.createPortal(e.children,s.getElement())}));const zc=b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(fn),o=b.useMemo(()=>document.createElement("div"),[]),s=b.useRef({props:e}),i=b.useMemo(()=>{const l={...e},c=new r.Popup(l);return c.setLngLat([e.longitude,e.latitude]),c.once("open",u=>{var p,d;(d=(p=s.current.props).onOpen)==null||d.call(p,u)}),c},[]);if(b.useEffect(()=>{const l=c=>{var u,p;(p=(u=s.current.props).onClose)==null||p.call(u,c)};return i.on("close",l),i.setDOMContent(o).addTo(n.getMap()),()=>{i.off("close",l),i.isOpen()&&i.remove()}},[]),b.useEffect(()=>{It(i.getElement(),e.style)},[e.style]),b.useImperativeHandle(t,()=>i,[]),i.isOpen()){const l=s.current.props;(i.getLngLat().lng!==e.longitude||i.getLngLat().lat!==e.latitude)&&i.setLngLat([e.longitude,e.latitude]),e.offset&&!Qe(l.offset,e.offset)&&(i.options.anchor=e.anchor,i.setOffset(e.offset)),(l.anchor!==e.anchor||l.maxWidth!==e.maxWidth)&&i.setMaxWidth(e.maxWidth);const c=vi(l.className,e.className);if(c)for(const u of c)i.toggleClassName(u);s.current.props=e}return mr.createPortal(e.children,o)}));function Nn(e,t,n,r){const o=b.useContext(fn),s=b.useMemo(()=>e(o),[]);return b.useEffect(()=>{const i=t,l=typeof t=="function"?t:null,{map:c}=o;return c.hasControl(s)||c.addControl(s,i==null?void 0:i.position),()=>{l&&l(o),c.hasControl(s)&&c.removeControl(s)}},[]),s}function Bc(e){const t=Nn(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return b.useEffect(()=>{It(t._container,e.style)},[e.style]),null}b.memo(Bc);function Uc(e){const t=Nn(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return b.useEffect(()=>{It(t._controlContainer,e.style)},[e.style]),null}b.memo(Uc);function Vc(e,t){const n=b.useRef({props:e}),r=Nn(({mapLib:o})=>{const s=new o.GeolocateControl(e),i=s._setupUI.bind(s);return s._setupUI=l=>{s._container.hasChildNodes()||i(l)},s.on("geolocate",l=>{var c,u;(u=(c=n.current.props).onGeolocate)==null||u.call(c,l)}),s.on("error",l=>{var c,u;(u=(c=n.current.props).onError)==null||u.call(c,l)}),s.on("outofmaxbounds",l=>{var c,u;(u=(c=n.current.props).onOutOfMaxBounds)==null||u.call(c,l)}),s.on("trackuserlocationstart",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationStart)==null||u.call(c,l)}),s.on("trackuserlocationend",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationEnd)==null||u.call(c,l)}),s},{position:e.position});return n.current.props=e,b.useImperativeHandle(t,()=>r,[]),b.useEffect(()=>{It(r._container,e.style)},[e.style]),null}b.memo(b.forwardRef(Vc));function qc(e){const t=Nn(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return b.useEffect(()=>{It(t._container,e.style)},[e.style]),null}const Wc=b.memo(qc);function Hc(e){const t=Nn(({mapLib:s})=>new s.ScaleControl(e),{position:e.position}),n=b.useRef(e),r=n.current;n.current=e;const{style:o}=e;return e.maxWidth!==void 0&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==r.unit&&t.setUnit(e.unit),b.useEffect(()=>{It(t._container,o)},[o]),null}b.memo(Hc);function ur(e,t){if(!e)throw new Error(t)}let Kc=0;function Yc(e,t,n){if(e.style&&e.style._loaded){const r={...n};return delete r.id,delete r.children,e.addSource(t,r),e.getSource(t)}return null}function Zc(e,t,n){ur(t.id===n.id,"source id changed"),ur(t.type===n.type,"source type changed");let r="",o=0;for(const i in t)i!=="children"&&i!=="id"&&!Qe(n[i],t[i])&&(r=i,o++);if(!o)return;const s=t.type;s==="geojson"?e.setData(t.data):s==="image"?e.updateImage({url:t.url,coordinates:t.coordinates}):"setCoordinates"in e&&o===1&&r==="coordinates"?e.setCoordinates(t.coordinates):"setUrl"in e&&r==="url"?e.setUrl(t.url):"setTiles"in e&&r==="tiles"?e.setTiles(t.tiles):console.warn(`Unable to update <Source> prop: ${r}`)}function Gc(e){const t=b.useContext(fn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-source-${Kc++}`,[]);b.useEffect(()=>{if(t){const i=()=>setTimeout(()=>r(l=>l+1),0);return t.on("styledata",i),i(),()=>{var l;if(t.off("styledata",i),t.style&&t.style._loaded&&t.getSource(o)){const c=(l=t.getStyle())==null?void 0:l.layers;if(c)for(const u of c)u.source===o&&t.removeLayer(u.id);t.removeSource(o)}}}},[t]);let s=t&&t.style&&t.getSource(o);return s?Zc(s,e,n.current):s=Yc(t,o,e),n.current=e,s&&X.Children.map(e.children,i=>i&&b.cloneElement(i,{source:o}))||null}function Jc(e,t,n,r){if(ur(n.id===r.id,"layer id changed"),ur(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:s={},filter:i,minzoom:l,maxzoom:c,beforeId:u}=n;if(u!==r.beforeId&&e.moveLayer(t,u),o!==r.layout){const p=r.layout||{};for(const d in o)Qe(o[d],p[d])||e.setLayoutProperty(t,d,o[d]);for(const d in p)o.hasOwnProperty(d)||e.setLayoutProperty(t,d,void 0)}if(s!==r.paint){const p=r.paint||{};for(const d in s)Qe(s[d],p[d])||e.setPaintProperty(t,d,s[d]);for(const d in p)s.hasOwnProperty(d)||e.setPaintProperty(t,d,void 0)}Qe(i,r.filter)||e.setFilter(t,i),(l!==r.minzoom||c!==r.maxzoom)&&e.setLayerZoomRange(t,l,c)}function Xc(e,t,n){if(e.style&&e.style._loaded&&(!("source"in n)||e.getSource(n.source))){const r={...n,id:t};delete r.beforeId,e.addLayer(r,n.beforeId)}}let Qc=0;function eu(e){const t=b.useContext(fn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-layer-${Qc++}`,[]);if(b.useEffect(()=>{if(t){const i=()=>r(l=>l+1);return t.on("styledata",i),i(),()=>{t.off("styledata",i),t.style&&t.style._loaded&&t.getLayer(o)&&t.removeLayer(o)}}},[t]),t&&t.style&&t.getLayer(o))try{Jc(t,o,e,n.current)}catch(i){console.warn(i)}else Xc(t,o,e);return n.current=e,null}const tu="_mapContainer_84pkf_2",nu={mapContainer:tu};Ea.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const bi=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:s="",onClick:i="",interactiveLayers:l=[],popUp:c=!1,sources:u=[],layers:p=[]})=>{const d=b.useRef(),[h,v]=b.useState(null),x=kn.useSelector(f=>f.mapState.showTexts);return b.useEffect(()=>{if(d.current){const f=d.current.getMap();f.getStyle().layers.map(S=>{S.type=="symbol"&&S.id!="professionals"&&(x?f.setLayoutProperty(S.id,"visibility","visible"):f.setLayoutProperty(S.id,"visibility","none"))})}},[x]),m.jsx("div",{className:`${nu.mapContainer}`,style:s,children:m.jsxs(Dc,{initialViewState:e,ref:d,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:i,interactiveLayerIds:l,children:[u.length&&u.map((f,C)=>m.jsx(Gc,{...f,children:p.length&&p.map((S,j)=>{if(S.sourceId==f.id)return m.jsx(eu,{...S.layer,beforeId:o},j)})},C)),m.jsx(Wc,{position:"bottom-right",visualizePitch:!0}),c&&h&&m.jsx(zc,{longitude:c.longitude,latitude:c.latitude,anchor:c.anchor,onClose:()=>v(null),children:c.content})]})})};bi.propTypes={initialView:a.shape({latitude:a.number.isRequired,longitude:a.number.isRequired,zoom:a.number.isRequired}),mapStyle:a.object,firstSymbolLayer:a.string,cssProps:a.object,style:a.object,maxZoom:a.number,minZoom:a.number,onClick:a.func,interactiveLayers:a.array,popUp:a.shape({latitude:a.number,longitude:a.number,anchor:a.string,content:a.element}),textsUrl:a.string,sources:a.arrayOf(a.shape({id:a.string,type:a.string,url:a.string,data:a.object})),layers:a.arrayOf(a.shape({sourceId:a.string,layer:a.shape({id:a.string,type:a.string,sourceLayer:a.string,minZoom:a.number,maxZoom:a.number,paint:a.object})}))};var et=Uint8Array,rn=Uint16Array,ru=Int32Array,xi=new et([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),_i=new et([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ou=new et([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ci=function(e,t){for(var n=new rn(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var o=new ru(n[30]),r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)o[s]=s-n[r]<<5|r;return{b:n,r:o}},Si=Ci(xi,2),Ti=Si.b,su=Si.r;Ti[28]=258,su[258]=28;var iu=Ci(_i,0),au=iu.b,io=new rn(32768);for(var Ee=0;Ee<32768;++Ee){var St=(Ee&43690)>>1|(Ee&21845)<<1;St=(St&52428)>>2|(St&13107)<<2,St=(St&61680)>>4|(St&3855)<<4,io[Ee]=((St&65280)>>8|(St&255)<<8)>>1}var Rn=function(e,t,n){for(var r=e.length,o=0,s=new rn(t);o<r;++o)e[o]&&++s[e[o]-1];var i=new rn(t);for(o=1;o<t;++o)i[o]=i[o-1]+s[o-1]<<1;var l;if(n){l=new rn(1<<t);var c=15-t;for(o=0;o<r;++o)if(e[o])for(var u=o<<4|e[o],p=t-e[o],d=i[e[o]-1]++<<p,h=d|(1<<p)-1;d<=h;++d)l[io[d]>>c]=u}else for(l=new rn(r),o=0;o<r;++o)e[o]&&(l[o]=io[i[e[o]-1]++]>>15-e[o]);return l},In=new et(288);for(var Ee=0;Ee<144;++Ee)In[Ee]=8;for(var Ee=144;Ee<256;++Ee)In[Ee]=9;for(var Ee=256;Ee<280;++Ee)In[Ee]=7;for(var Ee=280;Ee<288;++Ee)In[Ee]=8;var wi=new et(32);for(var Ee=0;Ee<32;++Ee)wi[Ee]=5;var lu=Rn(In,9,1),cu=Rn(wi,5,1),Kr=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},ct=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},Yr=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},uu=function(e){return(e+7)/8|0},fu=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new et(e.subarray(t,n))},du=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Xe=function(e,t,n){var r=new Error(t||du[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Xe),!n)throw r;return r},xo=function(e,t,n,r){var o=e.length,s=0;if(!o||t.f&&!t.l)return n||new et(0);var i=!n,l=i||t.i!=2,c=t.i;i&&(n=new et(o*3));var u=function(be){var P=n.length;if(be>P){var xe=new et(Math.max(P*2,be));xe.set(n),n=xe}},p=t.f||0,d=t.p||0,h=t.b||0,v=t.l,x=t.d,f=t.m,C=t.n,S=o*8;do{if(!v){p=ct(e,d,1);var j=ct(e,d+1,3);if(d+=3,j)if(j==1)v=lu,x=cu,f=9,C=5;else if(j==2){var F=ct(e,d,31)+257,y=ct(e,d+10,15)+4,E=F+ct(e,d+5,31)+1;d+=14;for(var T=new et(E),$=new et(19),I=0;I<y;++I)$[ou[I]]=ct(e,d+I*3,7);d+=y*3;for(var Q=Kr($),U=(1<<Q)-1,Z=Rn($,Q,1),I=0;I<E;){var q=Z[ct(e,d,U)];d+=q&15;var w=q>>4;if(w<16)T[I++]=w;else{var ie=0,oe=0;for(w==16?(oe=3+ct(e,d,3),d+=2,ie=T[I-1]):w==17?(oe=3+ct(e,d,7),d+=3):w==18&&(oe=11+ct(e,d,127),d+=7);oe--;)T[I++]=ie}}var ke=T.subarray(0,F),$e=T.subarray(F);f=Kr(ke),C=Kr($e),v=Rn(ke,f,1),x=Rn($e,C,1)}else Xe(1);else{var w=uu(d)+4,R=e[w-4]|e[w-3]<<8,_=w+R;if(_>o){c&&Xe(0);break}l&&u(h+R),n.set(e.subarray(w,_),h),t.b=h+=R,t.p=d=_*8,t.f=p;continue}if(d>S){c&&Xe(0);break}}l&&u(h+131072);for(var O=(1<<f)-1,A=(1<<C)-1,ee=d;;ee=d){var ie=v[Yr(e,d)&O],W=ie>>4;if(d+=ie&15,d>S){c&&Xe(0);break}if(ie||Xe(2),W<256)n[h++]=W;else if(W==256){ee=d,v=null;break}else{var z=W-254;if(W>264){var I=W-257,te=xi[I];z=ct(e,d,(1<<te)-1)+Ti[I],d+=te}var Y=x[Yr(e,d)&A],K=Y>>4;Y||Xe(3),d+=Y&15;var $e=au[K];if(K>3){var te=_i[K];$e+=Yr(e,d)&(1<<te)-1,d+=te}if(d>S){c&&Xe(0);break}l&&u(h+131072);var V=h+z;if(h<$e){var G=s-$e,re=Math.min($e,V);for(G+h<0&&Xe(3);h<re;++h)n[h]=r[G+h]}for(;h<V;++h)n[h]=n[h-$e]}}t.l=v,t.p=ee,t.b=h,t.f=p,v&&(p=1,t.m=f,t.d=x,t.n=C)}while(!p);return h!=n.length&&i?fu(n,0,h):n.subarray(0,h)},pu=new et(0),hu=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Xe(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(t&2)},mu=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},gu=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Xe(6,"invalid zlib data"),(e[1]>>5&1)==1&&Xe(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function yu(e,t){return xo(e,{i:2},t,t)}function vu(e,t){var n=hu(e);return n+8>e.length&&Xe(6,"invalid gzip data"),xo(e.subarray(n,-8),{i:2},new et(mu(e)),t)}function bu(e,t){return xo(e.subarray(gu(e),-4),{i:2},t,t)}function xu(e,t){return e[0]==31&&e[1]==139&&e[2]==8?vu(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?yu(e,t):bu(e,t)}var _u=typeof TextDecoder<"u"&&new TextDecoder,Cu=0;try{_u.decode(pu,{stream:!0}),Cu=1}catch{}var Su=Object.defineProperty,On=Math.pow,Se=(e,t)=>Su(e,"name",{value:t,configurable:!0}),ze=(e,t,n)=>new Promise((r,o)=>{var s=c=>{try{l(n.next(c))}catch(u){o(u)}},i=c=>{try{l(n.throw(c))}catch(u){o(u)}},l=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,i);l((n=n.apply(e,t)).next())});Se((e,t)=>{let n=!1,r="",o=L.GridLayer.extend({createTile:Se((s,i)=>{let l=document.createElement("img"),c=new AbortController,u=c.signal;return l.cancel=()=>{c.abort()},n||(e.getHeader().then(p=>{p.tileType===1?console.error("Error: archive contains MVT vector tiles, but leafletRasterLayer is for displaying raster tiles. See https://github.com/protomaps/PMTiles/tree/main/js for details."):p.tileType===2?r="image/png":p.tileType===3?r="image/jpeg":p.tileType===4?r="image/webp":p.tileType===5&&(r="image/avif")}),n=!0),e.getZxy(s.z,s.x,s.y,u).then(p=>{if(p){let d=new Blob([p.data],{type:r}),h=window.URL.createObjectURL(d);l.src=h,l.cancel=void 0,i(void 0,l)}}).catch(p=>{if(p.name!=="AbortError")throw p}),l},"createTile"),_removeTile:Se(function(s){let i=this._tiles[s];i&&(i.el.cancel&&i.el.cancel(),i.el.width=0,i.el.height=0,i.el.deleted=!0,L.DomUtil.remove(i.el),delete this._tiles[s],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(s)}))},"_removeTile")});return new o(t)},"leafletRasterLayer");var Tu=Se(e=>(t,n)=>{if(n instanceof AbortController)return e(t,n);let r=new AbortController;return e(t,r).then(o=>n(void 0,o.data,o.cacheControl||"",o.expires||""),o=>n(o)).catch(o=>n(o)),{cancel:Se(()=>r.abort(),"cancel")}},"v3compat"),Ei=class{constructor(t){this.tilev4=Se((n,r)=>ze(this,null,function*(){if(n.type==="json"){let v=n.url.substr(10),x=this.tiles.get(v);if(x||(x=new fs(v),this.tiles.set(v,x)),this.metadata)return{data:yield x.getTileJson(n.url)};let f=yield x.getHeader();return(f.minLon>=f.maxLon||f.minLat>=f.maxLat)&&console.error(`Bounds of PMTiles archive ${f.minLon},${f.minLat},${f.maxLon},${f.maxLat} are not valid.`),{data:{tiles:[`${n.url}/{z}/{x}/{y}`],minzoom:f.minZoom,maxzoom:f.maxZoom,bounds:[f.minLon,f.minLat,f.maxLon,f.maxLat]}}}let o=new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/),s=n.url.match(o);if(!s)throw new Error("Invalid PMTiles protocol URL");let i=s[1],l=this.tiles.get(i);l||(l=new fs(i),this.tiles.set(i,l));let c=s[2],u=s[3],p=s[4],d=yield l.getHeader(),h=yield l==null?void 0:l.getZxy(+c,+u,+p,r.signal);if(h)return{data:new Uint8Array(h.data),cacheControl:h.cacheControl,expires:h.expires};if(d.tileType===1){if(this.errorOnMissingTile)throw new Error("Tile not found.");return{data:new Uint8Array}}return{data:null}}),"tilev4"),this.tile=Tu(this.tilev4),this.tiles=new Map,this.metadata=(t==null?void 0:t.metadata)||!1,this.errorOnMissingTile=(t==null?void 0:t.errorOnMissingTile)||!1}add(t){this.tiles.set(t.source.getKey(),t)}get(t){return this.tiles.get(t)}};Se(Ei,"Protocol");var wu=Ei;function ki(e,t){return(t>>>0)*4294967296+(e>>>0)}Se(ki,"toNum");function Ri(e,t){let n=t.buf,r=n[t.pos++],o=(r&112)>>4;if(r<128||(r=n[t.pos++],o|=(r&127)<<3,r<128)||(r=n[t.pos++],o|=(r&127)<<10,r<128)||(r=n[t.pos++],o|=(r&127)<<17,r<128)||(r=n[t.pos++],o|=(r&127)<<24,r<128)||(r=n[t.pos++],o|=(r&1)<<31,r<128))return ki(e,o);throw new Error("Expected varint not more than 10 bytes")}Se(Ri,"readVarintRemainder");function tn(e){let t=e.buf,n=t[e.pos++],r=n&127;return n<128||(n=t[e.pos++],r|=(n&127)<<7,n<128)||(n=t[e.pos++],r|=(n&127)<<14,n<128)||(n=t[e.pos++],r|=(n&127)<<21,n<128)?r:(n=t[e.pos],r|=(n&15)<<28,Ri(r,e))}Se(tn,"readVarint");function _o(e,t,n,r){if(r===0){n===1&&(t[0]=e-1-t[0],t[1]=e-1-t[1]);let o=t[0];t[0]=t[1],t[1]=o}}Se(_o,"rotate");function Oi(e,t){let n=On(2,e),r=t,o=t,s=t,i=[0,0],l=1;for(;l<n;)r=1&s/2,o=1&(s^r),_o(l,i,r,o),i[0]+=l*r,i[1]+=l*o,s=s/4,l*=2;return[e,i[0],i[1]]}Se(Oi,"idOnLevel");var Eu=[0,1,5,21,85,341,1365,5461,21845,87381,349525,1398101,5592405,22369621,89478485,357913941,1431655765,5726623061,22906492245,91625968981,366503875925,1466015503701,5864062014805,23456248059221,93824992236885,375299968947541,0x5555555555555];function ji(e,t,n){if(e>26)throw new Error("Tile zoom level exceeds max safe number limit (26)");if(t>On(2,e)-1||n>On(2,e)-1)throw new Error("tile x/y outside zoom level bounds");let r=Eu[e],o=On(2,e),s=0,i=0,l=0,c=[t,n],u=o/2;for(;u>0;)s=(c[0]&u)>0?1:0,i=(c[1]&u)>0?1:0,l+=u*u*(3*s^i),_o(u,c,s,i),u=u/2;return r+l}Se(ji,"zxyToTileId");function ku(e){let t=0;for(let n=0;n<27;n++){let r=(1<<n)*(1<<n);if(t+r>e)return Oi(n,e-t);t+=r}throw new Error("Tile zoom level exceeds max safe number limit (26)")}Se(ku,"tileIdToZxy");var Ru=(e=>(e[e.Unknown=0]="Unknown",e[e.None=1]="None",e[e.Gzip=2]="Gzip",e[e.Brotli=3]="Brotli",e[e.Zstd=4]="Zstd",e))(Ru||{});function gr(e,t){return ze(this,null,function*(){if(t===1||t===0)return e;if(t===2){if(typeof globalThis.DecompressionStream>"u")return xu(new Uint8Array(e));let n=new Response(e).body;if(!n)throw new Error("Failed to read response stream");let r=n.pipeThrough(new globalThis.DecompressionStream("gzip"));return new Response(r).arrayBuffer()}throw new Error("Compression method not supported")})}Se(gr,"defaultDecompress");var Ou=(e=>(e[e.Unknown=0]="Unknown",e[e.Mvt=1]="Mvt",e[e.Png=2]="Png",e[e.Jpeg=3]="Jpeg",e[e.Webp=4]="Webp",e[e.Avif=5]="Avif",e))(Ou||{});function $i(e){return e===1?".mvt":e===2?".png":e===3?".jpg":e===4?".webp":e===5?".avif":""}Se($i,"tileTypeExt");var ju=127;function Pi(e,t){let n=0,r=e.length-1;for(;n<=r;){let o=r+n>>1,s=t-e[o].tileId;if(s>0)n=o+1;else if(s<0)r=o-1;else return e[o]}return r>=0&&(e[r].runLength===0||t-e[r].tileId<e[r].runLength)?e[r]:null}Se(Pi,"findTile");var $u=class{constructor(t){this.file=t}getKey(){return this.file.name}getBytes(t,n){return ze(this,null,function*(){return{data:yield this.file.slice(t,t+n).arrayBuffer()}})}};Se($u,"FileSource");var Mi=class{constructor(t,n=new Headers){this.url=t,this.customHeaders=n,this.mustReload=!1;let r="";"navigator"in globalThis&&(r=globalThis.navigator.userAgent||"");let o=r.indexOf("Windows")>-1,s=/Chrome|Chromium|Edg|OPR|Brave/.test(r);this.chromeWindowsNoCache=!1,o&&s&&(this.chromeWindowsNoCache=!0)}getKey(){return this.url}setHeaders(t){this.customHeaders=t}getBytes(t,n,r,o){return ze(this,null,function*(){let s,i;r?i=r:(s=new AbortController,i=s.signal);let l=new Headers(this.customHeaders);l.set("range",`bytes=${t}-${t+n-1}`);let c;this.mustReload?c="reload":this.chromeWindowsNoCache&&(c="no-store");let u=yield fetch(this.url,{signal:i,cache:c,headers:l});if(t===0&&u.status===416){let h=u.headers.get("Content-Range");if(!h||!h.startsWith("bytes */"))throw new Error("Missing content-length on 416 response");let v=+h.substr(8);u=yield fetch(this.url,{signal:i,cache:"reload",headers:{range:`bytes=0-${v-1}`}})}let p=u.headers.get("Etag");if(p!=null&&p.startsWith("W/")&&(p=null),u.status===416||o&&p&&p!==o)throw this.mustReload=!0,new ao(`Server returned non-matching ETag ${o} after one retry. Check browser extensions and servers for issues that may affect correct ETag headers.`);if(u.status>=300)throw new Error(`Bad response code: ${u.status}`);let d=u.headers.get("Content-Length");if(u.status===200&&(!d||+d>n))throw s&&s.abort(),new Error("Server returned no content-length header or content-length exceeding request. Check that your storage backend supports HTTP Byte Serving.");return{data:yield u.arrayBuffer(),etag:p||void 0,cacheControl:u.headers.get("Cache-Control")||void 0,expires:u.headers.get("Expires")||void 0}})}};Se(Mi,"FetchSource");var Pu=Mi;function st(e,t){let n=e.getUint32(t+4,!0),r=e.getUint32(t+0,!0);return n*On(2,32)+r}Se(st,"getUint64");function Li(e,t){let n=new DataView(e),r=n.getUint8(7);if(r>3)throw new Error(`Archive is spec version ${r} but this library supports up to spec version 3`);return{specVersion:r,rootDirectoryOffset:st(n,8),rootDirectoryLength:st(n,16),jsonMetadataOffset:st(n,24),jsonMetadataLength:st(n,32),leafDirectoryOffset:st(n,40),leafDirectoryLength:st(n,48),tileDataOffset:st(n,56),tileDataLength:st(n,64),numAddressedTiles:st(n,72),numTileEntries:st(n,80),numTileContents:st(n,88),clustered:n.getUint8(96)===1,internalCompression:n.getUint8(97),tileCompression:n.getUint8(98),tileType:n.getUint8(99),minZoom:n.getUint8(100),maxZoom:n.getUint8(101),minLon:n.getInt32(102,!0)/1e7,minLat:n.getInt32(106,!0)/1e7,maxLon:n.getInt32(110,!0)/1e7,maxLat:n.getInt32(114,!0)/1e7,centerZoom:n.getUint8(118),centerLon:n.getInt32(119,!0)/1e7,centerLat:n.getInt32(123,!0)/1e7,etag:t}}Se(Li,"bytesToHeader");function Co(e){let t={buf:new Uint8Array(e),pos:0},n=tn(t),r=[],o=0;for(let s=0;s<n;s++){let i=tn(t);r.push({tileId:o+i,offset:0,length:0,runLength:1}),o+=i}for(let s=0;s<n;s++)r[s].runLength=tn(t);for(let s=0;s<n;s++)r[s].length=tn(t);for(let s=0;s<n;s++){let i=tn(t);i===0&&s>0?r[s].offset=r[s-1].offset+r[s-1].length:r[s].offset=i-1}return r}Se(Co,"deserializeIndex");var Ai=class extends Error{};Se(Ai,"EtagMismatch");var ao=Ai;function So(e,t){return ze(this,null,function*(){let n=yield e.getBytes(0,16384);if(new DataView(n.data).getUint16(0,!0)!==19792)throw new Error("Wrong magic number for PMTiles archive");let r=n.data.slice(0,ju),o=Li(r,n.etag),s=n.data.slice(o.rootDirectoryOffset,o.rootDirectoryOffset+o.rootDirectoryLength),i=`${e.getKey()}|${o.etag||""}|${o.rootDirectoryOffset}|${o.rootDirectoryLength}`,l=Co(yield t(s,o.internalCompression));return[o,[i,l.length,l]]})}Se(So,"getHeaderAndRoot");function To(e,t,n,r,o){return ze(this,null,function*(){let s=yield e.getBytes(n,r,void 0,o.etag),i=yield t(s.data,o.internalCompression),l=Co(i);if(l.length===0)throw new Error("Empty directory is invalid");return l})}Se(To,"getDirectory");var Mu=class{constructor(t=100,n=!0,r=gr){this.cache=new Map,this.maxCacheEntries=t,this.counter=1,this.decompress=r}getHeader(t){return ze(this,null,function*(){let n=t.getKey(),r=this.cache.get(n);if(r)return r.lastUsed=this.counter++,r.data;let o=yield So(t,this.decompress);return o[1]&&this.cache.set(o[1][0],{lastUsed:this.counter++,data:o[1][2]}),this.cache.set(n,{lastUsed:this.counter++,data:o[0]}),this.prune(),o[0]})}getDirectory(t,n,r,o){return ze(this,null,function*(){let s=`${t.getKey()}|${o.etag||""}|${n}|${r}`,i=this.cache.get(s);if(i)return i.lastUsed=this.counter++,i.data;let l=yield To(t,this.decompress,n,r,o);return this.cache.set(s,{lastUsed:this.counter++,data:l}),this.prune(),l})}prune(){if(this.cache.size>this.maxCacheEntries){let t=1/0,n;this.cache.forEach((r,o)=>{r.lastUsed<t&&(t=r.lastUsed,n=o)}),n&&this.cache.delete(n)}}invalidate(t){return ze(this,null,function*(){this.cache.delete(t.getKey())})}};Se(Mu,"ResolvedValueCache");var Ni=class{constructor(t=100,n=!0,r=gr){this.cache=new Map,this.invalidations=new Map,this.maxCacheEntries=t,this.counter=1,this.decompress=r}getHeader(t){return ze(this,null,function*(){let n=t.getKey(),r=this.cache.get(n);if(r)return r.lastUsed=this.counter++,yield r.data;let o=new Promise((s,i)=>{So(t,this.decompress).then(l=>{l[1]&&this.cache.set(l[1][0],{lastUsed:this.counter++,data:Promise.resolve(l[1][2])}),s(l[0]),this.prune()}).catch(l=>{i(l)})});return this.cache.set(n,{lastUsed:this.counter++,data:o}),o})}getDirectory(t,n,r,o){return ze(this,null,function*(){let s=`${t.getKey()}|${o.etag||""}|${n}|${r}`,i=this.cache.get(s);if(i)return i.lastUsed=this.counter++,yield i.data;let l=new Promise((c,u)=>{To(t,this.decompress,n,r,o).then(p=>{c(p),this.prune()}).catch(p=>{u(p)})});return this.cache.set(s,{lastUsed:this.counter++,data:l}),l})}prune(){if(this.cache.size>=this.maxCacheEntries){let t=1/0,n;this.cache.forEach((r,o)=>{r.lastUsed<t&&(t=r.lastUsed,n=o)}),n&&this.cache.delete(n)}}invalidate(t){return ze(this,null,function*(){let n=t.getKey();if(this.invalidations.get(n))return yield this.invalidations.get(n);this.cache.delete(t.getKey());let r=new Promise((o,s)=>{this.getHeader(t).then(i=>{o(),this.invalidations.delete(n)}).catch(i=>{s(i)})});this.invalidations.set(n,r)})}};Se(Ni,"SharedPromiseCache");var Lu=Ni,Ii=class{constructor(t,n,r){typeof t=="string"?this.source=new Pu(t):this.source=t,r?this.decompress=r:this.decompress=gr,n?this.cache=n:this.cache=new Lu}getHeader(){return ze(this,null,function*(){return yield this.cache.getHeader(this.source)})}getZxyAttempt(t,n,r,o){return ze(this,null,function*(){let s=ji(t,n,r),i=yield this.cache.getHeader(this.source);if(t<i.minZoom||t>i.maxZoom)return;let l=i.rootDirectoryOffset,c=i.rootDirectoryLength;for(let u=0;u<=3;u++){let p=yield this.cache.getDirectory(this.source,l,c,i),d=Pi(p,s);if(d){if(d.runLength>0){let h=yield this.source.getBytes(i.tileDataOffset+d.offset,d.length,o,i.etag);return{data:yield this.decompress(h.data,i.tileCompression),cacheControl:h.cacheControl,expires:h.expires}}l=i.leafDirectoryOffset+d.offset,c=d.length}else return}throw new Error("Maximum directory depth exceeded")})}getZxy(t,n,r,o){return ze(this,null,function*(){try{return yield this.getZxyAttempt(t,n,r,o)}catch(s){if(s instanceof ao)return this.cache.invalidate(this.source),yield this.getZxyAttempt(t,n,r,o);throw s}})}getMetadataAttempt(){return ze(this,null,function*(){let t=yield this.cache.getHeader(this.source),n=yield this.source.getBytes(t.jsonMetadataOffset,t.jsonMetadataLength,void 0,t.etag),r=yield this.decompress(n.data,t.internalCompression),o=new TextDecoder("utf-8");return JSON.parse(o.decode(r))})}getMetadata(){return ze(this,null,function*(){try{return yield this.getMetadataAttempt()}catch(t){if(t instanceof ao)return this.cache.invalidate(this.source),yield this.getMetadataAttempt();throw t}})}getTileJson(t){return ze(this,null,function*(){let n=yield this.getHeader(),r=yield this.getMetadata(),o=$i(n.tileType);return{tilejson:"3.0.0",scheme:"xyz",tiles:[`${t}/{z}/{x}/{y}${o}`],vector_layers:r.vector_layers,attribution:r.attribution,description:r.description,name:r.name,version:r.version,bounds:[n.minLon,n.minLat,n.maxLon,n.maxLat],center:[n.centerLon,n.centerLat,n.centerZoom],minzoom:n.minZoom,maxzoom:n.maxZoom}})}};Se(Ii,"PMTiles");var fs=Ii;const Au=X.createContext(null);function Nu(e,t){const n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,s=Array.isArray(t)?t[1]:t?t.y:0;return n===o&&r===s}function Ze(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Ze(e[n],t[n]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!t.hasOwnProperty(o)||!Ze(e[o],t[o]))return!1;return!0}return!1}function ds(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function ps(e,t){const n=t.viewState||t,r={};if("longitude"in n&&"latitude"in n&&(n.longitude!==e.center.lng||n.latitude!==e.center.lat)){const o=e.center.constructor;r.center=new o(n.longitude,n.latitude)}return"zoom"in n&&n.zoom!==e.zoom&&(r.zoom=n.zoom),"bearing"in n&&n.bearing!==e.bearing&&(r.bearing=n.bearing),"pitch"in n&&n.pitch!==e.pitch&&(r.pitch=n.pitch),n.padding&&e.padding&&!Ze(n.padding,e.padding)&&(r.padding=n.padding),r}const Iu=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function hs(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const r of e.layers)t[r.id]=r;const n=e.layers.map(r=>{let o=null;"interactive"in r&&(o=Object.assign({},r),delete o.interactive);const s=t[r.ref];if(s){o=o||Object.assign({},r),delete o.ref;for(const i of Iu)i in s&&(o[i]=s[i])}return o||r});return{...e,layers:n}}const ms={version:8,sources:{},layers:[]},gs={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},ys={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},vs={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},Du=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],Fu=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class cn{constructor(t,n,r){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=o=>{const s=this.props[vs[o.type]];s?s(o):o.type==="error"&&console.error(o.error)},this._onCameraEvent=o=>{if(this._internalUpdate)return;o.viewState=this._propsedCameraUpdate||ds(this._map.transform);const s=this.props[ys[o.type]];s&&s(o)},this._onCameraUpdate=o=>this._internalUpdate?o:(this._propsedCameraUpdate=ds(o),ps(o,this.props)),this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const s=this.props[gs[o.type]];s&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),s(o),delete o.features)},this._MapClass=t,this.props=n,this._initialize(r)}get map(){return this._map}setProps(t){const n=this.props;this.props=t;const r=this._updateSettings(t,n),o=this._updateSize(t),s=this._updateViewState(t);this._updateStyle(t,n),this._updateStyleComponents(t),this._updateHandlers(t,n),(r||o||s&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=cn.savedMaps.pop();if(!r)return null;const o=r.map,s=o.getContainer();for(n.className=s.className;s.childNodes.length>0;)n.appendChild(s.childNodes[0]);o._container=n;const i=o._resizeObserver;i&&(i.disconnect(),i.observe(n)),r.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:l}=t;return l&&(l.bounds?o.fitBounds(l.bounds,{...l.fitBoundsOptions,duration:0}):r._updateViewState(l)),o.isStyleLoaded()?o.fire("load"):o.once("style.load",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=ms}=n,o={...n,...n.initialViewState,container:t,style:hs(r)},s=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),n.gl){const l=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=l,n.gl)}const i=new this._MapClass(o);s.padding&&i.setPadding(s.padding),n.cursor&&(i.getCanvas().style.cursor=n.cursor),i.transformCameraUpdate=this._onCameraUpdate,i.on("style.load",()=>{var l;this._styleComponents={light:i.getLight(),sky:i.getSky(),projection:(l=i.getProjection)==null?void 0:l.call(i),terrain:i.getTerrain()},this._updateStyleComponents(this.props)}),i.on("sourcedata",()=>{this._updateStyleComponents(this.props)});for(const l in gs)i.on(l,this._onPointerEvent);for(const l in ys)i.on(l,this._onCameraEvent);for(const l in vs)i.on(l,this._onEvent);this._map=i}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),cn.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_updateSize(t){const{viewState:n}=t;if(n){const r=this._map;if(n.width!==r.transform.width||n.height!==r.transform.height)return r.resize(),!0}return!1}_updateViewState(t){const n=this._map,r=n.transform;if(!n.isMoving()){const s=ps(r,t);if(Object.keys(s).length>0)return this._internalUpdate=!0,n.jumpTo(s),this._internalUpdate=!1,!0}return!1}_updateSettings(t,n){const r=this._map;let o=!1;for(const s of Du)if(s in t&&!Ze(t[s],n[s])){o=!0;const i=r[`set${s[0].toUpperCase()}${s.slice(1)}`];i==null||i.call(r,t[s])}return o}_updateStyle(t,n){if(t.cursor!==n.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==n.mapStyle){const{mapStyle:r=ms,styleDiffing:o=!0}=t,s={diff:o};"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(hs(r),s)}}_updateStyleComponents({light:t,projection:n,sky:r,terrain:o}){var l,c;const s=this._map,i=this._styleComponents;s.style._loaded&&(t&&!Ze(t,i.light)&&(i.light=t,s.setLight(t)),n&&!Ze(n,i.projection)&&n!==((l=i.projection)==null?void 0:l.type)&&(i.projection=typeof n=="string"?{type:n}:n,(c=s.setProjection)==null||c.call(s,i.projection)),r&&!Ze(r,i.sky)&&(i.sky=r,s.setSky(r)),o!==void 0&&!Ze(o,i.terrain)&&(!o||s.getSource(o.source))&&(i.terrain=o,s.setTerrain(o)))}_updateHandlers(t,n){const r=this._map;for(const o of Fu){const s=t[o]??!0,i=n[o]??!0;Ze(s,i)||(s?r[o].enable(s):r[o].disable())}}_queryRenderedFeatures(t){const n=this._map,{interactiveLayerIds:r=[]}=this.props;try{return n.queryRenderedFeatures(t,{layers:r.filter(n.getLayer.bind(n))})}catch{return[]}}_updateHover(t){var o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const s=t.type,i=((o=this._hoveredFeatures)==null?void 0:o.length)>0,l=this._queryRenderedFeatures(t.point),c=l.length>0;!c&&i&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,c&&!i&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=s}else this._hoveredFeatures=null}}cn.savedMaps=[];const zu=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Bu(e){if(!e)return null;const t=e.map,n={getMap:()=>t};for(const r of Uu(t))!(r in n)&&!zu.includes(r)&&(n[r]=t[r].bind(t));return n}function Uu(e){const t=new Set;let n=e;for(;n;){for(const r of Object.getOwnPropertyNames(n))r[0]!=="_"&&typeof e[r]=="function"&&r!=="fire"&&r!=="setEventedParent"&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}const Vu=typeof document<"u"?b.useLayoutEffect:b.useEffect;function qu(e,t){const{RTLTextPlugin:n,maxParallelImageRequests:r,workerCount:o,workerUrl:s}=t;if(n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"){const{pluginUrl:i,lazy:l=!0}=typeof n=="string"?{pluginUrl:n}:n;e.setRTLTextPlugin(i,c=>{c&&console.error(c)},l)}r!==void 0&&e.setMaxParallelImageRequests(r),o!==void 0&&e.setWorkerCount(o),s!==void 0&&e.setWorkerUrl(s)}const dn=X.createContext(null);function Wu(e,t){const n=b.useContext(Au),[r,o]=b.useState(null),s=b.useRef(),{current:i}=b.useRef({mapLib:null,map:null});b.useEffect(()=>{const u=e.mapLib;let p=!0,d;return Promise.resolve(u||import("maplibre-gl")).then(h=>{if(!p)return;if(!h)throw new Error("Invalid mapLib");const v="Map"in h?h:h.default;if(!v.Map)throw new Error("Invalid mapLib");qu(v,e),e.reuseMaps&&(d=cn.reuse(e,s.current)),d||(d=new cn(v.Map,e,s.current)),i.map=Bu(d),i.mapLib=v,o(d),n==null||n.onMapMount(i.map,e.id)}).catch(h=>{const{onError:v}=e;v?v({type:"error",target:null,originalEvent:null,error:h}):console.error(h)}),()=>{p=!1,d&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?d.recycle():d.destroy())}},[]),Vu(()=>{r&&r.setProps(e)}),b.useImperativeHandle(t,()=>i.map,[r]);const l=b.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return X.createElement("div",{id:e.id,ref:s,style:l},r&&X.createElement(dn.Provider,{value:i},X.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const Hu=X.forwardRef(Wu),Ku=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function bt(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!Ku.test(r)?n[r]=`${o}px`:n[r]=o}}function Di(e,t){if(e===t)return null;const n=bs(e),r=bs(t),o=[];for(const s of r)n.has(s)||o.push(s);for(const s of n)r.has(s)||o.push(s);return o.length===0?null:o}function bs(e){return new Set(e?e.trim().split(/\s+/):[])}b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(dn),o=b.useRef({props:e}),s=b.useMemo(()=>{let S=!1;X.Children.forEach(e.children,R=>{R&&(S=!0)});const j={...e,element:S?document.createElement("div"):void 0},w=new r.Marker(j);return w.setLngLat([e.longitude,e.latitude]),w.getElement().addEventListener("click",R=>{var _,F;(F=(_=o.current.props).onClick)==null||F.call(_,{type:"click",target:w,originalEvent:R})}),w.on("dragstart",R=>{var F,y;const _=R;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDragStart)==null||y.call(F,_)}),w.on("drag",R=>{var F,y;const _=R;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDrag)==null||y.call(F,_)}),w.on("dragend",R=>{var F,y;const _=R;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDragEnd)==null||y.call(F,_)}),w},[]);b.useEffect(()=>(s.addTo(n.getMap()),()=>{s.remove()}),[]);const{longitude:i,latitude:l,offset:c,style:u,draggable:p=!1,popup:d=null,rotation:h=0,rotationAlignment:v="auto",pitchAlignment:x="auto"}=e;b.useEffect(()=>{bt(s.getElement(),u)},[u]),b.useImperativeHandle(t,()=>s,[]);const f=o.current.props;(s.getLngLat().lng!==i||s.getLngLat().lat!==l)&&s.setLngLat([i,l]),c&&!Nu(s.getOffset(),c)&&s.setOffset(c),s.isDraggable()!==p&&s.setDraggable(p),s.getRotation()!==h&&s.setRotation(h),s.getRotationAlignment()!==v&&s.setRotationAlignment(v),s.getPitchAlignment()!==x&&s.setPitchAlignment(x),s.getPopup()!==d&&s.setPopup(d);const C=Di(f.className,e.className);if(C)for(const S of C)s.toggleClassName(S);return o.current.props=e,mr.createPortal(e.children,s.getElement())}));const Yu=b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(dn),o=b.useMemo(()=>document.createElement("div"),[]),s=b.useRef({props:e}),i=b.useMemo(()=>{const l={...e},c=new r.Popup(l);return c.setLngLat([e.longitude,e.latitude]),c.once("open",u=>{var p,d;(d=(p=s.current.props).onOpen)==null||d.call(p,u)}),c},[]);if(b.useEffect(()=>{const l=c=>{var u,p;(p=(u=s.current.props).onClose)==null||p.call(u,c)};return i.on("close",l),i.setDOMContent(o).addTo(n.getMap()),()=>{i.off("close",l),i.isOpen()&&i.remove()}},[]),b.useEffect(()=>{bt(i.getElement(),e.style)},[e.style]),b.useImperativeHandle(t,()=>i,[]),i.isOpen()){const l=s.current.props;(i.getLngLat().lng!==e.longitude||i.getLngLat().lat!==e.latitude)&&i.setLngLat([e.longitude,e.latitude]),e.offset&&!Ze(l.offset,e.offset)&&i.setOffset(e.offset),(l.anchor!==e.anchor||l.maxWidth!==e.maxWidth)&&(i.options.anchor=e.anchor,i.setMaxWidth(e.maxWidth));const c=Di(l.className,e.className);if(c)for(const u of c)i.toggleClassName(u);s.current.props=e}return mr.createPortal(e.children,o)}));function Dt(e,t,n,r){const o=b.useContext(dn),s=b.useMemo(()=>e(o),[]);return b.useEffect(()=>{const i=t,l=typeof t=="function"?t:null,{map:c}=o;return c.hasControl(s)||c.addControl(s,i==null?void 0:i.position),()=>{l&&l(o),c.hasControl(s)&&c.removeControl(s)}},[]),s}function Zu(e){const t=Dt(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}b.memo(Zu);function Gu(e){const t=Dt(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return b.useEffect(()=>{bt(t._controlContainer,e.style)},[e.style]),null}b.memo(Gu);function Ju(e,t){const n=b.useRef({props:e}),r=Dt(({mapLib:o})=>{const s=new o.GeolocateControl(e),i=s._setupUI;return s._setupUI=()=>{s._container.hasChildNodes()||i()},s.on("geolocate",l=>{var c,u;(u=(c=n.current.props).onGeolocate)==null||u.call(c,l)}),s.on("error",l=>{var c,u;(u=(c=n.current.props).onError)==null||u.call(c,l)}),s.on("outofmaxbounds",l=>{var c,u;(u=(c=n.current.props).onOutOfMaxBounds)==null||u.call(c,l)}),s.on("trackuserlocationstart",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationStart)==null||u.call(c,l)}),s.on("trackuserlocationend",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationEnd)==null||u.call(c,l)}),s},{position:e.position});return n.current.props=e,b.useImperativeHandle(t,()=>r,[]),b.useEffect(()=>{bt(r._container,e.style)},[e.style]),null}b.memo(b.forwardRef(Ju));function Xu(e){const t=Dt(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}const Qu=b.memo(Xu);function ef(e){const t=Dt(({mapLib:s})=>new s.ScaleControl(e),{position:e.position}),n=b.useRef(e),r=n.current;n.current=e;const{style:o}=e;return e.maxWidth!==void 0&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==r.unit&&t.setUnit(e.unit),b.useEffect(()=>{bt(t._container,o)},[o]),null}b.memo(ef);function tf(e){const t=Dt(({mapLib:n})=>new n.TerrainControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}b.memo(tf);function nf(e){const t=Dt(({mapLib:n})=>new n.LogoControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}b.memo(nf);function fr(e,t){if(!e)throw new Error(t)}let rf=0;function of(e,t,n){if(e.style&&e.style._loaded){const r={...n};return delete r.id,delete r.children,e.addSource(t,r),e.getSource(t)}return null}function sf(e,t,n){var i,l,c;fr(t.id===n.id,"source id changed"),fr(t.type===n.type,"source type changed");let r="",o=0;for(const u in t)u!=="children"&&u!=="id"&&!Ze(n[u],t[u])&&(r=u,o++);if(!o)return;const s=t.type;if(s==="geojson")e.setData(t.data);else if(s==="image")e.updateImage({url:t.url,coordinates:t.coordinates});else switch(r){case"coordinates":(i=e.setCoordinates)==null||i.call(e,t.coordinates);break;case"url":(l=e.setUrl)==null||l.call(e,t.url);break;case"tiles":(c=e.setTiles)==null||c.call(e,t.tiles);break;default:console.warn(`Unable to update <Source> prop: ${r}`)}}function af(e){const t=b.useContext(dn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-source-${rf++}`,[]);b.useEffect(()=>{if(t){const i=()=>setTimeout(()=>r(l=>l+1),0);return t.on("styledata",i),i(),()=>{var l;if(t.off("styledata",i),t.style&&t.style._loaded&&t.getSource(o)){const c=(l=t.getStyle())==null?void 0:l.layers;if(c)for(const u of c)u.source===o&&t.removeLayer(u.id);t.removeSource(o)}}}},[t]);let s=t&&t.style&&t.getSource(o);return s?sf(s,e,n.current):s=of(t,o,e),n.current=e,s&&X.Children.map(e.children,i=>i&&b.cloneElement(i,{source:o}))||null}function lf(e,t,n,r){if(fr(n.id===r.id,"layer id changed"),fr(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:s={},filter:i,minzoom:l,maxzoom:c,beforeId:u}=n;if(u!==r.beforeId&&e.moveLayer(t,u),o!==r.layout){const p=r.layout||{};for(const d in o)Ze(o[d],p[d])||e.setLayoutProperty(t,d,o[d]);for(const d in p)o.hasOwnProperty(d)||e.setLayoutProperty(t,d,void 0)}if(s!==r.paint){const p=r.paint||{};for(const d in s)Ze(s[d],p[d])||e.setPaintProperty(t,d,s[d]);for(const d in p)s.hasOwnProperty(d)||e.setPaintProperty(t,d,void 0)}Ze(i,r.filter)||e.setFilter(t,i),(l!==r.minzoom||c!==r.maxzoom)&&e.setLayerZoomRange(t,l,c)}function cf(e,t,n){if(e.style&&e.style._loaded&&(!("source"in n)||e.getSource(n.source))){const r={...n,id:t};delete r.beforeId,e.addLayer(r,n.beforeId)}}let uf=0;function ff(e){const t=b.useContext(dn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-layer-${uf++}`,[]);if(b.useEffect(()=>{if(t){const i=()=>r(l=>l+1);return t.on("styledata",i),i(),()=>{t.off("styledata",i),t.style&&t.style._loaded&&t.getLayer(o)&&t.removeLayer(o)}}},[t]),t&&t.style&&t.getLayer(o))try{lf(t,o,e,n.current)}catch(i){console.warn(i)}else cf(t,o,e);return n.current=e,null}const df="_mapContainer_ivruh_3",pf={mapContainer:df},hf="_FeaturePopUp_1gd6w_2",mf="_title_1gd6w_2",xs={FeaturePopUp:hf,title:mf},gf=({props:e})=>{const{t}=Te.useTranslation();return m.jsx("div",{className:xs.FeaturePopUp,children:e.map(n=>m.jsxs("p",{children:[m.jsxs("span",{className:xs.title,children:[m.jsx(Te.Trans,{i18nKey:n.name,components:{sup:m.jsx("sup",{})}}),": "]}),n.value.toLocaleString("de",{maximumFractionDigits:2})," ",t(n.unit)]}))})},Fi=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:s={},onClick:i="",interactiveLayers:l=[],sources:c=[],layers:u=[],filters:p,popUpParams:d,onClosePopUp:h,showTexts:v})=>{console.log(p);const x=b.useRef();return b.useEffect(()=>{if(x.current){const f=x.current.getMap();f.getStyle().layers.map(S=>{S.type=="symbol"&&S.id!="professionals"&&(v?f.setLayoutProperty(S.id,"visibility","visible"):f.setLayoutProperty(S.id,"visibility","none"))})}},[v]),b.useEffect(()=>{let f=new wu;return Ao.addProtocol("pmtiles",f.tile),()=>{Ao.removeProtocol("pmtiles")}},[]),m.jsx("div",{className:`${pf.mapContainer}`,style:s&&s,children:m.jsxs(Hu,{initialViewState:e,ref:x,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:i,interactiveLayerIds:l,children:[c.length&&c.map((f,C)=>m.jsx(af,{...f,children:u.length&&u.map((S,j)=>{if(S.sourceId==f.id)return m.jsx(ff,{...S.layer,beforeId:o,filter:p&&p},j)})},C)),m.jsx(Qu,{position:"bottom-right",visualizePitch:!0}),d&&m.jsx(Yu,{longitude:d.lng,latitude:d.lat,onClose:h,children:m.jsx(gf,{props:d.props})})]})})};Fi.propTypes={initialView:a.shape({latitude:a.number.isRequired,longitude:a.number.isRequired,zoom:a.number.isRequired}),mapStyle:a.string,firstSymbolLayer:a.string,cssProps:a.object,style:a.object,maxZoom:a.number,minZoom:a.number,onClick:a.func,interactiveLayers:a.array,popUp:a.bool,sources:a.arrayOf(a.shape({id:a.string,type:a.string,url:a.string,data:a.object})),layers:a.arrayOf(a.shape({sourceId:a.string,layer:a.shape({id:a.string,type:a.string,sourceLayer:a.string,minZoom:a.number,maxZoom:a.number,paint:a.object})})),showTexts:a.bool,filters:a.array,popUpParams:a.object,onClosePopUp:a.func};const yf="_sectionBar_2vnc3_2",vf="_leftContent_2vnc3_13",bf="_textContainer_2vnc3_19",xf="_title_2vnc3_26",_f="_subtitle_2vnc3_32",Cf="_rightContent_2vnc3_37",At={sectionBar:yf,leftContent:vf,textContainer:bf,title:xf,subtitle:_f,rightContent:Cf},zi=({leftIcon:e,title:t,subtitle:n,rightContent:r,mainColor:o})=>{const{t:s}=Te.useTranslation();return m.jsxs("div",{className:At.sectionBar,children:[m.jsxs("div",{className:At.leftContent,children:[e&&m.jsx("img",{src:e,alt:"Icono",className:At.icon}),m.jsxs("div",{className:At.textContainer,children:[m.jsx("div",{className:At.title,style:o?{color:o}:{},children:s(t)}),n&&m.jsx("div",{className:At.subtitle,children:n})]})]}),m.jsx("div",{className:At.rightContent,children:r})]})};zi.propTypes={leftIcon:a.node.isRequired,title:a.string.isRequired,subtitle:a.string,rightContent:a.node.isRequired,mainColor:a.string};const Sf=Ys.createSlice({name:"mapSlice",initialState:{showTexts:!0,sliderSelectedYear:2025,activeIndicatorKey:0,activeIndicatorType:"cat",activeIndicatorUnit:null},reducers:{setShowTexts:(e,t)=>{e.showTexts=t.payload},setYear:(e,t)=>{e.sliderSelectedYear=t.payload},setActiveIndicatorKey:(e,t)=>{e.activeIndicatorKey=t.payload},setActiveIndicatorType:(e,t)=>{e.activeIndicatorType=t.payload},setActiveIndicatorUnit:(e,t)=>{e.activeIndicatorUnit=t.payload}}}),{setShowTexts:Cm,setYear:Zr,setActiveIndicatorKey:Sm,setActiveIndicatorType:Tm,setActiveIndicatorUnit:wm}=Sf.actions,Tf="data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20d='M15.2722%2012.6627C15.2722%2011.8929%2016.1055%2011.4118%2016.7722%2011.7967L31.5641%2020.3368C32.2308%2020.7217%2032.2308%2021.684%2031.5641%2022.0689L16.7722%2030.609C16.1055%2030.9939%2015.2722%2030.5128%2015.2722%2029.743L15.2722%2012.6627Z'%20fill='%23605B56'/%3e%3c/svg%3e",wf="data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3crect%20x='15'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3crect%20x='23'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3c/svg%3e";function xt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(null,arguments)}function Bi(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Bi(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Et(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Bi(e))&&(r&&(r+=" "),r+=t);return r}function _s(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Ef(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((s,i)=>{if(i){const l=t(i);l!==""&&s.push(l),n&&n[i]&&s.push(n[i])}return s},[]).join(" ")}),r}var je={},Gr={exports:{}},Cs;function Ui(){return Cs||(Cs=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Gr)),Gr.exports}function Pn(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const kf=Object.freeze(Object.defineProperty({__proto__:null,default:Pn},Symbol.toStringTag,{value:"Module"})),Rf=kt(kf);function nn(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Of=Object.freeze(Object.defineProperty({__proto__:null,default:nn},Symbol.toStringTag,{value:"Module"})),jf=kt(Of);var Ss;function $f(){if(Ss)return je;Ss=1;var e=Ui();Object.defineProperty(je,"__esModule",{value:!0}),je.alpha=x,je.blend=F,je.colorChannel=void 0,je.darken=C,je.decomposeColor=i,je.emphasize=R,je.getContrastRatio=v,je.getLuminance=h,je.hexToRgb=o,je.hslToRgb=d,je.lighten=j,je.private_safeAlpha=f,je.private_safeColorChannel=void 0,je.private_safeDarken=S,je.private_safeEmphasize=_,je.private_safeLighten=w,je.recomposeColor=u,je.rgbToHex=p;var t=e(Rf),n=e(jf);function r(y,E=0,T=1){return process.env.NODE_ENV!=="production"&&(y<E||y>T)&&console.error(`MUI: The value provided ${y} is out of range [${E}, ${T}].`),(0,n.default)(y,E,T)}function o(y){y=y.slice(1);const E=new RegExp(`.{1,${y.length>=6?2:1}}`,"g");let T=y.match(E);return T&&T[0].length===1&&(T=T.map($=>$+$)),T?`rgb${T.length===4?"a":""}(${T.map(($,I)=>I<3?parseInt($,16):Math.round(parseInt($,16)/255*1e3)/1e3).join(", ")})`:""}function s(y){const E=y.toString(16);return E.length===1?`0${E}`:E}function i(y){if(y.type)return y;if(y.charAt(0)==="#")return i(o(y));const E=y.indexOf("("),T=y.substring(0,E);if(["rgb","rgba","hsl","hsla","color"].indexOf(T)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${y}\` color.
|
|
52
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,t.default)(9,y));let $=y.substring(E+1,y.length-1),I;if(T==="color"){if($=$.split(" "),I=$.shift(),$.length===4&&$[3].charAt(0)==="/"&&($[3]=$[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(I)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${I}\` color space.
|
|
53
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10,I))}else $=$.split(",");return $=$.map(Q=>parseFloat(Q)),{type:T,values:$,colorSpace:I}}const l=y=>{const E=i(y);return E.values.slice(0,3).map((T,$)=>E.type.indexOf("hsl")!==-1&&$!==0?`${T}%`:T).join(" ")};je.colorChannel=l;const c=(y,E)=>{try{return l(y)}catch{return E&&process.env.NODE_ENV!=="production"&&console.warn(E),y}};je.private_safeColorChannel=c;function u(y){const{type:E,colorSpace:T}=y;let{values:$}=y;return E.indexOf("rgb")!==-1?$=$.map((I,Q)=>Q<3?parseInt(I,10):I):E.indexOf("hsl")!==-1&&($[1]=`${$[1]}%`,$[2]=`${$[2]}%`),E.indexOf("color")!==-1?$=`${T} ${$.join(" ")}`:$=`${$.join(", ")}`,`${E}(${$})`}function p(y){if(y.indexOf("#")===0)return y;const{values:E}=i(y);return`#${E.map((T,$)=>s($===3?Math.round(255*T):T)).join("")}`}function d(y){y=i(y);const{values:E}=y,T=E[0],$=E[1]/100,I=E[2]/100,Q=$*Math.min(I,1-I),U=(ie,oe=(ie+T/30)%12)=>I-Q*Math.max(Math.min(oe-3,9-oe,1),-1);let Z="rgb";const q=[Math.round(U(0)*255),Math.round(U(8)*255),Math.round(U(4)*255)];return y.type==="hsla"&&(Z+="a",q.push(E[3])),u({type:Z,values:q})}function h(y){y=i(y);let E=y.type==="hsl"||y.type==="hsla"?i(d(y)).values:y.values;return E=E.map(T=>(y.type!=="color"&&(T/=255),T<=.03928?T/12.92:((T+.055)/1.055)**2.4)),Number((.2126*E[0]+.7152*E[1]+.0722*E[2]).toFixed(3))}function v(y,E){const T=h(y),$=h(E);return(Math.max(T,$)+.05)/(Math.min(T,$)+.05)}function x(y,E){return y=i(y),E=r(E),(y.type==="rgb"||y.type==="hsl")&&(y.type+="a"),y.type==="color"?y.values[3]=`/${E}`:y.values[3]=E,u(y)}function f(y,E,T){try{return x(y,E)}catch{return T&&process.env.NODE_ENV!=="production"&&console.warn(T),y}}function C(y,E){if(y=i(y),E=r(E),y.type.indexOf("hsl")!==-1)y.values[2]*=1-E;else if(y.type.indexOf("rgb")!==-1||y.type.indexOf("color")!==-1)for(let T=0;T<3;T+=1)y.values[T]*=1-E;return u(y)}function S(y,E,T){try{return C(y,E)}catch{return T&&process.env.NODE_ENV!=="production"&&console.warn(T),y}}function j(y,E){if(y=i(y),E=r(E),y.type.indexOf("hsl")!==-1)y.values[2]+=(100-y.values[2])*E;else if(y.type.indexOf("rgb")!==-1)for(let T=0;T<3;T+=1)y.values[T]+=(255-y.values[T])*E;else if(y.type.indexOf("color")!==-1)for(let T=0;T<3;T+=1)y.values[T]+=(1-y.values[T])*E;return u(y)}function w(y,E,T){try{return j(y,E)}catch{return T&&process.env.NODE_ENV!=="production"&&console.warn(T),y}}function R(y,E=.15){return h(y)>.5?C(y,E):j(y,E)}function _(y,E,T){try{return R(y,E)}catch{return T&&process.env.NODE_ENV!=="production"&&console.warn(T),y}}function F(y,E,T,$=1){const I=(q,ie)=>Math.round((q**(1/$)*(1-T)+ie**(1/$)*T)**$),Q=i(y),U=i(E),Z=[I(Q.values[0],U.values[0]),I(Q.values[1],U.values[1]),I(Q.values[2],U.values[2])];return u({type:"rgb",values:Z})}return je}var ht=$f();const Pf=X.createContext();process.env.NODE_ENV!=="production"&&(a.node,a.bool);const Mf=()=>{const e=X.useContext(Pf);return e??!1};function Lf(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function lo(...e){return X.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Lf(n,t)})},e)}function jn(e){return typeof e=="string"}function Af(e,t,n){return e===void 0||jn(e)?t:B({},t,{ownerState:B({},t.ownerState,n)})}function sr(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Ts(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Nf(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const v=Et(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),x=B({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=B({},n,o,r);return v.length>0&&(f.className=v),Object.keys(x).length>0&&(f.style=x),{props:f,internalRef:void 0}}const i=sr(B({},o,r)),l=Ts(r),c=Ts(o),u=t(i),p=Et(u==null?void 0:u.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),d=B({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),h=B({},u,n,c,l);return p.length>0&&(h.className=p),Object.keys(d).length>0&&(h.style=d),{props:h,internalRef:u.ref}}function If(e,t,n){return typeof e=="function"?e(t,n):e}const Df=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Tt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,i=xt(e,Df),l=s?{}:If(r,o),{props:c,internalRef:u}=Nf(B({},i,{externalSlotProps:l})),p=lo(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Af(n,B({},c,{ref:p}),o)}function wt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Vi(e){if(X.isValidElement(e)||!wt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Vi(e[n])}),t}function mt(e,t,n={clone:!0}){const r=n.clone?B({},e):e;return wt(e)&&wt(t)&&Object.keys(t).forEach(o=>{X.isValidElement(t[o])?r[o]=t[o]:wt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&wt(e[o])?r[o]=mt(e[o],t[o],n):n.clone?r[o]=wt(t[o])?Vi(t[o]):t[o]:r[o]=t[o]}),r}const Ff=Object.freeze(Object.defineProperty({__proto__:null,default:mt,isPlainObject:wt},Symbol.toStringTag,{value:"Module"}));var Jn={exports:{}},_e={};/**
|
|
54
54
|
* @license React
|
|
55
55
|
* react-is.production.js
|
|
56
56
|
*
|
|
@@ -58,7 +58,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
58
58
|
*
|
|
59
59
|
* This source code is licensed under the MIT license found in the
|
|
60
60
|
* LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/var ws;function zf(){if(ws)return _e;ws=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),
|
|
61
|
+
*/var ws;function zf(){if(ws)return _e;ws=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function x(f){if(typeof f=="object"&&f!==null){var C=f.$$typeof;switch(C){case e:switch(f=f.type,f){case n:case o:case r:case c:case u:case h:return f;default:switch(f=f&&f.$$typeof,f){case i:case l:case d:case p:return f;case s:return f;default:return C}}case t:return C}}}return _e.ContextConsumer=s,_e.ContextProvider=i,_e.Element=e,_e.ForwardRef=l,_e.Fragment=n,_e.Lazy=d,_e.Memo=p,_e.Portal=t,_e.Profiler=o,_e.StrictMode=r,_e.Suspense=c,_e.SuspenseList=u,_e.isContextConsumer=function(f){return x(f)===s},_e.isContextProvider=function(f){return x(f)===i},_e.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},_e.isForwardRef=function(f){return x(f)===l},_e.isFragment=function(f){return x(f)===n},_e.isLazy=function(f){return x(f)===d},_e.isMemo=function(f){return x(f)===p},_e.isPortal=function(f){return x(f)===t},_e.isProfiler=function(f){return x(f)===o},_e.isStrictMode=function(f){return x(f)===r},_e.isSuspense=function(f){return x(f)===c},_e.isSuspenseList=function(f){return x(f)===u},_e.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===o||f===r||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===d||f.$$typeof===p||f.$$typeof===i||f.$$typeof===s||f.$$typeof===l||f.$$typeof===v||f.getModuleId!==void 0)},_e.typeOf=x,_e}var Ce={};/**
|
|
62
62
|
* @license React
|
|
63
63
|
* react-is.development.js
|
|
64
64
|
*
|
|
@@ -66,22 +66,22 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
|
|
|
66
66
|
*
|
|
67
67
|
* This source code is licensed under the MIT license found in the
|
|
68
68
|
* LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/var Es;function Bf(){return Es||(Es=1,process.env.NODE_ENV!=="production"&&function(){function e(
|
|
69
|
+
*/var Es;function Bf(){return Es||(Es=1,process.env.NODE_ENV!=="production"&&function(){function e(f){if(typeof f=="object"&&f!==null){var C=f.$$typeof;switch(C){case t:switch(f=f.type,f){case r:case s:case o:case u:case p:case v:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case h:case d:return f;case i:return f;default:return C}}case n:return C}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");Ce.ContextConsumer=i,Ce.ContextProvider=l,Ce.Element=t,Ce.ForwardRef=c,Ce.Fragment=r,Ce.Lazy=h,Ce.Memo=d,Ce.Portal=n,Ce.Profiler=s,Ce.StrictMode=o,Ce.Suspense=u,Ce.SuspenseList=p,Ce.isContextConsumer=function(f){return e(f)===i},Ce.isContextProvider=function(f){return e(f)===l},Ce.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},Ce.isForwardRef=function(f){return e(f)===c},Ce.isFragment=function(f){return e(f)===r},Ce.isLazy=function(f){return e(f)===h},Ce.isMemo=function(f){return e(f)===d},Ce.isPortal=function(f){return e(f)===n},Ce.isProfiler=function(f){return e(f)===s},Ce.isStrictMode=function(f){return e(f)===o},Ce.isSuspense=function(f){return e(f)===u},Ce.isSuspenseList=function(f){return e(f)===p},Ce.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===s||f===o||f===u||f===p||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===d||f.$$typeof===l||f.$$typeof===i||f.$$typeof===c||f.$$typeof===x||f.getModuleId!==void 0)},Ce.typeOf=e}()),Ce}var ks;function Uf(){return ks||(ks=1,process.env.NODE_ENV==="production"?Jn.exports=zf():Jn.exports=Bf()),Jn.exports}var Rs=Uf();const Vf=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function qi(e){const t=`${e}`.match(Vf);return t&&t[1]||""}function Wi(e,t=""){return e.displayName||e.name||qi(e)||t}function Os(e,t,n){const r=Wi(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function qf(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Wi(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Rs.ForwardRef:return Os(e,e.render,"ForwardRef");case Rs.Memo:return Os(e,e.type,"memo");default:return}}}const Wf=Object.freeze(Object.defineProperty({__proto__:null,default:qf,getFunctionName:qi},Symbol.toStringTag,{value:"Module"}));function ut(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Pn(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Hf=Object.freeze(Object.defineProperty({__proto__:null,default:ut},Symbol.toStringTag,{value:"Module"}));function ir(e){return e&&e.ownerDocument||document}const Hi=typeof window<"u"?X.useLayoutEffect:X.useEffect;function Kf({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=X.useRef(e!==void 0),[s,i]=X.useState(t),l=o?e:s;if(process.env.NODE_ENV!=="production"){X.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
70
70
|
`))},[r,n,e]);const{current:u}=X.useRef(t);X.useEffect(()=>{!o&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
|
|
71
|
-
`))},[JSON.stringify(t)])}const c=X.useCallback(u=>{o||i(u)},[]);return[l,c]}function Jr(e){const t=X.useRef(e);return Hi(()=>{t.current=e}),X.useRef((...n)=>(0,t.current)(...n)).current}class wo{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new wo}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let yr=!0,co=!1;const Yf=new wo,Zf={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Gf(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Zf[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Jf(e){e.metaKey||e.altKey||e.ctrlKey||(yr=!0)}function Xr(){yr=!1}function Xf(){this.visibilityState==="hidden"&&co&&(yr=!0)}function Qf(e){e.addEventListener("keydown",Jf,!0),e.addEventListener("mousedown",Xr,!0),e.addEventListener("pointerdown",Xr,!0),e.addEventListener("touchstart",Xr,!0),e.addEventListener("visibilitychange",Xf,!0)}function ed(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return yr||Gf(t)}function td(){const e=X.useCallback(o=>{o!=null&&Qf(o.ownerDocument)},[]),t=X.useRef(!1);function n(){return t.current?(co=!0,Yf.start(100,()=>{co=!1}),t.current=!1,!0):!1}function r(o){return ed(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const nd={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function uo(e,t){const n=B({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=B({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=o:!o||!Object.keys(o)?n[r]=s:(n[r]=B({},s),Object.keys(o).forEach(i=>{n[r][i]=uo(o[i],s[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const js=e=>e,rd=()=>{let e=js;return{configure(t){e=t},generate(t){return e(t)},reset(){e=js}}},od=rd(),sd={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Eo(e,t,n="Mui"){const r=sd[t];return r?`${n}-${r}`:`${od.generate(e)}-${t}`}function id(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Eo(e,o,n)}),r}function ad(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const ld=2;function Ki(e,t){return e-t}function $s(e,t){var n;const{index:r}=(n=e.reduce((o,s,i)=>{const l=Math.abs(t-s);return o===null||l<o.distance||l===o.distance?{distance:l,index:i}:o},null))!=null?n:{};return r}function Xn(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function dr(e,t,n){return(e-t)*100/(n-t)}function cd(e,t,n){return(n-t)*e+t}function ud(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function fd(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(ud(t)))}function Ps({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Ki)}function Qn({sliderRef:e,activeIndex:t,setActive:n}){var r,o;const s=ir(e.current);if(!((r=e.current)!=null&&r.contains(s.activeElement))||Number(s==null||(o=s.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}n&&n(t)}function er(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?ad(e,t):!1}const dd={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},pd=e=>e;let tr;function Ms(){return tr===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?tr=CSS.supports("touch-action","none"):tr=!0),tr}function hd(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:s=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:p,onChangeCommitted:f,orientation:h="horizontal",rootRef:v,scale:x=pd,step:d=1,shiftStep:C=10,tabIndex:S,value:R}=e,j=X.useRef(void 0),[k,_]=X.useState(-1),[F,y]=X.useState(-1),[w,T]=X.useState(!1),$=X.useRef(0),[N,H]=Kf({controlled:R,default:n??c,name:"Slider"}),U=p&&((M,D,W)=>{const de=M.nativeEvent||M,pe=new de.constructor(de.type,de);Object.defineProperty(pe,"target",{writable:!0,value:{value:D,name:u}}),p(pe,D,W)}),ce=Array.isArray(N);let K=ce?N.slice().sort(Ki):[N];K=K.map(M=>M==null?c:nn(M,c,l));const se=i===!0&&d!==null?[...Array(Math.floor((l-c)/d)+1)].map((M,D)=>({value:c+d*D})):i||[],re=se.map(M=>M.value),{isFocusVisibleRef:ke,onBlur:$e,onFocus:O,ref:A}=td(),[Q,q]=X.useState(-1),z=X.useRef(null),ee=lo(A,z),Z=lo(v,ee),Y=M=>D=>{var W;const de=Number(D.currentTarget.getAttribute("data-index"));O(D),ke.current===!0&&q(de),y(de),M==null||(W=M.onFocus)==null||W.call(M,D)},V=M=>D=>{var W;$e(D),ke.current===!1&&q(-1),y(-1),M==null||(W=M.onBlur)==null||W.call(M,D)},G=(M,D)=>{const W=Number(M.currentTarget.getAttribute("data-index")),de=K[W],pe=re.indexOf(de);let fe=D;if(se&&d==null){const Je=re[re.length-1];fe>Je?fe=Je:fe<re[0]?fe=re[0]:fe=fe<de?re[pe-1]:re[pe+1]}if(fe=nn(fe,c,l),ce){o&&(fe=nn(fe,K[W-1]||-1/0,K[W+1]||1/0));const Je=fe;fe=Ps({values:K,newValue:fe,index:W});let rt=W;o||(rt=fe.indexOf(Je)),Qn({sliderRef:z,activeIndex:rt})}H(fe),q(W),U&&!er(fe,N)&&U(M,fe,W),f&&f(M,fe)},ne=M=>D=>{var W;if(d!==null){const de=Number(D.currentTarget.getAttribute("data-index")),pe=K[de];let fe=null;(D.key==="ArrowLeft"||D.key==="ArrowDown")&&D.shiftKey||D.key==="PageDown"?fe=Math.max(pe-C,c):((D.key==="ArrowRight"||D.key==="ArrowUp")&&D.shiftKey||D.key==="PageUp")&&(fe=Math.min(pe+C,l)),fe!==null&&(G(D,fe),D.preventDefault())}M==null||(W=M.onKeyDown)==null||W.call(M,D)};Hi(()=>{if(r&&z.current.contains(document.activeElement)){var M;(M=document.activeElement)==null||M.blur()}},[r]),r&&k!==-1&&_(-1),r&&Q!==-1&&q(-1);const be=M=>D=>{var W;(W=M.onChange)==null||W.call(M,D),G(D,D.target.valueAsNumber)},P=X.useRef(void 0);let xe=h;s&&h==="horizontal"&&(xe+="-reverse");const ie=({finger:M,move:D=!1})=>{const{current:W}=z,{width:de,height:pe,bottom:fe,left:Je}=W.getBoundingClientRect();let rt;xe.indexOf("vertical")===0?rt=(fe-M.y)/pe:rt=(M.x-Je)/de,xe.indexOf("-reverse")!==-1&&(rt=1-rt);let he;if(he=cd(rt,c,l),d)he=fd(he,d,c);else{const dt=$s(re,he);he=re[dt]}he=nn(he,c,l);let Ke=0;if(ce){D?Ke=P.current:Ke=$s(K,he),o&&(he=nn(he,K[Ke-1]||-1/0,K[Ke+1]||1/0));const dt=he;he=Ps({values:K,newValue:he,index:Ke}),o&&D||(Ke=he.indexOf(dt),P.current=Ke)}return{newValue:he,activeIndex:Ke}},ae=Jr(M=>{const D=Xn(M,j);if(!D)return;if($.current+=1,M.type==="mousemove"&&M.buttons===0){Oe(M);return}const{newValue:W,activeIndex:de}=ie({finger:D,move:!0});Qn({sliderRef:z,activeIndex:de,setActive:_}),H(W),!w&&$.current>ld&&T(!0),U&&!er(W,N)&&U(M,W,de)}),Oe=Jr(M=>{const D=Xn(M,j);if(T(!1),!D)return;const{newValue:W}=ie({finger:D,move:!0});_(-1),M.type==="touchend"&&y(-1),f&&f(M,W),j.current=void 0,qe()}),Ve=Jr(M=>{if(r)return;Ms()||M.preventDefault();const D=M.changedTouches[0];D!=null&&(j.current=D.identifier);const W=Xn(M,j);if(W!==!1){const{newValue:pe,activeIndex:fe}=ie({finger:W});Qn({sliderRef:z,activeIndex:fe,setActive:_}),H(pe),U&&!er(pe,N)&&U(M,pe,fe)}$.current=0;const de=ir(z.current);de.addEventListener("touchmove",ae,{passive:!0}),de.addEventListener("touchend",Oe,{passive:!0})}),qe=X.useCallback(()=>{const M=ir(z.current);M.removeEventListener("mousemove",ae),M.removeEventListener("mouseup",Oe),M.removeEventListener("touchmove",ae),M.removeEventListener("touchend",Oe)},[Oe,ae]);X.useEffect(()=>{const{current:M}=z;return M.addEventListener("touchstart",Ve,{passive:Ms()}),()=>{M.removeEventListener("touchstart",Ve),qe()}},[qe,Ve]),X.useEffect(()=>{r&&qe()},[r,qe]);const ft=M=>D=>{var W;if((W=M.onMouseDown)==null||W.call(M,D),r||D.defaultPrevented||D.button!==0)return;D.preventDefault();const de=Xn(D,j);if(de!==!1){const{newValue:fe,activeIndex:Je}=ie({finger:de});Qn({sliderRef:z,activeIndex:Je,setActive:_}),H(fe),U&&!er(fe,N)&&U(D,fe,Je)}$.current=0;const pe=ir(z.current);pe.addEventListener("mousemove",ae,{passive:!0}),pe.addEventListener("mouseup",Oe)},De=dr(ce?K[0]:c,c,l),_t=dr(K[K.length-1],c,l)-De,jt=(M={})=>{const D=sr(M),W={onMouseDown:ft(D||{})},de=B({},D,W);return B({},M,{ref:Z},de)},hn=M=>D=>{var W;(W=M.onMouseOver)==null||W.call(M,D);const de=Number(D.currentTarget.getAttribute("data-index"));y(de)},mn=M=>D=>{var W;(W=M.onMouseLeave)==null||W.call(M,D),y(-1)};return{active:k,axis:xe,axisProps:dd,dragging:w,focusedThumbIndex:Q,getHiddenInputProps:(M={})=>{var D;const W=sr(M),de={onChange:be(W||{}),onFocus:Y(W||{}),onBlur:V(W||{}),onKeyDown:ne(W||{})},pe=B({},W,de);return B({tabIndex:S,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":x(l),"aria-valuemin":x(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(D=e.step)!=null?D:void 0,disabled:r},M,pe,{style:B({},nd,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:jt,getThumbProps:(M={})=>{const D=sr(M),W={onMouseOver:hn(D||{}),onMouseLeave:mn(D||{})};return B({},M,D,W)},marks:se,open:F,range:ce,rootRef:Z,trackLeap:_t,trackOffset:De,values:K,getThumbStyle:M=>({pointerEvents:k!==-1&&k!==M?"none":void 0})}}const md=["values","unit","step"],gd=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>B({},n,{[r.key]:r.val}),{})};function Yi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=xt(e,md),s=gd(t),i=Object.keys(s);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function u(h,v){const x=i.indexOf(v);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(x!==-1&&typeof t[i[x]]=="number"?t[i[x]]:v)-r/100}${n})`}function p(h){return i.indexOf(h)+1<i.length?u(h,i[i.indexOf(h)+1]):l(h)}function f(h){const v=i.indexOf(h);return v===0?l(i[1]):v===i.length-1?c(i[v]):u(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return B({keys:i,values:s,up:l,down:c,between:u,only:p,not:f,unit:n},o)}const yd={borderRadius:4},Ot=process.env.NODE_ENV!=="production"?a.oneOfType([a.number,a.string,a.object,a.array]):{};function $n(e,t){return t?mt(e,t,{clone:!1}):e}const ko={xs:0,sm:600,md:900,lg:1200,xl:1536},Ls={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ko[e]}px)`};function vt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||Ls;return t.reduce((i,l,c)=>(i[s.up(s.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const s=r.breakpoints||Ls;return Object.keys(t).reduce((i,l)=>{if(Object.keys(s.values||ko).indexOf(l)!==-1){const c=s.up(l);i[c]=n(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return n(t)}function vd(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function bd(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function vr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function pr(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=vr(e,n)||r,t&&(o=t(o,r,e)),o}function Ae(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,u=vr(c,r)||{};return vt(i,l,f=>{let h=pr(u,o,f);return f===h&&typeof f=="string"&&(h=pr(u,o,`${t}${f==="default"?"":ut(f)}`,f)),n===!1?h:{[n]:h}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ot}:{},s.filterProps=[t],s}function xd(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const _d={m:"margin",p:"padding"},Cd={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},As={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Sd=xd(e=>{if(e.length>2)if(As[e])e=As[e];else return[e];const[t,n]=e.split(""),r=_d[t],o=Cd[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),br=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],xr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Td=[...br,...xr];function Dn(e,t,n,r){var o;const s=(o=vr(e,t,!1))!=null?o:n;return typeof s=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),s*i):Array.isArray(s)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>s.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${i} > ${s.length-1}, you need to add the missing values.`].join(`
|
|
71
|
+
`))},[JSON.stringify(t)])}const c=X.useCallback(u=>{o||i(u)},[]);return[l,c]}function Jr(e){const t=X.useRef(e);return Hi(()=>{t.current=e}),X.useRef((...n)=>(0,t.current)(...n)).current}class wo{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new wo}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let yr=!0,co=!1;const Yf=new wo,Zf={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Gf(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Zf[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Jf(e){e.metaKey||e.altKey||e.ctrlKey||(yr=!0)}function Xr(){yr=!1}function Xf(){this.visibilityState==="hidden"&&co&&(yr=!0)}function Qf(e){e.addEventListener("keydown",Jf,!0),e.addEventListener("mousedown",Xr,!0),e.addEventListener("pointerdown",Xr,!0),e.addEventListener("touchstart",Xr,!0),e.addEventListener("visibilitychange",Xf,!0)}function ed(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return yr||Gf(t)}function td(){const e=X.useCallback(o=>{o!=null&&Qf(o.ownerDocument)},[]),t=X.useRef(!1);function n(){return t.current?(co=!0,Yf.start(100,()=>{co=!1}),t.current=!1,!0):!1}function r(o){return ed(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const nd={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function uo(e,t){const n=B({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=B({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=o:!o||!Object.keys(o)?n[r]=s:(n[r]=B({},s),Object.keys(o).forEach(i=>{n[r][i]=uo(o[i],s[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const js=e=>e,rd=()=>{let e=js;return{configure(t){e=t},generate(t){return e(t)},reset(){e=js}}},od=rd(),sd={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Eo(e,t,n="Mui"){const r=sd[t];return r?`${n}-${r}`:`${od.generate(e)}-${t}`}function id(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Eo(e,o,n)}),r}function ad(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const ld=2;function Ki(e,t){return e-t}function $s(e,t){var n;const{index:r}=(n=e.reduce((o,s,i)=>{const l=Math.abs(t-s);return o===null||l<o.distance||l===o.distance?{distance:l,index:i}:o},null))!=null?n:{};return r}function Xn(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function dr(e,t,n){return(e-t)*100/(n-t)}function cd(e,t,n){return(n-t)*e+t}function ud(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function fd(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(ud(t)))}function Ps({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Ki)}function Qn({sliderRef:e,activeIndex:t,setActive:n}){var r,o;const s=ir(e.current);if(!((r=e.current)!=null&&r.contains(s.activeElement))||Number(s==null||(o=s.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.querySelector(`[type="range"][data-index="${t}"]`).focus()}n&&n(t)}function er(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?ad(e,t):!1}const dd={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},pd=e=>e;let tr;function Ms(){return tr===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?tr=CSS.supports("touch-action","none"):tr=!0),tr}function hd(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:s=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:p,onChangeCommitted:d,orientation:h="horizontal",rootRef:v,scale:x=pd,step:f=1,shiftStep:C=10,tabIndex:S,value:j}=e,w=X.useRef(void 0),[R,_]=X.useState(-1),[F,y]=X.useState(-1),[E,T]=X.useState(!1),$=X.useRef(0),[I,Q]=Kf({controlled:j,default:n??c,name:"Slider"}),U=p&&((M,D,H)=>{const de=M.nativeEvent||M,pe=new de.constructor(de.type,de);Object.defineProperty(pe,"target",{writable:!0,value:{value:D,name:u}}),p(pe,D,H)}),Z=Array.isArray(I);let q=Z?I.slice().sort(Ki):[I];q=q.map(M=>M==null?c:nn(M,c,l));const ie=i===!0&&f!==null?[...Array(Math.floor((l-c)/f)+1)].map((M,D)=>({value:c+f*D})):i||[],oe=ie.map(M=>M.value),{isFocusVisibleRef:ke,onBlur:$e,onFocus:O,ref:A}=td(),[ee,W]=X.useState(-1),z=X.useRef(null),te=lo(A,z),Y=lo(v,te),K=M=>D=>{var H;const de=Number(D.currentTarget.getAttribute("data-index"));O(D),ke.current===!0&&W(de),y(de),M==null||(H=M.onFocus)==null||H.call(M,D)},V=M=>D=>{var H;$e(D),ke.current===!1&&W(-1),y(-1),M==null||(H=M.onBlur)==null||H.call(M,D)},G=(M,D)=>{const H=Number(M.currentTarget.getAttribute("data-index")),de=q[H],pe=oe.indexOf(de);let fe=D;if(ie&&f==null){const Je=oe[oe.length-1];fe>Je?fe=Je:fe<oe[0]?fe=oe[0]:fe=fe<de?oe[pe-1]:oe[pe+1]}if(fe=nn(fe,c,l),Z){o&&(fe=nn(fe,q[H-1]||-1/0,q[H+1]||1/0));const Je=fe;fe=Ps({values:q,newValue:fe,index:H});let rt=H;o||(rt=fe.indexOf(Je)),Qn({sliderRef:z,activeIndex:rt})}Q(fe),W(H),U&&!er(fe,I)&&U(M,fe,H),d&&d(M,fe)},re=M=>D=>{var H;if(f!==null){const de=Number(D.currentTarget.getAttribute("data-index")),pe=q[de];let fe=null;(D.key==="ArrowLeft"||D.key==="ArrowDown")&&D.shiftKey||D.key==="PageDown"?fe=Math.max(pe-C,c):((D.key==="ArrowRight"||D.key==="ArrowUp")&&D.shiftKey||D.key==="PageUp")&&(fe=Math.min(pe+C,l)),fe!==null&&(G(D,fe),D.preventDefault())}M==null||(H=M.onKeyDown)==null||H.call(M,D)};Hi(()=>{if(r&&z.current.contains(document.activeElement)){var M;(M=document.activeElement)==null||M.blur()}},[r]),r&&R!==-1&&_(-1),r&&ee!==-1&&W(-1);const be=M=>D=>{var H;(H=M.onChange)==null||H.call(M,D),G(D,D.target.valueAsNumber)},P=X.useRef(void 0);let xe=h;s&&h==="horizontal"&&(xe+="-reverse");const ae=({finger:M,move:D=!1})=>{const{current:H}=z,{width:de,height:pe,bottom:fe,left:Je}=H.getBoundingClientRect();let rt;xe.indexOf("vertical")===0?rt=(fe-M.y)/pe:rt=(M.x-Je)/de,xe.indexOf("-reverse")!==-1&&(rt=1-rt);let he;if(he=cd(rt,c,l),f)he=fd(he,f,c);else{const dt=$s(oe,he);he=oe[dt]}he=nn(he,c,l);let Ke=0;if(Z){D?Ke=P.current:Ke=$s(q,he),o&&(he=nn(he,q[Ke-1]||-1/0,q[Ke+1]||1/0));const dt=he;he=Ps({values:q,newValue:he,index:Ke}),o&&D||(Ke=he.indexOf(dt),P.current=Ke)}return{newValue:he,activeIndex:Ke}},le=Jr(M=>{const D=Xn(M,w);if(!D)return;if($.current+=1,M.type==="mousemove"&&M.buttons===0){Oe(M);return}const{newValue:H,activeIndex:de}=ae({finger:D,move:!0});Qn({sliderRef:z,activeIndex:de,setActive:_}),Q(H),!E&&$.current>ld&&T(!0),U&&!er(H,I)&&U(M,H,de)}),Oe=Jr(M=>{const D=Xn(M,w);if(T(!1),!D)return;const{newValue:H}=ae({finger:D,move:!0});_(-1),M.type==="touchend"&&y(-1),d&&d(M,H),w.current=void 0,qe()}),Ve=Jr(M=>{if(r)return;Ms()||M.preventDefault();const D=M.changedTouches[0];D!=null&&(w.current=D.identifier);const H=Xn(M,w);if(H!==!1){const{newValue:pe,activeIndex:fe}=ae({finger:H});Qn({sliderRef:z,activeIndex:fe,setActive:_}),Q(pe),U&&!er(pe,I)&&U(M,pe,fe)}$.current=0;const de=ir(z.current);de.addEventListener("touchmove",le,{passive:!0}),de.addEventListener("touchend",Oe,{passive:!0})}),qe=X.useCallback(()=>{const M=ir(z.current);M.removeEventListener("mousemove",le),M.removeEventListener("mouseup",Oe),M.removeEventListener("touchmove",le),M.removeEventListener("touchend",Oe)},[Oe,le]);X.useEffect(()=>{const{current:M}=z;return M.addEventListener("touchstart",Ve,{passive:Ms()}),()=>{M.removeEventListener("touchstart",Ve),qe()}},[qe,Ve]),X.useEffect(()=>{r&&qe()},[r,qe]);const ft=M=>D=>{var H;if((H=M.onMouseDown)==null||H.call(M,D),r||D.defaultPrevented||D.button!==0)return;D.preventDefault();const de=Xn(D,w);if(de!==!1){const{newValue:fe,activeIndex:Je}=ae({finger:de});Qn({sliderRef:z,activeIndex:Je,setActive:_}),Q(fe),U&&!er(fe,I)&&U(D,fe,Je)}$.current=0;const pe=ir(z.current);pe.addEventListener("mousemove",le,{passive:!0}),pe.addEventListener("mouseup",Oe)},De=dr(Z?q[0]:c,c,l),_t=dr(q[q.length-1],c,l)-De,jt=(M={})=>{const D=sr(M),H={onMouseDown:ft(D||{})},de=B({},D,H);return B({},M,{ref:Y},de)},hn=M=>D=>{var H;(H=M.onMouseOver)==null||H.call(M,D);const de=Number(D.currentTarget.getAttribute("data-index"));y(de)},mn=M=>D=>{var H;(H=M.onMouseLeave)==null||H.call(M,D),y(-1)};return{active:R,axis:xe,axisProps:dd,dragging:E,focusedThumbIndex:ee,getHiddenInputProps:(M={})=>{var D;const H=sr(M),de={onChange:be(H||{}),onFocus:K(H||{}),onBlur:V(H||{}),onKeyDown:re(H||{})},pe=B({},H,de);return B({tabIndex:S,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":x(l),"aria-valuemin":x(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(D=e.step)!=null?D:void 0,disabled:r},M,pe,{style:B({},nd,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:jt,getThumbProps:(M={})=>{const D=sr(M),H={onMouseOver:hn(D||{}),onMouseLeave:mn(D||{})};return B({},M,D,H)},marks:ie,open:F,range:Z,rootRef:Y,trackLeap:_t,trackOffset:De,values:q,getThumbStyle:M=>({pointerEvents:R!==-1&&R!==M?"none":void 0})}}const md=["values","unit","step"],gd=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>B({},n,{[r.key]:r.val}),{})};function Yi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=xt(e,md),s=gd(t),i=Object.keys(s);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function u(h,v){const x=i.indexOf(v);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(x!==-1&&typeof t[i[x]]=="number"?t[i[x]]:v)-r/100}${n})`}function p(h){return i.indexOf(h)+1<i.length?u(h,i[i.indexOf(h)+1]):l(h)}function d(h){const v=i.indexOf(h);return v===0?l(i[1]):v===i.length-1?c(i[v]):u(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return B({keys:i,values:s,up:l,down:c,between:u,only:p,not:d,unit:n},o)}const yd={borderRadius:4},Ot=process.env.NODE_ENV!=="production"?a.oneOfType([a.number,a.string,a.object,a.array]):{};function $n(e,t){return t?mt(e,t,{clone:!1}):e}const ko={xs:0,sm:600,md:900,lg:1200,xl:1536},Ls={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ko[e]}px)`};function vt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||Ls;return t.reduce((i,l,c)=>(i[s.up(s.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const s=r.breakpoints||Ls;return Object.keys(t).reduce((i,l)=>{if(Object.keys(s.values||ko).indexOf(l)!==-1){const c=s.up(l);i[c]=n(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return n(t)}function vd(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function bd(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function vr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function pr(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=vr(e,n)||r,t&&(o=t(o,r,e)),o}function Ae(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,u=vr(c,r)||{};return vt(i,l,d=>{let h=pr(u,o,d);return d===h&&typeof d=="string"&&(h=pr(u,o,`${t}${d==="default"?"":ut(d)}`,d)),n===!1?h:{[n]:h}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ot}:{},s.filterProps=[t],s}function xd(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const _d={m:"margin",p:"padding"},Cd={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},As={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Sd=xd(e=>{if(e.length>2)if(As[e])e=As[e];else return[e];const[t,n]=e.split(""),r=_d[t],o=Cd[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),br=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],xr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Td=[...br,...xr];function Dn(e,t,n,r){var o;const s=(o=vr(e,t,!1))!=null?o:n;return typeof s=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),s*i):Array.isArray(s)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>s.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${i} > ${s.length-1}, you need to add the missing values.`].join(`
|
|
72
72
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
73
73
|
`))),s[i]):typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
74
|
-
`)),()=>{})}function Zi(e){return Dn(e,"spacing",8,"spacing")}function Fn(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function wd(e,t){return n=>e.reduce((r,o)=>(r[o]=Fn(t,n),r),{})}function Ed(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Sd(n),s=wd(o,r),i=e[n];return vt(e,i,s)}function Gi(e,t){const n=Zi(e.theme);return Object.keys(e).map(r=>Ed(e,t,r,n)).reduce($n,{})}function Pe(e){return Gi(e,br)}Pe.propTypes=process.env.NODE_ENV!=="production"?br.reduce((e,t)=>(e[t]=Ot,e),{}):{};Pe.filterProps=br;function Me(e){return Gi(e,xr)}Me.propTypes=process.env.NODE_ENV!=="production"?xr.reduce((e,t)=>(e[t]=Ot,e),{}):{};Me.filterProps=xr;process.env.NODE_ENV!=="production"&&Td.reduce((e,t)=>(e[t]=Ot,e),{});function kd(e=8){if(e.mui)return e;const t=Zi({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function _r(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?$n(o,t[s](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function it(e){return typeof e!="number"?e:`${e}px solid`}function lt(e,t){return Ae({prop:e,themeKey:"borders",transform:t})}const Rd=lt("border",it),Od=lt("borderTop",it),jd=lt("borderRight",it),$d=lt("borderBottom",it),Pd=lt("borderLeft",it),Md=lt("borderColor"),Ld=lt("borderTopColor"),Ad=lt("borderRightColor"),Nd=lt("borderBottomColor"),Id=lt("borderLeftColor"),Dd=lt("outline",it),Fd=lt("outlineColor"),Cr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Fn(t,r)});return vt(e,e.borderRadius,n)}return null};Cr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ot}:{};Cr.filterProps=["borderRadius"];_r(Rd,Od,jd,$d,Pd,Md,Ld,Ad,Nd,Id,Cr,Dd,Fd);const Sr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dn(e.theme,"spacing",8,"gap"),n=r=>({gap:Fn(t,r)});return vt(e,e.gap,n)}return null};Sr.propTypes=process.env.NODE_ENV!=="production"?{gap:Ot}:{};Sr.filterProps=["gap"];const Tr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Fn(t,r)});return vt(e,e.columnGap,n)}return null};Tr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ot}:{};Tr.filterProps=["columnGap"];const wr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Fn(t,r)});return vt(e,e.rowGap,n)}return null};wr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ot}:{};wr.filterProps=["rowGap"];const zd=Ae({prop:"gridColumn"}),Bd=Ae({prop:"gridRow"}),Ud=Ae({prop:"gridAutoFlow"}),Vd=Ae({prop:"gridAutoColumns"}),qd=Ae({prop:"gridAutoRows"}),Wd=Ae({prop:"gridTemplateColumns"}),Hd=Ae({prop:"gridTemplateRows"}),Kd=Ae({prop:"gridTemplateAreas"}),Yd=Ae({prop:"gridArea"});_r(Sr,Tr,wr,zd,Bd,Ud,Vd,qd,Wd,Hd,Kd,Yd);function sn(e,t){return t==="grey"?t:e}const Zd=Ae({prop:"color",themeKey:"palette",transform:sn}),Gd=Ae({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sn}),Jd=Ae({prop:"backgroundColor",themeKey:"palette",transform:sn});_r(Zd,Gd,Jd);function tt(e){return e<=1&&e!==0?`${e*100}%`:e}const Xd=Ae({prop:"width",transform:tt}),Ro=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||ko[n];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:tt(n)}};return vt(e,e.maxWidth,t)}return null};Ro.filterProps=["maxWidth"];const Qd=Ae({prop:"minWidth",transform:tt}),ep=Ae({prop:"height",transform:tt}),tp=Ae({prop:"maxHeight",transform:tt}),np=Ae({prop:"minHeight",transform:tt});Ae({prop:"size",cssProperty:"width",transform:tt});Ae({prop:"size",cssProperty:"height",transform:tt});const rp=Ae({prop:"boxSizing"});_r(Xd,Ro,Qd,ep,tp,np,rp);const zn={border:{themeKey:"borders",transform:it},borderTop:{themeKey:"borders",transform:it},borderRight:{themeKey:"borders",transform:it},borderBottom:{themeKey:"borders",transform:it},borderLeft:{themeKey:"borders",transform:it},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:it},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cr},color:{themeKey:"palette",transform:sn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sn},backgroundColor:{themeKey:"palette",transform:sn},p:{style:Me},pt:{style:Me},pr:{style:Me},pb:{style:Me},pl:{style:Me},px:{style:Me},py:{style:Me},padding:{style:Me},paddingTop:{style:Me},paddingRight:{style:Me},paddingBottom:{style:Me},paddingLeft:{style:Me},paddingX:{style:Me},paddingY:{style:Me},paddingInline:{style:Me},paddingInlineStart:{style:Me},paddingInlineEnd:{style:Me},paddingBlock:{style:Me},paddingBlockStart:{style:Me},paddingBlockEnd:{style:Me},m:{style:Pe},mt:{style:Pe},mr:{style:Pe},mb:{style:Pe},ml:{style:Pe},mx:{style:Pe},my:{style:Pe},margin:{style:Pe},marginTop:{style:Pe},marginRight:{style:Pe},marginBottom:{style:Pe},marginLeft:{style:Pe},marginX:{style:Pe},marginY:{style:Pe},marginInline:{style:Pe},marginInlineStart:{style:Pe},marginInlineEnd:{style:Pe},marginBlock:{style:Pe},marginBlockStart:{style:Pe},marginBlockEnd:{style:Pe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Sr},rowGap:{style:wr},columnGap:{style:Tr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:tt},maxWidth:{style:Ro},minWidth:{transform:tt},height:{transform:tt},maxHeight:{transform:tt},minHeight:{transform:tt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function op(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function sp(e,t){return typeof e=="function"?e(t):e}function Ji(){function e(n,r,o,s){const i={[n]:r,theme:o},l=s[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:p,style:f}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=vr(o,u)||{};return f?f(i):vt(i,r,x=>{let d=pr(h,p,x);return x===d&&typeof x=="string"&&(d=pr(h,p,`${n}${x==="default"?"":ut(x)}`,x)),c===!1?d:{[c]:d}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const i=(r=s.unstable_sxConfig)!=null?r:zn;function l(c){let u=c;if(typeof c=="function")u=c(s);else if(typeof c!="object")return c;if(!u)return null;const p=vd(s.breakpoints),f=Object.keys(p);let h=p;return Object.keys(u).forEach(v=>{const x=sp(u[v],s);if(x!=null)if(typeof x=="object")if(i[v])h=$n(h,e(v,x,s,i));else{const d=vt({theme:s},x,C=>({[v]:C}));op(d,x)?h[v]=t({sx:x,theme:s}):h=$n(h,d)}else h=$n(h,e(v,x,s,i))}),bd(f,h)}return Array.isArray(o)?o.map(l):l(o)}return t}const Er=Ji();Er.filterProps=["sx"];function Xi(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const ip=["breakpoints","palette","spacing","shape"];function Qi(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,i=xt(e,ip),l=Yi(n),c=kd(o);let u=mt({breakpoints:l,direction:"ltr",components:{},palette:B({mode:"light"},r),spacing:c,shape:B({},yd,s)},i);return u.applyStyles=Xi,u=t.reduce((p,f)=>mt(p,f),u),u.unstable_sxConfig=B({},zn,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return Er({sx:f,theme:this})},u}const ap=Object.freeze(Object.defineProperty({__proto__:null,default:Qi,private_createBreakpoints:Yi,unstable_applyStyles:Xi},Symbol.toStringTag,{value:"Module"}));function lp(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function cp(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var up=function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(cp(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=lp(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),He="-ms-",hr="-moz-",me="-webkit-",ea="comm",Oo="rule",jo="decl",fp="@import",ta="@keyframes",dp="@layer",pp=Math.abs,kr=String.fromCharCode,hp=Object.assign;function mp(e,t){return Be(e,0)^45?(((t<<2^Be(e,0))<<2^Be(e,1))<<2^Be(e,2))<<2^Be(e,3):0}function na(e){return e.trim()}function gp(e,t){return(e=t.exec(e))?e[0]:e}function ge(e,t,n){return e.replace(t,n)}function fo(e,t){return e.indexOf(t)}function Be(e,t){return e.charCodeAt(t)|0}function Mn(e,t,n){return e.slice(t,n)}function pt(e){return e.length}function $o(e){return e.length}function nr(e,t){return t.push(e),e}function yp(e,t){return e.map(t).join("")}var Rr=1,un=1,ra=0,Ge=0,Ie=0,pn="";function Or(e,t,n,r,o,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Rr,column:un,length:i,return:""}}function Tn(e,t){return hp(Or("",null,null,"",null,null,0),e,{length:-e.length},t)}function vp(){return Ie}function bp(){return Ie=Ge>0?Be(pn,--Ge):0,un--,Ie===10&&(un=1,Rr--),Ie}function nt(){return Ie=Ge<ra?Be(pn,Ge++):0,un++,Ie===10&&(un=1,Rr++),Ie}function gt(){return Be(pn,Ge)}function ar(){return Ge}function Bn(e,t){return Mn(pn,e,t)}function Ln(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function oa(e){return Rr=un=1,ra=pt(pn=e),Ge=0,[]}function sa(e){return pn="",e}function lr(e){return na(Bn(Ge-1,po(e===91?e+2:e===40?e+1:e)))}function xp(e){for(;(Ie=gt())&&Ie<33;)nt();return Ln(e)>2||Ln(Ie)>3?"":" "}function _p(e,t){for(;--t&&nt()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return Bn(e,ar()+(t<6&>()==32&&nt()==32))}function po(e){for(;nt();)switch(Ie){case e:return Ge;case 34:case 39:e!==34&&e!==39&&po(Ie);break;case 40:e===41&&po(e);break;case 92:nt();break}return Ge}function Cp(e,t){for(;nt()&&e+Ie!==57;)if(e+Ie===84&>()===47)break;return"/*"+Bn(t,Ge-1)+"*"+kr(e===47?e:nt())}function Sp(e){for(;!Ln(gt());)nt();return Bn(e,Ge)}function Tp(e){return sa(cr("",null,null,null,[""],e=oa(e),0,[0],e))}function cr(e,t,n,r,o,s,i,l,c){for(var u=0,p=0,f=i,h=0,v=0,x=0,d=1,C=1,S=1,R=0,j="",k=o,_=s,F=r,y=j;C;)switch(x=R,R=nt()){case 40:if(x!=108&&Be(y,f-1)==58){fo(y+=ge(lr(R),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:y+=lr(R);break;case 9:case 10:case 13:case 32:y+=xp(x);break;case 92:y+=_p(ar()-1,7);continue;case 47:switch(gt()){case 42:case 47:nr(wp(Cp(nt(),ar()),t,n),c);break;default:y+="/"}break;case 123*d:l[u++]=pt(y)*S;case 125*d:case 59:case 0:switch(R){case 0:case 125:C=0;case 59+p:S==-1&&(y=ge(y,/\f/g,"")),v>0&&pt(y)-f&&nr(v>32?Is(y+";",r,n,f-1):Is(ge(y," ","")+";",r,n,f-2),c);break;case 59:y+=";";default:if(nr(F=Ns(y,t,n,u,p,o,l,j,k=[],_=[],f),s),R===123)if(p===0)cr(y,t,F,F,k,s,f,l,_);else switch(h===99&&Be(y,3)===110?100:h){case 100:case 108:case 109:case 115:cr(e,F,F,r&&nr(Ns(e,F,F,0,0,o,l,j,o,k=[],f),_),o,_,f,l,r?k:_);break;default:cr(y,F,F,F,[""],_,0,l,_)}}u=p=v=0,d=S=1,j=y="",f=i;break;case 58:f=1+pt(y),v=x;default:if(d<1){if(R==123)--d;else if(R==125&&d++==0&&bp()==125)continue}switch(y+=kr(R),R*d){case 38:S=p>0?1:(y+="\f",-1);break;case 44:l[u++]=(pt(y)-1)*S,S=1;break;case 64:gt()===45&&(y+=lr(nt())),h=gt(),p=f=pt(j=y+=Sp(ar())),R++;break;case 45:x===45&&pt(y)==2&&(d=0)}}return s}function Ns(e,t,n,r,o,s,i,l,c,u,p){for(var f=o-1,h=o===0?s:[""],v=$o(h),x=0,d=0,C=0;x<r;++x)for(var S=0,R=Mn(e,f+1,f=pp(d=i[x])),j=e;S<v;++S)(j=na(d>0?h[S]+" "+R:ge(R,/&\f/g,h[S])))&&(c[C++]=j);return Or(e,t,n,o===0?Oo:l,c,u,p)}function wp(e,t,n){return Or(e,t,n,ea,kr(vp()),Mn(e,2,-2),0)}function Is(e,t,n,r){return Or(e,t,n,jo,Mn(e,0,r),Mn(e,r+1,-1),r)}function an(e,t){for(var n="",r=$o(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ep(e,t,n,r){switch(e.type){case dp:if(e.children.length)break;case fp:case jo:return e.return=e.return||e.value;case ea:return"";case ta:return e.return=e.value+"{"+an(e.children,r)+"}";case Oo:e.value=e.props.join(",")}return pt(n=an(e.children,r))?e.return=e.value+"{"+n+"}":""}function kp(e){var t=$o(e);return function(n,r,o,s){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,s)||"";return i}}function Rp(e){return function(t){t.root||(t=t.return)&&e(t)}}var Op=function(t,n,r){for(var o=0,s=0;o=s,s=gt(),o===38&&s===12&&(n[r]=1),!Ln(s);)nt();return Bn(t,Ge)},jp=function(t,n){var r=-1,o=44;do switch(Ln(o)){case 0:o===38&>()===12&&(n[r]=1),t[r]+=Op(Ge-1,n,r);break;case 2:t[r]+=lr(o);break;case 4:if(o===44){t[++r]=gt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=kr(o)}while(o=nt());return t},$p=function(t,n){return sa(jp(oa(t),n))},Ds=new WeakMap,Pp=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Ds.get(r))&&!o){Ds.set(t,!0);for(var s=[],i=$p(n,s),l=r.props,c=0,u=0;c<i.length;c++)for(var p=0;p<l.length;p++,u++)t.props[u]=s[c]?i[c].replace(/&\f/g,l[p]):l[p]+" "+i[c]}}},Mp=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ia(e,t){switch(mp(e,t)){case 5103:return me+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return me+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return me+e+hr+e+He+e+e;case 6828:case 4268:return me+e+He+e+e;case 6165:return me+e+He+"flex-"+e+e;case 5187:return me+e+ge(e,/(\w+).+(:[^]+)/,me+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return me+e+He+"flex-item-"+ge(e,/flex-|-self/,"")+e;case 4675:return me+e+He+"flex-line-pack"+ge(e,/align-content|flex-|-self/,"")+e;case 5548:return me+e+He+ge(e,"shrink","negative")+e;case 5292:return me+e+He+ge(e,"basis","preferred-size")+e;case 6060:return me+"box-"+ge(e,"-grow","")+me+e+He+ge(e,"grow","positive")+e;case 4554:return me+ge(e,/([^-])(transform)/g,"$1"+me+"$2")+e;case 6187:return ge(ge(ge(e,/(zoom-|grab)/,me+"$1"),/(image-set)/,me+"$1"),e,"")+e;case 5495:case 3959:return ge(e,/(image-set\([^]*)/,me+"$1$`$1");case 4968:return ge(ge(e,/(.+:)(flex-)?(.*)/,me+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+me+e+e;case 4095:case 3583:case 4068:case 2532:return ge(e,/(.+)-inline(.+)/,me+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(pt(e)-1-t>6)switch(Be(e,t+1)){case 109:if(Be(e,t+4)!==45)break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+me+"$2-$3$1"+hr+(Be(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fo(e,"stretch")?ia(ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Be(e,t+1)!==115)break;case 6444:switch(Be(e,pt(e)-3-(~fo(e,"!important")&&10))){case 107:return ge(e,":",":"+me)+e;case 101:return ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+me+(Be(e,14)===45?"inline-":"")+"box$3$1"+me+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(Be(e,t+11)){case 114:return me+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return me+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return me+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return me+e+He+e+e}return e}var Lp=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case jo:t.return=ia(t.value,t.length);break;case ta:return an([Tn(t,{value:ge(t.value,"@","@"+me)})],o);case Oo:if(t.length)return yp(t.props,function(s){switch(gp(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return an([Tn(t,{props:[ge(s,/:(read-\w+)/,":"+hr+"$1")]})],o);case"::placeholder":return an([Tn(t,{props:[ge(s,/:(plac\w+)/,":"+me+"input-$1")]}),Tn(t,{props:[ge(s,/:(plac\w+)/,":"+hr+"$1")]}),Tn(t,{props:[ge(s,/:(plac\w+)/,He+"input-$1")]})],o)}return""})}},Ap=[Lp],Np=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(d){var C=d.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(d),d.setAttribute("data-s",""))})}var o=t.stylisPlugins||Ap,s={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(d){for(var C=d.getAttribute("data-emotion").split(" "),S=1;S<C.length;S++)s[C[S]]=!0;l.push(d)});var c,u=[Pp,Mp];{var p,f=[Ep,Rp(function(d){p.insert(d)})],h=kp(u.concat(o,f)),v=function(C){return an(Tp(C),h)};c=function(C,S,R,j){p=R,v(C?C+"{"+S.styles+"}":S.styles),j&&(x.inserted[S.name]=!0)}}var x={key:n,sheet:new up({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return x.sheet.hydrate(l),x};let ho;typeof document=="object"&&(ho=Np({key:"css",prepend:!0}));function aa(e){const{injectFirst:t,children:n}=e;return t&&ho?m.jsx(on.CacheProvider,{value:ho,children:n}):n}process.env.NODE_ENV!=="production"&&(aa.propTypes={children:a.node,injectFirst:a.bool});function Ip(e){return e==null||Object.keys(e).length===0}function la(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(Ip(o)?n:o):t;return m.jsx(on.Global,{styles:r})}process.env.NODE_ENV!=="production"&&(la.propTypes={defaultTheme:a.object,styles:a.oneOfType([a.array,a.string,a.object,a.func])});/**
|
|
74
|
+
`)),()=>{})}function Zi(e){return Dn(e,"spacing",8,"spacing")}function Fn(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function wd(e,t){return n=>e.reduce((r,o)=>(r[o]=Fn(t,n),r),{})}function Ed(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Sd(n),s=wd(o,r),i=e[n];return vt(e,i,s)}function Gi(e,t){const n=Zi(e.theme);return Object.keys(e).map(r=>Ed(e,t,r,n)).reduce($n,{})}function Pe(e){return Gi(e,br)}Pe.propTypes=process.env.NODE_ENV!=="production"?br.reduce((e,t)=>(e[t]=Ot,e),{}):{};Pe.filterProps=br;function Me(e){return Gi(e,xr)}Me.propTypes=process.env.NODE_ENV!=="production"?xr.reduce((e,t)=>(e[t]=Ot,e),{}):{};Me.filterProps=xr;process.env.NODE_ENV!=="production"&&Td.reduce((e,t)=>(e[t]=Ot,e),{});function kd(e=8){if(e.mui)return e;const t=Zi({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function _r(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?$n(o,t[s](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function it(e){return typeof e!="number"?e:`${e}px solid`}function lt(e,t){return Ae({prop:e,themeKey:"borders",transform:t})}const Rd=lt("border",it),Od=lt("borderTop",it),jd=lt("borderRight",it),$d=lt("borderBottom",it),Pd=lt("borderLeft",it),Md=lt("borderColor"),Ld=lt("borderTopColor"),Ad=lt("borderRightColor"),Nd=lt("borderBottomColor"),Id=lt("borderLeftColor"),Dd=lt("outline",it),Fd=lt("outlineColor"),Cr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Fn(t,r)});return vt(e,e.borderRadius,n)}return null};Cr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ot}:{};Cr.filterProps=["borderRadius"];_r(Rd,Od,jd,$d,Pd,Md,Ld,Ad,Nd,Id,Cr,Dd,Fd);const Sr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dn(e.theme,"spacing",8,"gap"),n=r=>({gap:Fn(t,r)});return vt(e,e.gap,n)}return null};Sr.propTypes=process.env.NODE_ENV!=="production"?{gap:Ot}:{};Sr.filterProps=["gap"];const Tr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Fn(t,r)});return vt(e,e.columnGap,n)}return null};Tr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ot}:{};Tr.filterProps=["columnGap"];const wr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Fn(t,r)});return vt(e,e.rowGap,n)}return null};wr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ot}:{};wr.filterProps=["rowGap"];const zd=Ae({prop:"gridColumn"}),Bd=Ae({prop:"gridRow"}),Ud=Ae({prop:"gridAutoFlow"}),Vd=Ae({prop:"gridAutoColumns"}),qd=Ae({prop:"gridAutoRows"}),Wd=Ae({prop:"gridTemplateColumns"}),Hd=Ae({prop:"gridTemplateRows"}),Kd=Ae({prop:"gridTemplateAreas"}),Yd=Ae({prop:"gridArea"});_r(Sr,Tr,wr,zd,Bd,Ud,Vd,qd,Wd,Hd,Kd,Yd);function sn(e,t){return t==="grey"?t:e}const Zd=Ae({prop:"color",themeKey:"palette",transform:sn}),Gd=Ae({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sn}),Jd=Ae({prop:"backgroundColor",themeKey:"palette",transform:sn});_r(Zd,Gd,Jd);function tt(e){return e<=1&&e!==0?`${e*100}%`:e}const Xd=Ae({prop:"width",transform:tt}),Ro=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||ko[n];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:tt(n)}};return vt(e,e.maxWidth,t)}return null};Ro.filterProps=["maxWidth"];const Qd=Ae({prop:"minWidth",transform:tt}),ep=Ae({prop:"height",transform:tt}),tp=Ae({prop:"maxHeight",transform:tt}),np=Ae({prop:"minHeight",transform:tt});Ae({prop:"size",cssProperty:"width",transform:tt});Ae({prop:"size",cssProperty:"height",transform:tt});const rp=Ae({prop:"boxSizing"});_r(Xd,Ro,Qd,ep,tp,np,rp);const zn={border:{themeKey:"borders",transform:it},borderTop:{themeKey:"borders",transform:it},borderRight:{themeKey:"borders",transform:it},borderBottom:{themeKey:"borders",transform:it},borderLeft:{themeKey:"borders",transform:it},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:it},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cr},color:{themeKey:"palette",transform:sn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sn},backgroundColor:{themeKey:"palette",transform:sn},p:{style:Me},pt:{style:Me},pr:{style:Me},pb:{style:Me},pl:{style:Me},px:{style:Me},py:{style:Me},padding:{style:Me},paddingTop:{style:Me},paddingRight:{style:Me},paddingBottom:{style:Me},paddingLeft:{style:Me},paddingX:{style:Me},paddingY:{style:Me},paddingInline:{style:Me},paddingInlineStart:{style:Me},paddingInlineEnd:{style:Me},paddingBlock:{style:Me},paddingBlockStart:{style:Me},paddingBlockEnd:{style:Me},m:{style:Pe},mt:{style:Pe},mr:{style:Pe},mb:{style:Pe},ml:{style:Pe},mx:{style:Pe},my:{style:Pe},margin:{style:Pe},marginTop:{style:Pe},marginRight:{style:Pe},marginBottom:{style:Pe},marginLeft:{style:Pe},marginX:{style:Pe},marginY:{style:Pe},marginInline:{style:Pe},marginInlineStart:{style:Pe},marginInlineEnd:{style:Pe},marginBlock:{style:Pe},marginBlockStart:{style:Pe},marginBlockEnd:{style:Pe},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Sr},rowGap:{style:wr},columnGap:{style:Tr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:tt},maxWidth:{style:Ro},minWidth:{transform:tt},height:{transform:tt},maxHeight:{transform:tt},minHeight:{transform:tt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function op(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function sp(e,t){return typeof e=="function"?e(t):e}function Ji(){function e(n,r,o,s){const i={[n]:r,theme:o},l=s[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:p,style:d}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=vr(o,u)||{};return d?d(i):vt(i,r,x=>{let f=pr(h,p,x);return x===f&&typeof x=="string"&&(f=pr(h,p,`${n}${x==="default"?"":ut(x)}`,x)),c===!1?f:{[c]:f}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const i=(r=s.unstable_sxConfig)!=null?r:zn;function l(c){let u=c;if(typeof c=="function")u=c(s);else if(typeof c!="object")return c;if(!u)return null;const p=vd(s.breakpoints),d=Object.keys(p);let h=p;return Object.keys(u).forEach(v=>{const x=sp(u[v],s);if(x!=null)if(typeof x=="object")if(i[v])h=$n(h,e(v,x,s,i));else{const f=vt({theme:s},x,C=>({[v]:C}));op(f,x)?h[v]=t({sx:x,theme:s}):h=$n(h,f)}else h=$n(h,e(v,x,s,i))}),bd(d,h)}return Array.isArray(o)?o.map(l):l(o)}return t}const Er=Ji();Er.filterProps=["sx"];function Xi(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const ip=["breakpoints","palette","spacing","shape"];function Qi(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,i=xt(e,ip),l=Yi(n),c=kd(o);let u=mt({breakpoints:l,direction:"ltr",components:{},palette:B({mode:"light"},r),spacing:c,shape:B({},yd,s)},i);return u.applyStyles=Xi,u=t.reduce((p,d)=>mt(p,d),u),u.unstable_sxConfig=B({},zn,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(d){return Er({sx:d,theme:this})},u}const ap=Object.freeze(Object.defineProperty({__proto__:null,default:Qi,private_createBreakpoints:Yi,unstable_applyStyles:Xi},Symbol.toStringTag,{value:"Module"}));function lp(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function cp(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var up=function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(cp(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=lp(o);try{s.insertRule(r,s.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),He="-ms-",hr="-moz-",me="-webkit-",ea="comm",Oo="rule",jo="decl",fp="@import",ta="@keyframes",dp="@layer",pp=Math.abs,kr=String.fromCharCode,hp=Object.assign;function mp(e,t){return Be(e,0)^45?(((t<<2^Be(e,0))<<2^Be(e,1))<<2^Be(e,2))<<2^Be(e,3):0}function na(e){return e.trim()}function gp(e,t){return(e=t.exec(e))?e[0]:e}function ge(e,t,n){return e.replace(t,n)}function fo(e,t){return e.indexOf(t)}function Be(e,t){return e.charCodeAt(t)|0}function Mn(e,t,n){return e.slice(t,n)}function pt(e){return e.length}function $o(e){return e.length}function nr(e,t){return t.push(e),e}function yp(e,t){return e.map(t).join("")}var Rr=1,un=1,ra=0,Ge=0,Ie=0,pn="";function Or(e,t,n,r,o,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Rr,column:un,length:i,return:""}}function Tn(e,t){return hp(Or("",null,null,"",null,null,0),e,{length:-e.length},t)}function vp(){return Ie}function bp(){return Ie=Ge>0?Be(pn,--Ge):0,un--,Ie===10&&(un=1,Rr--),Ie}function nt(){return Ie=Ge<ra?Be(pn,Ge++):0,un++,Ie===10&&(un=1,Rr++),Ie}function gt(){return Be(pn,Ge)}function ar(){return Ge}function Bn(e,t){return Mn(pn,e,t)}function Ln(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function oa(e){return Rr=un=1,ra=pt(pn=e),Ge=0,[]}function sa(e){return pn="",e}function lr(e){return na(Bn(Ge-1,po(e===91?e+2:e===40?e+1:e)))}function xp(e){for(;(Ie=gt())&&Ie<33;)nt();return Ln(e)>2||Ln(Ie)>3?"":" "}function _p(e,t){for(;--t&&nt()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return Bn(e,ar()+(t<6&>()==32&&nt()==32))}function po(e){for(;nt();)switch(Ie){case e:return Ge;case 34:case 39:e!==34&&e!==39&&po(Ie);break;case 40:e===41&&po(e);break;case 92:nt();break}return Ge}function Cp(e,t){for(;nt()&&e+Ie!==57;)if(e+Ie===84&>()===47)break;return"/*"+Bn(t,Ge-1)+"*"+kr(e===47?e:nt())}function Sp(e){for(;!Ln(gt());)nt();return Bn(e,Ge)}function Tp(e){return sa(cr("",null,null,null,[""],e=oa(e),0,[0],e))}function cr(e,t,n,r,o,s,i,l,c){for(var u=0,p=0,d=i,h=0,v=0,x=0,f=1,C=1,S=1,j=0,w="",R=o,_=s,F=r,y=w;C;)switch(x=j,j=nt()){case 40:if(x!=108&&Be(y,d-1)==58){fo(y+=ge(lr(j),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:y+=lr(j);break;case 9:case 10:case 13:case 32:y+=xp(x);break;case 92:y+=_p(ar()-1,7);continue;case 47:switch(gt()){case 42:case 47:nr(wp(Cp(nt(),ar()),t,n),c);break;default:y+="/"}break;case 123*f:l[u++]=pt(y)*S;case 125*f:case 59:case 0:switch(j){case 0:case 125:C=0;case 59+p:S==-1&&(y=ge(y,/\f/g,"")),v>0&&pt(y)-d&&nr(v>32?Is(y+";",r,n,d-1):Is(ge(y," ","")+";",r,n,d-2),c);break;case 59:y+=";";default:if(nr(F=Ns(y,t,n,u,p,o,l,w,R=[],_=[],d),s),j===123)if(p===0)cr(y,t,F,F,R,s,d,l,_);else switch(h===99&&Be(y,3)===110?100:h){case 100:case 108:case 109:case 115:cr(e,F,F,r&&nr(Ns(e,F,F,0,0,o,l,w,o,R=[],d),_),o,_,d,l,r?R:_);break;default:cr(y,F,F,F,[""],_,0,l,_)}}u=p=v=0,f=S=1,w=y="",d=i;break;case 58:d=1+pt(y),v=x;default:if(f<1){if(j==123)--f;else if(j==125&&f++==0&&bp()==125)continue}switch(y+=kr(j),j*f){case 38:S=p>0?1:(y+="\f",-1);break;case 44:l[u++]=(pt(y)-1)*S,S=1;break;case 64:gt()===45&&(y+=lr(nt())),h=gt(),p=d=pt(w=y+=Sp(ar())),j++;break;case 45:x===45&&pt(y)==2&&(f=0)}}return s}function Ns(e,t,n,r,o,s,i,l,c,u,p){for(var d=o-1,h=o===0?s:[""],v=$o(h),x=0,f=0,C=0;x<r;++x)for(var S=0,j=Mn(e,d+1,d=pp(f=i[x])),w=e;S<v;++S)(w=na(f>0?h[S]+" "+j:ge(j,/&\f/g,h[S])))&&(c[C++]=w);return Or(e,t,n,o===0?Oo:l,c,u,p)}function wp(e,t,n){return Or(e,t,n,ea,kr(vp()),Mn(e,2,-2),0)}function Is(e,t,n,r){return Or(e,t,n,jo,Mn(e,0,r),Mn(e,r+1,-1),r)}function an(e,t){for(var n="",r=$o(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ep(e,t,n,r){switch(e.type){case dp:if(e.children.length)break;case fp:case jo:return e.return=e.return||e.value;case ea:return"";case ta:return e.return=e.value+"{"+an(e.children,r)+"}";case Oo:e.value=e.props.join(",")}return pt(n=an(e.children,r))?e.return=e.value+"{"+n+"}":""}function kp(e){var t=$o(e);return function(n,r,o,s){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,s)||"";return i}}function Rp(e){return function(t){t.root||(t=t.return)&&e(t)}}var Op=function(t,n,r){for(var o=0,s=0;o=s,s=gt(),o===38&&s===12&&(n[r]=1),!Ln(s);)nt();return Bn(t,Ge)},jp=function(t,n){var r=-1,o=44;do switch(Ln(o)){case 0:o===38&>()===12&&(n[r]=1),t[r]+=Op(Ge-1,n,r);break;case 2:t[r]+=lr(o);break;case 4:if(o===44){t[++r]=gt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=kr(o)}while(o=nt());return t},$p=function(t,n){return sa(jp(oa(t),n))},Ds=new WeakMap,Pp=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Ds.get(r))&&!o){Ds.set(t,!0);for(var s=[],i=$p(n,s),l=r.props,c=0,u=0;c<i.length;c++)for(var p=0;p<l.length;p++,u++)t.props[u]=s[c]?i[c].replace(/&\f/g,l[p]):l[p]+" "+i[c]}}},Mp=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ia(e,t){switch(mp(e,t)){case 5103:return me+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return me+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return me+e+hr+e+He+e+e;case 6828:case 4268:return me+e+He+e+e;case 6165:return me+e+He+"flex-"+e+e;case 5187:return me+e+ge(e,/(\w+).+(:[^]+)/,me+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return me+e+He+"flex-item-"+ge(e,/flex-|-self/,"")+e;case 4675:return me+e+He+"flex-line-pack"+ge(e,/align-content|flex-|-self/,"")+e;case 5548:return me+e+He+ge(e,"shrink","negative")+e;case 5292:return me+e+He+ge(e,"basis","preferred-size")+e;case 6060:return me+"box-"+ge(e,"-grow","")+me+e+He+ge(e,"grow","positive")+e;case 4554:return me+ge(e,/([^-])(transform)/g,"$1"+me+"$2")+e;case 6187:return ge(ge(ge(e,/(zoom-|grab)/,me+"$1"),/(image-set)/,me+"$1"),e,"")+e;case 5495:case 3959:return ge(e,/(image-set\([^]*)/,me+"$1$`$1");case 4968:return ge(ge(e,/(.+:)(flex-)?(.*)/,me+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+me+e+e;case 4095:case 3583:case 4068:case 2532:return ge(e,/(.+)-inline(.+)/,me+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(pt(e)-1-t>6)switch(Be(e,t+1)){case 109:if(Be(e,t+4)!==45)break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+me+"$2-$3$1"+hr+(Be(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fo(e,"stretch")?ia(ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Be(e,t+1)!==115)break;case 6444:switch(Be(e,pt(e)-3-(~fo(e,"!important")&&10))){case 107:return ge(e,":",":"+me)+e;case 101:return ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+me+(Be(e,14)===45?"inline-":"")+"box$3$1"+me+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(Be(e,t+11)){case 114:return me+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return me+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return me+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return me+e+He+e+e}return e}var Lp=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case jo:t.return=ia(t.value,t.length);break;case ta:return an([Tn(t,{value:ge(t.value,"@","@"+me)})],o);case Oo:if(t.length)return yp(t.props,function(s){switch(gp(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return an([Tn(t,{props:[ge(s,/:(read-\w+)/,":"+hr+"$1")]})],o);case"::placeholder":return an([Tn(t,{props:[ge(s,/:(plac\w+)/,":"+me+"input-$1")]}),Tn(t,{props:[ge(s,/:(plac\w+)/,":"+hr+"$1")]}),Tn(t,{props:[ge(s,/:(plac\w+)/,He+"input-$1")]})],o)}return""})}},Ap=[Lp],Np=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var C=f.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var o=t.stylisPlugins||Ap,s={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var C=f.getAttribute("data-emotion").split(" "),S=1;S<C.length;S++)s[C[S]]=!0;l.push(f)});var c,u=[Pp,Mp];{var p,d=[Ep,Rp(function(f){p.insert(f)})],h=kp(u.concat(o,d)),v=function(C){return an(Tp(C),h)};c=function(C,S,j,w){p=j,v(C?C+"{"+S.styles+"}":S.styles),w&&(x.inserted[S.name]=!0)}}var x={key:n,sheet:new up({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return x.sheet.hydrate(l),x};let ho;typeof document=="object"&&(ho=Np({key:"css",prepend:!0}));function aa(e){const{injectFirst:t,children:n}=e;return t&&ho?m.jsx(on.CacheProvider,{value:ho,children:n}):n}process.env.NODE_ENV!=="production"&&(aa.propTypes={children:a.node,injectFirst:a.bool});function Ip(e){return e==null||Object.keys(e).length===0}function la(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(Ip(o)?n:o):t;return m.jsx(on.Global,{styles:r})}process.env.NODE_ENV!=="production"&&(la.propTypes={defaultTheme:a.object,styles:a.oneOfType([a.array,a.string,a.object,a.func])});/**
|
|
75
75
|
* @mui/styled-engine v5.16.14
|
|
76
76
|
*
|
|
77
77
|
* @license MIT
|
|
78
78
|
* This source code is licensed under the MIT license found in the
|
|
79
79
|
* LICENSE file in the root directory of this source tree.
|
|
80
80
|
*/function Dp(e,t){const n=ka(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
81
|
-
`)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const Fp=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},zp=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:la,StyledEngineProvider:aa,ThemeContext:on.ThemeContext,css:on.css,default:Dp,internal_processStyles:Fp,keyframes:on.keyframes},Symbol.toStringTag,{value:"Module"})),Bp=["sx"],Up=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:zn;return Object.keys(e).forEach(s=>{o[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function Vp(e){const{sx:t}=e,n=xt(e,Bp),{systemProps:r,otherProps:o}=Up(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const l=t(...i);return wt(l)?B({},r,l):r}:s=B({},r,t),B({},o,{sx:s})}const qp=Object.freeze(Object.defineProperty({__proto__:null,default:Er,extendSxProp:Vp,unstable_createStyleFunctionSx:Ji,unstable_defaultSxConfig:zn},Symbol.toStringTag,{value:"Module"}));function Wp(e,t){return B({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const An={black:"#000",white:"#fff"},Hp={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Gt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Jt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},wn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Xt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Qt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},en={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Kp=["mode","contrastThreshold","tonalOffset"],Fs={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:An.white,default:An.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Qr={text:{primary:An.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:An.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function zs(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=ht.lighten(e.main,o):t==="dark"&&(e.dark=ht.darken(e.main,s)))}function Yp(e="light"){return e==="dark"?{main:Xt[200],light:Xt[50],dark:Xt[400]}:{main:Xt[700],light:Xt[400],dark:Xt[800]}}function Zp(e="light"){return e==="dark"?{main:Gt[200],light:Gt[50],dark:Gt[400]}:{main:Gt[500],light:Gt[300],dark:Gt[700]}}function Gp(e="light"){return e==="dark"?{main:Jt[500],light:Jt[300],dark:Jt[700]}:{main:Jt[700],light:Jt[400],dark:Jt[800]}}function Jp(e="light"){return e==="dark"?{main:Qt[400],light:Qt[300],dark:Qt[700]}:{main:Qt[700],light:Qt[500],dark:Qt[900]}}function Xp(e="light"){return e==="dark"?{main:en[400],light:en[300],dark:en[700]}:{main:en[800],light:en[500],dark:en[900]}}function Qp(e="light"){return e==="dark"?{main:wn[400],light:wn[300],dark:wn[700]}:{main:"#ed6c02",light:wn[500],dark:wn[900]}}function eh(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=xt(e,Kp),s=e.primary||Yp(t),i=e.secondary||Zp(t),l=e.error||Gp(t),c=e.info||Jp(t),u=e.success||Xp(t),p=e.warning||Qp(t);function f
|
|
82
|
-
`))}return C}const h=({color:
|
|
83
|
-
The color object needs to have a \`main\` property or a \`${S}\` property.`:Pn(11,C?` (${C})`:"",S));if(typeof
|
|
84
|
-
\`color.main\` should be a string, but \`${JSON.stringify(
|
|
81
|
+
`)):r.some(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const Fp=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},zp=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:la,StyledEngineProvider:aa,ThemeContext:on.ThemeContext,css:on.css,default:Dp,internal_processStyles:Fp,keyframes:on.keyframes},Symbol.toStringTag,{value:"Module"})),Bp=["sx"],Up=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:zn;return Object.keys(e).forEach(s=>{o[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function Vp(e){const{sx:t}=e,n=xt(e,Bp),{systemProps:r,otherProps:o}=Up(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const l=t(...i);return wt(l)?B({},r,l):r}:s=B({},r,t),B({},o,{sx:s})}const qp=Object.freeze(Object.defineProperty({__proto__:null,default:Er,extendSxProp:Vp,unstable_createStyleFunctionSx:Ji,unstable_defaultSxConfig:zn},Symbol.toStringTag,{value:"Module"}));function Wp(e,t){return B({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const An={black:"#000",white:"#fff"},Hp={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Gt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Jt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},wn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Xt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Qt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},en={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Kp=["mode","contrastThreshold","tonalOffset"],Fs={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:An.white,default:An.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Qr={text:{primary:An.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:An.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function zs(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=ht.lighten(e.main,o):t==="dark"&&(e.dark=ht.darken(e.main,s)))}function Yp(e="light"){return e==="dark"?{main:Xt[200],light:Xt[50],dark:Xt[400]}:{main:Xt[700],light:Xt[400],dark:Xt[800]}}function Zp(e="light"){return e==="dark"?{main:Gt[200],light:Gt[50],dark:Gt[400]}:{main:Gt[500],light:Gt[300],dark:Gt[700]}}function Gp(e="light"){return e==="dark"?{main:Jt[500],light:Jt[300],dark:Jt[700]}:{main:Jt[700],light:Jt[400],dark:Jt[800]}}function Jp(e="light"){return e==="dark"?{main:Qt[400],light:Qt[300],dark:Qt[700]}:{main:Qt[700],light:Qt[500],dark:Qt[900]}}function Xp(e="light"){return e==="dark"?{main:en[400],light:en[300],dark:en[700]}:{main:en[800],light:en[500],dark:en[900]}}function Qp(e="light"){return e==="dark"?{main:wn[400],light:wn[300],dark:wn[700]}:{main:"#ed6c02",light:wn[500],dark:wn[900]}}function eh(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=xt(e,Kp),s=e.primary||Yp(t),i=e.secondary||Zp(t),l=e.error||Gp(t),c=e.info||Jp(t),u=e.success||Xp(t),p=e.warning||Qp(t);function d(f){const C=ht.getContrastRatio(f,Qr.text.primary)>=n?Qr.text.primary:Fs.text.primary;if(process.env.NODE_ENV!=="production"){const S=ht.getContrastRatio(f,C);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${C} on ${f}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
82
|
+
`))}return C}const h=({color:f,name:C,mainShade:S=500,lightShade:j=300,darkShade:w=700})=>{if(f=B({},f),!f.main&&f[S]&&(f.main=f[S]),!f.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
|
|
83
|
+
The color object needs to have a \`main\` property or a \`${S}\` property.`:Pn(11,C?` (${C})`:"",S));if(typeof f.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
|
|
84
|
+
\`color.main\` should be a string, but \`${JSON.stringify(f.main)}\` was provided instead.
|
|
85
85
|
|
|
86
86
|
Did you intend to use one of the following approaches?
|
|
87
87
|
|
|
@@ -93,6 +93,6 @@ const theme1 = createTheme({ palette: {
|
|
|
93
93
|
|
|
94
94
|
const theme2 = createTheme({ palette: {
|
|
95
95
|
primary: { main: green[500] },
|
|
96
|
-
} });`:Pn(12,C?` (${C})`:"",JSON.stringify(
|
|
97
|
-
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof i=="string"?i:Vs(i)} ${l} ${typeof c=="string"?c:Vs(c)}`).join(",")}},e,{easing:t,duration:n})}const ph={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},hh=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function mh(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,i=xt(e,hh);if(e.vars&&e.generateCssVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Pn(18));const l=eh(r),c=Qi(e);let u=mt(c,{mixins:Wp(c.breakpoints,n),palette:l,shadows:ah.slice(),typography:rh(l,s),transitions:dh(o),zIndex:B({},ph)});if(u=mt(u,i),u=t.reduce((p,
|
|
98
|
-
`))}h[x]={}}}};Object.keys(u.components).forEach(h=>{const v=u.components[h].styleOverrides;v&&h.indexOf("Mui")===0&&f(v,h)})}return u.unstable_sxConfig=B({},zn,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return Er({sx:f,theme:this})},u}const gh=mh(),yh="$$material";var Nt={},eo={exports:{}},qs;function vh(){return qs||(qs=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var s in o)({}).hasOwnProperty.call(o,s)&&(n[s]=o[s])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(eo)),eo.exports}var to={exports:{}},Ws;function bh(){return Ws||(Ws=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(r.indexOf(s)!==-1)continue;o[s]=n[s]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(to)),to.exports}const xh=kt(zp),_h=kt(Ff),Ch=kt(Hf),Sh=kt(Wf),Th=kt(ap),wh=kt(qp);var Hs;function Eh(){if(Hs)return Nt;Hs=1;var e=Ui();Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.default=F,Nt.shouldForwardProp=C,Nt.systemDefaultTheme=void 0;var t=e(vh()),n=e(bh()),r=v(xh),o=_h,s=e(Ch),i=e(Sh),l=e(Th),c=e(wh);const u=["ownerState"],p=["variants"],f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,T=new WeakMap;return(h=function($){return $?T:w})(y)}function v(y,w){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var T=h(w);if(T&&T.has(y))return T.get(y);var $={__proto__:null},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in y)if(H!=="default"&&Object.prototype.hasOwnProperty.call(y,H)){var U=N?Object.getOwnPropertyDescriptor(y,H):null;U&&(U.get||U.set)?Object.defineProperty($,H,U):$[H]=y[H]}return $.default=y,T&&T.set(y,$),$}function x(y){return Object.keys(y).length===0}function d(y){return typeof y=="string"&&y.charCodeAt(0)>96}function C(y){return y!=="ownerState"&&y!=="theme"&&y!=="sx"&&y!=="as"}const S=Nt.systemDefaultTheme=(0,l.default)(),R=y=>y&&y.charAt(0).toLowerCase()+y.slice(1);function j({defaultTheme:y,theme:w,themeId:T}){return x(w)?y:w[T]||w}function k(y){return y?(w,T)=>T[y]:null}function _(y,w){let{ownerState:T}=w,$=(0,n.default)(w,u);const N=typeof y=="function"?y((0,t.default)({ownerState:T},$)):y;if(Array.isArray(N))return N.flatMap(H=>_(H,(0,t.default)({ownerState:T},$)));if(N&&typeof N=="object"&&Array.isArray(N.variants)){const{variants:H=[]}=N;let ce=(0,n.default)(N,p);return H.forEach(K=>{let se=!0;typeof K.props=="function"?se=K.props((0,t.default)({ownerState:T},$,T)):Object.keys(K.props).forEach(re=>{(T==null?void 0:T[re])!==K.props[re]&&$[re]!==K.props[re]&&(se=!1)}),se&&(Array.isArray(ce)||(ce=[ce]),ce.push(typeof K.style=="function"?K.style((0,t.default)({ownerState:T},$,T)):K.style))}),ce}return N}function F(y={}){const{themeId:w,defaultTheme:T=S,rootShouldForwardProp:$=C,slotShouldForwardProp:N=C}=y,H=U=>(0,c.default)((0,t.default)({},U,{theme:j((0,t.default)({},U,{defaultTheme:T,themeId:w}))}));return H.__mui_systemSx=!0,(U,ce={})=>{(0,r.internal_processStyles)(U,V=>V.filter(G=>!(G!=null&&G.__mui_systemSx)));const{name:K,slot:se,skipVariantsResolver:re,skipSx:ke,overridesResolver:$e=k(R(se))}=ce,O=(0,n.default)(ce,f),A=re!==void 0?re:se&&se!=="Root"&&se!=="root"||!1,Q=ke||!1;let q;process.env.NODE_ENV!=="production"&&K&&(q=`${K}-${R(se||"Root")}`);let z=C;se==="Root"||se==="root"?z=$:se?z=N:d(U)&&(z=void 0);const ee=(0,r.default)(U,(0,t.default)({shouldForwardProp:z,label:q},O)),Z=V=>typeof V=="function"&&V.__emotion_real!==V||(0,o.isPlainObject)(V)?G=>_(V,(0,t.default)({},G,{theme:j({theme:G.theme,defaultTheme:T,themeId:w})})):V,Y=(V,...G)=>{let ne=Z(V);const be=G?G.map(Z):[];K&&$e&&be.push(ie=>{const ae=j((0,t.default)({},ie,{defaultTheme:T,themeId:w}));if(!ae.components||!ae.components[K]||!ae.components[K].styleOverrides)return null;const Oe=ae.components[K].styleOverrides,Ve={};return Object.entries(Oe).forEach(([qe,ft])=>{Ve[qe]=_(ft,(0,t.default)({},ie,{theme:ae}))}),$e(ie,Ve)}),K&&!A&&be.push(ie=>{var ae;const Oe=j((0,t.default)({},ie,{defaultTheme:T,themeId:w})),Ve=Oe==null||(ae=Oe.components)==null||(ae=ae[K])==null?void 0:ae.variants;return _({variants:Ve},(0,t.default)({},ie,{theme:Oe}))}),Q||be.push(H);const P=be.length-G.length;if(Array.isArray(V)&&P>0){const ie=new Array(P).fill("");ne=[...V,...ie],ne.raw=[...V.raw,...ie]}const xe=ee(ne,...be);if(process.env.NODE_ENV!=="production"){let ie;K&&(ie=`${K}${(0,s.default)(se||"")}`),ie===void 0&&(ie=`Styled(${(0,i.default)(U)})`),xe.displayName=ie}return U.muiName&&(xe.muiName=U.muiName),xe};return ee.withConfig&&(Y.withConfig=ee.withConfig),Y}}return Nt}var kh=Eh();const Rh=Gs(kh);function Po(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Oh=e=>Po(e)&&e!=="classes",Ft=Rh({themeId:yh,defaultTheme:gh,rootShouldForwardProp:Oh}),jh=X.createContext(void 0);process.env.NODE_ENV!=="production"&&(a.node,a.object);function $h(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?uo(o.defaultProps,r):!o.styleOverrides&&!o.variants?uo(o,r):r}function Ph({props:e,name:t}){const n=X.useContext(jh);return $h({props:e,name:t,theme:{components:n}})}process.env.NODE_ENV!=="production"&&(a.node,a.object.isRequired);function Mh(e){return Ph(e)}const Lh=e=>!e||!jn(e);function Ah(e){return Eo("MuiSlider",e)}const at=id("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Nh=e=>{const{open:t}=e;return{offset:Et(t&&at.valueLabelOpen),circle:at.valueLabelCircle,label:at.valueLabelLabel}};function ca(e){const{children:t,className:n,value:r}=e,o=Nh(e);return t?X.cloneElement(t,{className:Et(t.props.className)},m.jsxs(X.Fragment,{children:[t.props.children,m.jsx("span",{className:Et(o.offset,n),"aria-hidden":!0,children:m.jsx("span",{className:o.circle,children:m.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(ca.propTypes={children:a.element.isRequired,className:a.string,value:a.node});const Ih=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Ks(e){return e}const Dh=Ft("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ut(n.color)}`],n.size!=="medium"&&t[`size${ut(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${at.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${at.dragging}`]:{[`& .${at.thumb}, & .${at.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),Fh=Ft("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),zh=Ft("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:B({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:B({backgroundColor:ht.lighten(e.palette[n].main,.62),borderColor:ht.lighten(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:ht.darken(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:ht.darken(e.palette[n].main,.5)})))}))]}}),Bh=Ft("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ut(n.color)}`],n.size!=="medium"&&t[`thumbSize${ut(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${at.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${at.focusVisible}`]:B({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${ht.alpha(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${at.active}`]:B({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${ht.alpha(e.palette[n].main,.16)}`})}}))]}}),Uh=Ft(ca,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>B({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${at.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${at.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),Vh=Ft("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Po(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),qh=Ft("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Po(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>B({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),Wh=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:s,classes:i,color:l,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",l&&`color${ut(l)}`,c&&`size${ut(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${ut(c)}`,l&&`thumbColor${ut(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ef(u,Ah,i)},Hh=({children:e})=>e,ua=X.forwardRef(function(t,n){var r,o,s,i,l,c,u,p,f,h,v,x,d,C,S,R,j,k,_,F,y,w,T,$;const N=Mh({props:t,name:"MuiSlider"}),H=Mf(),{"aria-label":U,"aria-valuetext":ce,"aria-labelledby":K,component:se="span",components:re={},componentsProps:ke={},color:$e="primary",classes:O,className:A,disableSwap:Q=!1,disabled:q=!1,getAriaLabel:z,getAriaValueText:ee,marks:Z=!1,max:Y=100,min:V=0,orientation:G="horizontal",shiftStep:ne=10,size:be="medium",step:P=1,scale:xe=Ks,slotProps:ie,slots:ae,track:Oe="normal",valueLabelDisplay:Ve="off",valueLabelFormat:qe=Ks}=N,ft=xt(N,Ih),De=B({},N,{isRtl:H,max:Y,min:V,classes:O,disabled:q,disableSwap:Q,orientation:G,marks:Z,color:$e,size:be,step:P,shiftStep:ne,scale:xe,track:Oe,valueLabelDisplay:Ve,valueLabelFormat:qe}),{axisProps:_t,getRootProps:jt,getHiddenInputProps:hn,getThumbProps:mn,open:gn,active:zt,axis:Ct,focusedThumbIndex:M,range:D,dragging:W,marks:de,values:pe,trackOffset:fe,trackLeap:Je,getThumbStyle:rt}=hd(B({},De,{rootRef:n}));De.marked=de.length>0&&de.some(J=>J.label),De.dragging=W,De.focusedThumbIndex=M;const he=Wh(De),Ke=(r=(o=ae==null?void 0:ae.root)!=null?o:re.Root)!=null?r:Dh,dt=(s=(i=ae==null?void 0:ae.rail)!=null?i:re.Rail)!=null?s:Fh,yn=(l=(c=ae==null?void 0:ae.track)!=null?c:re.Track)!=null?l:zh,yt=(u=(p=ae==null?void 0:ae.thumb)!=null?p:re.Thumb)!=null?u:Bh,Bt=(f=(h=ae==null?void 0:ae.valueLabel)!=null?h:re.ValueLabel)!=null?f:Uh,$t=(v=(x=ae==null?void 0:ae.mark)!=null?x:re.Mark)!=null?v:Vh,Ut=(d=(C=ae==null?void 0:ae.markLabel)!=null?C:re.MarkLabel)!=null?d:qh,Un=(S=(R=ae==null?void 0:ae.input)!=null?R:re.Input)!=null?S:"input",Vt=(j=ie==null?void 0:ie.root)!=null?j:ke.root,jr=(k=ie==null?void 0:ie.rail)!=null?k:ke.rail,qt=(_=ie==null?void 0:ie.track)!=null?_:ke.track,Wt=(F=ie==null?void 0:ie.thumb)!=null?F:ke.thumb,vn=(y=ie==null?void 0:ie.valueLabel)!=null?y:ke.valueLabel,$r=(w=ie==null?void 0:ie.mark)!=null?w:ke.mark,Vn=(T=ie==null?void 0:ie.markLabel)!=null?T:ke.markLabel,qn=($=ie==null?void 0:ie.input)!=null?$:ke.input,Pr=Tt({elementType:Ke,getSlotProps:jt,externalSlotProps:Vt,externalForwardedProps:ft,additionalProps:B({},Lh(Ke)&&{as:se}),ownerState:B({},De,Vt==null?void 0:Vt.ownerState),className:[he.root,A]}),Mr=Tt({elementType:dt,externalSlotProps:jr,ownerState:De,className:he.rail}),Lr=Tt({elementType:yn,externalSlotProps:qt,additionalProps:{style:B({},_t[Ct].offset(fe),_t[Ct].leap(Je))},ownerState:B({},De,qt==null?void 0:qt.ownerState),className:he.track}),bn=Tt({elementType:yt,getSlotProps:mn,externalSlotProps:Wt,ownerState:B({},De,Wt==null?void 0:Wt.ownerState),className:he.thumb}),g=Tt({elementType:Bt,externalSlotProps:vn,ownerState:B({},De,vn==null?void 0:vn.ownerState),className:he.valueLabel}),E=Tt({elementType:$t,externalSlotProps:$r,ownerState:De,className:he.mark}),I=Tt({elementType:Ut,externalSlotProps:Vn,ownerState:De,className:he.markLabel}),te=Tt({elementType:Un,getSlotProps:hn,externalSlotProps:qn,ownerState:De});return m.jsxs(Ke,B({},Pr,{children:[m.jsx(dt,B({},Mr)),m.jsx(yn,B({},Lr)),de.filter(J=>J.value>=V&&J.value<=Y).map((J,oe)=>{const ue=dr(J.value,V,Y),le=_t[Ct].offset(ue);let we;return Oe===!1?we=pe.indexOf(J.value)!==-1:we=Oe==="normal"&&(D?J.value>=pe[0]&&J.value<=pe[pe.length-1]:J.value<=pe[0])||Oe==="inverted"&&(D?J.value<=pe[0]||J.value>=pe[pe.length-1]:J.value>=pe[0]),m.jsxs(X.Fragment,{children:[m.jsx($t,B({"data-index":oe},E,!jn($t)&&{markActive:we},{style:B({},le,E.style),className:Et(E.className,we&&he.markActive)})),J.label!=null?m.jsx(Ut,B({"aria-hidden":!0,"data-index":oe},I,!jn(Ut)&&{markLabelActive:we},{style:B({},le,I.style),className:Et(he.markLabel,I.className,we&&he.markLabelActive),children:J.label})):null]},oe)}),pe.map((J,oe)=>{const ue=dr(J,V,Y),le=_t[Ct].offset(ue),we=Ve==="off"?Hh:Bt;return m.jsx(we,B({},!jn(we)&&{valueLabelFormat:qe,valueLabelDisplay:Ve,value:typeof qe=="function"?qe(xe(J),oe):qe,index:oe,open:gn===oe||zt===oe||Ve==="on",disabled:q},g,{children:m.jsx(yt,B({"data-index":oe},bn,{className:Et(he.thumb,bn.className,zt===oe&&he.active,M===oe&&he.focusVisible),style:B({},le,rt(oe),bn.style),children:m.jsx(Un,B({"data-index":oe,"aria-label":z?z(oe):U,"aria-valuenow":xe(J),"aria-labelledby":K,"aria-valuetext":ee?ee(xe(J),oe):ce,value:pe[oe]},te))}))}),oe)})]}))});process.env.NODE_ENV!=="production"&&(ua.propTypes={"aria-label":_s(a.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":a.string,"aria-valuetext":_s(a.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["primary","secondary","error","info","success","warning"]),a.string]),components:a.shape({Input:a.elementType,Mark:a.elementType,MarkLabel:a.elementType,Rail:a.elementType,Root:a.elementType,Thumb:a.elementType,Track:a.elementType,ValueLabel:a.elementType}),componentsProps:a.shape({input:a.oneOfType([a.func,a.object]),mark:a.oneOfType([a.func,a.object]),markLabel:a.oneOfType([a.func,a.object]),rail:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object]),thumb:a.oneOfType([a.func,a.object]),track:a.oneOfType([a.func,a.object]),valueLabel:a.oneOfType([a.func,a.shape({children:a.element,className:a.string,open:a.bool,style:a.object,value:a.number,valueLabelDisplay:a.oneOf(["auto","off","on"])})])}),defaultValue:a.oneOfType([a.arrayOf(a.number),a.number]),disabled:a.bool,disableSwap:a.bool,getAriaLabel:a.func,getAriaValueText:a.func,marks:a.oneOfType([a.arrayOf(a.shape({label:a.node,value:a.number.isRequired})),a.bool]),max:a.number,min:a.number,name:a.string,onChange:a.func,onChangeCommitted:a.func,orientation:a.oneOf(["horizontal","vertical"]),scale:a.func,shiftStep:a.number,size:a.oneOfType([a.oneOf(["small","medium"]),a.string]),slotProps:a.shape({input:a.oneOfType([a.func,a.object]),mark:a.oneOfType([a.func,a.object]),markLabel:a.oneOfType([a.func,a.object]),rail:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object]),thumb:a.oneOfType([a.func,a.object]),track:a.oneOfType([a.func,a.object]),valueLabel:a.oneOfType([a.func,a.shape({children:a.element,className:a.string,open:a.bool,style:a.object,value:a.number,valueLabelDisplay:a.oneOf(["auto","off","on"])})])}),slots:a.shape({input:a.elementType,mark:a.elementType,markLabel:a.elementType,rail:a.elementType,root:a.elementType,thumb:a.elementType,track:a.elementType,valueLabel:a.elementType}),step:a.number,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),tabIndex:a.number,track:a.oneOf(["inverted","normal",!1]),value:a.oneOfType([a.arrayOf(a.number),a.number]),valueLabelDisplay:a.oneOf(["auto","off","on"]),valueLabelFormat:a.oneOfType([a.func,a.string])});const Kh="_slider_a19yo_2",Yh="_playButton_a19yo_17",Zh="_hover_a19yo_20",Gh="_sliderOpen_a19yo_28",Jh="_sliderResults_a19yo_32",En={slider:Kh,playButton:Yh,hover:Zh,sliderOpen:Gh,sliderResults:Jh},fa=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:r=2050,zIndex:o=10,rightBarOpen:s=!1})=>{const[i,l]=b.useState(t),c=kn.useDispatch(),u=(S,R)=>{l(R),c(Zr(R-2e3))},[p,f]=b.useState(!1),h=()=>{f(!0)},v=()=>{f(!1)};((S,R)=>{const j=b.useRef();b.useEffect(()=>{j.current=S},[S]),b.useEffect(()=>{function k(){j.current()}{let _=setInterval(k,R);return()=>clearInterval(_)}},[R])})(()=>{p&&(i!=2050?(l(i+1),c(Zr(i-2e3+1))):(l(2025),c(Zr(25))))},1e3);const d=No.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}}),C=[{label:"",value:2025},{label:"",value:2032},{label:"",value:2041},{label:"",value:2050}];return m.jsx(on.ThemeProvider,{theme:d,children:m.jsxs(No.Box,{sx:{width:400},className:`${e?En.sliderResults:En.slider} ${s?En.sliderOpen:""}`,style:{zIndex:o},children:[n,m.jsx(ua,{"aria-label":"TimeSlider",value:i,valueLabelDisplay:"on",step:1,marks:C,min:n,max:r,onChange:u,color:"primary",size:"small"}),r,!p&&m.jsx("button",{className:En.playButton,onClick:h,children:m.jsx("img",{src:Tf,alt:"Play"})}),p&&m.jsx("button",{className:En.playButton,onClick:v,children:m.jsx("img",{src:wf,alt:"Pause"})})]})})};fa.propTypes={defaultYear:a.number,onResults:a.bool,firstYear:a.number,lastYear:a.number,zIndex:a.number,rightBarOpen:a.bool};const Xh="_TopNavMenuContainer_1j1d1_2",Qh="_topNavOptions_1j1d1_11",em="_active_1j1d1_22",no={TopNavMenuContainer:Xh,topNavOptions:Qh,active:em},da=({options:e=[],cssProps:t={}})=>{const{t:n}=Te.useTranslation(),r=t.textColor||"inherit";return t.borderColor,m.jsx("div",{className:no.TopNavMenuContainer,children:e.map((o,s)=>m.jsx(Ra.NavLink,{to:o.url,className:({isActive:i})=>`${no.topNavOptions} ${i?no.active:""}`,style:{color:r},children:n(o.name)},s))})};da.propTypes={options:a.arrayOf(a.object),cssProps:a.shape({borderColor:a.string.isRequired,textColor:a.string.isRequired})};const tm=Ys.createSlice({name:"userSlice",initialState:{user:{isLoggedIn:!1,username:""},showLogIn:!1,showUserMenu:!1},reducers:{setShowLogIn:(e,t)=>{e.showLogIn=t.payload},setShowUserMenu:(e,t)=>{e.showUserMenu=t.payload}}}),{setShowLogIn:nm,setShowUserMenu:rm}=tm.actions,om="_UserMenuTrigger_uglss_2",sm={UserMenuTrigger:om},pa=({cssClass:e,loginLocale:t="login"})=>{const n=kn.useDispatch(),r=kn.useSelector(l=>l.userState.user.isLoggedIn),o=kn.useSelector(l=>l.userState.user.username),{t:s}=Te.useTranslation(),i=()=>{n(r?nm(!0):rm(!0))};return m.jsx("div",{className:`${sm.UserMenuTrigger} link ${e}`,onClick:i,children:r?o:s(t)})};pa.propTypes={onClickLoggedIn:a.func.isRequired,onClickLoggedOut:a.func.isRequired,log:a.bool,name:a.string,cssClass:a.string,loginLocale:a.string};const im="_header_1w621_2",am="_leftComponents_1w621_12",lm="_centerComponents_1w621_13",cm="_rightComponents_1w621_14",rr={header:im,leftComponents:am,centerComponents:lm,rightComponents:cm},ha=({cssProps:e,leftComponents:t=[],centerComponents:n=[],rightComponents:r=[]})=>m.jsxs("div",{className:rr.header,style:e,children:[m.jsx("div",{className:rr.leftComponents,style:{height:e.height},children:t.map((o,s)=>m.jsx("div",{style:{height:e.height},children:o},s))}),m.jsx("div",{className:rr.centerComponents,style:{height:e.height},children:n.map((o,s)=>m.jsx("div",{style:{height:e.height},children:o},s))}),m.jsx("div",{className:rr.rightComponents,style:{height:e.height},children:r.map((o,s)=>m.jsx("div",{style:{height:e.height},children:o},s))})]});ha.propTypes={cssProps:a.shape({backgroundColor:a.string.isRequired,height:a.string.isRequired,borderColor:a.string,textColor:a.string}),leftComponents:a.arrayOf(a.node),centerComponents:a.arrayOf(a.node),rightComponents:a.arrayOf(a.node)};const um="_sidebar_1jqo2_2",fm="_open_1jqo2_16",dm="_content_1jqo2_20",pm="_closeButton_1jqo2_26",or={sidebar:um,open:fm,content:dm,closeButton:pm},ma=({width:e="300px",children:t,showRightBar:n,onCloseBar:r})=>{const o=()=>{r()};return m.jsx("div",{className:`${or.sidebar} ${n?or.open:""}`,style:{width:n?e:0},children:n&&m.jsxs("div",{className:or.content,children:[m.jsx("button",{className:or.closeButton,onClick:o,children:"×"}),t]})})};ma.propTypes={width:a.string,children:a.node,showRightBar:a.bool,onCloseBar:a.func};exports.AmbitSelector=ei;exports.ButtonsList=ti;exports.DropdownList=Rt;exports.EditAmbit=gl;exports.FiltersAmbit=ci;exports.Graphic=fi;exports.HeaderSection=ha;exports.IndicatorsList=hi;exports.LangSelector=mi;exports.Legend=gi;exports.LogoApp=yi;exports.MapboxMap=bi;exports.MaplibreMap=Fi;exports.RightSidebar=ma;exports.SectionBar=zi;exports.TimeSlider=fa;exports.Tooltip=yo;exports.TopNavMenu=da;exports.UserMenuTrigger=pa;
|
|
96
|
+
} });`:Pn(12,C?` (${C})`:"",JSON.stringify(f.main)));return zs(f,"light",j,r),zs(f,"dark",w,r),f.contrastText||(f.contrastText=d(f.main)),f},v={dark:Qr,light:Fs};return process.env.NODE_ENV!=="production"&&(v[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),mt(B({common:B({},An),mode:t,primary:h({color:s,name:"primary"}),secondary:h({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:Hp,contrastThreshold:n,getContrastText:d,augmentColor:h,tonalOffset:r},v[t]),o)}const th=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function nh(e){return Math.round(e*1e5)/1e5}const Bs={textTransform:"uppercase"},Us='"Roboto", "Helvetica", "Arial", sans-serif';function rh(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Us,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:p,pxToRem:d}=n,h=xt(n,th);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const v=o/14,x=d||(S=>`${S/u*v}rem`),f=(S,j,w,R,_)=>B({fontFamily:r,fontWeight:S,fontSize:x(j),lineHeight:w},r===Us?{letterSpacing:`${nh(R/j)}em`}:{},_,p),C={h1:f(s,96,1.167,-1.5),h2:f(s,60,1.2,-.5),h3:f(i,48,1.167,0),h4:f(i,34,1.235,.25),h5:f(i,24,1.334,0),h6:f(l,20,1.6,.15),subtitle1:f(i,16,1.75,.15),subtitle2:f(l,14,1.57,.1),body1:f(i,16,1.5,.15),body2:f(i,14,1.43,.15),button:f(l,14,1.75,.4,Bs),caption:f(i,12,1.66,.4),overline:f(i,12,2.66,1,Bs),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mt(B({htmlFontSize:u,pxToRem:x,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},C),h,{clone:!1})}const oh=.2,sh=.14,ih=.12;function Re(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${oh})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${sh})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ih})`].join(",")}const ah=["none",Re(0,2,1,-1,0,1,1,0,0,1,3,0),Re(0,3,1,-2,0,2,2,0,0,1,5,0),Re(0,3,3,-2,0,3,4,0,0,1,8,0),Re(0,2,4,-1,0,4,5,0,0,1,10,0),Re(0,3,5,-1,0,5,8,0,0,1,14,0),Re(0,3,5,-1,0,6,10,0,0,1,18,0),Re(0,4,5,-2,0,7,10,1,0,2,16,1),Re(0,5,5,-3,0,8,10,1,0,3,14,2),Re(0,5,6,-3,0,9,12,1,0,3,16,2),Re(0,6,6,-3,0,10,14,1,0,4,18,3),Re(0,6,7,-4,0,11,15,1,0,4,20,3),Re(0,7,8,-4,0,12,17,2,0,5,22,4),Re(0,7,8,-4,0,13,19,2,0,5,24,4),Re(0,7,9,-4,0,14,21,2,0,5,26,4),Re(0,8,9,-5,0,15,22,2,0,6,28,5),Re(0,8,10,-5,0,16,24,2,0,6,30,5),Re(0,8,11,-5,0,17,26,2,0,6,32,5),Re(0,9,11,-5,0,18,28,2,0,7,34,6),Re(0,9,12,-6,0,19,29,2,0,7,36,6),Re(0,10,13,-6,0,20,31,3,0,8,38,7),Re(0,10,13,-6,0,21,33,3,0,8,40,7),Re(0,10,14,-6,0,22,35,3,0,8,42,7),Re(0,11,14,-7,0,23,36,3,0,9,44,8),Re(0,11,15,-7,0,24,38,3,0,9,46,8)],lh=["duration","easing","delay"],ch={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},uh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Vs(e){return`${Math.round(e)}ms`}function fh(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function dh(e){const t=B({},ch,e.easing),n=B({},uh,e.duration);return B({getAutoHeightDuration:fh,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:c=0}=s,u=xt(s,lh);if(process.env.NODE_ENV!=="production"){const p=h=>typeof h=="string",d=h=>!isNaN(parseFloat(h));!p(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(i)&&!p(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),p(l)||console.error('MUI: Argument "easing" must be a string.'),!d(c)&&!p(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
97
|
+
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof i=="string"?i:Vs(i)} ${l} ${typeof c=="string"?c:Vs(c)}`).join(",")}},e,{easing:t,duration:n})}const ph={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},hh=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function mh(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,i=xt(e,hh);if(e.vars&&e.generateCssVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Pn(18));const l=eh(r),c=Qi(e);let u=mt(c,{mixins:Wp(c.breakpoints,n),palette:l,shadows:ah.slice(),typography:rh(l,s),transitions:dh(o),zIndex:B({},ph)});if(u=mt(u,i),u=t.reduce((p,d)=>mt(p,d),u),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(h,v)=>{let x;for(x in h){const f=h[x];if(p.indexOf(x)!==-1&&Object.keys(f).length>0){if(process.env.NODE_ENV!=="production"){const C=Eo("",x);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${x}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:f}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
98
|
+
`))}h[x]={}}}};Object.keys(u.components).forEach(h=>{const v=u.components[h].styleOverrides;v&&h.indexOf("Mui")===0&&d(v,h)})}return u.unstable_sxConfig=B({},zn,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(d){return Er({sx:d,theme:this})},u}const gh=mh(),yh="$$material";var Nt={},eo={exports:{}},qs;function vh(){return qs||(qs=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var s in o)({}).hasOwnProperty.call(o,s)&&(n[s]=o[s])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(eo)),eo.exports}var to={exports:{}},Ws;function bh(){return Ws||(Ws=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(r.indexOf(s)!==-1)continue;o[s]=n[s]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(to)),to.exports}const xh=kt(zp),_h=kt(Ff),Ch=kt(Hf),Sh=kt(Wf),Th=kt(ap),wh=kt(qp);var Hs;function Eh(){if(Hs)return Nt;Hs=1;var e=Ui();Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.default=F,Nt.shouldForwardProp=C,Nt.systemDefaultTheme=void 0;var t=e(vh()),n=e(bh()),r=v(xh),o=_h,s=e(Ch),i=e(Sh),l=e(Th),c=e(wh);const u=["ownerState"],p=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(y){if(typeof WeakMap!="function")return null;var E=new WeakMap,T=new WeakMap;return(h=function($){return $?T:E})(y)}function v(y,E){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var T=h(E);if(T&&T.has(y))return T.get(y);var $={__proto__:null},I=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Q in y)if(Q!=="default"&&Object.prototype.hasOwnProperty.call(y,Q)){var U=I?Object.getOwnPropertyDescriptor(y,Q):null;U&&(U.get||U.set)?Object.defineProperty($,Q,U):$[Q]=y[Q]}return $.default=y,T&&T.set(y,$),$}function x(y){return Object.keys(y).length===0}function f(y){return typeof y=="string"&&y.charCodeAt(0)>96}function C(y){return y!=="ownerState"&&y!=="theme"&&y!=="sx"&&y!=="as"}const S=Nt.systemDefaultTheme=(0,l.default)(),j=y=>y&&y.charAt(0).toLowerCase()+y.slice(1);function w({defaultTheme:y,theme:E,themeId:T}){return x(E)?y:E[T]||E}function R(y){return y?(E,T)=>T[y]:null}function _(y,E){let{ownerState:T}=E,$=(0,n.default)(E,u);const I=typeof y=="function"?y((0,t.default)({ownerState:T},$)):y;if(Array.isArray(I))return I.flatMap(Q=>_(Q,(0,t.default)({ownerState:T},$)));if(I&&typeof I=="object"&&Array.isArray(I.variants)){const{variants:Q=[]}=I;let Z=(0,n.default)(I,p);return Q.forEach(q=>{let ie=!0;typeof q.props=="function"?ie=q.props((0,t.default)({ownerState:T},$,T)):Object.keys(q.props).forEach(oe=>{(T==null?void 0:T[oe])!==q.props[oe]&&$[oe]!==q.props[oe]&&(ie=!1)}),ie&&(Array.isArray(Z)||(Z=[Z]),Z.push(typeof q.style=="function"?q.style((0,t.default)({ownerState:T},$,T)):q.style))}),Z}return I}function F(y={}){const{themeId:E,defaultTheme:T=S,rootShouldForwardProp:$=C,slotShouldForwardProp:I=C}=y,Q=U=>(0,c.default)((0,t.default)({},U,{theme:w((0,t.default)({},U,{defaultTheme:T,themeId:E}))}));return Q.__mui_systemSx=!0,(U,Z={})=>{(0,r.internal_processStyles)(U,V=>V.filter(G=>!(G!=null&&G.__mui_systemSx)));const{name:q,slot:ie,skipVariantsResolver:oe,skipSx:ke,overridesResolver:$e=R(j(ie))}=Z,O=(0,n.default)(Z,d),A=oe!==void 0?oe:ie&&ie!=="Root"&&ie!=="root"||!1,ee=ke||!1;let W;process.env.NODE_ENV!=="production"&&q&&(W=`${q}-${j(ie||"Root")}`);let z=C;ie==="Root"||ie==="root"?z=$:ie?z=I:f(U)&&(z=void 0);const te=(0,r.default)(U,(0,t.default)({shouldForwardProp:z,label:W},O)),Y=V=>typeof V=="function"&&V.__emotion_real!==V||(0,o.isPlainObject)(V)?G=>_(V,(0,t.default)({},G,{theme:w({theme:G.theme,defaultTheme:T,themeId:E})})):V,K=(V,...G)=>{let re=Y(V);const be=G?G.map(Y):[];q&&$e&&be.push(ae=>{const le=w((0,t.default)({},ae,{defaultTheme:T,themeId:E}));if(!le.components||!le.components[q]||!le.components[q].styleOverrides)return null;const Oe=le.components[q].styleOverrides,Ve={};return Object.entries(Oe).forEach(([qe,ft])=>{Ve[qe]=_(ft,(0,t.default)({},ae,{theme:le}))}),$e(ae,Ve)}),q&&!A&&be.push(ae=>{var le;const Oe=w((0,t.default)({},ae,{defaultTheme:T,themeId:E})),Ve=Oe==null||(le=Oe.components)==null||(le=le[q])==null?void 0:le.variants;return _({variants:Ve},(0,t.default)({},ae,{theme:Oe}))}),ee||be.push(Q);const P=be.length-G.length;if(Array.isArray(V)&&P>0){const ae=new Array(P).fill("");re=[...V,...ae],re.raw=[...V.raw,...ae]}const xe=te(re,...be);if(process.env.NODE_ENV!=="production"){let ae;q&&(ae=`${q}${(0,s.default)(ie||"")}`),ae===void 0&&(ae=`Styled(${(0,i.default)(U)})`),xe.displayName=ae}return U.muiName&&(xe.muiName=U.muiName),xe};return te.withConfig&&(K.withConfig=te.withConfig),K}}return Nt}var kh=Eh();const Rh=Gs(kh);function Po(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Oh=e=>Po(e)&&e!=="classes",Ft=Rh({themeId:yh,defaultTheme:gh,rootShouldForwardProp:Oh}),jh=X.createContext(void 0);process.env.NODE_ENV!=="production"&&(a.node,a.object);function $h(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?uo(o.defaultProps,r):!o.styleOverrides&&!o.variants?uo(o,r):r}function Ph({props:e,name:t}){const n=X.useContext(jh);return $h({props:e,name:t,theme:{components:n}})}process.env.NODE_ENV!=="production"&&(a.node,a.object.isRequired);function Mh(e){return Ph(e)}const Lh=e=>!e||!jn(e);function Ah(e){return Eo("MuiSlider",e)}const at=id("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Nh=e=>{const{open:t}=e;return{offset:Et(t&&at.valueLabelOpen),circle:at.valueLabelCircle,label:at.valueLabelLabel}};function ca(e){const{children:t,className:n,value:r}=e,o=Nh(e);return t?X.cloneElement(t,{className:Et(t.props.className)},m.jsxs(X.Fragment,{children:[t.props.children,m.jsx("span",{className:Et(o.offset,n),"aria-hidden":!0,children:m.jsx("span",{className:o.circle,children:m.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(ca.propTypes={children:a.element.isRequired,className:a.string,value:a.node});const Ih=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Ks(e){return e}const Dh=Ft("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ut(n.color)}`],n.size!=="medium"&&t[`size${ut(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${at.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${at.dragging}`]:{[`& .${at.thumb}, & .${at.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),Fh=Ft("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),zh=Ft("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:B({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:B({backgroundColor:ht.lighten(e.palette[n].main,.62),borderColor:ht.lighten(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:ht.darken(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:ht.darken(e.palette[n].main,.5)})))}))]}}),Bh=Ft("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ut(n.color)}`],n.size!=="medium"&&t[`thumbSize${ut(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${at.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${at.focusVisible}`]:B({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${ht.alpha(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${at.active}`]:B({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${ht.alpha(e.palette[n].main,.16)}`})}}))]}}),Uh=Ft(ca,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>B({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${at.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${at.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),Vh=Ft("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Po(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),qh=Ft("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Po(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>B({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),Wh=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:s,classes:i,color:l,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!1&&"trackFalse",l&&`color${ut(l)}`,c&&`size${ut(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${ut(c)}`,l&&`thumbColor${ut(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Ef(u,Ah,i)},Hh=({children:e})=>e,ua=X.forwardRef(function(t,n){var r,o,s,i,l,c,u,p,d,h,v,x,f,C,S,j,w,R,_,F,y,E,T,$;const I=Mh({props:t,name:"MuiSlider"}),Q=Mf(),{"aria-label":U,"aria-valuetext":Z,"aria-labelledby":q,component:ie="span",components:oe={},componentsProps:ke={},color:$e="primary",classes:O,className:A,disableSwap:ee=!1,disabled:W=!1,getAriaLabel:z,getAriaValueText:te,marks:Y=!1,max:K=100,min:V=0,orientation:G="horizontal",shiftStep:re=10,size:be="medium",step:P=1,scale:xe=Ks,slotProps:ae,slots:le,track:Oe="normal",valueLabelDisplay:Ve="off",valueLabelFormat:qe=Ks}=I,ft=xt(I,Ih),De=B({},I,{isRtl:Q,max:K,min:V,classes:O,disabled:W,disableSwap:ee,orientation:G,marks:Y,color:$e,size:be,step:P,shiftStep:re,scale:xe,track:Oe,valueLabelDisplay:Ve,valueLabelFormat:qe}),{axisProps:_t,getRootProps:jt,getHiddenInputProps:hn,getThumbProps:mn,open:gn,active:zt,axis:Ct,focusedThumbIndex:M,range:D,dragging:H,marks:de,values:pe,trackOffset:fe,trackLeap:Je,getThumbStyle:rt}=hd(B({},De,{rootRef:n}));De.marked=de.length>0&&de.some(J=>J.label),De.dragging=H,De.focusedThumbIndex=M;const he=Wh(De),Ke=(r=(o=le==null?void 0:le.root)!=null?o:oe.Root)!=null?r:Dh,dt=(s=(i=le==null?void 0:le.rail)!=null?i:oe.Rail)!=null?s:Fh,yn=(l=(c=le==null?void 0:le.track)!=null?c:oe.Track)!=null?l:zh,yt=(u=(p=le==null?void 0:le.thumb)!=null?p:oe.Thumb)!=null?u:Bh,Bt=(d=(h=le==null?void 0:le.valueLabel)!=null?h:oe.ValueLabel)!=null?d:Uh,$t=(v=(x=le==null?void 0:le.mark)!=null?x:oe.Mark)!=null?v:Vh,Ut=(f=(C=le==null?void 0:le.markLabel)!=null?C:oe.MarkLabel)!=null?f:qh,Un=(S=(j=le==null?void 0:le.input)!=null?j:oe.Input)!=null?S:"input",Vt=(w=ae==null?void 0:ae.root)!=null?w:ke.root,jr=(R=ae==null?void 0:ae.rail)!=null?R:ke.rail,qt=(_=ae==null?void 0:ae.track)!=null?_:ke.track,Wt=(F=ae==null?void 0:ae.thumb)!=null?F:ke.thumb,vn=(y=ae==null?void 0:ae.valueLabel)!=null?y:ke.valueLabel,$r=(E=ae==null?void 0:ae.mark)!=null?E:ke.mark,Vn=(T=ae==null?void 0:ae.markLabel)!=null?T:ke.markLabel,qn=($=ae==null?void 0:ae.input)!=null?$:ke.input,Pr=Tt({elementType:Ke,getSlotProps:jt,externalSlotProps:Vt,externalForwardedProps:ft,additionalProps:B({},Lh(Ke)&&{as:ie}),ownerState:B({},De,Vt==null?void 0:Vt.ownerState),className:[he.root,A]}),Mr=Tt({elementType:dt,externalSlotProps:jr,ownerState:De,className:he.rail}),Lr=Tt({elementType:yn,externalSlotProps:qt,additionalProps:{style:B({},_t[Ct].offset(fe),_t[Ct].leap(Je))},ownerState:B({},De,qt==null?void 0:qt.ownerState),className:he.track}),bn=Tt({elementType:yt,getSlotProps:mn,externalSlotProps:Wt,ownerState:B({},De,Wt==null?void 0:Wt.ownerState),className:he.thumb}),g=Tt({elementType:Bt,externalSlotProps:vn,ownerState:B({},De,vn==null?void 0:vn.ownerState),className:he.valueLabel}),k=Tt({elementType:$t,externalSlotProps:$r,ownerState:De,className:he.mark}),N=Tt({elementType:Ut,externalSlotProps:Vn,ownerState:De,className:he.markLabel}),ne=Tt({elementType:Un,getSlotProps:hn,externalSlotProps:qn,ownerState:De});return m.jsxs(Ke,B({},Pr,{children:[m.jsx(dt,B({},Mr)),m.jsx(yn,B({},Lr)),de.filter(J=>J.value>=V&&J.value<=K).map((J,se)=>{const ue=dr(J.value,V,K),ce=_t[Ct].offset(ue);let we;return Oe===!1?we=pe.indexOf(J.value)!==-1:we=Oe==="normal"&&(D?J.value>=pe[0]&&J.value<=pe[pe.length-1]:J.value<=pe[0])||Oe==="inverted"&&(D?J.value<=pe[0]||J.value>=pe[pe.length-1]:J.value>=pe[0]),m.jsxs(X.Fragment,{children:[m.jsx($t,B({"data-index":se},k,!jn($t)&&{markActive:we},{style:B({},ce,k.style),className:Et(k.className,we&&he.markActive)})),J.label!=null?m.jsx(Ut,B({"aria-hidden":!0,"data-index":se},N,!jn(Ut)&&{markLabelActive:we},{style:B({},ce,N.style),className:Et(he.markLabel,N.className,we&&he.markLabelActive),children:J.label})):null]},se)}),pe.map((J,se)=>{const ue=dr(J,V,K),ce=_t[Ct].offset(ue),we=Ve==="off"?Hh:Bt;return m.jsx(we,B({},!jn(we)&&{valueLabelFormat:qe,valueLabelDisplay:Ve,value:typeof qe=="function"?qe(xe(J),se):qe,index:se,open:gn===se||zt===se||Ve==="on",disabled:W},g,{children:m.jsx(yt,B({"data-index":se},bn,{className:Et(he.thumb,bn.className,zt===se&&he.active,M===se&&he.focusVisible),style:B({},ce,rt(se),bn.style),children:m.jsx(Un,B({"data-index":se,"aria-label":z?z(se):U,"aria-valuenow":xe(J),"aria-labelledby":q,"aria-valuetext":te?te(xe(J),se):Z,value:pe[se]},ne))}))}),se)})]}))});process.env.NODE_ENV!=="production"&&(ua.propTypes={"aria-label":_s(a.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":a.string,"aria-valuetext":_s(a.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["primary","secondary","error","info","success","warning"]),a.string]),components:a.shape({Input:a.elementType,Mark:a.elementType,MarkLabel:a.elementType,Rail:a.elementType,Root:a.elementType,Thumb:a.elementType,Track:a.elementType,ValueLabel:a.elementType}),componentsProps:a.shape({input:a.oneOfType([a.func,a.object]),mark:a.oneOfType([a.func,a.object]),markLabel:a.oneOfType([a.func,a.object]),rail:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object]),thumb:a.oneOfType([a.func,a.object]),track:a.oneOfType([a.func,a.object]),valueLabel:a.oneOfType([a.func,a.shape({children:a.element,className:a.string,open:a.bool,style:a.object,value:a.number,valueLabelDisplay:a.oneOf(["auto","off","on"])})])}),defaultValue:a.oneOfType([a.arrayOf(a.number),a.number]),disabled:a.bool,disableSwap:a.bool,getAriaLabel:a.func,getAriaValueText:a.func,marks:a.oneOfType([a.arrayOf(a.shape({label:a.node,value:a.number.isRequired})),a.bool]),max:a.number,min:a.number,name:a.string,onChange:a.func,onChangeCommitted:a.func,orientation:a.oneOf(["horizontal","vertical"]),scale:a.func,shiftStep:a.number,size:a.oneOfType([a.oneOf(["small","medium"]),a.string]),slotProps:a.shape({input:a.oneOfType([a.func,a.object]),mark:a.oneOfType([a.func,a.object]),markLabel:a.oneOfType([a.func,a.object]),rail:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object]),thumb:a.oneOfType([a.func,a.object]),track:a.oneOfType([a.func,a.object]),valueLabel:a.oneOfType([a.func,a.shape({children:a.element,className:a.string,open:a.bool,style:a.object,value:a.number,valueLabelDisplay:a.oneOf(["auto","off","on"])})])}),slots:a.shape({input:a.elementType,mark:a.elementType,markLabel:a.elementType,rail:a.elementType,root:a.elementType,thumb:a.elementType,track:a.elementType,valueLabel:a.elementType}),step:a.number,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),tabIndex:a.number,track:a.oneOf(["inverted","normal",!1]),value:a.oneOfType([a.arrayOf(a.number),a.number]),valueLabelDisplay:a.oneOf(["auto","off","on"]),valueLabelFormat:a.oneOfType([a.func,a.string])});const Kh="_slider_a19yo_2",Yh="_playButton_a19yo_17",Zh="_hover_a19yo_20",Gh="_sliderOpen_a19yo_28",Jh="_sliderResults_a19yo_32",En={slider:Kh,playButton:Yh,hover:Zh,sliderOpen:Gh,sliderResults:Jh},fa=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:r=2050,zIndex:o=10,rightBarOpen:s=!1})=>{const[i,l]=b.useState(t),c=kn.useDispatch(),u=(S,j)=>{l(j),c(Zr(j-2e3))},[p,d]=b.useState(!1),h=()=>{d(!0)},v=()=>{d(!1)};((S,j)=>{const w=b.useRef();b.useEffect(()=>{w.current=S},[S]),b.useEffect(()=>{function R(){w.current()}{let _=setInterval(R,j);return()=>clearInterval(_)}},[j])})(()=>{p&&(i!=2050?(l(i+1),c(Zr(i-2e3+1))):(l(2025),c(Zr(25))))},1e3);const f=No.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}}),C=[{label:"",value:2025},{label:"",value:2032},{label:"",value:2041},{label:"",value:2050}];return m.jsx(on.ThemeProvider,{theme:f,children:m.jsxs(No.Box,{sx:{width:400},className:`${e?En.sliderResults:En.slider} ${s?En.sliderOpen:""}`,style:{zIndex:o},children:[n,m.jsx(ua,{"aria-label":"TimeSlider",value:i,valueLabelDisplay:"on",step:1,marks:C,min:n,max:r,onChange:u,color:"primary",size:"small"}),r,!p&&m.jsx("button",{className:En.playButton,onClick:h,children:m.jsx("img",{src:Tf,alt:"Play"})}),p&&m.jsx("button",{className:En.playButton,onClick:v,children:m.jsx("img",{src:wf,alt:"Pause"})})]})})};fa.propTypes={defaultYear:a.number,onResults:a.bool,firstYear:a.number,lastYear:a.number,zIndex:a.number,rightBarOpen:a.bool};const Xh="_TopNavMenuContainer_1j1d1_2",Qh="_topNavOptions_1j1d1_11",em="_active_1j1d1_22",no={TopNavMenuContainer:Xh,topNavOptions:Qh,active:em},da=({options:e=[],cssProps:t={}})=>{const{t:n}=Te.useTranslation(),r=t.textColor||"inherit";return t.borderColor,m.jsx("div",{className:no.TopNavMenuContainer,children:e.map((o,s)=>m.jsx(Ra.NavLink,{to:o.url,className:({isActive:i})=>`${no.topNavOptions} ${i?no.active:""}`,style:{color:r},children:n(o.name)},s))})};da.propTypes={options:a.arrayOf(a.object),cssProps:a.shape({borderColor:a.string.isRequired,textColor:a.string.isRequired})};const tm=Ys.createSlice({name:"userSlice",initialState:{user:{isLoggedIn:!1,username:""},showLogIn:!1,showUserMenu:!1},reducers:{setShowLogIn:(e,t)=>{e.showLogIn=t.payload},setShowUserMenu:(e,t)=>{e.showUserMenu=t.payload}}}),{setShowLogIn:nm,setShowUserMenu:rm}=tm.actions,om="_UserMenuTrigger_uglss_2",sm={UserMenuTrigger:om},pa=({cssClass:e,loginLocale:t="login"})=>{const n=kn.useDispatch(),r=kn.useSelector(l=>l.userState.user.isLoggedIn),o=kn.useSelector(l=>l.userState.user.username),{t:s}=Te.useTranslation(),i=()=>{n(r?nm(!0):rm(!0))};return m.jsx("div",{className:`${sm.UserMenuTrigger} link ${e}`,onClick:i,children:r?o:s(t)})};pa.propTypes={onClickLoggedIn:a.func.isRequired,onClickLoggedOut:a.func.isRequired,log:a.bool,name:a.string,cssClass:a.string,loginLocale:a.string};const im="_header_1w621_2",am="_leftComponents_1w621_12",lm="_centerComponents_1w621_13",cm="_rightComponents_1w621_14",rr={header:im,leftComponents:am,centerComponents:lm,rightComponents:cm},ha=({cssProps:e,leftComponents:t=[],centerComponents:n=[],rightComponents:r=[]})=>m.jsxs("div",{className:rr.header,style:e,children:[m.jsx("div",{className:rr.leftComponents,style:{height:e.height},children:t.map((o,s)=>m.jsx("div",{style:{height:e.height},children:o},s))}),m.jsx("div",{className:rr.centerComponents,style:{height:e.height},children:n.map((o,s)=>m.jsx("div",{style:{height:e.height},children:o},s))}),m.jsx("div",{className:rr.rightComponents,style:{height:e.height},children:r.map((o,s)=>m.jsx("div",{style:{height:e.height},children:o},s))})]});ha.propTypes={cssProps:a.shape({backgroundColor:a.string.isRequired,height:a.string.isRequired,borderColor:a.string,textColor:a.string}),leftComponents:a.arrayOf(a.node),centerComponents:a.arrayOf(a.node),rightComponents:a.arrayOf(a.node)};const um="_sidebar_1jqo2_2",fm="_open_1jqo2_16",dm="_content_1jqo2_20",pm="_closeButton_1jqo2_26",or={sidebar:um,open:fm,content:dm,closeButton:pm},ma=({width:e="300px",children:t,showRightBar:n,onCloseBar:r})=>{const o=()=>{r()};return m.jsx("div",{className:`${or.sidebar} ${n?or.open:""}`,style:{width:n?e:0},children:n&&m.jsxs("div",{className:or.content,children:[m.jsx("button",{className:or.closeButton,onClick:o,children:"×"}),t]})})};ma.propTypes={width:a.string,children:a.node,showRightBar:a.bool,onCloseBar:a.func};exports.AmbitSelector=ei;exports.ButtonsList=ti;exports.DropdownList=Rt;exports.EditAmbit=gl;exports.FiltersAmbit=ci;exports.Graphic=fi;exports.HeaderSection=ha;exports.IndicatorsList=hi;exports.LangSelector=mi;exports.Legend=gi;exports.LogoApp=yi;exports.MapboxMap=bi;exports.MaplibreMap=Fi;exports.RightSidebar=ma;exports.SectionBar=zi;exports.TimeSlider=fa;exports.Tooltip=yo;exports.TopNavMenu=da;exports.UserMenuTrigger=pa;
|