import{c as H0,a as V0}from"./_commonjsHelpers-C4iS2aBk.js";var U={exports:{}};(function(F,F0){(function(I,R){F.exports=R()})(H0,function(){var I=function(a){return R(a)&&!K(a)};function R(t){return!!t&&typeof t=="object"}function K(t){var a=Object.prototype.toString.call(t);return a==="[object RegExp]"||a==="[object Date]"||Q(t)||q(t)}var W=typeof Symbol=="function"&&Symbol.for,J=W?Symbol.for("react.element"):60103;function q(t){return t.$$typeof===J}function Q(t){return t instanceof Node}function $(t){return Array.isArray(t)?[]:{}}function S(t,a){return a.clone!==!1&&a.isMergeableObject(t)?A($(t),t,a):t}function l0(t,a,i){return t.concat(a).map(function(l){return S(l,i)})}function e0(t,a){if(!a.customMerge)return A;var i=a.customMerge(t);return typeof i=="function"?i:A}function t0(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(a){return t.propertyIsEnumerable(a)}):[]}function Y(t){return Object.keys(t).concat(t0(t))}function B(t,a){try{return a in t}catch{return!1}}function a0(t,a){return B(t,a)&&!(Object.hasOwnProperty.call(t,a)&&Object.propertyIsEnumerable.call(t,a))}function i0(t,a,i){var l={};return i.isMergeableObject(t)&&Y(t).forEach(function(e){l[e]=S(t[e],i)}),Y(a).forEach(function(e){a0(t,e)||(B(t,e)&&i.isMergeableObject(a[e])?l[e]=e0(e,i)(t[e],a[e],i):l[e]=S(a[e],i))}),l}var A=function(a,i,l){l=l||{},l.arrayMerge=l.arrayMerge||l0,l.isMergeableObject=l.isMergeableObject||I,l.cloneUnlessOtherwiseSpecified=S;var e=Array.isArray(i),n=Array.isArray(a),s=e===n;return s?e?l.arrayMerge(a,i,l):i0(a,i,l):S(i,l)},z=function(a){return typeof a=="object"&&typeof a.nodeType<"u"?a:typeof a=="string"?document.querySelector(a):null},Z=function(a,i,l,e){e===void 0&&(e=!1);var n=document.createElement(a);return l&&(n[e?"innerHTML":"textContent"]=l),i&&(n.className=i),n},n0=function(a,i){return Element.prototype.querySelector.call(a,i)},E=function(a){a.parentNode.removeChild(a)},s0=function(a){return/\.(jpg|gif|png)$/.test(a)},r0=function(a){return a.replace(/[\w]([A-Z])/g,function(i){return i[0]+"-"+i[1]}).toLowerCase()},d=function(a,i,l){return l===void 0&&(l=!1),l?A(a,i):Object.assign(a,i)},C=function(a,i){return a.toLowerCase()+":to:"+i.toLowerCase()},D=function(a,i){Object.assign(a.prototype,i)},b={},o0=1,u={on:function(a,i,l,e){e===void 0&&(e={});var n="jvm:"+i+"::"+o0++;b[n]={selector:a,handler:l},l._uid=n,a.addEventListener(i,l,e)},delegate:function(a,i,l,e){i=i.split(" "),i.forEach(function(n){u.on(a,n,function(s){var r=s.target;r.matches(l)&&e.call(r,s)})})},off:function(a,i,l){var e=i.split(":")[1];a.removeEventListener(e,l),delete b[l._uid]},flush:function(){Object.keys(b).forEach(function(a){u.off(b[a].selector,a,b[a].handler)})},getEventRegistry:function(){return b}};function h0(){var t=this,a=this,i=!1,l,e;this.params.draggable&&(u.on(this.container,"mousemove",function(n){if(!i)return!1;a.transX-=(l-n.pageX)/a.scale,a.transY-=(e-n.pageY)/a.scale,a._applyTransform(),l=n.pageX,e=n.pageY}),u.on(this.container,"mousedown",function(n){return i=!0,l=n.pageX,e=n.pageY,!1}),u.on(document.body,"mouseup",function(){i=!1})),this.params.zoomOnScroll&&u.on(this.container,"wheel",function(n){var s=((n.deltaY||-n.wheelDelta||n.detail)>>10||1)*75,r=t.container.getBoundingClientRect(),o=n.pageX-r.left-window.pageXOffset,m=n.pageY-r.top-window.pageYOffset,p=Math.pow(1+a.params.zoomOnScrollSpeed/1e3,-1.5*s);a.tooltip&&a._tooltip.hide(),a._setScale(a.scale*p,o,m),n.preventDefault()})}var f={onLoaded:"map:loaded",onViewportChange:"viewport:changed",onRegionClick:"region:clicked",onMarkerClick:"marker:clicked",onRegionSelected:"region:selected",onMarkerSelected:"marker:selected",onRegionTooltipShow:"region.tooltip:show",onMarkerTooltipShow:"marker.tooltip:show",onDestroyed:"map:destroyed"},P=function(a,i,l){var e=z(i),n=e.getAttribute("class").indexOf("jvm-region")===-1?"marker":"region",s=n==="region",r=s?e.getAttribute("data-code"):e.getAttribute("data-index"),o=s?f.onRegionSelected:f.onMarkerSelected;return l&&(o=s?f.onRegionTooltipShow:f.onMarkerTooltipShow),{type:n,code:r,event:o,element:s?a.regions[r].element:a._markers[r].element,tooltipText:s?a._mapData.paths[r].name||"":a._markers[r].config.name||""}};function p0(){var t=this,a=this.container,i,l,e;u.on(a,"mousemove",function(n){Math.abs(i-n.pageX)+Math.abs(l-n.pageY)>2&&(e=!0)}),u.delegate(a,"mousedown",".jvm-element",function(n){i=n.pageX,l=n.pageY,e=!1}),u.delegate(a,"mouseover mouseout",".jvm-element",function(n){var s=P(t,this,!0),r=t.params.showTooltip;n.type==="mouseover"?(s.element.hover(!0),r&&(t._tooltip.text(s.tooltipText),t._tooltip.show(),t._emit(s.event,[n,t._tooltip,s.code]))):(s.element.hover(!1),r&&t._tooltip.hide())}),u.delegate(a,"mouseup",".jvm-element",function(n){var s=P(t,this);if(!e&&(s.type==="region"&&t.params.regionsSelectable||s.type==="marker"&&t.params.markersSelectable)){var r=s.element;t.params[s.type+"sSelectableOne"]&&t._clearSelected(s.type+"s"),s.element.isSelected?r.select(!1):r.select(!0),t._emit(s.event,[s.code,r.isSelected,t._getSelected(s.type+"s")])}}),u.delegate(a,"click",".jvm-element",function(n){var s=P(t,this),r=s.type,o=s.code;t._emit(r==="region"?f.onRegionClick:f.onMarkerClick,[n,o])})}function m0(){var t=this,a=Z("div","jvm-zoom-btn jvm-zoomin","+",!0),i=Z("div","jvm-zoom-btn jvm-zoomout","−",!0);this.container.appendChild(a),this.container.appendChild(i);var l=function(n){return n===void 0&&(n=!0),function(){return t._setScale(n?t.scale*t.params.zoomStep:t.scale/t.params.zoomStep,t._width/2,t._height/2,!1,t.params.zoomAnimate)}};u.on(a,"click",l()),u.on(i,"click",l(!1))}function c0(){var t=this,a,i,l,e,n,s,r,o=function(p){var h=p.touches,c,M,g,T;if(p.type=="touchstart"&&(r=0),h.length==1)r==1&&(g=t.transX,T=t.transY,t.transX-=(l-h[0].pageX)/t.scale,t.transY-=(e-h[0].pageY)/t.scale,t._tooltip.hide(),t._applyTransform(),(g!=t.transX||T!=t.transY)&&p.preventDefault()),l=h[0].pageX,e=h[0].pageY;else if(h.length==2)if(r==2)M=Math.sqrt(Math.pow(h[0].pageX-h[1].pageX,2)+Math.pow(h[0].pageY-h[1].pageY,2))/i,t._setScale(a*M,n,s),t._tooltip.hide(),p.preventDefault();else{var y=t.container.getBoundingClientRect();c={top:y.top+window.scrollY,left:y.left+window.scrollX},h[0].pageX>h[1].pageX?n=h[1].pageX+(h[0].pageX-h[1].pageX)/2:n=h[0].pageX+(h[1].pageX-h[0].pageX)/2,h[0].pageY>h[1].pageY?s=h[1].pageY+(h[0].pageY-h[1].pageY)/2:s=h[0].pageY+(h[1].pageY-h[0].pageY)/2,n-=c.left,s-=c.top,a=t.scale,i=Math.sqrt(Math.pow(h[0].pageX-h[1].pageX,2)+Math.pow(h[0].pageY-h[1].pageY,2))}r=h.length};u.on(t.container,"touchstart",o),u.on(t.container,"touchmove",o)}function X(t,a){(a==null||a>t.length)&&(a=t.length);for(var i=0,l=Array(a);i=t.length?{done:!0}:{done:!1,value:t[l++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G(){return G=Object.assign?Object.assign.bind():function(t){for(var a=1;aa?this.transY=a:this.transYt?this.transX=t:this.transXthis._defaultWidth/this._defaultHeight?(this._baseScale=this._height/this._defaultHeight,this._baseTransX=Math.abs(this._width-this._defaultWidth*this._baseScale)/(2*this._baseScale)):(this._baseScale=this._width/this._defaultWidth,this._baseTransY=Math.abs(this._height-this._defaultHeight*this._baseScale)/(2*this._baseScale)),this.scale*=this._baseScale/t,this.transX*=this._baseScale/t,this.transY*=this._baseScale/t}function T0(t,a,i,l,e){var n=this,s,r,o=0,m=Math.abs(Math.round((t-this.scale)*60/Math.max(t,this.scale))),p,h,c,M,g,T,y,j;t>this.params.zoomMax*this._baseScale?t=this.params.zoomMax*this._baseScale:t0?(p=this.scale,h=(t-p)/m,c=this.transX*this.scale,g=this.transY*this.scale,M=(y*t-c)/m,T=(j*t-g)/m,r=setInterval(function(){o+=1,n.scale=p+h*o,n.transX=(c+M*o)/n.scale,n.transY=(g+T*o)/n.scale,n._applyTransform(),o==m&&(clearInterval(r),n._emit(f.onViewportChange,[n.scale,n.transX,n.transY]))},10)):(this.transX=y,this.transY=j,this.scale=t,this._applyTransform(),this._emit(f.onViewportChange,[this.scale,this.transX,this.transY]))}function A0(t){var a=this;t===void 0&&(t={});var i,l=[];if(t.region?l.push(t.region):t.regions&&(l=t.regions),l.length)return l.forEach(function(r){if(a.regions[r]){var o=a.regions[r].element.shape.getBBox();o&&(typeof i>"u"?i=o:i={x:Math.min(i.x,o.x),y:Math.min(i.y,o.y),width:Math.max(i.x+i.width,o.x+o.width)-Math.min(i.x,o.x),height:Math.max(i.y+i.height,o.y+o.height)-Math.min(i.y,o.y)})}}),this._setScale(Math.min(this._width/i.width,this._height/i.height),-(i.x+i.width/2),-(i.y+i.height/2),!0,t.animate);if(t.coords){var e=this.coordsToPoint(t.coords[0],t.coords[1]),n=this.transX-e.x/this.scale,s=this.transY-e.y/this.scale;return this._setScale(t.scale*this._baseScale,n,s,!0,t.animate)}}function E0(){this._width=this.container.offsetWidth,this._height=this.container.offsetHeight,this._resize(),this.canvas.setSize(this._width,this._height),this._applyTransform()}var k={mill:function(a,i,l){return{x:this.radius*(i-l)*this.radDeg,y:-this.radius*Math.log(Math.tan((45+.4*a)*this.radDeg))/.8}},merc:function(a,i,l){return{x:this.radius*(i-l)*this.radDeg,y:-this.radius*Math.log(Math.tan(Math.PI/4+a*Math.PI/360))}},aea:function(a,i,l){var e=0,n=l*this.radDeg,s=29.5*this.radDeg,r=45.5*this.radDeg,o=a*this.radDeg,m=i*this.radDeg,p=(Math.sin(s)+Math.sin(r))/2,h=Math.cos(s)*Math.cos(s)+2*p*Math.sin(s),c=p*(m-n),M=Math.sqrt(h-2*p*Math.sin(o))/p,g=Math.sqrt(h-2*p*Math.sin(e))/p;return{x:M*Math.sin(c)*this.radius,y:-(g-M*Math.cos(c))*this.radius}},lcc:function(a,i,l){var e=0,n=l*this.radDeg,s=i*this.radDeg,r=33*this.radDeg,o=45*this.radDeg,m=a*this.radDeg,p=Math.log(Math.cos(r)*(1/Math.cos(o)))/Math.log(Math.tan(Math.PI/4+o/2)*(1/Math.tan(Math.PI/4+r/2))),h=Math.cos(r)*Math.pow(Math.tan(Math.PI/4+r/2),p)/p,c=h*Math.pow(1/Math.tan(Math.PI/4+m/2),p),M=h*Math.pow(1/Math.tan(Math.PI/4+e/2),p);return{x:c*Math.sin(p*(s-n))*this.radius,y:-(M-c*Math.cos(p*(s-n)))*this.radius}}};k.degRad=180/Math.PI,k.radDeg=Math.PI/180,k.radius=6381372;function C0(t,a){var i=_.maps[this.params.map].projection,l=k[i.type](t,a,i.centralMeridian),e=l.x,n=l.y,s=this.getInsetForPoint(e,n);if(!s)return!1;var r=s.bbox;return e=(e-r[0].x)/(r[1].x-r[0].x)*s.width*this.scale,n=(n-r[0].y)/(r[1].y-r[0].y)*s.height*this.scale,{x:e+this.transX*this.scale+s.left*this.scale,y:n+this.transY*this.scale+s.top*this.scale}}function x0(t,a){for(var i=_.maps[this.params.map].insets,l=0;ln.x&&tn.y&&athis.max&&(this.max=e),e-1)}),this._markers,!0)},a.removeLines=function(l){var e=this;Array.isArray(l)?l=l.map(function(n){return C(n.from,n.to)}):l=this._getLinesAsUids(),l.forEach(function(n){e._lines[n].dispose(),delete e._lines[n]})},a.removeLine=function(l,e){console.warn("`removeLine` method is deprecated, please use `removeLines` instead.");var n=C(l,e);this._lines.hasOwnProperty(n)&&(this._lines[n].element.remove(),delete this._lines[n])},a.reset=function(){for(var l in this.series)for(var e=0;e