UNPKG

ethiopia-svg-map

Version:

A customizable React component for interactive SVG maps of Ethiopian regions with TypeScript support

41 lines (40 loc) 49.6 kB
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("react");var Z={exports:{}},$={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var V;function n1(){if(V)return $;V=1;var i=Symbol.for("react.transitional.element"),_=Symbol.for("react.fragment");function b(t,f,p){var k=null;if(p!==void 0&&(k=""+p),f.key!==void 0&&(k=""+f.key),"key"in f){p={};for(var N in f)N!=="key"&&(p[N]=f[N])}else p=f;return f=p.ref,{$$typeof:i,type:t,key:k,ref:f!==void 0?f:null,props:p}}return $.Fragment=_,$.jsx=b,$.jsxs=b,$}var P={};/** * @license React * react-jsx-runtime.development.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var D;function t1(){return D||(D=1,process.env.NODE_ENV!=="production"&&function(){function i(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===v?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case F:return"Profiler";case C:return"StrictMode";case H:return"Suspense";case G:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case L:return"Portal";case q:return(e.displayName||"Context")+".Provider";case Q:return(e._context.displayName||"Context")+".Consumer";case z:var s=e.render;return e=e.displayName,e||(e=s.displayName||s.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case h:return s=e.displayName||null,s!==null?s:i(e.type)||"Memo";case c:s=e._payload,e=e._init;try{return i(e(s))}catch{}}return null}function _(e){return""+e}function b(e){try{_(e);var s=!1}catch{s=!0}if(s){s=console;var n=s.error,u=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(s,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",u),_(e)}}function t(e){if(e===A)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===c)return"<...>";try{var s=i(e);return s?"<"+s+">":"<...>"}catch{return"<...>"}}function f(){var e=x.A;return e===null?null:e.getOwner()}function p(){return Error("react-stack-top-frame")}function k(e){if(M.call(e,"key")){var s=Object.getOwnPropertyDescriptor(e,"key").get;if(s&&s.isReactWarning)return!1}return e.key!==void 0}function N(e,s){function n(){j||(j=!0,console.error("%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://react.dev/link/special-props)",s))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function I(){var e=i(this.type);return W[e]||(W[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function U(e,s,n,u,l,m,T,J){return n=m.ref,e={$$typeof:w,type:e,key:s,props:m,_owner:l},(n!==void 0?n:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:I}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:T}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:J}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function R(e,s,n,u,l,m,T,J){var y=s.children;if(y!==void 0)if(u)if(Y(y)){for(u=0;u<y.length;u++)B(y[u]);Object.freeze&&Object.freeze(y)}else console.error("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 B(y);if(M.call(s,"key")){y=i(e);var S=Object.keys(s).filter(function(r1){return r1!=="key"});u=0<S.length?"{key: someKey, "+S.join(": ..., ")+": ...}":"{key: someKey}",r[y+u]||(S=0<S.length?"{"+S.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`,u,y,S,y),r[y+u]=!0)}if(y=null,n!==void 0&&(b(n),y=""+n),k(s)&&(b(s.key),y=""+s.key),"key"in s){n={};for(var X in s)X!=="key"&&(n[X]=s[X])}else n=s;return y&&N(n,typeof e=="function"?e.displayName||e.name||"Unknown":e),U(e,y,m,l,f(),n,T,J)}function B(e){typeof e=="object"&&e!==null&&e.$$typeof===w&&e._store&&(e._store.validated=1)}var g=E,w=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),q=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),v=Symbol.for("react.client.reference"),x=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,M=Object.prototype.hasOwnProperty,Y=Array.isArray,O=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(e){return e()}};var j,W={},d=g["react-stack-bottom-frame"].bind(g,p)(),o=O(t(p)),r={};P.Fragment=A,P.jsx=function(e,s,n,u,l){var m=1e4>x.recentlyCreatedOwnerStacks++;return R(e,s,n,!1,u,l,m?Error("react-stack-top-frame"):d,m?O(t(e)):o)},P.jsxs=function(e,s,n,u,l){var m=1e4>x.recentlyCreatedOwnerStacks++;return R(e,s,n,!0,u,l,m?Error("react-stack-top-frame"):d,m?O(t(e)):o)}}()),P}var e1;function s1(){return e1||(e1=1,process.env.NODE_ENV==="production"?Z.exports=n1():Z.exports=t1()),Z.exports}var a=s1();const a1=[{id:"tigray",name:"Tigray",points:"202.882 11.743 200.309 11.296 193.93 11.403 188.826 9.383 185.105 12.36 182.766 7.894 180.427 7.15 177.875 7.15 175.643 9.383 164.913 12.18 163.203 12.572 161.396 12.679 155.867 6.937 148.106 2.578 146.085 0.771 143.853 4.386 139.964 13.087 138.537 14.805 131.626 11.297 123.333 12.785 120.037 15.124 119.186 17.038 116.499 17.038 113.551 15.656 110.716 16.365 106.003 16.612 102.494 24.268 102.281 27.457 103.238 30.221 101.407 33.683 104.553 36.007 104.856 36.585 107.835 36.958 108.378 37.683 111.006 37.683 116.034 42.368 119.653 42.996 122.548 41.225 126.09 41.111 126.834 42.506 134.547 43.054 139.46 39.283 139.689 36.883 141.289 35.054 143.231 37.797 146.888 38.94 157.058 39.397 161.058 37.226 163.801 39.625 167.343 39.397 168.714 40.54 169.4 46.368 175.257 46.584 178.084 48.481 177.883 53.167 184.027 53.453 185.627 62.023 182.676 63.393 184.255 67.81 184.141 72.308 185.741 73.45 192.712 72.879 194.54 74.199 196.826 73.222 200.482 73.222 200.593 66.388 203.111 62.48 203.453 59.395 199.568 56.995 199.682 47.625 198.197 46.482 198.882 44.196 199.225 38.14 201.625 37.111 201.511 34.369 200.939 33.798 200.597 22.827 196.94 19.97 198.654 16.885 197.168 15.171 201.396 13.8 202.882 11.743",region:"tigray"},{id:"addis_ababa",name:"Addis Ababa",points:"167.369 162.955 164.591 165.733 163.425 172.995 171.734 177.838 176.659 178.83 178.862 173.999 180.069 166.726 176.894 162.757 167.369 162.955",region:"addis_ababa"},{id:"harar",name:"Harar",points:"262.654 161.939 262.813 159.396 266.653 156.778 273.285 156.952 273.285 168.995 270.957 167.463 264.209 167.773 262.464 168.82 261.068 167.773 261.068 162.712 262.654 161.939",region:"harar"},{id:"oromiya",name:"Oromiya",path:"M149.3,238.1l1.558-4.664A23.219,23.219,0,0,0,149.3,238.1ZM293.615,182.664l-1.974-3.509.439-3.509-6.58-6.361-.691-3.365L280.3,155.6l-1.594-.354-1.974-5.264-2.576,1.522-2.232.268-.714.893-.179,2.857-.714.714-4.115.727-7.58.523-2.053-1.518-3.661.447-.982,1.16-1.339-.178-3.571-1.34-3.035.447-9.553,5.446-2.465-1.531,2.69-1.014.222-1.83-.983-.8h-2.344l-.869.892h-1.161l-1.695-1.375-.634,2.812-5.273.692-.317,1.581-6.812,7.548-.3,2.251-3.951,3.951-1.983-.029,1.674-3.952-2.852-.6-3.793-4.129-2.687.81-.155,7.112-2.532.632-4.267,2.845-2.371-2.055-1.739,1.581-2.1.752-.889-6.216,2.836-4.335-2.853-2.106-.466-2.794,5.374-1.9-.153-2.6-4.019-1.168.055-1.527,1.763-.13,1.722-5.165-1.739-1.422-4.583,1.738-1.22,3.66-2.574-.341-1.9-4.267-3.278.5-2.775-1.536-.263-5.083-3.8-2.888,4.8-2.32-.053-6.689-8.693-.474-2.949,3.881-.36,2.061-3.217,1.744-11.966,5.748h-1.9l-.949,1.9-4.425-.158-4.267-4.425-2.061.259-.143-1.663-3.4,1.352-4.509-3.168v-2.944l-3.813-1.624-1.369,1.895-3.465.192-1.867-2.2-2.97.112-4.171,2.305-2.324-2.325-1.89-.192-1.756,1.775-.292,2.609-1.62,1.769-4.862.868.109,11.437,5.469,4.387,1,.2.889-1.085,3.329.859L103.7,157.94l-.329,1.868-.908,1.11-2.388-1.33-.311,1.661-1.423-.6-2.551.153-1.208,1.318,2.145,1.609-.5,2.456-3.3,1.1-2.087-2.967-3.956-3.076-3.185.22-.536-3.75-2.76-2.4.2-1.406-3.429-3.258-2.512-.06-.3-.769H71.617l-.158-2.689-2.479-2.7-3.845-1.538-2.637.989-1.487-2.019-2.578-.508-.854,5.339-2,1.3-.529,4.678L53,155.237l-2.7-1.131-3.181-2.757-3.076.219.549,2.637,2.21,1.263-.672,1.154-2.237,1.385.146,4.482-1.425,1.933-3.076,1.1-5.158-.1.936,16.424,2.415.384.125-1.292,2.274.155,10.55,9.4-.005.638,3.37-.065,1.4,2.438,7.676.24-5.267,3.795,2,1.372-3.227,3.1.541,2.546,3.241,2.868.918,3.307,2.777,1.3,0,1.677,1.671.7,2.554-.334-.212-6.34,6.15-5.131,3.651,1.718,4.7-1.279,1.538-1.978-2.417-2.856,1.318-2.418,3.306,1.4.641,5.556-1.222,1.308,5.076,3.53.53,4.478,2.324-.417,3.076,2.085,2.531.521,1.659,1.866,5.08.112,8.513,5.193,9.647-.183,7.464-4.905,1.26-4.061-.879-3.3-.65-4.767,1.063-2.856-1.624-1.413,2.749-1.073,1.946,1.514,1.711-.4.518-7.491-3.037-.513-1.8-1.685,1.978-3.516,2.856,2.2,8.865.439,5.074-2.145,5.18.607,2.123,2.971,1.868.909,2.568-5.565,2.812.355,3.741,6.259-.366,2.323L166.1,192.8l1.539,4.664-2.09,4.523-3.158,5.225-1.1,5.933-3.673,4.754-5.26,3.979-.719,6.477.019.153,4.8-1.3,3.076-3.077h7.472l3.077,6.373-1.539,3.3,2.933,1.369,3.22,2.147,5.118,1.493,2.354,4,.835,4.176-1.274,2.417.879,2.637-1.978,1.538-9.669-8.131-6.593-1.318-1.978,2.857h0l-.659,3.516-1.319,1.538-2.2,4.175,2.417,1.758-.22,1.978L156.866,261l-.848-.165-4.4-7.471.22-1.319,2.417-.659.879-3.736,2.2-2.2.439-1.041,2.308-.184h-2.53l-1.316-.752-2.2.439L150.3,240.4h-3.516l.143-.114-4.1,2.531,1.1,2.2.219,5.494-1.977,3.736,1.1,2.2,4.592,1.461,3.851,6.02-.673,2.413-2.843.428-.312,5.5L145.47,274.9l1.454,2.285-1.333,1.625-5.176-2.372-10.328,4.175-3.956-1.538-6.812.22-3.077,4.175.648,6.476-2.57,5.925-3.775,4.671-.331.466,3.572-.068,38.807,23.709s31.969,1.93,41.571,5.635l9.144-9.994.85-2.658,25.853-11.271.439-5.264-2.632-2.632,2.851-.658h3.32l6.769-4.167,1.96-4.029,1.33,1.178,10.747-.219-3.29-4.387H249.98l-3.3-6.579-.878-2.852v-1.535l-3.289-4.386,2.193-2.413.438-4.825-2.193-.658-9.65-9.65,1.1-7.676h1.754l3.948-4.168-.219-4.825,9.65,14.037h.658l2.632,3.509,4.386-3.728-1.316-5.264,4.825-4.606,4.606.219,3.28-6.153.449-3.058,3.509-7.018v-5.484l-1.316-1.1.658-1.535-4.387-4.168-.658-9.43,5.376-14.645.546-3.34-.219-2.412,1.563-.977,3.481,3.389,4.825.219.658,4.606,3.29,5.7,3.948-7.019,3.34-.626ZM180.16,176.578l-1.968,4.832-5.16-.992-2.362-1.383-5.774-3.38.993-7.342,2.778-2.778,9.525-.2,3.175,3.969Zm94.423-5-1.92-1.57-7.156.349-1.745,1.047-1.4-1.047v-5.062l1.571-.523.174-2.793,3.84-2.618,6.632.175ZM159.892,244.228c1.693.5,1.345,2.394,2.5,2.764M151.983,231.333l-.026-.147c-.061.109-.234.431-.466.9Z",region:"oromiya"},{id:"snnpr",name:"SNNPR",points:"168.699 190.207 165.049 183.979 162.192 183.54 159.555 189.253 157.797 188.374 155.553 185.291 150.545 184.638 145.49 186.836 136.467 186.386 133.717 184.008 131.536 187.492 133.249 189.118 136.324 189.879 136.041 197.384 134.283 197.824 132.427 196.38 129.668 197.384 131.139 198.878 130.107 201.559 130.767 206.394 131.605 209.536 130.547 213.646 122.855 218.7 113.224 218.808 104.983 213.737 99.781 213.646 98.023 211.668 95.606 211.229 92.529 209.031 90.112 209.69 89.672 205.076 84.398 201.559 85.717 200.241 85.057 194.527 81.761 193.209 80.443 195.626 82.711 198.307 81.269 200.476 76.889 201.727 72.971 200.021 66.818 205.076 67.03 211.333 70.098 213.617 69.256 220.345 62.713 221.29 59.026 219.401 58.684 221.29 53.218 221.865 51.012 224.359 46.792 224.646 42.01 222.827 36.69 222.916 52.204 236.058 56.245 237.653 58.903 240.098 58.588 252.15 59.703 255.378 60.057 258.148 63.474 263.169 63.262 264.977 69.109 269.123 68.684 271.675 68.775 272.763 73.642 270.94 83.356 272.632 84.632 274.227 84.391 277.551 82.825 284.965 82.612 290.387 90.055 298.787 109.011 298.253 112.966 293.418 115.603 287.484 114.944 280.892 118.021 276.716 124.833 276.497 128.789 278.035 139.117 273.86 144.392 276.277 145.71 274.739 144.172 272.321 146.589 269.684 146.809 264.19 149.666 263.971 150.545 261.553 146.809 255.4 141.974 253.862 140.876 251.664 142.853 247.928 142.634 242.434 141.535 240.237 147.313 236.491 148.013 235.653 149.779 230.153 150.865 228.607 150.25 226.146 150.984 219.36 156.259 215.404 159.994 210.57 161.093 204.636 166.367 194.967 164.829 190.352 168.345 192.55 168.699 190.207 156.478 241.832 156.039 242.874 153.841 245.071 152.962 248.807 150.521 249.612 150.325 250.785 154.72 258.257 155.568 258.421 159.115 257.378 159.216 255.313 156.918 253.642 159.115 249.467 160.434 247.928 161.093 244.412 158.786 241.648 156.478 241.832",region:"snnpr"},{id:"somalia",name:"Somalia",points:"435.339 196.127 429.429 196.825 412.524 196.825 353.82 177.356 325.342 167.481 307.161 152.915 303.227 146.19 301.845 143.24 298.544 141.514 290.362 131.864 286.641 122.189 289.937 115.809 293.432 111.361 285.79 108.792 269.842 111.557 263.782 112.088 258.577 111.075 244.32 111.382 244.162 113.121 239.105 119.759 238.472 124.026 237.208 126.871 236.027 131.888 233.731 138.409 236.892 141.254 233.025 143.931 230.886 144.573 230.412 146.311 227.087 152.024 226.52 153.823 228.215 155.088 229.376 155.088 230.001 154.195 232.59 154.195 233.572 154.999 233.482 156.784 230.536 157.766 232.956 159.268 237.927 156.778 242.678 153.927 245.713 153.481 249.284 154.82 250.623 154.999 251.605 153.838 255.266 153.392 257.319 154.909 256.646 154.412 257.765 151.338 258.212 149.196 260.533 149.196 262.318 148.035 265.979 150.267 270.889 145.446 273.032 145.446 275.016 147.405 273.005 148.828 270.621 149.196 272.941 148.871 275.174 147.41 275.429 147.405 277.403 152.669 278.938 152.888 283.544 163.416 284.202 166.706 290.782 173.066 290.388 176.215 292.317 180.084 292.524 184.847 289.027 185.787 286.078 191.474 285.079 192.805 281.77 186.97 281.131 182.497 276.306 182.278 273.016 178.768 271.262 179.865 271.458 182.44 270.933 185.621 267.095 195.218 265.559 200.262 266.202 209.448 270.604 213.86 269.946 215.395 271.077 216.338 271.262 221.975 267.753 228.993 267.533 231.625 264.024 238.205 259.418 237.986 254.593 242.591 255.909 247.855 251.674 251.455 248.891 248.075 248.233 248.075 238.739 234.265 238.802 238.863 234.854 243.03 233.1 243.03 232.031 250.511 241.469 260.173 243.846 261.015 243.408 265.84 241.215 268.252 244.504 272.639 244.504 274.174 245.491 277.23 248.891 283.605 250.207 283.605 253.497 287.991 242.75 288.211 241.434 287.333 239.46 291.062 232.886 295.436 229.371 295.229 226.52 295.887 229.152 298.519 228.79 302.472 229.266 303.435 241.455 313.034 253.949 312.321 263.357 311.12 266.759 308.249 287.81 305.06 296.741 295.703 303.546 290.706 313.482 287.4 326.192 284.54 338.465 285.172 354.032 284.865 374.372 264.99 384.356 254.783 400.074 238.589 410.702 227.549 421.928 215.724 432.514 205.234 440.805 197.038 435.339 196.127 265.353 154.325 265.353 154.325 269.014 153.66 265.353 154.325 269.745 152.671 269.746 152.671 269.907 150.088 269.745 152.671",region:"somalia"},{id:"amhara",name:"Amhara",points:"202.279 164.013 199.592 164.645 199.434 171.916 196.905 172.39 192.638 175.235 190.267 173.18 188.528 174.761 186.316 175.551 185.525 169.229 188.272 165.108 185.525 162.907 185.051 160.062 190.425 158.165 190.267 155.478 186.157 154.372 186.303 152.921 187.917 152.791 189.793 147.576 188.054 146.153 183.471 147.892 182.252 151.549 179.638 151.122 177.781 146.944 174.539 147.561 171.617 145.837 171.459 140.622 167.774 138.011 172.565 135.564 172.407 128.926 163.714 128.452 160.711 132.403 160.41 134.362 157.076 136.196 154.073 137.461 145.222 141.886 143.326 141.886 142.377 143.783 137.952 143.625 133.685 139.199 131.63 139.515 131.472 137.935 128.268 139.155 123.569 136.038 123.569 133.035 119.513 131.191 114.718 129.716 108.185 129.347 105.235 128.61 104.919 126.239 100.652 125.765 100.02 125.133 97.649 124.342 97.965 120.707 99.565 118.09 97.807 116.124 97.965 114.859 98.439 113.595 102.232 109.011 102.877 109.162 105.235 107.747 102.232 105.376 105.077 101.741 103.655 97.79 99.546 93.048 98.439 87.2 94.08 91.108 88.008 81.985 83.899 81.195 81.844 81.195 80.105 83.723 76.312 85.936 75.68 87.833 68.701 87.816 67.303 86.884 67.461 84.988 65.194 84.167 70.323 77.54 78.147 65.414 79.908 63.555 89.514 61.627 92.885 61.488 94.201 60.31 93.35 55.845 93.563 52.549 101.407 33.683 104.596 36.055 104.723 36.569 108.149 36.997 108.378 37.683 110.759 37.683 116.129 42.384 119.051 42.888 122.548 41.225 126.09 41.111 127.005 42.825 134.547 43.054 139.46 39.283 139.689 36.883 141.289 35.054 143.231 37.797 146.743 38.894 157.058 39.397 161.058 37.226 163.801 39.625 167.343 39.397 168.714 40.54 169.4 46.368 175.571 46.596 178.313 48.653 177.881 53.195 184.027 53.453 185.627 62.023 182.427 63.509 184.37 68.08 184.141 72.308 185.741 73.45 192.712 72.879 194.562 74.216 196.826 73.222 199.414 73.118 200.55 81.048 202.753 83.723 203.069 88.781 206.546 92.89 206.388 93.997 208.443 97.316 208.443 100.477 212.078 105.85 212.552 109.96 211.288 111.224 210.673 117.861 211.273 123.259 212.236 126.397 211.288 131.138 210.023 133.983 210.497 136.67 207.178 136.67 205.598 137.302 209.119 140.211 208.117 143.529 206.704 146.944 202.121 146.627 202.874 150.093 203.069 155.004 200.698 157.059 202.911 159.113 203.004 160.942 202.279 164.013",region:"amhara"},{id:"afar",name:"Afar",points:"202.279 163.697 206.072 167.964 208.759 168.597 207.178 172.706 209.233 172.548 213.184 168.597 213.5 166.226 220.296 158.797 220.613 157.217 225.71 156.753 227.06 152.122 230.412 146.311 230.886 144.573 232.782 144.099 236.828 141.298 233.731 138.409 235.88 132.423 237.185 126.97 238.472 124.026 239.104 119.759 244.162 113.121 244.28 111.223 258.577 111.075 258.998 94.758 275.371 71.155 265.909 54.888 243.934 33.241 233.442 23.995 211.963 10.169 208.708 10.127 204.881 12.679 202.874 11.829 201.52 13.643 197.168 15.171 198.485 16.69 197.004 19.854 200.497 22.75 200.935 33.643 201.42 34.278 201.62 36.997 199.225 38.14 198.891 44.043 198.197 46.482 199.641 47.593 199.568 56.995 203.453 59.395 203.111 62.48 200.597 66.137 200.482 73.222 199.414 73.267 200.53 80.965 202.753 83.723 203.065 88.71 206.546 92.89 206.399 93.917 208.39 97.23 208.443 100.417 212.078 105.85 212.552 109.96 211.288 111.224 210.655 117.704 211.288 123.394 212.212 126.323 211.288 131.138 210.034 134.042 210.466 136.492 207.178 136.67 205536 137.236 209.111 140.205 206.767 146.801 202.121 146.627 202.911 150.263 203.064 154.867 200.734 157.027 202.805 159.015 203.069 160.694 202.279 163.697",region:"afar"},{id:"dire",name:"Dire",points:"256.646 154.412 258.212 149.196 260.533 149.196 262.318 148.035 265.979 150.267 270.889 145.446 273.032 145.446 275.016 147.405 273.005 148.828 270.621 149.196 269.907 150.088 269.746 152.671 269.014 153.66 265.353 154.325 257.319 154.909 256.646 154.412",region:"dire"},{id:"sidama",name:"Sidama",points:"150.361 225.933 155.16 224.634 158.236 221.557 165.633 221.557 168.785 227.93 167.246 231.227 170.179 232.595 173.4 234.743 178.517 236.236 180.871 240.237 181.706 244.412 180.432 246.829 181.311 249.466 179.333 251.005 169.664 242.874 163.071 241.555 161.093 244.412 158.786 241.648 156.256 241.648 154.94 240.896 152.742 241.336 149.006 237.82 145.633 237.706 147.893 235.838 149.779 230.153 150.865 228.607 150.361 225.933",region:"sidama"},{id:"gambella",name:"Gambella",points:"6.487 184.492 15.843 183.535 23.179 186.3 33.652 179.628 36.251 179.628 36.529 178.514 38.831 178.514 49.381 187.913 49.381 188.393 52.834 188.489 54.177 190.982 61.997 191.086 56.478 195.01 58.588 196.353 55.232 199.518 55.903 202.108 58.987 204.693 59.964 207.913 62.904 209.493 62.808 211.123 64.631 211.89 67.034 211.57 70.098 213.617 69.234 220.522 62.713 221.29 59.164 219.563 58.684 221.29 53.218 221.865 51.012 224.359 46.446 224.646 42.188 222.824 37.055 222.91 29.984 217.664 29.452 214.368 19.033 205.331 9.57 204.8 6.061 202.779 2.447 202.992 0.533 200.44 1.064 197.676 4.892 192.573 6.061 188.639 6.487 184.492",region:"gambella"},{id:"benishangul",name:"Benishangul",points:"119.756 131.411 118.328 133.389 114.922 133.498 113.148 131.411 110.264 131.411 106.336 133.498 103.497 131.301 101.519 131.191 99.871 133.059 99.652 135.586 97.894 137.344 93.17 138.222 93.28 149.758 98.584 153.918 99.871 154.262 100.64 153.164 103.65 153.94 102.398 155.361 102.069 157.228 101.08 158.437 98.773 157.009 98.443 158.767 96.905 157.997 94.488 158.217 93.28 159.536 95.477 161.183 94.928 163.6 91.632 164.699 89.544 161.733 85.589 158.657 82.404 158.876 81.854 155.031 79.108 152.724 79.327 151.186 75.812 148 73.285 148 73.065 147.231 70.319 147.231 70.209 144.594 67.682 141.848 63.837 140.31 61.2 141.299 59.662 139.211 57.135 138.772 56.31 143.931 54.169 145.473 53.73 150.307 51.701 152.656 49.116 151.626 45.82 148.769 42.744 148.989 43.293 151.626 45.6 152.944 44.831 154.043 42.524 155.471 42.637 160.114 41.315 161.843 38.239 162.941 33.076 162.76 32.323 158.55 32.961 153.022 34.874 144.41 36.15 142.071 36.363 138.349 39.34 135.266 39.021 130.801 38.277 129.737 39.127 122.082 47.696 113.618 53.111 118.633 57.521 114.64 58.448 110.005 58.477 105.272 57.308 103.476 61.667 95.502 60.179 89.761 60.866 89.589 65.155 84.218 67.453 85.088 67.303 86.884 68.642 87.777 75.68 87.833 76.312 85.936 80.105 83.723 81.844 81.195 83.899 81.195 87.913 81.967 93.759 91.136 98.439 87.2 99.509 92.855 101.967 96.076 103.59 97.725 105.077 101.741 102.232 105.376 105.131 107.665 102.986 109.097 102.188 109.065 98.439 113.595 97.965 114.859 97.807 116.124 99.704 117.862 97.965 120.707 97.649 124.342 100.02 125.133 100.652 125.765 104.919 126.239 105.235 128.61 108.244 129.362 114.557 129.708 118.162 130.614 119.756 131.411",region:"benishangul"}],l1=({selectedRegion:i,setSelectedRegion:_,regions:b=a1,regionData:t={},defaultFillColor:f="#00C4B4",activeFillColor:p="#40E0D0",hoverFillColor:k="#40E0D0",strokeColor:N="#ffffff",activeStrokeColor:I="#FFFFFF",strokeWidth:U=1,activeStrokeWidth:R=2,hoverOpacity:B=.9,className:g="",svgClassName:w="w-full h-auto",onRegionHover:L,onRegionClick:A,tooltipContent:C,width:F="100%",height:Q="auto",viewBox:q="0 0 441.853 328.295",enableZoom:z=!1,zoomLevel:H=1,customStyles:G="",showRegionLabels:h=!1,labelClassName:c="text-xs font-medium ",labelPosition:K="center",showValues:v=!1,valueFormatter:x=j=>j.toString(),defaultLabelStyle:M={},defaultValueStyle:Y={},showLegend:O=!0})=>{const[j,W]=E.useState(null),d=E.useCallback(l=>{_(m=>m===l?null:l),A?.(l)},[_,A]),o=E.useCallback(l=>{W(l),L?.(l)},[L]),r=E.useMemo(()=>{const l={},m={tigray:{x:150,y:20},addis_ababa:{x:170,y:170},harar:{x:265,y:165},oromiya:{x:200,y:200},snnpr:{x:110,y:230},somalia:{x:300,y:230},amhara:{x:160,y:100},afar:{x:230,y:90},dire:{x:265,y:150},sidama:{x:160,y:240},gambella:{x:30,y:200},benishangul:{x:80,y:110}};return b.forEach(T=>{l[T.id]=m[T.id]||{x:0,y:0}}),l},[b]),e=E.useCallback(l=>({...{pointerEvents:"none",...M},...t[l]?.labelStyle||{}}),[t,M]),s=E.useCallback(l=>({...{pointerEvents:"none",fontSize:"0.8em",...Y},...t[l]?.valueStyle||{}}),[t,Y]),n=E.useCallback(l=>i===l?p:j===l?k:t[l]?.color||f,[i,j,t,f,p,k]),u=E.useMemo(()=>b.filter(l=>t[l.id]?.color),[b,t]);return a.jsxs("div",{className:`${g} flex flex-col lg:flex-row gap-4 p-4`,children:[a.jsxs("div",{className:"relative",children:[a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:q,className:w,style:{transform:z?`scale(${H})`:"none"},children:[a.jsx("style",{children:` .state { stroke: ${N}; stroke-width: ${U}; transition: fill 0.3s, stroke 0.3s, opacity 0.3s; } .state.active { stroke: ${I}; stroke-width: ${R}; } .state:hover { cursor: pointer; opacity: ${B}; } text { stroke: none; } ${G} `}),a.jsxs("g",{className:"cls-2 state",id:"tigrayl",children:[a.jsx("polygon",{id:"tigray",points:"202.882 11.743 200.309 11.296 193.93 11.403 188.826 9.383 185.105 12.36 182.766 7.894 180.427 7.15 177.875 7.15 175.643 9.383 164.913 12.18 163.203 12.572 161.396 12.679 155.867 6.937 148.106 2.578 146.085 0.771 143.853 4.386 139.964 13.087 138.537 14.805 131.626 11.297 123.333 12.785 120.037 15.124 119.186 17.038 116.499 17.038 113.551 15.656 110.716 16.365 106.003 16.612 102.494 24.268 102.281 27.457 103.238 30.221 101.407 33.683 104.553 36.007 104.856 36.585 107.835 36.958 108.378 37.683 111.006 37.683 116.034 42.368 119.653 42.996 122.548 41.225 126.09 41.111 126.834 42.506 134.547 43.054 139.46 39.283 139.689 36.883 141.289 35.054 143.231 37.797 146.888 38.94 157.058 39.397 161.058 37.226 163.801 39.625 167.343 39.397 168.714 40.54 169.4 46.368 175.257 46.584 178.084 48.481 177.883 53.167 184.027 53.453 185.627 62.023 182.676 63.393 184.255 67.81 184.141 72.308 185.741 73.45 192.712 72.879 194.54 74.199 196.826 73.222 200.482 73.222 200.593 66.388 203.111 62.48 203.453 59.395 199.568 56.995 199.682 47.625 198.197 46.482 198.882 44.196 199.225 38.14 201.625 37.111 201.511 34.369 200.939 33.798 200.597 22.827 196.94 19.97 198.654 16.885 197.168 15.171 201.396 13.8 202.882 11.743",fill:n("tigray"),className:`state ${i==="tigray"?"active":""}`,onClick:()=>d("tigray"),onMouseEnter:()=>o("tigray"),onMouseLeave:()=>o(null)}),h&&a.jsx("text",{x:r.tigray.x,y:r.tigray.y,className:c,textAnchor:"middle",dominantBaseline:"middle",style:e("tigray"),children:"Tigray"}),v&&t.tigray?.value!==void 0&&a.jsx("text",{x:r.tigray.x,y:r.tigray.y+35,className:c,textAnchor:"middle",dominantBaseline:"middle",style:s("tigray"),children:x(t.tigray.value)})]}),a.jsxs("g",{className:"cls-2 state",id:"addisababal",children:[a.jsx("polygon",{id:"addis_ababa","data-name":"addis ababa",points:"167.369 162.955 164.591 165.733 163.425 172.995 171.734 177.838 176.659 178.83 178.862 173.999 180.069 166.726 176.894 162.757 167.369 162.955",fill:n("addis_ababa"),className:`state ${i==="addis_ababa"?"active":""}`,onClick:()=>d("addis_ababa"),onMouseEnter:()=>o("addis_ababa"),onMouseLeave:()=>o(null)}),h&&a.jsx("text",{x:r.addis_ababa.x,y:r.addis_ababa.y,className:c,textAnchor:"middle",dominantBaseline:"middle",style:e("addis_ababa"),children:"Addis Ababa"}),v&&t.addis_ababa?.value!==void 0&&a.jsx("text",{x:r.addis_ababa.x,y:r.addis_ababa.y+10,className:c,textAnchor:"middle",dominantBaseline:"middle",style:s("addis_ababa"),children:x(t.addis_ababa.value)})]}),a.jsxs("g",{className:"cls-2 state",id:"hararl",children:[a.jsx("polygon",{id:"harar",points:"262.654 161.939 262.813 159.396 266.653 156.778 273.285 156.952 273.285 168.995 270.957 167.463 264.209 167.773 262.464 168.82 261.068 167.773 261.068 162.712 262.654 161.939",fill:n("harar"),className:`state ${i==="harar"?"active":""}`,onClick:()=>d("harar"),onMouseEnter:()=>o("harar"),onMouseLeave:()=>o(null)}),h&&a.jsx("text",{x:r.harar.x,y:r.harar.y,className:c,textAnchor:"middle",dominantBaseline:"middle",style:e("harar"),children:"Harar"}),v&&t.harar?.value!==void 0&&a.jsx("text",{x:r.harar.x,y:r.harar.y+10,className:c,textAnchor:"middle",dominantBaseline:"middle",style:s("harar"),children:x(t.harar.value)})]}),a.jsxs("g",{className:"cls-2 state",id:"oromiyal",children:[a.jsxs("g",{id:"oromiya",children:[a.jsx("path",{d:"M149.3,238.1l1.558-4.664A23.219,23.219,0,0,0,149.3,238.1Z",transform:"translate(-1.298 -2.58)",fill:n("oromiya"),className:`state ${i==="oromiya"?"active":""}`,onClick:()=>d("oromiya"),onMouseEnter:()=>o("oromiya"),onMouseLeave:()=>o(null)}),a.jsx("line",{x1:"158.786",y1:"241.648",x2:"158.402",y2:"241.648",fill:n("oromiya"),className:`state ${i==="oromiya"?"active":""}`,onClick:()=>d("oromiya")}),a.jsx("polygon",{points:"160.018 243.478 160.107 243.629 161.092 244.411 160.018 243.478",fill:n("oromiya"),className:`state ${i==="oromiya"?"active":""}`,onClick:()=>d("oromiya")}),a.jsx("polygon",{points:"146.139 237.304 147.861 235.935 147.893 235.838 146.139 237.304",fill:n("oromiya"),className:`state ${i==="oromiya"?"active":""}`,onClick:()=>d("oromiya")}),a.jsx("path",{d:"M293.615,182.664l-1.974-3.509.439-3.509-6.58-6.361-.691-3.365L280.3,155.6l-1.594-.354-1.974-5.264-2.576,1.522-2.232.268-.714.893-.179,2.857-.714.714-4.115.727-7.58.523-2.053-1.518-3.661.447-.982,1.16-1.339-.178-3.571-1.34-3.035.447-9.553,5.446-2.465-1.531,2.69-1.014.222-1.83-.983-.8h-2.344l-.869.892h-1.161l-1.695-1.375-.634,2.812-5.273.692-.317,1.581-6.812,7.548-.3,2.251-3.951,3.951-1.983-.029,1.674-3.952-2.852-.6-3.793-4.129-2.687.81-.155,7.112-2.532.632-4.267,2.845-2.371-2.055-1.739,1.581-2.1.752-.889-6.216,2.836-4.335-2.853-2.106-.466-2.794,5.374-1.9-.153-2.6-4.019-1.168.055-1.527,1.763-.13,1.722-5.165-1.739-1.422-4.583,1.738-1.22,3.66-2.574-.341-1.9-4.267-3.278.5-2.775-1.536-.263-5.083-3.8-2.888,4.8-2.32-.053-6.689-8.693-.474-2.949,3.881-.36,2.061-3.217,1.744-11.966,5.748h-1.9l-.949,1.9-4.425-.158-4.267-4.425-2.061.259-.143-1.663-3.4,1.352-4.509-3.168v-2.944l-3.813-1.624-1.369,1.895-3.465.192-1.867-2.2-2.97.112-4.171,2.305-2.324-2.325-1.89-.192-1.756,1.775-.292,2.609-1.62,1.769-4.862.868.109,11.437,5.469,4.387,1,.2.889-1.085,3.329.859L103.7,157.94l-.329,1.868-.908,1.11-2.388-1.33-.311,1.661-1.423-.6-2.551.153-1.208,1.318,2.145,1.609-.5,2.456-3.3,1.1-2.087-2.967-3.956-3.076-3.185.22-.536-3.75-2.76-2.4.2-1.406-3.429-3.258-2.512-.06-.3-.769H71.617l-.158-2.689-2.479-2.7-3.845-1.538-2.637.989-1.487-2.019-2.578-.508-.854,5.339-2,1.3-.529,4.678L53,155.237l-2.7-1.131-3.181-2.757-3.076.219.549,2.637,2.21,1.263-.672,1.154-2.237,1.385.146,4.482-1.425,1.933-3.076,1.1-5.158-.1.936,16.424,2.415.384.125-1.292,2.274.155,10.55,9.4-.005.638,3.37-.065,1.4,2.438,7.676.24-5.267,3.795,2,1.372-3.227,3.1.541,2.546,3.241,2.868.918,3.307,2.777,1.3,0,1.677,1.671.7,2.554-.334-.212-6.34,6.15-5.131,3.651,1.718,4.7-1.279,1.538-1.978-2.417-2.856,1.318-2.418,3.306,1.4.641,5.556-1.222,1.308,5.076,3.53.53,4.478,2.324-.417,3.076,2.085,2.531.521,1.659,1.866,5.08.112,8.513,5.193,9.647-.183,7.464-4.905,1.26-4.061-.879-3.3-.65-4.767,1.063-2.856-1.624-1.413,2.749-1.073,1.946,1.514,1.711-.4.518-7.491-3.037-.513-1.8-1.685,1.978-3.516,2.856,2.2,8.865.439,5.074-2.145,5.18.607,2.123,2.971,1.868.909,2.568-5.565,2.812.355,3.741,6.259-.366,2.323L166.1,192.8l1.539,4.664-2.09,4.523-3.158,5.225-1.1,5.933-3.673,4.754-5.26,3.979-.719,6.477.019.153,4.8-1.3,3.076-3.077h7.472l3.077,6.373-1.539,3.3,2.933,1.369,3.22,2.147,5.118,1.493,2.354,4,.835,4.176-1.274,2.417.879,2.637-1.978,1.538-9.669-8.131-6.593-1.318-1.978,2.857h0l-.659,3.516-1.319,1.538-2.2,4.175,2.417,1.758-.22,1.978L156.866,261l-.848-.165-4.4-7.471.22-1.319,2.417-.659.879-3.736,2.2-2.2.439-1.041,2.308-.184h-2.53l-1.316-.752-2.2.439L150.3,240.4h-3.516l.143-.114-4.1,2.531,1.1,2.2.219,5.494-1.977,3.736,1.1,2.2,4.592,1.461,3.851,6.02-.673,2.413-2.843.428-.312,5.5L145.47,274.9l1.454,2.285-1.333,1.625-5.176-2.372-10.328,4.175-3.956-1.538-6.812.22-3.077,4.175.648,6.476-2.57,5.925-3.775,4.671-.331.466,3.572-.068,38.807,23.709s31.969,1.93,41.571,5.635l9.144-9.994.85-2.658,25.853-11.271.439-5.264-2.632-2.632,2.851-.658h3.32l6.769-4.167,1.96-4.029,1.33,1.178,10.747-.219-3.29-4.387H249.98l-3.3-6.579-.878-2.852v-1.535l-3.289-4.386,2.193-2.413.438-4.825-2.193-.658-9.65-9.65,1.1-7.676h1.754l3.948-4.168-.219-4.825,9.65,14.037h.658l2.632,3.509,4.386-3.728-1.316-5.264,4.825-4.606,4.606.219,3.28-6.153.449-3.058,3.509-7.018v-5.484l-1.316-1.1.658-1.535-4.387-4.168-.658-9.43,5.376-14.645.546-3.34-.219-2.412,1.563-.977,3.481,3.389,4.825.219.658,4.606,3.29,5.7,3.948-7.019,3.34-.626ZM180.16,176.578l-1.968,4.832-5.16-.992-2.362-1.383-5.774-3.38.993-7.342,2.778-2.778,9.525-.2,3.175,3.969Zm94.423-5-1.92-1.57-7.156.349-1.745,1.047-1.4-1.047v-5.062l1.571-.523.174-2.793,3.84-2.618,6.632.175ZM159.892,244.228c1.693.5,1.345,2.394,2.5,2.764",transform:"translate(-1.298 -2.58)",fill:n("oromiya"),className:`state ${i==="oromiya"?"active":""}`,onClick:()=>d("oromiya"),onMouseEnter:()=>o("oromiya"),onMouseLeave:()=>o(null)}),a.jsx("path",{d:"M151.983,231.333l-.026-.147c-.061.109-.234.431-.466.9Z",transform:"translate(-1.298 -2.58)",fill:n("oromiya"),className:`state ${i==="oromiya"?"active":""}`,onClick:()=>d("oromiya")})]}),h&&a.jsx("text",{x:r.oromiya.x,y:r.oromiya.y,className:c,textAnchor:"middle",dominantBaseline:"middle",children:"Oromiya"}),v&&t.oromiya?.value!==void 0&&a.jsx("text",{x:r.oromiya.x,y:r.oromiya.y+15,className:c,textAnchor:"middle",dominantBaseline:"middle",children:x(t.oromiya.value)})]}),a.jsxs("g",{className:"cls-2 state",id:"snprl",children:[a.jsx("polygon",{points:"168.699 190.207 165.049 183.979 162.192 183.54 159.555 189.253 157.797 188.374 155.553 185.291 150.545 184.638 145.49 186.836 136.467 186.386 133.717 184.008 131.536 187.492 133.249 189.118 136.324 189.879 136.041 197.384 134.283 197.824 132.427 196.38 129.668 197.384 131.139 198.878 130.107 201.559 130.767 206.394 131.605 209.536 130.547 213.646 122.855 218.7 113.224 218.808 104.983 213.737 99.781 213.646 98.023 211.668 95.606 211.229 92.529 209.031 90.112 209.69 89.672 205.076 84.398 201.559 85.717 200.241 85.057 194.527 81.761 193.209 80.443 195.626 82.711 198.307 81.269 200.476 76.889 201.727 72.971 200.021 66.818 205.076 67.03 211.333 70.098 213.617 69.256 220.345 62.713 221.29 59.026 219.401 58.684 221.29 53.218 221.865 51.012 224.359 46.792 224.646 42.01 222.827 36.69 222.916 52.204 236.058 56.245 237.653 58.903 240.098 58.588 252.15 59.703 255.378 60.057 258.148 63.474 263.169 63.262 264.977 69.109 269.123 68.684 271.675 68.775 272.763 73.642 270.94 83.356 272.632 84.632 274.227 84.391 277.551 82.825 284.965 82.612 290.387 90.055 298.787 109.011 298.253 112.966 293.418 115.603 287.484 114.944 280.892 118.021 276.716 124.833 276.497 128.789 278.035 139.117 273.86 144.392 276.277 145.71 274.739 144.172 272.321 146.589 269.684 146.809 264.19 149.666 263.971 150.545 261.553 146.809 255.4 141.974 253.862 140.876 251.664 142.853 247.928 142.634 242.434 141.535 240.237 147.313 236.491 148.013 235.653 149.779 230.153 150.865 228.607 150.25 226.146 150.984 219.36 156.259 215.404 159.994 210.57 161.093 204.636 166.367 194.967 164.829 190.352 168.345 192.55 168.699 190.207",fill:n("snnpr"),className:`state ${i==="snnpr"?"active":""}`,onClick:()=>d("snnpr"),onMouseEnter:()=>o("snnpr"),onMouseLeave:()=>o(null)}),h&&a.jsx("text",{x:r.snnpr.x,y:r.snnpr.y,className:c,textAnchor:"middle",dominantBaseline:"middle",children:"SNNPR"}),v&&t.snnpr?.value!==void 0&&a.jsx("text",{x:r.snnpr.x,y:r.snnpr.y+15,className:c,textAnchor:"middle",dominantBaseline:"middle",children:x(t.snnpr.value)}),a.jsx("polygon",{points:"156.478 241.832 156.039 242.874 153.841 245.071 152.962 248.807 150.521 249.612 150.325 250.785 154.72 258.257 155.568 258.421 159.115 257.378 159.216 255.313 156.918 253.642 159.115 249.467 160.434 247.928 161.093 244.412 158.786 241.648 156.478 241.832",fill:n("snnpr"),className:`state ${i==="snnpr"?"active":""}`,onClick:()=>d("snnpr")})]}),a.jsxs("g",{className:"cls-2 state",id:"somalial",children:[a.jsxs("g",{id:"somalia",children:[a.jsx("polygon",{points:"435.339 196.127 429.429 196.825 412.524 196.825 353.82 177.356 325.342 167.481 307.161 152.915 303.227 146.19 301.845 143.24 298.544 141.514 290.362 131.864 286.641 122.189 289.937 115.809 293.432 111.361 285.79 108.792 269.842 111.557 263.782 112.088 258.577 111.075 244.32 111.382 244.162 113.121 239.105 119.759 238.472 124.026 237.208 126.871 236.027 131.888 233.731 138.409 236.892 141.254 233.025 143.931 230.886 144.573 230.412 146.311 227.087 152.024 226.52 153.823 228.215 155.088 229.376 155.088 230.001 154.195 232.59 154.195 233.572 154.999 233.482 156.784 230.536 157.766 232.956 159.268 237.927 156.778 242.678 153.927 245.713 153.481 249.284 154.82 250.623 154.999 251.605 153.838 255.266 153.392 257.319 154.909 256.646 154.412 257.765 151.338 258.212 149.196 260.533 149.196 262.318 148.035 265.979 150.267 270.889 145.446 273.032 145.446 275.016 147.405 273.005 148.828 270.621 149.196 272.941 148.871 275.174 147.41 275.429 147.405 277.403 152.669 278.938 152.888 283.544 163.416 284.202 166.706 290.782 173.066 290.388 176.215 292.317 180.084 292.524 184.847 289.027 185.787 286.078 191.474 285.079 192.805 281.77 186.97 281.131 182.497 276.306 182.278 273.016 178.768 271.262 179.865 271.458 182.44 270.933 185.621 267.095 195.218 265.559 200.262 266.202 209.448 270.604 213.86 269.946 215.395 271.077 216.338 271.262 221.975 267.753 228.993 267.533 231.625 264.024 238.205 259.418 237.986 254.593 242.591 255.909 247.855 251.674 251.455 248.891 248.075 248.233 248.075 238.739 234.265 238.802 238.863 234.854 243.03 233.1 243.03 232.031 250.511 241.469 260.173 243.846 261.015 243.408 265.84 241.215 268.252 244.504 272.639 244.504 274.174 245.491 277.23 248.891 283.605 250.207 283.605 253.497 287.991 242.75 288.211 241.434 287.333 239.46 291.062 232.886 295.436 229.371 295.229 226.52 295.887 229.152 298.519 228.79 302.472 229.266 303.435 241.455 313.034 253.949 312.321 263.357 311.12 266.759 308.249 287.81 305.06 296.741 295.703 303.546 290.706 313.482 287.4 326.192 284.54 338.465 285.172 354.032 284.865 374.372 264.99 384.356 254.783 400.074 238.589 410.702 227.549 421.928 215.724 432.514 205.234 440.805 197.038 435.339 196.127",fill:n("somalia"),className:`state ${i==="somalia"?"active":""}`,onClick:()=>d("somalia"),onMouseEnter:()=>o("somalia"),onMouseLeave:()=>o(null)}),a.jsx("polygon",{points:"265.353 154.325 265.353 154.325 269.014 153.66 265.353 154.325",fill:n("somalia"),className:`state ${i==="somalia"?"active":""}`,onClick:()=>d("somalia")}),a.jsx("polygon",{points:"269.745 152.671 269.746 152.671 269.907 150.088 269.745 152.671",fill:n("somalia"),className:`state ${i==="somalia"?"active":""}`,onClick:()=>d("somalia")})]}),h&&a.jsx("text",{x:r.somalia.x,y:r.somalia.y,className:c,textAnchor:"middle",dominantBaseline:"middle",children:"Somalia"}),v&&t.somalia?.value!==void 0&&a.jsx("text",{x:r.somalia.x,y:r.somalia.y+15,className:c,textAnchor:"middle",dominantBaseline:"middle",children:x(t.somalia.value)})]}),a.jsxs("g",{className:"cls-2 state",id:"amharal",children:[a.jsx("polygon",{id:"amhara",points:"202.279 164.013 199.592 164.645 199.434 171.916 196.905 172.39 192.638 175.235 190.267 173.18 188.528 174.761 186.316 175.551 185.525 169.229 188.272 165.108 185.525 162.907 185.051 160.062 190.425 158.165 190.267 155.478 186.157 154.372 186.303 152.921 187.917 152.791 189.793 147.576 188.054 146.153 183.471 147.892 182.252 151.549 179.638 151.122 177.781 146.944 174.539 147.561 171.617 145.837 171.459 140.622 167.774 138.011 172.565 135.564 172.407 128.926 163.714 128.452 160.711 132.403 160.41 134.362 157.076 136.196 154.073 137.461 145.222 141.886 143.326 141.886 142.377 143.783 137.952 143.625 133.685 139.199 131.63 139.515 131.472 137.935 128.268 139.155 123.569 136.038 123.569 133.035 119.513 131.191 114.718 129.716 108.185 129.347 105.235 128.61 104.919 126.239 100.652 125.765 100.02 125.133 97.649 124.342 97.965 120.707 99.565 118.09 97.807 116.124 97.965 114.859 98.439 113.595 102.232 109.011 102.877 109.162 105.235 107.747 102.232 105.376 105.077 101.741 103.655 97.79 99.546 93.048 98.439 87.2 94.08 91.108 88.008 81.985 83.899 81.195 81.844 81.195 80.105 83.723 76.312 85.936 75.68 87.833 68.701 87.816 67.303 86.884 67.461 84.988 65.194 84.167 70.323 77.54 78.147 65.414 79.908 63.555 89.514 61.627 92.885 61.488 94.201 60.31 93.35 55.845 93.563 52.549 101.407 33.683 104.596 36.055 104.723 36.569 108.149 36.997 108.378 37.683 110.759 37.683 116.129 42.384 119.051 42.888 122.548 41.225 126.09 41.111 127.005 42.825 134.547 43.054 139.46 39.283 139.689 36.883 141.289 35.054 143.231 37.797 146.743 38.894 157.058 39.397 161.058 37.226 163.801 39.625 167.343 39.397 168.714 40.54 169.4 46.368 175.571 46.596 178.313 48.653 177.881 53.195 184.027 53.453 185.627 62.023 182.427 63.509 184.37 68.08 184.141 72.308 185.741 73.45 192.712 72.879 194.562 74.216 196.826 73.222 199.414 73.118 200.55 81.048 202.753 83.723 203.069 88.781 206.546 92.89 206.388 93.997 208.443 97.316 208.443 100.477 212.078 105.85 212.552 109.96 211.288 111.224 210.673 117.861 211.273 123.259 212.236 126.397 211.288 131.138 210.023 133.983 210.497 136.67 207.178 136.67 205.598 137.302 209.119 140.211 208.117 143.529 206.704 146.944 202.121 146.627 202.874 150.093 203.069 155.004 200.698 157.059 202.911 159.113 203.004 160.942 202.279 164.013",fill:n("amhara"),className:`state ${i==="amhara"?"active":""}`,onClick:()=>d("amhara"),onMouseEnter:()=>o("amhara"),onMouseLeave:()=>o(null)}),h&&a.jsx("text",{x:r.amhara.x,y:r.amhara.y,className:c,textAnchor:"middle",dominantBaseline:"middle",children:"Amhara"}),v&&t.amhara?.value!==void 0&&a.jsx("text",{x:r.amhara.x,y:r.amhara.y+15,className:c,textAnchor:"middle",dominantBaseline:"middle",children:x(t.amhara.value)})]}),a.jsxs("g",{className:"cls-2 state",id:"afarl",children:[a.jsx("polygon",{id:"afar",points:"202.279 163.697 206.072 167.964 208.759 168.597 207.178 172.706 209.233 172.548 213.184 168.597 213.5 166.226 220.296 158.797 220.613 157.217 225.71 156.753 227.06 152.122 230.412 146.311 230.886 144.573 232.782 144.099 236.828 141.298 233.731 138.409 235.88 132.423 237.185 126.97 238.472 124.026 239.104 119.759 244.162 113.121 244.28 111.223 258.577 111.075 258.998 94.758 275.371 71.155 265.909 54.888 243.934 33.241 233.442 23.995 211.963 10.169 208.708 10.127 204.881 12.679 202.874 11.829 201.52 13.643 197.168 15.171 198.485 16.69 197.004 19.854 200.497 22.75 200.935 33.643 201.42 34.278 201.62 36.997 199.225 38.14 198.891 44.043 198.197 46.482 199.641 47.593 199.568 56.995 203.453 59.395 203.111 62.48 200.597 66.137 200.482 73.222 199.414 73.267 200.53 80.965 202.753 83.723 203.065 88.71 206.546 92.89 206.399 93.917 208.39 97.23 208.443 100.417 212.078 105.85 212.552 109.96 211.288 111.224 210.655 117.704 211.288 123.394 212.212 126.323 211.288 131.138 210.034 134.042 210.466 136.492 207.178 136.67 205.536 137.236 209.111 140.205 206.767 146.801 202.121 146.627 202.911 150.263 203.064 154.867 200.734 157.027 202.805 159.015 203.069 160.694 202.279 163.697",fill:n("afar"),className:`state ${i==="afar"?"active":""}`,onClick:()=>d("afar"),onMouseEnter:()=>o("afar"),onMouseLeave:()=>o(null)}),h&&a.jsx("text",{x:r.afar.x,y:r.afar.y,className:c,textAnchor:"middle",dominantBaseline:"middle",children:"Afar"}),v&&t.afar?.value!==void 0&&a.jsx("text",{x:r.afar.x,y:r.afar.y+10,className:c,textAnchor:"middle",dominantBaseline:"middle",children:x(t.afar.value)})]}),a.jsxs("g",{className:"cls-2 state",id:"direl",children:[a.jsx("polygon",{id:"dire",points:"256.646 154.412 258.212 149.196 260.533 149.196 262.318 148.035 265.979 150.267 270.889 145.446 273.032 145.446 275.016 147.405 273.005 148.828 270.621 149.196 269.907 150.088 269.746 152.671 269.014 153.66 265.353 154.325 257.319 154.909 256.646 154.412",fill:n("dire"),className:`state ${i==="dire"?"active":""}`,onClick:()=>d("dire"),onMouseEnter:()=>o("dire"),onMouseLeave:()=>o(null)}),h&&a.jsx("text",{x:r.dire.x,y:r.dire.y,className:c,textAnchor:"middle",dominantBaseline:"middle",children:"Dire"}),v&&t.dire?.value!==void 0&&a.jsx("text",{x:r.dire.x,y:r.dire.y+10,className:c,textAnchor:"middle",dominantBaseline:"middle",children:x(t.dire.value)})]}),a.jsxs("g",{className:"cls-2 state",id:"sidamal",children:[a.jsx("polygon",{id:"sidama",points:"150.361 225.933 155.16 224.634 158.236 221.557 165.633 221.557 168.785 227.93 167.246 231.227 170.179 232.595 173.4 234.743 178.517 236.236 180.871 240.237 181.706 244.412 180.432 246.829 181.311 249.466 179.333 251.005 169.664 242.874 163.071 241.555 161.093 244.412 158.786 241.648 156.256 241.648 154.94 240.896 152.742 241.336 149.006 237.82 145.633 237.706 147.893 235.838 149.779 230.153 150.865 228.607 150.361 225.933",fill:n("sidama"),className:`state ${i==="sidama"?"active":""}`,onClick:()=>d("sidama"),onMouseEnter:()=>o("sidama"),onMouseLeave:()=>o(null)}),h&&a.jsx("text",{x:r.sidama.x,y:r.sidama.y,className:c,textAnchor:"middle",dominantBaseline:"middle",children:"Sidama"}),v&&t.sidama?.value!==void 0&&a.jsx("text",{x:r.sidama.x,y:r.sidama.y+10,className:c,textAnchor:"middle",dominantBaseline:"middle",children:x(t.sidama.value)})]}),a.jsxs("g",{className:"cls-2 state",id:"gambellal",children:[a.jsx("polygon",{id:"gambella",points:"6.487 184.492 15.843 183.535 23.179 186.3 33.652 179.628 36.251 179.628 36.529 178.514 38.831 178.514 49.381 187.913 49.381 188.393 52.834 188.489 54.177 190.982 61.997 191.086 56.478 195.01 58.588 196.353 55.232 199.518 55.903 202.108 58.987 204.693 59.964 207.913 62.904 209.493 62.808 211.123 64.631 211.89 67.034 211.57 70.098 213.617 69.234 220.522 62.713 221.29 59.164 219.563 58.684 221.29 53.218 221.865 51.012 224.359 46.446 224.646 42.188 222.824 37.055 222.91 29.984 217.664 29.452 214.368 19.033 205.331 9.57 204.8 6.061 202.779 2.447 202.992 0.533 200.44 1.064 197.676 4.892 192.573 6.061 188.639 6.487 184.492",fill:n("gambella"),className:`state ${i==="gambella"?"active":""}`,onClick:()=>d("gambella"),onMouseEnter:()=>o("gambella"),onMouseLeave:()=>o(null)}),h&&a.jsx("text",{x:r.gambella.x,y:r.gambella.y,className:c,textAnchor:"middle",dominantBaseline:"middle",children:"Gambella"}),v&&t.gambella?.value!==void 0&&a.jsx("text",{x:r.gambella.x,y:r.gambella.y+10,className:c,textAnchor:"middle",dominantBaseline:"middle",children:x(t.gambella.value)})]}),a.jsxs("g",{className:"cls-2 state",id:"benishangull",children:[a.jsx("polygon",{id:"benishangul",points:"119.756 131.411 118.328 133.389 114.922 133.498 113.148 131.411 110.264 131.411 106.336 133.498 103.497 131.301 101.519 131.191 99.871 133.059 99.652 135.586 97.894 137.344 93.17 138.222 93.28 149.758 98.584 153.918 99.871 154.262 100.64 153.164 103.65 153.94 102.398 155.361 102.069 157.228 101.08 158.437 98.773 157.009 98.443 158.767 96.905 157.997 94.488 158.217 93.28 159.536 95.477 161.183 94.928 163.6 91.632 164.699 89.544 161.733 85.589 158.657 82.404 158.876 81.854 155.031 79.108 152.724 79.327 151.186 75.812 148 73.285 148 73.065 147.231 70.319 147.231 70.209 144.594 67.682 141.848 63.837 140.31 61.2 141.299 59.662 139.211 57.135 138.772 56.31 143.931 54.169 145.473 53.73 150.307 51.701 152.656 49.116 151.626 45.82 148.769 42.744 148.989 43.293 151.626 45.6 152.944 44.831 154.043 42.524 155.471 42.637 160.114 41.315 161.843 38.239 162.941 33.076 162.76 32.961 158.55 32.323 153.022 34.874 144.41 36.15 142.071 36.363 138.349 39.34 135.266 39.021 130.801 38.277 129.737 39.127 122.082 47.696 113.618 53.111 118.633 57.521 114.64 58.448 110.005 58.477 105.272 57.308 103.476 61.667 95.502 60.179 89.761 60.866 89.589 65.155 84.218 67.453 85.088 67.303 86.884 68.642 87.777 75.68 87.833 76.312 85.936 80.105 83.723 81.844 81.195 83.899 81.195 87.913 81.967 93.759 91.136 98.439 87.2 99.509 92.855 101.967 96.076 103.59 97.725 105.077 101.741 102.232 105.376 105.131 107.665 102.986 109.097 102.188 109.065 98.439 113.595 97.965 114.859 97.807 116.124 99.704 117.862 97.965 120.707 97.649 124.342 100.02 125.133 100.652 125.765 104.919 126.239 105.235 128.61 108.244 129.362 114.557 129.708 118.162 130.614 119.756 131.411",fill:n("benishangul"),className:`state ${i==="benishangul"?"active":""}`,onClick:()=>d("benishangul"),onMouseEnter:()=>o("benishangul"),onMouseLeave:()=>o(null)}),h&&a.jsx("text",{x:r.benishangul.x,y:r.benishangul.y,className:c,textAnchor:"middle",dominantBaseline:"middle",children:"Benishangul"}),v&&t.benishangul?.value!==void 0&&a.jsx("text",{x:r.benishangul.x,y:r.benishangul.y+15,className:c,textAnchor:"middle",dominantBaseline:"middle",children:x(t.benishangul.value)})]})]}),C&&j&&a.jsx("div",{className:"absolute top-0 right-8 bg-white p-2 rounded shadow z-10 pointer-events-none",style:{transform:"translateY(-100%)"},children:C(j,t[j])})]}),O&&u.length>0&&a.jsx("div",{className:"mt-2 pointer-events-none",children:a.jsxs("div",{className:"pointer-events-auto p-4 max-w-2xl w-full",children:[a.jsx("h3",{className:"text-sm font-bold mb-2",children:"Legend"}),a.jsx("ul",{className:"grid grid-cols-1 md:grid-cols-3 lg:grid-cols-3 gap-x-4 gap-y-2 text-sm",children:u.map(l=>{const m=t[l.id]?.color||f;return m.startsWith("#")?`${m.replace("#","#")}`:`${m}`,a.jsxs("li",{className:"flex items-center",children:[a.jsx("div",{className:"w-4 h-4 mr-2 flex-shrink-0 rounded border border-gray-300",style:{backgroundColor:t[l.id]?.color||f}}),a.jsxs("span",{className:"truncate",children:[l.name,t[l.id]?.value!==void 0&&a.jsxs("span",{children:[": ",x(t[l.id].value??"")]})]})]},l.id)})})]})})]})};exports.EthiopiaSvgMap=l1;exports.demoData=a1;