PageSourceSearch

https://bioresonance.com/wp-content/uploads/gdpr-press/js/lib/version/4.10.29/maps.js

js bioresonance.com collected 2026-09-25 05:59:08 UTC 139,287 bytes, 1 lines download raw bytes

1am4internal_webpackJsonp(["cc1e"],{QJ7E:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={};n.d(i,"geoArea",function(){return Nt}),n.d(i,"geoBounds",function(){return ve}),n.d(i,"geoCentroid",function(){return Le}),n.d(i,"geoCircle",function(){return Ae}),n.d(i,"geoClipAntimeridian",function(){return Je}),n.d(i,"geoClipCircle",function(){return Ke}),n.d(i,"geoClipExtent",function(){return un}),n.d(i,"geoClipRectangle",function(){return en}),n.d(i,"geoContains",function(){return xn}),n.d(i,"geoDistance",function(){return gn}),n.d(i,"geoGraticule",function(){return On}),n.d(i,"geoGraticule10",function(){return Ln}),n.d(i,"geoInterpolate",function(){return Gn}),n.d(i,"geoLength",function(){return pn}),n.d(i,"geoPath",function(){return Ii}),n.d(i,"geoAlbers",function(){return Ji}),n.d(i,"geoAlbersUsa",function(){return Ki}),n.d(i,"geoAzimuthalEqualArea",function(){return er}),n.d(i,"geoAzimuthalEqualAreaRaw",function(){return tr}),n.d(i,"geoAzimuthalEquidistant",function(){return ir}),n.d(i,"geoAzimuthalEquidistantRaw",function(){return nr}),n.d(i,"geoConicConformal",function(){return cr}),n.d(i,"geoConicConformalRaw",function(){return sr}),n.d(i,"geoConicEqualArea",function(){return Ui}),n.d(i,"geoConicEqualAreaRaw",function(){return Yi}),n.d(i,"geoConicEquidistant",function(){return fr}),n.d(i,"geoConicEquidistantRaw",function(){return pr}),n.d(i,"geoEqualEarth",function(){return Pr}),n.d(i,"geoEqualEarthRaw",function(){return br}),n.d(i,"geoEquirectangular",function(){return hr}),n.d(i,"geoEquirectangularRaw",function(){return lr}),n.d(i,"geoGnomonic",function(){return Mr}),n.d(i,"geoGnomonicRaw",function(){return _r}),n.d(i,"geoIdentity",function(){return Sr}),n.d(i,"geoProjection",function(){return Zi}),n.d(i,"geoProjectionMutator",function(){return qi}),n.d(i,"geoMercator",function(){return or}),n.d(i,"geoMercatorRaw",function(){return rr}),n.d(i,"geoNaturalEarth1",function(){return wr}),n.d(i,"geoNaturalEarth1Raw",function(){return xr}),n.d(i,"geoOrthographic",function(){return Or}),n.d(i,"geoOrthographicRaw",function(){return jr}),n.d(i,"geoStereographic",function(){return Cr}),n.d(i,"geoStereographicRaw",function(){return Lr}),n.d(i,"geoTransverseMercator",function(){return Ir}),n.d(i,"geoTransverseMercatorRaw",function(){return Er}),n.d(i,"geoRotation",function(){return ze}),n.d(i,"geoStream",function(){return vt}),n.d(i,"geoTransform",function(){return Ti});var r={};n.d(r,"normalizePoint",function(){return ho}),n.d(r,"normalizeMultiline",function(){return po}),n.d(r,"wrapAngleTo180",function(){return fo}),n.d(r,"geoToPoint",function(){return go});var o={};n.d(o,"Mercator",function(){return Bo}),n.d(o,"Miller",function(){return Wu}),n.d(o,"Eckert6",function(){return Zu}),n.d(o,"Orthographic",function(){return qu}),n.d(o,"Stereographic",function(){return Xu}),n.d(o,"Albers",function(){return Yu}),n.d(o,"AlbersUsa",function(){return Uu}),n.d(o,"NaturalEarth1",function(){return Ju}),n.d(o,"AzimuthalEqualArea",function(){return Ku}),n.d(o,"EqualEarth",function(){return Qu}),n.d(o,"Projection",function(){return io});var a={};n.d(a,"LegendDataItem",function(){return u.b}),n.d(a,"Legend",function(){return u.a}),n.d(a,"LegendSettings",function(){return u.c}),n.d(a,"HeatLegend",function(){return s.a}),n.d(a,"MapChartDataItem",function(){return Co}),n.d(a,"MapChart",function(){return Eo}),n.d(a,"MapSeriesDataItem",function(){return Tr}),n.d(a,"MapSeries",function(){return Gr}),n.d(a,"MapObject",function(){return Nr}),n.d(a,"MapPolygon",function(){return Kr}),n.d(a,"MapImage",function(){return zr}),n.d(a,"MapLine",function(){return Mo}),n.d(a,"MapLineObject",function(){return vo}),n.d(a,"MapSpline",function(){return To}),n.d(a,"MapArc",function(){return Do}),n.d(a,"Graticule",function(){return wo}),n.d(a,"MapPolygonSeriesDataItem",function(){return eo}),n.d(a,"MapPolygonSeries",function(){return no}),n.d(a,"MapLineSeriesDataItem",function(){return So}),n.d(a,"MapLineSeries",function(){return xo}),n.d(a,"MapSplineSeriesDataItem",function(){return No}),n.d(a,"MapSplineSeries",function(){return zo}),n.d(a,"MapImageSeriesDataItem",function(){return mo}),n.d(a,"MapImageSeries",function(){return yo}),n.d(a,"MapArcSeriesDataItem",function(){return Vo}),n.d(a,"MapArcSeries",function(){return Ro}),n.d(a,"GraticuleSeriesDataItem",function(){return jo}),n.d(a,"GraticuleSeries",function(){return Oo}),n.d(a,"multiPolygonToGeo",function(){return Fr}),n.d(a,"multiLineToGeo",function(){return Br}),n.d(a,"multiPointToGeo",function(){return Hr}),n.d(a,"pointToGeo",function(){return Zr}),n.d(a,"multiGeoPolygonToMultipolygon",function(){return Yr}
1),n.d(a,"getBackground",function(){return Jr}),n.d(a,"multiGeoLineToMultiLine",function(){return Xr}),n.d(a,"multiGeoToPoint",function(){return Wr}),n.d(a,"getCircle",function(){return Ur}),n.d(a,"ZoomControl",function(){return Fo}),n.d(a,"SmallMap",function(){return uo}),n.d(a,"Projection",function(){return io}),n.d(a,"projections",function(){return o}),n.d(a,"geo",function(){return r}),n.d(a,"d3geo",function(){return i});var u=n("uWmK"),s=n("2OXf"),c=n("m4/l"),l=n("2I/e"),h=n("hD5A"),p=n("MIZb"),f=n("aM7D"),d=n("aCit"),g=n("Mtpk"),v=n("Gg2j");function m(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function y(t){var e,n,i;function r(t,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(r<o){if(0!==e(i,i))return o;do{var a=r+o>>>1;n(t[a],i)<0?r=a+1:o=a}while(r<o)}return r}return 2!==t.length?(e=m,n=function(e,n){return m(t(e),n)},i=function(e,n){return t(e)-n}):(e=t===m||t===function(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}?t:b,n=t,i=t),{left:r,center:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=r(t,e,n,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length)-1);return o>n&&i(t[o-1],e)>-i(t[o],e)?o-1:o},right:function(t,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length;if(r<o){if(0!==e(i,i))return o;do{var a=r+o>>>1;n(t[a],i)<=0?r=a+1:o=a}while(r<o)}return r}}}function b(){return 0}function P(t){return null===t?NaN:+t}var _=y(m);_.right,_.left,y(P).center;M(w),M(function(t){var e=w(t);return function(t,n,i,r,o){e(t,n,(i<<=2)+0,(r<<=2)+0,o<<=2),e(t,n,i+1,r+1,o),e(t,n,i+2,r+2,o),e(t,n,i+3,r+3,o)}});function M(t){return function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n;if(!((n=+n)>=0))throw new RangeError("invalid rx");if(!((i=+i)>=0))throw new RangeError("invalid ry");var r=e.data,o=e.width,a=e.height;if(!((o=Math.floor(o))>=0))throw new RangeError("invalid width");
1if(!((a=Math.floor(void 0!==a?a:r.length/o))>=0))throw new RangeError("invalid height");if(!o||!a||!n&&!i)return e;var u=n&&t(n),s=i&&t(i),c=r.slice();return u&&s?(S(u,c,r,o,a),S(u,r,c,o,a),S(u,c,r,o,a),x(s,r,c,o,a),x(s,c,r,o,a),x(s,r,c,o,a)):u?(S(u,r,c,o,a),S(u,c,r,o,a),S(u,r,c,o,a)):s&&(x(s,r,c,o,a),x(s,c,r,o,a),x(s,r,c,o,a)),e}}function S(t,e,n,i,r){for(var o=0,a=i*r;o<a;)t(e,n,o,o+=i,1)}function x(t,e,n,i,r){for(var o=0,a=i*r;o<i;++o)t(e,n,o,o+a,i)}function w(t){var e=Math.floor(t);if(e===t)return function(t){var e=2*t+1;return function(n,i,r,o,a){if((o-=a)>=r){for(var u=t*i[r],s=a*t,c=r,l=r+s;c<l;c+=a)u+=i[Math.min(o,c)];for(var h=r,p=o;h<=p;h+=a)u+=i[Math.min(o,h+s)],n[h]=u/e,u-=i[Math.max(r,h-s)]}}}(t);var n=t-e,i=2*t+1;return function(t,r,o,a,u){if((a-=u)>=o){for(var s=e*r[o],c=u*e,l=c+u,h=o,p=o+c;h<p;h+=u)s+=r[Math.min(a,h)];for(var f=o,d=a;f<=d;f+=u)s+=r[Math.min(a,f+c)],t[f]=(s+n*(r[Math.max(o,f-l)]+r[Math.min(a,f+l)]))/i,s-=r[Math.max(o,f-c)]}}}function j(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var O=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._partials=new Float64Array(32),this._n=0}return function(t,e,n){e&&j(t.prototype,e),n&&j(t,n)}(t,[{key:"add",value:function(t){for(var e=this._partials,n=0,i=0;i<this._n&&i<32;i++){var r=e[i],o=t+r,a=Math.abs(t)<Math.abs(r)?t-(o-r):r-(o-t);a&&(e[n++]=a),t=o}return e[n]=t,this._n=n+1,this}},{key:"valueOf",value:function(){var t,e,n,i=this._partials,r=this._n,o=0;if(r>0){for(o=i[--r];r>0&&(t=o,!(n=(e=i[--r])-((o=t+e)-t))););r>0&&(n<0&&i[r-1]<0||n>0&&i[r-1]>0)&&(e=2*n)==(t=o+e)-o&&(o=t)}return o}}]),t}();var L=Array.prototype;L.slice,L.map;Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var C=regeneratorRuntime.mark(T);function E(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return I(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function T(t){var e,n,i;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:e=E(t),r.prev=1,e.s();case 3:if((n=e.n()).done){r.next=8;break}return i=n.value,r.delegateYield(i,"t0",6);case 6:r.next=3;break;case 8:r.next=13;break;case 10:r.prev=10,r.t1=r.catch(1),e.e(r.t1);case 13:return r.prev=13,e.f(),r.finish(13);case 16:case"end":return r.stop()}},C,null,[[1,10,13,16]])}function G(t){return Array.from(T(t))}function D(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(r);++i<r;)o[i]=t+i*n;return o}Math.random;var N=1e-6,z=1e-12,V=Math.PI,R=V/2,A=V/4,k=2*V,F=180/V,B=V/180,H=Math.abs,W=Math.atan,Z=Math.atan2,q=Math.cos,X=Math.ceil,Y=Math.exp,U=(Math.floor,Math.hypot),J=Math.log,K=Math.pow,Q=Math.sin,$=Math.sign||function(t){return t>0?1:t<0?-1:0},tt=Math.sqrt,et=Math.tan;function nt(t){return t>1?0:t<-1?V:Math.acos(t)}function it(t){return t>1?R:t<-1?-R:Math.asin(t)}function rt(t){return(t=Q(t/2))*t}function ot(){}function at(t,e){t&&st.hasOwnProperty(t.type)&&st[t.type](t,e)}var ut={Feature:function(t,e){at(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,r=n.length;++i<r;)at(n[i].geometry,e)}},st={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)t=n[i],e.point(t[0],t[1],t[2])},LineString:function(t,e){ct(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)ct(n[i],e,0)},Polygon:function(t,e){lt(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)lt(n[i],e)},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,r=n.length;++i<r;)at(n[i],e)}};function ct(t,e,n){var i,r=-1,o=t.length-n;for(e.lineStart();++r<o;)i=t[r],e.point(i[0],i[1],i[2]);e.lineEnd()}function lt(t,e){var n=-1,i=t.length;for(e.polygonStart();++n<i;)ct(t[n],e,1);e.polygonEnd()}var ht,pt,ft,dt,gt,vt=function(t,e){t&&ut.hasOwnProperty(t.type)?ut[t.type](t,e):at(t,e)},mt=new O,yt=new O,bt={point:ot,lineStart:ot,lineEnd:ot,polygonStart:function(){mt=new O,bt.lineStart=Pt,bt.lineEnd=_t},polygonEnd:function(){var t=+mt;yt.add(t<0?k+t:t),this.lineStart=this.lineEnd=this.point=ot},sphere:function(){yt.add(k)}};function Pt(){bt.point=Mt}function _t(){St(ht,pt)}function Mt(t,e){bt.point=St,ht=t,pt=e,ft=t*=B,dt=q(e=(e*=B)/2+A),gt=Q(e)}function St(t,e){e=(e*=B)/2+A;var n=(t*=B)-ft,i=n>=0?1:-1,r=i*n,o=q(e),a=Q(e),u=gt*a,s=dt*o+u*q(r),c=u*i*Q(r);mt.add(Z(c,s)),ft=t,dt=o,gt=a}var xt,wt,jt,Ot,Lt,Ct,Et,It,Tt,Gt,Dt,Nt=function(t){return yt=new O,vt(t,bt),2*yt};
vendor: 5,786 bytes, line 1
1function zt(t){return[Z(t[1],t[0]),it(t[2])]}function Vt(t){var e=t[0],n=t[1],i=q(n);return[i*q(e),i*Q(e),Q(n)]}function Rt(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function At(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function kt(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Ft(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Bt(t){var e=tt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var Ht={point:Wt,lineStart:qt,lineEnd:Xt,polygonStart:function(){Ht.point=Yt,Ht.lineStart=Ut,Ht.lineEnd=Jt,Tt=new O,bt.polygonStart()},polygonEnd:function(){bt.polygonEnd(),Ht.point=Wt,Ht.lineStart=qt,Ht.lineEnd=Xt,mt<0?(xt=-(jt=180),wt=-(Ot=90)):Tt>N?Ot=90:Tt<-N&&(wt=-90),Dt[0]=xt,Dt[1]=jt},sphere:function(){xt=-(jt=180),wt=-(Ot=90)}};function Wt(t,e){Gt.push(Dt=[xt=t,jt=t]),e<wt&&(wt=e),e>Ot&&(Ot=e)}function Zt(t,e){var n=Vt([t*B,e*B]);if(It){var i=At(It,n),r=At([i[1],-i[0],0],i);Bt(r),r=zt(r);var o,a=t-Lt,u=a>0?1:-1,s=r[0]*F*u,c=H(a)>180;c^(u*Lt<s&&s<u*t)?(o=r[1]*F)>Ot&&(Ot=o):c^(u*Lt<(s=(s+360)%360-180)&&s<u*t)?(o=-r[1]*F)<wt&&(wt=o):(e<wt&&(wt=e),e>Ot&&(Ot=e)),c?t<Lt?Kt(xt,t)>Kt(xt,jt)&&(jt=t):Kt(t,jt)>Kt(xt,jt)&&(xt=t):jt>=xt?(t<xt&&(xt=t),t>jt&&(jt=t)):t>Lt?Kt(xt,t)>Kt(xt,jt)&&(jt=t):Kt(t,jt)>Kt(xt,jt)&&(xt=t)}else Gt.push(Dt=[xt=t,jt=t]);e<wt&&(wt=e),e>Ot&&(Ot=e),It=n,Lt=t}function qt(){Ht.point=Zt}function Xt(){Dt[0]=xt,Dt[1]=jt,Ht.point=Wt,It=null}function Yt(t,e){if(It){var n=t-Lt;Tt.add(H(n)>180?n+(n>0?360:-360):n)}else Ct=t,Et=e;bt.point(t,e),Zt(t,e)}function Ut(){bt.lineStart()}function Jt(){Yt(Ct,Et),bt.lineEnd(),H(Tt)>N&&(xt=-(jt=180)),Dt[0]=xt,Dt[1]=jt,It=null}function Kt(t,e){return(e-=t)<0?e+360:e}function Qt(t,e){return t[0]-e[0]}function $t(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var te,ee,ne,ie,re,oe,ae,ue,se,ce,le,he,pe,fe,de,ge,ve=function(t){var e,n,i,r,o,a,u;if(Ot=jt=-(xt=wt=1/0),Gt=[],vt(t,Ht),n=Gt.length){for(Gt.sort(Qt),e=1,o=[i=Gt[0]];e<n;++e)$t(i,(r=Gt[e])[0])||$t(i,r[1])?(Kt(i[0],r[1])>Kt(i[0],i[1])&&(i[1]=r[1]),Kt(r[0],i[1])>Kt(i[0],i[1])&&(i[0]=r[0])):o.push(i=r);for(a=-1/0,e=0,i=o[n=o.length-1];e<=n;i=r,++e)r=o[e],(u=Kt(i[1],r[0]))>a&&(a=u,xt=r[0],jt=i[1])}return Gt=Dt=null,xt===1/0||wt===1/0?[[NaN,NaN],[NaN,NaN]]:[[xt,wt],[jt,Ot]]},me={sphere:ot,point:ye,lineStart:Pe,lineEnd:Se,polygonStart:function(){me.lineStart=xe,me.lineEnd=we},polygonEnd:function(){me.lineStart=Pe,me.lineEnd=Se}};function ye(t,e){t*=B;var n=q(e*=B);be(n*q(t),n*Q(t),Q(e))}function be(t,e,n){ne+=(t-ne)/++te,ie+=(e-ie)/te,re+=(n-re)/te}function Pe(){me.point=_e}function _e(t,e){t*=B;var n=q(e*=B);fe=n*q(t),de=n*Q(t),ge=Q(e),me.point=Me,be(fe,de,ge)}function Me(t,e){t*=B;var n=q(e*=B),i=n*q(t),r=n*Q(t),o=Q(e),a=Z(tt((a=de*o-ge*r)*a+(a=ge*i-fe*o)*a+(a=fe*r-de*i)*a),fe*i+de*r+ge*o);ee+=a,oe+=a*(fe+(fe=i)),ae+=a*(de+(de=r)),ue+=a*(ge+(ge=o)),be(fe,de,ge)}function Se(){me.point=ye}function xe(){me.point=je}function we(){Oe(he,pe),me.point=ye}function je(t,e){he=t,pe=e,t*=B,e*=B,me.point=Oe;var n=q(e);fe=n*q(t),de=n*Q(t),ge=Q(e),be(fe,de,ge)}function Oe(t,e){t*=B;var n=q(e*=B),i=n*q(t),r=n*Q(t),o=Q(e),a=de*o-ge*r,u=ge*i-fe*o,s=fe*r-de*i,c=U(a,u,s),l=it(c),h=c&&-l/c;se.add(h*a),ce.add(h*u),le.add(h*s),ee+=l,oe+=l*(fe+(fe=i)),ae+=l*(de+(de=r)),ue+=l*(ge+(ge=o)),be(fe,de,ge)}var Le=function(t){te=ee=ne=ie=re=oe=ae=ue=0,se=new O,ce=new O,le=new O,vt(t,me);var e=+se,n=+ce,i=+le,r=U(e,n,i);return r<z&&(e=oe,n=ae,i=ue,ee<N&&(e=ne,n=ie,i=re),(r=U(e,n,i))<z)?[NaN,NaN]:[Z(n,e)*F,it(i/r)*F]},Ce=function(t){return function(){return t}},Ee=function(t,e){function n(n,i){return n=t(n,i),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,i){return(n=e.invert(n,i))&&t.invert(n[0],n[1])}),n};function Ie(t,e){return[H(t)>V?t+Math.round(-t/k)*k:t,e]}function Te(t,e,n){return(t%=k)?e||n?Ee(De(t),Ne(e,n)):De(t):e||n?Ne(e,n):Ie}function Ge(t){return function(e,n){return[(e+=t)>V?e-k:e<-V?e+k:e,n]}}function De(t){var e=Ge(t);return e.invert=Ge(-t),e}function Ne(t,e){var n=q(t),i=Q(t),r=q(e),o=Q(e);function a(t,e){var a=q(e),u=q(t)*a,s=Q(t)*a,c=Q(e),l=c*n+u*i;return[Z(s*r-l*o,u*n-c*i),it(l*r+s*o)]}return a.invert=function(t,e){var a=q(e),u=q(t)*a,s=Q(t)*a,c=Q(e),l=c*r-s*o;return[Z(s*r+c*o,u*n+l*i),it(l*n-u*i)]},a}Ie.invert=Ie;var ze=function(t){function e(e){return(e=t(e[0]*B,e[1]*B))[0]*=F,e[1]*=F,e}return t=Te(t[0]*B,t[1]*B,t.length>2?t[2]*B:0),e.invert=function(e){return(e=t.invert(e[0]*B,e[1]*B))[0]*=F,e[1]*=F,e},e};function Ve(t,e,n,i,r,o){if(n){var a=q(e),u=Q(e),s=i*n;null==r?(r=e+i*k,o=e-s/2):(r=Re(a,r),o=Re(a,o),(i>0?r<o:r>o)&&(r+=i*k));for(var c,l=r;i>0?l>o:l<o;l-=s)c=zt([a,-u*q(l),-u*Q(l)]),t.point(c[0],c[1])}}function Re(t,e){(e=Vt(e))[0]-=t,Bt(e);var n=nt(-e[1]);return((-e[2]<0?-n:n)+k-N)%k}var Ae=function(){var t,e,n=Ce([0,0]),i=Ce(90),r=Ce(6),o={point:function(n,i){t.push(n=e(n,i)),n[0]*=F,n[1]*=F}};function a(){var a=n.apply(this,arguments),u=i.apply(this,arguments)*B,s=r.apply(this,arguments)*B;return t=[],e=Te(-a[0]*B,-a[1]*B,0).invert,Ve(o,u,s,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return a.center=function(t){return arguments.length?(n="function"==typeof t?t:Ce([+t[0],+t[1]]),a):n},a.radius=function(t){return arguments.length?(i="function"==typeof t?t:Ce(+t),a):i},a.precision=function(t){return arguments.length?(r="function"==typeof t?t:Ce(+t),a):r},a},ke=function(){var t,e=[];return{point:function(e,n,i){t.push([e,n,i])},lineStart:function(){e.push(t=[])},lineEnd:ot,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},Fe=function(t,e){return H(t[0]-e[0])<N&&H(t[1]-e[1])<N};function Be(t,e,n,i){this.x=t,this.z=e,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}var He=function(t,e,n,i,r){var o,a,u=[],s=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,i=t[0],a=t[e];
vendor: 11,511 bytes, line 1
1if(Fe(i,a)){if(!i[2]&&!a[2]){for(r.lineStart(),o=0;o<e;++o)r.point((i=t[o])[0],i[1]);return void r.lineEnd()}a[0]+=2*N}u.push(n=new Be(i,t,null,!0)),s.push(n.o=new Be(i,null,n,!1)),u.push(n=new Be(a,t,null,!1)),s.push(n.o=new Be(a,null,n,!0))}}),u.length){for(s.sort(e),We(u),We(s),o=0,a=s.length;o<a;++o)s[o].e=n=!n;for(var c,l,h=u[0];;){for(var p=h,f=!0;p.v;)if((p=p.n)===h)return;c=p.z,r.lineStart();do{if(p.v=p.o.v=!0,p.e){if(f)for(o=0,a=c.length;o<a;++o)r.point((l=c[o])[0],l[1]);else i(p.x,p.n.x,1,r);p=p.n}else{if(f)for(c=p.p.z,o=c.length-1;o>=0;--o)r.point((l=c[o])[0],l[1]);else i(p.x,p.p.x,-1,r);p=p.p}c=(p=p.o).z,f=!f}while(!p.v);r.lineEnd()}}};function We(t){if(e=t.length){for(var e,n,i=0,r=t[0];++i<e;)r.n=n=t[i],n.p=r,r=n;r.n=n=t[0],n.p=r}}function Ze(t){return H(t[0])<=V?t[0]:$(t[0])*((H(t[0])+V)%k-V)}var qe=function(t,e){var n=Ze(e),i=e[1],r=Q(i),o=[Q(n),-q(n),0],a=0,u=0,s=new O;1===r?i=R+N:-1===r&&(i=-R-N);for(var c=0,l=t.length;c<l;++c)if(p=(h=t[c]).length)for(var h,p,f=h[p-1],d=Ze(f),g=f[1]/2+A,v=Q(g),m=q(g),y=0;y<p;++y,d=P,v=M,m=S,f=b){var b=h[y],P=Ze(b),_=b[1]/2+A,M=Q(_),S=q(_),x=P-d,w=x>=0?1:-1,j=w*x,L=j>V,C=v*M;if(s.add(Z(C*w*Q(j),m*S+C*q(j))),a+=L?x+w*k:x,L^d>=n^P>=n){var E=At(Vt(f),Vt(b));Bt(E);var I=At(o,E);Bt(I);var T=(L^x>=0?-1:1)*it(I[2]);(i>T||i===T&&(E[0]||E[1]))&&(u+=L^x>=0?1:-1)}}return(a<-N||a<N&&s<-z)^1&u},Xe=function(t,e,n,i){return function(r){var o,a,u,s=e(r),c=ke(),l=e(c),h=!1,p={point:f,lineStart:g,lineEnd:v,polygonStart:function(){p.point=m,p.lineStart=y,p.lineEnd=b,a=[],o=[]},polygonEnd:function(){p.point=f,p.lineStart=g,p.lineEnd=v,a=G(a);var t=qe(o,i);a.length?(h||(r.polygonStart(),h=!0),He(a,Ue,t,n,r)):t&&(h||(r.polygonStart(),h=!0),r.lineStart(),n(null,null,1,r),r.lineEnd()),h&&(r.polygonEnd(),h=!1),a=o=null},sphere:function(){r.polygonStart(),r.lineStart(),n(null,null,1,r),r.lineEnd(),r.polygonEnd()}};function f(e,n){t(e,n)&&r.point(e,n)}function d(t,e){s.point(t,e)}function g(){p.point=d,s.lineStart()}function v(){p.point=f,s.lineEnd()}function m(t,e){u.push([t,e]),l.point(t,e)}function y(){l.lineStart(),u=[]}function b(){m(u[0][0],u[0][1]),l.lineEnd();var t,e,n,i,s=l.clean(),p=c.result(),f=p.length;if(u.pop(),o.push(u),u=null,f)if(1&s){if((e=(n=p[0]).length-1)>0){for(h||(r.polygonStart(),h=!0),r.lineStart(),t=0;t<e;++t)r.point((i=n[t])[0],i[1]);r.lineEnd()}}else f>1&&2&s&&p.push(p.pop().concat(p.shift())),a.push(p.filter(Ye))}return p}};function Ye(t){return t.length>1}function Ue(t,e){return((t=t.x)[0]<0?t[1]-R-N:R-t[1])-((e=e.x)[0]<0?e[1]-R-N:R-e[1])}var Je=Xe(function(){return!0},function(t){var e,n=NaN,i=NaN,r=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var u=o>0?V:-V,s=H(o-n);H(s-V)<N?(t.point(n,i=(i+a)/2>0?R:-R),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(u,i),t.point(o,i),e=0):r!==u&&s>=V&&(H(n-r)<N&&(n-=r*N),H(o-u)<N&&(o-=u*N),i=function(t,e,n,i){var r,o,a=Q(t-n);return H(a)>N?W((Q(e)*(o=q(i))*Q(n)-Q(i)*(r=q(e))*Q(t))/(r*o*a)):(e+i)/2}(n,i,o,a),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(u,i),e=0),t.point(n=o,i=a),r=u},lineEnd:function(){t.lineEnd(),n=i=NaN},clean:function(){return 2-e}}},function(t,e,n,i){var r;if(null==t)r=n*R,i.point(-V,r),i.point(0,r),i.point(V,r),i.point(V,0),i.point(V,-r),i.point(0,-r),i.point(-V,-r),i.point(-V,0),i.point(-V,r);else if(H(t[0]-e[0])>N){var o=t[0]<e[0]?V:-V;r=n*o/2,i.point(-o,r),i.point(0,r),i.point(o,r)}else i.point(e[0],e[1])},[-V,-R]);var Ke=function(t){var e=q(t),n=6*B,i=e>0,r=H(e)>N;function o(t,n){return q(t)*q(n)>e}function a(t,n,i){var r=[1,0,0],o=At(Vt(t),Vt(n)),a=Rt(o,o),u=o[0],s=a-u*u;if(!s)return!i&&t;var c=e*a/s,l=-e*u/s,h=At(r,o),p=Ft(r,c);kt(p,Ft(o,l));var f=h,d=Rt(p,f),g=Rt(f,f),v=d*d-g*(Rt(p,p)-1);if(!(v<0)){var m=tt(v),y=Ft(f,(-d-m)/g);if(kt(y,p),y=zt(y),!i)return y;var b,P=t[0],_=n[0],M=t[1],S=n[1];_<P&&(b=P,P=_,_=b);var x=_-P,w=H(x-V)<N;if(!w&&S<M&&(b=M,M=S,S=b),w||x<N?w?M+S>0^y[1]<(H(y[0]-P)<N?M:S):M<=y[1]&&y[1]<=S:x>V^(P<=y[0]&&y[0]<=_)){var j=Ft(f,(-d+m)/g);return kt(j,p),[y,zt(j)]}}}function u(e,n){var r=i?t:V-t,o=0;return e<-r?o|=1:e>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}return Xe(o,function(t){var e,n,s,c,l;return{lineStart:function(){c=s=!1,l=1},point:function(h,p){var f,d=[h,p],g=o(h,p),v=i?g?0:u(h,p):g?u(h+(h<0?V:-V),p):0;if(!e&&(c=s=g)&&t.lineStart(),g!==s&&(!(f=a(e,d))||Fe(e,f)||Fe(d,f))&&(d[2]=1),g!==s)l=0,g?(t.lineStart(),f=a(d,e),t.point(f[0],f[1])):(f=a(e,d),t.point(f[0],f[1],2),t.lineEnd()),e=f;else if(r&&e&&i^g){var m;v&n||!(m=a(d,e,!0))||(l=0,i?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1],3)))}!g||e&&Fe(e,d)||t.point(d[0],d[1]),e=d,s=g,n=v},lineEnd:function(){s&&t.lineEnd(),e=null},clean:function(){return l|(c&&s)<<1}}},function(e,i,r,o){Ve(o,t,n,r,e,i)},i?[0,-t]:[-V,t-V])},Qe=function(t,e,n,i,r,o){var a,u=t[0],s=t[1],c=0,l=1,h=e[0]-u,p=e[1]-s;if(a=n-u,h||!(a>0)){if(a/=h,h<0){if(a<c)return;a<l&&(l=a)}else if(h>0){if(a>l)return;a>c&&(c=a)}if(a=r-u,h||!(a<0)){if(a/=h,h<0){if(a>l)return;a>c&&(c=a)}else if(h>0){if(a<c)return;a<l&&(l=a)}if(a=i-s,p||!(a>0)){if(a/=p,p<0){if(a<c)return;a<l&&(l=a)}else if(p>0){if(a>l)return;a>c&&(c=a)}if(a=o-s,p||!(a<0)){if(a/=p,p<0){if(a>l)return;a>c&&(c=a)}else if(p>0){if(a<c)return;a<l&&(l=a)}return c>0&&(t[0]=u+c*h,t[1]=s+c*p),l<1&&(e[0]=u+l*h,e[1]=s+l*p),!0}}}}},$e=1e9,tn=-$e;function en(t,e,n,i){function r(r,o){return t<=r&&r<=n&&e<=o&&o<=i}function o(r,o,u,c){var l=0,h=0;if(null==r||(l=a(r,u))!==(h=a(o,u))||s(r,o)<0^u>0)do{c.point(0===l||3===l?t:n,l>1?i:e)}while((l=(l+u+4)%4)!==h);else c.point(o[0],o[1])}function a(i,r){return H(i[0]-t)<N?r>0?0:3:H(i[0]-n)<N?r>0?2:1:H(i[1]-e)<N?r>0?1:0:r>0?3:2}function u(t,e){return s(t.x,e.x)}function s(t,e){var n=a(t,1),i=a(e,1);return n!==i?n-i:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var s,c,l,h,p,f,d,g,v,m,y,b=a,P=ke(),_={point:M,lineStart:function(){_.point=S,c&&c.push(l=[]);m=!0,v=!1,d=g=NaN},lineEnd:function(){s&&(S(h,p),f&&v&&P.rejoin(),s.push(P.result()));_.point=M,v&&b.lineEnd()},polygonStart:function(){b=P,s=[],c=[],y=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,r=c.length;n<r;++n)for(var o,a,u=c[n],s=1,l=u.length,h=u[0],p=h[0],f=h[1];s<l;++s)o=p,a=f,h=u[s],p=h[0],f=h[1],a<=i?f>i&&(p-o)*(i-a)>(f-a)*(t-o)&&++e:f<=i&&(p-o)*(i-a)<(f-a)*(t-o)&&--e;return e}(),n=y&&e,r=(s=G(s)).length;(n||r)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),r&&He(s,u,e,o,a),a.polygonEnd());b=a,s=c=l=null}};function M(t,e){r(t,e)&&b.point(t,e)}function S(o,a){var u=r(o,a);if(c&&l.push([o,a]),m)h=o,p=a,f=u,m=!1,u&&(b.lineStart(),b.point(o,a));else if(u&&v)b.point(o,a);else{var s=[d=Math.max(tn,Math.min($e,d)),g=Math.max(tn,Math.min($e,g))],P=[o=Math.max(tn,Math.min($e,o)),a=Math.max(tn,Math.min($e,a))];Qe(s,P,t,e,n,i)?(v||(b.lineStart(),b.point(s[0],s[1])),b.point(P[0],P[1]),u||b.lineEnd(),y=!1):u&&(b.lineStart(),b.point(o,a),y=!1)}d=o,g=a,v=u}return _}}var nn,rn,on,an,un=function(){var t,e,n,i=0,r=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=en(i,r,o,a)(e=n)},extent:function(u){return arguments.length?(i=+u[0][0],r=+u[0][1],o=+u[1][0],a=+u[1][1],t=e=null,n):[[i,r],[o,a]]}}},sn={sphere:ot,point:ot,lineStart:function(){sn.point=ln,sn.lineEnd=cn},lineEnd:ot,polygonStart:ot,polygonEnd:ot};function cn(){sn.point=sn.lineEnd=ot}function ln(t,e){rn=t*=B,on=Q(e*=B),an=q(e),sn.point=hn}function hn(t,e){t*=B;var n=Q(e*=B),i=q(e),r=H(t-rn),o=q(r),a=i*Q(r),u=an*n-on*i*o,s=on*n+an*i*o;nn.add(Z(tt(a*a+u*u),s)),rn=t,on=n,an=i}var pn=function(t){return nn=new O,vt(t,sn),+nn},fn=[null,null],dn={type:"LineString",coordinates:fn},gn=function(t,e){return fn[0]=t,fn[1]=e,pn(dn)},vn={Feature:function(t,e){return yn(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,r=n.length;++i<r;)if(yn(n[i].geometry,e))return!0;return!1}},mn={Sphere:function(){return!0},Point:function(t,e){return bn(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)if(bn(n[i],e))return!0;return!1},LineString:function(t,e){return Pn(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)if(Pn(n[i],e))return!0;return!1},Polygon:function(t,e){return _n(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)if(_n(n[i],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,r=n.length;++i<r;)if(yn(n[i],e))return!0;return!1}};function yn(t,e){return!(!t||!mn.hasOwnProperty(t.type))&&mn[t.type](t,e)}function bn(t,e){return 0===gn(t,e)}function Pn(t,e){for(var n,i,r,o=0,a=t.length;o<a;o++){if(0===(i=gn(t[o],e)))return!0;if(o>0&&(r=gn(t[o],t[o-1]))>0&&n<=r&&i<=r&&(n+i-r)*(1-Math.pow((n-i)/r,2))<z*r)return!0;n=i}return!1}function _n(t,e){return!!qe(t.map(Mn),Sn(e))}function Mn(t){return(t=t.map(Sn)).pop(),t}function Sn(t){return[t[0]*B,t[1]*B]}var xn=function(t,e){return(t&&vn.hasOwnProperty(t.type)?vn[t.type]:yn)(t,e)};function wn(t,e,n){var i=D(t,e-N,n).concat(e);return function(t){return i.map(function(e){return[t,e]})}}function jn(t,e,n){var i=D(t,e-N,n).concat(e);return function(t){return i.map(function(e){return[e,t]})}}function On(){var t,e,n,i,r,o,a,u,s,c,l,h,p=10,f=p,d=90,g=360,v=2.5;function m(){return{type:"MultiLineString",coordinates:y()}}function y(){return D(X(i/d)*d,n,d).map(l).concat(D(X(u/g)*g,a,g).map(h)).concat(D(X(e/p)*p,t,p).filter(function(t){return H(t%d)>N}).map(s)).concat(D(X(o/f)*f,r,f).filter(function(t){return H(t%g)>N}).map(c))}return m.lines=function(){return y().map(function(t){return{type:"LineString",coordinates:t}})},m.outline=function(){return{type:"Polygon",coordinates:[l(i).concat(h(a).slice(1),l(n).reverse().slice(1),h(u).reverse().slice(1))]}},m.extent=function(t){return arguments.length?m.extentMajor(t).extentMinor(t):m.extentMinor()},m.extentMajor=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],u=+t[0][1],a=+t[1][1],i>n&&(t=i,i=n,n=t),u>a&&(t=u,u=a,a=t),m.precision(v)):[[i,u],[n,a]]},m.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],o=+n[0][1],r=+n[1][1],e>t&&(n=e,e=t,t=n),o>r&&(n=o,o=r,r=n),m.precision(v)):[[e,o],[t,r]]},m.step=function(t){return arguments.length?m.stepMajor(t).stepMinor(t):m.stepMinor()},m.stepMajor=function(t){return arguments.length?(d=+t[0],g=+t[1],m):[d,g]},m.stepMinor=function(t){return arguments.length?(p=+t[0],f=+t[1],m):[p,f]},m.precision=function(p){return arguments.length?(v=+p,s=wn(o,r,90),c=jn(e,t,v),l=wn(u,a,90),h=jn(i,n,v),m):v},m.extentMajor([[-180,-90+N],[180,90-N]]).extentMinor([[-180,-80-N],[180,80+N]])}function Ln(){return On()()}var Cn,En,In,Tn,Gn=function(t,e){var n=t[0]*B,i=t[1]*B,r=e[0]*B,o=e[1]*B,a=q(i),u=Q(i),s=q(o),c=Q(o),l=a*q(n),h=a*Q(n),p=s*q(r),f=s*Q(r),d=2*it(tt(rt(o-i)+a*s*rt(r-n))),g=Q(d),v=d?function(t){var e=Q(t*=d)/g,n=Q(d-t)/g,i=n*l+e*p,r=n*h+e*f,o=n*u+e*c;return[Z(r,i)*F,Z(o,tt(i*i+r*r))*F]}:function(){return[n*F,i*F]};return v.distance=d,v},Dn=function(t){return t},Nn=new O,zn=new O,Vn={point:ot,lineStart:ot,lineEnd:ot,polygonStart:function(){Vn.lineStart=Rn,Vn.lineEnd=Fn},polygonEnd:function(){Vn.lineStart=Vn.lineEnd=Vn.point=ot,Nn.add(H(zn)),zn=new O},result:function(){var t=Nn/2;return Nn=new O,t}};function Rn(){Vn.point=An}function An(t,e){Vn.point=kn,Cn=In=t,En=Tn=e}function kn(t,e){zn.add(Tn*t-In*e),In=t,Tn=e}function Fn(){kn(Cn,En)}var Bn=Vn,Hn=1/0,Wn=Hn,Zn=-Hn,qn=Zn;var Xn,Yn,Un,Jn,Kn={point:function(t,e){t<Hn&&(Hn=t);t>Zn&&(Zn=t);e<Wn&&(Wn=e);e>qn&&(qn=e)}
vendor: 4,553 bytes, line 1
1,lineStart:ot,lineEnd:ot,polygonStart:ot,polygonEnd:ot,result:function(){var t=[[Hn,Wn],[Zn,qn]];return Zn=qn=-(Wn=Hn=1/0),t}},Qn=0,$n=0,ti=0,ei=0,ni=0,ii=0,ri=0,oi=0,ai=0,ui={point:si,lineStart:ci,lineEnd:pi,polygonStart:function(){ui.lineStart=fi,ui.lineEnd=di},polygonEnd:function(){ui.point=si,ui.lineStart=ci,ui.lineEnd=pi},result:function(){var t=ai?[ri/ai,oi/ai]:ii?[ei/ii,ni/ii]:ti?[Qn/ti,$n/ti]:[NaN,NaN];return Qn=$n=ti=ei=ni=ii=ri=oi=ai=0,t}};function si(t,e){Qn+=t,$n+=e,++ti}function ci(){ui.point=li}function li(t,e){ui.point=hi,si(Un=t,Jn=e)}function hi(t,e){var n=t-Un,i=e-Jn,r=tt(n*n+i*i);ei+=r*(Un+t)/2,ni+=r*(Jn+e)/2,ii+=r,si(Un=t,Jn=e)}function pi(){ui.point=si}function fi(){ui.point=gi}function di(){vi(Xn,Yn)}function gi(t,e){ui.point=vi,si(Xn=Un=t,Yn=Jn=e)}function vi(t,e){var n=t-Un,i=e-Jn,r=tt(n*n+i*i);ei+=r*(Un+t)/2,ni+=r*(Jn+e)/2,ii+=r,ri+=(r=Jn*t-Un*e)*(Un+t),oi+=r*(Jn+e),ai+=3*r,si(Un=t,Jn=e)}var mi=ui;function yi(t){this._context=t}yi.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,k)}},result:ot};var bi,Pi,_i,Mi,Si,xi=new O,wi={point:ot,lineStart:function(){wi.point=ji},lineEnd:function(){bi&&Oi(Pi,_i),wi.point=ot},polygonStart:function(){bi=!0},polygonEnd:function(){bi=null},result:function(){var t=+xi;return xi=new O,t}};function ji(t,e){wi.point=Oi,Pi=Mi=t,_i=Si=e}function Oi(t,e){Mi-=t,Si-=e,xi.add(tt(Mi*Mi+Si*Si)),Mi=t,Si=e}var Li=wi;function Ci(){this._string=[]}function Ei(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Ci.prototype={_radius:4.5,_circle:Ei(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Ei(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}};var Ii=function(t,e){var n,i,r=4.5;function o(t){return t&&("function"==typeof r&&i.pointRadius(+r.apply(this,arguments)),vt(t,n(i))),i.result()}return o.area=function(t){return vt(t,n(Bn)),Bn.result()},o.measure=function(t){return vt(t,n(Li)),Li.result()},o.bounds=function(t){return vt(t,n(Kn)),Kn.result()},o.centroid=function(t){return vt(t,n(mi)),mi.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,Dn):(t=e).stream,o):t},o.context=function(t){return arguments.length?(i=null==t?(e=null,new Ci):new yi(e=t),"function"!=typeof r&&i.pointRadius(r),o):e},o.pointRadius=function(t){return arguments.length?(r="function"==typeof t?t:(i.pointRadius(+t),+t),o):r},o.projection(t).context(e)},Ti=function(t){return{stream:Gi(t)}};function Gi(t){return function(e){var n=new Di;for(var i in t)n[i]=t[i];return n.stream=e,n}}function Di(){}function Ni(t,e,n){var i=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=i&&t.clipExtent(null),vt(n,t.stream(Kn)),e(Kn.result()),null!=i&&t.clipExtent(i),t}function zi(t,e,n){return Ni(t,function(n){var i=e[1][0]-e[0][0],r=e[1][1]-e[0][1],o=Math.min(i/(n[1][0]-n[0][0]),r/(n[1][1]-n[0][1])),a=+e[0][0]+(i-o*(n[1][0]+n[0][0]))/2,u=+e[0][1]+(r-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,u])},n)}function Vi(t,e,n){return zi(t,[[0,0],e],n)}function Ri(t,e,n){return Ni(t,function(n){var i=+e,r=i/(n[1][0]-n[0][0]),o=(i-r*(n[1][0]+n[0][0]))/2,a=-r*n[0][1];t.scale(150*r).translate([o,a])},n)}function Ai(t,e,n){return Ni(t,function(n){var i=+e,r=i/(n[1][1]-n[0][1]),o=-r*n[0][0],a=(i-r*(n[1][1]+n[0][1]))/2;t.scale(150*r).translate([o,a])},n)}Di.prototype={constructor:Di,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};
vendor: 5,497 bytes, line 1
1var ki=16,Fi=q(30*B),Bi=function(t,e){return+e?function(t,e){function n(i,r,o,a,u,s,c,l,h,p,f,d,g,v){var m=c-i,y=l-r,b=m*m+y*y;if(b>4*e&&g--){var P=a+p,_=u+f,M=s+d,S=tt(P*P+_*_+M*M),x=it(M/=S),w=H(H(M)-1)<N||H(o-h)<N?(o+h)/2:Z(_,P),j=t(w,x),O=j[0],L=j[1],C=O-i,E=L-r,I=y*C-m*E;(I*I/b>e||H((m*C+y*E)/b-.5)>.3||a*p+u*f+s*d<Fi)&&(n(i,r,o,a,u,s,O,L,w,P/=S,_/=S,M,g,v),v.point(O,L),n(O,L,w,P,_,M,c,l,h,p,f,d,g,v))}}return function(e){var i,r,o,a,u,s,c,l,h,p,f,d,g={point:v,lineStart:m,lineEnd:b,polygonStart:function(){e.polygonStart(),g.lineStart=P},polygonEnd:function(){e.polygonEnd(),g.lineStart=m}};function v(n,i){n=t(n,i),e.point(n[0],n[1])}function m(){l=NaN,g.point=y,e.lineStart()}function y(i,r){var o=Vt([i,r]),a=t(i,r);n(l,h,c,p,f,d,l=a[0],h=a[1],c=i,p=o[0],f=o[1],d=o[2],ki,e),e.point(l,h)}function b(){g.point=v,e.lineEnd()}function P(){m(),g.point=_,g.lineEnd=M}function _(t,e){y(i=t,e),r=l,o=h,a=p,u=f,s=d,g.point=y}function M(){n(l,h,c,p,f,d,r,o,i,a,u,s,ki,e),g.lineEnd=b,b()}return g}}(t,e):function(t){return Gi({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)};var Hi=Gi({point:function(t,e){this.stream.point(t*B,e*B)}});function Wi(t,e,n,i,r,o){if(!o)return function(t,e,n,i,r){function o(o,a){return[e+t*(o*=i),n-t*(a*=r)]}return o.invert=function(o,a){return[(o-e)/t*i,(n-a)/t*r]},o}(t,e,n,i,r);var a=q(o),u=Q(o),s=a*t,c=u*t,l=a/t,h=u/t,p=(u*n-a*e)/t,f=(u*e+a*n)/t;function d(t,o){return[s*(t*=i)-c*(o*=r)+e,n-c*t-s*o]}return d.invert=function(t,e){return[i*(l*t-h*e+p),r*(f-h*t-l*e)]},d}function Zi(t){return qi(function(){return t})()}function qi(t){var e,n,i,r,o,a,u,s,c,l,h=150,p=480,f=250,d=0,g=0,v=0,m=0,y=0,b=0,P=1,_=1,M=null,S=Je,x=null,w=Dn,j=.5;function O(t){return s(t[0]*B,t[1]*B)}function L(t){return(t=s.invert(t[0],t[1]))&&[t[0]*F,t[1]*F]}function C(){var t=Wi(h,0,0,P,_,b).apply(null,e(d,g)),i=Wi(h,p-t[0],f-t[1],P,_,b);return n=Te(v,m,y),u=Ee(e,i),s=Ee(n,u),a=Bi(u,j),E()}function E(){return c=l=null,O}return O.stream=function(t){return c&&l===t?c:c=Hi(function(t){return Gi({point:function(e,n){var i=t(e,n);return this.stream.point(i[0],i[1])}})}(n)(S(a(w(l=t)))))},O.preclip=function(t){return arguments.length?(S=t,M=void 0,E()):S},O.postclip=function(t){return arguments.length?(w=t,x=i=r=o=null,E()):w},O.clipAngle=function(t){return arguments.length?(S=+t?Ke(M=t*B):(M=null,Je),E()):M*F},O.clipExtent=function(t){return arguments.length?(w=null==t?(x=i=r=o=null,Dn):en(x=+t[0][0],i=+t[0][1],r=+t[1][0],o=+t[1][1]),E()):null==x?null:[[x,i],[r,o]]},O.scale=function(t){return arguments.length?(h=+t,C()):h},O.translate=function(t){return arguments.length?(p=+t[0],f=+t[1],C()):[p,f]},O.center=function(t){return arguments.length?(d=t[0]%360*B,g=t[1]%360*B,C()):[d*F,g*F]},O.rotate=function(t){return arguments.length?(v=t[0]%360*B,m=t[1]%360*B,y=t.length>2?t[2]%360*B:0,C()):[v*F,m*F,y*F]},O.angle=function(t){return arguments.length?(b=t%360*B,C()):b*F},O.reflectX=function(t){return arguments.length?(P=t?-1:1,C()):P<0},O.reflectY=function(t){return arguments.length?(_=t?-1:1,C()):_<0},O.precision=function(t){return arguments.length?(a=Bi(u,j=t*t),E()):tt(j)},O.fitExtent=function(t,e){return zi(O,t,e)},O.fitSize=function(t,e){return Vi(O,t,e)},O.fitWidth=function(t,e){return Ri(O,t,e)},O.fitHeight=function(t,e){return Ai(O,t,e)},function(){return e=t.apply(this,arguments),O.invert=e.invert&&L,C()}}function Xi(t){var e=0,n=V/3,i=qi(t),r=i(e,n);return r.parallels=function(t){return arguments.length?i(e=t[0]*B,n=t[1]*B):[e*F,n*F]},r}function Yi(t,e){var n=Q(t),i=(n+Q(e))/2;if(H(i)<N)return function(t){var e=q(t);function n(t,n){return[t*e,Q(n)/e]}return n.invert=function(t,n){return[t/e,it(n*e)]},n}(t);var r=1+n*(2*i-n),o=tt(r)/i;function a(t,e){var n=tt(r-2*i*Q(e))/i;return[n*Q(t*=i),o-n*q(t)]}return a.invert=function(t,e){var n=o-e,a=Z(t,H(n))*$(n);return n*i<0&&(a-=V*$(t)*$(n)),[a/i,it((r-(t*t+n*n)*i*i)/(2*i))]},a}var Ui=function(){return Xi(Yi).scale(155.424).center([0,33.6442])},Ji=function(){return Ui().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var Ki=function(){var t,e,n,i,r,o,a=Ji(),u=Ui().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=Ui().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,e){o=[t,e]}};function l(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(i.point(e,a),o)||(r.point(e,a),o)}function h(){return t=e=null,l}return l.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?u:r>=.166&&r<.234&&i>=-.214&&i<-.115?s:a).invert(t)},l.stream=function(n){return t&&e===n?t:t=function(t){var e=t.length;return{point:function(n,i){for(var r=-1;++r<e;)t[r].point(n,i)},sphere:function(){for(var n=-1;++n<e;)t[n].sphere()},lineStart:function(){for(var n=-1;++n<e;)t[n].lineStart()},lineEnd:function(){for(var n=-1;++n<e;)t[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<e;)t[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<e;)t[n].polygonEnd()}}}([a.stream(e=n),u.stream(n),s.stream(n)])},l.precision=function(t){return arguments.length?(a.precision(t),u.precision(t),s.precision(t),h()):a.precision()},l.scale=function(t){return arguments.length?(a.scale(t),u.scale(.35*t),s.scale(t),l.translate(a.translate())):a.scale()},l.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),o=+t[0],l=+t[1];return n=a.translate(t).clipExtent([[o-.455*e,l-.238*e],[o+.455*e,l+.238*e]]).stream(c),i=u.translate([o-.307
vendor: 2,524 bytes, line 1
1*e,l+.201*e]).clipExtent([[o-.425*e+N,l+.12*e+N],[o-.214*e-N,l+.234*e-N]]).stream(c),r=s.translate([o-.205*e,l+.212*e]).clipExtent([[o-.214*e+N,l+.166*e+N],[o-.115*e-N,l+.234*e-N]]).stream(c),h()},l.fitExtent=function(t,e){return zi(l,t,e)},l.fitSize=function(t,e){return Vi(l,t,e)},l.fitWidth=function(t,e){return Ri(l,t,e)},l.fitHeight=function(t,e){return Ai(l,t,e)},l.scale(1070)};function Qi(t){return function(e,n){var i=q(e),r=q(n),o=t(i*r);return o===1/0?[2,0]:[o*r*Q(e),o*Q(n)]}}function $i(t){return function(e,n){var i=tt(e*e+n*n),r=t(i),o=Q(r),a=q(r);return[Z(e*o,i*a),it(i&&n*o/i)]}}var tr=Qi(function(t){return tt(2/(1+t))});tr.invert=$i(function(t){return 2*it(t/2)});var er=function(){return Zi(tr).scale(124.75).clipAngle(179.999)},nr=Qi(function(t){return(t=nt(t))&&t/Q(t)});nr.invert=$i(function(t){return t});var ir=function(){return Zi(nr).scale(79.4188).clipAngle(179.999)};function rr(t,e){return[t,J(et((R+e)/2))]}rr.invert=function(t,e){return[t,2*W(Y(e))-R]};var or=function(){return ar(rr).scale(961/k)};function ar(t){var e,n,i,r=Zi(t),o=r.center,a=r.scale,u=r.translate,s=r.clipExtent,c=null;function l(){var o=V*a(),u=r(ze(r.rotate()).invert([0,0]));return s(null==c?[[u[0]-o,u[1]-o],[u[0]+o,u[1]+o]]:t===rr?[[Math.max(u[0]-o,c),e],[Math.min(u[0]+o,n),i]]:[[c,Math.max(u[1]-o,e)],[n,Math.min(u[1]+o,i)]])}return r.scale=function(t){return arguments.length?(a(t),l()):a()},r.translate=function(t){return arguments.length?(u(t),l()):u()},r.center=function(t){return arguments.length?(o(t),l()):o()},r.clipExtent=function(t){return arguments.length?(null==t?c=e=n=i=null:(c=+t[0][0],e=+t[0][1],n=+t[1][0],i=+t[1][1]),l()):null==c?null:[[c,e],[n,i]]},l()}function ur(t){return et((R+t)/2)}function sr(t,e){var n=q(t),i=t===e?Q(t):J(n/q(e))/J(ur(e)/ur(t)),r=n*K(ur(t),i)/i;if(!i)return rr;function o(t,e){r>0?e<-R+N&&(e=-R+N):e>R-N&&(e=R-N);var n=r/K(ur(e),i);return[n*Q(i*t),r-n*q(i*t)]}return o.invert=function(t,e){var n=r-e,o=$(i)*tt(t*t+n*n),a=Z(t,H(n))*$(n);return n*i<0&&(a-=V*$(t)*$(n)),[a/i,2*W(K(r/o,1/i))-R]},o}var cr=function(){return Xi(sr).scale(109.5).parallels([30,30])};function lr(t,e){return[t,e]}lr.invert=lr;var hr=function(){return Zi(lr).scale(152.63)};function pr(t,e){var n=q(t),i=t===e?Q(t):(n-q(e))/(e-t),r=n/i+t;if(H(i)<N)return lr;function o(t,e){var n=r-e,o=i*t;return[n*Q(o),r-n*q(o)]}return o.invert=function(t,e){var n=r-e,o=Z(t,H(n))*$(n);return n*i<0&&(o-=V*$(t)*$(n)),[o/i,r-$(i)*tt(t*t+n*n)]},o}var fr=function(){return Xi(pr).scale(131.154).center([0,13.9389])}
1,dr=1.340264,gr=-.081106,vr=893e-6,mr=.003796,yr=tt(3)/2;function br(t,e){var n=it(yr*Q(e)),i=n*n,r=i*i*i;return[t*q(n)/(yr*(dr+3*gr*i+r*(7*vr+9*mr*i))),n*(dr+gr*i+r*(vr+mr*i))]}br.invert=function(t,e){for(var n,i=e,r=i*i,o=r*r*r,a=0;a<12&&(o=(r=(i-=n=(i*(dr+gr*r+o*(vr+mr*r))-e)/(dr+3*gr*r+o*(7*vr+9*mr*r)))*i)*r*r,!(H(n)<z));++a);return[yr*t*(dr+3*gr*r+o*(7*vr+9*mr*r))/q(i),it(Q(i)/yr)]};var Pr=function(){return Zi(br).scale(177.158)};function _r(t,e){var n=q(e),i=q(t)*n;return[n*Q(t)/i,Q(e)/i]}_r.invert=$i(W);var Mr=function(){return Zi(_r).scale(144.049).clipAngle(60)},Sr=function(){var t,e,n,i,r,o,a,u=1,s=0,c=0,l=1,h=1,p=0,f=null,d=1,g=1,v=Gi({point:function(t,e){var n=b([t,e]);this.stream.point(n[0],n[1])}}),m=Dn;function y(){return d=u*l,g=u*h,o=a=null,b}function b(n){var i=n[0]*d,r=n[1]*g;if(p){var o=r*t-i*e;i=i*t+r*e,r=o}return[i+s,r+c]}return b.invert=function(n){var i=n[0]-s,r=n[1]-c;if(p){var o=r*t+i*e;i=i*t-r*e,r=o}return[i/d,r/g]},b.stream=function(t){return o&&a===t?o:o=v(m(a=t))},b.postclip=function(t){return arguments.length?(m=t,f=n=i=r=null,y()):m},b.clipExtent=function(t){return arguments.length?(m=null==t?(f=n=i=r=null,Dn):en(f=+t[0][0],n=+t[0][1],i=+t[1][0],r=+t[1][1]),y()):null==f?null:[[f,n],[i,r]]},b.scale=function(t){return arguments.length?(u=+t,y()):u},b.translate=function(t){return arguments.length?(s=+t[0],c=+t[1],y()):[s,c]},b.angle=function(n){return arguments.length?(e=Q(p=n%360*B),t=q(p),y()):p*F},b.reflectX=function(t){return arguments.length?(l=t?-1:1,y()):l<0},b.reflectY=function(t){return arguments.length?(h=t?-1:1,y()):h<0},b.fitExtent=function(t,e){return zi(b,t,e)},b.fitSize=function(t,e){return Vi(b,t,e)},b.fitWidth=function(t,e){return Ri(b,t,e)},b.fitHeight=function(t,e){return Ai(b,t,e)},b};function xr(t,e){var n=e*e,i=n*n;return[t*(.8707-.131979*n+i*(i*(.003971*n-.001529*i)-.013791)),e*(1.007226+n*(.015085+i*(.028874*n-.044475-.005916*i)))]}xr.invert=function(t,e){var n,i=e,r=25;do{var o=i*i,a=o*o;i-=n=(i*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-e)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(H(n)>N&&--r>0);return[t/(.8707+(o=i*i)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),i]};var wr=function(){return Zi(xr).scale(175.295)};function jr(t,e){return[q(e)*Q(t),Q(e)]}jr.invert=$i(it);var Or=function(){return Zi(jr).scale(249.5).clipAngle(90+N)};function Lr(t,e){var n=q(e),i=1+q(t)*n;return[n*Q(t)/i,Q(e)/i]}Lr.invert=$i(function(t){return 2*W(t)});var Cr=function(){return Zi(Lr).scale(250).clipAngle(142)};function Er(t,e){return[J(et((R+e)/2)),-t]}Er.invert=function(t,e){return[-e,2*W(Y(t))-R]};var Ir=function(){var t=ar(Er),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)},Tr=function(t){function e(){var e=t.call(this)||this;return e.className="MapSeriesDataItem",e.values.value={},e.applyTheme(),e}return Object(c.c)(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.values.value.value},set:function(t){this.setValue("value",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomLevel",{get:function(){return this.properties.zoomLevel},set:function(t){this.setProperty("zoomLevel",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomGeoPoint",{get:function(){return this.properties.zoomGeoPoint},set:function(t){this.setProperty("zoomGeoPoint",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"east",{get:function(){return this._east},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return this._west},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return this._south},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"north",{get:function(){return this._north},enumerable:!0,configurable:!0}),e.prototype.updateExtremes=function(){var t=this.getFeature().geometry;if(t){var e=ve(t),n=e[0][0],i=e[0][1],r=e[1][1],o=e[1][0],a=!1;r!=this.north&&(this._north=v.round(r,6),a=!0),i!=this.south&&(this._south=v.round(i,6),a=!0),o!=this.east&&(this._east=v.round(o,6),a=!0),n!=this.west&&(this._west=v.round(n,6),a=!0),this._east<this._west&&(this._east=180,this._west=-180),a&&this.component.invali
1dateDataItems()}},e.prototype.getFeature=function(){return{}},e}(f.b),Gr=function(t){function e(){var e=t.call(this)||this;return e.className="MapSeries",e.isMeasured=!1,e.nonScalingStroke=!0,e.dataFields.value="value",e.ignoreBounds=!1,e.tooltip&&(e.tooltip.showInViewport=!0),e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createDataItem=function(){return new Tr},e.prototype.checkInclude=function(t,e,n){if(t){if(0==t.length)return!1;if(-1==t.indexOf(n))return!1}return!(e&&e.length>0&&-1!=e.indexOf(n))},Object.defineProperty(e.prototype,"useGeodata",{get:function(){return this.getPropertyValue("useGeodata")},set:function(t){this.setPropertyValue("useGeodata",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"include",{get:function(){return this.getPropertyValue("include")},set:function(t){this.setPropertyValue("include",t)&&this.processIncExc()},enumerable:!0,configurable:!0}),e.prototype.processIncExc=function(){this.invalidateData()},Object.defineProperty(e.prototype,"ignoreBounds",{get:function(){return this.getPropertyValue("ignoreBounds")},set:function(t){this.setPropertyValue("ignoreBounds",t)&&this.chart&&this.chart.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exclude",{get:function(){return this.getPropertyValue("exclude")},set:function(t){this.setPropertyValue("exclude",t)&&this.processIncExc()},enumerable:!0,configurable:!0}),e.prototype.handleObjectAdded=function(t){var e=t.newValue;e.parent=this,e.series=this,e.strokeWidth=e.strokeWidth},Object.defineProperty(e.prototype,"geodata",{get:function(){return this._geodata},set:function(t){if(t!=this._geodata){this._geodata=t,this.reverseGeodata&&this.chart.processReverseGeodata(this._geodata);for(var e=this.data.length-1;e>=0;e--)1==this.data[e].madeFromGeoData&&this.data.splice(e,1);this.disposeData(),this.invalidateData()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reverseGeodata",{get:function(){return this.getPropertyValue("reverseGeodata")},set:function(t){this.setPropertyValue("reverseGeodata",t)&&this._geodata&&this.chart.processReverseGeodata(this._geodata)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geodataSource",{get:function(){return this._dataSources.geodata||this.getDataSource("geodata"),this._dataSources.geodata},set:function(t){var e=this;this._dataSources.geodata&&this.removeDispose(this._dataSources.geodata),this._dataSources.geodata=t,this._dataSources.geodata.component=this,this.events.on("inited",function(){e.loadData("geodata")},void 0,!1),this.setDataSourceEvents(t,"geodata")},enumerable:!0,configurable:!0}),e.prototype.getFeatures=function(){},e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.updateExtremes()},e.prototype.updateExtremes=function(){var t,e,n,i;this.dataItems.each(function(r){(r.north>t||!g.isNumber(t))&&(t=r.north),(r.south<e||!g.isNumber(e))&&(e=r.south),(r.west<i||!g.isNumber(i))&&(i=r.west),(r.east>n||!g.isNumber(n))&&(n=r.east)}),this._mapObjects&&this._mapObjects.each(function(r){(r.north>t||!g.isNumber(t))&&(t=r.north),(r.south<e||!g.isNumber(e))&&(e=r.south),(r.west<i||!g.isNumber(i))&&(i=r.west),(r.east>n||!g.isNumber(n))&&(n=r.east)}),this.north==t&&this.east==n&&this.south==e&&this.west==i||(this._north=t,this._east=n,this._west=i,this._south=e,this.dispatch("geoBoundsChanged"),this.ignoreBounds||this.chart.updateExtremes())},Object.defineProperty(e.prototype,"north",{get:function(){return g.isNumber(this._northDefined)?this._northDefined:this._north},set:function(t){this._northDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return g.isNumber(this._southDefined)?this._southDefined:this._south},set:function(t){this._southDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return g.isNumber(this._westDefined)?this._westDefined:this._west},set:function(t){this._westDefined=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"east",{get:function(){return g.isNumber(this._eastDefined)?this._eastDefined:this._east},set:function(t){this._eastDefined=t},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(g.hasValue(e.geodata)&&g.isString(e.geodata)){var n=e.geodata;if(g.hasValue(window["am4geodata_"+e.geodata]))e.geodata=window["am4geodata_"+e.geodata];else try{e.geodata=JSON.parse(e.geodata)}catch(t){throw Error("MapChart error: Geodata `"+n+"` is not loaded or is incorrect.")}}t.prototype.processConfig.call(this,e)},e.prototype.asIs=function(e){return"geodata"==e||t.prototype.asIs.call(this,e)},e.prototype.updateTooltipBounds=function(){this.tooltip&&this.topParent&&this.tooltip.setBounds({x:10,y:10,width:this.topParent.maxWidth-20,height:this.topParent.maxHeight-20})},e}(f.a);d.c.registeredClasses.MapSeries=Gr,d.c.registeredClasses.MapSeriesDataItem=Tr;var Dr=n("C6dT"),Nr=function(t){function e(){var e=t.call(this)||this;return e.className="MapObject",e.isMeasured=!1,e.layout="none",e.clickable=!0,e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.validate=function(){this.series&&this.series.itemReaderText&&(this.readerTitle=this.series.itemReaderText),t.prototype.validate.call(this)},e.prototype.updateExtremes=function(){var t=this.getFeature();if(t){var e=t.geometry;if(e){var n=ve(e),i=n[0][0],r=n[0][1],o=n[1][1],a=n[1][0],u=!1;o!=this.north&&(this._north=v.round(o,8),u=!0),r!=this.south&&(this._south=v.round(r),u=!0),a!=this.east&&(this._east=v.round(a),u=!0),i!=this.west&&(this._west=v.round(i),u=!0),u&&(this.dispatch("geoBoundsChanged"),this.series&&this.series.invalidateDataItems())}}},e.prototype.getFeature=function(){return{}},Object.defineProperty(e.prototype,"east",{get:function(){return g.isNumber(this._east)?this._east:this.dataItem?this.dataItem.east:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"west",{get:function(){return g.isNumber(this._west)?this._west:this.dataItem?this.dataItem.west:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"south",{get:function(){return g.isNumber(this._south)?this._south:this.dataItem?this.dataItem.south:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"north",{get:function(){return g.isNumber(this._north)?this._north:this.dataItem?this.dataItem.north:void 0},enumerable:!0,configurable:!0}),e.prototype.showTooltip=function(e){var n=t.prototype.showTooltip.call(this,e);return n&&"always"==this.showTooltipOn&&!this.series.chart.events.has("mappositionchanged",this.handleTooltipMove,this)&&this.addDisposer(this.series.chart.events.on("mappositionchanged",this.handleTooltipMove,this)),n},e.prototype.handleTooltipMove=function(t){this.tooltip.isHidden||this.showTooltip()},e.prototype.setDataItem=function(e){t.prototype.setDataItem.call(this,e),this.applyAccessibility()},e}(Dr.a);d.c.registeredClasses.MapObject=Nr;var zr=function(t){function e(){var e=t.call(this)||this;return e.className="MapImage",e.applyTheme(),e}return Object(c.c)(e,t),Object.defineProperty(e.prototype,"latitude",{get:function(){var t=this.getPropertyValue("latitude");return!g.isNumber(t)&&this.dataItem&&this.dataItem.geoPoint&&(t=this.dataItem.geoPoint.latitude),t},set:function(t){this.setPropertyValue("latitude",t,!1,!0),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){var t=this.getPropertyValue("longitude");return!g.isNumber(t)&&this.dataItem&&this.dataItem.geoPoint&&(t=this.dataItem.geoPoint.longitude),t},set:function(t){this.setPropertyValue("longitude",t,!1,!0),this.updateExtremes()},enumerable:!0,configurable:!0}),e.prototype.validatePosition=function(){if(g.isNumber(this.latitude)&&g.isNumber(this.longitude)){var e=this.series.chart.projection.d3Projection([this.longitude,this.latitude]),n=this.series.chart.projection.d3Path({type:"Point",coordinates:[this.longitude,this.latitude]});this.__disabled=!n,this.moveTo({x:e[0],y:e[1]})}t.prototype.validatePosition.call(this)},e.prototype.getFeature=function(){return{type:"Feature",geometry:{type:"Point",coordinates:[this.longitude,this.latitude]}}},e}(Nr);d.c.registeredClasses.MapImage=zr;var Vr=n("R6wv"),Rr=n("o+vr"),Ar=n.n(Rr),kr=n("hJ5i");function Fr(t){return kr.map(t,function(t){var e=t[0],n=t[1],i=[];return e&&i.push(Hr(e)),n&&i.push(Hr(n)),i})}function Br(t){return kr.map(t,function(t){return Hr(t)})}function Hr(t){return kr.map(t,function(t){return Zr(t)})}function Wr(t){return kr.map(t,qr)}function Zr(t){return{longitude:t[0],latitude:t[1]}}function qr(t){return[t.longitude,t.latitude]}function Xr(t){return kr.map(t,function(t){return kr.map(t,qr)})}function Yr(t){return kr.map(t,function(t){var e=t[0],n=t[1],i=[];return e&&i.push(Wr(e)),n&&i.push(Wr(n)),i})}function Ur(t,e,n){return[Ae().center([t,e]).radius(n)().coordinates]}function Jr(t,e,n,i){var r=[];-180==i&&(i=-179.9999),-90==n&&(n=-89.9999),90==t&&(t=89.9999),180==e&&(e=179.9999);for(var o=Math.min(90,(e-i)/Math.ceil((e-i)/90)),a=(t-n)/Math.ceil((t-n)/90),u=i;u<e;u+=o){var s=[];r.push([s]),u+o>e&&(o=e-u);for(var c=u;c<=u+o;c+=5)s.push([c,t]);for(var l=t;l>=n;l-=a)s.push([u+o,l]);for(c=u+o;c>=u;c-=5)s.push([c,n]);for(l=n;l<=t;l+=a)s.push([u,l])}return r}var Kr=function(t){function e(){var e=t.call(this)||this;e.className="MapPolygon",e.polygon=e.createChild(Vr.a),e.polygon.shouldClone=!1,e.polygon.applyOnClones=!0,e.setPropertyValue("precision",.5);var n=new p.a;return e.fill=n.getFor("secondaryButton"),e.stroke=n.getFor("secondaryButtonStroke"),e.strokeOpacity=1,e.tooltipPosition="pointer",e.nonScalingStroke=!0,e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.getFeature=function(){if(this.multiPolygon&&this.multiPolygon.length>0)return{type:"Feature",geometry:{type:"MultiPolygon",coordinates:this.multiPolygon}}},Object.defineProperty(e.prototype,"multiGeoPolygon",{get:function(){var t=this.getPropertyValue("multiGeoPolygon");return!t&&this.dataItem&&(t=this.dataItem.multiGeoPolygon),t},set:function(t){this.setPropertyValue("multiGeoPolygon",t,!0),this.multiPolygon=Yr(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiPolygon",{get:function(){var t=this.getPropertyValue("multiPolygon");return!t&&this.dataItem&&(t=this.dataItem.multiPolygon),t},set:function(t){this.setPropertyValue("multiPolygon",t)&&(this.updateExtremes(),this.invalidate())},enumerable:!0,configurable:!0}),e.prototype.validate=function(){if(this.series){var e=this.series.chart.projection,n=e.d3Path;if(this.multiPolygon){if(this.series){var i={type:"MultiPolygon",coordinates:this.multiPolygon};e.d3Projection.precision(this.precision),this.polygon.path=n(i)}if(this.series.calculateVisualCenter){var r=0,o=this.multiPolygon[0];if(this.multiPolygon.length>1)for(var a=0;a<this.multiPolygon.length;a++){var u=this.multiPolygon[a],s=Nt({type:"Polygon",coordinates:u});s>r&&(o=u,r=s)}var c=Ar()(o);this._visualLongitude=c[0],this._visualLatitude=c[1]}else this._visualLongitude=this.longitude,this._visualLatitude=this.latitude}}t.prototype.validate.call(this)},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"latitude",{get:function(){return this.north+(this.south-this.north)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.east+(this.west-this.east)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visualLatitude",{get:function(){var t=this.getPropertyValue("visualLatitude");return g.isNumber(t)?t:this._adapterO?this._adapterO.apply("visualLatitude",this._visualLatitude):this._visualLatitude},set:function(t){this.setPropertyValue("visualLatitude",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visualLongitude",{get:function(){var t=this.getPropertyValue("visualLongitude");return g.isNumber(t)?t:this._adapterO?this._adapterO.apply("visualLongitude",this._visualLongitude):this._visualLongitude},set:function(t){this.setPropertyValue("visualLongitude",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelWidth",{get:function(){return this.polygon.pixelWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pixelHeight",{get:function(){return this.polygon.pixelHeight},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.polygon.copyFrom(e.polygon)},e.prototype.updateExtremes=function(){t.prototype.updateExtremes.call(this)},Object.defineProperty(e.prototype,"boxArea",{get:function(){return(this.north-this.south)*(this.east-this.west)}
1,enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){return this.series.chart.projection.convert({longitude:this.visualLongitude,latitude:this.visualLatitude}).x},e.prototype.getTooltipY=function(){return this.series.chart.projection.convert({longitude:this.visualLongitude,latitude:this.visualLatitude}).y},Object.defineProperty(e.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(t){this.setPropertyValue("precision",t,!0)},enumerable:!0,configurable:!0}),e}(Nr);d.c.registeredClasses.MapPolygon=Kr;var Qr=n("vMqJ"),$r=n("v9UT"),to=n("Wglt"),eo=function(t){function e(){var e=t.call(this)||this;return e.className="MapPolygonSeriesDataItem",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.getFeature=function(){if(this.multiPolygon&&this.multiPolygon.length>0)return{type:"Feature",geometry:{type:"MultiPolygon",coordinates:this.multiPolygon}}},Object.defineProperty(e.prototype,"mapPolygon",{get:function(){var t=this;if(!this._mapPolygon){var e=this.component.mapPolygons.create();this._mapPolygon=e,this.addSprite(e),this._disposers.push(new h.b(function(){t.component&&t.component.mapPolygons.removeValue(e)})),this.mapObject=e}return this._mapPolygon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"polygon",{get:function(){return this._polygon},set:function(t){this._polygon=t,this.multiPolygon=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiPolygon",{get:function(){return this._multiPolygon},set:function(t){this._multiPolygon=t,this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoPolygon",{get:function(){return this._geoPolygon},set:function(t){this._geoPolygon=t,this.multiGeoPolygon=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiGeoPolygon",{get:function(){return this._multiGeoPolygon},set:function(t){this._multiGeoPolygon=t,this.multiPolygon=Yr(t)},enumerable:!0,configurable:!0}),e}(Tr),no=function(t){function e(){var e=t.call(this)||this;return e.calculateVisualCenter=!1,e.className="MapPolygonSeries",e.dataFields.multiPolygon="multiPolygon",e.dataFields.polygon="polygon",e.dataFields.geoPolygon="geoPolygon",e.dataFields.multiGeoPolygon="multiGeoPolygon",e.setPropertyValue("sortPolygonsBy","area"),e.setPropertyValue("sortPolygonsReversed",!1),e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createDataItem=function(){return new eo},e.prototype.processIncExc=function(){this.mapPolygons.clear(),t.prototype.processIncExc.call(this)},e.prototype.validateData=function(){if(this.useGeodata||this.geodata){var e=this._dataSources.geodata?void 0:this.chart.geodata;if(this.geodata&&(e=this.geodata),e){var n=void 0;if("FeatureCollection"==e.type?n=e.features:"Feature"==e.type?n=[e]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(e.type)?n=[{geometry:e}]:console.log("nothing found in geoJSON"),n)for(var i=function(t,e){var i=n[t],o=i.geometry;if(o){var a=o.type,u=i.id;if(r.chart.geodataNames&&r.chart.geodataNames[u]&&(i.properties.name=r.chart.geodataNames[u]),"Polygon"==a||"MultiPolygon"==a){if(!r.checkInclude(r.include,r.exclude,u))return"continue";var s=o.coordinates;s&&"Polygon"==a&&(s=[s]);var c=kr.find(r.data,function(t,e){return t.id==u});c?c.multiPolygon||(c.multiPolygon=s):(c={multiPolygon:s,id:u,madeFromGeoData:!0},r.data.push(c)),$r.softCopyProperties(i.properties,c)}}},r=this,o=0,a=n.length;o<a;o++)i(o)}}t.prototype.validateData.call(this)},e.prototype.validate=function(){if(t.prototype.validate.call(this),this.dataItems.each(function(t){$r.used(t.mapPolygon)}),"none"!=this.sortPolygonsBy){var e=this.sortPolygonsBy,n=this.sortPolygonsReversed;this.mapPolygons.sort(function(t,i){var r="",o="",a=-1,u=1;switch(e){case"area":r=t.boxArea,o=i.boxArea,a=-1,u=1;break;case"name":r=t.dataItem.dataContext.name||"",o=i.dataItem.dataContext.name||"",a=1,u=-1;break;case"id":r=t.dataItem.dataContext.id||"",o=i.dataItem.dataContext.id||"",a=1,u=-1;break;case"latitude":r=n?t.south:t.north,o=n?i.south:i.north,a=-1,u=1;break;case"longitude":r=n?t.east:t.west,o=n?i.east:i.west,a=1,u=-1}return r<o?n?u:a:r>o?n?a:u:0}),this.mapPolygons.each(function(t,e){t.validate(),t.zIndex||t.propertyFields.zIndex||(t.zIndex=1e6-e)})}},Object.defineProperty(e.prototype,"mapPolygons",{get:function(){if(!this._mapPolygons){var t=new Kr,e=new Qr.e(t);this._disposers.push(new Qr.c(e)),this._disposers.push(e.template),e.template.focusable=!0,e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapPolygons=e,this._mapObjects=e}return this._mapPolygons},enumerable:!0,configurable:!0}),e.prototype.getPolygonById=function(t){return to.find(this.mapPolygons.iterator(),function(e){return e.dataItem.dataContext.id==t})},e.prototype.copyFrom=function(e){this.mapPolygons.template.copyFrom(e.mapPolygons.template),t.prototype.copyFrom.call(this,e)},e.prototype.getFeatures=function(){var t=this,e=[];return this.dataItems.each(function(t){var n=t.getFeature();n&&e.push(n)}),this.mapPolygons.each(function(n){if(-1==t.dataItems.indexOf(n._dataItem)){var i=n.getFeature();i&&e.push(i)}}),e},Object.defineProperty(e.prototype,"sortPolygonsBy",{get:function(){return this.getPropertyValue("sortPolygonsBy")},set:function(t){this.setPropertyValue("sortPolygonsBy",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sortPolygonsReversed",{get:function(){return this.getPropertyValue("sortPolygonsReversed")},set:function(t){this.setPropertyValue("sortPolygonsReversed",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),e}(Gr);d.c.registeredClasses.MapPolygonSeries=no,d.c.registeredClasses.MapPolygonSeriesD
1ataItem=eo;var io=function(){function t(){this.d3Projection=hr()}return Object.defineProperty(t.prototype,"d3Projection",{get:function(){return this._d3Projection},set:function(t){this._d3Projection=t,t.precision(.1),this._d3Path=Ii().projection(t),this.chart&&this.chart.invalidateProjection()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"d3Path",{get:function(){return this._d3Path},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scale",{get:function(){return this.d3Projection.scale()/100},enumerable:!0,configurable:!0}),t.prototype.convert=function(t){var e=this.d3Projection([t.longitude,t.latitude]);if(e)return{x:e[0],y:e[1]}},t.prototype.invert=function(t){var e=this.d3Projection.invert([t.x,t.y]);if(e)return{longitude:e[0],latitude:e[1]}},t.prototype.project=function(t,e){return this.convert({longitude:t*v.DEGREES,latitude:e*v.DEGREES})},t.prototype.unproject=function(t,e){return this.invert({x:t,y:e})},t.prototype.rotate=function(t,e,n,i){var r=e*v.RADIANS,o=n*v.RADIANS;i*=v.RADIANS;var a=t.longitude*v.RADIANS+r,u=t.latitude*v.RADIANS,s=Math.cos(o),c=Math.sin(o),l=Math.cos(i),h=Math.sin(i),p=Math.cos(u),f=Math.cos(a)*p,d=Math.sin(a)*p,g=Math.sin(u),m=g*s+f*c;return{longitude:v.DEGREES*Math.atan2(d*l-m*h,f*s-g*c),latitude:v.DEGREES*Math.asin(m*l+d*h)}},t.prototype.unrotate=function(t,e,n,i){var r=e*v.RADIANS,o=n*v.RADIANS;i*=v.RADIANS;var a=t.longitude*v.RADIANS-r,u=t.latitude*v.RADIANS,s=Math.cos(o),c=Math.sin(o),l=Math.cos(i),h=Math.sin(i),p=Math.cos(u),f=Math.cos(a)*p,d=Math.sin(a)*p,g=Math.sin(u),m=g*l-d*h;return{longitude:v.DEGREES*Math.atan2(d*l+g*h,f*s+m*c),latitude:v.DEGREES*Math.asin(m*s-f*c)}},t.prototype.intermediatePoint=function(t,e,n){var i=Gn([t.longitude,t.latitude],[e.longitude,e.latitude])(n);return{longitude:i[0],latitude:i[1]}},t.prototype.multiDistance=function(t){for(var e=0,n=0;n<t.length;n++){var i=t[n];if(i.length>1)for(var r=1;r<i.length;r++){var o=i[r-1],a=i[r];e+=this.distance(o,a)}}return e},t.prototype.distance=function(t,e){return gn([t.longitude,t.latitude],[e.longitude,e.latitude])},t.prototype.positionToPoint=function(t,e){if(t){var n=this.positionToGeoPoint(t,e),i=this.positionToGeoPoint(t,e-.01),r=this.positionToGeoPoint(t,e+.01);if(i&&r){var o=this.convert(n),a=this.convert(i),u=this.convert(r);return{x:o.x,y:o.y,angle:v.getAngle(a,u)}}}return{x:0,y:0,angle:0}},t.prototype.positionToGeoPoint=function(t,e){if(t){for(var n=this.multiDistance(t),i=0,r=0,o=0,a=void 0,u=void 0,s=0;s<t.length;s++){var c=t[s];if(c.length>1){for(var l=1;l<c.length;l++)if(a=c[l-1],u=c[l],r=i/n,o=(i+=this.distance(a,u))/n,r<=e&&o>e){s=t.length;break}}else 1==c.length&&(a=c[0],u=c[0],r=0,o=1)}if(a&&u){var h=(e-r)/(o-r);return this.intermediatePoint(a,u,h)}}return{longitude:0,latitude:0}},t}();d.c.registeredClasses.Projection=io;var ro=n("FzPm"),oo=n("GtDR"),ao=n("8ZqG"),uo=function(t){function e(){var e=t.call(this)||this;e._chart=new h.d,e.className="SmallMap",e.align="left",e.valign="bottom",e.percentHeight=20,e.percentWidth=20,e.margin(5,5,5,5);var n=new p.a;e.background.fillOpacity=.9,e.background.fill=n.getFor("background"),e.events.on("hit",e.moveToPosition,e,!1),e.events.on("maxsizechanged",e.updateMapSize,e,!1),e.seriesContainer=e.createChild(Dr.a),e.seriesContainer.shouldClone=!1;var i=e.createChild(oo.a);return i.shouldClone=!1,i.stroke=n.getFor("alternativeBackground"),i.strokeWidth=1,i.strokeOpacity=.5,i.fill=Object(ao.c)(),i.verticalCenter="middle",i.horizontalCenter="middle",i.isMeasured=!1,i.visible=!1,e.rectangle=i,e._disposers.push(e._chart),e.applyTheme(),e}return Object(c.c)(e,t),Object.defineProperty(e.prototype,"series",{get:function(){return this._series||(this._series=new Qr.b,this._series.events.on("inserted",this.handleSeriesAdded,this,!1),this._series.events.on("removed",this.handleSeriesRemoved,this,!1)),this._series},enumerable:!0,configurable:!0}),e.prototype.handleSeriesAdded=function(t){var e=t.newValue;if(this.chart.series.contains(e)){var n=e.clone();this._series.removeValue(e),this._series.push(n),e=n,this.chart.dataUsers.push(n)}e.chart=this.chart,e.parent=this.seriesContainer,e.interactionsEnabled=!1,e.events.on("inited",this.updateMapSize,this,
1!1),e.hidden=!1},e.prototype.handleSeriesRemoved=function(t){this.invalidate()},e.prototype.moveToPosition=function(t){var e=$r.spritePointToSprite(t.spritePoint,this,this.seriesContainer),n=this.chart.seriesPointToGeo(e);this.chart.zoomToGeoPoint(n,this.chart.zoomLevel,!0)},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){this.chart!=t&&this._chart.set(t,new h.c([t.events.on("mappositionchanged",this.updateRectangle,this,!1),t.events.on("scaleratiochanged",this.updateMapSize,this,!1)]))},enumerable:!0,configurable:!0}),e.prototype.updateRectangle=function(){var t=this.chart,e=t.zoomLevel,n=this.rectangle;n.width=this.pixelWidth/e,n.height=this.pixelHeight/e;var i=Math.min(this.percentWidth,this.percentHeight)/100,r=t.seriesContainer;n.x=Math.ceil(-r.pixelX*i/e)+this.seriesContainer.pixelX,n.y=Math.ceil(-r.pixelY*i/e)+this.seriesContainer.pixelY,n.validate()},e.prototype.updateMapSize=function(){if(this.chart){var t=this.chart.scaleRatio*Math.min(this.percentWidth,this.percentHeight)/100;this.seriesContainer.scale=t;var e={width:0,height:0,x:0,y:0};try{e=this.seriesContainer.group.node.getBBox()}catch(t){}e.width>0&&(this.rectangle.visible=!0),this.seriesContainer.x=this.pixelWidth/2-e.x*t-e.width/2*t,this.seriesContainer.y=this.pixelHeight/2-e.y*t-e.height/2*t,this.updateRectangle(),this.afterDraw()}},e.prototype.afterDraw=function(){t.prototype.afterDraw.call(this),this.rectangle.maskRectangle={x:-1,y:-1,width:Math.ceil(this.pixelWidth+2),height:Math.ceil(this.pixelHeight+2)}},e.prototype.processConfig=function(e){if(e&&g.hasValue(e.series)&&g.isArray(e.series))for(var n=0,i=e.series.length;n<i;n++){var r=e.series[n];g.hasValue(r)&&g.isString(r)&&this.map.hasKey(r)&&(e.series[n]=this.map.getKey(r))}t.prototype.processConfig.call(this,e)},e}(Dr.a);d.c.registeredClasses.SmallMap=uo;var so=n("WYhe"),co=n("Q4nc"),lo=n("0FpR");function ho(t){var e=fo(t.longitude),n=Math.asin(Math.sin(t.latitude*v.RADIANS))*v.DEGREES,i=fo(t.latitude);return Math.abs(i)>90&&(e=fo(e+180)),t.longitude=e,t.latitude=n,t}function po(t){return kr.each(t,function(t){kr.each(t,function(t){ho(t)})}),t}function fo(t){return(t%=360)>180&&(t-=360),t<-180&&(t+=360),t}function go(t){return{x:t.longitude,y:t.latitude}}var vo=function(t){function e(){var e=t.call(this)||this;return e.adjustRotation=!0,e.className="MapLineObject",e.isMeasured=!1,e.layout="none",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.validatePosition=function(){var e=this.mapLine;if(e){var n=e.positionToPoint(this.position);if(this.x=n.x,this.y=n.y,this.adjustRotation&&(this.rotation=n.angle),this.mapLine.dataItem){var i=this.mapLine.dataItem.component;this.scale=1/i.scale}if(e.shortestDistance){var r=this.mapLine.series.chart.projection,o=r.positionToGeoPoint(e.multiGeoLine,this.position),a=r.d3Path({type:"Point",coordinates:[o.longitude,o.latitude]});this.__disabled=!a}}t.prototype.validatePosition.call(this)},Object.defineProperty(e.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(t){this.setPropertyValue("position",t,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"adjustRotation",{get:function(){return this.getPropertyValue("adjustRotation")},set:function(t){this.setPropertyValue("adjustRotation",t,!1,!0)},enumerable:!0,configurable:!0}),e}(Dr.a);d.c.registeredClasses.MapLineObject=vo;var mo=function(t){function e(){var e=t.call(this)||this;return e.className="MapImageSeriesDataItem",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.getFeature=function(){return{type:"Feature",geometry:{type:"Point",coordinates:this.point}}},Object.defineProperty(e.prototype,"mapImage",{get:function(){var t=this;if(!this._mapImage){var e=this.component.mapImages.create();this.addSprite(e),this._mapImage=e,this._disposers.push(e),this._disposers.push(new h.b(function(){t.component&&t.component.mapImages.removeValue(e)})),this.mapObject=e}return this._mapImage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"point",{get:function(){return this._point},set:function(t){this._point=t,this._geoPoint=Zr(t),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiPoint",{get:function(){return[this._point]},set:function(t){this._point=t[0],this._geoPoint=Zr(this._point),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoPoint",{get:function(){return this._geoPoint},set:function(t){this._geoPoint=t,this.point=[t.longitude,t.latitude]},enumerable:!0,configurable:!0}),e}(Tr),yo=function(t){function e(){var e=t.call(this)||this;return e.className="MapImageSeries",e.dataFields.multiPoint="multiPoint",e.dataFields.point="point",e.dataFields.geoPoint="geoPoint",e.dataFields.multiGeoPoint="multiGeoPoint",e.ignoreBounds=!0,e.a
1pplyTheme(),e}return Object(c.c)(e,t),e.prototype.createDataItem=function(){return new mo},e.prototype.validateData=function(){var e=this;if(this.data.length>0&&0==this._parseDataFrom&&this.mapImages.clear(),this.useGeodata&&(this.useGeodata||this.geodata)){var n=this.chart.geodata,i=void 0;if("FeatureCollection"==n.type?i=n.features:"Feature"==n.type?i=[n]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(n.type)?i=[{geometry:n}]:console.log("nothing found in geoJSON"),i)for(var r=function(t,e){var n=i[t],r=n.geometry;if(r){var a=r.type,u=n.id;if("Point"==a||"MultiPoint"==a){if(!o.checkInclude(o.include,o.exclude,u))return"continue";var s=r.coordinates;"Point"==a&&(s=[s]);var c=kr.find(o.data,function(t,e){return t.id==u});c?c.multiPoint||(c.multiPoint=s):(c={multiPoint:s,id:u,madeFromGeoData:!0},o.data.push(c)),$r.softCopyProperties(n.properties,c)}}},o=this,a=0,u=i.length;a<u;a++)r(a)}t.prototype.validateData.call(this),to.each(this.dataItems.iterator(),function(t){var n=t.mapImage;n.isDisposed()||(e.mapImages.moveValue(n),g.isNumber(n.latitude)&&g.isNumber(n.latitude)&&(t.geoPoint={latitude:n.latitude,longitude:n.longitude}))})},Object.defineProperty(e.prototype,"mapImages",{get:function(){if(!this._mapImages){var t=new zr,e=new Qr.e(t);this._disposers.push(new Qr.c(e)),this._disposers.push(e.template),e.template.focusable=!0,e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapImages=e,this._mapObjects=e}return this._mapImages},enumerable:!0,configurable:!0}),e.prototype.validateDataElement=function(e){t.prototype.validateDataElement.call(this,e),e.mapImage.invalidate()},e.prototype.validate=function(){t.prototype.validate.call(this),to.each(this.mapImages.iterator(),function(t){t.validatePosition()})},e.prototype.copyFrom=function(e){this.mapImages.template.copyFrom(e.mapImages.template),t.prototype.copyFrom.call(this,e)},e.prototype.getFeatures=function(){var t=this,e=[];return this.dataItems.each(function(t){var n=t.getFeature();n&&e.push(n)}),this.mapImages.each(function(n){if(-1==t.dataItems.indexOf(n._dataItem)){var i=n.getFeature();i&&e.push(i)}}),e},e.prototype.getImageById=function(t){return to.find(this.mapImages.iterator(),function(e){var n=e.dataItem.dataContext;if(e.id==t||n&&n.id==t)return!0})},e}(Gr);d.c.registeredClasses.MapImageSeries=yo,d.c.registeredClasses.MapImageSeriesDataItem=mo;var bo=n("Rnbi"),Po=n("jfaP"),_o=n("tjMS"),Mo=function(t){function e(){var e=t.call(this)||this;e._imageListeners={},e.className="MapLine",e.createLine(),e.line.stroke=Object(ao.c)(),e.line.parent=e,e.strokeOpacity=1,e.setPropertyValue("precision",.1);var n=new p.a;return e.stroke=n.getFor("grid"),e.shortestDistance=!0,e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createLine=function(){this.line=new Po.a},e.prototype.positionToPoint=function(t){return this.shortestDistance?this.series.chart.projection.positionToPoint(this.multiGeoLine,t):this.line?this.line.positionToPoint(t):{x:0,y:0,angle:0}},Object.defineProperty(e.prototype,"multiGeoLine",{get:function(){var t=this.getPropertyValue("multiGeoLine");return!t&&this.dataItem&&this.dataItem.multiGeoLine&&(t=this.dataItem.multiGeoLine),t},set:function(t){if(t&&t.length>0){this.setPropertyValue("multiGeoLine",po(t),!0);var e=Xr(t);this.setPropertyValue("multiLine",e),this.updateExtremes()}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiLine",{get:function(){var t=this.getPropertyValue("multiLine");return!t&&this.dataItem&&this.dataItem.multiLine&&(t=this.dataItem.multiLine),t},set:function(t){this.setPropertyValue("multiLine",t),this.multiGeoLine=Br(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"imagesToConnect",{get:function(){return this.getPropertyValue("imagesToConnect")}
1,set:function(t){var e=this;if(this.setPropertyValue("imagesToConnect",t,!0),this.handleImagesToConnect(),this.series){var n=this.series.chart;n&&n.series.each(function(t){t instanceof yo&&(t.isReady()||e._disposers.push(t.events.on("ready",e.handleImagesToConnect,e,!1)))})}},enumerable:!0,configurable:!0}),e.prototype.handleImagesToConnect=function(){var t,e,n=this;if(this.imagesToConnect){var i=[],r=[i],o=function(t){if(g.isString(t)){var e=a.series.chart;e&&e.series.each(function(e){if(e instanceof yo){var n=e.getImageById(t);n&&(t=n)}})}if(t instanceof zr&&(i.push({longitude:t.longitude,latitude:t.latitude}),!a._imageListeners[t.uid])){var r=t.events.on("propertychanged",function(t){"longitude"!=t.property&&"latitude"!=t.property||(n.handleImagesToConnect(),n.invalidate())},a,!1);a._imageListeners[t.uid]=r,a._disposers.push(r)}},a=this;try{for(var u=Object(c.g)(this.imagesToConnect),s=u.next();!s.done;s=u.next()){o(s.value)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}this.multiGeoLine=r}},e.prototype.validate=function(){var e=this.series.chart;if(this.multiLine){if(this.shortestDistance)e.projection.d3Projection.precision(this.precision),this.line.path=e.projection.d3Path(this.getFeature());else{for(var n=[],i=0,r=this.multiLine.length;i<r;i++){for(var o=this.multiLine[i],a=[],u=0,s=o.length;u<s;u++){var c=o[u],l=this.series.chart.projection.convert({longitude:c[0],latitude:c[1]});a.push(l)}n.push(a)}this.line.segments=n}this._arrow&&this._arrow.validatePosition(),to.each(this.lineObjects.iterator(),function(t){t.validatePosition()}),this.handleGlobalScale()}else this.imagesToConnect&&this.handleImagesToConnect();t.prototype.validate.call(this)},e.prototype.getFeature=function(){if(this.multiLine&&this.multiLine.length>0&&this.multiLine[0]&&this.multiLine[0].length>0)return{type:"Feature",geometry:{type:"MultiLineString",coordinates:this.multiLine}}},e.prototype.measureElement=function(){},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return this.getPropertyValue("shortestDistance")},set:function(t){this.setPropertyValue("shortestDistance",t,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineObjects",{get:function(){return this._lineObjects||(this._lineObjects=new Qr.e(new vo),this._lineObjects.events.on("inserted",this.handleLineObjectAdded,this,!1),this._disposers.push(new Qr.c(this._lineObjects)),this._disposers.push(this._lineObjects.template)),this._lineObjects},enumerable:!0,configurable:!0}),e.prototype.handleLineObjectAdded=function(t){var e=t.newValue;e.mapLine=this,e.shouldClone=!1,e.parent=this},Object.defineProperty(e.prototype,"arrow",{get:function(){if(!this._arrow){var t=this.createChild(vo);t.shouldClone=!1,t.width=8,t.height=10,t.mapLine=this,t.position=.5;var e=t.createChild(bo.a);e.fillOpacity=1,e.width=Object(_o.c)(100),e.height=Object(_o.c)(100),e.rotation=90,e.horizontalCenter="middle",e.verticalCenter="middle",this._arrow=t}return this._arrow},set:function(t){this._arrow=t,t.mapLine=this,t.parent=this},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){t.prototype.copyFrom.call(this,e),this.line.copyFrom(e.line),this.lineObjects.copyFrom(e.lineObjects),e._arrow&&(this.arrow=e.arrow.clone())},Object.defineProperty(e.prototype,"latitude",{get:function(){return this.north+(this.south-this.north)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.east+(this.west-this.east)/2},enumerable:!0,configurable:!0}),e.prototype.getTooltipX=function(){var t=this.getPropertyValue("tooltipX");return t instanceof _o.a||(t=Object(_o.c)(50)),t instanceof _o.a?this.positionToPoint(t.value).x:0},e.prototype.getTooltipY=function(){var t=this.getPropertyValue("tooltipY");return t instanceof _o.a||(t=Object(_o.c)(50)),t instanceof _o.a?this.positionToPoint(t.value).y:0},Object.defineProperty(e.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(t){this.setPropertyValue("precision",t,!0)},enumerable:!0,configurable:!0}),e}(Nr);d.c.registeredClasses.MapLine=Mo;var So=function(t){function e(){var e=t.call(this)||this;return e.className="MapLineSeriesDataItem",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.getFeature=function(){if(this.multiLine&&this.multiLine.length>0)return{type:"Feature",geometry:{type:"MultiLineString",coordinates:this.multiLine}}},Object.defineProperty(e.prototype,"mapLine",{get:function(){var t=this;if(!this._mapLine){var e=this.component.mapLines.create();this._mapLine=e,this.addSprite(e),this._disposers.push(e),this._disposers.push(new h.b(function(){t.component&&t.component.mapLines.removeValue(e)})),this.mapObject=e}return this._mapLine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"line",{get:function(){return this._line},set:function(t){this._line=t,this.multiLine=[t]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiLine",{get:function(){return this._multiLine},set:function(t){this._multiLine=t,this._multiGeoLine=Br(t),this.updateExtremes()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"geoLine",{get:function(){return this._geoLine}
1,set:function(t){this._geoLine=t,this.multiLine=Xr([t])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiGeoLine",{get:function(){return this._multiGeoLine},set:function(t){this._multiGeoLine=t,this.multiLine=Xr(t)},enumerable:!0,configurable:!0}),e}(Tr),xo=function(t){function e(){var e=t.call(this)||this;return e.className="MapLineSeries",e.dataFields.multiLine="multiLine",e.dataFields.line="line",e.dataFields.geoLine="geoLine",e.dataFields.multiGeoLine="multiGeoLine",e.ignoreBounds=!0,e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createDataItem=function(){return new So},e.prototype.validateData=function(){if(this.useGeodata||this.geodata){var e=this.chart.geodata;if(e){var n=void 0;if("FeatureCollection"==e.type?n=e.features:"Feature"==e.type?n=[e]:-1!=["Point","LineString","Polygon","MultiPoint","MultiLineString","MultiPolygon"].indexOf(e.type)?n=[{geometry:e}]:console.log("nothing found in geoJSON"),n)for(var i=function(t,e){var i=n[t],o=i.geometry;if(o){var a=o.type,u=i.id;if("LineString"==a||"MultiLineString"==a){if(!r.checkInclude(r.include,r.exclude,u))return"continue";var s=o.coordinates,c=kr.find(r.data,function(t,e){return t.id==u});"LineString"==a&&(s=[s]),c?c.multiLine||(c.multiLine=s):(c={multiLine:s,id:u,madeFromGeoData:!0},r.data.push(c)),$r.softCopyProperties(i.properties,c)}}},r=this,o=0,a=n.length;o<a;o++)i(o)}}t.prototype.validateData.call(this)},Object.defineProperty(e.prototype,"mapLines",{get:function(){if(!this._mapLines){var t=this.createLine(),e=new Qr.e(t);this._disposers.push(new Qr.c(e)),this._disposers.push(e.template),e.events.on("inserted",this.handleObjectAdded,this,!1),this._mapLines=e,this._mapObjects=e}return this._mapLines},enumerable:!0,configurable:!0}),e.prototype.createLine=function(){return new Mo},e.prototype.validate=function(){this.dataItems.each(function(t){$r.used(t.mapLine)}),t.prototype.validate.call(this),this.mapLines.each(function(t){t.validate()})},e.prototype.copyFrom=function(e){this.mapLines.template.copyFrom(e.mapLines.template),t.prototype.copyFrom.call(this,e)},e.prototype.getFeatures=function(){var t=this,e=[];return this.dataItems.each(function(t){var n=t.getFeature();n&&e.push(n)}),this.mapLines.each(function(n){if(-1==t.dataItems.indexOf(n._dataItem)){var i=n.getFeature();i&&e.push(i)}}),e},e.prototype.getLineById=function(t){return to.find(this.mapLines.iterator(),function(e){return e.dataItem.dataContext.id==t})},e}(Gr);d.c.registeredClasses.MapLineSeries=xo,d.c.registeredClasses.MapLineSeriesDataItem=So;var wo=function(t){function e(){var e=t.call(this)||this;return e.className="Graticule",e.applyTheme(),e.shortestDistance=!0,e}return Object(c.c)(e,t),e}(Mo);d.c.registeredClasses.Graticule=wo;var jo=function(t){function e(){var e=t.call(this)||this;return e.className="GraticuleSeriesDataItem",e.applyTheme(),e}return Object(c.c)(e,t),e}(So),Oo=function(t){function e(){var e=t.call(this)||this;return e.className="GraticuleSeries",e.longitudeStep=10,e.latitudeStep=10,e.north=90,e.south=-90,e.east=-180,e.west=180,e.fitExtent=!0,e.singleSprite=!0,e.events.disableType("geoBoundsChanged"),e.mapLines.template.line.strokeOpacity=.08,e.ignoreBounds=!1,e.hiddenInLegend=!0,e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createDataItem=function(){return new jo},e.prototype.validateData=function(){var e=this;t.prototype.validateData.call(this),this.mapLines.clear();var n=On();if(n){n.stepMinor([this.longitudeStep,this.latitudeStep]),n.stepMajor([360,360]);var i=this.chart;if(this.fitExtent?n.extent([[i.east,i.north],[i.west,i.south]]):n.extent([[this.east,this.north],[this.west,this.south]]),this.singleSprite){this.mapLines.create().multiLine=n().coordinates}else{var r=n.lines();kr.each(r,function(t){e.mapLines.create().multiLine=[t.coordinates]})}}},e.prototype.createLine=function(){return new wo},Object.defineProperty(e.prototype,"latitudeStep",{get:function(){return this.getPropertyValue("latitudeStep")},set:function(t){this.setPropertyValue("latitudeStep",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitudeStep",{get:function(){return this.getPropertyValue("longitudeStep")},set:function(t){this.setPropertyValue("longitudeStep",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fitExtent",{get:function(){return this.getPropertyValue("fitExtent")}
1,set:function(t){this.setPropertyValue("fitExtent",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"singleSprite",{get:function(){return this.getPropertyValue("singleSprite")},set:function(t){this.setPropertyValue("singleSprite",t)&&this.invalidateData()},enumerable:!0,configurable:!0}),e}(xo);d.c.registeredClasses.GraticuleSeries=Oo,d.c.registeredClasses.GraticuleSeriesDataItem=jo;var Lo=n("zhwk"),Co=function(t){function e(){var e=t.call(this)||this;return e.className="MapChartDataItem",e.applyTheme(),e}return Object(c.c)(e,t),e}(l.b),Eo=function(t){function e(){var e=t.call(this)||this;e.scaleRatio=1,e.zoomDuration=1e3,e.zoomEasing=lo.cubicOut,e.minZoomLevel=1,e.maxZoomLevel=32,e._prevZoomGeoPoint={latitude:0,longitude:0},e.className="MapChart",e.projection=new io,e.setPropertyValue("deltaLatitude",0),e.setPropertyValue("deltaLongitude",0),e.setPropertyValue("deltaGamma",0),e.maxPanOut=.7,e.homeZoomLevel=1,e.zoomStep=2,e.layout="absolute",e.centerMapOnZoomOut=!0,e.padding(0,0,0,0),$r.used(e.backgroundSeries),e.minWidth=10,e.minHeight=10,e.events.once("inited",e.handleAllInited,e,!1);var n=e.seriesContainer;n.visible=!1,n.inert=!0,n.resizable=!0,n.events.on("transformed",e.handleMapTransform,e,!1),n.events.on("doublehit",e.handleDoubleHit,e,!1),n.events.on("dragged",e.handleDrag,e,!1),n.zIndex=0,n.dragWhileResize=!0,n.adapter.add("scale",function(t,n){return v.fitToRange(t,e.minZoomLevel,e.maxZoomLevel)}),e.events.on("maxsizechanged",function(t){0!=t.previousWidth&&0!=t.previousHeight||(e.updateExtremes(),e.updateCenterGeoPoint())},void 0,!1);var i=e.chartContainer;i.parent=e,i.zIndex=-1,e._disposers.push(e.events.on("maxsizechanged",function(){if(e.inited){e._mapAnimation&&e._mapAnimation.stop();var t=!0;e.series.each(function(e){e.updateTooltipBounds(),e.inited&&!e.dataInvalid||(t=!1)}),t&&e.updateScaleRatio(),e.zoomToGeoPoint(e._zoomGeoPointReal,e.zoomLevel,!0,0)}},void 0,!1));var r=i.background;r.fillOpacity=0,r.events.on("down",function(t){e.seriesContainer.dragStart(t.target.interactions.downPointers.getIndex(0))},e),r.events.on("up",function(t){e.seriesContainer.dragStop()},e),r.events.on("doublehit",e.handleDoubleHit,e),r.focusable=!0,i.events.on("down",e.handleMapDown,e,!1),e.addDisposer(n.events.on("down",function(){var t=e.seriesContainer.interactions.inertias.getKey("move");t&&t.done()})),e.background.fillOpacity=0,e._disposers.push(Object(Lo.b)().body.events.on("keyup",function(t){if(e.topParent.hasFocused){var n=so.b.getEventKey(t.event);if(!e._zoomControl||!e._zoomControl.thumb.isFocused)switch(n){case"up":e.pan({x:0,y:.1});break;case"down":e.pan({x:0,y:-.1});break;case"left":e.pan({x:.1,y:0});break;case"right":e.pan({x:-.1,y:0})}}},e)),e.mouseWheelBehavior="zoom";var o=Object(Lo.b)();e._disposers.push(o.body.events.on("down",e.handlePanDown,e)),e._disposers.push(o.body.events.on("up",e.handlePanUp,e));var a=e.seriesContainer.createChild(ro.a);return a.radius=10,a.inert=!0,a.isMeasured=!1,a.events.on("transformed",e.handlePanMove,e,!1),a.interactionsEnabled=!1,a.opacity=0,a.x=0,a.y=0,e.panSprite=a,e.panBehavior="move",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.handlePanDown=function(t){var e=$r.documentPointToSvg(t.pointer.point,this.htmlContainer);e.x>0&&e.y>0&&e.x<this.svgContainer.width&&e.y<this.svgContainer.height&&(this._downPointOrig=$r.documentPointToSprite(t.pointer.point,this.seriesContainer),this.panSprite.moveTo(this._downPointOrig),this.panSprite.dragStart(t.pointer),this._downDeltaLongitude=this.deltaLongitude,this._downDeltaLatitude=this.deltaLatitude)},e.prototype.handlePanUp=function(t){this._downPointOrig&&this.panSprite.dragStop(t.pointer,!0),this._downPointOrig=void 0},e.prototype.handlePanMove=function(){if(!this.seriesContainer.isResized){if(Object(Lo.b)().areTransformed([this.panSprite.interactions,this.seriesContainer.interactions]))return;var t=this.projection.d3Projection,e=this.panBehavior;if("move"!=e&&"none"!=e&&this._downPointOrig&&t.rotate){var n=t.rotate(),i=n[0],r=n[1],o=n[2];t.rotate([0,0,0]);var a=this.projection.invert(this._downPointOrig),u={x:this.panSprite.pixelX,y:this.panSprite.pixelY},s=void 0;u&&(s=this.projection.invert(u)),t.rotate([i,r,o]),s&&("rotateLat"!=e&&"rotateLongLat"!=e||(this.deltaLatitude=this._downDeltaLatitude+s.latitude-a.latitude),"rotateLong"!=e&&"rotateLongLat"!=e||(this.deltaLongitude=this._downDeltaLongitude+s.longitude-a.longitude))}}},e.prototype.handleAllInited=function(){var t=this,e=!0;if(this.seriesContainer.visible=!0,this.series.each(function(t){t.inited&&!t.dataInvalid||(e=!1)}),e)this.updateCenterGeoPoint(),this.updateScaleRatio(),this.goHome(0);else{var n=d.c.events.once("exitframe",function(){t.removeDispose(n),t.handleAllInited()},this,!1);this.addDisposer(n)}},e.prototype.updateZoomGeoPoint=function(){var t=$r.svgPointToSprite({x:this.innerWidth/2+this.pixelPaddingLeft,y:this.innerHeight/2+this.pixelPaddingTop},this.series.getIndex(0)),e=this.projection.invert(t);this._zoomGeoPointReal=e},e.prototype.updateCenterGeoPoint=function(){var t,e,n,i;if(this.backgroundSeries){var r=this.backgroundSeries.getFeatures();if(r.length>0){var o=this.projection.d3Path.bounds(r[0].geometry);t=o[0][0],n=o[0][1],e=o[1][0],i=o[1][1]}}else this.series.each(function(r){var o=r.group.node.getBBox();(t>o.x||!g.isNumber(t))&&(t=o.x),(e<o.x+o.width||!g.isNumber(e))&&(e=o.x+o.width),(n>o.y||!g.isNumber(n))&&(n=o.y),(i<o.y+o.height||!g.isNumber(i))&&(i=o.y+o.height)});this.seriesMaxLeft=t,this.seriesMaxRight=e,this.seriesMaxTop=n,this.seriesMaxBottom=i,this.seriesWidth=e-t,this.seriesHeight=i-n,this.seriesWidth>0&&this.seriesHeight>0?(this.chartContainer.visible=!0,this._centerGeoPoint=this.projection.invert({x:t+(e-t)/2,y:n+(i-n)/2}),this._zoomGeoPointReal&&g.isNumber(this._zoomGeoPointReal.latitude)||(this._zoomGeoPointReal=this._centerGeoPoint)):this.chartContainer.visible=!1},e.prototype.handleDrag=function(){var t=this.zoomLevel*this.scaleRatio,e=this.seriesWidth*t,n=this.seriesHeight*t,i=this.seriesContainer,r=this.seriesMaxLeft*t,o=this.seriesMaxRight*t,a=this.seriesMaxTop*t,u=this.seriesMaxBottom*t,s=i.pixelX,c=i.pixelY,l=this.maxPanOut,h=Math.min(this.maxWidth*(1-l)-e-r,-r);s<h&&(s=h);var p=Math.max(this.maxWidth*l-r,this.maxWidth-o);s>p&&(s=p);var f=Math.min(this.maxHeight*(1-l)-n-a,-a);c<f&&(c=f);var d=Math.max(this.maxHeight*l-a,this.maxHeight-u);c>d&&(c=d),i.moveTo({x:s,y:c},void 0,void 0,!0),this._zoomGeoPointReal=this.zoomGeoPoint},e.prototype.applyInternalDefaults=function(){t.prototype.applyInternalDefaults.call(this),g.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Map")),g.hasValue(this.background.readerTitle)||(this.background.readerTitle=this.language.translate("Use plus and minus keys on your keyboard to zoom in and out"))},e.prototype.handleMapDown=function(){this._mapAnimation&&this._mapAnimation.stop()},e.prototype.handleDoubleHit=function(t){var e=$r.documentPointToSvg(t.point,this.htmlContainer,this.svgContainer.cssScale),n=this.svgPointToGeo(e);this.zoomIn(n)},e.prototype.handleWheel=function(t){var e=this.seriesContainer.interactions.inertias.getKey("move");e&&e.done();var n=$r.documentPointToSvg(t.point,this.htmlContainer,this.svgContainer.cssScale),i=this.svgPointToGeo(n);t.shift.y<0?this.zoomIn(i,void 0,this.interactions.mouseOptions.sensitivity):this.zoomOut(i,void 0,this.interactions.mouseOptions.sensitivity)},Object.defineProperty(e.prototype,"mouseWheelBehavior",{get:function(){return this.getPropertyValue("mouseWheelBehavior")}
1,set:function(t){this.setPropertyValue("mouseWheelBehavior",t)&&("none"!=t?(this._mouseWheelDisposer=this.chartContainer.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer)):(this._mouseWheelDisposer&&this._mouseWheelDisposer.dispose(),this.chartContainer.wheelable=!1))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"panBehavior",{get:function(){return this.getPropertyValue("panBehavior")},set:function(t){if(this.setPropertyValue("panBehavior",t)){var e=this.seriesContainer;switch(this.panSprite.draggable=!1,e.draggable=!1,t){case"move":e.draggable=!0;break;default:this.panSprite.draggable=!0}}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"centerMapOnZoomOut",{get:function(){return this.getPropertyValue("centerMapOnZoomOut")},set:function(t){this.setPropertyValue("centerMapOnZoomOut",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"projection",{get:function(){return this.getPropertyValue("projection")},set:function(t){var e=this;this.setPropertyValue("projection",t)&&(this.invalidateProjection(),t.chart=this,this._backgroundSeries&&this._backgroundSeries.invalidate(),this.inited&&this.updateExtremes(),this.series.each(function(t){t.events.once("validated",function(){e.updateCenterGeoPoint(),e.updateScaleRatio(),e.goHome(0)})}))},enumerable:!0,configurable:!0}),e.prototype.validateDataItems=function(){t.prototype.validateDataItems.call(this),this.updateExtremes()},e.prototype.updateExtremes=function(){var t,e,n,i;this.series.each(function(r){r.ignoreBounds||r instanceof Oo&&r.fitExtent||((r.north>e||!g.isNumber(e))&&(e=r.north),(r.south<i||!g.isNumber(i))&&(i=r.south),(r.west<n||!g.isNumber(n))&&(n=r.west),(r.east>t||!g.isNumber(t))&&(t=r.east))});var r=[],o=!1;this.series.each(function(t){t instanceof Oo&&!t.fitExtent&&(r=t.getFeatures(),o=!0)}),o||this.series.each(function(t){t.ignoreBounds||t instanceof Oo&&t.fitExtent||(r=r.concat(t.getFeatures()))});var a=v.max(50,this.innerWidth),u=v.max(50,this.innerHeight),s=this.projection.d3Projection;if(r.length>0&&s&&(this.east!=t||this.west!=n||this.north!=e||this.south!=i)){if(this.east=t,this.west=n,this.north=e,this.south=i,s.rotate){var c=s.rotate(),l=c[0],h=c[1],p=c[2];this.deltaLongitude=l,this.deltaLatitude=h,this.deltaGamma=p}var f={type:"FeatureCollection",features:r},d=s.scale();if(s.fitSize([a,u],f),s.scale()!=d&&this.invalidateDataUsers(),this.series.each(function(t){t instanceof Oo&&t.invalidateData()}),this._backgroundSeries){var m=this._backgroundSeries.mapPolygons.getIndex(0);m&&(m.multiPolygon=Jr(this.north,this.east,this.south,this.west))}this._fitWidth=a,this._fitHeight=u}this._zoomGeoPointReal&&g.isNumber(this._zoomGeoPointReal.latitude)||this.goHome(0)},e.prototype.updateScaleRatio=function(){var t;this.updateCenterGeoPoint();var e=this.innerWidth/this.seriesWidth,n=this.innerHeight/this.seriesHeight;t=v.min(e,n),(g.isNaN(t)||t==1/0)&&(t=1),t!=this.scaleRatio&&(this.scaleRatio=t,to.each(this.series.iterator(),function(e){e.scale=t,e.updateTooltipBounds()}),this.backgroundSeries.scale=t,this.dispatch("scaleratiochanged"))},e.prototype.svgPointToGeo=function(t){var e=this.series.getIndex(0);if(e){var n=$r.svgPointToSprite(t,e);return this.seriesPointToGeo(n)}},e.prototype.geoPointToSVG=function(t){var e=this.series.getIndex(0);if(e){var n=this.geoPointToSeries(t);return $r.spritePointToSvg(n,e)}},e.prototype.seriesPointToGeo=function(t){return this.projection.invert(t)},e.prototype.geoPointToSeries=function(t){return this.projection.convert(t)},Object.defineProperty(e.prototype,"geodata",{get:function(){return this._geodata},set:function(t){t!=this._geodata&&(this._geodata=t,this.reverseGeodata&&this.processReverseGeodata(this._geodata),this.invalidateData(),this.dataUsers.each(function(t){for(var e=t.data.length-1;e>=0;e--)1==t.data[e].madeFromGeoData&&t.data.splice(e,1);t.disposeData(),t.invalidateData()}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reverseGeodata",{get:function(){return this.getPropertyValue("reverseGeodata")},set:function(t){this.setPropertyValue("reverseGeodata",t)&&this._geodata&&this.processReverseGeodata(this._geodata)},enumerable:!0,configurable:!0}),e.prototype.processReverseGeodata=function(t){for(var e=0;e<t.features.length;e++)for(var n=t.features[e],i=0;i<n.geometry.coordinates.length;i++)if("MultiPolygon"==n.geometry.type)for(var r=0;r<n.geometry.coordinates[i].length;r++)n.geometry.coordinates[i][r].reverse();else n.geometry.coordinates[i].reverse()},e.prototype.zoomToGeoPoint=function(t,e,n,i,r){var o=this;if(!t){var a=!1;if(this.series.each(function(t){t.dataItems.length>0&&(a=!0)}
1),!a)return;t=this.zoomGeoPoint}if(t&&g.isNumber(t.longitude)&&g.isNumber(t.latitude)){this._zoomGeoPointReal=t,e=v.fitToRange(e,this.minZoomLevel,this.maxZoomLevel);var u=this.projection.convert(t);if(u){var s=this.geoPointToSVG(t),c=$r.svgPointToSprite(s,this);n&&(c={x:this.innerWidth/2,y:this.innerHeight/2}),g.isNumber(i)||(i=this.zoomDuration);var l=c.x-u.x*e*this.scaleRatio,h=c.y-u.y*e*this.scaleRatio;return!r&&e<this.zoomLevel&&this.centerMapOnZoomOut&&e<1.5&&(l=this.innerWidth/2-(this.seriesMaxLeft+(this.seriesMaxRight-this.seriesMaxLeft)/2)*e*this.scaleRatio,h=this.innerHeight/2-(this.seriesMaxTop+(this.seriesMaxBottom-this.seriesMaxTop)/2)*e*this.scaleRatio),this._mapAnimation=this.seriesContainer.animate([{property:"scale",to:e},{property:"x",from:this.seriesContainer.pixelX,to:l},{property:"y",from:this.seriesContainer.pixelY,to:h}],i,this.zoomEasing),this._disposers.push(this._mapAnimation.events.on("animationended",function(){o._zoomGeoPointReal=o.zoomGeoPoint})),this.seriesContainer.validatePosition(),this._mapAnimation}}},e.prototype.zoomToMapObject=function(t,e,n,i){void 0==n&&(n=!0);var r=this.seriesContainer.interactions.inertias.getKey("move");if(r&&r.done(),t instanceof zr)return g.isNaN(e)&&(e=5),this.zoomToGeoPoint({latitude:t.latitude,longitude:t.longitude},e,n,i,!0);var o=t.dataItem;if(o&&g.isNumber(o.zoomLevel)&&(e=o.zoomLevel),t instanceof Kr){var a=t.dataItem,u=t.polygon.bbox;0!=u.width&&0!=u.height||(u=t.polygon.group.getBBox()),g.isNumber(e)||(e=Math.min(this.seriesWidth/u.width,this.seriesHeight/u.height));var s=void 0;if(a&&g.hasValue(a.zoomGeoPoint))s=a.zoomGeoPoint;else{var c={x:u.x+u.width/2,y:u.y+u.height/2},l=$r.spritePointToSprite(c,t.polygon,t.series);s=this.seriesPointToGeo(l)}return this.zoomToGeoPoint(s,e,!0,i,!0)}},e.prototype.zoomToRectangle=function(t,e,n,i,r,o,a){g.isNaN(r)&&(r=1);var u=v.min(i,e),s=v.max(i,e);i=u,e=s;var c=v.normalizeAngle(180-this.deltaLongitude);c>180&&(c-=360);var l=i+(e-i)/2,h=i-e;i<c&&e>c&&(l+=180,h=v.normalizeAngle(e-i-360));var p=r*Math.min((this.south-this.north)/(n-t),Math.abs((this.west-this.east)/h));return this.zoomToGeoPoint({latitude:t+(n-t)/2,longitude:l},p,o,a,!0)},e.prototype.zoomIn=function(t,e,n){void 0===n&&(n=1);var i=1+(this.zoomStep-1)*n;return i<1&&(i=1),this.zoomToGeoPoint(t,this.zoomLevel*i,!1,e)},e.prototype.zoomOut=function(t,e,n){void 0===n&&(n=1);var i=1+(this.zoomStep-1)*n;return i<1&&(i=1),this.zoomToGeoPoint(t,this.zoomLevel/i,!1,e)},e.prototype.pan=function(t,e){var n=this.geoPointToSVG(this.zoomGeoPoint);n.x+=this.pixelWidth*t.x,n.y+=this.pixelHeight*t.y,this.zoomToGeoPoint(this.svgPointToGeo(n),this.zoomLevel,!0,e,!0)},Object.defineProperty(e.prototype,"zoomGeoPoint",{get:function(){var t=$r.spritePointToSvg({x:this.pixelWidth/2,y:this.pixelHeight/2},this);return this.svgPointToGeo(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomLevel",{get:function(){return this.seriesContainer.scale},set:function(t){this.seriesContainer.scale=t},enumerable:!0,configurable:!0}),e.prototype.handleMapTransform=function(){this.zoomLevel!=this._prevZoomLevel&&(this.dispatch("zoomlevelchanged"),this._prevZoomLevel=this.zoomLevel,this.svgContainer.readerAlert(this.language.translate("Zoom level changed to %1",this.language.locale,g.castString(this.zoomLevel)))),!this.zoomGeoPoint||this._prevZoomGeoPoint.latitude==this.zoomGeoPoint.latitude&&this._prevZoomGeoPoint.longitude==this.zoomGeoPoint.longitude||this.dispatch("mappositionchanged")},Object.defineProperty(e.prototype,"smallMap",{get:function(){if(!this._smallMap){var t=new uo;this.smallMap=t}return this._smallMap},set:function(t){this._smallMap&&this.removeDispose(this._smallMap),this._smallMap=t,this._smallMap.chart=this,t.parent=this.chartContainer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomControl",{get:function(){return this._zoomControl},set:function(t){this._zoomControl&&this.removeDispose(this._zoomControl),this._zoomControl=t,t.chart=this,t.parent=this.chartContainer,t.plusButton.exportable=!1,t.minusButton.exportable=!1},enumerable:!0,configurable:!0}),e.prototype.createSeries=function(){return new Gr},Object.defineProperty(e.prototype,"deltaLongitude",{get:function(){return this.getPropertyValue("deltaLongitude")},set:function(t){t=v.round(t,3),this.setPropertyValue("deltaLongitude",fo(t))&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deltaLatitude",{get:function(){return this.getPropertyValue("deltaLatitude")},set:function(t){t=v.round(t,3),this.setPropertyValue("deltaLatitude",t)&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"deltaGamma",{get:function(){return this.getPropertyValue("deltaGamma")},set:function(t){t=v.round(t,3),this.setPropertyValue("deltaGamma",t)&&(this.rotateMap(),this.updateZoomGeoPoint())},enumerable:!0,configurable:!0}),e.prototype.rotateMap=function(){this.projection.d3Projection&&this.projection.d3Projection.rotate&&(this.projection.d3Projection.rotate([this.deltaLongitude,this.deltaLatitude,this.deltaGamma]),this.invalidateProjection())}
1,Object.defineProperty(e.prototype,"maxPanOut",{get:function(){return this.getPropertyValue("maxPanOut")},set:function(t){this.setPropertyValue("maxPanOut",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"homeGeoPoint",{get:function(){return this.getPropertyValue("homeGeoPoint")},set:function(t){this.setPropertyValue("homeGeoPoint",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"homeZoomLevel",{get:function(){return this.getPropertyValue("homeZoomLevel")},set:function(t){this.setPropertyValue("homeZoomLevel",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"zoomStep",{get:function(){return this.getPropertyValue("zoomStep")},set:function(t){this.setPropertyValue("zoomStep",t)},enumerable:!0,configurable:!0}),e.prototype.invalidateProjection=function(){this.east=void 0,this.invalidateDataUsers(),this.updateCenterGeoPoint()},Object.defineProperty(e.prototype,"geodataSource",{get:function(){var t=this;this._dataSources.geodata||this.getDataSource("geodata").events.on("parseended",function(){t.events.once("datavalidated",function(){t.goHome(0)})});return this._dataSources.geodata},set:function(t){var e=this;this._dataSources.geodata&&this.removeDispose(this._dataSources.geodata),this._dataSources.geodata=t,this._dataSources.geodata.component=this,this.events.on("inited",function(){e.loadData("geodata")},this,!1),this.setDataSourceEvents(t,"geodata")},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(e){if(g.hasValue(e.geodata)&&g.isString(e.geodata)){var n=e.geodata;if(g.hasValue(window["am4geodata_"+e.geodata]))e.geodata=window["am4geodata_"+e.geodata];else try{e.geodata=JSON.parse(e.geodata)}catch(t){this.raiseCriticalError(Error("MapChart error: Geodata `"+n+"` is not loaded or is incorrect."),!0)}}g.hasValue(e.projection)&&g.isString(e.projection)&&(e.projection=this.createClassInstance(e.projection)),g.hasValue(e.smallMap)&&!g.hasValue(e.smallMap.type)&&(e.smallMap.type="SmallMap"),g.hasValue(e.zoomControl)&&!g.hasValue(e.zoomControl.type)&&(e.zoomControl.type="ZoomControl"),t.prototype.processConfig.call(this,e)},e.prototype.handleSeriesAdded=function(e){t.prototype.handleSeriesAdded.call(this,e);var n=e.newValue;n.scale=this.scaleRatio,n.events.on("validated",this.updateCenterGeoPoint,this,!1)},e.prototype.configOrder=function(e,n){return e==n?0:"smallMap"==e?1:"smallMap"==n?-1:"series"==e?1:"series"==n?-1:t.prototype.configOrder.call(this,e,n)},e.prototype.asIs=function(e){return"projection"==e||"geodata"==e||t.prototype.asIs.call(this,e)},Object.defineProperty(e.prototype,"centerGeoPoint",{get:function(){return this._centerGeoPoint},enumerable:!0,configurable:!0}),e.prototype.goHome=function(t){var e=this.homeGeoPoint;e||(e=this.centerGeoPoint),e&&this.zoomToGeoPoint(e,this.homeZoomLevel,!0,t,!0)},e.prototype.setPaper=function(e){return this.svgContainer&&(this.svgContainer.hideOverflow=!0),t.prototype.setPaper.call(this,e)},Object.defineProperty(e.prototype,"backgroundSeries",{get:function(){var t=this;if(!this._backgroundSeries){var e=new no;e.parent=this.seriesContainer,e.chart=this,e.hiddenInLegend=!0,e.mapPolygons.template.focusable=!1,e.addDisposer(new h.b(function(){t._backgroundSeries=void 0})),this._disposers.push(e);var n=(new p.a).getFor("background"),i=e.mapPolygons.template.polygon;i.stroke=n,i.fill=n,i.fillOpacity=0,i.strokeOpacity=0,e.mapPolygons.create(),this._backgroundSeries=e}return this._backgroundSeries},enumerable:!0,configurable:!0}),e.prototype.setLegend=function(e){t.prototype.setLegend.call(this,e),e&&(e.parent=this)},e.prototype.setTapToActivate=function(e){t.prototype.setTapToActivate.call(this,e),this.seriesContainer.interactions.isTouchProtected=!0,this.panSprite.interactions.isTouchProtected=!0},e.prototype.handleTapToActivate=function(){t.prototype.handleTapToActivate.call(this),this.seriesContainer.interactions.isTouchProtected=!1,this.panSprite.interactions.isTouchProtected=!1},e.prototype.handleTapToActivateDeactivation=function(){t.prototype.handleTapToActivateDeactivation.call(this),this.seriesContainer.interactions.isTouchProtected=!0,this.panSprite.interactions.isTouchProtected=!0},e.prototype.asFunction=function(e){return"zoomEasing"==e||t.prototype.asIs.call(this,e)},e.prototype.hasLicense=function(){if(co.a.commercialLicense)return!0;
1if(!t.prototype.hasLicense.call(this))return!1;for(var e=0;e<co.a.licenses.length;e++)if(co.a.licenses[e].match(/^MP.{5,}/i))return!0;return!1},e}(l.a);d.c.registeredClasses.MapChart=Eo;var Io=n("xgTw"),To=function(t){function e(){var e=t.call(this)||this;return e.className="MapSpline",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createLine=function(){this.line=new Io.a,this.line.tensionX=.8,this.line.tensionY=.8},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),e}(Mo);d.c.registeredClasses.MapSpline=To;var Go=n("MXvJ"),Do=function(t){function e(){var e=t.call(this)||this;return e.className="MapArc",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createLine=function(){this.line=new Go.a},Object.defineProperty(e.prototype,"shortestDistance",{get:function(){return!1},set:function(t){},enumerable:!0,configurable:!0}),e}(Mo);d.c.registeredClasses.MapArc=Do;var No=function(t){function e(){var e=t.call(this)||this;return e.className="MapSplineSeriesDataItem",e.applyTheme(),e}return Object(c.c)(e,t),e}(So),zo=function(t){function e(){var e=t.call(this)||this;return e.className="MapSplineSeries",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createDataItem=function(){return new No},e.prototype.createLine=function(){return new To},e}(xo);d.c.registeredClasses.MapSplineSeries=zo,d.c.registeredClasses.MapSplineSeriesDataItem=No;var Vo=function(t){function e(){var e=t.call(this)||this;return e.className="MapArcSeriesDataItem",e.applyTheme(),e}return Object(c.c)(e,t),e}(So),Ro=function(t){function e(){var e=t.call(this)||this;return e.className="MapArcSeries",e.applyTheme(),e}return Object(c.c)(e,t),e.prototype.createDataItem=function(){return new Vo},e.prototype.createLine=function(){return new Do},e}(xo);d.c.registeredClasses.MapArcSeries=Ro,d.c.registeredClasses.MapArcSeriesDataItem=Vo;var Ao=n("aGXA"),ko=n("CnhP"),Fo=function(t){function e(){var e=t.call(this)||this;e._chart=new h.d,e.className="ZoomControl",e.align="right",e.valign="bottom",e.layout="vertical",e.padding(5,5,5,5);var n=new p.a,i=e.createChild(Ao.a);i.shouldClone=!1,i.label.text="+",e.plusButton=i;var r=e.createChild(Dr.a);r.shouldClone=!1,r.background.fill=n.getFor("alternativeBackground"),r.background.fillOpacity=.05,r.background.events.on("hit",e.handleBackgroundClick,e,!1),r.events.on("sizechanged",e.updateThumbSize,e,!1),e.slider=r;var o=r.createChild(Ao.a);o.shouldClone=!1,o.padding(0,0,0,0),o.draggable=!0,o.events.on("drag",e.handleThumbDrag,e,!1),e.thumb=o;var a=e.createChild(Ao.a);return a.shouldClone=!1,a.label.text="-",e.minusButton=a,e.thumb.role="slider",e.thumb.readerLive="polite",e.thumb.readerTitle=e.language.translate("Use arrow keys to zoom in and out"),e.minusButton.readerTitle=e.language.translate("Press ENTER to zoom in"),e.plusButton.readerTitle=e.language.translate("Press ENTER to zoom out"),e.applyTheme(),e.events.on("propertychanged",function(t){"layout"==t.property&&e.fixLayout()},void 0,!1),e._disposers.push(e._chart),e.fixLayout(),e}return Object(c.c)(e,t),e.prototype.fixLayout=function(){var t=this.plusButton,e=this.minusButton,n=this.thumb,i=this.slider;t.x=void 0,t.y=void 0,e.x=void 0,e.y=void 0,n.x=void 0,n.y=void 0,i.x=void 0,i.y=void 0,t.padding(6,10,6,10),e.padding(6,10,6,10),e.label.align="center",e.label.valign="middle",t.label.align="center",t.label.valign="middle","vertical"==this.layout?(this.width=40,this.height=void 0,e.width=Object(_o.c)(100),e.height=void 0,n.width=Object(_o.c)(100),n.height=void 0,t.width=Object(_o.c)(100),t.height=void 0,i.width=Object(_o.c)(100),e.marginTop=1,t.marginBottom=2,i.height=0,e.toFront(),t.toBack(),n.minX=0,n.maxX=0,n.minY=0):"horizontal"==this.layout&&(this.height=40,this.width=void 0,e.height=Object(_o.c)(100),e.width=void 0,t.height=Object(_o.c)(100),t.width=void 0,n.height=Object(_o.c)(100),n.width=void 0,n.minX=0,n.minY=0,n.maxY=0,i.height=Object(_o.c)(100),i.width=0,e.toBack(),t.toFront())},e.prototype.handleBackgroundClick=function(t){var e=t.target,n=t.spritePoint.y,i=this.chart,r=Math.log(i.maxZoomLevel)/Math.LN2,o=Math.log(i.minZoomLevel)/Math.LN2,a=(e.pixelHeight-n)/e.pixelHeight*(o+(r-o)),u=Math.pow(2,a);i.zoomToGeoPoint(i.zoomGeoPoint,u)},Object.defineProperty(e.prototype,"chart",{get:function(){return this._chart.get()},set:function(t){var e=this;this._chart.set(t,new h.c([t.events.on("maxsizechanged",this.updateThumbSize,this,
1!1),t.events.on("zoomlevelchanged",this.updateThumb,this,!1),this.minusButton.events.on("hit",function(){t.zoomOut(t.zoomGeoPoint)},t,!1),Object(Lo.b)().body.events.on("keyup",function(n){e.topParent.hasFocused&&(so.b.isKey(n.event,"plus")?t.zoomIn():so.b.isKey(n.event,"minus")&&t.zoomOut())},t),this.plusButton.events.on("hit",function(){t.zoomIn(t.zoomGeoPoint)},t,!1)]))},enumerable:!0,configurable:!0}),e.prototype.updateThumbSize=function(){if(this.chart){var t=this.slider,e=this.thumb;"vertical"==this.layout?(e.minHeight=Math.min(this.slider.pixelHeight,20),e.height=t.pixelHeight/this.stepCount,e.maxY=t.pixelHeight-e.pixelHeight,e.pixelHeight<=1?e.visible=!1:e.visible=!0):(e.minWidth=Math.min(this.slider.pixelWidth,20),e.width=t.pixelWidth/this.stepCount,e.maxX=t.pixelWidth-e.pixelWidth,e.pixelWidth<=1?e.visible=!1:e.visible=!0)}},e.prototype.updateThumb=function(){var t=this.slider,e=this.chart,n=this.thumb;if(!n.isDown){var i=(Math.log(e.zoomLevel)-Math.log(this.chart.minZoomLevel))/Math.LN2;"vertical"==this.layout?n.y=t.pixelHeight-(t.pixelHeight-n.pixelHeight)*i/this.stepCount-n.pixelHeight:n.x=t.pixelWidth*i/this.stepCount}},e.prototype.handleThumbDrag=function(){var t,e=this.slider,n=this.chart,i=this.thumb;t=Math.log(this.chart.minZoomLevel)/Math.LN2+(t="vertical"==this.layout?this.stepCount*(e.pixelHeight-i.pixelY-i.pixelHeight)/(e.pixelHeight-i.pixelHeight):this.stepCount*i.pixelX/e.pixelWidth);var r=Math.pow(2,t);n.zoomToGeoPoint(void 0,r,!1,0)},Object.defineProperty(e.prototype,"stepCount",{get:function(){return Math.log(this.chart.maxZoomLevel)/Math.LN2-Math.log(this.chart.minZoomLevel)/Math.LN2},enumerable:!0,configurable:!0}),e.prototype.createBackground=function(){return new ko.a},e}(Dr.a);d.c.registeredClasses.ZoomControl=Fo;var Bo=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=or(),e}return Object(c.c)(e,t),e}(io);d.c.registeredClasses.Mercator=Bo;var Ho=Math.abs,Wo=Math.atan,Zo=Math.atan2,qo=(Math.ceil,Math.cos),Xo=Math.exp,Yo=Math.floor,Uo=Math.log,Jo=Math.max,Ko=Math.min,Qo=Math.pow,$o=(Math.round,Math.sign||function(t){return t>0?1:t<0?-1:0}),ta=Math.sin,ea=Math.tan,na=1e-6,ia=1e-12,ra=Math.PI,oa=ra/2,aa=ra/4,ua=Math.SQRT1_2,sa=ga(2),ca=ga(ra),la=2*ra,ha=180/ra,pa=ra/180;function fa(t){return t>1?oa:t<-1?-oa:Math.asin(t)}function da(t){return t>1?0:t<-1?ra:Math.acos(t)}function ga(t){return t>0?Math.sqrt(t):0}function va(t){return(Xo(t)-Xo(-t))/2}function ma(t){return(Xo(t)+Xo(-t))/2}function ya(t,e){var n=qo(e),i=function(t){return t?t/Math.sin(t):1}(da(n*qo(t/=2)));return[2*n*ta(t)*i,ta(e)*i]}ya.invert=function(t,e){if(!(t*t+4*e*e>ra*ra+na)){var n=t,i=e,r=25;do{var o,a=ta(n),u=ta(n/2),s=qo(n/2),c=ta(i),l=qo(i),h=ta(2*i),p=c*c,f=l*l,d=u*u,g=1-f*s*s,v=g?da(l*s)*ga(o=1/g):o=0,m=2*v*l*u-t,y=v*c-e,b=o*(f*d+v*l*s*p),P=o*(.5*a*h-2*v*c*u),_=.25*o*(h*u-v*c*f*a),M=o*(p*s+v*d*l),S=P*_-M*b;if(!S)break;var x=(y*P-m*M)/S,w=(m*_-y*b)/S;n-=x,i-=w}while((Ho(x)>na||Ho(w)>na)&&--r>0);return[n,i]}};function ba(t,e){var n=ea(e/2),i=ga(1-n*n),r=1+i*qo(t/=2),o=ta(t)*i/r,a=n/r,u=o*o,s=a*a;return[4/3*o*(3+u-3*s),4/3*a*(3+3*u-s)]}ba.invert=function(t,e){if(e*=3/8,!(t*=3/8)&&Ho(e)>1)return null;var n=1+t*t+e*e,i=ga((n-ga(n*n-4*e*e))/2),r=fa(i)/3,o=i?function(t){return Uo(t+ga(t*t-1))}(Ho(e/i))/3:function(t){return Uo(t+ga(t*t+1))}(Ho(t))/3,a=qo(r),u=ma(o),s=u*u-a*a;return[2*$o(t)*Zo(va(o)*a,.25-s),2*$o(e)*Zo(u*ta(r),.25+s)]};var Pa=ga(8),_a=Uo(1+sa);function Ma(t,e){var n=Ho(e);return n<aa?[t,Uo(ea(aa+e/2))]:[t*qo(n)*(2*sa-1/ta(n)),$o(e)*(2*sa*(n-aa)-Uo(ea(n/2)))]}Ma.invert=function(t,e){if((i=Ho(e))<_a)return[t,2*Wo(Xo(e))-oa];var n,i,r=aa,o=25;do{var a=qo(r/2),u=ea(r/2);r-=n=(Pa*(r-aa)-Uo(u)-i)/(Pa-a*a/(2*u))}while(Ho(n)>ia&&--o>0);return[t/(qo(r)*(Pa-1/ta(r))),$o(e)*r]};function Sa(t,e){return[t*qo(e)/qo(e/=2),2*ta(e)]}Sa.invert=function(t,e){var n=2*fa(e/2);return[t*qo(n/2)/qo(n),n]};function xa(t,e,n){var i,r,o,a=100;n=void 0===n?0:+n,e=+e;do{(r=t(n))===(o=t(n+na))&&(o=r+na),n-=i=-1*na*(r-e)/(r-o)}while(a-->0&&Ho(i)>na);return a<0?NaN:n}function wa(t,e){var n,i=t*ta(e),r=30;do{e-=n=(e+ta(e)-i)/(1+qo(e))}while(Ho(n)>na&&--r>0);return e/2}function ja(t,e,n){function i(i,r){return[t*i*qo(r=wa(n,r)),e*ta(r)]}return i.invert=function(i,r){return r=fa(r/e),[i/(t*qo(r)),fa((2*r+ta(2*r))/n)]},i}var Oa=ja(sa/oa,sa,ra),La=2.00276,Ca=1.11072;function Ea(t,e){var n=wa(ra,e);return[La*t/(1/qo(e)+Ca/qo(n)),(e+sa*ta(n))/La]}Ea.invert=function(t,e){var n,i,r=La*e,o=e<0?-aa:aa,a=25;do{i=r-sa*ta(o),o-=n=(ta(2*o)+2*o-ra*ta(i))/(2*qo(2*o)+2+ra*qo(i)*sa
vendor: 5,005 bytes, line 1
1*qo(o))}while(Ho(n)>na&&--a>0);return i=r-sa*ta(o),[t*(1/qo(i)+Ca/qo(o))/La,i]};function Ia(t,e){return[t*qo(e),e]}Ia.invert=function(t,e){return[t/qo(e),e]};ja(1,4/ra,ra);function Ta(t,e){var n=ga(1-ta(e));return[2/ca*t*n,ca*(1-n)]}Ta.invert=function(t,e){var n=(n=e/ca-1)*n;return[n>0?t*ga(ra/n)/2:0,fa(1-n)]};var Ga=ga(3);function Da(t,e){return[Ga*t*(2*qo(2*e/3)-1)/ca,Ga*ca*ta(e/3)]}Da.invert=function(t,e){var n=3*fa(e/(Ga*ca));return[ca*t/(Ga*(2*qo(2*n/3)-1)),n]};function Na(t){var e=qo(t);function n(t,n){return[t*e,ta(n)/e]}return n.invert=function(t,n){return[t/e,fa(n*e)]},n}function za(t,e){var n=ga(8/(3*ra));return[n*t*(1-Ho(e)/ra),n*e]}za.invert=function(t,e){var n=ga(8/(3*ra)),i=e/n;return[t/(n*(1-Ho(i)/ra)),i]};function Va(t,e){var n=ga(4-3*ta(Ho(e)));return[2/ga(6*ra)*t*n,$o(e)*ga(2*ra/3)*(2-n)]}Va.invert=function(t,e){var n=2-Ho(e)/ga(2*ra/3);return[t*ga(6*ra)/(2*n),$o(e)*fa((4-n*n)/3)]};function Ra(t,e){var n=ga(ra*(4+ra));return[2/n*t*(1+ga(1-4*e*e/(ra*ra))),4/n*e]}Ra.invert=function(t,e){var n=ga(ra*(4+ra))/2;return[t*n/(1+ga(1-e*e*(4+ra)/(4*ra))),e*n/2]};function Aa(t,e){var n=(2+oa)*ta(e);e/=2;for(var i=0,r=1/0;i<10&&Ho(r)>na;i++){var o=qo(e);e-=r=(e+ta(e)*(o+2)-n)/(2*o*(1+o))}return[2/ga(ra*(4+ra))*t*(1+qo(e)),2*ga(ra/(4+ra))*ta(e)]}Aa.invert=function(t,e){var n=e*ga((4+ra)/ra)/2,i=fa(n),r=qo(i);return[t/(2/ga(ra*(4+ra))*(1+r)),fa((i+n*(r+2))/(2+oa))]};function ka(t,e){return[t*(1+qo(e))/ga(2+ra),2*e/ga(2+ra)]}ka.invert=function(t,e){var n=ga(2+ra),i=e*n/2;return[n*t/(1+qo(i)),i]};function Fa(t,e){for(var n=(1+oa)*ta(e),i=0,r=1/0;i<10&&Ho(r)>na;i++)e-=r=(e+ta(e)-n)/(1+qo(e));return n=ga(2+ra),[t*(1+qo(e))/n,2*e/n]}Fa.invert=function(t,e){var n=1+oa,i=ga(n/2);return[2*t*i/(1+qo(e*=i)),fa((e+ta(e))/n)]};var Ba=function(){return Zi(Fa).scale(173.044)},Ha=3+2*sa;function Wa(t,e){var n=ta(t/=2),i=qo(t),r=ga(qo(e)),o=qo(e/=2),a=ta(e)/(o+sa*i*r),u=ga(2/(1+a*a)),s=ga((sa*o+(i+n)*r)/(sa*o+(i-n)*r));return[Ha*(u*(s-1/s)-2*Uo(s)),Ha*(u*a*(s+1/s)-2*Wo(a))]}Wa.invert=function(t,e){if(!(n=ba.invert(t/1.2,1.065*e)))return null;var n,i=n[0],r=n[1],o=20;t/=Ha,e/=Ha;do{var a=i/2,u=r/2,s=ta(a),c=qo(a),l=ta(u),h=qo(u),p=qo(r),f=ga(p),d=l/(h+sa*c*f),g=d*d,v=ga(2/(1+g)),m=(sa*h+(c+s)*f)/(sa*h+(c-s)*f),y=ga(m),b=y-1/y,P=y+1/y,_=v*b-2*Uo(y)-t,M=v*d*P-2*Wo(d)-e,S=l&&ua*f*s*g/l,x=(sa*c*h+f)/(2*(h+sa*c*f)*(h+sa*c*f)*f),w=-.5*d*v*v*v,j=w*S,O=w*x,L=(L=2*h+sa*f*(c-s))*L*y,C=(sa*c*h*f+p)/L,E=-sa*s*l/(f*L),I=b*j-2*C/y+v*(C+C/m),T=b*O-2*E/y+v*(E+E/m),G=d*P*j-2*S/(1+g)+v*P*S+v*d*(C-C/m),D=d*P*O-2*x/(1+g)+v*P*x+v*d*(E-E/m),N=T*G-D*I;if(!N)break;var z=(M*T-_*D)/N,V=(_*G-M*I)/N;i-=z,r=Jo(-oa,Ko(oa,r-V))}while((Ho(z)>na||Ho(V)>na)&&--o>0);return Ho(Ho(r)-oa)<na?[0,r]:o&&[i,r]};var Za=qo(35*pa);function qa(t,e){var n=ea(e/2);return[t*Za*ga(1-n*n),(1+Za)*n]}qa.invert=function(t,e){var n=e/(1+Za);return[t&&t/(Za*ga(1-n*n)),2*Wo(n)]};function Xa(t,e){var n=e/2,i=qo(n);return[2*t/ca*qo(e)*i*i,ca*ea(n)]}Xa.invert=function(t,e){var n=Wo(e/ca),i=qo(n),r=2*n;return[t*ca/2/(qo(r)*i*i),r]};var Ya=function(t,e,n,i,r,o,a,u){function s(s,c){if(!c)return[t*s/ra,0];var l=c*c,h=t+l*(e+l*(n+l*i)),p=c*(r-1+l*(o-u+l*a)),f=(h*h+p*p)/(2*p),d=s*fa(h/f)/ra;return[f*ta(d),c*(1+l*u)+f*(1-qo(d))]}return arguments.length<8&&(u=0),s.invert=function(s,c){var l,h,p=ra*s/t,f=c,d=50;do{var g=f*f,v=t+g*(e+g*(n+g*i)),m=f*(r-1+g*(o-u+g*a)),y=v*v+m*m,b=2*m,P=y/b,_=P*P,M=fa(v/P)/ra,S=p*M,x=v*v,w=(2*e+g*(4*n+6*g*i))*f,j=r+g*(3*o+5*g*a),O=(2*(v*w+m*(j-1))*b-y*(2*(j-1)))/(b*b),L=qo(S),C=ta(S),E=P*L,I=P*C,T=p/ra*(1/ga(1-x/_))*(w*P-v*O)/_,G=I-s,D=f*(1+g*u)+P-E-c,N=O*C+E*T,z=E*M,V=1+O-(O*L-I*T),R=I*M,A=N*R-V*z;if(!A)break;p-=l=(D*N-G*V)/A,f-=h=(G*R-D*z)/A}while((Ho(l)>na||Ho(h)>na)&&--d>0);return[p,f]},s};Ya(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555),Ya(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742),Ya(5/6*ra,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Ua(t,e){var n=t*t,i=e*e;return[t*(1-.162388*i)*(.87-952426e-9*n*n),e*(1+i/12)]}Ua.invert=function(t,e){var n,i=t,r=e,o=50;do{var a=r*r;r-=n=(r*(1+a/12)-e)/(1+a/4)}while(Ho(n)>na&&--o>0);o=50,t/=1-.162388*a;do{var u=(u=i*i)*u;i-=n=(i*(.87-952426e-9*u)-t)/(.87-.00476213*u)}while(Ho(n)>na&&--o>0);return[i,r]};Ya(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Ja(t,e){var n=$o(t),i=$o(e),r=qo(e),o=qo(t)*r,a=ta(t)*r,u=ta(i*e);t=Ho(Zo(a,u)),e=fa(o),Ho(t-oa)>na&&(t%=oa);var s=function(t,e){if(e===oa)return[0,0];var n,i,r=ta(e),o=r*r,a=o*o,u=1+a,s=1+3*a,c=1-a,l=fa(1/ga(u)),h=c+o*u*l,p=(1-r)/h,f=ga(p),d=p*u,g=ga(d),v=f*c;if(0===t)return[0,-(v+o*g)];var m,y=qo(e),b=1/y,P=2*r*y,_=(-h*y-(-3*o+l*s)*P*(1-r))/(h*h),M=-b*P,S=-b*(o*u*_+p*s*P),x=-2*b*(c*(.5*_/f)-2*o*f*P),w=4*t/ra;if(t>.222*ra||e<ra/4&&t>.175*ra){if(n=(v+o*ga(d*(1+a)-v*v))/(1+a),t>ra/4)return[n,n];var j=n,O=.5*n;n=.5*(O+j),i=50;do{var L=ga(d-n*n),C=n*(x+M*L)+S*fa(n/g)-w;if(!C)break;C<0?O=n:j=n,n=.5*(O+j)}while(Ho(j-O)>na&&--i>0)}else{n=na,i=25;do{var E=n*n,I=ga(d-E),T=x+M*I,G=n*T+S*fa(n/g)-w,D=T+(S-M*E)/I;n-=m=I?G/D:0}while(Ho(m)>
1na&&--i>0)}return[n,-v-o*ga(d-n*n)]}(t>ra/4?oa-t:t,e);return t>ra/4&&(u=s[0],s[0]=-s[1],s[1]=-u),s[0]*=n,s[1]*=-i,s}Ja.invert=function(t,e){Ho(t)>1&&(t=2*$o(t)-t),Ho(e)>1&&(e=2*$o(e)-e);var n=$o(t),i=$o(e),r=-n*t,o=-i*e,a=o/r<1,u=function(t,e){var n=0,i=1,r=.5,o=50;for(;;){var a=r*r,u=ga(r),s=fa(1/ga(1+a)),c=1-a+r*(1+a)*s,l=(1-u)/c,h=ga(l),p=l*(1+a),f=h*(1-a),d=p-t*t,g=ga(d),v=e+f+r*g;if(Ho(i-n)<ia||0==--o||0===v)break;v>0?n=r:i=r,r=.5*(n+i)}if(!o)return null;var m=fa(u),y=qo(m),b=1/y,P=2*u*y,_=(-c*y-(-3*r+s*(1+3*a))*P*(1-u))/(c*c);return[ra/4*(t*(-2*b*(.5*_/h*(1-a)-2*r*h*P)+-b*P*g)+-b*(r*(1+a)*_+l*(1+3*a)*P)*fa(t/ga(p))),m]}(a?o:r,a?r:o),s=u[0],c=u[1],l=qo(c);return a&&(s=-oa-s),[n*(Zo(ta(s)*l,-ta(c))+ra),i*fa(qo(s)*l)]};function Ka(t,e){var n,i,r,o,a;if(e<na)return[(o=ta(t))-(n=e*(t-o*(i=qo(t)))/4)*i,i+n*o,1-e*o*o/2,t-n];if(e>=1-na)return n=(1-e)/4,r=1/(i=ma(t)),[(o=function(t){return((t=Xo(2*t))-1)/(t+1)}(t))+n*((a=i*va(t))-t)/(i*i),r-n*o*r*(a-t),r+n*o*r*(a+t),2*Wo(Xo(t))-oa+n*(a-t)/i];var u=[1,0,0,0,0,0,0,0,0],s=[ga(e),0,0,0,0,0,0,0,0],c=0;for(i=ga(1-e),a=1;Ho(s[c]/u[c])>na&&c<8;)n=u[c++],s[c]=(n-i)/2,u[c]=(n+i)/2,i=ga(n*i),a*=2;r=a*u[c]*t;do{r=(fa(o=s[c]*ta(i=r)/u[c])+r)/2}while(--c);return[ta(r),o=qo(r),o/qo(r-i),r]}function Qa(t,e){if(!e)return t;if(1===e)return Uo(ea(t/2+aa));for(var n=1,i=ga(1-e),r=ga(e),o=0;Ho(r)>na;o++){if(t%ra){var a=Wo(i*ea(t)/n);a<0&&(a+=ra),t+=a+~~(t/ra)*ra}else t+=t;r=(n+i)/2,i=ga(n*i),r=((n=r)-i)/2}return t/(Qo(2,o)*n)}function $a(t,e){var n=(sa-1)/(sa+1),i=ga(1-n*n),r=Qa(oa,i*i),o=Uo(ea(ra/4+Ho(e)/2)),a=Xo(-1*o)/ga(n),u=function(t,e){var n=t*t,i=e+1,r=1-n-e*e;return[.5*((t>=0?oa:-oa)-Zo(r,2*t)),-.25*Uo(r*r+4*n)+.5*Uo(i*i+n)]}(a*qo(-1*t),a*ta(-1*t)),s=function(t,e,n){var i=Ho(t),r=va(Ho(e));if(i){var o=1/ta(i),a=1/(ea(i)*ea(i)),u=-(a+n*(r*r*o*o)-1+n),s=(-u+ga(u*u-(n-1)*a*4))/2;return[Qa(Wo(1/ga(s)),n)*$o(t),Qa(Wo(ga((s/a-1)/n)),1-n)*$o(e)]}return[0,Qa(Wo(r),1-n)*$o(e)]}(u[0],u[1],i*i);return[-s[1],(e>=0?1:-1)*(.5*r-s[0])]}$a.invert=function(t,e){var n=(sa-1)/(sa+1),i=ga(1-n*n),r=function(t,e,n){var i,r,o;return t?(i=Ka(t,n),e?(o=(r=Ka(e,1-n))[1]*r[1]+n*i[0]*i[0]*r[0]*r[0],[[i[0]*r[2]/o,i[1]*i[2]*r[0]*r[1]/o],[i[1]*r[1]/o,-i[0]*i[2]*r[0]*r[2]/o],[i[2]*r[1]*r[2]/o,-n*i[0]*i[1]*r[0]/o]]):[[i[0],0],[i[1],0],[i[2],0]]):[[0,(r=Ka(e,1-n))[0]/r[1]],[1/r[1],0],[r[2]/r[1],0]]}(.5*Qa(oa,i*i)-e,-t,i*i),o=function(t,e){var n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}(r[0],r[1]);return[Zo(o[1],o[0])/-1,2*Wo(Xo(-.5*Uo(n*o[0]*o[0]+n*o[1]*o[1])))-oa]};fa(1-1/3),Na(0);var tu=.7109889596207567,eu=.0528035274542;function nu(t,e){return e>-tu?((t=Oa(t,e))[1]+=eu,t):Ia(t,e)}nu.invert=function(t,e){return e>-tu?Oa.invert(t,e-eu):Ia.invert(t,e)};function iu(t,e){return Ho(e)>tu?((t=Oa(t,e))[1]-=e>0?eu:-eu,t):Ia(t,e)}iu.invert=function(t,e){return Ho(e)>tu?Oa.invert(t,e+(e>0?eu:-eu)):Ia.invert(t,e)};function ru(t,e){return[3/la*t*ga(ra*ra/3-e*e),e]}ru.invert=function(t,e){return[la/3*t/ga(ra*ra/3-e*e),e]};var ou=ra/sa;function au(t,e){return[t*(1+ga(qo(e)))/2,e/(qo(e/2)*qo(t/6))]}au.invert=function(t,e){var n=Ho(t),i=Ho(e),r=na,o=oa;i<ou?o*=i/ou:r+=6*da(ou/i);for(var a=0;a<25;a++){var u=ta(o),s=ga(qo(o)),c=ta(o/2),l=qo(o/2),h=ta(r/6),p=qo(r/6),f=.5*r*(1+s)-n,d=o/(l*p)-i,g=s?-.25*r*u/s:0,v=.5*(1+s),m=(1+.5*o*c/l)/(l*p),y=o/l*(h/6)/(p*p),b=g*y-m*v,P=(f*y-d*v)/b,_=(d*g-f*m)/b;if(o-=P,r-=_,Ho(P)<na&&Ho(_)<na)break}return[t<0?-r:r,e<0?-o:o]};function uu(t,e){var n=t*t,i=e*e;return[t*(.975534+i*(-.0143059*n-.119161+-.0547009*i)),e*(1.00384+n*(.0802894+-.02855*i+199025e-9*n)+i*(.0998909+-.0491032*i))]}uu.invert=function(t,e){var n=$o(t)*ra,i=e/2,r=50;do{var o=n*n,a=i*i,u=n*i,s=n*(.975534+a*(-.0143059*o-.119161+-.0547009*a))-t,c=i*(1.00384+o*(.0802894+-.02855*a+199025e-9*o)+a*(.0998909+-.0491032*a))-e,l=.975534-a*(.119161+3*o*.0143059+.0547009*a),h=-u*(.238322+.2188036*a+.0286118*o),p=u*(.1605788+7961e-7*o+-.0571*a),f=1.00384+o*(.0802894+199025e-9*o)+a*(3*(.0998909-.02855*o)-.245516*a),d=h*p-f*l,g=(c*h-s*f)/d,v=(s*p-c*l)/d;n-=g,i-=v}while((Ho(g)>na||Ho(v)>na)&&--r>0);return r&&[n,i]};function su(t,e){return[ta(t)/qo(e),ea(e)*qo(t)]}su.invert=function(t,e){var n=t*t,i=e*e+1,r=n+i,o=t?ua*ga((r-ga(r*r-4*n))/n):1/ga(i);return[fa(t*o),$o(e)*da(o)]};function cu(t,e){return[t,1.25*Uo(ea(aa+.4*e))]}cu.invert=function(t,e){return[t,2.5*Wo(Xo(.8*e))-.625*ra]};var lu=function(){return Zi(cu).scale(108.318)};var hu=ga(6),pu=ga(7);function fu(t,e){var n=fa(7*ta(e)/(3*hu));return[hu*t*(2*qo(2*n/3)-1)/pu,9*ta(n/3)/pu]}fu.invert=function(t,e){var n=3*fa(e*pu/9);return[t*pu/(hu*(2*qo(2*n/3)-1)),fa(3*ta(n)*hu/7)]};function du(t,e){for(var n,i=(1+ua)*ta(e),r=e,o=0;o<25&&(r-=n=(ta(r/2)+ta(r)-i)/(.5*qo(r/2)+qo(r)),!(Ho(n)<na));o++);
1return[t*(1+2*qo(r)/qo(r/2))/(3*sa),2*ga(3)*ta(r/2)/ga(2+sa)]}du.invert=function(t,e){var n=e*ga(2+sa)/(2*ga(3)),i=2*fa(n);return[3*sa*t/(1+2*qo(i)/qo(i/2)),fa((n+ta(i))/(1+ua))]};function gu(t,e){for(var n,i=ga(6/(4+ra)),r=(1+ra/4)*ta(e),o=e/2,a=0;a<25&&(o-=n=(o/2+ta(o)-r)/(.5+qo(o)),!(Ho(n)<na));a++);return[i*(.5+qo(o))*t/1.5,i*o]}gu.invert=function(t,e){var n=ga(6/(4+ra)),i=e/n;return Ho(Ho(i)-oa)<na&&(i=i<0?-oa:oa),[1.5*t/(n*(.5+qo(i))),fa((i/2+ta(i))/(1+ra/4))]};function vu(t,e){var n=e*e,i=n*n,r=n*i;return[t*(.84719-.13063*n+r*r*(.05494*n-.04515-.02326*i+.00331*r)),e*(1.01183+i*i*(.01926*n-.02625-.00396*i))]}vu.invert=function(t,e){var n,i,r,o,a=e,u=25;do{a-=n=(a*(1.01183+(r=(i=a*a)*i)*r*(.01926*i-.02625-.00396*r))-e)/(1.01183+r*r*(.21186*i-.23625+-.05148*r))}while(Ho(n)>ia&&--u>0);return[t/(.84719-.13063*(i=a*a)+(o=i*(r=i*i))*o*(.05494*i-.04515-.02326*r+.00331*o)),a]};function mu(t,e){return[t*(1+qo(e))/2,2*(e-ea(e/2))]}mu.invert=function(t,e){for(var n=e/2,i=0,r=1/0;i<10&&Ho(r)>na;++i){var o=qo(e/2);e-=r=(e-ea(e/2)-n)/(1-.5/(o*o))}return[2*t/(1+qo(e)),e]};function yu(t,e){var n=ta(e),i=qo(e),r=$o(t);if(0===t||Ho(e)===oa)return[0,e];if(0===e)return[t,0];if(Ho(t)===oa)return[t*i,oa*n];var o=ra/(2*t)-2*t/ra,a=2*e/ra,u=(1-a*a)/(n-a),s=o*o,c=u*u,l=1+s/c,h=1+c/s,p=(o*n/u-o/2)/l,f=(c*n/s+u/2)/h,d=f*f-(c*n*n/s+u*n-1)/h;return[oa*(p+ga(p*p+i*i/l)*r),oa*(f+ga(d<0?0:d)*$o(-e*o)*r)]}yu.invert=function(t,e){var n=(t/=oa)*t,i=n+(e/=oa)*e,r=ra*ra;return[t?(i-1+ga((1-i)*(1-i)+4*n))/(2*t)*oa:0,xa(function(t){return i*(ra*ta(t)-2*t)*ra+4*t*t*(e-ta(t))+2*ra*t-r*e},0)]};var bu=1.0148,Pu=.23185,_u=-.14499,Mu=.02406,Su=bu,xu=5*Pu,wu=7*_u,ju=9*Mu;function Ou(t,e){var n=e*e;return[t,e*(bu+n*n*(Pu+n*(_u+Mu*n)))]}Ou.invert=function(t,e){e>1.790857183?e=1.790857183:e<-1.790857183&&(e=-1.790857183);var n,i=e;do{var r=i*i;i-=n=(i*(bu+r*r*(Pu+r*(_u+Mu*r)))-e)/(Su+r*r*(xu+r*(wu+ju*r)))}while(Ho(n)>na);return[t,i]};function Lu(t,e){if(Ho(e)<na)return[t,0];var n=ea(e),i=t*ta(e);return[ta(i)/n,e+(1-qo(i))/n]}Lu.invert=function(t,e){if(Ho(e)<na)return[t,0];var n,i=t*t+e*e,r=.5*e,o=10;do{var a=ea(r),u=1/qo(r),s=i-2*e*r+r*r;r-=n=(a*s+2*(r-e))/(2+s*u*u+2*(r-e)*a)}while(Ho(n)>na&&--o>0);return a=ea(r),[(Ho(e)<Ho(r+1/a)?fa(t*a):$o(e)*$o(t)*(da(Ho(t*a))+oa))/ta(r),r]};var Cu=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],Eu=([[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map(function(t){return t.map(function(t){return Cu[t]})}),2/ga(3));function Iu(t,e){var n=Ta(t,e);return[n[0]*Eu,n[1]]}Iu.invert=function(t,e){return Ta.invert(t/Eu,e)};var Tu=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function Gu(t,e){var n,i=Ko(18,36*Ho(e)/ra),r=Yo(i),o=i-r,a=(n=Tu[r])[0],u=n[1],s=(n=Tu[++r])[0],c=n[1],l=(n=Tu[Ko(19,++r)])[0],h=n[1];return[t*(s+o*(l-a)/2+o*o*(l-2*s+a)/2),$o(e)*(c+o*(h-u)/2+o*o*(h-2*c+u)/2)]}Tu.forEach(function(t){t[1]*=1.593415793900743}),Gu.invert=function(t,e){var n=90*e,i=Ko(18,Ho(n/5)),r=Jo(0,Yo(i));do{var o=Tu[r][1],a=Tu[r+1][1],u=Tu[Ko(19,r+2)][1],s=u-o,c=u-2*a+o,l=2*(Ho(e)-a)/s,h=c/s,p=l*(1-h*l*(1-2*h*l));if(p>=0||1===r){n=(e>=0?5:-5)*(p+i);var f,d=50;do{p=(i=Ko(18,Ho(n)/5))-(r=Yo(i)),o=Tu[r][1],a=Tu[r+1][1],u=Tu[Ko(19,r+2)][1],n-=(f=$o(e)*(a+p*(u-o)/2+p*p*(u-2*a+o)/2)-e)*ha}while(Ho(f)>ia&&--d>0);break}}while(--r>=0);var g=Tu[r][0],v=Tu[r+1][0],m=Tu[Ko(19,r+2)][0];return[t/(v+p*(m-g)/2+p*p*(m-2*v+g)/2),n*pa]};function Du(t,e){var n=ea(e/2),i=ta(aa*n);return[t*(.74482-.34588*i*i),1.70711*n]}Du.invert=function(t,e){var n=e/1.70711,i=ta(aa*n);return[t/(.74482-.34588*i*i),2*Wo(n)]};function Nu(t,e){if(Ho(e)<na)return[t,0];var n=Ho(e/oa),i=fa(n);if(Ho(t)<na||Ho(Ho(e)-oa)<na)return[0,$o(e)*ra*ea(i/2)];var r=qo(i),o=Ho(ra/t-t/ra)/2,a=o*o,u=r/(n+r-1),s=u*(2/n-1),c=s*s,l=c+a,h=u-c,p=a+u;return[$o(t)*ra*(o*h+ga(a*h*h-l*(u*u-c)))/l,$o(e)*ra*(s*p-o*ga((a+1)*l-p*p))/l]}Nu.invert=function(t,e){if(Ho(e)<na)return[t,0];if(Ho(t)<na)return[0,oa*ta(2*Wo(e/ra))];var n=(t/=ra)*t,i=(e/=ra)*e,r=n+i,o=r*r,a=-Ho(e)*(1+r),u=a-2*i+n,s=-2*a+1+2*i+o,c=i/s+(2*u*u*u/(s*s*s)-9*a*u/(s*s))/27,l=(a-u*u/(3*s))/s,h=2*ga(-l/3),p=da(3*c/(l*h))/3;return[ra*(r-1+ga(1+2*(n-i)+o))/(2*t),$o(e)*ra*(-h*qo(p+ra/3)-u/(3*s))]};function zu(t,e){if(Ho(e)<na)return[t,0];var n=Ho(e/oa),i=fa(n);if(Ho(t)<na||Ho(Ho(e)-oa)<na)return[0,$o(e)*ra*ea(i/2)];var r=qo(i),o=Ho(ra/t-t/ra)/2,a=o*o,u=r*(ga(1+a)-o*r)/(1+a*n*n);return[$o(t)*ra*u,$o(e)*ra*ga(1-u*(2*o+u))]}zu.invert=function(t,e){if(!t)return[0,oa*ta(2*Wo(e/ra))];var n=Ho(t/ra),i=(1-n*n-(e/=ra)*e)/(2*n),r=ga(i*i+1);return[$o(t)*ra*(r-i),$o(e)*oa*ta(2*Zo(ga((1-2*i*n)*(i+r)-n),ga(r+i+n))
1)]};function Vu(t,e){if(Ho(e)<na)return[t,0];var n=e/oa,i=fa(n);if(Ho(t)<na||Ho(Ho(e)-oa)<na)return[0,ra*ea(i/2)];var r=(ra/t-t/ra)/2,o=n/(1+qo(i));return[ra*($o(t)*ga(r*r+1-o*o)-r),ra*o]}Vu.invert=function(t,e){if(!e)return[t,0];var n=e/ra,i=(ra*ra*(1-n*n)-t*t)/(2*ra*t);return[t?ra*($o(t)*ga(i*i+1)-i):0,oa*ta(2*Wo(n))]};function Ru(t,e){if(!e)return[t,0];var n=Ho(e);if(!t||n===oa)return[0,e];var i=n/oa,r=i*i,o=(8*i-r*(r+2)-5)/(2*r*(i-1)),a=o*o,u=i*o,s=r+a+2*u,c=i+3*o,l=t/oa,h=l+1/l,p=$o(Ho(t)-oa)*ga(h*h-4),f=p*p,d=(p*(s+a-1)+2*ga(s*(r+a*f-1)+(1-r)*(r*(c*c+4*a)+12*u*a+4*a*a)))/(4*s+f);return[$o(t)*oa*d,$o(e)*oa*ga(1+p*Ho(d)-d*d)]}Ru.invert=function(t,e){var n;if(!t||!e)return[t,e];var i=$o(e);e=Ho(e)/ra;var r=$o(t)*t/oa,o=(r*r-1+4*e*e)/Ho(r),a=o*o,u=e*(2-(e>.5?Ko(e,Ho(t)):0)),s=t*t+e*e,c=50;do{var l=u*u,h=(8*u-l*(l+2)-5)/(2*l*(u-1)),p=(3*u-l*u-10)/(2*l*u),f=h*h,d=u*h,g=u+h,v=g*g,m=u+3*h,y=-2*g*(4*d*f+(1-4*l+3*l*l)*(1+p)+f*(14*l-6-a+(8*l-8-2*a)*p)+d*(12*l-8+(10*l-10-a)*p)),b=ga(v*(l+f*a-1)+(1-l)*(l*(m*m+4*f)+f*(12*d+4*f)));u-=n=(o*(v+f-1)+2*b-r*(4*v+a))/(o*(2*h*p+2*g*(1+p))+y/b-8*g*(o*(-1+f+v)+2*b)*(1+p)/(a+4*v))}while(n*s*s>na&&--c>0);return[$o(t)*(ga(o*o+4)+o)*ra/4,i*oa*u]};var Au=4*ra+3*ga(3),ku=2*ga(2*ra*ga(3)/Au);ja(ku*ga(3)/ra,ku,Au/6);function Fu(t,e){return[t*ga(1-3*e*e/(ra*ra)),e]}Fu.invert=function(t,e){return[t/ga(1-3*e*e/(ra*ra)),e]};function Bu(t,e){var n=qo(e),i=qo(t)*n,r=1-i,o=qo(t=Zo(ta(t)*n,-ta(e))),a=ta(t);return[a*(n=ga(1-i*i))-o*r,-o*n-a*r]}Bu.invert=function(t,e){var n=(t*t+e*e)/-2,i=ga(-n*(2+n)),r=e*n+t*i,o=t*n-e*i,a=ga(o*o+r*r);return[Zo(i*r,a*(1+n)),a?-fa(i*o/a):0]};function Hu(t,e){var n=ya(t,e);return[(n[0]+t/oa)/2,(n[1]+e)/2]}Hu.invert=function(t,e){var n=t,i=e,r=25;do{var o,a=qo(i),u=ta(i),s=ta(2*i),c=u*u,l=a*a,h=ta(n),p=qo(n/2),f=ta(n/2),d=f*f,g=1-l*p*p,v=g?da(a*p)*ga(o=1/g):o=0,m=.5*(2*v*a*f+n/oa)-t,y=.5*(v*u+i)-e,b=.5*o*(l*d+v*a*p*c)+.5/oa,P=o*(h*s/4-v*u*f),_=.125*o*(s*f-v*u*l*h),M=.5*o*(c*p+v*d*a)+.5,S=P*_-M*b,x=(y*P-m*M)/S,w=(m*_-y*b)/S;n-=x,i-=w}while((Ho(x)>na||Ho(w)>na)&&--r>0);return[n,i]};var Wu=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=lu(),e}return Object(c.c)(e,t),e}(io);d.c.registeredClasses.Miller=Wu;var Zu=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=Ba(),e}return Object(c.c)(e,t),e}(io);d.c.registeredClasses.Eckert6=Zu;var qu=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=Or(),e}return Object(c.c)(e,t),e}(io);d.c.registeredClasses.Orthographic=qu;var Xu=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=Cr(),e}return Object(c.c)(e,t),e}(io);d.c.registeredClasses.Stereographic=Xu;var Yu=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=Ji(),e}return Object(c.c)(e,t),e}(io);d.c.registeredClasses.Albers=Yu;var Uu=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=Ki(),e}return Object(c.c)(e,t),e}(io);d.c.registeredClasses.AlbersUsa=Uu;var Ju=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=wr(),e}return Object(c.c)(e,t),e}(io);d.c.registeredClasses.NaturalEarth1=Ju;var Ku=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=er(),e}return Object(c.c)(e,t),e}(io);d.c.registeredClasses.AzimuthalEqualArea=Ku;var Qu=function(t){function e(){var e=t.call(this)||this;return e.d3Projection=Pr(),e}return Object(c.c)(e,t),e}(io);d.c.registeredClasses.EqualEarth=Qu,window.am4maps=a},QaCB:function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"default",function(){return r});var r=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=e,this.length=this.data.length,this.compare=n,this.length>0)for(var i=(this.length>>1)-1;i>=0;i--)this._down(i)}return function(t,e,n){e&&i(t.prototype,e),n&&i(t,n)}(t,[{key:"push",value:function(t){this.data.push(t),this.length++,this._up(this.length-1)}},{key:"pop",value:function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}}},{key:"peek",value:function(){return this.data[0]}},{key:"_up",value:function(t){for(var e=this.data,n=this.compare,i=e[t];t>0;){var r=t-1>>1,o=e[r];if(n(i,o)>=0)break;e[t]=o,t=r}e[t]=i}},{key:"_down",value:function(t){for(var e=this.data,n=this.compare,i=this.length>>1,r=e[t];t<i;){var o=1+(t<<1),a=e[o],u=o+1;if(u<this.length&&n(e[u],a)<0&&(o=u,a=e[u]),n(a,r)>=0)break;e[t]=a,t=o}e[t]=r}}]),t}();function o(t,e){return t<e?-1:t>e?1:0}},"o+vr":function(t,e,n){"use strict";var i=n("QaCB");function r(t,e,n){var r,u,s,c;e=e||1;for(var l=0;l<t[0].length;l++){var h=t[0][l];(!l||h[0]<r)&&(r=h[0]),(!l||h[1]<u)&&(u=h[1]),(!l||h[0]>s)&&(s=h[0]),(!l||h[1]>c)&&(c=h[1])}var p=s-r,f=c-u,d=Math.min(p,f),g=d/2;if(0===d){var v=[r,u];return v.distance=0,v}for(var m=new i(void 0,o),y=r;y<s;y+=d)for(var b=u;b<c;
vendor: 1,308 bytes, line 1
1b+=d)m.push(new a(y+g,b+g,g,t));var P=function(t){for(var e=0,n=0,i=0,r=t[0],o=0,u=r.length,s=u-1;o<u;s=o++){var c=r[o],l=r[s],h=c[0]*l[1]-l[0]*c[1];n+=(c[0]+l[0])*h,i+=(c[1]+l[1])*h,e+=3*h}return 0===e?new a(r[0][0],r[0][1],0,t):new a(n/e,i/e,0,t)}(t),_=new a(r+p/2,u+f/2,0,t);_.d>P.d&&(P=_);for(var M=m.length;m.length;){var S=m.pop();S.d>P.d&&(P=S,n&&console.log("found best %d after %d probes",Math.round(1e4*S.d)/1e4,M)),S.max-P.d<=e||(g=S.h/2,m.push(new a(S.x-g,S.y-g,g,t)),m.push(new a(S.x+g,S.y-g,g,t)),m.push(new a(S.x-g,S.y+g,g,t)),m.push(new a(S.x+g,S.y+g,g,t)),M+=4)}n&&(console.log("num probes: "+M),console.log("best distance: "+P.d));var x=[P.x,P.y];return x.distance=P.d,x}function o(t,e){return e.max-t.max}function a(t,e,n,i){this.x=t,this.y=e,this.h=n,this.d=function(t,e,n){for(var i=!1,r=1/0,o=0;o<n.length;o++)for(var a=n[o],s=0,c=a.length,l=c-1;s<c;l=s++){var h=a[s],p=a[l];h[1]>e!=p[1]>e&&t<(p[0]-h[0])*(e-h[1])/(p[1]-h[1])+h[0]&&(i=!i),r=Math.min(r,u(t,e,h,p))}return 0===r?0:(i?1:-1)*Math.sqrt(r)}(t,e,i),this.max=this.d+this.h*Math.SQRT2}function u(t,e,n,i){var r=n[0],o=n[1],a=i[0]-r,u=i[1]-o;if(0!==a||0!==u){var s=((t-r)*a+(e-o)*u)/(a*a+u*u);s>1?(r=i[0],o=i[1]):s>0&&(r+=a*s,o+=u*s)}return(a=t-r)*a+(u=e-o)*u}i.default&&(i=i.default),t.exports=r,t.exports.default=r}},["QJ7E"]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.